From 0d9aab72aa570f13dc3e32e0d32b3f3a95f95e0a Mon Sep 17 00:00:00 2001 From: Jason Mitchell Date: Mon, 30 Jan 2023 10:56:42 -0800 Subject: [ci skip] spotlessApply with the new settings --- src/main/java/gregtech/api/GregTech_API.java | 746 ++-- .../api/damagesources/GT_DamageSources.java | 13 +- .../api/enchants/Enchantment_EnderDamage.java | 29 +- .../gregtech/api/enchants/Enchantment_Hazmat.java | 8 +- .../api/enchants/Enchantment_Radioactivity.java | 10 +- .../java/gregtech/api/enums/ConfigCategories.java | 4 +- src/main/java/gregtech/api/enums/Dyes.java | 31 +- src/main/java/gregtech/api/enums/Element.java | 13 +- src/main/java/gregtech/api/enums/FluidState.java | 6 +- .../java/gregtech/api/enums/GT_HatchElement.java | 29 +- src/main/java/gregtech/api/enums/GT_Values.java | 406 +- .../java/gregtech/api/enums/HeatingCoilLevel.java | 33 +- src/main/java/gregtech/api/enums/ItemList.java | 219 +- .../java/gregtech/api/enums/MaterialBuilder.java | 58 +- src/main/java/gregtech/api/enums/Materials.java | 685 ++- .../java/gregtech/api/enums/MaterialsBotania.java | 119 +- .../java/gregtech/api/enums/MaterialsKevlar.java | 555 +-- .../java/gregtech/api/enums/MaterialsOreAlum.java | 72 +- src/main/java/gregtech/api/enums/OrePrefixes.java | 4177 ++++------------- src/main/java/gregtech/api/enums/ParticleFX.java | 1 + .../java/gregtech/api/enums/SoundResource.java | 19 +- src/main/java/gregtech/api/enums/SteamVariant.java | 1 + src/main/java/gregtech/api/enums/SubTag.java | 83 +- src/main/java/gregtech/api/enums/TC_Aspects.java | 24 +- src/main/java/gregtech/api/enums/TextureSet.java | 352 +- src/main/java/gregtech/api/enums/Textures.java | 1099 ++--- src/main/java/gregtech/api/enums/Tier.java | 891 ++-- src/main/java/gregtech/api/enums/TierEU.java | 2 +- .../java/gregtech/api/enums/ToolDictNames.java | 1 + .../gregtech/api/events/BlockScanningEvent.java | 19 +- src/main/java/gregtech/api/fluid/FluidTankGT.java | 27 +- .../java/gregtech/api/fluid/GT_FluidFactory.java | 92 +- .../java/gregtech/api/graphs/GenerateNodeMap.java | 45 +- .../gregtech/api/graphs/GenerateNodeMapPower.java | 33 +- src/main/java/gregtech/api/graphs/Lock.java | 2 + src/main/java/gregtech/api/graphs/Node.java | 8 +- src/main/java/gregtech/api/graphs/NodeList.java | 1 + src/main/java/gregtech/api/graphs/PowerNode.java | 5 +- src/main/java/gregtech/api/graphs/PowerNodes.java | 66 +- .../api/graphs/consumers/ConsumerNode.java | 5 +- .../api/graphs/consumers/EmptyPowerConsumer.java | 7 +- .../api/graphs/consumers/NodeEnergyConnected.java | 9 +- .../api/graphs/consumers/NodeEnergyReceiver.java | 108 +- .../api/graphs/consumers/NodeEnergySink.java | 11 +- .../api/graphs/consumers/NodeGTBaseMetaTile.java | 8 +- .../java/gregtech/api/graphs/paths/NodePath.java | 1 + .../gregtech/api/graphs/paths/PowerNodePath.java | 4 +- src/main/java/gregtech/api/gui/GT_Container.java | 98 +- .../api/gui/GT_ContainerMetaTile_Machine.java | 54 +- .../java/gregtech/api/gui/GT_Container_1by1.java | 3 +- .../java/gregtech/api/gui/GT_Container_2by2.java | 3 +- .../java/gregtech/api/gui/GT_Container_3by3.java | 3 +- .../java/gregtech/api/gui/GT_Container_4by4.java | 3 +- .../api/gui/GT_Container_BasicMachine.java | 13 +- .../gregtech/api/gui/GT_Container_BasicTank.java | 30 +- .../api/gui/GT_Container_MultiMachine.java | 8 +- .../java/gregtech/api/gui/GT_GUIColorOverride.java | 19 +- .../java/gregtech/api/gui/GT_GUIContainer.java | 21 +- .../api/gui/GT_GUIContainerMetaTile_Machine.java | 68 +- .../gregtech/api/gui/GT_GUIContainer_1by1.java | 7 +- .../gregtech/api/gui/GT_GUIContainer_2by2.java | 7 +- .../gregtech/api/gui/GT_GUIContainer_3by3.java | 7 +- .../gregtech/api/gui/GT_GUIContainer_4by4.java | 7 +- .../api/gui/GT_GUIContainer_BasicMachine.java | 130 +- .../api/gui/GT_GUIContainer_BasicTank.java | 9 +- .../api/gui/GT_GUIContainer_MultiMachine.java | 59 +- src/main/java/gregtech/api/gui/GT_GUICover.java | 19 +- .../gregtech/api/gui/GT_GUIDialogSelectItem.java | 62 +- src/main/java/gregtech/api/gui/GT_GUIScreen.java | 19 +- src/main/java/gregtech/api/gui/GT_Slot_Armor.java | 1 + .../java/gregtech/api/gui/GT_Slot_DataOrb.java | 4 +- src/main/java/gregtech/api/gui/GT_Slot_Holo.java | 20 +- src/main/java/gregtech/api/gui/GT_Slot_Output.java | 1 + src/main/java/gregtech/api/gui/GT_Slot_Render.java | 4 +- .../gui/modularui/FallbackableSteamTexture.java | 8 +- .../api/gui/modularui/GT_CoverUIBuildContext.java | 25 +- .../gregtech/api/gui/modularui/GT_UIInfos.java | 181 +- .../gregtech/api/gui/modularui/GT_UITextures.java | 320 +- .../gregtech/api/gui/modularui/GUITextureSet.java | 21 +- .../api/gui/modularui/IDataFollowerWidget.java | 29 +- .../gregtech/api/gui/modularui/SteamTexture.java | 19 +- .../api/gui/widgets/GT_GuiCoverTabLine.java | 102 +- .../api/gui/widgets/GT_GuiFakeItemButton.java | 40 +- .../java/gregtech/api/gui/widgets/GT_GuiIcon.java | 31 +- .../gregtech/api/gui/widgets/GT_GuiIconButton.java | 11 +- .../api/gui/widgets/GT_GuiIconCheckButton.java | 12 +- .../api/gui/widgets/GT_GuiIntegerTextBox.java | 8 +- .../api/gui/widgets/GT_GuiSlotTooltip.java | 5 +- .../api/gui/widgets/GT_GuiSmartTooltip.java | 5 +- .../java/gregtech/api/gui/widgets/GT_GuiTab.java | 48 +- .../gregtech/api/gui/widgets/GT_GuiTabLine.java | 68 +- .../gregtech/api/gui/widgets/GT_GuiTooltip.java | 12 +- .../api/gui/widgets/GT_GuiTooltipManager.java | 7 +- .../gregtech/api/interfaces/IBlockContainer.java | 1 + .../gregtech/api/interfaces/IBlockOnWalkOver.java | 1 + .../java/gregtech/api/interfaces/IChunkLoader.java | 1 + .../api/interfaces/IColorModulationContainer.java | 1 + .../java/gregtech/api/interfaces/ICondition.java | 8 + .../interfaces/IConfigurationCircuitSupport.java | 9 +- .../gregtech/api/interfaces/IDamagableItem.java | 1 + .../gregtech/api/interfaces/IDebugableBlock.java | 12 +- .../java/gregtech/api/interfaces/IDescribable.java | 1 + .../api/interfaces/IDragAndDropSupport.java | 32 +- .../java/gregtech/api/interfaces/IFoodStat.java | 4 +- .../api/interfaces/IGlobalWirelessEnergy.java | 4 +- .../java/gregtech/api/interfaces/IGuiIcon.java | 1 + .../java/gregtech/api/interfaces/IGuiScreen.java | 4 +- .../api/interfaces/IHasFluidDisplayItem.java | 1 + .../api/interfaces/IHasIndexedTexture.java | 2 + .../gregtech/api/interfaces/IHatchElement.java | 63 +- .../java/gregtech/api/interfaces/IHeatingCoil.java | 4 +- .../gregtech/api/interfaces/IIconContainer.java | 9 +- .../gregtech/api/interfaces/IItemBehaviour.java | 45 +- .../gregtech/api/interfaces/IItemContainer.java | 1 + .../gregtech/api/interfaces/IMaterialHandler.java | 1 + .../api/interfaces/INetworkUpdatableItem.java | 14 +- .../api/interfaces/IOreRecipeRegistrator.java | 7 +- .../gregtech/api/interfaces/IProjectileItem.java | 14 +- .../api/interfaces/IRedstoneCircuitBlock.java | 10 +- .../api/interfaces/ISecondaryDescribable.java | 1 + .../gregtech/api/interfaces/ISubTagContainer.java | 1 + .../java/gregtech/api/interfaces/ITexture.java | 9 +- .../gregtech/api/interfaces/ITextureBuilder.java | 26 +- .../java/gregtech/api/interfaces/IToolStats.java | 40 +- .../api/interfaces/covers/IControlsWorkCover.java | 4 +- .../api/interfaces/fluid/IGT_FluidBuilder.java | 9 +- .../api/interfaces/fluid/IGT_RegisteredFluid.java | 18 +- .../api/interfaces/internal/IBCTileEntity.java | 2 +- .../interfaces/internal/IGT_CraftingRecipe.java | 1 + .../gregtech/api/interfaces/internal/IGT_Mod.java | 10 +- .../api/interfaces/internal/IGT_RecipeAdder.java | 1027 ++--- .../api/interfaces/internal/IIC2TileEntity.java | 3 +- .../api/interfaces/internal/IThaumcraftCompat.java | 66 +- .../api/interfaces/internal/IUETileEntity.java | 2 +- .../interfaces/metatileentity/IConnectable.java | 5 +- .../interfaces/metatileentity/IFluidLockable.java | 6 +- .../metatileentity/IMachineCallback.java | 1 + .../interfaces/metatileentity/IMetaTileEntity.java | 171 +- .../metatileentity/IMetaTileEntityCable.java | 6 +- .../metatileentity/IMetaTileEntityItemPipe.java | 38 +- .../api/interfaces/modularui/IAddGregtechLogo.java | 1 + .../interfaces/modularui/IAddInventorySlots.java | 1 + .../api/interfaces/modularui/IAddUIWidgets.java | 1 + .../interfaces/modularui/IGetGUITextureSet.java | 1 + .../api/interfaces/modularui/IGetTitleColor.java | 1 + .../tileentity/IBasicEnergyContainer.java | 20 +- .../interfaces/tileentity/IColoredTileEntity.java | 5 +- .../api/interfaces/tileentity/ICoverable.java | 22 +- .../tileentity/IDebugableTileEntity.java | 9 +- .../api/interfaces/tileentity/IDigitalChest.java | 14 +- .../interfaces/tileentity/IEnergyConductor.java | 1 + .../interfaces/tileentity/IEnergyConnected.java | 27 +- .../tileentity/IExperimentalEnergyTileEntity.java | 55 +- .../api/interfaces/tileentity/IFibreConnected.java | 1 + .../tileentity/IGearEnergyTileEntity.java | 9 +- .../tileentity/IGregTechDeviceInformation.java | 11 +- .../interfaces/tileentity/IGregTechTileEntity.java | 60 +- .../tileentity/IGregtechWailaProvider.java | 17 +- .../api/interfaces/tileentity/IHasInventory.java | 14 +- .../tileentity/IHasWorldObjectAndCoords.java | 16 +- .../api/interfaces/tileentity/IIC2Enet.java | 1 + .../tileentity/IMachineBlockUpdateable.java | 11 +- .../interfaces/tileentity/IMachineProgress.java | 14 +- .../tileentity/IPipeRenderedTileEntity.java | 1 + .../interfaces/tileentity/IRedstoneEmitter.java | 11 +- .../interfaces/tileentity/IRedstoneReceiver.java | 6 +- .../interfaces/tileentity/IRedstoneTileEntity.java | 4 +- .../interfaces/tileentity/ITexturedTileEntity.java | 4 +- .../api/interfaces/tileentity/ITurnable.java | 1 + .../interfaces/tileentity/IUpgradableMachine.java | 1 + .../api/items/GT_Block_LongDistancePipe.java | 26 +- .../gregtech/api/items/GT_BreederCell_Item.java | 52 +- .../gregtech/api/items/GT_CoolantCellIC_Item.java | 15 +- .../gregtech/api/items/GT_CoolantCell_Item.java | 12 +- .../gregtech/api/items/GT_EnergyArmor_Item.java | 88 +- .../java/gregtech/api/items/GT_Generic_Block.java | 6 +- .../java/gregtech/api/items/GT_Generic_Item.java | 41 +- .../java/gregtech/api/items/GT_MetaBase_Item.java | 362 +- .../gregtech/api/items/GT_MetaGenerated_Item.java | 261 +- .../api/items/GT_MetaGenerated_Item_X01.java | 71 +- .../api/items/GT_MetaGenerated_Item_X32.java | 49 +- .../gregtech/api/items/GT_MetaGenerated_Tool.java | 471 +- .../api/items/GT_RadioactiveCellIC_Item.java | 65 +- .../api/items/GT_RadioactiveCell_Item.java | 17 +- .../gregtech/api/items/GT_SolderingTool_Item.java | 48 +- .../java/gregtech/api/items/GT_Spray_Bug_Item.java | 71 +- .../gregtech/api/items/GT_Spray_Foam_Item.java | 144 +- .../gregtech/api/items/GT_Spray_Hardener_Item.java | 49 +- .../api/items/GT_Spray_Hydration_Item.java | 42 +- .../java/gregtech/api/items/GT_Spray_Ice_Item.java | 69 +- .../gregtech/api/items/GT_Spray_Pepper_Item.java | 70 +- src/main/java/gregtech/api/items/GT_Tool_Item.java | 35 +- .../api/metatileentity/BaseMetaPipeEntity.java | 336 +- .../api/metatileentity/BaseMetaTileEntity.java | 746 ++-- .../api/metatileentity/BaseTileEntity.java | 319 +- .../api/metatileentity/CommonMetaTileEntity.java | 15 +- .../api/metatileentity/CoverableTileEntity.java | 272 +- .../metatileentity/GregTechTileClientEvents.java | 1 + .../api/metatileentity/MetaPipeEntity.java | 293 +- .../api/metatileentity/MetaTileEntity.java | 236 +- .../api/metatileentity/TileIC2EnergySink.java | 55 +- .../examples/GT_MetaTileEntity_E_Furnace.java | 61 +- .../implementations/GT_MetaPipeEntity_Cable.java | 371 +- .../implementations/GT_MetaPipeEntity_Fluid.java | 343 +- .../implementations/GT_MetaPipeEntity_Frame.java | 43 +- .../implementations/GT_MetaPipeEntity_Item.java | 305 +- .../GT_MetaTileEntity_BasicBatteryBuffer.java | 220 +- .../GT_MetaTileEntity_BasicGenerator.java | 91 +- .../GT_MetaTileEntity_BasicHull.java | 58 +- .../GT_MetaTileEntity_BasicHull_NonElectric.java | 22 +- .../GT_MetaTileEntity_BasicMachine.java | 641 ++- .../GT_MetaTileEntity_BasicMachine_Bronze.java | 254 +- .../GT_MetaTileEntity_BasicMachine_GT_Recipe.java | 418 +- .../GT_MetaTileEntity_BasicMachine_Steel.java | 151 +- .../GT_MetaTileEntity_BasicTank.java | 120 +- .../implementations/GT_MetaTileEntity_Buffer.java | 258 +- .../GT_MetaTileEntity_CubicMultiBlockBase.java | 81 +- .../GT_MetaTileEntity_EnhancedMultiBlockBase.java | 225 +- ...MetaTileEntity_ExtendedPowerMultiBlockBase.java | 93 +- .../implementations/GT_MetaTileEntity_Hatch.java | 80 +- .../GT_MetaTileEntity_Hatch_DataAccess.java | 28 +- .../GT_MetaTileEntity_Hatch_Dynamo.java | 24 +- .../GT_MetaTileEntity_Hatch_Energy.java | 41 +- .../GT_MetaTileEntity_Hatch_Input.java | 53 +- .../GT_MetaTileEntity_Hatch_InputBus.java | 44 +- .../GT_MetaTileEntity_Hatch_Maintenance.java | 178 +- .../GT_MetaTileEntity_Hatch_Muffler.java | 62 +- .../GT_MetaTileEntity_Hatch_MultiInput.java | 71 +- .../GT_MetaTileEntity_Hatch_Output.java | 182 +- .../GT_MetaTileEntity_Hatch_OutputBus.java | 52 +- .../GT_MetaTileEntity_MultiBlockBase.java | 493 +- .../GT_MetaTileEntity_SpecialFilter.java | 144 +- .../GT_MetaTileEntity_TieredMachineBlock.java | 54 +- .../GT_MetaTileEntity_TooltipMultiBlockBase.java | 11 +- .../GT_MetaTileEntity_Transformer.java | 253 +- .../GT_MetaTileEntity_Wireless_Dynamo.java | 27 +- .../GT_MetaTileEntity_Wireless_Hatch.java | 30 +- .../api/multitileentity/MultiTileEntityBlock.java | 242 +- .../MultiTileEntityBlockInternal.java | 35 +- .../MultiTileEntityClassContainer.java | 25 +- .../multitileentity/MultiTileEntityContainer.java | 4 +- .../MultiTileEntityItemInternal.java | 107 +- .../multitileentity/MultiTileEntityRegistry.java | 107 +- .../multitileentity/base/BaseMultiTileEntity.java | 377 +- .../base/BaseNontickableMultiTileEntity.java | 10 +- .../base/BaseTickableMultiTileEntity.java | 16 +- .../multitileentity/interfaces/IItemUpdatable.java | 8 +- .../interfaces/IMultiBlockController.java | 1 + .../interfaces/IMultiBlockEnergy.java | 1 + .../interfaces/IMultiBlockFluidHandler.java | 4 +- .../interfaces/IMultiBlockInventory.java | 7 +- .../interfaces/IMultiBlockPart.java | 1 + .../interfaces/IMultiTileEntity.java | 130 +- .../machine/MultiTileBasicMachine.java | 80 +- .../multiblock/base/MultiBlockController.java | 334 +- .../multiblock/base/MultiBlockPart.java | 150 +- .../multiblock/base/MultiBlock_Stackable.java | 7 +- .../multiblock/casing/CasingBehaviorBase.java | 16 +- src/main/java/gregtech/api/net/GT_Packet.java | 13 +- .../gregtech/api/net/GT_Packet_Block_Event.java | 12 +- .../api/net/GT_Packet_ClientPreference.java | 11 +- .../api/net/GT_Packet_GtTileEntityGuiRequest.java | 26 +- .../api/net/GT_Packet_MultiTileEntity.java | 21 +- src/main/java/gregtech/api/net/GT_Packet_New.java | 2 + .../java/gregtech/api/net/GT_Packet_Pollution.java | 7 +- .../api/net/GT_Packet_RequestCoverData.java | 19 +- .../gregtech/api/net/GT_Packet_SendCoverData.java | 11 +- .../api/net/GT_Packet_SetConfigurationCircuit.java | 20 +- .../gregtech/api/net/GT_Packet_SetLockedFluid.java | 21 +- .../java/gregtech/api/net/GT_Packet_Sound.java | 10 +- .../gregtech/api/net/GT_Packet_TileEntity.java | 92 +- .../api/net/GT_Packet_TileEntityCover.java | 11 +- .../api/net/GT_Packet_TileEntityCoverGUI.java | 52 +- .../api/net/GT_Packet_TileEntityCoverNew.java | 21 +- .../gregtech/api/net/GT_Packet_UpdateItem.java | 13 +- .../api/net/GT_Packet_WirelessRedstoneCover.java | 22 +- .../java/gregtech/api/net/IGT_NetworkHandler.java | 4 +- .../api/objects/AE2DigitalChestHandler.java | 20 +- .../java/gregtech/api/objects/CollectorUtils.java | 14 +- .../java/gregtech/api/objects/ElementStack.java | 8 +- .../java/gregtech/api/objects/GT_ArrayList.java | 22 +- .../java/gregtech/api/objects/GT_ChunkManager.java | 80 +- .../api/objects/GT_CopiedBlockTexture.java | 4 +- .../gregtech/api/objects/GT_Cover_Default.java | 17 +- .../java/gregtech/api/objects/GT_Cover_None.java | 183 +- src/main/java/gregtech/api/objects/GT_Fluid.java | 7 +- .../java/gregtech/api/objects/GT_FluidStack.java | 20 +- src/main/java/gregtech/api/objects/GT_HashSet.java | 7 +- .../java/gregtech/api/objects/GT_ItemStack.java | 6 +- .../java/gregtech/api/objects/GT_ItemStack2.java | 4 +- .../java/gregtech/api/objects/GT_MultiTexture.java | 10 +- .../gregtech/api/objects/GT_RenderedTexture.java | 1 + .../java/gregtech/api/objects/GT_SidedTexture.java | 31 +- .../api/objects/GT_StdRenderedTexture.java | 15 +- .../java/gregtech/api/objects/GT_UO_Dimension.java | 9 +- .../gregtech/api/objects/GT_UO_DimensionList.java | 28 +- .../java/gregtech/api/objects/GT_UO_Fluid.java | 27 +- src/main/java/gregtech/api/objects/ItemData.java | 40 +- .../java/gregtech/api/objects/MaterialStack.java | 9 +- src/main/java/gregtech/api/objects/ObjMap.java | 24 +- .../gregtech/api/objects/ReverseShapedRecipe.java | 13 +- .../api/objects/ReverseShapelessRecipe.java | 13 +- src/main/java/gregtech/api/objects/XSTR.java | 144 +- .../api/objects/iterators/MergedIterator.java | 1 + .../java/gregtech/api/render/TextureFactory.java | 71 +- .../api/threads/GT_Runnable_Cable_Update.java | 21 +- .../threads/GT_Runnable_MachineBlockUpdate.java | 25 +- .../gregtech/api/threads/GT_Runnable_Sound.java | 28 +- .../gregtech/api/util/ColorsMetadataSection.java | 11 +- .../api/util/ColorsMetadataSectionSerializer.java | 22 +- .../java/gregtech/api/util/GT_ApiaryModifier.java | 1 + .../java/gregtech/api/util/GT_ApiaryUpgrade.java | 31 +- .../gregtech/api/util/GT_AssemblyLineUtils.java | 104 +- .../gregtech/api/util/GT_Assemblyline_Server.java | 439 +- src/main/java/gregtech/api/util/GT_BaseCrop.java | 120 +- src/main/java/gregtech/api/util/GT_BlockMap.java | 7 +- src/main/java/gregtech/api/util/GT_BlockSet.java | 1 + src/main/java/gregtech/api/util/GT_CLS_Compat.java | 38 +- .../gregtech/api/util/GT_ChunkAssociatedData.java | 95 +- .../gregtech/api/util/GT_CircuitryBehavior.java | 100 +- .../gregtech/api/util/GT_ClientPreference.java | 9 +- src/main/java/gregtech/api/util/GT_Config.java | 32 +- .../java/gregtech/api/util/GT_CoverBehavior.java | 242 +- .../gregtech/api/util/GT_CoverBehaviorBase.java | 373 +- .../java/gregtech/api/util/GT_CreativeTab.java | 4 +- .../api/util/GT_ExoticEnergyInputHelper.java | 37 +- src/main/java/gregtech/api/util/GT_FoodStat.java | 58 +- .../java/gregtech/api/util/GT_Forestry_Compat.java | 92 +- src/main/java/gregtech/api/util/GT_GC_Compat.java | 14 +- .../gregtech/api/util/GT_HatchElementBuilder.java | 210 +- .../java/gregtech/api/util/GT_IBoxableWrapper.java | 4 +- .../api/util/GT_ItsNotMyFaultException.java | 1 + .../java/gregtech/api/util/GT_LanguageManager.java | 58 +- src/main/java/gregtech/api/util/GT_Log.java | 5 +- src/main/java/gregtech/api/util/GT_ModHandler.java | 1040 ++--- .../api/util/GT_Multiblock_Tooltip_Builder.java | 219 +- .../gregtech/api/util/GT_OreDictUnificator.java | 112 +- .../gregtech/api/util/GT_OverclockCalculator.java | 46 +- .../gregtech/api/util/GT_PCBFactoryManager.java | 1 + .../java/gregtech/api/util/GT_ParallelHelper.java | 53 +- .../java/gregtech/api/util/GT_PlayedSound.java | 4 +- .../api/util/GT_ProcessingArray_Manager.java | 7 +- src/main/java/gregtech/api/util/GT_Recipe.java | 4724 +++++++++----------- .../gregtech/api/util/GT_RecipeRegistrator.java | 483 +- .../java/gregtech/api/util/GT_RenderingWorld.java | 17 +- .../java/gregtech/api/util/GT_Shaped_Recipe.java | 54 +- .../gregtech/api/util/GT_Shapeless_Recipe.java | 84 +- .../gregtech/api/util/GT_Single_Recipe_Check.java | 40 +- .../GT_Single_Recipe_Check_Processing_Array.java | 21 +- .../gregtech/api/util/GT_SpawnEventHandler.java | 24 +- .../gregtech/api/util/GT_StructureUtility.java | 295 +- .../gregtech/api/util/GT_TooltipDataCache.java | 22 +- src/main/java/gregtech/api/util/GT_Util.java | 56 +- src/main/java/gregtech/api/util/GT_Utility.java | 1781 ++++---- .../java/gregtech/api/util/GT_UtilityClient.java | 21 +- .../java/gregtech/api/util/IGT_HatchAdder.java | 1 + .../gregtech/api/util/ISerializableObject.java | 32 +- .../java/gregtech/api/util/LightingHelper.java | 504 +-- .../api/util/WorldSpawnedEventBuilder.java | 96 +- .../gregtech/api/util/extensions/ArrayExt.java | 1 + .../gregtech/api/util/extensions/IteratorExt.java | 4 +- src/main/java/gregtech/api/world/GT_Worldgen.java | 55 +- .../java/gregtech/api/world/GT_Worldgen_Ore.java | 19 +- .../api/world/GT_Worldgen_Ore_SingleBlock.java | 37 +- .../GT_Worldgen_Ore_SingleBlock_UnderLava.java | 39 +- 365 files changed, 16176 insertions(+), 22500 deletions(-) (limited to 'src/main/java/gregtech/api') diff --git a/src/main/java/gregtech/api/GregTech_API.java b/src/main/java/gregtech/api/GregTech_API.java index 0deb239d4b..41a0885a84 100644 --- a/src/main/java/gregtech/api/GregTech_API.java +++ b/src/main/java/gregtech/api/GregTech_API.java @@ -5,8 +5,37 @@ import static gregtech.api.enums.GT_Values.L; import static gregtech.api.enums.GT_Values.M; import static gregtech.api.enums.GT_Values.MOD_ID_IC2; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.Comparator; +import java.util.HashMap; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.TreeMap; +import java.util.concurrent.ConcurrentHashMap; +import java.util.function.BiFunction; +import java.util.function.IntFunction; +import java.util.function.Predicate; +import java.util.stream.Collectors; + +import net.minecraft.block.Block; +import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.creativetab.CreativeTabs; +import net.minecraft.entity.player.EntityPlayerMP; +import net.minecraft.item.Item; +import net.minecraft.item.ItemStack; +import net.minecraft.tileentity.TileEntity; +import net.minecraft.util.ChunkCoordinates; +import net.minecraft.world.World; +import net.minecraftforge.fluids.Fluid; + import com.google.common.collect.Multimap; import com.google.common.collect.Multimaps; + import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; @@ -42,46 +71,20 @@ import gregtech.api.util.GT_OreDictUnificator; import gregtech.api.util.GT_Utility; import gregtech.api.world.GT_Worldgen; import gregtech.common.items.GT_IntegratedCircuit_Item; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.Comparator; -import java.util.HashMap; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Locale; -import java.util.Map; -import java.util.TreeMap; -import java.util.concurrent.ConcurrentHashMap; -import java.util.function.BiFunction; -import java.util.function.IntFunction; -import java.util.function.Predicate; -import java.util.stream.Collectors; -import net.minecraft.block.Block; -import net.minecraft.client.renderer.texture.IIconRegister; -import net.minecraft.creativetab.CreativeTabs; -import net.minecraft.entity.player.EntityPlayerMP; -import net.minecraft.item.Item; -import net.minecraft.item.ItemStack; -import net.minecraft.tileentity.TileEntity; -import net.minecraft.util.ChunkCoordinates; -import net.minecraft.world.World; -import net.minecraftforge.fluids.Fluid; /** - * Please do not include this File in your Mod-download as it ruins compatibility, like with the IC2-API - * You may just copy those Functions into your Code, or better call them via reflection. + * Please do not include this File in your Mod-download as it ruins compatibility, like with the IC2-API You may just + * copy those Functions into your Code, or better call them via reflection. *

- * The whole API is the basic construct of my Mod. Everything is dependent on it. - * I change things quite often so please don't include any File inside your Mod, even if it is an Interface. - * Since some Authors were stupid enough to break this simple Rule, I added Version checks to enforce it. + * The whole API is the basic construct of my Mod. Everything is dependent on it. I change things quite often so please + * don't include any File inside your Mod, even if it is an Interface. Since some Authors were stupid enough to break + * this simple Rule, I added Version checks to enforce it. *

- * In these Folders are many useful Functions. You can use them via reflection if you want. - * I know not everything is compilable due to APIs of other Mods, but these are easy to fix in your Setup. + * In these Folders are many useful Functions. You can use them via reflection if you want. I know not everything is + * compilable due to APIs of other Mods, but these are easy to fix in your Setup. *

- * You can use this to learn about Modding, but I would recommend simpler Mods. - * You may even copy-paste Code from these API-Files into your Mod, as I have nothing against that, but you should look exactly at what you are copying. + * You can use this to learn about Modding, but I would recommend simpler Mods. You may even copy-paste Code from these + * API-Files into your Mod, as I have nothing against that, but you should look exactly at what you are copying. * * @author Gregorius Techneticies */ @@ -117,39 +120,20 @@ public class GregTech_API { /** * A List of all registered MetaTileEntities *

- * 0 - 749 are used by GregTech. - * 750 - 999 are reserved for Alkalus. - * 1000 - 2047 are used by GregTech. - * 2048 - 2559 are reserved for OvermindDL. - * 2560 - 3071 are reserved for Immibis. - * 3072 - 3583 are reserved for LinusPhoenix. - * 3584 - 4095 are reserved for BloodyAsp. - * 4096 - 5095 are used for GregTech Frames. - * 5096 - 6099 are used for GregTech Pipes. - * 6100 - 8191 are used for GregTech Decoration Blocks. - * 8192 - 8703 are reserved for ZL123. - * 8704 - 9215 are reserved for Mr10Movie. - * 9216 - 9727 are used for GregTech Automation Machines. - * 9728 - 10239 are reserved for 28Smiles. - * 10240 - 10751 are reserved for VirMan. - * 10752 - 11263 are reserved for Briareos81. - * 11264 - 12000 are reserved for Quantum64. - * 12001 - 12500 are reserved for RedMage17. - * 12501 - 13000 are reserved for bartimaeusnek. - * 13001 - 13100 are reserved for Techlone - * 13101 - 13500 are reserved for kekzdealer - * 13501 - 14000 are reserved for glee8e. - * 14001 - 14100 are reserved for glowredman - * 14101 - 14200 are reserved for MuXiu1997. - * 14201 - 14300 are reserved for kuba6000. - * 14301 - 14999 are currently free. - * 15000 - 16999 are reserved for TecTech. - * 17000 - 29999 are currently free. - * 30000 - 31999 are reserved for Alkalus. - * 32001 - 32766 are reserved for Glod. + * 0 - 749 are used by GregTech. 750 - 999 are reserved for Alkalus. 1000 - 2047 are used by GregTech. 2048 - 2559 + * are reserved for OvermindDL. 2560 - 3071 are reserved for Immibis. 3072 - 3583 are reserved for LinusPhoenix. + * 3584 - 4095 are reserved for BloodyAsp. 4096 - 5095 are used for GregTech Frames. 5096 - 6099 are used for + * GregTech Pipes. 6100 - 8191 are used for GregTech Decoration Blocks. 8192 - 8703 are reserved for ZL123. 8704 - + * 9215 are reserved for Mr10Movie. 9216 - 9727 are used for GregTech Automation Machines. 9728 - 10239 are reserved + * for 28Smiles. 10240 - 10751 are reserved for VirMan. 10752 - 11263 are reserved for Briareos81. 11264 - 12000 are + * reserved for Quantum64. 12001 - 12500 are reserved for RedMage17. 12501 - 13000 are reserved for bartimaeusnek. + * 13001 - 13100 are reserved for Techlone 13101 - 13500 are reserved for kekzdealer 13501 - 14000 are reserved for + * glee8e. 14001 - 14100 are reserved for glowredman 14101 - 14200 are reserved for MuXiu1997. 14201 - 14300 are + * reserved for kuba6000. 14301 - 14999 are currently free. 15000 - 16999 are reserved for TecTech. 17000 - 29999 + * are currently free. 30000 - 31999 are reserved for Alkalus. 32001 - 32766 are reserved for Glod. *

- * Contact me if you need a free ID-Range, which doesn't conflict with other Addons. - * You could make an ID-Config, but we all know what "stupid" customers think about conflicting ID's + * Contact me if you need a free ID-Range, which doesn't conflict with other Addons. You could make an ID-Config, + * but we all know what "stupid" customers think about conflicting ID's */ public static final IMetaTileEntity[] METATILEENTITIES = new IMetaTileEntity[MAXIMUM_METATILE_IDS]; /** @@ -175,8 +159,7 @@ public class GregTech_API { /** * The Advanced Redstone Frequencies */ - public static final Map>> sAdvancedWirelessRedstone = - new ConcurrentHashMap<>(); + public static final Map>> sAdvancedWirelessRedstone = new ConcurrentHashMap<>(); /** * The IDSU Frequencies @@ -188,6 +171,7 @@ public class GregTech_API { public static final Map sBookList = new ConcurrentHashMap<>(); /** * The List of all Sounds used in GT, indices are in the static Block at the bottom + * * @deprecated Use {@link SoundResource} */ @Deprecated @@ -195,37 +179,30 @@ 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<>(), + 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<>(); /** * 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<>(), + 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 HashMap<>(); - private static final Map, BiFunction> - sRealCircuitProgrammerList = new LinkedHashMap<>(); - public static final Map, BiFunction> - sCircuitProgrammerList = Collections.unmodifiableMap(sRealCircuitProgrammerList); + private static final Map, BiFunction> sRealCircuitProgrammerList = new LinkedHashMap<>(); + 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. - * Mystcraft Dimensions and other Dimensional Things should be allowed. - * Mystcraft and Twilight Forest are automatically considered a Dimension, without being in this List. + * Mystcraft Dimensions and other Dimensional Things should be allowed. Mystcraft and Twilight Forest are + * automatically considered a Dimension, without being in this List. */ public static final Collection sDimensionalList = new HashSet<>(); /** @@ -256,38 +233,28 @@ public class GregTech_API { */ public static IThaumcraftCompat sThaumcraftCompat; /** - * These Lists are getting executed at their respective timings. Useful if you have to do things right before/after I do them, without having to control the load order. Add your "Commands" in the Constructor or in a static Code Block of your Mods Main Class. These are not Threaded, I just use a native Java Interface for their execution. Implement just the Method run() and everything should work + * These Lists are getting executed at their respective timings. Useful if you have to do things right before/after + * I do them, without having to control the load order. Add your "Commands" in the Constructor or in a static Code + * Block of your Mods Main Class. These are not Threaded, I just use a native Java Interface for their execution. + * 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<>(); + 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<>(); /** - * 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. + * 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. */ @SideOnly(Side.CLIENT) public static IIconRegister sBlockIcons, sItemIcons; /** * The Configuration Objects */ - public static GT_Config sRecipeFile = null, - sMachineFile = null, - sWorldgenFile = null, - sMaterialProperties = null, - sMaterialComponents = null, - sUnification = null, - sSpecialFile = null, - sClientDataFile, - sOPStuff = null; + public static GT_Config sRecipeFile = null, sMachineFile = null, sWorldgenFile = null, sMaterialProperties = null, + sMaterialComponents = null, sUnification = null, sSpecialFile = null, sClientDataFile, sOPStuff = null; public static int TICKS_FOR_LAG_AVERAGING = 25, MILLISECOND_THRESHOLD_UNTIL_LAG_WARNING = 100; /** @@ -295,65 +262,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; + public static Block sBlockOres1, sBlockOresUb1, sBlockOresUb2, sBlockOresUb3, + /* 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; + public static Block sBlockCasings1, sBlockCasings2, sBlockCasings3, sBlockCasings4, sBlockCasings5, sBlockCasings6, + 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; + 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; public static int mEUtoRF = 360, mRFtoEU = 20; @@ -368,13 +294,8 @@ 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; + public static boolean sUnificationEntriesRegistered = false, sPreloadStarted = false, sPreloadFinished = false, + sLoadStarted = false, sLoadFinished = false, sPostloadStarted = false, sPostloadFinished = false; private static Class sBaseMetaTileEntityClass = null; @@ -388,31 +309,36 @@ public class GregTech_API { /** * You want OreDict-Unification for YOUR Mod/Addon, when GregTech is installed? This Function is especially for YOU. - * Call this Function after the load-Phase, as I register the most of the Unification at that Phase (Redpowers Storageblocks are registered at postload). - * A recommended use of this Function is inside your Recipe-System itself (if you have one), as the unification then makes 100% sure, that every added non-unificated Output gets automatically unificated. + * Call this Function after the load-Phase, as I register the most of the Unification at that Phase (Redpowers + * Storageblocks are registered at postload). A recommended use of this Function is inside your Recipe-System itself + * (if you have one), as the unification then makes 100% sure, that every added non-unificated Output gets + * automatically unificated. *

- * I will personally make sure, that only common prefixes of Ores get registered at the Unificator, as of now there are: - * pulp, dust, dustSmall, ingot, nugget, gem, ore and block - * If another Mod-Author messes these up, then it's not my fault, and it's especially not your fault. As these are commonly used prefixes. + * I will personally make sure, that only common prefixes of Ores get registered at the Unificator, as of now there + * are: pulp, dust, dustSmall, ingot, nugget, gem, ore and block If another Mod-Author messes these up, then it's + * not my fault, and it's especially not your fault. As these are commonly used prefixes. *

- * This Unificator-API-Function uses the same Functions I use, for unificating Items. So if there is something messed up (very unlikely), then everything is messed up. + * This Unificator-API-Function uses the same Functions I use, for unificating Items. So if there is something + * messed up (very unlikely), then everything is messed up. *

* You shouldn't use this to unificate the Inputs of your Recipes, this is only meant for the Outputs. * * @param aOreStack the Stack you want to get unificated. It is stackSize Sensitive. - * @return Either an unificated Stack or the stack you toss in, but it should never be null, unless you throw a Null-Pointer into it. + * @return Either an unificated Stack or the stack you toss in, but it should never be null, unless you throw a + * Null-Pointer into it. */ 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."); + 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."); return GT_OreDictUnificator.get(true, aOreStack); } /** - * Causes a Machineblock Update - * This update will cause surrounding MultiBlock Machines to update their Configuration. - * You should call this Function in @Block.breakBlock and in @Block.onBlockAdded of your Machine. + * Causes a Machineblock Update This update will cause surrounding MultiBlock Machines to update their + * Configuration. You should call this Function in @Block.breakBlock and in @Block.onBlockAdded of your Machine. * * @param aWorld is being the World * @param aX is the X-Coord of the update causing Block @@ -437,12 +363,12 @@ public class GregTech_API { } /** - * Adds a Multi-Machine Block, like my Machine Casings for example. - * You should call @causeMachineUpdate in @Block.breakBlock and in {@link Block#onBlockAdded} of your registered Block. - * You don't need to register TileEntities which implement {@link IMachineBlockUpdateable} + * Adds a Multi-Machine Block, like my Machine Casings for example. You should call @causeMachineUpdate + * in @Block.breakBlock and in {@link Block#onBlockAdded} of your registered Block. You don't need to register + * TileEntities which implement {@link IMachineBlockUpdateable} * - * @param aBlock the Block - * @param aMeta the Metadata of the Blocks as Bitmask! -1 or ~0 for all Meta-values + * @param aBlock the Block + * @param aMeta the Metadata of the Blocks as Bitmask! -1 or ~0 for all Meta-values */ @SuppressWarnings("UnusedReturnValue") // Retains API method signature public static boolean registerMachineBlock(Block aBlock, int aMeta) { @@ -483,233 +409,238 @@ public class GregTech_API { public static Item constructCoolantCellItem(String aUnlocalized, String aEnglish, int aMaxStore) { try { return new GT_CoolantCellIC_Item(aUnlocalized, aEnglish, aMaxStore); - // return - // (Item)Class.forName("gregtech.api.items.GT_CoolantCellIC_Item").getConstructors()[0].newInstance(aUnlocalized, aEnglish, aMaxStore); + // return + // (Item)Class.forName("gregtech.api.items.GT_CoolantCellIC_Item").getConstructors()[0].newInstance(aUnlocalized, + // aEnglish, aMaxStore); } catch (Throwable e) { - /*Do nothing*/ + /* Do nothing */ } try { return new GT_CoolantCell_Item(aUnlocalized, aEnglish, aMaxStore); - // return - // (Item)Class.forName("gregtech.api.items.GT_CoolantCell_Item").getConstructors()[0].newInstance(aUnlocalized, aEnglish, aMaxStore); + // return + // (Item)Class.forName("gregtech.api.items.GT_CoolantCell_Item").getConstructors()[0].newInstance(aUnlocalized, + // aEnglish, aMaxStore); } catch (Throwable e) { - /*Do nothing*/ + /* 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) { + 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) { 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); + return (Item) Class.forName("gregtechmod.api.items.GT_EnergyArmorIC_Item").getConstructors()[0].newInstance( + aUnlocalized, + aEnglish, + aCharge, + aTransfer, + aTier, + aDamageEnergyCost, + aSpecials, + aArmorAbsorbtionPercentage, + aChargeProvider, + aType, + aArmorIndex); } catch (Throwable e) { - /*Do nothing*/ + /* 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); + return (Item) Class.forName("gregtechmod.api.items.GT_EnergyArmor_Item").getConstructors()[0].newInstance( + aUnlocalized, + aEnglish, + aCharge, + aTransfer, + aTier, + aDamageEnergyCost, + aSpecials, + aArmorAbsorbtionPercentage, + aChargeProvider, + aType, + aArmorIndex); } catch (Throwable e) { - /*Do nothing*/ + /* 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) { + public static Item constructElectricEnergyStorageItem(String aUnlocalized, String aEnglish, int aCharge, + int aTransfer, int aTier, int aEmptyID, int aFullID) { try { - return (Item) Class.forName("gregtechmod.api.items.GT_EnergyStoreIC_Item") - .getConstructors()[0] + return (Item) Class.forName("gregtechmod.api.items.GT_EnergyStoreIC_Item").getConstructors()[0] .newInstance(aUnlocalized, aEnglish, aCharge, aTransfer, aTier, aEmptyID, aFullID); } catch (Throwable e) { - /*Do nothing*/ + /* Do nothing */ } try { - return (Item) Class.forName("gregtechmod.api.items.GT_EnergyStore_Item") - .getConstructors()[0] + return (Item) Class.forName("gregtechmod.api.items.GT_EnergyStore_Item").getConstructors()[0] .newInstance(aUnlocalized, aEnglish, aCharge, aTransfer, aTier, aEmptyID, aFullID); } catch (Throwable e) { - /*Do nothing*/ + /* 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) { + public static GT_Tool_Item constructHardHammerItem(String aUnlocalized, String aEnglish, int aMaxDamage, + int aEntityDamage) { try { - return (GT_Tool_Item) Class.forName("gregtechmod.api.items.GT_HardHammer_Item") - .getConstructors()[0] + return (GT_Tool_Item) Class.forName("gregtechmod.api.items.GT_HardHammer_Item").getConstructors()[0] .newInstance(aUnlocalized, aEnglish, aMaxDamage, aEntityDamage); } catch (Throwable e) { - /*Do nothing*/ + /* 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) { + public static GT_Tool_Item constructCrowbarItem(String aUnlocalized, String aEnglish, int aMaxDamage, + int aEntityDamage) { try { - return (GT_Tool_Item) Class.forName("gregtechmod.api.items.GT_CrowbarRC_Item") - .getConstructors()[0] + return (GT_Tool_Item) Class.forName("gregtechmod.api.items.GT_CrowbarRC_Item").getConstructors()[0] .newInstance(aUnlocalized, aEnglish, aMaxDamage, aEntityDamage); } catch (Throwable e) { - /*Do nothing*/ + /* Do nothing */ } try { - return (GT_Tool_Item) Class.forName("gregtechmod.api.items.GT_Crowbar_Item") - .getConstructors()[0] + return (GT_Tool_Item) Class.forName("gregtechmod.api.items.GT_Crowbar_Item").getConstructors()[0] .newInstance(aUnlocalized, aEnglish, aMaxDamage, aEntityDamage); } catch (Throwable e) { - /*Do nothing*/ + /* 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) { + public static GT_Tool_Item constructWrenchItem(String aUnlocalized, String aEnglish, int aMaxDamage, + int aEntityDamage, int aDisChargedGTID) { try { - return (GT_Tool_Item) Class.forName("gregtechmod.api.items.GT_Wrench_Item") - .getConstructors()[0] + return (GT_Tool_Item) Class.forName("gregtechmod.api.items.GT_Wrench_Item").getConstructors()[0] .newInstance(aUnlocalized, aEnglish, aMaxDamage, aEntityDamage, aDisChargedGTID); } catch (Throwable e) { - /*Do nothing*/ + /* 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) { + public static GT_Tool_Item constructElectricScrewdriverItem(String aUnlocalized, String aEnglish, int aMaxDamage, + int aEntityDamage, int aDisChargedGTID) { try { - return (GT_Tool_Item) Class.forName("gregtechmod.api.items.GT_ScrewdriverIC_Item") - .getConstructors()[0] + return (GT_Tool_Item) Class.forName("gregtechmod.api.items.GT_ScrewdriverIC_Item").getConstructors()[0] .newInstance(aUnlocalized, aEnglish, aMaxDamage, aEntityDamage, aDisChargedGTID); } catch (Throwable e) { - /*Do nothing*/ + /* 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) { + public static GT_Tool_Item constructElectricWrenchItem(String aUnlocalized, String aEnglish, int aMaxDamage, + int aEntityDamage, int aDisChargedGTID) { try { - return (GT_Tool_Item) Class.forName("gregtechmod.api.items.GT_WrenchIC_Item") - .getConstructors()[0] + return (GT_Tool_Item) Class.forName("gregtechmod.api.items.GT_WrenchIC_Item").getConstructors()[0] .newInstance(aUnlocalized, aEnglish, aMaxDamage, aEntityDamage, aDisChargedGTID); } catch (Throwable e) { - /*Do nothing*/ + /* 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, + public static GT_Tool_Item constructElectricSawItem(String aUnlocalized, String aEnglish, int aMaxDamage, + 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); + return (GT_Tool_Item) Class.forName("gregtechmod.api.items.GT_SawIC_Item").getConstructors()[0].newInstance( + aUnlocalized, + aEnglish, + aMaxDamage, + aEntityDamage, + aToolQuality, + aToolStrength, + aEnergyConsumptionPerBlockBreak, + aDisChargedGTID); } catch (Throwable e) { - /*Do nothing*/ + /* 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, + public static GT_Tool_Item constructElectricDrillItem(String aUnlocalized, String aEnglish, int aMaxDamage, + 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] + return (GT_Tool_Item) Class.forName("gregtechmod.api.items.GT_DrillIC_Item").getConstructors()[0] .newInstance( aUnlocalized, aEnglish, @@ -720,53 +651,67 @@ public class GregTech_API { aEnergyConsumptionPerBlockBreak, aDisChargedGTID); } catch (Throwable e) { - /*Do nothing*/ + /* 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) { + public static GT_Tool_Item constructElectricSolderingToolItem(String aUnlocalized, String aEnglish, int aMaxDamage, + int aEntityDamage, int aDisChargedGTID) { try { - return (GT_Tool_Item) Class.forName("gregtechmod.api.items.GT_SolderingToolIC_Item") - .getConstructors()[0] + return (GT_Tool_Item) Class.forName("