aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/gregtech/api/enums/TAE.java4
-rw-r--r--src/main/java/gregtech/api/util/FishPondFakeRecipe.java31
-rw-r--r--src/main/java/gregtech/api/util/GasSpargingRecipe.java22
-rw-r--r--src/main/java/gregtech/api/util/GasSpargingRecipeMap.java20
-rw-r--r--src/main/java/gregtech/api/util/HotFuel.java42
-rw-r--r--src/main/java/gregtech/api/util/SemiFluidFuelHandler.java87
-rw-r--r--src/main/java/gtPlusPlus/GTplusplus.java134
-rw-r--r--src/main/java/gtPlusPlus/api/objects/data/AutoMap.java8
-rw-r--r--src/main/java/gtPlusPlus/api/objects/data/WeightedCollection.java3
-rw-r--r--src/main/java/gtPlusPlus/api/objects/minecraft/BTF_FluidTank.java16
-rw-r--r--src/main/java/gtPlusPlus/api/objects/minecraft/BTF_Inventory.java19
-rw-r--r--src/main/java/gtPlusPlus/api/objects/minecraft/BlockPos.java4
-rw-r--r--src/main/java/gtPlusPlus/api/objects/minecraft/FluidGT6.java2
-rw-r--r--src/main/java/gtPlusPlus/api/objects/minecraft/ShapedRecipe.java46
-rw-r--r--src/main/java/gtPlusPlus/api/recipe/ChemicalPlantFrontend.java4
-rw-r--r--src/main/java/gtPlusPlus/api/recipe/GTPPRecipeCategories.java10
-rw-r--r--src/main/java/gtPlusPlus/api/recipe/GTPPRecipeMaps.java276
-rw-r--r--src/main/java/gtPlusPlus/api/recipe/MillingFrontend.java4
-rw-r--r--src/main/java/gtPlusPlus/api/recipe/TGSFrontend.java29
-rw-r--r--src/main/java/gtPlusPlus/api/recipe/ThermalBoilerFrontend.java13
-rw-r--r--src/main/java/gtPlusPlus/core/block/base/BasicBlock.java5
-rw-r--r--src/main/java/gtPlusPlus/core/block/base/BasicTileBlockWithTooltip.java27
-rw-r--r--src/main/java/gtPlusPlus/core/block/base/BlockBaseFluid.java33
-rw-r--r--src/main/java/gtPlusPlus/core/block/base/BlockBaseModular.java74
-rw-r--r--src/main/java/gtPlusPlus/core/block/base/BlockBaseOre.java42
-rw-r--r--src/main/java/gtPlusPlus/core/block/general/BlockCompressedObsidian.java2
-rw-r--r--src/main/java/gtPlusPlus/core/block/general/BlockSuperLight.java12
-rw-r--r--src/main/java/gtPlusPlus/core/block/general/FluidTankInfinite.java26
-rw-r--r--src/main/java/gtPlusPlus/core/block/general/HellFire.java156
-rw-r--r--src/main/java/gtPlusPlus/core/block/general/LightGlass.java2
-rw-r--r--src/main/java/gtPlusPlus/core/block/general/MiningExplosives.java57
-rw-r--r--src/main/java/gtPlusPlus/core/block/general/antigrief/BlockWitherProof.java20
-rw-r--r--src/main/java/gtPlusPlus/core/block/general/fluids/BlockFluidSludge.java10
-rw-r--r--src/main/java/gtPlusPlus/core/block/machine/CircuitProgrammer.java18
-rw-r--r--src/main/java/gtPlusPlus/core/block/machine/DecayablesChest.java10
-rw-r--r--src/main/java/gtPlusPlus/core/block/machine/FishTrap.java12
-rw-r--r--src/main/java/gtPlusPlus/core/block/machine/Machine_PestKiller.java12
-rw-r--r--src/main/java/gtPlusPlus/core/block/machine/Machine_PooCollector.java14
-rw-r--r--src/main/java/gtPlusPlus/core/block/machine/Machine_ProjectTable.java8
-rw-r--r--src/main/java/gtPlusPlus/core/block/machine/Machine_SuperJukebox.java108
-rw-r--r--src/main/java/gtPlusPlus/core/block/machine/VolumetricFlaskSetter.java20
-rw-r--r--src/main/java/gtPlusPlus/core/client/CustomTextureSet.java4
-rw-r--r--src/main/java/gtPlusPlus/core/client/model/ModelSickBlaze.java4
-rw-r--r--src/main/java/gtPlusPlus/core/client/model/ModelStaballoyConstruct.java30
-rw-r--r--src/main/java/gtPlusPlus/core/client/renderer/CustomItemBlockRenderer.java4
-rw-r--r--src/main/java/gtPlusPlus/core/client/renderer/CustomOreBlockRenderer.java1149
-rw-r--r--src/main/java/gtPlusPlus/core/client/renderer/RenderDecayChest.java18
-rw-r--r--src/main/java/gtPlusPlus/core/client/renderer/RenderMiningExplosivesPrimed.java16
-rw-r--r--src/main/java/gtPlusPlus/core/client/renderer/RenderSickBlaze.java10
-rw-r--r--src/main/java/gtPlusPlus/core/client/renderer/RenderStaballoyConstruct.java56
-rw-r--r--src/main/java/gtPlusPlus/core/client/renderer/RenderToxinball.java4
-rw-r--r--src/main/java/gtPlusPlus/core/client/renderer/particle/EntityDropParticleFX.java32
-rw-r--r--src/main/java/gtPlusPlus/core/commands/CommandEnableDebugWhileRunning.java229
-rw-r--r--src/main/java/gtPlusPlus/core/commands/CommandMath.java13
-rw-r--r--src/main/java/gtPlusPlus/core/common/CommonProxy.java27
-rw-r--r--src/main/java/gtPlusPlus/core/common/compat/COMPAT_IC2.java40
-rw-r--r--src/main/java/gtPlusPlus/core/common/compat/COMPAT_Thaumcraft.java17
-rw-r--r--src/main/java/gtPlusPlus/core/common/compat/COMPAT_Witchery.java6
-rw-r--r--src/main/java/gtPlusPlus/core/config/ConfigHandler.java849
-rw-r--r--src/main/java/gtPlusPlus/core/container/Container_CircuitProgrammer.java4
-rw-r--r--src/main/java/gtPlusPlus/core/container/Container_DecayablesChest.java2
-rw-r--r--src/main/java/gtPlusPlus/core/container/Container_FishTrap.java2
-rw-r--r--src/main/java/gtPlusPlus/core/container/Container_PestKiller.java5
-rw-r--r--src/main/java/gtPlusPlus/core/container/Container_ProjectTable.java11
-rw-r--r--src/main/java/gtPlusPlus/core/container/Container_SuperJukebox.java6
-rw-r--r--src/main/java/gtPlusPlus/core/container/Container_VolumetricFlaskSetter.java2
-rw-r--r--src/main/java/gtPlusPlus/core/entity/EntityPrimedMiningExplosive.java422
-rw-r--r--src/main/java/gtPlusPlus/core/entity/InternalEntityRegistry.java70
-rw-r--r--src/main/java/gtPlusPlus/core/entity/monster/EntitySickBlaze.java42
-rw-r--r--src/main/java/gtPlusPlus/core/entity/monster/EntityStaballoyConstruct.java278
-rw-r--r--src/main/java/gtPlusPlus/core/entity/projectile/EntityLightningAttack.java27
-rw-r--r--src/main/java/gtPlusPlus/core/entity/projectile/EntityToxinball.java46
-rw-r--r--src/main/java/gtPlusPlus/core/entity/projectile/EntityToxinballSmall.java2
-rw-r--r--src/main/java/gtPlusPlus/core/fluids/FluidRegistryHandler.java6
-rw-r--r--src/main/java/gtPlusPlus/core/gui/beta/Gui_ID_Registry.java4
-rw-r--r--src/main/java/gtPlusPlus/core/gui/machine/GUI_CircuitProgrammer.java4
-rw-r--r--src/main/java/gtPlusPlus/core/gui/machine/GUI_DecayablesChest.java4
-rw-r--r--src/main/java/gtPlusPlus/core/gui/machine/GUI_FishTrap.java4
-rw-r--r--src/main/java/gtPlusPlus/core/gui/machine/GUI_PestKiller.java34
-rw-r--r--src/main/java/gtPlusPlus/core/gui/machine/GUI_ProjectTable.java4
-rw-r--r--src/main/java/gtPlusPlus/core/gui/machine/GUI_SuperJukebox.java4
-rw-r--r--src/main/java/gtPlusPlus/core/gui/machine/GUI_VolumetricFlaskSetter.java23
-rw-r--r--src/main/java/gtPlusPlus/core/gui/widget/GuiValueField.java32
-rw-r--r--src/main/java/gtPlusPlus/core/handler/AchievementHandler.java304
-rw-r--r--src/main/java/gtPlusPlus/core/handler/BookHandler.java749
-rw-r--r--src/main/java/gtPlusPlus/core/handler/BurnableFuelHandler.java4
-rw-r--r--src/main/java/gtPlusPlus/core/handler/COMPAT_HANDLER.java12
-rw-r--r--src/main/java/gtPlusPlus/core/handler/GuiHandler.java38
-rw-r--r--src/main/java/gtPlusPlus/core/handler/PacketHandler.java6
-rw-r--r--src/main/java/gtPlusPlus/core/handler/Recipes/DecayableRecipe.java2
-rw-r--r--src/main/java/gtPlusPlus/core/handler/events/CustomMovementHandler.java17
-rw-r--r--src/main/java/gtPlusPlus/core/handler/events/EnderDragonDeathHandler.java8
-rw-r--r--src/main/java/gtPlusPlus/core/handler/events/EntityDeathHandler.java23
-rw-r--r--src/main/java/gtPlusPlus/core/handler/events/PlayerSleepEventHandler.java10
-rw-r--r--src/main/java/gtPlusPlus/core/handler/events/SneakManager.java4
-rw-r--r--src/main/java/gtPlusPlus/core/handler/workbench/Workbench_CraftingHandler.java15
-rw-r--r--src/main/java/gtPlusPlus/core/item/ModItems.java379
-rw-r--r--src/main/java/gtPlusPlus/core/item/base/BaseItemBurnable.java2
-rw-r--r--src/main/java/gtPlusPlus/core/item/base/BaseItemColourable.java14
-rw-r--r--src/main/java/gtPlusPlus/core/item/base/BaseItemComponent.java120
-rw-r--r--src/main/java/gtPlusPlus/core/item/base/BaseItemDamageable.java18
-rw-r--r--src/main/java/gtPlusPlus/core/item/base/BaseItemTCShard.java6
-rw-r--r--src/main/java/gtPlusPlus/core/item/base/BaseItemTickable.java26
-rw-r--r--src/main/java/gtPlusPlus/core/item/base/BasicSpawnEgg.java18
-rw-r--r--src/main/java/gtPlusPlus/core/item/base/CoreItem.java106
-rw-r--r--src/main/java/gtPlusPlus/core/item/base/cell/BaseItemCell.java6
-rw-r--r--src/main/java/gtPlusPlus/core/item/base/cell/BaseItemPlasmaCell.java2
-rw-r--r--src/main/java/gtPlusPlus/core/item/base/dusts/BaseItemDust.java2
-rw-r--r--src/main/java/gtPlusPlus/core/item/base/dusts/BaseItemDustUnique.java38
-rw-r--r--src/main/java/gtPlusPlus/core/item/base/ingots/BaseItemIngotHot.java15
-rw-r--r--src/main/java/gtPlusPlus/core/item/base/ingots/BaseItemIngot_OLD.java21
-rw-r--r--src/main/java/gtPlusPlus/core/item/base/itemblock/ItemBlockGtBlock.java15
-rw-r--r--src/main/java/gtPlusPlus/core/item/base/itemblock/ItemBlockOre.java31
-rw-r--r--src/main/java/gtPlusPlus/core/item/base/misc/BaseItemMisc.java13
-rw-r--r--src/main/java/gtPlusPlus/core/item/base/misc/BaseItemParticle.java20
-rw-r--r--src/main/java/gtPlusPlus/core/item/base/ore/BaseOreComponent.java35
-rw-r--r--src/main/java/gtPlusPlus/core/item/base/plates/BaseItemPlate.java12
-rw-r--r--src/main/java/gtPlusPlus/core/item/base/plates/BaseItemPlate_OLD.java9
-rw-r--r--src/main/java/gtPlusPlus/core/item/bauble/BaseBauble.java10
-rw-r--r--src/main/java/gtPlusPlus/core/item/bauble/BatteryPackBaseBauble.java62
-rw-r--r--src/main/java/gtPlusPlus/core/item/bauble/ElectricBaseBauble.java59
-rw-r--r--src/main/java/gtPlusPlus/core/item/bauble/FireProtectionBauble.java4
-rw-r--r--src/main/java/gtPlusPlus/core/item/chemistry/AgriculturalChem.java251
-rw-r--r--src/main/java/gtPlusPlus/core/item/chemistry/CoalTar.java291
-rw-r--r--src/main/java/gtPlusPlus/core/item/chemistry/GenericChem.java824
-rw-r--r--src/main/java/gtPlusPlus/core/item/chemistry/IonParticles.java24
-rw-r--r--src/main/java/gtPlusPlus/core/item/chemistry/MilledOreProcessing.java700
-rw-r--r--src/main/java/gtPlusPlus/core/item/chemistry/NuclearChem.java77
-rw-r--r--src/main/java/gtPlusPlus/core/item/chemistry/RocketFuels.java525
-rw-r--r--src/main/java/gtPlusPlus/core/item/chemistry/StandardBaseParticles.java47
-rw-r--r--src/main/java/gtPlusPlus/core/item/chemistry/general/ItemGenericChemBase.java32
-rw-r--r--src/main/java/gtPlusPlus/core/item/circuit/GTPP_IntegratedCircuit_Item.java56
-rw-r--r--src/main/java/gtPlusPlus/core/item/crafting/ItemDummyResearch.java12
-rw-r--r--src/main/java/gtPlusPlus/core/item/food/BaseItemMetaFood.java211
-rw-r--r--src/main/java/gtPlusPlus/core/item/general/BufferCore.java18
-rw-r--r--src/main/java/gtPlusPlus/core/item/general/ItemBlueprint.java46
-rw-r--r--src/main/java/gtPlusPlus/core/item/general/ItemCloakingDevice.java30
-rw-r--r--src/main/java/gtPlusPlus/core/item/general/ItemGenericToken.java44
-rw-r--r--src/main/java/gtPlusPlus/core/item/general/ItemHalfCompleteCasings.java2
-rw-r--r--src/main/java/gtPlusPlus/core/item/general/ItemHealingDevice.java124
-rw-r--r--src/main/java/gtPlusPlus/core/item/general/ItemLavaFilter.java18
-rw-r--r--src/main/java/gtPlusPlus/core/item/general/ItemMagicFeather.java35
-rw-r--r--src/main/java/gtPlusPlus/core/item/general/books/ItemBaseBook.java19
-rw-r--r--src/main/java/gtPlusPlus/core/item/general/chassis/ItemDehydratorCoil.java2
-rw-r--r--src/main/java/gtPlusPlus/core/item/general/chassis/ItemDehydratorCoilWire.java2
-rw-r--r--src/main/java/gtPlusPlus/core/item/general/spawn/ItemCustomSpawnEgg.java39
-rw-r--r--src/main/java/gtPlusPlus/core/item/materials/DustDecayable.java2
-rw-r--r--src/main/java/gtPlusPlus/core/item/tool/misc/GregtechPump.java212
-rw-r--r--src/main/java/gtPlusPlus/core/item/wearable/armour/ArmourLoader.java2
-rw-r--r--src/main/java/gtPlusPlus/core/item/wearable/armour/tinfoil/ArmourTinFoilHat.java16
-rw-r--r--src/main/java/gtPlusPlus/core/item/wearable/base/BaseItemWearable.java4
-rw-r--r--src/main/java/gtPlusPlus/core/item/wearable/hazmat/ItemArmorHazmatEx.java8
-rw-r--r--src/main/java/gtPlusPlus/core/lib/CORE.java13
-rw-r--r--src/main/java/gtPlusPlus/core/material/ALLOY.java1386
-rw-r--r--src/main/java/gtPlusPlus/core/material/ELEMENT.java930
-rw-r--r--src/main/java/gtPlusPlus/core/material/MISC_MATERIALS.java955
-rw-r--r--src/main/java/gtPlusPlus/core/material/Material.java647
-rw-r--r--src/main/java/gtPlusPlus/core/material/MaterialGenerator.java47
-rw-r--r--src/main/java/gtPlusPlus/core/material/MaterialStack.java5
-rw-r--r--src/main/java/gtPlusPlus/core/material/NONMATERIAL.java4
-rw-r--r--src/main/java/gtPlusPlus/core/material/ORES.java1238
-rw-r--r--src/main/java/gtPlusPlus/core/material/Particle.java8
-rw-r--r--src/main/java/gtPlusPlus/core/material/nuclear/FLUORIDES.java351
-rw-r--r--src/main/java/gtPlusPlus/core/material/nuclear/NUCLIDE.java496
-rw-r--r--src/main/java/gtPlusPlus/core/network/packet/Packet_VolumetricFlaskGui.java2
-rw-r--r--src/main/java/gtPlusPlus/core/network/packet/Packet_VolumetricFlaskGui2.java2
-rw-r--r--src/main/java/gtPlusPlus/core/proxy/ClientProxy.java10
-rw-r--r--src/main/java/gtPlusPlus/core/recipe/RECIPES_GREGTECH.java2221
-rw-r--r--src/main/java/gtPlusPlus/core/recipe/RECIPES_General.java460
-rw-r--r--src/main/java/gtPlusPlus/core/recipe/RECIPES_LaserEngraver.java106
-rw-r--r--src/main/java/gtPlusPlus/core/recipe/RECIPES_Machines.java3792
-rw-r--r--src/main/java/gtPlusPlus/core/recipe/RECIPES_RareEarthProcessing.java111
-rw-r--r--src/main/java/gtPlusPlus/core/recipe/RECIPES_SeleniumProcessing.java163
-rw-r--r--src/main/java/gtPlusPlus/core/recipe/RECIPE_Batteries.java60
-rw-r--r--src/main/java/gtPlusPlus/core/recipe/ShapedRecipeObject.java24
-rw-r--r--src/main/java/gtPlusPlus/core/recipe/common/CI.java133
-rw-r--r--src/main/java/gtPlusPlus/core/slots/SlotCrafting.java20
-rw-r--r--src/main/java/gtPlusPlus/core/slots/SlotCraftingNoCollect.java7
-rw-r--r--src/main/java/gtPlusPlus/core/slots/SlotDataStick.java2
-rw-r--r--src/main/java/gtPlusPlus/core/slots/SlotIntegratedCircuit.java22
-rw-r--r--src/main/java/gtPlusPlus/core/tileentities/base/TileEntityBase.java226
-rw-r--r--src/main/java/gtPlusPlus/core/tileentities/general/TileEntityCircuitProgrammer.java40
-rw-r--r--src/main/java/gtPlusPlus/core/tileentities/general/TileEntityDecayablesChest.java74
-rw-r--r--src/main/java/gtPlusPlus/core/tileentities/general/TileEntityFishTrap.java44
-rw-r--r--src/main/java/gtPlusPlus/core/tileentities/general/TileEntityInfiniteFluid.java16
-rw-r--r--src/main/java/gtPlusPlus/core/tileentities/general/TileEntityVolumetricFlaskSetter.java59
-rw-r--r--src/main/java/gtPlusPlus/core/tileentities/machines/TileEntityAdvPooCollector.java13
-rw-r--r--src/main/java/gtPlusPlus/core/tileentities/machines/TileEntityBaseFluidCollector.java18
-rw-r--r--src/main/java/gtPlusPlus/core/tileentities/machines/TileEntityPestKiller.java90
-rw-r--r--src/main/java/gtPlusPlus/core/tileentities/machines/TileEntityProjectTable.java21
-rw-r--r--src/main/java/gtPlusPlus/core/util/MovingAverageLong.java12
-rw-r--r--src/main/java/gtPlusPlus/core/util/Utils.java112
-rw-r--r--src/main/java/gtPlusPlus/core/util/data/AES.java5
-rw-r--r--src/main/java/gtPlusPlus/core/util/data/LocaleUtils.java7
-rw-r--r--src/main/java/gtPlusPlus/core/util/data/StringUtils.java39
-rw-r--r--src/main/java/gtPlusPlus/core/util/math/MathUtils.java2
-rw-r--r--src/main/java/gtPlusPlus/core/util/minecraft/EntityUtils.java89
-rw-r--r--src/main/java/gtPlusPlus/core/util/minecraft/FluidUtils.java363
-rw-r--r--src/main/java/gtPlusPlus/core/util/minecraft/InventoryUtils.java18
-rw-r--r--src/main/java/gtPlusPlus/core/util/minecraft/ItemUtils.java243
-rw-r--r--src/main/java/gtPlusPlus/core/util/minecraft/MaterialUtils.java94
-rw-r--r--src/main/java/gtPlusPlus/core/util/minecraft/MiningUtils.java31
-rw-r--r--src/main/java/gtPlusPlus/core/util/minecraft/PlayerUtils.java32
-rw-r--r--src/main/java/gtPlusPlus/core/util/minecraft/RecipeUtils.java127
-rw-r--r--src/main/java/gtPlusPlus/core/util/minecraft/gregtech/PollutionUtils.java4
-rw-r--r--src/main/java/gtPlusPlus/core/util/recipe/GT_RecipeUtils.java31
-rw-r--r--src/main/java/gtPlusPlus/core/util/recipe/RecipeHashStrat.java12
-rw-r--r--src/main/java/gtPlusPlus/core/util/reflect/AddGregtechRecipe.java27
-rw-r--r--src/main/java/gtPlusPlus/core/util/reflect/ReflectionUtils.java67
-rw-r--r--src/main/java/gtPlusPlus/core/util/sys/KeyboardUtils.java2
-rw-r--r--src/main/java/gtPlusPlus/core/world/explosions/ExplosionHandler.java4
-rw-r--r--src/main/java/gtPlusPlus/core/world/explosions/MiningExplosion.java380
-rw-r--r--src/main/java/gtPlusPlus/everglades/GTplusplus_Everglades.java16
-rw-r--r--src/main/java/gtPlusPlus/everglades/biome/BiomeGenerator_Custom.java40
-rw-r--r--src/main/java/gtPlusPlus/everglades/block/BlockDarkWorldPollutedDirt.java2
-rw-r--r--src/main/java/gtPlusPlus/everglades/block/BlockEvergladesPortal.java46
-rw-r--r--src/main/java/gtPlusPlus/everglades/block/DarkWorldContentLoader.java11
-rw-r--r--src/main/java/gtPlusPlus/everglades/chunk/ChunkProviderModded.java172
-rw-r--r--src/main/java/gtPlusPlus/everglades/gen/WorldGenMinable_Custom.java11
-rw-r--r--src/main/java/gtPlusPlus/everglades/gen/gt/WorldGen_GT.java10
-rw-r--r--src/main/java/gtPlusPlus/everglades/gen/gt/WorldGen_GT_Base.java353
-rw-r--r--src/main/java/gtPlusPlus/everglades/gen/gt/WorldGen_GT_Ore_Layer.java425
-rw-r--r--src/main/java/gtPlusPlus/everglades/gen/gt/WorldGen_Ores.java380
-rw-r--r--src/main/java/gtPlusPlus/everglades/item/ItemEvergladesPortalTrigger.java25
-rw-r--r--src/main/java/gtPlusPlus/everglades/world/TeleporterDimensionMod.java48
-rw-r--r--src/main/java/gtPlusPlus/everglades/world/WorldChunkManagerCustom.java9
-rw-r--r--src/main/java/gtPlusPlus/nei/DecayableRecipeHandler.java4
-rw-r--r--src/main/java/gtPlusPlus/nei/GT_NEI_LFTR_Sparging.java234
-rw-r--r--src/main/java/gtPlusPlus/nei/NEI_GTPP_Config.java41
-rw-r--r--src/main/java/gtPlusPlus/nei/handlers/NeiTextureHandler.java16
-rw-r--r--src/main/java/gtPlusPlus/plugin/agrichem/BioRecipes.java1175
-rw-r--r--src/main/java/gtPlusPlus/plugin/agrichem/block/AgrichemFluids.java28
-rw-r--r--src/main/java/gtPlusPlus/plugin/agrichem/item/algae/ItemAgrichemBase.java9
-rw-r--r--src/main/java/gtPlusPlus/plugin/agrichem/item/algae/ItemAlgaeBase.java31
-rw-r--r--src/main/java/gtPlusPlus/plugin/agrichem/logic/AlgaeGeneticData.java4
-rw-r--r--src/main/java/gtPlusPlus/plugin/fixes/vanilla/Core_VanillaFixes.java12
-rw-r--r--src/main/java/gtPlusPlus/plugin/fixes/vanilla/VanillaBedHeightFix.java28
-rw-r--r--src/main/java/gtPlusPlus/plugin/fixes/vanilla/music/MusicTocker.java28
-rw-r--r--src/main/java/gtPlusPlus/preloader/Preloader_GT_OreDict.java52
-rw-r--r--src/main/java/gtPlusPlus/preloader/asm/AsmConfig.java35
-rw-r--r--src/main/java/gtPlusPlus/preloader/asm/Preloader_DummyContainer.java22
-rw-r--r--src/main/java/gtPlusPlus/preloader/asm/transformers/ClassTransformer_COFH_OreDictionaryArbiter.java37
-rw-r--r--src/main/java/gtPlusPlus/preloader/asm/transformers/ClassTransformer_IC2_GetHarvestTool.java88
-rw-r--r--src/main/java/gtPlusPlus/preloader/asm/transformers/ClassTransformer_LWJGL_Keyboard.java82
-rw-r--r--src/main/java/gtPlusPlus/preloader/asm/transformers/ClassTransformer_TC_ItemWispEssence.java106
-rw-r--r--src/main/java/gtPlusPlus/preloader/asm/transformers/Preloader_ClassTransformer.java30
-rw-r--r--src/main/java/gtPlusPlus/preloader/asm/transformers/Preloader_Transformer_Handler.java19
-rw-r--r--src/main/java/gtPlusPlus/preloader/keyboard/BetterKeyboard.java44
-rw-r--r--src/main/java/gtPlusPlus/recipes/CokeAndPyrolyseOven.java42
-rw-r--r--src/main/java/gtPlusPlus/recipes/RecipeRemovals.java16
-rw-r--r--src/main/java/gtPlusPlus/xmod/bartcrops/abstracts/BaseCrop.java2
-rw-r--r--src/main/java/gtPlusPlus/xmod/bop/HANDLER_BiomesOPlenty.java26
-rw-r--r--src/main/java/gtPlusPlus/xmod/bop/blocks/BOP_Block_Registrator.java116
-rw-r--r--src/main/java/gtPlusPlus/xmod/bop/blocks/base/LeavesBase.java4
-rw-r--r--src/main/java/gtPlusPlus/xmod/bop/blocks/base/LogBase.java8
-rw-r--r--src/main/java/gtPlusPlus/xmod/bop/blocks/base/SaplingBase.java4
-rw-r--r--src/main/java/gtPlusPlus/xmod/bop/blocks/pine/LeavesPineTree.java10
-rw-r--r--src/main/java/gtPlusPlus/xmod/bop/blocks/rainforest/SaplingRainforestTree.java14
-rw-r--r--src/main/java/gtPlusPlus/xmod/bop/world/features/trees/WorldGenPineTree.java7
-rw-r--r--src/main/java/gtPlusPlus/xmod/bop/world/features/trees/WorldGenRainForestTree_Ex.java172
-rw-r--r--src/main/java/gtPlusPlus/xmod/forestry/bees/custom/CustomCombs.java63
-rw-r--r--src/main/java/gtPlusPlus/xmod/forestry/bees/custom/GTPP_Bee_Definition.java77
-rw-r--r--src/main/java/gtPlusPlus/xmod/forestry/bees/custom/GTPP_Bees.java12
-rw-r--r--src/main/java/gtPlusPlus/xmod/forestry/bees/custom/GTPP_Branch_Definition.java4
-rw-r--r--src/main/java/gtPlusPlus/xmod/forestry/bees/custom/ItemCustomComb.java9
-rw-r--r--src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_CombType.java7
-rw-r--r--src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_DropType.java7
-rw-r--r--src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_PollenType.java7
-rw-r--r--src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_PropolisType.java7
-rw-r--r--src/main/java/gtPlusPlus/xmod/forestry/bees/items/FR_ItemRegistry.java74
-rw-r--r--src/main/java/gtPlusPlus/xmod/forestry/bees/items/MB_FrameType.java6
-rw-r--r--src/main/java/gtPlusPlus/xmod/forestry/bees/items/output/GTPP_Comb.java45
-rw-r--r--src/main/java/gtPlusPlus/xmod/forestry/bees/items/output/GTPP_Drop.java27
-rw-r--r--src/main/java/gtPlusPlus/xmod/forestry/bees/items/output/GTPP_Pollen.java9
-rw-r--r--src/main/java/gtPlusPlus/xmod/forestry/bees/items/output/GTPP_Propolis.java25
-rw-r--r--src/main/java/gtPlusPlus/xmod/forestry/bees/recipe/FR_Gregtech_Recipes.java144
-rw-r--r--src/main/java/gtPlusPlus/xmod/forestry/bees/registry/GTPP_AlleleBeeSpecies.java21
-rw-r--r--src/main/java/gtPlusPlus/xmod/forestry/bees/registry/GTPP_BeeDefinition.java136
-rw-r--r--src/main/java/gtPlusPlus/xmod/forestry/bees/registry/GTPP_Bee_Mutation.java9
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/enums/GregtechItemList.java4
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/enums/GregtechOrePrefixes.java795
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/gui/GTPP_UITextures.java132
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/gui/widget/ElectricSlotWidget.java6
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/interfaces/internal/IGregtech_RecipeAdder.java102
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/interfaces/internal/Interface_ItemBehaviour.java8
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/interfaces/internal/Interface_OreRecipeRegistrator.java4
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/interfaces/internal/Interface_ToolStats.java6
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/items/Gregtech_Generic_Item.java55
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/items/Gregtech_MetaItem.java44
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/items/Gregtech_MetaItem_Base.java169
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/items/Gregtech_MetaItem_X32.java112
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/items/Gregtech_MetaTool.java394
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_ChiselBus.java23
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_AirIntake.java57
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_AirIntake_Extreme.java12
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_DynamoBuffer.java8
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_ElementalDataOrbHolder.java45
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_FluidGenerator.java29
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_InputBattery.java52
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Muffler_Adv.java82
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Naquadah.java38
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_OutputBattery.java59
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Reservoir.java4
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Solidifier.java26
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Steam_BusInput.java112
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Steam_BusOutput.java84
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Turbine.java89
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_TurbineProvider.java30
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_SuperBus_Input.java10
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_SuperBus_Output.java28
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GregtechMetaPipeEntityFluid.java76
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GregtechMetaPipeEntity_Cable.java141
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GregtechMetaTreeFarmerStructural.java14
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GT_MetaTileEntity_Hatch_CustomFluidBase.java49
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMetaTileEntity.java4
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMetaTransformerHiAmp.java32
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java902
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_SteamMultiBase.java80
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/generators/GregtechMetaBoilerBase.java109
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/generators/GregtechMetaSolarGenerator.java52
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/generators/GregtechRocketFuelGeneratorBase.java69
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/machines/GregtechMetaTreeFarmerBase.java21
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/nbthandlers/GT_MetaTileEntity_Hatch_NbtConsumable.java101
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/objects/GregtechItemData.java12
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/objects/GregtechMaterialStack.java10
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/util/GTPP_Config.java38
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/Meta_GT_Proxy.java29
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks.java10
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks2.java4
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks3.java38
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks4.java2
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks5.java6
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks6.java26
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocksAbstract.java8
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocksPipeGearbox.java2
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaItemCasingsAbstract.java14
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaSpecialMachineCasings.java6
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaSpecialMultiCasings.java20
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaSpecialMultiCasings2.java2
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/fluid/GregtechFluidHandler.java164
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/textures/CasingTextureHandler.java2
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/textures/TexturesCentrifugeMultiblock.java24
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/textures/TexturesGrinderMultiblock.java17
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/textures/TexturesGtBlock.java154
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/textures/turbine/LargeTurbineTextureHandler.java215
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/covers/GTPP_Cover_Overflow.java49
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/covers/GTPP_Cover_ToggleVisual.java22
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/helpers/ChargingHelper.java59
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/helpers/tesseract/TesseractHelper.java46
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/items/MetaCustomCoverItem.java20
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/items/MetaGeneratedGregtechItems.java341
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/items/MetaGeneratedGregtechTools.java38
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/items/behaviours/Behaviour_Choocher.java25
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/items/behaviours/Behaviour_Electric_Lighter.java59
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/items/behaviours/Behaviour_Prospecting_Ex.java41
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/items/covers/MetaItemCoverCasings.java15
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/render/GTPP_CapeRenderer.java119
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/render/GTPP_FlaskRenderer.java22
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/render/GTPP_Render_MachineBlock.java1080
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_ElectricAutoWorkbench.java221
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractGenerator.java350
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractTerminal.java250
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_Boiler_Base.java52
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_Boiler_HV.java6
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_Boiler_LV.java6
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_Boiler_MV.java6
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_SemiFluidGenerator.java45
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GregtechMetaTileEntityGeothermalGenerator.java63
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GregtechMetaTileEntityRocketFuelGenerator.java41
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GregtechMetaTileEntity_RTG.java98
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/ULV/GT_MetaTileEntity_ULV_CombustionGenerator.java20
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/ULV/GT_MetaTileEntity_ULV_SteamTurbine.java2
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_CropHarvestor.java214
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaAtmosphericReconditioner.java292
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaPollutionCreator.java70
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaPollutionDetector.java83
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaTileEntity_AutoChisel.java56
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaWirelessCharger.java142
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/misc/GMTE_AmazonPackager.java62
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialAlloySmelter.java86
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialArcFurnace.java170
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialCentrifuge.java61
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialChisel.java86
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialCokeOven.java93
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialCuttingMachine.java60
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialDehydrator.java81
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialElectrolyzer.java59
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialExtruder.java60
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialFluidHeater.java89
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialForgeHammer.java77
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialMacerator.java264
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialMixer.java61
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialMolecularTransformer.java91
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialMultiMachine.java108
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialPlatePress.java57
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialSifter.java72
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialThermalCentrifuge.java69
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialVacuumFreezer.java92
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialWashPlant.java93
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialWireMill.java62
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IsaMill.java99
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_NuclearSaltProcessingPlant.java137
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_SpargeTower.java226
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/advanced/GregtechMetaTileEntity_Adv_DistillationTower.java202
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/advanced/GregtechMetaTileEntity_Adv_EBF.java117
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/advanced/GregtechMetaTileEntity_Adv_Fusion_MK4.java61
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/advanced/GregtechMetaTileEntity_Adv_Fusion_MK5.java61
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/advanced/GregtechMetaTileEntity_Adv_HeatExchanger.java243
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/advanced/GregtechMetaTileEntity_Adv_Implosion.java55
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/steam/GregtechMetaTileEntity_SteamCompressor.java57
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/steam/GregtechMetaTileEntity_SteamMacerator.java59
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GT4Entity_AutoCrafter.java55
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GT4Entity_ThermalBoiler.java70
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMTE_ElementalDuplicator.java159
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMTE_FrothFlotationCell.java72
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMTE_NuclearReactor.java207
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntityTreeFarm.java206
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_AlloyBlastSmelter.java69
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_Cyclotron.java114
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_IndustrialFishingPond.java124
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_IndustrialRockBreaker.java145
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_LargeRocketEngine.java135
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_LargeSemifluidGenerator.java77
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_MassFabricator.java91
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_QuantumForceTransformer.java466
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_Refinery.java97
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_SolarTower.java435
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/algae/GregtechMTE_AlgaePondBase.java98
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/chemplant/GregtechMTE_ChemicalPlant.java228
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/mega/GregTechMetaTileEntity_MegaAlloyBlastSmelter.java343
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GT_MTE_LargeTurbine_Gas.java7
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GT_MTE_LargeTurbine_Plasma.java36
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GT_MTE_LargeTurbine_SHSteam.java23
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GT_MTE_LargeTurbine_Steam.java19
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GregtechMetaTileEntity_LargerTurbineBase.java333
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/storage/GregtechMetaTileEntity_PowerSubStationController.java453
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/misc/TileEntitySolarHeater.java52
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/GT_MetaTileEntity_TieredChest.java98
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/GT_MetaTileEntity_TieredTank.java58
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/GregtechMetaEnergyBuffer.java87
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/creative/GT_MetaTileEntity_InfiniteItemHolder.java21
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tools/TOOL_Gregtech_AngleGrinder.java23
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tools/TOOL_Gregtech_ElectricSnips.java12
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/loaders/ProcessingAngleGrinder.java64
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/loaders/ProcessingElectricSnips.java70
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_AlloySmelter.java34
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Assembler.java56
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_BlastSmelter.java147
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_BlastSmelterGT_GTNH.java69
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_DustGeneration.java169
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Extruder.java92
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_FluidCanning.java79
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Fluids.java156
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Fluorite.java260
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_MaterialProcessing.java206
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_MetalRecipe.java94
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_MultisUsingFluidInsteadOfCells.java32
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Ore.java560
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Plasma.java12
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Plates.java221
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Recycling.java107
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_ShapedCrafting.java180
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_AlgaeFarm.java26
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_ChemicalSkips.java950
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_GTNH.java46
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_GlueLine.java491
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_LFTR.java119
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_MolecularTransformer.java64
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_Nuclear.java832
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_NuclearFuelProcessing.java337
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_TreeFarm.java717
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java1020
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/Gregtech4Content.java72
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechAdvancedBoilers.java109
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechAlgaeContent.java10
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechAmazonWarehouse.java4
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechBufferDynamos.java180
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechConduits.java1458
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechCustomHatches.java297
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechCyclotron.java4
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechDehydrator.java253
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechEnergyBuffer.java174
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechFactoryGradeReplacementMultis.java32
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechGeothermalThermalGenerator.java82
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechHiAmpTransformer.java224
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialAlloySmelter.java8
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialArcFurnace.java8
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialBlastSmelter.java16
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialCentrifuge.java8
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialChisel.java18
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialCokeOven.java8
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialCuttingFactory.java8
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialElectrolyzer.java8
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialElementDuplicator.java14
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialExtruder.java8
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialFishPond.java8
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialFluidHeater.java8
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialForgeHammer.java8
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialFuelRefinery.java8
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialMacerator.java8
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialMassFabricator.java130
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialMixer.java8
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialMultiMachine.java8
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialPlatePress.java8
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialRockBreaker.java8
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialSifter.java8
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialThermalCentrifuge.java8
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialTreeFarm.java4
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialWashPlant.java8
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialWiremill.java8
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIsaMill.java12
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechLFTR.java119
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechLargeTurbinesAndHeatExchanger.java30
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechMolecularTransformer.java8
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechNuclearSaltProcessingPlant.java8
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechPollutionDevices.java112
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechPowerSubStation.java54
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechQuantumForceTransformer.java8
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechRTG.java10
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechRocketFuelGenerator.java112
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechSemiFluidgenerators.java58
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechSimpleWasher.java146
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechSolarTower.java38
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechSteamMultis.java21
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechSuperChests.java20
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechThaumcraftDevices.java14
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechThreadedBuffers.java4
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechTieredFluidTanks.java14
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechTreeFarmerTE.java4
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechWirelessChargers.java130
-rw-r--r--src/main/java/gtPlusPlus/xmod/ic2/CustomInternalName.java6
-rw-r--r--src/main/java/gtPlusPlus/xmod/ic2/item/CustomKineticRotor.java30
-rw-r--r--src/main/java/gtPlusPlus/xmod/ic2/item/IC2_Items.java60
-rw-r--r--src/main/java/gtPlusPlus/xmod/ic2/recipe/RECIPE_IC2.java396
-rw-r--r--src/main/java/gtPlusPlus/xmod/pamsharvest/fishtrap/FishTrapHandler.java68
-rw-r--r--src/main/java/gtPlusPlus/xmod/railcraft/HANDLER_Railcraft.java240
-rw-r--r--src/main/java/gtPlusPlus/xmod/railcraft/utils/RailcraftUtils.java10
-rw-r--r--src/main/java/gtPlusPlus/xmod/thaumcraft/commands/CommandDumpAspects.java10
-rw-r--r--src/main/java/gtPlusPlus/xmod/thaumcraft/objects/ThreadAspectScanner.java25
-rw-r--r--src/main/java/gtPlusPlus/xmod/thermalfoundation/block/TF_Block_Fluid_Cryotheum.java28
-rw-r--r--src/main/java/gtPlusPlus/xmod/thermalfoundation/block/TF_Block_Fluid_Ender.java6
-rw-r--r--src/main/java/gtPlusPlus/xmod/thermalfoundation/block/TF_Block_Fluid_Pyrotheum.java57
-rw-r--r--src/main/java/gtPlusPlus/xmod/thermalfoundation/fluid/TF_Fluids.java21
-rw-r--r--src/main/java/gtPlusPlus/xmod/thermalfoundation/item/TF_Items.java10
-rw-r--r--src/main/java/gtPlusPlus/xmod/thermalfoundation/recipe/TF_Gregtech_Recipes.java79
-rw-r--r--src/main/java/gtPlusPlus/xmod/tinkers/material/BaseTinkersMaterial.java13
-rw-r--r--src/main/java/gtPlusPlus/xmod/tinkers/util/TinkersDryingRecipe.java42
-rw-r--r--src/main/java/gtPlusPlus/xmod/tinkers/util/TinkersUtils.java114
548 files changed, 31348 insertions, 29144 deletions
diff --git a/src/main/java/gregtech/api/enums/TAE.java b/src/main/java/gregtech/api/enums/TAE.java
index 73a18dc771..246b2006ea 100644
--- a/src/main/java/gregtech/api/enums/TAE.java
+++ b/src/main/java/gregtech/api/enums/TAE.java
@@ -89,8 +89,8 @@ public class TAE {
if (h != null) {
h[64][secondaryIndex++] = GTPP_CopiedBlockTexture;
x.set(null, h);
- Logger.INFO(
- "[TAE} Registered Texture with ID " + (secondaryIndex - 1) + " in secondary index.");
+ Logger
+ .INFO("[TAE} Registered Texture with ID " + (secondaryIndex - 1) + " in secondary index.");
return true;
}
}
diff --git a/src/main/java/gregtech/api/util/FishPondFakeRecipe.java b/src/main/java/gregtech/api/util/FishPondFakeRecipe.java
index 81403c1612..dc579ebd9b 100644
--- a/src/main/java/gregtech/api/util/FishPondFakeRecipe.java
+++ b/src/main/java/gregtech/api/util/FishPondFakeRecipe.java
@@ -24,10 +24,12 @@ public class FishPondFakeRecipe {
public static boolean generateFishPondRecipes() {
try {
- fish = (ArrayList<WeightedRandomFishable>) ReflectionUtils.getField(FishingHooks.class, "fish").get(null);
- junk = (ArrayList<WeightedRandomFishable>) ReflectionUtils.getField(FishingHooks.class, "junk").get(null);
+ fish = (ArrayList<WeightedRandomFishable>) ReflectionUtils.getField(FishingHooks.class, "fish")
+ .get(null);
+ junk = (ArrayList<WeightedRandomFishable>) ReflectionUtils.getField(FishingHooks.class, "junk")
+ .get(null);
treasure = (ArrayList<WeightedRandomFishable>) ReflectionUtils.getField(FishingHooks.class, "treasure")
- .get(null);
+ .get(null);
} catch (IllegalArgumentException | IllegalAccessException e) {
Logger.INFO("Error generating Fish Pond Recipes. [1]");
e.printStackTrace();
@@ -45,7 +47,8 @@ public class FishPondFakeRecipe {
WeightedRandomFishable u = weightedRandomFishable;
try {
ItemStack t = (ItemStack) ReflectionUtils
- .getField(WeightedRandomFishable.class, "field_150711_b").get(u);
+ .getField(WeightedRandomFishable.class, "field_150711_b")
+ .get(u);
addNewFishPondLoot(mType, new ItemStack[] { t }, new int[] { 10000 });
} catch (IllegalArgumentException | IllegalAccessException e1) {
Logger.INFO("Error generating Fish Pond Recipes. [2]");
@@ -61,16 +64,16 @@ public class FishPondFakeRecipe {
public static void addNewFishPondLoot(int circuit, ItemStack[] outputItems, int[] chances) {
GT_Recipe x = new GT_Recipe(
- true,
- new ItemStack[] { CI.getNumberedCircuit(circuit) },
- outputItems,
- null,
- chances,
- new FluidStack[] { null },
- new FluidStack[] { null },
- 100, // 1 Tick
- 0, // No Eu produced
- 0);
+ true,
+ new ItemStack[] { CI.getNumberedCircuit(circuit) },
+ outputItems,
+ null,
+ chances,
+ new FluidStack[] { null },
+ new FluidStack[] { null },
+ 100, // 1 Tick
+ 0, // No Eu produced
+ 0);
Logger.INFO("Fishing [" + circuit + "]: " + ItemUtils.getArrayStackNames(outputItems));
GTPPRecipeMaps.fishPondRecipes.addRecipe(x, false, false, false);
}
diff --git a/src/main/java/gregtech/api/util/GasSpargingRecipe.java b/src/main/java/gregtech/api/util/GasSpargingRecipe.java
index 9853b392be..667cc78d85 100644
--- a/src/main/java/gregtech/api/util/GasSpargingRecipe.java
+++ b/src/main/java/gregtech/api/util/GasSpargingRecipe.java
@@ -19,7 +19,7 @@ public class GasSpargingRecipe implements Comparable<GasSpargingRecipe> {
public final int mEUt;
public GasSpargingRecipe(FluidStack aSpargeGas, FluidStack aSpentFuel, FluidStack aSpargedFuel,
- FluidStack[] aOutputs, int[] aMaxOutputQuantity) {
+ FluidStack[] aOutputs, int[] aMaxOutputQuantity) {
mInputGas = aSpargeGas;
mInputSpentFuel = aSpentFuel;
mOutputSpargedFuel = aSpargedFuel;
@@ -57,21 +57,23 @@ public class GasSpargingRecipe implements Comparable<GasSpargingRecipe> {
public boolean isValid() {
if (mInputGas == null || mInputGas.amount <= 0
- || mInputSpentFuel == null
- || mInputSpentFuel.amount <= 0
- || mFluidOutputs == null
- || mFluidOutputs.length < 1
- || mMaxOutputQuantity == null
- || mMaxOutputQuantity.length < 1
- || mFluidOutputs.length != mMaxOutputQuantity.length) {
+ || mInputSpentFuel == null
+ || mInputSpentFuel.amount <= 0
+ || mFluidOutputs == null
+ || mFluidOutputs.length < 1
+ || mMaxOutputQuantity == null
+ || mMaxOutputQuantity.length < 1
+ || mFluidOutputs.length != mMaxOutputQuantity.length) {
return false;
}
return true;
}
public boolean containsInputs(FluidStack aSpargeGas, FluidStack aSpentFuel) {
- if (aSpargeGas != null && aSpargeGas.getFluid().equals(this.mInputGas.getFluid())) {
- if (aSpentFuel != null && aSpentFuel.getFluid().equals(this.mInputSpentFuel.getFluid())) {
+ if (aSpargeGas != null && aSpargeGas.getFluid()
+ .equals(this.mInputGas.getFluid())) {
+ if (aSpentFuel != null && aSpentFuel.getFluid()
+ .equals(this.mInputSpentFuel.getFluid())) {
return true;
}
}
diff --git a/src/main/java/gregtech/api/util/GasSpargingRecipeMap.java b/src/main/java/gregtech/api/util/GasSpargingRecipeMap.java
index b078394f92..6dcc7721e0 100644
--- a/src/main/java/gregtech/api/util/GasSpargingRecipeMap.java
+++ b/src/main/java/gregtech/api/util/GasSpargingRecipeMap.java
@@ -15,17 +15,17 @@ public class GasSpargingRecipeMap extends AutoMap<GasSpargingRecipe> {
public static final String mNEIGUIPath = GregTech.getResourcePath("textures", "gui/basicmachines/FissionFuel.png");
public static boolean addRecipe(FluidStack aSpargeGas, FluidStack aSpentFuel, FluidStack aSpargedFuel,
- FluidStack[] aOutputs, int[] aMaxOutputs) {
+ FluidStack[] aOutputs, int[] aMaxOutputs) {
if (aSpargeGas == null || aSpargeGas.amount <= 0
- || aSpentFuel == null
- || aSpentFuel.amount <= 0
- || aSpargedFuel == null
- || aSpargedFuel.amount <= 0
- || aOutputs == null
- || aOutputs.length < 1
- || aMaxOutputs == null
- || aMaxOutputs.length < 1
- || aOutputs.length != aMaxOutputs.length) {
+ || aSpentFuel == null
+ || aSpentFuel.amount <= 0
+ || aSpargedFuel == null
+ || aSpargedFuel.amount <= 0
+ || aOutputs == null
+ || aOutputs.length < 1
+ || aMaxOutputs == null
+ || aMaxOutputs.length < 1
+ || aOutputs.length != aMaxOutputs.length) {
return false;
}
int aMapSize = mRecipes.size();
diff --git a/src/main/java/gregtech/api/util/HotFuel.java b/src/main/java/gregtech/api/util/HotFuel.java
index 15104807a4..6054a57b84 100644
--- a/src/main/java/gregtech/api/util/HotFuel.java
+++ b/src/main/java/gregtech/api/util/HotFuel.java
@@ -8,33 +8,33 @@ import gtPlusPlus.api.recipe.GTPPRecipeMaps;
public class HotFuel {
public static void addNewHotFuel(FluidStack aInput1, FluidStack aOutput1, ItemStack[] outputItems, int[] chances,
- int aSpecialValue) {
+ int aSpecialValue) {
GTPPRecipeMaps.thermalBoilerRecipes.addRecipe(
- true,
- null,
- outputItems,
- null,
- chances,
- new FluidStack[] { aInput1 },
- new FluidStack[] { aOutput1 },
- 1, // 1 Tick
- 0, // No Eu produced
- aSpecialValue // Magic Number
+ true,
+ null,
+ outputItems,
+ null,
+ chances,
+ new FluidStack[] { aInput1 },
+ new FluidStack[] { aOutput1 },
+ 1, // 1 Tick
+ 0, // No Eu produced
+ aSpecialValue // Magic Number
);
}
public static void addNewHotFuel(FluidStack aInput1, FluidStack aOutput1, FluidStack aOutput2, int aSpecialValue) {
GTPPRecipeMaps.thermalBoilerRecipes.addRecipe(
- false,
- null,
- null,
- null,
- null,
- new FluidStack[] { aInput1 },
- new FluidStack[] { aOutput1, aOutput2 },
- 20, // 1 Second
- 0, // No Eu produced
- aSpecialValue // Magic Number
+ false,
+ null,
+ null,
+ null,
+ null,
+ new FluidStack[] { aInput1 },
+ new FluidStack[] { aOutput1, aOutput2 },
+ 20, // 1 Second
+ 0, // No Eu produced
+ aSpecialValue // Magic Number
);
}
}
diff --git a/src/main/java/gregtech/api/util/SemiFluidFuelHandler.java b/src/main/java/gregtech/api/util/SemiFluidFuelHandler.java
index be4dc21815..e3baa9ac90 100644
--- a/src/main/java/gregtech/api/util/SemiFluidFuelHandler.java
+++ b/src/main/java/gregtech/api/util/SemiFluidFuelHandler.java
@@ -29,22 +29,22 @@ public class SemiFluidFuelHandler {
FluidStack p = aFuel;
if (p != null && aFuelValue > 0) {
GT_Recipe aRecipe = new GT_Recipe(
- true,
- new ItemStack[] {},
- new ItemStack[] {},
- null,
- new int[] {},
- new FluidStack[] { p },
- null,
- 0,
- 0,
- aFuelValue);
+ true,
+ new ItemStack[] {},
+ new ItemStack[] {},
+ null,
+ new int[] {},
+ new FluidStack[] { p },
+ null,
+ 0,
+ 0,
+ aFuelValue);
if (aRecipe.mSpecialValue > 0) {
Logger.INFO(
- "Added " + aRecipe.mFluidInputs[0].getLocalizedName()
- + " to the Semi-Fluid Generator fuel map. Fuel Produces "
- + (aRecipe.mSpecialValue * 1000)
- + "EU per 1000L.");
+ "Added " + aRecipe.mFluidInputs[0].getLocalizedName()
+ + " to the Semi-Fluid Generator fuel map. Fuel Produces "
+ + (aRecipe.mSpecialValue * 1000)
+ + "EU per 1000L.");
semiFluidFuels.add(aRecipe);
return true;
}
@@ -81,49 +81,56 @@ public class SemiFluidFuelHandler {
}
g.mSpecialValue *= aContainsCreosote ? 6 : 3;
Logger.INFO(
- "Added " + g.mFluidInputs[0].getLocalizedName()
- + " to the Semi-Fluid Generator fuel map. Fuel Produces "
- + g.mSpecialValue
- + "EU per 1000L.");
+ "Added " + g.mFluidInputs[0].getLocalizedName()
+ + " to the Semi-Fluid Generator fuel map. Fuel Produces "
+ + g.mSpecialValue
+ + "EU per 1000L.");
semiFluidFuels.add(g);
}
}
for (Pair<FluidStack, Integer> p : aFoundFluidsFromItems.values()) {
if (p != null) {
int aFuelValue = p.getValue();
- if (p.getKey().isFluidEqual(aCreosote)) {
+ if (p.getKey()
+ .isFluidEqual(aCreosote)) {
aFuelValue *= 6;
- } else if (p.getKey().isFluidEqual(aHeavyFuel) || p.getKey().isFluidEqual(aHeavyOil)) {
- aFuelValue *= 1.5;
- } else {
- aFuelValue *= 2;
- }
+ } else if (p.getKey()
+ .isFluidEqual(aHeavyFuel)
+ || p.getKey()
+ .isFluidEqual(aHeavyOil)) {
+ aFuelValue *= 1.5;
+ } else {
+ aFuelValue *= 2;
+ }
if (aFuelValue <= (128 * 3)) {
GT_Recipe aRecipe = new GT_Recipe(
- true,
- new ItemStack[] {},
- new ItemStack[] {},
- null,
- new int[] {},
- new FluidStack[] { p.getKey() },
- null,
- 0,
- 0,
- aFuelValue);
+ true,
+ new ItemStack[] {},
+ new ItemStack[] {},
+ null,
+ new int[] {},
+ new FluidStack[] { p.getKey() },
+ null,
+ 0,
+ 0,
+ aFuelValue);
if (aRecipe.mSpecialValue > 0) {
Logger.INFO(
- "Added " + aRecipe.mFluidInputs[0].getLocalizedName()
- + " to the Semi-Fluid Generator fuel map. Fuel Produces "
- + (aRecipe.mSpecialValue * 1000)
- + "EU per 1000L.");
+ "Added " + aRecipe.mFluidInputs[0].getLocalizedName()
+ + " to the Semi-Fluid Generator fuel map. Fuel Produces "
+ + (aRecipe.mSpecialValue * 1000)
+ + "EU per 1000L.");
semiFluidFuels.add(aRecipe);
}
} else {
- Logger.INFO("Boosted Fuel value for " + p.getKey().getLocalizedName() + " exceeds 512k, ignoring.");
+ Logger.INFO(
+ "Boosted Fuel value for " + p.getKey()
+ .getLocalizedName() + " exceeds 512k, ignoring.");
}
}
}
- return !semiFluidFuels.getAllRecipes().isEmpty();
+ return !semiFluidFuels.getAllRecipes()
+ .isEmpty();
}
}
diff --git a/src/main/java/gtPlusPlus/GTplusplus.java b/src/main/java/gtPlusPlus/GTplusplus.java
index 73b9cc9aea..b024e0e88a 100644
--- a/src/main/java/gtPlusPlus/GTplusplus.java
+++ b/src/main/java/gtPlusPlus/GTplusplus.java
@@ -53,28 +53,28 @@ import gtPlusPlus.xmod.gregtech.loaders.RecipeGen_MultisUsingFluidInsteadOfCells
import gtPlusPlus.xmod.thaumcraft.commands.CommandDumpAspects;
@Mod(
- modid = Names.G_T_PLUS_PLUS,
- name = CORE.name,
- version = CORE.VERSION,
- dependencies = "required-after:Forge;" + " after:TConstruct;"
- + " after:dreamcraft;"
- + " after:IC2;"
- + " required-after:gregtech;"
- + " after:Forestry;"
- + " after:MagicBees;"
- + " after:CoFHCore;"
- + " after:Railcraft;"
- + " after:CompactWindmills;"
- + " after:ForbiddenMagic;"
- + " after:ExtraUtilities;"
- + " after:Thaumcraft;"
- + " after:EnderIO;"
- + " after:tectech;"
- + " after:OpenBlocks;"
- + " after:IC2NuclearControl;"
- + " after:TGregworks;"
- + " after:StevesCarts;"
- + " required-after:gtnhlib@[0.0.10,);")
+ modid = Names.G_T_PLUS_PLUS,
+ name = CORE.name,
+ version = CORE.VERSION,
+ dependencies = "required-after:Forge;" + " after:TConstruct;"
+ + " after:dreamcraft;"
+ + " after:IC2;"
+ + " required-after:gregtech;"
+ + " after:Forestry;"
+ + " after:MagicBees;"
+ + " after:CoFHCore;"
+ + " after:Railcraft;"
+ + " after:CompactWindmills;"
+ + " after:ForbiddenMagic;"
+ + " after:ExtraUtilities;"
+ + " after:Thaumcraft;"
+ + " after:EnderIO;"
+ + " after:tectech;"
+ + " after:OpenBlocks;"
+ + " after:IC2NuclearControl;"
+ + " after:TGregworks;"
+ + " after:StevesCarts;"
+ + " required-after:gtnhlib@[0.0.10,);")
public class GTplusplus implements ActionListener {
public enum INIT_PHASE {
@@ -123,12 +123,17 @@ public class GTplusplus implements ActionListener {
public static void loadTextures() {
Logger.INFO("Loading some textures on the client.");
// Tools
- Logger.WARNING("Processing texture: " + TexturesGtTools.ANGLE_GRINDER.getTextureFile().getResourcePath());
- Logger.WARNING("Processing texture: " + TexturesGtTools.ELECTRIC_SNIPS.getTextureFile().getResourcePath());
+ Logger.WARNING(
+ "Processing texture: " + TexturesGtTools.ANGLE_GRINDER.getTextureFile()
+ .getResourcePath());
+ Logger.WARNING(
+ "Processing texture: " + TexturesGtTools.ELECTRIC_SNIPS.getTextureFile()
+ .getResourcePath());
// Blocks
Logger.WARNING(
- "Processing texture: " + TexturesGtBlock.Casing_Machine_Dimensional.getTextureFile().getResourcePath());
+ "Processing texture: " + TexturesGtBlock.Casing_Machine_Dimensional.getTextureFile()
+ .getResourcePath());
}
public GTplusplus() {
@@ -188,10 +193,10 @@ public class GTplusplus implements ActionListener {
Logger.INFO("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
Logger.INFO(
- "| Recipes succesfully Loaded: " + RegistrationHandler.recipesSuccess
- + " | Failed: "
- + RegistrationHandler.recipesFailed
- + " |");
+ "| Recipes succesfully Loaded: " + RegistrationHandler.recipesSuccess
+ + " | Failed: "
+ + RegistrationHandler.recipesFailed
+ + " |");
Logger.INFO("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
Logger.INFO("Finally, we are finished. Have some cripsy bacon as a reward.");
@@ -255,23 +260,22 @@ public class GTplusplus implements ActionListener {
SemiFluidFuelHandler.generateFuels();
mInvalidCount[0] = RecipeGen_MultisUsingFluidInsteadOfCells
- .generateRecipesNotUsingCells(RecipeMaps.centrifugeRecipes, GTPPRecipeMaps.centrifugeNonCellRecipes);
- mInvalidCount[1] = RecipeGen_MultisUsingFluidInsteadOfCells.generateRecipesNotUsingCells(
- RecipeMaps.electrolyzerRecipes,
- GTPPRecipeMaps.electrolyzerNonCellRecipes);
+ .generateRecipesNotUsingCells(RecipeMaps.centrifugeRecipes, GTPPRecipeMaps.centrifugeNonCellRecipes);
+ mInvalidCount[1] = RecipeGen_MultisUsingFluidInsteadOfCells
+ .generateRecipesNotUsingCells(RecipeMaps.electrolyzerRecipes, GTPPRecipeMaps.electrolyzerNonCellRecipes);
mInvalidCount[2] = RecipeGen_MultisUsingFluidInsteadOfCells
- .generateRecipesNotUsingCells(RecipeMaps.vacuumFreezerRecipes, GTPPRecipeMaps.advancedFreezerRecipes);
+ .generateRecipesNotUsingCells(RecipeMaps.vacuumFreezerRecipes, GTPPRecipeMaps.advancedFreezerRecipes);
mInvalidCount[3] = RecipeGen_MultisUsingFluidInsteadOfCells
- .generateRecipesNotUsingCells(RecipeMaps.mixerRecipes, GTPPRecipeMaps.mixerNonCellRecipes);
+ .generateRecipesNotUsingCells(RecipeMaps.mixerRecipes, GTPPRecipeMaps.mixerNonCellRecipes);
mInvalidCount[4] = RecipeGen_MultisUsingFluidInsteadOfCells.generateRecipesNotUsingCells(
- GTPPRecipeMaps.chemicalDehydratorRecipes,
- GTPPRecipeMaps.chemicalDehydratorNonCellRecipes);
+ GTPPRecipeMaps.chemicalDehydratorRecipes,
+ GTPPRecipeMaps.chemicalDehydratorNonCellRecipes);
mInvalidCount[5] = RecipeGen_MultisUsingFluidInsteadOfCells.generateRecipesNotUsingCells(
- GTPPRecipeMaps.coldTrapRecipes,
- GTPPRecipeMaps.nuclearSaltProcessingPlantRecipes);
+ GTPPRecipeMaps.coldTrapRecipes,
+ GTPPRecipeMaps.nuclearSaltProcessingPlantRecipes);
mInvalidCount[6] = RecipeGen_MultisUsingFluidInsteadOfCells.generateRecipesNotUsingCells(
- GTPPRecipeMaps.reactorProcessingUnitRecipes,
- GTPPRecipeMaps.nuclearSaltProcessingPlantRecipes);
+ GTPPRecipeMaps.reactorProcessingUnitRecipes,
+ GTPPRecipeMaps.nuclearSaltProcessingPlantRecipes);
}
private static void setupMaterialBlacklist() {
@@ -304,56 +308,54 @@ public class GTplusplus implements ActionListener {
sMissingItemMappings.put("miscutils:Ammonium", GameRegistry.findItem(GTPlusPlus.ID, "itemCellAmmonium"));
sMissingItemMappings.put("miscutils:Hydroxide", GameRegistry.findItem(GTPlusPlus.ID, "itemCellHydroxide"));
sMissingItemMappings.put(
- "miscutils:BerylliumHydroxide",
- GameRegistry.findItem(GTPlusPlus.ID, "itemCellmiscutils:BerylliumHydroxide"));
+ "miscutils:BerylliumHydroxide",
+ GameRegistry.findItem(GTPlusPlus.ID, "itemCellmiscutils:BerylliumHydroxide"));
sMissingItemMappings.put("miscutils:Bromine", GameRegistry.findItem(GTPlusPlus.ID, "itemCellBromine"));
sMissingItemMappings.put("miscutils:Krypton", GameRegistry.findItem(GTPlusPlus.ID, "itemCellKrypton"));
sMissingItemMappings.put(
- "miscutils:itemCellZirconiumTetrafluoride",
- GameRegistry.findItem(GTPlusPlus.ID, "ZirconiumTetrafluoride"));
+ "miscutils:itemCellZirconiumTetrafluoride",
+ GameRegistry.findItem(GTPlusPlus.ID, "ZirconiumTetrafluoride"));
sMissingItemMappings
- .put("miscutils:Li2BeF4", GameRegistry.findItem(GTPlusPlus.ID, "itemCellLithiumTetrafluoroberyllate"));
+ .put("miscutils:Li2BeF4", GameRegistry.findItem(GTPlusPlus.ID, "itemCellLithiumTetrafluoroberyllate"));
// Cryolite
sMissingBlockMappings.put("miscutils:oreCryolite", GameRegistry.findBlock(GTPlusPlus.ID, "oreCryoliteF"));
sMissingItemMappings
- .put("miscutils:itemDustTinyCryolite", GameRegistry.findItem(GTPlusPlus.ID, "itemDustTinyCryoliteF"));
+ .put("miscutils:itemDustTinyCryolite", GameRegistry.findItem(GTPlusPlus.ID, "itemDustTinyCryoliteF"));
sMissingItemMappings
- .put("miscutils:itemDustSmallCryolite", GameRegistry.findItem(GTPlusPlus.ID, "itemDustSmallCryoliteF"));
+ .put("miscutils:itemDustSmallCryolite", GameRegistry.findItem(GTPlusPlus.ID, "itemDustSmallCryoliteF"));
sMissingItemMappings
- .put("miscutils:itemDustCryolite", GameRegistry.findItem(GTPlusPlus.ID, "itemDustCryoliteF"));
+ .put("miscutils:itemDustCryolite", GameRegistry.findItem(GTPlusPlus.ID, "itemDustCryoliteF"));
sMissingItemMappings
- .put("miscutils:dustPureCryolite", GameRegistry.findItem(GTPlusPlus.ID, "dustPureCryoliteF"));
+ .put("miscutils:dustPureCryolite", GameRegistry.findItem(GTPlusPlus.ID, "dustPureCryoliteF"));
sMissingItemMappings
- .put("miscutils:dustImpureCryolite", GameRegistry.findItem(GTPlusPlus.ID, "dustImpureCryoliteF"));
+ .put("miscutils:dustImpureCryolite", GameRegistry.findItem(GTPlusPlus.ID, "dustImpureCryoliteF"));
sMissingItemMappings.put("miscutils:crushedCryolite", GameRegistry.findItem(GTPlusPlus.ID, "crushedCryoliteF"));
+ sMissingItemMappings
+ .put("miscutils:crushedPurifiedCryolite", GameRegistry.findItem(GTPlusPlus.ID, "crushedPurifiedCryoliteF"));
sMissingItemMappings.put(
- "miscutils:crushedPurifiedCryolite",
- GameRegistry.findItem(GTPlusPlus.ID, "crushedPurifiedCryoliteF"));
- sMissingItemMappings.put(
- "miscutils:crushedCentrifugedCryolite",
- GameRegistry.findItem(GTPlusPlus.ID, "crushedCentrifugedCryoliteF"));
+ "miscutils:crushedCentrifugedCryolite",
+ GameRegistry.findItem(GTPlusPlus.ID, "crushedCentrifugedCryoliteF"));
sMissingItemMappings.put("miscutils:oreCryolite", GameRegistry.findItem(GTPlusPlus.ID, "oreCryoliteF"));
// Fluorite
sMissingBlockMappings.put("miscutils:oreFluorite", GameRegistry.findBlock(GTPlusPlus.ID, "oreFluoriteF"));
sMissingItemMappings
- .put("miscutils:itemDustTinyFluorite", GameRegistry.findItem(GTPlusPlus.ID, "itemDustTinyFluoriteF"));
+ .put("miscutils:itemDustTinyFluorite", GameRegistry.findItem(GTPlusPlus.ID, "itemDustTinyFluoriteF"));
sMissingItemMappings
- .put("miscutils:itemDustSmallFluorite", GameRegistry.findItem(GTPlusPlus.ID, "itemDustSmallFluoriteF"));
+ .put("miscutils:itemDustSmallFluorite", GameRegistry.findItem(GTPlusPlus.ID, "itemDustSmallFluoriteF"));
sMissingItemMappings
- .put("miscutils:itemDustFluorite", GameRegistry.findItem(GTPlusPlus.ID, "itemDustFluoriteF"));
+ .put("miscutils:itemDustFluorite", GameRegistry.findItem(GTPlusPlus.ID, "itemDustFluoriteF"));
sMissingItemMappings
- .put("miscutils:dustPureFluorite", GameRegistry.findItem(GTPlusPlus.ID, "dustPureFluoriteF"));
+ .put("miscutils:dustPureFluorite", GameRegistry.findItem(GTPlusPlus.ID, "dustPureFluoriteF"));
sMissingItemMappings
- .put("miscutils:dustImpureFluorite", GameRegistry.findItem(GTPlusPlus.ID, "dustImpureFluoriteF"));
+ .put("miscutils:dustImpureFluorite", GameRegistry.findItem(GTPlusPlus.ID, "dustImpureFluoriteF"));
sMissingItemMappings.put("miscutils:crushedFluorite", GameRegistry.findItem(GTPlusPlus.ID, "crushedFluoriteF"));
+ sMissingItemMappings
+ .put("miscutils:crushedPurifiedFluorite", GameRegistry.findItem(GTPlusPlus.ID, "crushedPurifiedFluoriteF"));
sMissingItemMappings.put(
- "miscutils:crushedPurifiedFluorite",
- GameRegistry.findItem(GTPlusPlus.ID, "crushedPurifiedFluoriteF"));
- sMissingItemMappings.put(
- "miscutils:crushedCentrifugedFluorite",
- GameRegistry.findItem(GTPlusPlus.ID, "crushedCentrifugedFluoriteF"));
+ "miscutils:crushedCentrifugedFluorite",
+ GameRegistry.findItem(GTPlusPlus.ID, "crushedCentrifugedFluoriteF"));
sMissingItemMappings.put("miscutils:oreFluorite", GameRegistry.findItem(GTPlusPlus.ID, "oreFluoriteF"));
}
diff --git a/src/main/java/gtPlusPlus/api/objects/data/AutoMap.java b/src/main/java/gtPlusPlus/api/objects/data/AutoMap.java
index aedd6c6073..a3551326c2 100644
--- a/src/main/java/gtPlusPlus/api/objects/data/AutoMap.java
+++ b/src/main/java/gtPlusPlus/api/objects/data/AutoMap.java
@@ -107,7 +107,8 @@ public class AutoMap<V> implements Iterable<V>, Cloneable, Serializable, Collect
public synchronized boolean setValue(V object) {
int mOriginalID = this.mInternalID;
put(object);
- if (this.mInternalMap.get(mOriginalID).equals(object) || mOriginalID > this.mInternalID) {
+ if (this.mInternalMap.get(mOriginalID)
+ .equals(object) || mOriginalID > this.mInternalID) {
return true;
} else {
return false;
@@ -173,7 +174,10 @@ public class AutoMap<V> implements Iterable<V>, Cloneable, Serializable, Collect
@Override
@SuppressWarnings("unchecked")
public V[] toArray() {
- V[] toR = (V[]) java.lang.reflect.Array.newInstance(mInternalMap.get(0).getClass(), mInternalMap.size());
+ V[] toR = (V[]) java.lang.reflect.Array.newInstance(
+ mInternalMap.get(0)
+ .getClass(),
+ mInternalMap.size());
for (int i = 0; i < mInternalMap.size(); i++) {
toR[i] = mInternalMap.get(i);
}
diff --git a/src/main/java/gtPlusPlus/api/objects/data/WeightedCollection.java b/src/main/java/gtPlusPlus/api/objects/data/WeightedCollection.java
index ae1f28f0c9..5d99097169 100644
--- a/src/main/java/gtPlusPlus/api/objects/data/WeightedCollection.java
+++ b/src/main/java/gtPlusPlus/api/objects/data/WeightedCollection.java
@@ -31,7 +31,8 @@ public class WeightedCollection<E> implements Map<Integer, E> {
private E next() {
int value = random.nextInt(total) + 1; // Can also use floating-point weights
- return map.ceilingEntry(value).getValue();
+ return map.ceilingEntry(value)
+ .getValue();
}
@Override
diff --git a/src/main/java/gtPlusPlus/api/objects/minecraft/BTF_FluidTank.java b/src/main/java/gtPlusPlus/api/objects/minecraft/BTF_FluidTank.java
index bf98c7d633..13f12503f0 100644
--- a/src/main/java/gtPlusPlus/api/objects/minecraft/BTF_FluidTank.java
+++ b/src/main/java/gtPlusPlus/api/objects/minecraft/BTF_FluidTank.java
@@ -84,12 +84,13 @@ public class BTF_FluidTank extends FluidTank {
@Override
public int fill(FluidStack aFluid, boolean doFill) {
- if (aFluid != null && aFluid.getFluid().getID() > 0
- && aFluid.amount > 0
- && this.canTankBeFilled()
- && this.isFluidInputAllowed(aFluid)) {
- if (this.getFillableStack() != null && this.getFillableStack().getFluid().getID() > 0) {
- if (!this.getFillableStack().isFluidEqual(aFluid)) {
+ if (aFluid != null && aFluid.getFluid()
+ .getID() > 0 && aFluid.amount > 0 && this.canTankBeFilled() && this.isFluidInputAllowed(aFluid)) {
+ if (this.getFillableStack() != null && this.getFillableStack()
+ .getFluid()
+ .getID() > 0) {
+ if (!this.getFillableStack()
+ .isFluidEqual(aFluid)) {
return 0;
} else {
int space = this.getCapacity() - this.getFillableStack().amount;
@@ -144,7 +145,8 @@ public class BTF_FluidTank extends FluidTank {
arg9999.amount -= used;
}
- FluidStack drained = this.getDrainableStack().copy();
+ FluidStack drained = this.getDrainableStack()
+ .copy();
drained.amount = used;
if (this.getDrainableStack().amount <= 0 && this.isFluidChangingAllowed()) {
this.setDrainableStack((FluidStack) null);
diff --git a/src/main/java/gtPlusPlus/api/objects/minecraft/BTF_Inventory.java b/src/main/java/gtPlusPlus/api/objects/minecraft/BTF_Inventory.java
index 7718f68176..fc71869d9e 100644
--- a/src/main/java/gtPlusPlus/api/objects/minecraft/BTF_Inventory.java
+++ b/src/main/java/gtPlusPlus/api/objects/minecraft/BTF_Inventory.java
@@ -97,7 +97,7 @@ public class BTF_Inventory implements ISidedInventory {
for (int rArray = 0; rArray < this.getSizeInventory(); ++rArray) {
if (this.isValidSlot(rArray)
- && (tSkip || coverInfo.letsItemsOut(rArray) || coverInfo.letsItemsIn(rArray))) {
+ && (tSkip || coverInfo.letsItemsOut(rArray) || coverInfo.letsItemsIn(rArray))) {
tList.add(rArray);
}
}
@@ -114,16 +114,16 @@ public class BTF_Inventory implements ISidedInventory {
@Override
public boolean canInsertItem(int aIndex, ItemStack aStack, int ordinalSide) {
return this.isValidSlot(aIndex) && aStack != null
- && aIndex < this.mInventory.length
- && (this.mInventory[aIndex] == null || GT_Utility.areStacksEqual(aStack, this.mInventory[aIndex]))
- && this.allowPutStack(this.mTile, aIndex, ForgeDirection.getOrientation(ordinalSide), aStack);
+ && aIndex < this.mInventory.length
+ && (this.mInventory[aIndex] == null || GT_Utility.areStacksEqual(aStack, this.mInventory[aIndex]))
+ && this.allowPutStack(this.mTile, aIndex, ForgeDirection.getOrientation(ordinalSide), aStack);
}
@Override
public boolean canExtractItem(int aIndex, ItemStack aStack, int ordinalSide) {
return this.isValidSlot(aIndex) && aStack != null
- && aIndex < this.mInventory.length
- && this.allowPullStack(this.mTile, aIndex, ForgeDirection.getOrientation(ordinalSide), aStack);
+ && aIndex < this.mInventory.length
+ && this.allowPullStack(this.mTile, aIndex, ForgeDirection.getOrientation(ordinalSide), aStack);
}
public boolean allowPullStack(TileEntityBase mTile2, int aIndex, ForgeDirection side, ItemStack aStack) {
@@ -131,9 +131,9 @@ public class BTF_Inventory implements ISidedInventory {
}
public boolean allowPutStack(TileEntityBase aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
return (aIndex >= 0 && aIndex < this.getSizeInventory())
- && (this.mInventory[aIndex] == null || GT_Utility.areStacksEqual(this.mInventory[aIndex], aStack));
+ && (this.mInventory[aIndex] == null || GT_Utility.areStacksEqual(this.mInventory[aIndex], aStack));
}
@Override
@@ -198,7 +198,8 @@ public class BTF_Inventory implements ISidedInventory {
if (mInventory != null && mInventory[s] != null) {
ItemStack slot = mInventory[s];
if (slot == null || (slot != null && GT_Utility.areStacksEqual(aInput, slot)
- && slot.stackSize != slot.getItem().getItemStackLimit(slot))) {
+ && slot.stackSize != slot.getItem()
+ .getItemStackLimit(slot))) {
if (slot == null) {
slot = aInput.copy();
} else {
diff --git a/src/main/java/gtPlusPlus/api/objects/minecraft/BlockPos.java b/src/main/java/gtPlusPlus/api/objects/minecraft/BlockPos.java
index 686c0e7667..3853f61793 100644
--- a/src/main/java/gtPlusPlus/api/objects/minecraft/BlockPos.java
+++ b/src/main/java/gtPlusPlus/api/objects/minecraft/BlockPos.java
@@ -91,8 +91,8 @@ public class BlockPos implements Serializable {
return false;
}
return this.xPos == otherPoint.xPos && this.yPos == otherPoint.yPos
- && this.zPos == otherPoint.zPos
- && this.dim == otherPoint.dim;
+ && this.zPos == otherPoint.zPos
+ && this.dim == otherPoint.dim;
}
public int distanceFrom(BlockPos target) {
diff --git a/src/main/java/gtPlusPlus/api/objects/minecraft/FluidGT6.java b/src/main/java/gtPlusPlus/api/objects/minecraft/FluidGT6.java
index a90a52e829..c5c903cd1f 100644
--- a/src/main/java/gtPlusPlus/api/objects/minecraft/FluidGT6.java
+++ b/src/main/java/gtPlusPlus/api/objects/minecraft/FluidGT6.java
@@ -23,7 +23,7 @@ public class FluidGT6 extends Fluid implements Runnable {
@Override
public int getColor() {
return (Math.max(0, Math.min(255, this.mRGBa[0])) << 16) | (Math.max(0, Math.min(255, this.mRGBa[1])) << 8)
- | Math.max(0, Math.min(255, this.mRGBa[2]));
+ | Math.max(0, Math.min(255, this.mRGBa[2]));
}
@Override
diff --git a/src/main/java/gtPlusPlus/api/objects/minecraft/ShapedRecipe.java b/src/main/java/gtPlusPlus/api/objects/minecraft/ShapedRecipe.java
index db9599e130..f799623dd6 100644
--- a/src/main/java/gtPlusPlus/api/objects/minecraft/ShapedRecipe.java
+++ b/src/main/java/gtPlusPlus/api/objects/minecraft/ShapedRecipe.java
@@ -17,7 +17,7 @@ public class ShapedRecipe {
ItemStack[] mBlackList = null;
public ShapedRecipe(Object aInput1, Object aInput2, Object aInput3, Object aInput4, Object aInput5, Object aInput6,
- Object aInput7, Object aInput8, Object aInput9, ItemStack aOutput) {
+ Object aInput7, Object aInput8, Object aInput9, ItemStack aOutput) {
this(new Object[] { aInput1, aInput2, aInput3, aInput4, aInput5, aInput6, aInput7, aInput8, aInput9 }, aOutput);
}
@@ -68,10 +68,10 @@ public class ShapedRecipe {
if (aInputs.length < 9 || aInputs.length > 9) {
Logger.RECIPE(
- "[Fix] Recipe for " + aOutput.getDisplayName()
- + " has incorrect number of inputs. Size: "
- + aInputs.length
- + ".");
+ "[Fix] Recipe for " + aOutput.getDisplayName()
+ + " has incorrect number of inputs. Size: "
+ + aInputs.length
+ + ".");
}
// Build a Pair for each slot
@@ -92,11 +92,12 @@ public class ShapedRecipe {
}
aRecipePairs.put(new Pair<>(CHARS.charAt(aCharSlot), stack));
Logger.RECIPE(
- "Storing '" + CHARS.charAt(aCharSlot)
- + "' with an object of type "
- + stack.getClass().getSimpleName()
- + " and a value of "
- + mInfo);
+ "Storing '" + CHARS.charAt(aCharSlot)
+ + "' with an object of type "
+ + stack.getClass()
+ .getSimpleName()
+ + " and a value of "
+ + mInfo);
aChar[aMemSlot++] = CHARS.charAt(aCharSlot);
aCharSlot++;
aLoggingInfo[aInfoSlot++] = mInfo;
@@ -130,7 +131,7 @@ public class ShapedRecipe {
aGrid[2] = "" + aGridWhole.charAt(6) + aGridWhole.charAt(7) + aGridWhole.charAt(8);
} else {
Logger.RECIPE(
- "[Fix] Grid length for recipe outputting " + aOutput.getDisplayName() + " is not 9.");
+ "[Fix] Grid length for recipe outputting " + aOutput.getDisplayName() + " is not 9.");
}
// Rebuild the Map without spaces
@@ -155,22 +156,23 @@ public class ShapedRecipe {
}
aRecipePairs.put(new Pair<>(CHARS.charAt(aCharSlot), stack));
Logger.RECIPE(
- "Registering Pair of '" + CHARS.charAt(aCharSlot)
- + "' and a "
- + stack.getClass().getSimpleName()
- + " object. Object has a value of "
- + mInfo);
+ "Registering Pair of '" + CHARS.charAt(aCharSlot)
+ + "' and a "
+ + stack.getClass()
+ .getSimpleName()
+ + " object. Object has a value of "
+ + mInfo);
aCharSlot++;
counter++;
}
}
Logger.RECIPE(
- "Counter started at " + KEY_COUNTER
- + ", counter is now at "
- + counter
- + ". Trying to create Varag array with a size of "
- + (KEY_COUNTER + (counter - KEY_COUNTER) * 2));
+ "Counter started at " + KEY_COUNTER
+ + ", counter is now at "
+ + counter
+ + ". Trying to create Varag array with a size of "
+ + (KEY_COUNTER + (counter - KEY_COUNTER) * 2));
// Counter started at 3, counter is now at 4. Trying to create Varag array with a size of 2
// Register the shaped grid straight to the varags
@@ -214,7 +216,7 @@ public class ShapedRecipe {
} else {
Logger.RECIPE(
- "[Fix] Recipe for " + aOutput.getDisplayName() + " contains a strange number of inputs.");
+ "[Fix] Recipe for " + aOutput.getDisplayName() + " contains a strange number of inputs.");
}
// Try set the recipe for this object.
diff --git a/src/main/java/gtPlusPlus/api/recipe/ChemicalPlantFrontend.java b/src/main/java/gtPlusPlus/api/recipe/ChemicalPlantFrontend.java
index c03ac8e146..beede78173 100644
--- a/src/main/java/gtPlusPlus/api/recipe/ChemicalPlantFrontend.java
+++ b/src/main/java/gtPlusPlus/api/recipe/ChemicalPlantFrontend.java
@@ -21,7 +21,7 @@ import gtPlusPlus.core.util.minecraft.ItemUtils;
public class ChemicalPlantFrontend extends RecipeMapFrontend {
public ChemicalPlantFrontend(BasicUIPropertiesBuilder uiPropertiesBuilder,
- NEIRecipePropertiesBuilder neiPropertiesBuilder) {
+ NEIRecipePropertiesBuilder neiPropertiesBuilder) {
super(uiPropertiesBuilder, neiPropertiesBuilder);
}
@@ -47,7 +47,7 @@ public class ChemicalPlantFrontend extends RecipeMapFrontend {
@Override
protected List<String> handleNEIItemInputTooltip(List<String> currentTip,
- GT_NEI_DefaultHandler.FixedPositionedStack pStack) {
+ GT_NEI_DefaultHandler.FixedPositionedStack pStack) {
if (ItemUtils.isCatalyst(pStack.item)) {
currentTip.add(GRAY + "Does not always get consumed in the process");
currentTip.add(GRAY + "Higher tier pipe casings allow this item to last longer");
diff --git a/src/main/java/gtPlusPlus/api/recipe/GTPPRecipeCategories.java b/src/main/java/gtPlusPlus/api/recipe/GTPPRecipeCategories.java
index 2d1aff7add..310f6f540d 100644
--- a/src/main/java/gtPlusPlus/api/recipe/GTPPRecipeCategories.java
+++ b/src/main/java/gtPlusPlus/api/recipe/GTPPRecipeCategories.java
@@ -10,10 +10,8 @@ public class GTPPRecipeCategories {
@RecipeCategoryHolder
public static final RecipeCategory absNonAlloyRecipes = new RecipeCategory(
- "gtpp.recipe.category.abs_non_alloy_recipes",
- GTPPRecipeMaps.alloyBlastSmelterRecipes,
- builder -> builder.setDisplayImage(
- createIcon(
- Mods.GTPlusPlus
- .getResourcePath("textures", "gui", "picture", "abs_non_alloy_recipes.png"))));
+ "gtpp.recipe.category.abs_non_alloy_recipes",
+ GTPPRecipeMaps.alloyBlastSmelterRecipes,
+ builder -> builder.setDisplayImage(
+ createIcon(Mods.GTPlusPlus.getResourcePath("textures", "gui", "picture", "abs_non_alloy_recipes.png"))));
}
diff --git a/src/main/java/gtPlusPlus/api/recipe/GTPPRecipeMaps.java b/src/main/java/gtPlusPlus/api/recipe/GTPPRecipeMaps.java
index 1796529c84..d2171d1bdd 100644
--- a/src/main/java/gtPlusPlus/api/recipe/GTPPRecipeMaps.java
+++ b/src/main/java/gtPlusPlus/api/recipe/GTPPRecipeMaps.java
@@ -26,139 +26,207 @@ import gtPlusPlus.xmod.gregtech.common.tileentities.machines.multi.production.Gr
public class GTPPRecipeMaps {
public static final RecipeMap<RecipeMapBackend> cokeOvenRecipes = RecipeMapBuilder.of("gtpp.recipe.cokeoven")
- .maxIO(2, 9, 1, 1).minInputs(1, 0).progressBar(GT_UITextures.PROGRESSBAR_SIFT, ProgressBar.Direction.DOWN)
- .build();
+ .maxIO(2, 9, 1, 1)
+ .minInputs(1, 0)
+ .progressBar(GT_UITextures.PROGRESSBAR_SIFT, ProgressBar.Direction.DOWN)
+ .build();
public static final RecipeMap<RecipeMapBackend> multiblockMassFabricatorRecipes = RecipeMapBuilder
- .of("gtpp.recipe.matterfab2").maxIO(2, 0, 1, 1).build();
+ .of("gtpp.recipe.matterfab2")
+ .maxIO(2, 0, 1, 1)
+ .build();
public static final RecipeMap<FuelBackend> rocketFuels = RecipeMapBuilder
- .of("gtpp.recipe.rocketenginefuel", FuelBackend::new).maxIO(0, 0, 1, 0)
- .neiSpecialInfoFormatter(
- recipeInfo -> Collections.singletonList(
- StatCollector.translateToLocalFormatted(
- "GT5U.nei.fuel",
- GT_Utility.formatNumbers(recipeInfo.recipe.mSpecialValue * 3000L))))
- .build();
+ .of("gtpp.recipe.rocketenginefuel", FuelBackend::new)
+ .maxIO(0, 0, 1, 0)
+ .neiSpecialInfoFormatter(
+ recipeInfo -> Collections.singletonList(
+ StatCollector.translateToLocalFormatted(
+ "GT5U.nei.fuel",
+ GT_Utility.formatNumbers(recipeInfo.recipe.mSpecialValue * 3000L))))
+ .build();
public static final RecipeMap<RecipeMapBackend> quantumForceTransformerRecipes = RecipeMapBuilder
- .of("gtpp.recipe.quantumforcesmelter").maxIO(6, 6, 6, 6).minInputs(1, 0)
- .progressBar(GT_UITextures.PROGRESSBAR_ARROW_MULTIPLE)
- .neiSpecialInfoFormatter(new SimpleSpecialValueFormatter("GT5U.nei.tier")).frontend(LargeNEIFrontend::new)
- .build();
+ .of("gtpp.recipe.quantumforcesmelter")
+ .maxIO(6, 6, 6, 6)
+ .minInputs(1, 0)
+ .progressBar(GT_UITextures.PROGRESSBAR_ARROW_MULTIPLE)
+ .neiSpecialInfoFormatter(new SimpleSpecialValueFormatter("GT5U.nei.tier"))
+ .frontend(LargeNEIFrontend::new)
+ .build();
public static final RecipeMap<RecipeMapBackend> chemicalDehydratorRecipes = RecipeMapBuilder
- .of("gtpp.recipe.chemicaldehydrator").maxIO(2, 9, 1, 1)
- .progressBar(GT_UITextures.PROGRESSBAR_SIFT, ProgressBar.Direction.DOWN).build();
+ .of("gtpp.recipe.chemicaldehydrator")
+ .maxIO(2, 9, 1, 1)
+ .progressBar(GT_UITextures.PROGRESSBAR_SIFT, ProgressBar.Direction.DOWN)
+ .build();
public static final RecipeMap<RecipeMapBackend> vacuumFurnaceRecipes = RecipeMapBuilder.of("gtpp.recipe.vacfurnace")
- .maxIO(9, 9, 3, 3).minInputs(1, 0).neiSpecialInfoFormatter(HeatingCoilSpecialValueFormatter.INSTANCE)
- .frontend(LargeNEIFrontend::new).build();
+ .maxIO(9, 9, 3, 3)
+ .minInputs(1, 0)
+ .neiSpecialInfoFormatter(HeatingCoilSpecialValueFormatter.INSTANCE)
+ .frontend(LargeNEIFrontend::new)
+ .build();
public static final RecipeMap<RecipeMapBackend> alloyBlastSmelterRecipes = RecipeMapBuilder
- .of("gtpp.recipe.alloyblastsmelter").maxIO(9, 9, 3, 3).minInputs(1, 0).frontend(LargeNEIFrontend::new)
- .build();
+ .of("gtpp.recipe.alloyblastsmelter")
+ .maxIO(9, 9, 3, 3)
+ .minInputs(1, 0)
+ .frontend(LargeNEIFrontend::new)
+ .build();
public static final RecipeMap<RecipeMapBackend> liquidFluorineThoriumReactorRecipes = RecipeMapBuilder
- .of("gtpp.recipe.lftr").maxIO(0, 0, 6, 6).minInputs(0, 2).frontend(FluidOnlyFrontend::new)
- .neiSpecialInfoFormatter(recipeInfo -> {
- final long eut = recipeInfo.recipe.mSpecialValue;
- final int duration = recipeInfo.recipe.mDuration;
- return Arrays.asList(
- StatCollector.translateToLocalFormatted("gtpp.nei.lftr.power", GT_Utility.formatNumbers(eut)),
- StatCollector.translateToLocalFormatted(
- "gtpp.nei.lftr.dynamo",
- MathUtils.formatNumbers(duration * eut)),
- StatCollector.translateToLocalFormatted(
- "gtpp.nei.lftr.total",
- MathUtils.formatNumbers(duration * eut * 4)));
- }).build();
+ .of("gtpp.recipe.lftr")
+ .maxIO(0, 0, 6, 6)
+ .minInputs(0, 2)
+ .frontend(FluidOnlyFrontend::new)
+ .neiSpecialInfoFormatter(recipeInfo -> {
+ final long eut = recipeInfo.recipe.mSpecialValue;
+ final int duration = recipeInfo.recipe.mDuration;
+ return Arrays.asList(
+ StatCollector.translateToLocalFormatted("gtpp.nei.lftr.power", GT_Utility.formatNumbers(eut)),
+ StatCollector
+ .translateToLocalFormatted("gtpp.nei.lftr.dynamo", MathUtils.formatNumbers(duration * eut)),
+ StatCollector
+ .translateToLocalFormatted("gtpp.nei.lftr.total", MathUtils.formatNumbers(duration * eut * 4)));
+ })
+ .build();
public static final RecipeMap<RecipeMapBackend> nuclearSaltProcessingPlantRecipes = RecipeMapBuilder
- .of("gtpp.recipe.nuclearsaltprocessingplant").maxIO(1, 6, 2, 3).frontend(LargeNEIFrontend::new).build();
+ .of("gtpp.recipe.nuclearsaltprocessingplant")
+ .maxIO(1, 6, 2, 3)
+ .frontend(LargeNEIFrontend::new)
+ .build();
public static final RecipeMap<RecipeMapBackend> millingRecipes = RecipeMapBuilder.of("gtpp.recipe.oremill")
- .maxIO(3, 1, 0, 0).minInputs(1, 0).frontend(MillingFrontend::new).build();
+ .maxIO(3, 1, 0, 0)
+ .minInputs(1, 0)
+ .frontend(MillingFrontend::new)
+ .build();
public static final RecipeMap<RecipeMapBackend> fissionFuelProcessingRecipes = RecipeMapBuilder
- .of("gtpp.recipe.fissionfuel").maxIO(0, 0, 6, 1).frontend(FluidOnlyFrontend::new).build();
+ .of("gtpp.recipe.fissionfuel")
+ .maxIO(0, 0, 6, 1)
+ .frontend(FluidOnlyFrontend::new)
+ .build();
public static final RecipeMap<RecipeMapBackend> coldTrapRecipes = RecipeMapBuilder.of("gtpp.recipe.coldtrap")
- .maxIO(2, 9, 1, 1).progressBar(GT_UITextures.PROGRESSBAR_SIFT, ProgressBar.Direction.DOWN).build();
+ .maxIO(2, 9, 1, 1)
+ .progressBar(GT_UITextures.PROGRESSBAR_SIFT, ProgressBar.Direction.DOWN)
+ .build();
public static final RecipeMap<RecipeMapBackend> reactorProcessingUnitRecipes = RecipeMapBuilder
- .of("gtpp.recipe.reactorprocessingunit").maxIO(2, 9, 1, 1)
- .progressBar(GT_UITextures.PROGRESSBAR_SIFT, ProgressBar.Direction.DOWN).build();
+ .of("gtpp.recipe.reactorprocessingunit")
+ .maxIO(2, 9, 1, 1)
+ .progressBar(GT_UITextures.PROGRESSBAR_SIFT, ProgressBar.Direction.DOWN)
+ .build();
public static final RecipeMap<RecipeMapBackend> simpleWasherRecipes = RecipeMapBuilder
- .of("gtpp.recipe.simplewasher").maxIO(1, 1, 1, 0)
- .slotOverlays(
- (index, isFluid, isOutput, isSpecial) -> !isFluid && !isOutput ? GT_UITextures.OVERLAY_SLOT_CAULDRON
- : null)
- .progressBar(GT_UITextures.PROGRESSBAR_ARROW_MULTIPLE).build();
+ .of("gtpp.recipe.simplewasher")
+ .maxIO(1, 1, 1, 0)
+ .slotOverlays(
+ (index, isFluid, isOutput, isSpecial) -> !isFluid && !isOutput ? GT_UITextures.OVERLAY_SLOT_CAULDRON : null)
+ .progressBar(GT_UITextures.PROGRESSBAR_ARROW_MULTIPLE)
+ .build();
public static final RecipeMap<RecipeMapBackend> molecularTransformerRecipes = RecipeMapBuilder
- .of("gtpp.recipe.moleculartransformer").maxIO(1, 1, 0, 0)
- .slotOverlays(
- (index, isFluid, isOutput,
- isSpecial) -> !isFluid && !isOutput ? GT_UITextures.OVERLAY_SLOT_MICROSCOPE : null)
- .neiHandlerInfo(
- builder -> builder.setDisplayStack(
- ItemUtils.getItemStackFromFQRN("AdvancedSolarPanel:BlockMolecularTransformer", 1)))
- .build();
+ .of("gtpp.recipe.moleculartransformer")
+ .maxIO(1, 1, 0, 0)
+ .slotOverlays(
+ (index, isFluid, isOutput, isSpecial) -> !isFluid && !isOutput ? GT_UITextures.OVERLAY_SLOT_MICROSCOPE
+ : null)
+ .neiHandlerInfo(
+ builder -> builder
+ .setDisplayStack(ItemUtils.getItemStackFromFQRN("AdvancedSolarPanel:BlockMolecularTransformer", 1)))
+ .build();
public static final RecipeMap<RecipeMapBackend> chemicalPlantRecipes = RecipeMapBuilder
- .of("gtpp.recipe.fluidchemicaleactor").maxIO(4, 6, 4, 3)
- .slotOverlays((index, isFluid, isOutput, isSpecial) -> {
- if (isFluid) {
- if (isOutput) {
- return GT_UITextures.OVERLAY_SLOT_VIAL_2;
- }
- return GT_UITextures.OVERLAY_SLOT_MOLECULAR_3;
- }
+ .of("gtpp.recipe.fluidchemicaleactor")
+ .maxIO(4, 6, 4, 3)
+ .slotOverlays((index, isFluid, isOutput, isSpecial) -> {
+ if (isFluid) {
if (isOutput) {
- return GT_UITextures.OVERLAY_SLOT_VIAL_1;
+ return GT_UITextures.OVERLAY_SLOT_VIAL_2;
}
- return GT_UITextures.OVERLAY_SLOT_MOLECULAR_1;
- }).progressBar(GTPP_UITextures.PROGRESSBAR_FLUID_REACTOR, ProgressBar.Direction.CIRCULAR_CW)
- .progressBarPos(82, 24).neiSpecialInfoFormatter(recipeInfo -> {
- int tier = recipeInfo.recipe.mSpecialValue + 1;
- String materialName = StatCollector.translateToLocal("gtpp.nei.chemplant.tier." + tier);
- return Collections.singletonList(
- StatCollector.translateToLocalFormatted("GT5U.nei.tier", tier + " - " + materialName));
- }).frontend(ChemicalPlantFrontend::new).build();
+ return GT_UITextures.OVERLAY_SLOT_MOLECULAR_3;
+ }
+ if (isOutput) {
+ return GT_UITextures.OVERLAY_SLOT_VIAL_1;
+ }
+ return GT_UITextures.OVERLAY_SLOT_MOLECULAR_1;
+ })
+ .progressBar(GTPP_UITextures.PROGRESSBAR_FLUID_REACTOR, ProgressBar.Direction.CIRCULAR_CW)
+ .progressBarPos(82, 24)
+ .neiSpecialInfoFormatter(recipeInfo -> {
+ int tier = recipeInfo.recipe.mSpecialValue + 1;
+ String materialName = StatCollector.translateToLocal("gtpp.nei.chemplant.tier." + tier);
+ return Collections
+ .singletonList(StatCollector.translateToLocalFormatted("GT5U.nei.tier", tier + " - " + materialName));
+ })
+ .frontend(ChemicalPlantFrontend::new)
+ .build();
public static final RecipeMap<FuelBackend> rtgFuels = RecipeMapBuilder
- .of("gtpp.recipe.RTGgenerators", FuelBackend::new).maxIO(1, 0, 0, 0)
- .neiSpecialInfoFormatter(new SimpleSpecialValueFormatter("gtpp.nei.rtg.days", 365)).build();
+ .of("gtpp.recipe.RTGgenerators", FuelBackend::new)
+ .maxIO(1, 0, 0, 0)
+ .neiSpecialInfoFormatter(new SimpleSpecialValueFormatter("gtpp.nei.rtg.days", 365))
+ .build();
public static final RecipeMap<RecipeMapBackend> thermalBoilerRecipes = RecipeMapBuilder
- .of("gtpp.recipe.thermalgeneratorfuel").maxIO(0, 9, 2, 3).frontend(ThermalBoilerFrontend::new).build();
+ .of("gtpp.recipe.thermalgeneratorfuel")
+ .maxIO(0, 9, 2, 3)
+ .frontend(ThermalBoilerFrontend::new)
+ .build();
public static final RecipeMap<RecipeMapBackend> solarTowerRecipes = RecipeMapBuilder.of("gtpp.recipe.solartower")
- .maxIO(0, 0, 1, 1)
- .neiSpecialInfoFormatter(
- recipeInfo -> Arrays.asList(
- StatCollector.translateToLocal("gtpp.nei.solar_tower.1"),
- StatCollector.translateToLocal("gtpp.nei.solar_tower.2"),
- StatCollector.translateToLocal("gtpp.nei.solar_tower.3")))
- .frontend(FluidOnlyFrontend::new).build();
+ .maxIO(0, 0, 1, 1)
+ .neiSpecialInfoFormatter(
+ recipeInfo -> Arrays.asList(
+ StatCollector.translateToLocal("gtpp.nei.solar_tower.1"),
+ StatCollector.translateToLocal("gtpp.nei.solar_tower.2"),
+ StatCollector.translateToLocal("gtpp.nei.solar_tower.3")))
+ .frontend(FluidOnlyFrontend::new)
+ .build();
public static final RecipeMap<RecipeMapBackend> cyclotronRecipes = RecipeMapBuilder.of("gtpp.recipe.cyclotron")
- .maxIO(9, 9, 1, 1).build();
+ .maxIO(9, 9, 1, 1)
+ .build();
public static final RecipeMap<RecipeMapBackend> fishPondRecipes = RecipeMapBuilder.of("gtpp.recipe.fishpond")
- .maxIO(1, 1, 0, 0)
- .slotOverlays(
- (index, isFluid, isOutput, isSpecial) -> !isFluid && !isOutput ? GT_UITextures.OVERLAY_SLOT_CAULDRON
- : null)
- .progressBar(GT_UITextures.PROGRESSBAR_ARROW_MULTIPLE).build();
+ .maxIO(1, 1, 0, 0)
+ .slotOverlays(
+ (index, isFluid, isOutput, isSpecial) -> !isFluid && !isOutput ? GT_UITextures.OVERLAY_SLOT_CAULDRON : null)
+ .progressBar(GT_UITextures.PROGRESSBAR_ARROW_MULTIPLE)
+ .build();
public static final RecipeMap<RecipeMapBackend> spargeTowerFakeRecipes = RecipeMapBuilder
- .of("gtpp.recipe.spargetower").maxIO(0, 0, 9, 9).disableRegisterNEI().build();
+ .of("gtpp.recipe.spargetower")
+ .maxIO(0, 0, 9, 9)
+ .disableRegisterNEI()
+ .build();
public static final RecipeMap<RecipeMapBackend> advancedFreezerRecipes = RecipeMapBuilder
- .of("gtpp.recipe.cryogenicfreezer").maxIO(1, 1, 2, 1).build();
+ .of("gtpp.recipe.cryogenicfreezer")
+ .maxIO(1, 1, 2, 1)
+ .build();
public static final RecipeMap<RecipeMapBackend> centrifugeNonCellRecipes = RecipeMapBuilder
- .of("gtpp.recipe.multicentrifuge").maxIO(6, 6, 6, 6).progressBar(GT_UITextures.PROGRESSBAR_EXTRACT)
- .frontend(LargeNEIFrontend::new).build();
+ .of("gtpp.recipe.multicentrifuge")
+ .maxIO(6, 6, 6, 6)
+ .progressBar(GT_UITextures.PROGRESSBAR_EXTRACT)
+ .frontend(LargeNEIFrontend::new)
+ .build();
public static final RecipeMap<RecipeMapBackend> electrolyzerNonCellRecipes = RecipeMapBuilder
- .of("gtpp.recipe.multielectro").maxIO(6, 6, 6, 6).progressBar(GT_UITextures.PROGRESSBAR_EXTRACT)
- .frontend(LargeNEIFrontend::new).build();
+ .of("gtpp.recipe.multielectro")
+ .maxIO(6, 6, 6, 6)
+ .progressBar(GT_UITextures.PROGRESSBAR_EXTRACT)
+ .frontend(LargeNEIFrontend::new)
+ .build();
public static final RecipeMap<RecipeMapBackend> mixerNonCellRecipes = RecipeMapBuilder.of("gtpp.recipe.multimixer")
- .maxIO(9, 9, 6, 6).progressBar(GT_UITextures.PROGRESSBAR_MIXER, ProgressBar.Direction.CIRCULAR_CW)
- .frontend(LargeNEIFrontend::new).build();
+ .maxIO(9, 9, 6, 6)
+ .progressBar(GT_UITextures.PROGRESSBAR_MIXER, ProgressBar.Direction.CIRCULAR_CW)
+ .frontend(LargeNEIFrontend::new)
+ .build();
public static final RecipeMap<RecipeMapBackend> chemicalDehydratorNonCellRecipes = RecipeMapBuilder
- .of("gtpp.recipe.multidehydrator").maxIO(6, 9, 3, 3).frontend(LargeNEIFrontend::new).build();
+ .of("gtpp.recipe.multidehydrator")
+ .maxIO(6, 9, 3, 3)
+ .frontend(LargeNEIFrontend::new)
+ .build();
public static final RecipeMap<FuelBackend> semiFluidFuels = RecipeMapBuilder
- .of("gtpp.recipe.semifluidgeneratorfuels", FuelBackend::new).maxIO(0, 0, 1, 0)
- .neiSpecialInfoFormatter(FuelSpecialValueFormatter.INSTANCE).build();
+ .of("gtpp.recipe.semifluidgeneratorfuels", FuelBackend::new)
+ .maxIO(0, 0, 1, 0)
+ .neiSpecialInfoFormatter(FuelSpecialValueFormatter.INSTANCE)
+ .build();
public static final RecipeMap<RecipeMapBackend> flotationCellRecipes = RecipeMapBuilder
- .of("gtpp.recipe.flotationcell").maxIO(6, 0, 1, 1).build();
+ .of("gtpp.recipe.flotationcell")
+ .maxIO(6, 0, 1, 1)
+ .build();
public static final RecipeMap<RecipeMapBackend> treeGrowthSimulatorFakeRecipes = RecipeMapBuilder
- .of("gtpp.recipe.treefarm")
- .maxIO(
- GregtechMetaTileEntityTreeFarm.Mode.values().length,
- GregtechMetaTileEntityTreeFarm.Mode.values().length,
- 0,
- 0)
- .minInputs(1, 0).useSpecialSlot().frontend(TGSFrontend::new).build();
+ .of("gtpp.recipe.treefarm")
+ .maxIO(
+ GregtechMetaTileEntityTreeFarm.Mode.values().length,
+ GregtechMetaTileEntityTreeFarm.Mode.values().length,
+ 0,
+ 0)
+ .minInputs(1, 0)
+ .useSpecialSlot()
+ .frontend(TGSFrontend::new)
+ .build();
}
diff --git a/src/main/java/gtPlusPlus/api/recipe/MillingFrontend.java b/src/main/java/gtPlusPlus/api/recipe/MillingFrontend.java
index 924dcf3a0e..26e2ab2ec9 100644
--- a/src/main/java/gtPlusPlus/api/recipe/MillingFrontend.java
+++ b/src/main/java/gtPlusPlus/api/recipe/MillingFrontend.java
@@ -20,13 +20,13 @@ import gtPlusPlus.core.util.minecraft.ItemUtils;
public class MillingFrontend extends RecipeMapFrontend {
public MillingFrontend(BasicUIPropertiesBuilder uiPropertiesBuilder,
- NEIRecipePropertiesBuilder neiPropertiesBuilder) {
+ NEIRecipePropertiesBuilder neiPropertiesBuilder) {
super(uiPropertiesBuilder, neiPropertiesBuilder);
}
@Override
protected List<String> handleNEIItemInputTooltip(List<String> currentTip,
- GT_NEI_DefaultHandler.FixedPositionedStack pStack) {
+ GT_NEI_DefaultHandler.FixedPositionedStack pStack) {
if (ItemUtils.isMillingBall(pStack.item)) {
currentTip.add(GRAY + StatCollector.translateToLocal("gtpp.nei.milling.not_consumed"));
} else {
diff --git a/src/main/java/gtPlusPlus/api/recipe/TGSFrontend.java b/src/main/java/gtPlusPlus/api/recipe/TGSFrontend.java
index b36bf62b56..e57ebaf5f9 100644
--- a/src/main/java/gtPlusPlus/api/recipe/TGSFrontend.java
+++ b/src/main/java/gtPlusPlus/api/recipe/TGSFrontend.java
@@ -39,10 +39,11 @@ public class TGSFrontend extends RecipeMapFrontend {
public TGSFrontend(BasicUIPropertiesBuilder uiPropertiesBuilder, NEIRecipePropertiesBuilder neiPropertiesBuilder) {
super(
- uiPropertiesBuilder.addNEITransferRect(
- new Rectangle(INPUTS_X + SLOT_SIZE * 2, INPUTS_Y + SLOT_SIZE / 2, SLOT_SIZE * 2, SLOT_SIZE))
- .progressBarPos(new Pos2d(CENTER_X - 10, INPUTS_Y + SLOT_SIZE / 2)),
- neiPropertiesBuilder.neiSpecialInfoFormatter(new TGSSpecialValueFormatter()));
+ uiPropertiesBuilder
+ .addNEITransferRect(
+ new Rectangle(INPUTS_X + SLOT_SIZE * 2, INPUTS_Y + SLOT_SIZE / 2, SLOT_SIZE * 2, SLOT_SIZE))
+ .progressBarPos(new Pos2d(CENTER_X - 10, INPUTS_Y + SLOT_SIZE / 2)),
+ neiPropertiesBuilder.neiSpecialInfoFormatter(new TGSSpecialValueFormatter()));
}
@Override
@@ -66,20 +67,20 @@ public class TGSFrontend extends RecipeMapFrontend {
}
private static final String[] tooltipInputs = { StatCollector.translateToLocal("gtpp.nei.tgs.tooltip.saw"),
- StatCollector.translateToLocal("gtpp.nei.tgs.tooltip.cutter"),
- StatCollector.translateToLocal("gtpp.nei.tgs.tooltip.shears"),
- StatCollector.translateToLocal("gtpp.nei.tgs.tooltip.knife") };
+ StatCollector.translateToLocal("gtpp.nei.tgs.tooltip.cutter"),
+ StatCollector.translateToLocal("gtpp.nei.tgs.tooltip.shears"),
+ StatCollector.translateToLocal("gtpp.nei.tgs.tooltip.knife") };
private static final String[] tooltipOutputs = { StatCollector.translateToLocal("gtpp.nei.tgs.tooltip.needsSaw"),
- StatCollector.translateToLocal("gtpp.nei.tgs.tooltip.needsCutter"),
- StatCollector.translateToLocal("gtpp.nei.tgs.tooltip.needsShears"),
- StatCollector.translateToLocal("gtpp.nei.tgs.tooltip.needsKnife") };
+ StatCollector.translateToLocal("gtpp.nei.tgs.tooltip.needsCutter"),
+ StatCollector.translateToLocal("gtpp.nei.tgs.tooltip.needsShears"),
+ StatCollector.translateToLocal("gtpp.nei.tgs.tooltip.needsKnife") };
private static final String tooltipSapling = StatCollector.translateToLocal("gtpp.nei.tgs.tooltip.sapling");
private static final String tooltipMultiplier = StatCollector.translateToLocal("gtpp.nei.tgs.tooltip.multiplier");
@Override
public List<String> handleNEIItemTooltip(ItemStack stack, List<String> currentTip,
- GT_NEI_DefaultHandler.CachedDefaultRecipe neiCachedRecipe) {
+ GT_NEI_DefaultHandler.CachedDefaultRecipe neiCachedRecipe) {
/*
* This gets a little complicated, because we want to assign tooltips to inputs/outputs based on which mode
@@ -138,9 +139,9 @@ public class TGSFrontend extends RecipeMapFrontend {
@Override
public List<String> format(RecipeDisplayInfo recipeInfo) {
return Arrays.asList(
- StatCollector.translateToLocal("gtpp.nei.tgs.info-1"),
- StatCollector.translateToLocal("gtpp.nei.tgs.info-2"),
- StatCollector.translateToLocal("gtpp.nei.tgs.info-3"));
+ StatCollector.translateToLocal("gtpp.nei.tgs.info-1"),
+ StatCollector.translateToLocal("gtpp.nei.tgs.info-2"),
+ StatCollector.translateToLocal("gtpp.nei.tgs.info-3"));
}
}
}
diff --git a/src/main/java/gtPlusPlus/api/recipe/ThermalBoilerFrontend.java b/src/main/java/gtPlusPlus/api/recipe/ThermalBoilerFrontend.java
index 9c78519765..93974b9f9a 100644
--- a/src/main/java/gtPlusPlus/api/recipe/ThermalBoilerFrontend.java
+++ b/src/main/java/gtPlusPlus/api/recipe/ThermalBoilerFrontend.java
@@ -25,19 +25,16 @@ public class ThermalBoilerFrontend extends LargeNEIFrontend {
private static final int maxInputs = 3;
public ThermalBoilerFrontend(BasicUIPropertiesBuilder uiPropertiesBuilder,
- NEIRecipePropertiesBuilder neiPropertiesBuilder) {
+ NEIRecipePropertiesBuilder neiPropertiesBuilder) {
super(
- uiPropertiesBuilder,
- neiPropertiesBuilder.neiSpecialInfoFormatter(new ThermalBoilerSpecialValueFormatter()));
+ uiPropertiesBuilder,
+ neiPropertiesBuilder.neiSpecialInfoFormatter(new ThermalBoilerSpecialValueFormatter()));
}
@Override
public List<Pos2d> getFluidInputPositions(int fluidInputCount) {
- return UIHelper.getGridPositions(
- fluidInputCount,
- xOrigin + tileSize * (maxInputs - fluidInputCount),
- yOrigin,
- maxInputs);
+ return UIHelper
+ .getGridPositions(fluidInputCount, xOrigin + tileSize * (maxInputs - fluidInputCount), yOrigin, maxInputs);
}
private static class ThermalBoilerSpecialValueFormatter implements INEISpecialInfoFormatter {
diff --git a/src/main/java/gtPlusPlus/core/block/base/BasicBlock.java b/src/main/java/gtPlusPlus/core/block/base/BasicBlock.java
index 006314b2db..d39c194dfd 100644
--- a/src/main/java/gtPlusPlus/core/block/base/BasicBlock.java
+++ b/src/main/java/gtPlusPlus/core/block/base/BasicBlock.java
@@ -18,7 +18,8 @@ public class BasicBlock extends BlockContainer {
super(material);
this.setBlockName(Utils.sanitizeString(unlocalizedName));
- if (type != BlockTypes.ORE && !unlocalizedName.toLowerCase().contains("ore")) {
+ if (type != BlockTypes.ORE && !unlocalizedName.toLowerCase()
+ .contains("ore")) {
this.setBlockTextureName(GTPlusPlus.ID + ":" + unlocalizedName);
}
@@ -63,7 +64,7 @@ public class BasicBlock extends BlockContainer {
@Override
public boolean canCreatureSpawn(final EnumCreatureType type, final IBlockAccess world, final int x, final int y,
- final int z) {
+ final int z) {
return false;
}
}
diff --git a/src/main/java/gtPlusPlus/core/block/base/BasicTileBlockWithTooltip.java b/src/main/java/gtPlusPlus/core/block/base/BasicTileBlockWithTooltip.java
index d6119e5608..c39565ea41 100644
--- a/src/main/java/gtPlusPlus/core/block/base/BasicTileBlockWithTooltip.java
+++ b/src/main/java/gtPlusPlus/core/block/base/BasicTileBlockWithTooltip.java
@@ -147,7 +147,9 @@ public abstract class BasicTileBlockWithTooltip extends BlockContainer implement
@Override
@SideOnly(Side.CLIENT)
public final IIcon getIcon(final int ordinalSide, final int aMeta) {
- return mSidedTextureArray.get(aMeta).get(ForgeDirection.getOrientation(ordinalSide)).getIcon();
+ return mSidedTextureArray.get(aMeta)
+ .get(ForgeDirection.getOrientation(ordinalSide))
+ .getIcon();
}
@Override
@@ -171,8 +173,8 @@ public abstract class BasicTileBlockWithTooltip extends BlockContainer implement
final String aPrefixTexPath = GTPlusPlus.ID + ":";
// Default Path Name, this will make us look in the subdirectory for this Tile Entity.
final String aTexPathMid = "TileEntities" + CORE.SEPERATOR
- + getTileEntityNameForTexturePathing()
- + CORE.SEPERATOR;
+ + getTileEntityNameForTexturePathing()
+ + CORE.SEPERATOR;
// Construct a full path
String aTexPathBuilt = aPrefixTexPath + aTexPathMid;
// File Name Suffixes, without meta tags
@@ -223,12 +225,12 @@ public abstract class BasicTileBlockWithTooltip extends BlockContainer implement
aStringRight = aTexPathBuilt + aStringRight;
// Convenience Blob
CubicObject<String> aMetaBlob = new CubicObject<>(
- aStringBot,
- aStringTop,
- aStringBack,
- aStringFront,
- aStringLeft,
- aStringRight);
+ aStringBot,
+ aStringTop,
+ aStringBack,
+ aStringFront,
+ aStringLeft,
+ aStringRight);
mSidedTexturePathArray.put(aMetaBlob);
Logger.INFO("[TeTexture] Added Texture Path data to map for meta " + i);
}
@@ -273,7 +275,7 @@ public abstract class BasicTileBlockWithTooltip extends BlockContainer implement
@Override
public final void breakBlock(final World world, final int x, final int y, final int z, final Block block,
- final int number) {
+ final int number) {
onBlockBreak();
InventoryUtils.dropInventoryItems(world, x, y, z, block);
super.breakBlock(world, x, y, z, block, number);
@@ -293,7 +295,7 @@ public abstract class BasicTileBlockWithTooltip extends BlockContainer implement
@Override
public boolean canCreatureSpawn(final EnumCreatureType type, final IBlockAccess world, final int x, final int y,
- final int z) {
+ final int z) {
return false;
}
@@ -307,7 +309,8 @@ public abstract class BasicTileBlockWithTooltip extends BlockContainer implement
@Override
public Item getItemDropped(int meta, Random rand, int p_149650_3_) {
- return ItemUtils.getSimpleStack(this, 1).getItem();
+ return ItemUtils.getSimpleStack(this, 1)
+ .getItem();
}
@Override
diff --git a/src/main/java/gtPlusPlus/core/block/base/BlockBaseFluid.java b/src/main/java/gtPlusPlus/core/block/base/BlockBaseFluid.java
index 0f6f5947e8..6772b71262 100644
--- a/src/main/java/gtPlusPlus/core/block/base/BlockBaseFluid.java
+++ b/src/main/java/gtPlusPlus/core/block/base/BlockBaseFluid.java
@@ -78,22 +78,25 @@ public class BlockBaseFluid extends BlockFluidClassic {
}
if (arg4.nextInt(20) == 0
- && arg0.isSideSolid(
- arg1,
- arg2 + super.densityDir,
- arg3,
- super.densityDir == -1 ? ForgeDirection.UP : ForgeDirection.DOWN)
- && !arg0.getBlock(arg1, arg2 + 2 * super.densityDir, arg3).getMaterial().blocksMovement()) {
+ && arg0.isSideSolid(
+ arg1,
+ arg2 + super.densityDir,
+ arg3,
+ super.densityDir == -1 ? ForgeDirection.UP : ForgeDirection.DOWN)
+ && !arg0.getBlock(arg1, arg2 + 2 * super.densityDir, arg3)
+ .getMaterial()
+ .blocksMovement()) {
EntityDropParticleFX arg11 = new EntityDropParticleFX(
- arg0,
- arg5,
- arg7,
- arg9,
- this.particleRed,
- this.particleGreen,
- this.particleBlue,
- super.densityDir);
- FMLClientHandler.instance().getClient().effectRenderer.addEffect(arg11);
+ arg0,
+ arg5,
+ arg7,
+ arg9,
+ this.particleRed,
+ this.particleGreen,
+ this.particleBlue,
+ super.densityDir);
+ FMLClientHandler.instance()
+ .getClient().effectRenderer.addEffect(arg11);
}
}
}
diff --git a/src/main/java/gtPlusPlus/core/block/base/BlockBaseModular.java b/src/main/java/gtPlusPlus/core/block/base/BlockBaseModular.java
index 81c14bb16c..b07c6d1529 100644
--- a/src/main/java/gtPlusPlus/core/block/base/BlockBaseModular.java
+++ b/src/main/java/gtPlusPlus/core/block/base/BlockBaseModular.java
@@ -48,12 +48,12 @@ public class BlockBaseModular extends BasicBlock {
public BlockBaseModular(final Material material, final BlockTypes blockType, final int colour) {
this(
- material.getUnlocalizedName(),
- material.getLocalizedName(),
- net.minecraft.block.material.Material.iron,
- blockType,
- colour,
- Math.min(Math.max(material.vTier, 1), 6));
+ material.getUnlocalizedName(),
+ material.getLocalizedName(),
+ net.minecraft.block.material.Material.iron,
+ blockType,
+ colour,
+ Math.min(Math.max(material.vTier, 1), 6));
blockMaterial = material;
registerComponent();
sBlockCache.put(material.getUnlocalizedName() + "." + blockType.name(), this);
@@ -62,35 +62,38 @@ public class BlockBaseModular extends BasicBlock {
}
protected BlockBaseModular(final String unlocalizedName, final String blockMaterialString,
- final net.minecraft.block.material.Material vanillaMaterial, final BlockTypes blockType, final int colour,
- final int miningLevel) {
+ final net.minecraft.block.material.Material vanillaMaterial, final BlockTypes blockType, final int colour,
+ final int miningLevel) {
super(blockType, unlocalizedName, vanillaMaterial, miningLevel);
this.setHarvestLevel(blockType.getHarvestTool(), miningLevel);
this.setBlockTextureName(GTPlusPlus.ID + ":" + blockType.getTexture());
this.blockColour = colour;
this.thisBlock = blockType;
this.thisBlockMaterial = blockMaterialString;
- this.thisBlockType = blockType.name().toUpperCase();
+ this.thisBlockType = blockType.name()
+ .toUpperCase();
this.setBlockName(this.getUnlocalizedProperName());
int fx = getBlockTypeMeta();
GameRegistry.registerBlock(
- this,
- ItemBlockGtBlock.class,
- Utils.sanitizeString(blockType.getTexture() + unlocalizedName));
+ this,
+ ItemBlockGtBlock.class,
+ Utils.sanitizeString(blockType.getTexture() + unlocalizedName));
if (fx == 0) {
GT_OreDictUnificator
- .registerOre("block" + unifyMaterialName(thisBlockMaterial), ItemUtils.getSimpleStack(this));
+ .registerOre("block" + unifyMaterialName(thisBlockMaterial), ItemUtils.getSimpleStack(this));
} else if (fx == 1) {
GT_OreDictUnificator
- .registerOre("frameGt" + unifyMaterialName(thisBlockMaterial), ItemUtils.getSimpleStack(this));
+ .registerOre("frameGt" + unifyMaterialName(thisBlockMaterial), ItemUtils.getSimpleStack(this));
} else if (fx == 2) {
GT_OreDictUnificator
- .registerOre("frameGt" + unifyMaterialName(thisBlockMaterial), ItemUtils.getSimpleStack(this));
+ .registerOre("frameGt" + unifyMaterialName(thisBlockMaterial), ItemUtils.getSimpleStack(this));
}
}
public static String unifyMaterialName(String rawMaterName) {
- return rawMaterName.replace(" ", "").replace("-", "").replace("_", "");
+ return rawMaterName.replace(" ", "")
+ .replace("-", "")
+ .replace("_", "");
}
public void registerComponent() {
@@ -107,7 +110,7 @@ public class BlockBaseModular extends BasicBlock {
}
int fx = getBlockTypeMeta();
String aKey = (fx == 0 ? OrePrefixes.block.name()
- : (fx == 1 ? OrePrefixes.frameGt.name() : OrePrefixes.ore.name()));
+ : (fx == 1 ? OrePrefixes.frameGt.name() : OrePrefixes.ore.name()));
ItemStack x = aMap.get(aKey);
if (x == null) {
aMap.put(aKey, ItemUtils.getSimpleStack(this));
@@ -120,13 +123,20 @@ public class BlockBaseModular extends BasicBlock {
}
public int getBlockTypeMeta() {
- if (this.thisBlockType.equals(BlockTypes.STANDARD.name().toUpperCase())) {
+ if (this.thisBlockType.equals(
+ BlockTypes.STANDARD.name()
+ .toUpperCase())) {
return 0;
- } else if (this.thisBlockType.equals(BlockTypes.FRAME.name().toUpperCase())) {
- return 1;
- } else if (this.thisBlockType.equals(BlockTypes.ORE.name().toUpperCase())) {
- return 2;
- }
+ } else if (this.thisBlockType.equals(
+ BlockTypes.FRAME.name()
+ .toUpperCase())) {
+ return 1;
+ } else
+ if (this.thisBlockType.equals(
+ BlockTypes.ORE.name()
+ .toUpperCase())) {
+ return 2;
+ }
return 0;
}
@@ -155,19 +165,25 @@ public class BlockBaseModular extends BasicBlock {
}
public String getUnlocalizedProperName() {
- return getProperName().replace("%s", "%temp").replace("%material", this.thisBlockMaterial)
- .replace("%temp", "%s");
+ return getProperName().replace("%s", "%temp")
+ .replace("%material", this.thisBlockMaterial)
+ .replace("%temp", "%s");
}
@Override
public String getLocalizedName() {
- return GT_LanguageManager.getTranslation("gtplusplus." + getUnlocalizedName() + ".name").replace("%s", "%temp")
- .replace("%material", this.thisBlockMaterialTranslatedName).replace("%temp", "%s");
+ return GT_LanguageManager.getTranslation("gtplusplus." + getUnlocalizedName() + ".name")
+ .replace("%s", "%temp")
+ .replace("%material", this.thisBlockMaterialTranslatedName)
+ .replace("%temp", "%s");
}
@Override
public String getUnlocalizedName() {
- return "block." + blockMaterial.getUnlocalizedName() + "." + this.thisBlock.name().toLowerCase();
+ return "block." + blockMaterial.getUnlocalizedName()
+ + "."
+ + this.thisBlock.name()
+ .toLowerCase();
}
@Override
@@ -183,7 +199,7 @@ public class BlockBaseModular extends BasicBlock {
@SideOnly(Side.CLIENT)
public void registerBlockIcons(final IIconRegister iIcon) {
if (!CORE.ConfigSwitches.useGregtechTextures || this.blockMaterial == null
- || this.thisBlock == BlockTypes.ORE) {
+ || this.thisBlock == BlockTypes.ORE) {
this.blockIcon = iIcon.registerIcon(GTPlusPlus.ID + ":" + this.thisBlock.getTexture());
}
String metType = "9j4852jyo3rjmh3owlhw9oe";
diff --git a/src/main/java/gtPlusPlus/core/block/base/BlockBaseOre.java b/src/main/java/gtPlusPlus/core/block/base/BlockBaseOre.java
index 7d2b89d0b4..1813090810 100644
--- a/src/main/java/gtPlusPlus/core/block/base/BlockBaseOre.java
+++ b/src/main/java/gtPlusPlus/core/block/base/BlockBaseOre.java
@@ -42,10 +42,10 @@ public class BlockBaseOre extends BasicBlock implements ITexturedBlock {
public BlockBaseOre(final Material material, final BlockTypes blockType) {
super(
- blockType,
- Utils.sanitizeString(material.getUnlocalizedName()),
- net.minecraft.block.material.Material.rock,
- Math.min(Math.max(material.vTier, 1), 6));
+ blockType,
+ Utils.sanitizeString(material.getUnlocalizedName()),
+ net.minecraft.block.material.Material.rock,
+ Math.min(Math.max(material.vTier, 1), 6));
int aMaterialTierForMining = Math.min(Math.max(material.vTier, 1), 6);
this.blockMaterial = material;
this.setHardness(1.0f * aMaterialTierForMining);
@@ -57,12 +57,12 @@ public class BlockBaseOre extends BasicBlock implements ITexturedBlock {
this.setBlockTextureName("stone");
try {
GameRegistry.registerBlock(
- this,
- ItemBlockOre.class,
- Utils.sanitizeString("ore" + Utils.sanitizeString(this.blockMaterial.getLocalizedName())));
+ this,
+ ItemBlockOre.class,
+ Utils.sanitizeString("ore" + Utils.sanitizeString(this.blockMaterial.getLocalizedName())));
GT_OreDictUnificator.registerOre(
- "ore" + Utils.sanitizeString(this.blockMaterial.getLocalizedName()),
- ItemUtils.getSimpleStack(this));
+ "ore" + Utils.sanitizeString(this.blockMaterial.getLocalizedName()),
+ ItemUtils.getSimpleStack(this));
} catch (Throwable t) {
t.printStackTrace();
}
@@ -70,7 +70,7 @@ public class BlockBaseOre extends BasicBlock implements ITexturedBlock {
@Override
public boolean canCreatureSpawn(final EnumCreatureType type, final IBlockAccess world, final int x, final int y,
- final int z) {
+ final int z) {
return false;
}
@@ -116,8 +116,8 @@ public class BlockBaseOre extends BasicBlock implements ITexturedBlock {
public ITexture[] getTexture(Block block, ForgeDirection side) {
if (this.blockMaterial != null) {
GTPP_RenderedTexture aIconSet = new GTPP_RenderedTexture(
- blockMaterial.getTextureSet().mTextures[OrePrefixes.ore.mTextureIndex],
- this.blockMaterial.getRGBA());
+ blockMaterial.getTextureSet().mTextures[OrePrefixes.ore.mTextureIndex],
+ this.blockMaterial.getRGBA());
return new ITexture[] { new GTPP_CopiedBlockTexture(Blocks.stone, 0, 0), aIconSet };
}
@@ -170,9 +170,9 @@ public class BlockBaseOre extends BasicBlock implements ITexturedBlock {
switch (GT_Mod.gregtechproxy.oreDropSystem) {
case Item -> {
drops.add(
- ItemUtils.getItemStackOfAmountFromOreDictNoBroken(
- "oreRaw" + this.blockMaterial.getLocalizedName(),
- 1));
+ ItemUtils.getItemStackOfAmountFromOreDictNoBroken(
+ "oreRaw" + this.blockMaterial.getLocalizedName(),
+ 1));
}
case FortuneItem -> {
// if shouldFortune and isNatural then get fortune drops
@@ -186,15 +186,15 @@ public class BlockBaseOre extends BasicBlock implements ITexturedBlock {
long amount = (long) new Random().nextInt(fortune) + aMinAmount;
for (int i = 0; i < amount; i++) {
drops.add(
- ItemUtils.getItemStackOfAmountFromOreDictNoBroken(
- "oreRaw" + this.blockMaterial.getLocalizedName(),
- 1));
+ ItemUtils.getItemStackOfAmountFromOreDictNoBroken(
+ "oreRaw" + this.blockMaterial.getLocalizedName(),
+ 1));
}
} else {
drops.add(
- ItemUtils.getItemStackOfAmountFromOreDictNoBroken(
- "oreRaw" + this.blockMaterial.getLocalizedName(),
- 1));
+ ItemUtils.getItemStackOfAmountFromOreDictNoBroken(
+ "oreRaw" + this.blockMaterial.getLocalizedName(),
+ 1));
}
}
case UnifiedBlock -> {
diff --git a/src/main/java/gtPlusPlus/core/block/general/BlockCompressedObsidian.java b/src/main/java/gtPlusPlus/core/block/general/BlockCompressedObsidian.java
index d80c056d65..0c353cfbdd 100644
--- a/src/main/java/gtPlusPlus/core/block/general/BlockCompressedObsidian.java
+++ b/src/main/java/gtPlusPlus/core/block/general/BlockCompressedObsidian.java
@@ -90,7 +90,7 @@ public class BlockCompressedObsidian extends BlockObsidian {
@Override
public ArrayList<ItemStack> getDrops(final World world, final int x, final int y, final int z, final int metadata,
- final int fortune) {
+ final int fortune) {
int m = metadata;
if (m == 5) {
m = 1;
diff --git a/src/main/java/gtPlusPlus/core/block/general/BlockSuperLight.java b/src/main/java/gtPlusPlus/core/block/general/BlockSuperLight.java
index ceb9b5500b..dc6c92f065 100644
--- a/src/main/java/gtPlusPlus/core/block/general/BlockSuperLight.java
+++ b/src/main/java/gtPlusPlus/core/block/general/BlockSuperLight.java
@@ -116,7 +116,7 @@ public class BlockSuperLight extends BlockContainer {
try {
if (mLastUpdateTick == 0 || (System.currentTimeMillis() - mLastUpdateTick) >= 30000) {
boolean powered = (this.worldObj
- .isBlockIndirectlyGettingPowered(this.xCoord, this.yCoord, this.zCoord));
+ .isBlockIndirectlyGettingPowered(this.xCoord, this.yCoord, this.zCoord));
boolean aLastState = mPowered;
// Logger.INFO("Powered: "+powered);
mPowered = powered;
@@ -147,10 +147,10 @@ public class BlockSuperLight extends BlockContainer {
Logger.INFO("Trying to relight area.");
BlockPos aStartIterationPoint = new BlockPos(
- this.xCoord - 24,
- this.yCoord - 4,
- this.zCoord - 24,
- this.worldObj);
+ this.xCoord - 24,
+ this.yCoord - 4,
+ this.zCoord - 24,
+ this.worldObj);
for (int x = 0; x < 50; x++) {
for (int y = 0; y < 10; y++) {
for (int z = 0; z < 50; z++) {
@@ -171,7 +171,7 @@ public class BlockSuperLight extends BlockContainer {
else if (enable && aLight == 0) {
aBlocksToUpdate.put(new BlockPos(xOff, yOff, zOff, this.worldObj));
this.worldObj
- .setBlock(xOff, yOff, zOff, ModBlocks.MatterFabricatorEffectBlock, 0, 3);
+ .setBlock(xOff, yOff, zOff, ModBlocks.MatterFabricatorEffectBlock, 0, 3);
aLitCounter++;
}
// Turning Lights off
diff --git a/src/main/java/gtPlusPlus/core/block/general/FluidTankInfinite.java b/src/main/java/gtPlusPlus/core/block/general/FluidTankInfinite.java
index 0a09e902f7..41a581394b 100644
--- a/src/main/java/gtPlusPlus/core/block/general/FluidTankInfinite.java
+++ b/src/main/java/gtPlusPlus/core/block/general/FluidTankInfinite.java
@@ -48,8 +48,8 @@ public class FluidTankInfinite extends BlockContainer {
@SideOnly(Side.CLIENT)
public IIcon getIcon(final int ordinalSide, final int meta) {
return ordinalSide == 1 ? this.textureTop
- : (ordinalSide == 0 ? this.textureBottom
- : ((ordinalSide != 2) && (ordinalSide != 4) ? this.blockIcon : this.textureFront));
+ : (ordinalSide == 0 ? this.textureBottom
+ : ((ordinalSide != 2) && (ordinalSide != 4) ? this.blockIcon : this.textureFront));
}
@Override
@@ -58,9 +58,9 @@ public class FluidTankInfinite extends BlockContainer {
this.blockIcon = p_149651_1_.registerIcon(GTPlusPlus.ID + ":" + "TileEntities/" + "Generic_Creative_Texture");
this.textureTop = p_149651_1_.registerIcon(GTPlusPlus.ID + ":" + "TileEntities/" + "Generic_Creative_Texture");
this.textureBottom = p_149651_1_
- .registerIcon(GTPlusPlus.ID + ":" + "TileEntities/" + "Generic_Creative_Texture");
+ .registerIcon(GTPlusPlus.ID + ":" + "TileEntities/" + "Generic_Creative_Texture");
this.textureFront = p_149651_1_
- .registerIcon(GTPlusPlus.ID + ":" + "TileEntities/" + "Generic_Creative_Texture");
+ .registerIcon(GTPlusPlus.ID + ":" + "TileEntities/" + "Generic_Creative_Texture");
}
/**
@@ -68,7 +68,7 @@ public class FluidTankInfinite extends BlockContainer {
*/
@Override
public boolean onBlockActivated(final World world, final int x, final int y, final int z, final EntityPlayer player,
- final int side, final float lx, final float ly, final float lz) {
+ final int side, final float lx, final float ly, final float lz) {
if (world.isRemote) {
return true;
} else {
@@ -76,13 +76,14 @@ public class FluidTankInfinite extends BlockContainer {
if (tank != null) {
Item handItem;
try {
- handItem = player.getHeldItem().getItem();
+ handItem = player.getHeldItem()
+ .getItem();
} catch (Throwable t) {
handItem = null;
}
if (handItem != null
- && (handItem instanceof IFluidContainerItem || handItem instanceof ItemFluidContainer
- || FluidContainerRegistry.isFilledContainer(player.getHeldItem()))) {
+ && (handItem instanceof IFluidContainerItem || handItem instanceof ItemFluidContainer
+ || FluidContainerRegistry.isFilledContainer(player.getHeldItem()))) {
if (tank.tank.getFluid() == null) {
try {
if (!FluidContainerRegistry.isFilledContainer(player.getHeldItem())) {
@@ -107,10 +108,11 @@ public class FluidTankInfinite extends BlockContainer {
}
if (tank.tank.getFluid() != null) {
PlayerUtils.messagePlayer(
- player,
- "This tank contains " + tank.tank.getFluidAmount()
- + "L of "
- + tank.tank.getFluid().getLocalizedName());
+ player,
+ "This tank contains " + tank.tank.getFluidAmount()
+ + "L of "
+ + tank.tank.getFluid()
+ .getLocalizedName());
}
}
}
diff --git a/src/main/java/gtPlusPlus/core/block/general/HellFire.java b/src/main/java/gtPlusPlus/core/block/general/HellFire.java
index 15a5c5ae17..4e8d94328d 100644
--- a/src/main/java/gtPlusPlus/core/block/general/HellFire.java
+++ b/src/main/java/gtPlusPlus/core/block/general/HellFire.java
@@ -96,18 +96,20 @@ public class HellFire extends BlockFire {
random = new XSTR();
- if (world.getGameRules().getGameRuleBooleanValue("doFireTick")) {
- final boolean flag = world.getBlock(x, y - 1, z).isFireSource(world, x, y - 1, z, UP);
+ if (world.getGameRules()
+ .getGameRuleBooleanValue("doFireTick")) {
+ final boolean flag = world.getBlock(x, y - 1, z)
+ .isFireSource(world, x, y - 1, z, UP);
if (!this.canPlaceBlockAt(world, x, y, z)) {
world.setBlockToAir(x, y, z);
}
if (!flag && world.isRaining()
- && (world.canLightningStrikeAt(x, y, z) || world.canLightningStrikeAt(x - 1, y, z)
- || world.canLightningStrikeAt(x + 1, y, z)
- || world.canLightningStrikeAt(x, y, z - 1)
- || world.canLightningStrikeAt(x, y, z + 1))) {
+ && (world.canLightningStrikeAt(x, y, z) || world.canLightningStrikeAt(x - 1, y, z)
+ || world.canLightningStrikeAt(x + 1, y, z)
+ || world.canLightningStrikeAt(x, y, z - 1)
+ || world.canLightningStrikeAt(x, y, z + 1))) {
if (MathUtils.randInt(0, 100) >= 90) {
world.setBlockToAir(x, y, z);
@@ -126,81 +128,79 @@ public class HellFire extends BlockFire {
world.setBlockToAir(x, y, z);
}
} else if (!flag && !this.canCatchFire(world, x, y - 1, z, UP)
- && (blockMeta == 15)
- && (random.nextInt(4) == 0)) {
- world.setBlockToAir(x, y, z);
- } else {
- final boolean flag1 = world.isBlockHighHumidity(x, y, z);
- byte b0 = 0;
-
- if (flag1) {
- b0 = -50;
- }
+ && (blockMeta == 15)
+ && (random.nextInt(4) == 0)) {
+ world.setBlockToAir(x, y, z);
+ } else {
+ final boolean flag1 = world.isBlockHighHumidity(x, y, z);
+ byte b0 = 0;
- this.tryCatchFire(world, x + 1, y, z, 300 + b0, random, blockMeta, WEST);
- this.tryCatchFire(world, x - 1, y, z, 300 + b0, random, blockMeta, EAST);
- this.tryCatchFire(world, x, y - 1, z, 250 + b0, random, blockMeta, UP);
- this.tryCatchFire(world, x, y + 1, z, 250 + b0, random, blockMeta, DOWN);
- this.tryCatchFire(world, x, y, z - 1, 300 + b0, random, blockMeta, SOUTH);
- this.tryCatchFire(world, x, y, z + 1, 300 + b0, random, blockMeta, NORTH);
-
- for (int i1 = x - 1; i1 <= (x + 1); ++i1) {
- for (int j1 = z - 1; j1 <= (z + 1); ++j1) {
- for (int k1 = y - 1; k1 <= (y + 4); ++k1) {
- if ((i1 != x) || (k1 != y) || (j1 != z)) {
- int l1 = 100;
-
- if (k1 > (y + 1)) {
- l1 += (k1 - (y + 1)) * 100;
- }
+ if (flag1) {
+ b0 = -50;
+ }
- final int neighbourFireChance = this
- .getChanceOfNeighborsEncouragingFire(world, i1, k1, j1);
+ this.tryCatchFire(world, x + 1, y, z, 300 + b0, random, blockMeta, WEST);
+ this.tryCatchFire(world, x - 1, y, z, 300 + b0, random, blockMeta, EAST);
+ this.tryCatchFire(world, x, y - 1, z, 250 + b0, random, blockMeta, UP);
+ this.tryCatchFire(world, x, y + 1, z, 250 + b0, random, blockMeta, DOWN);
+ this.tryCatchFire(world, x, y, z - 1, 300 + b0, random, blockMeta, SOUTH);
+ this.tryCatchFire(world, x, y, z + 1, 300 + b0, random, blockMeta, NORTH);
+
+ for (int i1 = x - 1; i1 <= (x + 1); ++i1) {
+ for (int j1 = z - 1; j1 <= (z + 1); ++j1) {
+ for (int k1 = y - 1; k1 <= (y + 4); ++k1) {
+ if ((i1 != x) || (k1 != y) || (j1 != z)) {
+ int l1 = 100;
+
+ if (k1 > (y + 1)) {
+ l1 += (k1 - (y + 1)) * 100;
+ }
- if (neighbourFireChance > 0) {
- int j2 = (neighbourFireChance + 40
- + (world.difficultySetting.getDifficultyId() * 14))
- / (blockMeta + 30);
+ final int neighbourFireChance = this
+ .getChanceOfNeighborsEncouragingFire(world, i1, k1, j1);
- if (flag1) {
- j2 /= 2;
- }
+ if (neighbourFireChance > 0) {
+ int j2 = (neighbourFireChance + 40
+ + (world.difficultySetting.getDifficultyId() * 14)) / (blockMeta + 30);
- if ((j2 > 0) && (random.nextInt(l1) <= j2)
- && (!world.isRaining()
- || !world.canLightningStrikeAt(i1, k1, j1))
- && !world.canLightningStrikeAt(i1 - 1, k1, z)
- && !world.canLightningStrikeAt(i1 + 1, k1, j1)
- && !world.canLightningStrikeAt(i1, k1, j1 - 1)
- && !world.canLightningStrikeAt(i1, k1, j1 + 1)) {
- int k2 = blockMeta + (random.nextInt(5) / 4);
+ if (flag1) {
+ j2 /= 2;
+ }
- if (k2 > 15) {
- k2 = 15;
- }
+ if ((j2 > 0) && (random.nextInt(l1) <= j2)
+ && (!world.isRaining() || !world.canLightningStrikeAt(i1, k1, j1))
+ && !world.canLightningStrikeAt(i1 - 1, k1, z)
+ && !world.canLightningStrikeAt(i1 + 1, k1, j1)
+ && !world.canLightningStrikeAt(i1, k1, j1 - 1)
+ && !world.canLightningStrikeAt(i1, k1, j1 + 1)) {
+ int k2 = blockMeta + (random.nextInt(5) / 4);
- world.setBlock(i1, k1, j1, this, k2, 3);
+ if (k2 > 15) {
+ k2 = 15;
}
+
+ world.setBlock(i1, k1, j1, this, k2, 3);
}
}
}
}
}
}
+ }
}
}
}
private void tryCatchFire(final World world, final int p_149841_2_, final int p_149841_3_, final int p_149841_4_,
- final int p_149841_5_, final Random p_149841_6_, final int p_149841_7_, final ForgeDirection face) {
+ final int p_149841_5_, final Random p_149841_6_, final int p_149841_7_, final ForgeDirection face) {
final int j1 = world.getBlock(p_149841_2_, p_149841_3_, p_149841_4_)
- .getFlammability(world, p_149841_2_, p_149841_3_, p_149841_4_, face);
+ .getFlammability(world, p_149841_2_, p_149841_3_, p_149841_4_, face);
if (p_149841_6_.nextInt(p_149841_5_) < j1) {
final boolean flag = world.getBlock(p_149841_2_, p_149841_3_, p_149841_4_) == Blocks.tnt;
if ((p_149841_6_.nextInt(p_149841_7_ + 10) < 5)
- && !world.canLightningStrikeAt(p_149841_2_, p_149841_3_, p_149841_4_)) {
+ && !world.canLightningStrikeAt(p_149841_2_, p_149841_3_, p_149841_4_)) {
int k1 = p_149841_7_ + (p_149841_6_.nextInt(5) / 4);
if (k1 > 15) {
@@ -223,10 +223,10 @@ public class HellFire extends BlockFire {
*/
private boolean canNeighborBurn(final World world, final int x, final int y, final int z) {
return this.canCatchFire(world, x + 1, y, z, WEST) || this.canCatchFire(world, x - 1, y, z, EAST)
- || this.canCatchFire(world, x, y - 1, z, UP)
- || this.canCatchFire(world, x, y + 1, z, DOWN)
- || this.canCatchFire(world, x, y, z - 1, SOUTH)
- || this.canCatchFire(world, x, y, z + 1, NORTH);
+ || this.canCatchFire(world, x, y - 1, z, UP)
+ || this.canCatchFire(world, x, y + 1, z, DOWN)
+ || this.canCatchFire(world, x, y, z - 1, SOUTH)
+ || this.canCatchFire(world, x, y, z + 1, NORTH);
}
/**
@@ -263,7 +263,7 @@ public class HellFire extends BlockFire {
*/
@Override
public void onNeighborBlockChange(final World worldObj, final int x, final int y, final int z,
- final Block blockObj) {
+ final Block blockObj) {
if (!World.doesBlockHaveSolidTopSurface(worldObj, x, y - 1, z) && !this.canNeighborBurn(worldObj, x, y, z)) {
worldObj.setBlockToAir(x, y, z);
}
@@ -291,14 +291,14 @@ public class HellFire extends BlockFire {
@Override
public boolean canCreatureSpawn(final EnumCreatureType type, final IBlockAccess world, final int x, final int y,
- final int z) {
+ final int z) {
return false;
}
// Burn
@Override
public void onEntityCollidedWithBlock(final World world, final int i, final int j, final int k,
- final Entity entity) {
+ final Entity entity) {
entity.setFire(10);
}
@@ -313,13 +313,13 @@ public class HellFire extends BlockFire {
if (randomObj.nextInt(24) == 0) {
world.playSound(
- x + 0.5F,
- y + 0.5F,
- z + 0.5F,
- "fire.fire",
- 1.0F + randomObj.nextFloat(),
- (randomObj.nextFloat() * 0.7F) + 0.3F,
- false);
+ x + 0.5F,
+ y + 0.5F,
+ z + 0.5F,
+ "fire.fire",
+ 1.0F + randomObj.nextFloat(),
+ (randomObj.nextFloat() * 0.7F) + 0.3F,
+ false);
}
int l;
@@ -328,7 +328,7 @@ public class HellFire extends BlockFire {
float f2;
if (!World.doesBlockHaveSolidTopSurface(world, x, y - 1, z)
- && !Blocks.fire.canCatchFire(world, x, y - 1, z, UP)) {
+ && !Blocks.fire.canCatchFire(world, x, y - 1, z, UP)) {
if (Blocks.fire.canCatchFire(world, x - 1, y, z, EAST)) {
for (l = 0; l < 2; ++l) {
f = x + (randomObj.nextFloat() * 0.1F);
@@ -399,8 +399,8 @@ public class HellFire extends BlockFire {
@SideOnly(Side.CLIENT)
public void registerBlockIcons(final IIconRegister IIconRegister) {
this.IIconArray = new IIcon[] {
- IIconRegister.registerIcon(GTPlusPlus.ID + ":" + "hellfire/" + "blockHellFire" + "_layer_0"),
- IIconRegister.registerIcon(GTPlusPlus.ID + ":" + "hellfire/" + "blockHellFire" + "_layer_1") };
+ IIconRegister.registerIcon(GTPlusPlus.ID + ":" + "hellfire/" + "blockHellFire" + "_layer_0"),
+ IIconRegister.registerIcon(GTPlusPlus.ID + ":" + "hellfire/" + "blockHellFire" + "_layer_1") };
}
@Override
@@ -506,8 +506,9 @@ public class HellFire extends BlockFire {
*/
@Override
public boolean canCatchFire(final IBlockAccess world, final int x, final int y, final int z,
- final ForgeDirection face) {
- return world.getBlock(x, y, z).isFlammable(world, x, y, z, face);
+ final ForgeDirection face) {
+ return world.getBlock(x, y, z)
+ .isFlammable(world, x, y, z, face);
}
/**
@@ -523,8 +524,9 @@ public class HellFire extends BlockFire {
*/
@Override
public int getChanceToEncourageFire(final IBlockAccess world, final int x, final int y, final int z,
- final int oldChance, final ForgeDirection face) {
- final int newChance = world.getBlock(x, y, z).getFireSpreadSpeed(world, x, y, z, face);
+ final int oldChance, final ForgeDirection face) {
+ final int newChance = world.getBlock(x, y, z)
+ .getFireSpreadSpeed(world, x, y, z, face);
return (newChance > oldChance ? newChance : oldChance);
}
/*
diff --git a/src/main/java/gtPlusPlus/core/block/general/LightGlass.java b/src/main/java/gtPlusPlus/core/block/general/LightGlass.java
index 64b2455e41..b6facce45f 100644
--- a/src/main/java/gtPlusPlus/core/block/general/LightGlass.java
+++ b/src/main/java/gtPlusPlus/core/block/general/LightGlass.java
@@ -130,7 +130,7 @@ public class LightGlass extends BlockAir {
@Override
@SideOnly(Side.CLIENT)
public void randomDisplayTick(final World world, final int posX, final int posY, final int posZ,
- final Random random) {
+ final Random random) {
// Utils.spawnFX(world, posX, posY, posZ, "smoke", "cloud");
}
diff --git a/src/main/java/gtPlusPlus/core/block/general/MiningExplosives.java b/src/main/java/gtPlusPlus/core/block/general/MiningExplosives.java
index a2773e646c..7579907e9d 100644
--- a/src/main/java/gtPlusPlus/core/block/general/MiningExplosives.java
+++ b/src/main/java/gtPlusPlus/core/block/general/MiningExplosives.java
@@ -64,7 +64,7 @@ public class MiningExplosives extends BlockTNT {
*/
@Override
public void onNeighborBlockChange(final World world, final int x, final int y, final int z,
- final Block neighbourblock) {
+ final Block neighbourblock) {
if (world.isBlockIndirectlyGettingPowered(x, y, z)) {
this.onBlockDestroyedByPlayer(world, x, y, z, 1);
world.setBlockToAir(x, y, z);
@@ -84,16 +84,16 @@ public class MiningExplosives extends BlockTNT {
*/
@Override
public void onBlockDestroyedByExplosion(final World world, final int x, final int y, final int z,
- final Explosion bang) {
+ final Explosion bang) {
if (!world.isRemote) {
final EntityPrimedMiningExplosive EntityPrimedMiningExplosive = new EntityPrimedMiningExplosive(
- world,
- x + 0.5F,
- y + 0.5F,
- z + 0.5F,
- bang.getExplosivePlacedBy());
+ world,
+ x + 0.5F,
+ y + 0.5F,
+ z + 0.5F,
+ bang.getExplosivePlacedBy());
EntityPrimedMiningExplosive.fuse = world.rand.nextInt(EntityPrimedMiningExplosive.fuse / 4)
- + (EntityPrimedMiningExplosive.fuse / 8);
+ + (EntityPrimedMiningExplosive.fuse / 8);
world.spawnEntityInWorld(EntityPrimedMiningExplosive);
}
}
@@ -109,15 +109,15 @@ public class MiningExplosives extends BlockTNT {
// TODO Spawns Primed TNT?
@Override
public void func_150114_a(final World world, final int p_150114_2_, final int p_150114_3_, final int p_150114_4_,
- final int p_150114_5_, final EntityLivingBase entityLiving) {
+ final int p_150114_5_, final EntityLivingBase entityLiving) {
if (!world.isRemote) {
if ((p_150114_5_ & 1) == 1) {
final EntityPrimedMiningExplosive EntityPrimedMiningExplosive = new EntityPrimedMiningExplosive(
- world,
- p_150114_2_ + 0.5F,
- p_150114_3_ + 0.5F,
- p_150114_4_ + 0.5F,
- entityLiving);
+ world,
+ p_150114_2_ + 0.5F,
+ p_150114_3_ + 0.5F,
+ p_150114_4_ + 0.5F,
+ entityLiving);
world.spawnEntityInWorld(EntityPrimedMiningExplosive);
world.playSoundAtEntity(EntityPrimedMiningExplosive, "game.tnt.primed", 1.0F, 1.0F);
}
@@ -129,25 +129,26 @@ public class MiningExplosives extends BlockTNT {
*/
@Override
public boolean onBlockActivated(final World world, final int x, final int y, final int z,
- final EntityPlayer clickingPlayer, final int p_149727_6_, final float p_149727_7_, final float p_149727_8_,
- final float p_149727_9_) {
- if ((clickingPlayer.getCurrentEquippedItem() != null)
- && (clickingPlayer.getCurrentEquippedItem().getItem() == Items.flint_and_steel)) {
+ final EntityPlayer clickingPlayer, final int p_149727_6_, final float p_149727_7_, final float p_149727_8_,
+ final float p_149727_9_) {
+ if ((clickingPlayer.getCurrentEquippedItem() != null) && (clickingPlayer.getCurrentEquippedItem()
+ .getItem() == Items.flint_and_steel)) {
this.func_150114_a(world, x, y, z, 1, clickingPlayer);
world.setBlockToAir(x, y, z);
- clickingPlayer.getCurrentEquippedItem().damageItem(1, clickingPlayer);
+ clickingPlayer.getCurrentEquippedItem()
+ .damageItem(1, clickingPlayer);
return true;
} else {
return super.onBlockActivated(
- world,
- x,
- y,
- z,
- clickingPlayer,
- p_149727_6_,
- p_149727_7_,
- p_149727_8_,
- p_149727_9_);
+ world,
+ x,
+ y,
+ z,
+ clickingPlayer,
+ p_149727_6_,
+ p_149727_7_,
+ p_149727_8_,
+ p_149727_9_);
}
}
diff --git a/src/main/java/gtPlusPlus/core/block/general/antigrief/BlockWitherProof.java b/src/main/java/gtPlusPlus/core/block/general/antigrief/BlockWitherProof.java
index c24ef46f5c..7e64f19bf3 100644
--- a/src/main/java/gtPlusPlus/core/block/general/antigrief/BlockWitherProof.java
+++ b/src/main/java/gtPlusPlus/core/block/general/antigrief/BlockWitherProof.java
@@ -60,7 +60,7 @@ public class BlockWitherProof extends Block {
@Override
public void onBlockDestroyedByExplosion(final World p_149723_1_, final int p_149723_2_, final int p_149723_3_,
- final int p_149723_4_, final Explosion p_149723_5_) {}
+ final int p_149723_4_, final Explosion p_149723_5_) {}
@Override
public boolean canDropFromExplosion(final Explosion p_149659_1_) {
@@ -69,12 +69,12 @@ public class BlockWitherProof extends Block {
@Override
public boolean canEntityDestroy(final IBlockAccess world, final int x, final int y, final int z,
- final Entity entity) {
+ final Entity entity) {
if ((entity == null) || !entity.isEntityAlive()) {
return false;
}
if ((entity instanceof EntityWither) || (entity instanceof EntityDragon)
- || (entity instanceof IBossDisplayData)) {
+ || (entity instanceof IBossDisplayData)) {
return false;
} else {
return super.canEntityDestroy(world, x, y, z, entity);
@@ -96,19 +96,19 @@ public class BlockWitherProof extends Block {
@Override
public boolean canCreatureSpawn(final EnumCreatureType type, final IBlockAccess world, final int x, final int y,
- final int z) {
+ final int z) {
return false;
}
@Override
public void breakBlock(World p_149749_1_, int p_149749_2_, int p_149749_3_, int p_149749_4_, Block p_149749_5_,
- int p_149749_6_) {
+ int p_149749_6_) {
super.breakBlock(p_149749_1_, p_149749_2_, p_149749_3_, p_149749_4_, p_149749_5_, p_149749_6_);
}
@Override
public float getPlayerRelativeBlockHardness(EntityPlayer aPlayer, World p_149737_2_, int p_149737_3_,
- int p_149737_4_, int p_149737_5_) {
+ int p_149737_4_, int p_149737_5_) {
if (aPlayer != null && aPlayer instanceof EntityPlayerMP) {
return 1f;
}
@@ -122,7 +122,7 @@ public class BlockWitherProof extends Block {
@Override
public void onBlockClicked(World p_149699_1_, int p_149699_2_, int p_149699_3_, int p_149699_4_,
- EntityPlayer p_149699_5_) {
+ EntityPlayer p_149699_5_) {
super.onBlockClicked(p_149699_1_, p_149699_2_, p_149699_3_, p_149699_4_, p_149699_5_);
}
@@ -132,7 +132,7 @@ public class BlockWitherProof extends Block {
return;
}
if ((entity instanceof EntityWither) || (entity instanceof EntityDragon)
- || (entity instanceof IBossDisplayData)) {
+ || (entity instanceof IBossDisplayData)) {
return;
} else {
super.onEntityCollidedWithBlock(world, x, y, z, entity);
@@ -141,7 +141,7 @@ public class BlockWitherProof extends Block {
@Override
public void harvestBlock(World p_149636_1_, EntityPlayer p_149636_2_, int p_149636_3_, int p_149636_4_,
- int p_149636_5_, int p_149636_6_) {
+ int p_149636_5_, int p_149636_6_) {
super.harvestBlock(p_149636_1_, p_149636_2_, p_149636_3_, p_149636_4_, p_149636_5_, p_149636_6_);
}
@@ -155,7 +155,7 @@ public class BlockWitherProof extends Block {
@Override
public float getExplosionResistance(Entity par1Entity, World world, int x, int y, int z, double explosionX,
- double explosionY, double explosionZ) {
+ double explosionY, double explosionZ) {
return Float.MAX_VALUE;
}
}
diff --git a/src/main/java/gtPlusPlus/core/block/general/fluids/BlockFluidSludge.java b/src/main/java/gtPlusPlus/core/block/general/fluids/BlockFluidSludge.java
index 804a09ee45..200f85d31d 100644
--- a/src/main/java/gtPlusPlus/core/block/general/fluids/BlockFluidSludge.java
+++ b/src/main/java/gtPlusPlus/core/block/general/fluids/BlockFluidSludge.java
@@ -42,7 +42,9 @@ public class BlockFluidSludge extends BlockFluidClassic {
@Override
public boolean canDisplace(final IBlockAccess world, final int x, final int y, final int z) {
- if (world.getBlock(x, y, z).getMaterial().isLiquid()) {
+ if (world.getBlock(x, y, z)
+ .getMaterial()
+ .isLiquid()) {
return false;
}
return super.canDisplace(world, x, y, z);
@@ -50,7 +52,9 @@ public class BlockFluidSludge extends BlockFluidClassic {
@Override
public boolean displaceIfPossible(final World world, final int x, final int y, final int z) {
- if (world.getBlock(x, y, z).getMaterial().isLiquid()) {
+ if (world.getBlock(x, y, z)
+ .getMaterial()
+ .isLiquid()) {
return false;
}
return super.displaceIfPossible(world, x, y, z);
@@ -58,7 +62,7 @@ public class BlockFluidSludge extends BlockFluidClassic {
@Override
public boolean canCreatureSpawn(final EnumCreatureType type, final IBlockAccess world, final int x, final int y,
- final int z) {
+ final int z) {
return false;
}
}
diff --git a/src/main/java/gtPlusPlus/core/block/machine/CircuitProgrammer.java b/src/main/java/gtPlusPlus/core/block/machine/CircuitProgrammer.java
index 95dca7163e..f6cd34aec1 100644
--- a/src/main/java/gtPlusPlus/core/block/machine/CircuitProgrammer.java
+++ b/src/main/java/gtPlusPlus/core/block/machine/CircuitProgrammer.java
@@ -43,7 +43,7 @@ public class CircuitProgrammer extends BasicTileBlockWithTooltip {
*/
@Override
public boolean onBlockActivated(final World world, final int x, final int y, final int z, final EntityPlayer player,
- final int side, final float lx, final float ly, final float lz) {
+ final int side, final float lx, final float ly, final float lz) {
if (world.isRemote) {
return true;
} else {
@@ -54,7 +54,7 @@ public class CircuitProgrammer extends BasicTileBlockWithTooltip {
final ItemStack mHandStack = PlayerUtils.getItemStackInPlayersHand(world, player.getDisplayName());
final Item mHandItem = mHandStack.getItem();
if (((mHandItem instanceof GT_MetaGenerated_Tool_01)
- && ((mHandItem.getDamage(mHandStack) == 22) || (mHandItem.getDamage(mHandStack) == 150)))) {
+ && ((mHandItem.getDamage(mHandStack) == 22) || (mHandItem.getDamage(mHandStack) == 150)))) {
final TileEntityCircuitProgrammer tile = (TileEntityCircuitProgrammer) world.getTileEntity(x, y, z);
if (tile != null) {
mDidScrewDriver = tile.onScrewdriverRightClick((byte) side, player, x, y, z);
@@ -97,7 +97,7 @@ public class CircuitProgrammer extends BasicTileBlockWithTooltip {
@Override
public void onBlockPlacedBy(final World world, final int x, final int y, final int z, final EntityLivingBase entity,
- final ItemStack stack) {
+ final ItemStack stack) {
if (stack.hasDisplayName()) {
((TileEntityCircuitProgrammer) world.getTileEntity(x, y, z)).setCustomName(stack.getDisplayName());
}
@@ -105,7 +105,7 @@ public class CircuitProgrammer extends BasicTileBlockWithTooltip {
@Override
public boolean canCreatureSpawn(final EnumCreatureType type, final IBlockAccess world, final int x, final int y,
- final int z) {
+ final int z) {
return false;
}
@@ -142,11 +142,11 @@ public class CircuitProgrammer extends BasicTileBlockWithTooltip {
@Override
public CubicObject<String>[] getCustomTextureDirectoryObject() {
String[] aTexData = new String[] { GTPlusPlus.ID + ":" + "metro/" + "TEXTURE_METAL_PANEL_G",
- GTPlusPlus.ID + ":" + "metro/" + "TEXTURE_TECH_PANEL_B",
- GTPlusPlus.ID + ":" + "metro/" + "TEXTURE_METAL_PANEL_I",
- GTPlusPlus.ID + ":" + "metro/" + "TEXTURE_METAL_PANEL_I",
- GTPlusPlus.ID + ":" + "metro/" + "TEXTURE_METAL_PANEL_I",
- GTPlusPlus.ID + ":" + "metro/" + "TEXTURE_METAL_PANEL_I" };
+ GTPlusPlus.ID + ":" + "metro/" + "TEXTURE_TECH_PANEL_B",
+ GTPlusPlus.ID + ":" + "metro/" + "TEXTURE_METAL_PANEL_I",
+ GTPlusPlus.ID + ":" + "metro/" + "TEXTURE_METAL_PANEL_I",
+ GTPlusPlus.ID + ":" + "metro/" + "TEXTURE_METAL_PANEL_I",
+ GTPlusPlus.ID + ":" + "metro/" + "TEXTURE_METAL_PANEL_I" };
CubicObject<String>[] aTextureData = new CubicObject[] { new CubicObject<>(aTexData) };
return aTextureData;
}
diff --git a/src/main/java/gtPlusPlus/core/block/machine/DecayablesChest.java b/src/main/java/gtPlusPlus/core/block/machine/DecayablesChest.java
index 1a2dba6e65..c333e7a5ca 100644
--- a/src/main/java/gtPlusPlus/core/block/machine/DecayablesChest.java
+++ b/src/main/java/gtPlusPlus/core/block/machine/DecayablesChest.java
@@ -98,7 +98,7 @@ public class DecayablesChest extends BlockContainer implements ITileTooltip {
*/
@Override
public void setBlockBoundsBasedOnState(IBlockAccess p_149719_1_, int p_149719_2_, int p_149719_3_,
- int p_149719_4_) {
+ int p_149719_4_) {
if (p_149719_1_.getBlock(p_149719_2_, p_149719_3_, p_149719_4_ - 1) == this) {
this.setBlockBounds(0.0625F, 0.0F, 0.0F, 0.9375F, 0.875F, 0.9375F);
} else if (p_149719_1_.getBlock(p_149719_2_, p_149719_3_, p_149719_4_ + 1) == this) {
@@ -135,7 +135,7 @@ public class DecayablesChest extends BlockContainer implements ITileTooltip {
*/
@Override
public boolean onBlockActivated(final World world, final int x, final int y, final int z, final EntityPlayer player,
- final int side, final float lx, final float ly, final float lz) {
+ final int side, final float lx, final float ly, final float lz) {
if (world.isRemote) {
return true;
}
@@ -165,14 +165,14 @@ public class DecayablesChest extends BlockContainer implements ITileTooltip {
@Override
public void breakBlock(final World world, final int x, final int y, final int z, final Block block,
- final int number) {
+ final int number) {
InventoryUtils.dropInventoryItems(world, x, y, z, block);
super.breakBlock(world, x, y, z, block, number);
}
@Override
public void onBlockPlacedBy(final World world, final int x, final int y, final int z, final EntityLivingBase entity,
- final ItemStack stack) {
+ final ItemStack stack) {
if (stack.hasDisplayName()) {
((TileEntityDecayablesChest) world.getTileEntity(x, y, z)).setCustomName(stack.getDisplayName());
}
@@ -180,7 +180,7 @@ public class DecayablesChest extends BlockContainer implements ITileTooltip {
@Override
public boolean canCreatureSpawn(final EnumCreatureType type, final IBlockAccess world, final int x, final int y,
- final int z) {
+ final int z) {
return false;
}
}
diff --git a/src/main/java/gtPlusPlus/core/block/machine/FishTrap.java b/src/main/java/gtPlusPlus/core/block/machine/FishTrap.java
index 1fb1e97703..0ec1ac629a 100644
--- a/src/main/java/gtPlusPlus/core/block/machine/FishTrap.java
+++ b/src/main/java/gtPlusPlus/core/block/machine/FishTrap.java
@@ -62,8 +62,8 @@ public class FishTrap extends BlockContainer implements ITileTooltip {
@SideOnly(Side.CLIENT)
public IIcon getIcon(final int ordinalSide, final int meta) {
return ordinalSide == 1 ? this.textureTop
- : (ordinalSide == 0 ? this.textureBottom
- : ((ordinalSide != 2) && (ordinalSide != 4) ? this.blockIcon : this.textureFront));
+ : (ordinalSide == 0 ? this.textureBottom
+ : ((ordinalSide != 2) && (ordinalSide != 4) ? this.blockIcon : this.textureFront));
}
@Override
@@ -80,7 +80,7 @@ public class FishTrap extends BlockContainer implements ITileTooltip {
*/
@Override
public boolean onBlockActivated(final World world, final int x, final int y, final int z, final EntityPlayer player,
- final int side, final float lx, final float ly, final float lz) {
+ final int side, final float lx, final float ly, final float lz) {
if (world.isRemote) {
return true;
}
@@ -115,14 +115,14 @@ public class FishTrap extends BlockContainer implements ITileTooltip {
@Override
public void breakBlock(final World world, final int x, final int y, final int z, final Block block,
- final int number) {
+ final int number) {
InventoryUtils.dropInventoryItems(world, x, y, z, block);
super.breakBlock(world, x, y, z, block, number);
}
@Override
public void onBlockPlacedBy(final World world, final int x, final int y, final int z, final EntityLivingBase entity,
- final ItemStack stack) {
+ final ItemStack stack) {
if (stack.hasDisplayName()) {
((TileEntityFishTrap) world.getTileEntity(x, y, z)).setCustomName(stack.getDisplayName());
}
@@ -130,7 +130,7 @@ public class FishTrap extends BlockContainer implements ITileTooltip {
@Override
public boolean canCreatureSpawn(final EnumCreatureType type, final IBlockAccess world, final int x, final int y,
- final int z) {
+ final int z) {
return false;
}
}
diff --git a/src/main/java/gtPlusPlus/core/block/machine/Machine_PestKiller.java b/src/main/java/gtPlusPlus/core/block/machine/Machine_PestKiller.java
index 68532bc478..bf98a22500 100644
--- a/src/main/java/gtPlusPlus/core/block/machine/Machine_PestKiller.java
+++ b/src/main/java/gtPlusPlus/core/block/machine/Machine_PestKiller.java
@@ -69,11 +69,11 @@ public class Machine_PestKiller extends BlockContainer implements ITileTooltip {
@SideOnly(Side.CLIENT)
public void registerBlockIcons(final IIconRegister p_149651_1_) {
this.blockIcon = p_149651_1_
- .registerIcon(GTPlusPlus.ID + ":" + "TileEntities/" + "MACHINE_CASING_FARM_MANAGER_STRUCTURAL");
+ .registerIcon(GTPlusPlus.ID + ":" + "TileEntities/" + "MACHINE_CASING_FARM_MANAGER_STRUCTURAL");
this.textureTop = p_149651_1_.registerIcon(GTPlusPlus.ID + ":" + "TileEntities/" + "MACHINE_PESTKILLER_TOP");
this.textureBottom = p_149651_1_.registerIcon("planks_acacia");
this.textureFront = p_149651_1_
- .registerIcon(GTPlusPlus.ID + ":" + "TileEntities/" + "MACHINE_CASING_FARM_MANAGER_STRUCTURAL");
+ .registerIcon(GTPlusPlus.ID + ":" + "TileEntities/" + "MACHINE_CASING_FARM_MANAGER_STRUCTURAL");
}
/**
@@ -81,7 +81,7 @@ public class Machine_PestKiller extends BlockContainer implements ITileTooltip {
*/
@Override
public boolean onBlockActivated(final World world, final int x, final int y, final int z, final EntityPlayer player,
- final int side, final float lx, final float ly, final float lz) {
+ final int side, final float lx, final float ly, final float lz) {
if (world.isRemote) {
return true;
}
@@ -116,14 +116,14 @@ public class Machine_PestKiller extends BlockContainer implements ITileTooltip {
@Override
public void breakBlock(final World world, final int x, final int y, final int z, final Block block,
- final int number) {
+ final int number) {
InventoryUtils.dropInventoryItems(world, x, y, z, block);
super.breakBlock(world, x, y, z, block, number);
}
@Override
public void onBlockPlacedBy(final World world, final int x, final int y, final int z, final EntityLivingBase entity,
- final ItemStack stack) {
+ final ItemStack stack) {
if (stack.hasDisplayName()) {
((TileEntityPestKiller) world.getTileEntity(x, y, z)).setCustomName(stack.getDisplayName());
}
@@ -131,7 +131,7 @@ public class Machine_PestKiller extends BlockContainer implements ITileTooltip {
@Override
public boolean canCreatureSpawn(final EnumCreatureType type, final IBlockAccess world, final int x, final int y,
- final int z) {
+ final int z) {
return false;
}
}
diff --git a/src/main/java/gtPlusPlus/core/block/machine/Machine_PooCollector.java b/src/main/java/gtPlusPlus/core/block/machine/Machine_PooCollector.java
index 103d85e5ea..4f1b679fcf 100644
--- a/src/main/java/gtPlusPlus/core/block/machine/Machine_PooCollector.java
+++ b/src/main/java/gtPlusPlus/core/block/machine/Machine_PooCollector.java
@@ -79,7 +79,7 @@ public class Machine_PooCollector extends BlockContainer {
*/
@Override
public boolean onBlockActivated(final World world, final int x, final int y, final int z, final EntityPlayer player,
- final int side, final float lx, final float ly, final float lz) {
+ final int side, final float lx, final float ly, final float lz) {
if (world.isRemote) {
return true;
} else {
@@ -87,7 +87,8 @@ public class Machine_PooCollector extends BlockContainer {
if (tank != null) {
Item handItem;
try {
- handItem = player.getHeldItem().getItem();
+ handItem = player.getHeldItem()
+ .getItem();
} catch (Throwable t) {
handItem = null;
}
@@ -116,10 +117,11 @@ public class Machine_PooCollector extends BlockContainer {
}
if (tank.tank.getFluid() != null) {
PlayerUtils.messagePlayer(
- player,
- "Tank contains " + tank.tank.getFluidAmount()
- + "L of "
- + tank.tank.getFluid().getLocalizedName());
+ player,
+ "Tank contains " + tank.tank.getFluidAmount()
+ + "L of "
+ + tank.tank.getFluid()
+ .getLocalizedName());
}
}
}
diff --git a/src/main/java/gtPlusPlus/core/block/machine/Machine_ProjectTable.java b/src/main/java/gtPlusPlus/core/block/machine/Machine_ProjectTable.java
index c6990e5d18..4f0d0d7d60 100644
--- a/src/main/java/gtPlusPlus/core/block/machine/Machine_ProjectTable.java
+++ b/src/main/java/gtPlusPlus/core/block/machine/Machine_ProjectTable.java
@@ -66,8 +66,8 @@ public class Machine_ProjectTable extends BlockContainer implements ITileTooltip
@SideOnly(Side.CLIENT)
public IIcon getIcon(final int ordinalSide, final int meta) {
return ordinalSide == 1 ? this.textureTop
- : (ordinalSide == 0 ? this.textureBottom
- : ((ordinalSide != 2) && (ordinalSide != 4) ? this.blockIcon : this.textureFront));
+ : (ordinalSide == 0 ? this.textureBottom
+ : ((ordinalSide != 2) && (ordinalSide != 4) ? this.blockIcon : this.textureFront));
}
@Override
@@ -84,7 +84,7 @@ public class Machine_ProjectTable extends BlockContainer implements ITileTooltip
*/
@Override
public boolean onBlockActivated(final World world, final int x, final int y, final int z, final EntityPlayer player,
- final int side, final float lx, final float ly, final float lz) {
+ final int side, final float lx, final float ly, final float lz) {
ItemStack heldItem = null;
if (world.isRemote) {
@@ -154,7 +154,7 @@ public class Machine_ProjectTable extends BlockContainer implements ITileTooltip
@Override
public boolean canCreatureSpawn(final EnumCreatureType type, final IBlockAccess world, final int x, final int y,
- final int z) {
+ final int z) {
return false;
}
}
diff --git a/src/main/java/gtPlusPlus/core/block/machine/Machine_SuperJukebox.java b/src/main/java/gtPlusPlus/core/block/machine/Machine_SuperJukebox.java
index 755636b4d3..470fa98a9b 100644
--- a/src/main/java/gtPlusPlus/core/block/machine/Machine_SuperJukebox.java
+++ b/src/main/java/gtPlusPlus/core/block/machine/Machine_SuperJukebox.java
@@ -55,7 +55,7 @@ public class Machine_SuperJukebox extends BlockJukebox {
*/
@Override
public boolean onBlockActivated(final World world, final int x, final int y, final int z, final EntityPlayer player,
- final int side, final float lx, final float ly, final float lz) {
+ final int side, final float lx, final float ly, final float lz) {
if (world.isRemote) {
return true;
}
@@ -124,7 +124,7 @@ public class Machine_SuperJukebox extends BlockJukebox {
@Override
public void breakBlock(World p_149749_1_, int p_149749_2_, int p_149749_3_, int p_149749_4_, Block p_149749_5_,
- int p_149749_6_) {
+ int p_149749_6_) {
this.func_149925_e(p_149749_1_, p_149749_2_, p_149749_3_, p_149749_4_);
super.breakBlock(p_149749_1_, p_149749_2_, p_149749_3_, p_149749_4_, p_149749_5_, p_149749_6_);
}
@@ -134,16 +134,16 @@ public class Machine_SuperJukebox extends BlockJukebox {
*/
@Override
public void dropBlockAsItemWithChance(World p_149690_1_, int p_149690_2_, int p_149690_3_, int p_149690_4_,
- int p_149690_5_, float p_149690_6_, int p_149690_7_) {
+ int p_149690_5_, float p_149690_6_, int p_149690_7_) {
if (!p_149690_1_.isRemote) {
super.dropBlockAsItemWithChance(
- p_149690_1_,
- p_149690_2_,
- p_149690_3_,
- p_149690_4_,
- p_149690_5_,
- p_149690_6_,
- 0);
+ p_149690_1_,
+ p_149690_2_,
+ p_149690_3_,
+ p_149690_4_,
+ p_149690_5_,
+ p_149690_6_,
+ 0);
}
}
@@ -213,8 +213,15 @@ public class Machine_SuperJukebox extends BlockJukebox {
super.writeToNBT(aNBT);
if (this.getCurrentRecord() != null) {
- aNBT.setTag("RecordItem", this.func_145856_a().writeToNBT(new NBTTagCompound()));
- aNBT.setInteger("Record", Item.getIdFromItem(this.func_145856_a().getItem()));
+ aNBT.setTag(
+ "RecordItem",
+ this.func_145856_a()
+ .writeToNBT(new NBTTagCompound()));
+ aNBT.setInteger(
+ "Record",
+ Item.getIdFromItem(
+ this.func_145856_a()
+ .getItem()));
}
final NBTTagCompound chestData = new NBTTagCompound();
@@ -293,7 +300,8 @@ public class Machine_SuperJukebox extends BlockJukebox {
// Determine which record to play
public boolean selectRecordToPlayFromInventoryAndSetViaVanillaHandler() {
AutoMap<ItemStack> mValidRecords = new AutoMap<>();
- for (ItemStack g : this.getInventory().getInventory()) {
+ for (ItemStack g : this.getInventory()
+ .getInventory()) {
if (g != null) {
if (g.getItem() instanceof ItemRecord) {
mValidRecords.put(g);
@@ -313,7 +321,8 @@ public class Machine_SuperJukebox extends BlockJukebox {
Logger.INFO("b2 - " + aRecordToPlay.getDisplayName());
int aSlotCounter = 0;
- for (ItemStack g : this.getInventory().getInventory()) {
+ for (ItemStack g : this.getInventory()
+ .getInventory()) {
if (g != null && aSlotCounter <= 17) {
Logger.INFO("b3 - " + g.getDisplayName());
if (GT_Utility.areStacksEqual(g, aRecordToPlay, true)) {
@@ -323,14 +332,14 @@ public class Machine_SuperJukebox extends BlockJukebox {
}
GT_Utility.moveStackFromSlotAToSlotB(
- aThisInv,
- aThisInv,
- aSlotCounter,
- 20,
- (byte) 1,
- (byte) 1,
- (byte) 1,
- (byte) 1);
+ aThisInv,
+ aThisInv,
+ aSlotCounter,
+ 20,
+ (byte) 1,
+ (byte) 1,
+ (byte) 1,
+ (byte) 1);
setCurrentRecord(aThisInv.getStackInSlot(20));
World aWorld = this.worldObj;
@@ -388,18 +397,12 @@ public class Machine_SuperJukebox extends BlockJukebox {
ItemStack g;
for (int i = 17; i >= 0; i--) {
- g = this.getInventory().getInventory()[i];
+ g = this.getInventory()
+ .getInventory()[i];
if (g == null && aSlotCounter >= 0) {
IInventory aThisInv = this.getInventory();
- GT_Utility.moveStackFromSlotAToSlotB(
- aThisInv,
- aThisInv,
- 20,
- i,
- (byte) 1,
- (byte) 1,
- (byte) 1,
- (byte) 1);
+ GT_Utility
+ .moveStackFromSlotAToSlotB(aThisInv, aThisInv, 20, i, (byte) 1, (byte) 1, (byte) 1, (byte) 1);
vanillaStopJukebox();
Logger.INFO("b++");
this.markDirty();
@@ -419,7 +422,7 @@ public class Machine_SuperJukebox extends BlockJukebox {
public boolean anyPlayerInRange() {
return this.worldObj.getClosestPlayer(this.xCoord + 0.5D, this.yCoord + 0.5D, this.zCoord + 0.5D, 32)
- != null;
+ != null;
}
public NBTTagCompound getTag(final NBTTagCompound nbt, final String tag) {
@@ -431,27 +434,32 @@ public class Machine_SuperJukebox extends BlockJukebox {
@Override
public int getSizeInventory() {
- return this.getInventory().getSizeInventory() - 3;
+ return this.getInventory()
+ .getSizeInventory() - 3;
}
@Override
public ItemStack getStackInSlot(final int slot) {
- return this.getInventory().getStackInSlot(slot);
+ return this.getInventory()
+ .getStackInSlot(slot);
}
@Override
public ItemStack decrStackSize(final int slot, final int count) {
- return this.getInventory().decrStackSize(slot, count);
+ return this.getInventory()
+ .decrStackSize(slot, count);
}
@Override
public ItemStack getStackInSlotOnClosing(final int slot) {
- return this.getInventory().getStackInSlotOnClosing(slot);
+ return this.getInventory()
+ .getStackInSlotOnClosing(slot);
}
@Override
public void setInventorySlotContents(final int slot, final ItemStack stack) {
- this.getInventory().setInventorySlotContents(slot, stack);
+ this.getInventory()
+ .setInventorySlotContents(slot, stack);
}
@Override
@@ -461,7 +469,8 @@ public class Machine_SuperJukebox extends BlockJukebox {
@Override
public boolean isUseableByPlayer(final EntityPlayer entityplayer) {
- return this.getInventory().isUseableByPlayer(entityplayer);
+ return this.getInventory()
+ .isUseableByPlayer(entityplayer);
}
@Override
@@ -473,10 +482,11 @@ public class Machine_SuperJukebox extends BlockJukebox {
this.numPlayersUsing++;
}
this.worldObj
- .addBlockEvent(this.xCoord, this.yCoord, this.zCoord, this.getBlockType(), 1, this.numPlayersUsing);
+ .addBlockEvent(this.xCoord, this.yCoord, this.zCoord, this.getBlockType(), 1, this.numPlayersUsing);
this.worldObj.notifyBlocksOfNeighborChange(this.xCoord, this.yCoord, this.zCoord, this.getBlockType());
this.worldObj.notifyBlocksOfNeighborChange(this.xCoord, this.yCoord - 1, this.zCoord, this.getBlockType());
- this.getInventory().openInventory();
+ this.getInventory()
+ .openInventory();
}
@Override
@@ -485,10 +495,11 @@ public class Machine_SuperJukebox extends BlockJukebox {
this.numPlayersUsing--;
}
this.worldObj
- .addBlockEvent(this.xCoord, this.yCoord, this.zCoord, this.getBlockType(), 1, this.numPlayersUsing);
+ .addBlockEvent(this.xCoord, this.yCoord, this.zCoord, this.getBlockType(), 1, this.numPlayersUsing);
this.worldObj.notifyBlocksOfNeighborChange(this.xCoord, this.yCoord, this.zCoord, this.getBlockType());
this.worldObj.notifyBlocksOfNeighborChange(this.xCoord, this.yCoord - 1, this.zCoord, this.getBlockType());
- this.getInventory().closeInventory();
+ this.getInventory()
+ .closeInventory();
}
@Override
@@ -496,11 +507,12 @@ public class Machine_SuperJukebox extends BlockJukebox {
if (slot >= 18) {
return false;
}
- return this.getInventory().isItemValidForSlot(slot, itemstack);
+ return this.getInventory()
+ .isItemValidForSlot(slot, itemstack);
}
private static final int[] SIDED_SLOTS = new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
- 17 };
+ 17 };
@Override
public int[] getAccessibleSlotsFromSide(final int p_94128_1_) {
@@ -512,7 +524,8 @@ public class Machine_SuperJukebox extends BlockJukebox {
if (p_102007_1_ >= 18) {
return false;
}
- return this.getInventory().isItemValidForSlot(p_102007_1_, p_102007_2_);
+ return this.getInventory()
+ .isItemValidForSlot(p_102007_1_, p_102007_2_);
}
@Override
@@ -520,7 +533,8 @@ public class Machine_SuperJukebox extends BlockJukebox {
if (p_102008_1_ >= 18) {
return false;
}
- return this.getInventory().isItemValidForSlot(p_102008_1_, p_102008_2_);
+ return this.getInventory()
+ .isItemValidForSlot(p_102008_1_, p_102008_2_);
}
public String getCustomName() {
diff --git a/src/main/java/gtPlusPlus/core/block/machine/VolumetricFlaskSetter.java b/src/main/java/gtPlusPlus/core/block/machine/VolumetricFlaskSetter.java
index 68c054fb59..1bca4a5c5f 100644
--- a/src/main/java/gtPlusPlus/core/block/machine/VolumetricFlaskSetter.java
+++ b/src/main/java/gtPlusPlus/core/block/machine/VolumetricFlaskSetter.java
@@ -50,7 +50,7 @@ public class VolumetricFlaskSetter extends BasicTileBlockWithTooltip {
*/
@Override
public boolean onBlockActivated(final World world, final int x, final int y, final int z, final EntityPlayer player,
- final int side, final float lx, final float ly, final float lz) {
+ final int side, final float lx, final float ly, final float lz) {
if (world.isRemote) {
return true;
} else {
@@ -61,9 +61,9 @@ public class VolumetricFlaskSetter extends BasicTileBlockWithTooltip {
final ItemStack mHandStack = PlayerUtils.getItemStackInPlayersHand(world, player.getDisplayName());
final Item mHandItem = mHandStack.getItem();
if (((mHandItem instanceof GT_MetaGenerated_Tool_01)
- && ((mHandItem.getDamage(mHandStack) == 22) || (mHandItem.getDamage(mHandStack) == 150)))) {
+ && ((mHandItem.getDamage(mHandStack) == 22) || (mHandItem.getDamage(mHandStack) == 150)))) {
final TileEntityVolumetricFlaskSetter tile = (TileEntityVolumetricFlaskSetter) world
- .getTileEntity(x, y, z);
+ .getTileEntity(x, y, z);
if (tile != null) {
mDidScrewDriver = tile.onScrewdriverRightClick((byte) side, player, x, y, z);
}
@@ -101,7 +101,7 @@ public class VolumetricFlaskSetter extends BasicTileBlockWithTooltip {
@Override
public void onBlockPlacedBy(final World world, final int x, final int y, final int z, final EntityLivingBase entity,
- final ItemStack stack) {
+ final ItemStack stack) {
if (stack.hasDisplayName()) {
((TileEntityVolumetricFlaskSetter) world.getTileEntity(x, y, z)).setCustomName(stack.getDisplayName());
}
@@ -109,7 +109,7 @@ public class VolumetricFlaskSetter extends BasicTileBlockWithTooltip {
@Override
public boolean canCreatureSpawn(final EnumCreatureType type, final IBlockAccess world, final int x, final int y,
- final int z) {
+ final int z) {
return false;
}
@@ -146,11 +146,11 @@ public class VolumetricFlaskSetter extends BasicTileBlockWithTooltip {
@Override
public CubicObject<String>[] getCustomTextureDirectoryObject() {
String[] aTexData = new String[] { GTPlusPlus.ID + ":" + "metro/" + "TEXTURE_METAL_PANEL_A",
- GTPlusPlus.ID + ":" + "metro/" + "TEXTURE_TECH_PANEL_C",
- GTPlusPlus.ID + ":" + "metro/" + "TEXTURE_METAL_PANEL_H",
- GTPlusPlus.ID + ":" + "metro/" + "TEXTURE_METAL_PANEL_H",
- GTPlusPlus.ID + ":" + "metro/" + "TEXTURE_METAL_PANEL_H",
- GTPlusPlus.ID + ":" + "metro/" + "TEXTURE_METAL_PANEL_H" };
+ GTPlusPlus.ID + ":" + "metro/" + "TEXTURE_TECH_PANEL_C",
+ GTPlusPlus.ID + ":" + "metro/" + "TEXTURE_METAL_PANEL_H",
+ GTPlusPlus.ID + ":" + "metro/" + "TEXTURE_METAL_PANEL_H",
+ GTPlusPlus.ID + ":" + "metro/" + "TEXTURE_METAL_PANEL_H",
+ GTPlusPlus.ID + ":" + "metro/" + "TEXTURE_METAL_PANEL_H" };
CubicObject<String>[] aTextureData = new CubicObject[] { new CubicObject<>(aTexData) };
return aTextureData;
}
diff --git a/src/main/java/gtPlusPlus/core/client/CustomTextureSet.java b/src/main/java/gtPlusPlus/core/client/CustomTextureSet.java
index 15574f66ed..ce4d9a0320 100644
--- a/src/main/java/gtPlusPlus/core/client/CustomTextureSet.java
+++ b/src/main/java/gtPlusPlus/core/client/CustomTextureSet.java
@@ -14,7 +14,9 @@ public class CustomTextureSet extends TextureSet {
private final CustomTextureSet A;
private TextureSets() {
- A = new CustomTextureSet(this.name().toUpperCase());
+ A = new CustomTextureSet(
+ this.name()
+ .toUpperCase());
}
public CustomTextureSet get() {
diff --git a/src/main/java/gtPlusPlus/core/client/model/ModelSickBlaze.java b/src/main/java/gtPlusPlus/core/client/model/ModelSickBlaze.java
index f5c255e420..3b5922444d 100644
--- a/src/main/java/gtPlusPlus/core/client/model/ModelSickBlaze.java
+++ b/src/main/java/gtPlusPlus/core/client/model/ModelSickBlaze.java
@@ -36,7 +36,7 @@ public class ModelSickBlaze extends ModelBlaze {
*/
@Override
public void render(Entity p_78088_1_, float p_78088_2_, float p_78088_3_, float p_78088_4_, float p_78088_5_,
- float p_78088_6_, float p_78088_7_) {
+ float p_78088_6_, float p_78088_7_) {
this.setRotationAngles(p_78088_2_, p_78088_3_, p_78088_4_, p_78088_5_, p_78088_6_, p_78088_7_, p_78088_1_);
this.blazeHead.render(p_78088_7_);
@@ -52,7 +52,7 @@ public class ModelSickBlaze extends ModelBlaze {
*/
@Override
public void setRotationAngles(float p_78087_1_, float p_78087_2_, float p_78087_3_, float p_78087_4_,
- float p_78087_5_, float p_78087_6_, Entity p_78087_7_) {
+ float p_78087_5_, float p_78087_6_, Entity p_78087_7_) {
float f6 = p_78087_3_ * (float) Math.PI * -0.1F;
int i;
diff --git a/src/main/java/gtPlusPlus/core/client/model/ModelStaballoyConstruct.java b/src/main/java/gtPlusPlus/core/client/model/ModelStaballoyConstruct.java
index d93bca90c6..457bc7a377 100644
--- a/src/main/java/gtPlusPlus/core/client/model/ModelStaballoyConstruct.java
+++ b/src/main/java/gtPlusPlus/core/client/model/ModelStaballoyConstruct.java
@@ -25,24 +25,32 @@ public class ModelStaballoyConstruct extends ModelIronGolem {
short short2 = 128;
this.ironGolemHead = (new ModelRenderer(this)).setTextureSize(short1, short2);
this.ironGolemHead.setRotationPoint(0.0F, 0.0F + p_i1162_2_, -2.0F);
- this.ironGolemHead.setTextureOffset(0, 0).addBox(-4.0F, -12.0F, -5.5F, 8, 10, 8, p_i1162_1_);
- this.ironGolemHead.setTextureOffset(24, 0).addBox(-1.0F, -5.0F, -7.5F, 2, 4, 2, p_i1162_1_);
+ this.ironGolemHead.setTextureOffset(0, 0)
+ .addBox(-4.0F, -12.0F, -5.5F, 8, 10, 8, p_i1162_1_);
+ this.ironGolemHead.setTextureOffset(24, 0)
+ .addBox(-1.0F, -5.0F, -7.5F, 2, 4, 2, p_i1162_1_);
this.ironGolemBody = (new ModelRenderer(this)).setTextureSize(short1, short2);
this.ironGolemBody.setRotationPoint(0.0F, 0.0F + p_i1162_2_, 0.0F);
- this.ironGolemBody.setTextureOffset(0, 40).addBox(-9.0F, -2.0F, -6.0F, 18, 12, 11, p_i1162_1_);
- this.ironGolemBody.setTextureOffset(0, 70).addBox(-4.5F, 10.0F, -3.0F, 9, 5, 6, p_i1162_1_ + 0.5F);
+ this.ironGolemBody.setTextureOffset(0, 40)
+ .addBox(-9.0F, -2.0F, -6.0F, 18, 12, 11, p_i1162_1_);
+ this.ironGolemBody.setTextureOffset(0, 70)
+ .addBox(-4.5F, 10.0F, -3.0F, 9, 5, 6, p_i1162_1_ + 0.5F);
this.ironGolemRightArm = (new ModelRenderer(this)).setTextureSize(short1, short2);
this.ironGolemRightArm.setRotationPoint(0.0F, -7.0F, 0.0F);
- this.ironGolemRightArm.setTextureOffset(60, 21).addBox(-13.0F, -2.5F, -3.0F, 4, 30, 6, p_i1162_1_);
+ this.ironGolemRightArm.setTextureOffset(60, 21)
+ .addBox(-13.0F, -2.5F, -3.0F, 4, 30, 6, p_i1162_1_);
this.ironGolemLeftArm = (new ModelRenderer(this)).setTextureSize(short1, short2);
this.ironGolemLeftArm.setRotationPoint(0.0F, -7.0F, 0.0F);
- this.ironGolemLeftArm.setTextureOffset(60, 58).addBox(9.0F, -2.5F, -3.0F, 4, 30, 6, p_i1162_1_);
+ this.ironGolemLeftArm.setTextureOffset(60, 58)
+ .addBox(9.0F, -2.5F, -3.0F, 4, 30, 6, p_i1162_1_);
this.ironGolemLeftLeg = (new ModelRenderer(this, 0, 22)).setTextureSize(short1, short2);
this.ironGolemLeftLeg.setRotationPoint(-4.0F, 18.0F + p_i1162_2_, 0.0F);
- this.ironGolemLeftLeg.setTextureOffset(37, 0).addBox(-3.5F, -3.0F, -3.0F, 6, 16, 5, p_i1162_1_);
+ this.ironGolemLeftLeg.setTextureOffset(37, 0)
+ .addBox(-3.5F, -3.0F, -3.0F, 6, 16, 5, p_i1162_1_);
this.ironGolemRightLeg = (new ModelRenderer(this, 0, 22)).setTextureSize(short1, short2);
this.ironGolemRightLeg.mirror = true;
- this.ironGolemRightLeg.setTextureOffset(60, 0).setRotationPoint(5.0F, 18.0F + p_i1162_2_, 0.0F);
+ this.ironGolemRightLeg.setTextureOffset(60, 0)
+ .setRotationPoint(5.0F, 18.0F + p_i1162_2_, 0.0F);
this.ironGolemRightLeg.addBox(-3.5F, -3.0F, -3.0F, 6, 16, 5, p_i1162_1_);
}
@@ -51,7 +59,7 @@ public class ModelStaballoyConstruct extends ModelIronGolem {
*/
@Override
public void render(Entity p_78088_1_, float p_78088_2_, float p_78088_3_, float p_78088_4_, float p_78088_5_,
- float p_78088_6_, float p_78088_7_) {
+ float p_78088_6_, float p_78088_7_) {
this.setRotationAngles(p_78088_2_, p_78088_3_, p_78088_4_, p_78088_5_, p_78088_6_, p_78088_7_, p_78088_1_);
this.ironGolemHead.render(p_78088_7_);
this.ironGolemBody.render(p_78088_7_);
@@ -68,7 +76,7 @@ public class ModelStaballoyConstruct extends ModelIronGolem {
*/
@Override
public void setRotationAngles(float p_78087_1_, float p_78087_2_, float p_78087_3_, float p_78087_4_,
- float p_78087_5_, float p_78087_6_, Entity p_78087_7_) {
+ float p_78087_5_, float p_78087_6_, Entity p_78087_7_) {
this.ironGolemHead.rotateAngleY = p_78087_4_ / (180F / (float) Math.PI);
this.ironGolemHead.rotateAngleX = p_78087_5_ / (180F / (float) Math.PI);
this.ironGolemLeftLeg.rotateAngleX = -1.5F * this.func_78172_a(p_78087_1_, 13.0F) * p_78087_2_;
@@ -97,7 +105,7 @@ public class ModelStaballoyConstruct extends ModelIronGolem {
this.ironGolemLeftArm.rotateAngleX = 0.0F;
} else {
this.ironGolemRightArm.rotateAngleX = (-0.2F + 1.5F * this.func_78172_a(p_78086_2_, 13.0F))
- * p_78086_3_;
+ * p_78086_3_;
this.ironGolemLeftArm.rotateAngleX = (-0.2F - 1.5F * this.func_78172_a(p_78086_2_, 13.0F)) * p_78086_3_;
}
}
diff --git a/src/main/java/gtPlusPlus/core/client/renderer/CustomItemBlockRenderer.java b/src/main/java/gtPlusPlus/core/client/renderer/CustomItemBlockRenderer.java
index 88244473e4..f83844f3e3 100644
--- a/src/main/java/gtPlusPlus/core/client/renderer/CustomItemBlockRenderer.java
+++ b/src/main/java/gtPlusPlus/core/client/renderer/CustomItemBlockRenderer.java
@@ -43,13 +43,13 @@ public class CustomItemBlockRenderer implements IItemRenderer {
}
public static void renderItemAsBlock(RenderBlocks renderer, ItemStack item, double translateX, double translateY,
- double translateZ) {
+ double translateZ) {
renderTextureAsBlock(renderer, item.getIconIndex(), translateX, translateY, translateZ);
}
public static void renderTextureAsBlock(RenderBlocks renderer, IIcon texture, double translateX, double translateY,
- double translateZ) {
+ double translateZ) {
Tessellator tessellator = Tessellator.instance;
Block block = Blocks.stone;
diff --git a/src/main/java/gtPlusPlus/core/client/renderer/CustomOreBlockRenderer.java b/src/main/java/gtPlusPlus/core/client/renderer/CustomOreBlockRenderer.java
index 03295d0cb1..689f075703 100644
--- a/src/main/java/gtPlusPlus/core/client/renderer/CustomOreBlockRenderer.java
+++ b/src/main/java/gtPlusPlus/core/client/renderer/CustomOreBlockRenderer.java
@@ -30,28 +30,28 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
}
public boolean renderStandardBlock(IBlockAccess aWorld, int aX, int aY, int aZ, Block aBlock,
- RenderBlocks aRenderer) {
+ RenderBlocks aRenderer) {
Block tTileEntity = aBlock;
if ((tTileEntity instanceof ITexturedBlock)) {
return renderStandardBlock(
- aWorld,
- aX,
- aY,
- aZ,
- aBlock,
- aRenderer,
- new ITexture[][] { ((ITexturedBlock) tTileEntity).getTexture(ForgeDirection.DOWN),
- ((ITexturedBlock) tTileEntity).getTexture(ForgeDirection.UP),
- ((ITexturedBlock) tTileEntity).getTexture(ForgeDirection.NORTH),
- ((ITexturedBlock) tTileEntity).getTexture(ForgeDirection.SOUTH),
- ((ITexturedBlock) tTileEntity).getTexture(ForgeDirection.WEST),
- ((ITexturedBlock) tTileEntity).getTexture(ForgeDirection.EAST) });
+ aWorld,
+ aX,
+ aY,
+ aZ,
+ aBlock,
+ aRenderer,
+ new ITexture[][] { ((ITexturedBlock) tTileEntity).getTexture(ForgeDirection.DOWN),
+ ((ITexturedBlock) tTileEntity).getTexture(ForgeDirection.UP),
+ ((ITexturedBlock) tTileEntity).getTexture(ForgeDirection.NORTH),
+ ((ITexturedBlock) tTileEntity).getTexture(ForgeDirection.SOUTH),
+ ((ITexturedBlock) tTileEntity).getTexture(ForgeDirection.WEST),
+ ((ITexturedBlock) tTileEntity).getTexture(ForgeDirection.EAST) });
}
return false;
}
public boolean renderStandardBlock(IBlockAccess aWorld, int aX, int aY, int aZ, Block aBlock,
- RenderBlocks aRenderer, ITexture[][] aTextures) {
+ RenderBlocks aRenderer, ITexture[][] aTextures) {
aBlock.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
aRenderer.setRenderBoundsFromBlock(aBlock);
int l = aBlock.colorMultiplier(aWorld, aX, aY, aZ);
@@ -62,28 +62,28 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
if (Minecraft.isAmbientOcclusionEnabled() && aBlock.getLightValue() == 0) {
if (RenderBlocks.getInstance().partialRenderBounds) {
return INSTANCE.renderStandardBlockWithAmbientOcclusionPartial(
- aWorld,
- aRenderer,
- aTextures,
- aBlock,
- aX,
- aY,
- aZ,
- RED,
- GREEN,
- BLUE);
+ aWorld,
+ aRenderer,
+ aTextures,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ RED,
+ GREEN,
+ BLUE);
} else {
return INSTANCE.renderStandardBlockWithAmbientOcclusion(
- aWorld,
- aRenderer,
- aTextures,
- aBlock,
- aX,
- aY,
- aZ,
- RED,
- GREEN,
- BLUE);
+ aWorld,
+ aRenderer,
+ aTextures,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ RED,
+ GREEN,
+ BLUE);
}
} else {
renderNegativeYFacing(aWorld, aRenderer, aBlock, aX, aY, aZ, aTextures[0], true);
@@ -97,43 +97,43 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
}
public static void renderFaceYNeg(IBlockAccess aWorld, RenderBlocks aRenderer, Block aBlock, int aX, int aY, int aZ,
- ITexture[][] aIcon) {
+ ITexture[][] aIcon) {
renderNegativeYFacing(aWorld, aRenderer, aBlock, aX, aY, aZ, aIcon[0], true);
}
public static void renderFaceYPos(IBlockAccess aWorld, RenderBlocks aRenderer, Block aBlock, int aX, int aY, int aZ,
- ITexture[][] aIcon) {
+ ITexture[][] aIcon) {
renderPositiveYFacing(aWorld, aRenderer, aBlock, aX, aY, aZ, aIcon[1], true);
}
public static void renderFaceZNeg(IBlockAccess aWorld, RenderBlocks aRenderer, Block aBlock, int aX, int aY, int aZ,
- ITexture[][] aIcon) {
+ ITexture[][] aIcon) {
renderNegativeZFacing(aWorld, aRenderer, aBlock, aX, aY, aZ, aIcon[2], true);
}
public static void renderFaceZPos(IBlockAccess aWorld, RenderBlocks aRenderer, Block aBlock, int aX, int aY, int aZ,
- ITexture[][] aIcon) {
+ ITexture[][] aIcon) {
renderPositiveZFacing(aWorld, aRenderer, aBlock, aX, aY, aZ, aIcon[3], true);
}
public static void renderFaceXNeg(IBlockAccess aWorld, RenderBlocks aRenderer, Block aBlock, int aX, int aY, int aZ,
- ITexture[][] aIcon) {
+ ITexture[][] aIcon) {
renderNegativeXFacing(aWorld, aRenderer, aBlock, aX, aY, aZ, aIcon[4], true);
}
public static void renderFaceXPos(IBlockAccess aWorld, RenderBlocks aRenderer, Block aBlock, int aX, int aY, int aZ,
- ITexture[][] aIcon) {
+ ITexture[][] aIcon) {
renderPositiveXFacing(aWorld, aRenderer, aBlock, aX, aY, aZ, aIcon[5], 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));
+ .setBrightness(aBlock.getMixedBrightnessForBlock(aWorld, aX, aFullBlock ? aY - 1 : aY, aZ));
}
if (aIcon != null) {
for (ITexture iTexture : aIcon) {
@@ -146,13 +146,13 @@ public class CustomOreBlockRenderer 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));
+ .setBrightness(aBlock.getMixedBrightnessForBlock(aWorld, aX, aFullBlock ? aY + 1 : aY, aZ));
}
if (aIcon != null) {
for (ITexture iTexture : aIcon) {
@@ -165,13 +165,13 @@ public class CustomOreBlockRenderer 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));
+ .setBrightness(aBlock.getMixedBrightnessForBlock(aWorld, aX, aY, aFullBlock ? aZ - 1 : aZ));
}
aRenderer.flipTexture = (!aFullBlock);
if (aIcon != null) {
@@ -185,13 +185,13 @@ public class CustomOreBlockRenderer 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));
+ .setBrightness(aBlock.getMixedBrightnessForBlock(aWorld, aX, aY, aFullBlock ? aZ + 1 : aZ));
}
if (aIcon != null) {
for (ITexture iTexture : aIcon) {
@@ -204,13 +204,13 @@ public class CustomOreBlockRenderer 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));
+ .setBrightness(aBlock.getMixedBrightnessForBlock(aWorld, aFullBlock ? aX - 1 : aX, aY, aZ));
}
if (aIcon != null) {
for (ITexture iTexture : aIcon) {
@@ -223,13 +223,13 @@ public class CustomOreBlockRenderer 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));
+ .setBrightness(aBlock.getMixedBrightnessForBlock(aWorld, aFullBlock ? aX + 1 : aX, aY, aZ));
}
aRenderer.flipTexture = (!aFullBlock);
if (aIcon != null) {
@@ -251,74 +251,74 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
Tessellator.instance.startDrawingQuads();
Tessellator.instance.setNormal(0.0F, -1.0F, 0.0F);
renderNegativeYFacing(
- null,
- aRenderer,
- aBlock,
- 0,
- 0,
- 0,
- ((ITexturedBlock) aBlock).getTexture(ForgeDirection.DOWN),
- true);
+ null,
+ aRenderer,
+ aBlock,
+ 0,
+ 0,
+ 0,
+ ((ITexturedBlock) aBlock).getTexture(ForgeDirection.DOWN),
+ true);
Tessellator.instance.draw();
Tessellator.instance.startDrawingQuads();
Tessellator.instance.setNormal(0.0F, 1.0F, 0.0F);
renderPositiveYFacing(
- null,
- aRenderer,
- aBlock,
- 0,
- 0,
- 0,
- ((ITexturedBlock) aBlock).getTexture(ForgeDirection.UP),
- true);
+ null,
+ aRenderer,
+ aBlock,
+ 0,
+ 0,
+ 0,
+ ((ITexturedBlock) aBlock).getTexture(ForgeDirection.UP),
+ true);
Tessellator.instance.draw();
Tessellator.instance.startDrawingQuads();
Tessellator.instance.setNormal(0.0F, 0.0F, -1.0F);
renderNegativeZFacing(
- null,
- aRenderer,
- aBlock,
- 0,
- 0,
- 0,
- ((ITexturedBlock) aBlock).getTexture(ForgeDirection.NORTH),
- true);
+ null,
+ aRenderer,
+ aBlock,
+ 0,
+ 0,
+ 0,
+ ((ITexturedBlock) aBlock).getTexture(ForgeDirection.NORTH),
+ true);
Tessellator.instance.draw();
Tessellator.instance.startDrawingQuads();
Tessellator.instance.setNormal(0.0F, 0.0F, 1.0F);
renderPositiveZFacing(
- null,
- aRenderer,
- aBlock,
- 0,
- 0,
- 0,
- ((ITexturedBlock) aBlock).getTexture(ForgeDirection.SOUTH),
- true);
+ null,
+ aRenderer,
+ aBlock,
+ 0,
+ 0,
+ 0,
+ ((ITexturedBlock) aBlock).getTexture(ForgeDirection.SOUTH),
+ true);
Tessellator.instance.draw();
Tessellator.instance.startDrawingQuads();
Tessellator.instance.setNormal(-1.0F, 0.0F, 0.0F);
renderNegativeXFacing(
- null,
- aRenderer,
- aBlock,
- 0,
- 0,
- 0,
- ((ITexturedBlock) aBlock).getTexture(ForgeDirection.WEST),
- true);
+ null,
+ aRenderer,
+ aBlock,
+ 0,
+ 0,
+ 0,
+ ((ITexturedBlock) aBlock).getTexture(ForgeDirection.WEST),
+ true);
Tessellator.instance.draw();
Tessellator.instance.startDrawingQuads();
Tessellator.instance.setNormal(1.0F, 0.0F, 0.0F);
renderPositiveXFacing(
- null,
- aRenderer,
- aBlock,
- 0,
- 0,
- 0,
- ((ITexturedBlock) aBlock).getTexture(ForgeDirection.EAST),
- true);
+ null,
+ aRenderer,
+ aBlock,
+ 0,
+ 0,
+ 0,
+ ((ITexturedBlock) aBlock).getTexture(ForgeDirection.EAST),
+ true);
Tessellator.instance.draw();
aBlock.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
aRenderer.setRenderBoundsFromBlock(aBlock);
@@ -327,7 +327,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
@Override
public boolean renderWorldBlock(IBlockAccess aWorld, int aX, int aY, int aZ, Block aBlock, int aModelID,
- RenderBlocks aRenderer) {
+ RenderBlocks aRenderer) {
blockAccess = aWorld;
return renderStandardBlock(aWorld, aX, aY, aZ, aBlock, aRenderer);
}
@@ -343,7 +343,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
}
public void setRenderBounds(double p_147782_1_, double p_147782_3_, double p_147782_5_, double p_147782_7_,
- double p_147782_9_, double p_147782_11_) {
+ double p_147782_9_, double p_147782_11_) {
if (!this.lockBlockBounds) {
this.renderMinX = p_147782_1_;
this.renderMaxX = p_147782_7_;
@@ -352,11 +352,11 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.renderMinZ = p_147782_5_;
this.renderMaxZ = p_147782_11_;
this.partialRenderBounds = this.minecraftRB.gameSettings.ambientOcclusion >= 2
- && (this.renderMinX > 0.0D || this.renderMaxX < 1.0D
- || this.renderMinY > 0.0D
- || this.renderMaxY < 1.0D
- || this.renderMinZ > 0.0D
- || this.renderMaxZ < 1.0D);
+ && (this.renderMinX > 0.0D || this.renderMaxX < 1.0D
+ || this.renderMinY > 0.0D
+ || this.renderMaxY < 1.0D
+ || this.renderMinZ > 0.0D
+ || this.renderMaxZ < 1.0D);
}
}
@@ -372,11 +372,11 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.renderMinZ = block.getBlockBoundsMinZ();
this.renderMaxZ = block.getBlockBoundsMaxZ();
this.partialRenderBounds = this.minecraftRB.gameSettings.ambientOcclusion >= 2
- && (this.renderMinX > 0.0D || this.renderMaxX < 1.0D
- || this.renderMinY > 0.0D
- || this.renderMaxY < 1.0D
- || this.renderMinZ > 0.0D
- || this.renderMaxZ < 1.0D);
+ && (this.renderMinX > 0.0D || this.renderMaxX < 1.0D
+ || this.renderMinY > 0.0D
+ || this.renderMaxY < 1.0D
+ || this.renderMinZ > 0.0D
+ || this.renderMaxZ < 1.0D);
}
}
@@ -552,8 +552,9 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
public IIcon getIconSafe(IIcon iicon) {
if (iicon == null) {
- iicon = ((TextureMap) Minecraft.getMinecraft().getTextureManager()
- .getTexture(TextureMap.locationBlocksTexture)).getAtlasSprite("missingno");
+ iicon = ((TextureMap) Minecraft.getMinecraft()
+ .getTextureManager()
+ .getTexture(TextureMap.locationBlocksTexture)).getAtlasSprite("missingno");
}
return (IIcon) iicon;
@@ -562,7 +563,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
IBlockAccess blockAccess = RenderBlocks.getInstance().blockAccess;
public boolean renderStandardBlockWithAmbientOcclusion(IBlockAccess aWorld, RenderBlocks aRenderer,
- ITexture[][] aTextures, Block block, int xPos, int yPos, int zPos, float R, float G, float B) {
+ ITexture[][] aTextures, Block block, int xPos, int yPos, int zPos, float R, float G, float B) {
this.enableAO = true;
boolean flag = false;
float f3 = 0.0F;
@@ -574,7 +575,9 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
Tessellator tessellator = Tessellator.instance;
tessellator.setBrightness(983055);
- if (this.getBlockIcon(block).getIconName().equals("grass_top")) {
+ if (this.getBlockIcon(block)
+ .getIconName()
+ .equals("grass_top")) {
flag1 = false;
} else if (this.hasOverrideBlockTexture()) {
flag1 = false;
@@ -588,7 +591,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
float f7;
if (RenderBlocks.getInstance().renderAllFaces
- || block.shouldSideBeRendered(blockAccess, xPos, yPos - 1, zPos, 0)) {
+ || block.shouldSideBeRendered(blockAccess, xPos, yPos - 1, zPos, 0)) {
if (this.renderMinY <= 0.0D) {
--yPos;
}
@@ -597,21 +600,29 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessYZNN = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos, zPos - 1);
this.aoBrightnessYZNP = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos, zPos + 1);
this.aoBrightnessXYPN = block.getMixedBrightnessForBlock(blockAccess, xPos + 1, yPos, zPos);
- this.aoLightValueScratchXYNN = blockAccess.getBlock(xPos - 1, yPos, zPos).getAmbientOcclusionLightValue();
- this.aoLightValueScratchYZNN = blockAccess.getBlock(xPos, yPos, zPos - 1).getAmbientOcclusionLightValue();
- this.aoLightValueScratchYZNP = blockAccess.getBlock(xPos, yPos, zPos + 1).getAmbientOcclusionLightValue();
- this.aoLightValueScratchXYPN = blockAccess.getBlock(xPos + 1, yPos, zPos).getAmbientOcclusionLightValue();
- flag2 = blockAccess.getBlock(xPos + 1, yPos - 1, zPos).getCanBlockGrass();
- flag3 = blockAccess.getBlock(xPos - 1, yPos - 1, zPos).getCanBlockGrass();
- flag4 = blockAccess.getBlock(xPos, yPos - 1, zPos + 1).getCanBlockGrass();
- flag5 = blockAccess.getBlock(xPos, yPos - 1, zPos - 1).getCanBlockGrass();
+ this.aoLightValueScratchXYNN = blockAccess.getBlock(xPos - 1, yPos, zPos)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchYZNN = blockAccess.getBlock(xPos, yPos, zPos - 1)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchYZNP = blockAccess.getBlock(xPos, yPos, zPos + 1)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchXYPN = blockAccess.getBlock(xPos + 1, yPos, zPos)
+ .getAmbientOcclusionLightValue();
+ flag2 = blockAccess.getBlock(xPos + 1, yPos - 1, zPos)
+ .getCanBlockGrass();
+ flag3 = blockAccess.getBlock(xPos - 1, yPos - 1, zPos)
+ .getCanBlockGrass();
+ flag4 = blockAccess.getBlock(xPos, yPos - 1, zPos + 1)
+ .getCanBlockGrass();
+ flag5 = blockAccess.getBlock(xPos, yPos - 1, zPos - 1)
+ .getCanBlockGrass();
if (!flag5 && !flag3) {
this.aoLightValueScratchXYZNNN = this.aoLightValueScratchXYNN;
this.aoBrightnessXYZNNN = this.aoBrightnessXYNN;
} else {
this.aoLightValueScratchXYZNNN = blockAccess.getBlock(xPos - 1, yPos, zPos - 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZNNN = block.getMixedBrightnessForBlock(blockAccess, xPos - 1, yPos, zPos - 1);
}
@@ -620,7 +631,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZNNP = this.aoBrightnessXYNN;
} else {
this.aoLightValueScratchXYZNNP = blockAccess.getBlock(xPos - 1, yPos, zPos + 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZNNP = block.getMixedBrightnessForBlock(blockAccess, xPos - 1, yPos, zPos + 1);
}
@@ -629,7 +640,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZPNN = this.aoBrightnessXYPN;
} else {
this.aoLightValueScratchXYZPNN = blockAccess.getBlock(xPos + 1, yPos, zPos - 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZPNN = block.getMixedBrightnessForBlock(blockAccess, xPos + 1, yPos, zPos - 1);
}
@@ -638,7 +649,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZPNP = this.aoBrightnessXYPN;
} else {
this.aoLightValueScratchXYZPNP = blockAccess.getBlock(xPos + 1, yPos, zPos + 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZPNP = block.getMixedBrightnessForBlock(blockAccess, xPos + 1, yPos, zPos + 1);
}
@@ -648,35 +659,37 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
i1 = l;
- if (this.renderMinY <= 0.0D || !blockAccess.getBlock(xPos, yPos - 1, zPos).isOpaqueCube()) {
+ if (this.renderMinY <= 0.0D || !blockAccess.getBlock(xPos, yPos - 1, zPos)
+ .isOpaqueCube()) {
i1 = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos - 1, zPos);
}
- f7 = blockAccess.getBlock(xPos, yPos - 1, zPos).getAmbientOcclusionLightValue();
+ f7 = blockAccess.getBlock(xPos, yPos - 1, zPos)
+ .getAmbientOcclusionLightValue();
f3 = (this.aoLightValueScratchXYZNNP + this.aoLightValueScratchXYNN + this.aoLightValueScratchYZNP + f7)
- / 4.0F;
+ / 4.0F;
f6 = (this.aoLightValueScratchYZNP + f7 + this.aoLightValueScratchXYZPNP + this.aoLightValueScratchXYPN)
- / 4.0F;
+ / 4.0F;
f5 = (f7 + this.aoLightValueScratchYZNN + this.aoLightValueScratchXYPN + this.aoLightValueScratchXYZPNN)
- / 4.0F;
+ / 4.0F;
f4 = (this.aoLightValueScratchXYNN + this.aoLightValueScratchXYZNNN + f7 + this.aoLightValueScratchYZNN)
- / 4.0F;
+ / 4.0F;
this.brightnessTopLeft = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXYZNNP, this.aoBrightnessXYNN, this.aoBrightnessYZNP, i1);
+ .getAoBrightness(this.aoBrightnessXYZNNP, this.aoBrightnessXYNN, this.aoBrightnessYZNP, i1);
this.brightnessTopRight = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessYZNP, this.aoBrightnessXYZPNP, this.aoBrightnessXYPN, i1);
+ .getAoBrightness(this.aoBrightnessYZNP, this.aoBrightnessXYZPNP, this.aoBrightnessXYPN, i1);
this.brightnessBottomRight = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessYZNN, this.aoBrightnessXYPN, this.aoBrightnessXYZPNN, i1);
+ .getAoBrightness(this.aoBrightnessYZNN, this.aoBrightnessXYPN, this.aoBrightnessXYZPNN, i1);
this.brightnessBottomLeft = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXYNN, this.aoBrightnessXYZNNN, this.aoBrightnessYZNN, i1);
+ .getAoBrightness(this.aoBrightnessXYNN, this.aoBrightnessXYZNNN, this.aoBrightnessYZNN, i1);
if (flag1) {
this.colorRedTopLeft = this.colorRedBottomLeft = this.colorRedBottomRight = this.colorRedTopRight = R
- * 0.5F;
+ * 0.5F;
this.colorGreenTopLeft = this.colorGreenBottomLeft = this.colorGreenBottomRight = this.colorGreenTopRight = G
- * 0.5F;
+ * 0.5F;
this.colorBlueTopLeft = this.colorBlueBottomLeft = this.colorBlueBottomRight = this.colorBlueTopRight = B
- * 0.5F;
+ * 0.5F;
} else {
this.colorRedTopLeft = this.colorRedBottomLeft = this.colorRedBottomRight = this.colorRedTopRight = 0.5F;
this.colorGreenTopLeft = this.colorGreenBottomLeft = this.colorGreenBottomRight = this.colorGreenTopRight = 0.5F;
@@ -700,7 +713,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
}
if (RenderBlocks.getInstance().renderAllFaces
- || block.shouldSideBeRendered(blockAccess, xPos, yPos + 1, zPos, 1)) {
+ || block.shouldSideBeRendered(blockAccess, xPos, yPos + 1, zPos, 1)) {
if (this.renderMaxY >= 1.0D) {
++yPos;
}
@@ -709,21 +722,29 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYPP = block.getMixedBrightnessForBlock(blockAccess, xPos + 1, yPos, zPos);
this.aoBrightnessYZPN = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos, zPos - 1);
this.aoBrightnessYZPP = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos, zPos + 1);
- this.aoLightValueScratchXYNP = blockAccess.getBlock(xPos - 1, yPos, zPos).getAmbientOcclusionLightValue();
- this.aoLightValueScratchXYPP = blockAccess.getBlock(xPos + 1, yPos, zPos).getAmbientOcclusionLightValue();
- this.aoLightValueScratchYZPN = blockAccess.getBlock(xPos, yPos, zPos - 1).getAmbientOcclusionLightValue();
- this.aoLightValueScratchYZPP = blockAccess.getBlock(xPos, yPos, zPos + 1).getAmbientOcclusionLightValue();
- flag2 = blockAccess.getBlock(xPos + 1, yPos + 1, zPos).getCanBlockGrass();
- flag3 = blockAccess.getBlock(xPos - 1, yPos + 1, zPos).getCanBlockGrass();
- flag4 = blockAccess.getBlock(xPos, yPos + 1, zPos + 1).getCanBlockGrass();
- flag5 = blockAccess.getBlock(xPos, yPos + 1, zPos - 1).getCanBlockGrass();
+ this.aoLightValueScratchXYNP = blockAccess.getBlock(xPos - 1, yPos, zPos)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchXYPP = blockAccess.getBlock(xPos + 1, yPos, zPos)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchYZPN = blockAccess.getBlock(xPos, yPos, zPos - 1)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchYZPP = blockAccess.getBlock(xPos, yPos, zPos + 1)
+ .getAmbientOcclusionLightValue();
+ flag2 = blockAccess.getBlock(xPos + 1, yPos + 1, zPos)
+ .getCanBlockGrass();
+ flag3 = blockAccess.getBlock(xPos - 1, yPos + 1, zPos)
+ .getCanBlockGrass();
+ flag4 = blockAccess.getBlock(xPos, yPos + 1, zPos + 1)
+ .getCanBlockGrass();
+ flag5 = blockAccess.getBlock(xPos, yPos + 1, zPos - 1)
+ .getCanBlockGrass();
if (!flag5 && !flag3) {
this.aoLightValueScratchXYZNPN = this.aoLightValueScratchXYNP;
this.aoBrightnessXYZNPN = this.aoBrightnessXYNP;
} else {
this.aoLightValueScratchXYZNPN = blockAccess.getBlock(xPos - 1, yPos, zPos - 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZNPN = block.getMixedBrightnessForBlock(blockAccess, xPos - 1, yPos, zPos - 1);
}
@@ -732,7 +753,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZPPN = this.aoBrightnessXYPP;
} else {
this.aoLightValueScratchXYZPPN = blockAccess.getBlock(xPos + 1, yPos, zPos - 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZPPN = block.getMixedBrightnessForBlock(blockAccess, xPos + 1, yPos, zPos - 1);
}
@@ -741,7 +762,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZNPP = this.aoBrightnessXYNP;
} else {
this.aoLightValueScratchXYZNPP = blockAccess.getBlock(xPos - 1, yPos, zPos + 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZNPP = block.getMixedBrightnessForBlock(blockAccess, xPos - 1, yPos, zPos + 1);
}
@@ -750,7 +771,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZPPP = this.aoBrightnessXYPP;
} else {
this.aoLightValueScratchXYZPPP = blockAccess.getBlock(xPos + 1, yPos, zPos + 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZPPP = block.getMixedBrightnessForBlock(blockAccess, xPos + 1, yPos, zPos + 1);
}
@@ -760,27 +781,29 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
i1 = l;
- if (this.renderMaxY >= 1.0D || !blockAccess.getBlock(xPos, yPos + 1, zPos).isOpaqueCube()) {
+ if (this.renderMaxY >= 1.0D || !blockAccess.getBlock(xPos, yPos + 1, zPos)
+ .isOpaqueCube()) {
i1 = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos + 1, zPos);
}
- f7 = blockAccess.getBlock(xPos, yPos + 1, zPos).getAmbientOcclusionLightValue();
+ f7 = blockAccess.getBlock(xPos, yPos + 1, zPos)
+ .getAmbientOcclusionLightValue();
f6 = (this.aoLightValueScratchXYZNPP + this.aoLightValueScratchXYNP + this.aoLightValueScratchYZPP + f7)
- / 4.0F;
+ / 4.0F;
f3 = (this.aoLightValueScratchYZPP + f7 + this.aoLightValueScratchXYZPPP + this.aoLightValueScratchXYPP)
- / 4.0F;
+ / 4.0F;
f4 = (f7 + this.aoLightValueScratchYZPN + this.aoLightValueScratchXYPP + this.aoLightValueScratchXYZPPN)
- / 4.0F;
+ / 4.0F;
f5 = (this.aoLightValueScratchXYNP + this.aoLightValueScratchXYZNPN + f7 + this.aoLightValueScratchYZPN)
- / 4.0F;
+ / 4.0F;
this.brightnessTopRight = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXYZNPP, this.aoBrightnessXYNP, this.aoBrightnessYZPP, i1);
+ .getAoBrightness(this.aoBrightnessXYZNPP, this.aoBrightnessXYNP, this.aoBrightnessYZPP, i1);
this.brightnessTopLeft = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessYZPP, this.aoBrightnessXYZPPP, this.aoBrightnessXYPP, i1);
+ .getAoBrightness(this.aoBrightnessYZPP, this.aoBrightnessXYZPPP, this.aoBrightnessXYPP, i1);
this.brightnessBottomLeft = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessYZPN, this.aoBrightnessXYPP, this.aoBrightnessXYZPPN, i1);
+ .getAoBrightness(this.aoBrightnessYZPN, this.aoBrightnessXYPP, this.aoBrightnessXYZPPN, i1);
this.brightnessBottomRight = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXYNP, this.aoBrightnessXYZNPN, this.aoBrightnessYZPN, i1);
+ .getAoBrightness(this.aoBrightnessXYNP, this.aoBrightnessXYZNPN, this.aoBrightnessYZPN, i1);
this.colorRedTopLeft = this.colorRedBottomLeft = this.colorRedBottomRight = this.colorRedTopRight = R;
this.colorGreenTopLeft = this.colorGreenBottomLeft = this.colorGreenBottomRight = this.colorGreenTopRight = G;
this.colorBlueTopLeft = this.colorBlueBottomLeft = this.colorBlueBottomRight = this.colorBlueTopRight = B;
@@ -803,30 +826,38 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
IIcon iicon;
if (RenderBlocks.getInstance().renderAllFaces
- || block.shouldSideBeRendered(blockAccess, xPos, yPos, zPos - 1, 2)) {
+ || block.shouldSideBeRendered(blockAccess, xPos, yPos, zPos - 1, 2)) {
if (this.renderMinZ <= 0.0D) {
--zPos;
}
- this.aoLightValueScratchXZNN = blockAccess.getBlock(xPos - 1, yPos, zPos).getAmbientOcclusionLightValue();
- this.aoLightValueScratchYZNN = blockAccess.getBlock(xPos, yPos - 1, zPos).getAmbientOcclusionLightValue();
- this.aoLightValueScratchYZPN = blockAccess.getBlock(xPos, yPos + 1, zPos).getAmbientOcclusionLightValue();
- this.aoLightValueScratchXZPN = blockAccess.getBlock(xPos + 1, yPos, zPos).getAmbientOcclusionLightValue();
+ this.aoLightValueScratchXZNN = blockAccess.getBlock(xPos - 1, yPos, zPos)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchYZNN = blockAccess.getBlock(xPos, yPos - 1, zPos)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchYZPN = blockAccess.getBlock(xPos, yPos + 1, zPos)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchXZPN = blockAccess.getBlock(xPos + 1, yPos, zPos)
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXZNN = block.getMixedBrightnessForBlock(blockAccess, xPos - 1, yPos, zPos);
this.aoBrightnessYZNN = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos - 1, zPos);
this.aoBrightnessYZPN = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos + 1, zPos);
this.aoBrightnessXZPN = block.getMixedBrightnessForBlock(blockAccess, xPos + 1, yPos, zPos);
- flag2 = blockAccess.getBlock(xPos + 1, yPos, zPos - 1).getCanBlockGrass();
- flag3 = blockAccess.getBlock(xPos - 1, yPos, zPos - 1).getCanBlockGrass();
- flag4 = blockAccess.getBlock(xPos, yPos + 1, zPos - 1).getCanBlockGrass();
- flag5 = blockAccess.getBlock(xPos, yPos - 1, zPos - 1).getCanBlockGrass();
+ flag2 = blockAccess.getBlock(xPos + 1, yPos, zPos - 1)
+ .getCanBlockGrass();
+ flag3 = blockAccess.getBlock(xPos - 1, yPos, zPos - 1)
+ .getCanBlockGrass();
+ flag4 = blockAccess.getBlock(xPos, yPos + 1, zPos - 1)
+ .getCanBlockGrass();
+ flag5 = blockAccess.getBlock(xPos, yPos - 1, zPos - 1)
+ .getCanBlockGrass();
if (!flag3 && !flag5) {
this.aoLightValueScratchXYZNNN = this.aoLightValueScratchXZNN;
this.aoBrightnessXYZNNN = this.aoBrightnessXZNN;
} else {
this.aoLightValueScratchXYZNNN = blockAccess.getBlock(xPos - 1, yPos - 1, zPos)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZNNN = block.getMixedBrightnessForBlock(blockAccess, xPos - 1, yPos - 1, zPos);
}
@@ -835,7 +866,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZNPN = this.aoBrightnessXZNN;
} else {
this.aoLightValueScratchXYZNPN = blockAccess.getBlock(xPos - 1, yPos + 1, zPos)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZNPN = block.getMixedBrightnessForBlock(blockAccess, xPos - 1, yPos + 1, zPos);
}
@@ -844,7 +875,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZPNN = this.aoBrightnessXZPN;
} else {
this.aoLightValueScratchXYZPNN = blockAccess.getBlock(xPos + 1, yPos - 1, zPos)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZPNN = block.getMixedBrightnessForBlock(blockAccess, xPos + 1, yPos - 1, zPos);
}
@@ -853,7 +884,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZPPN = this.aoBrightnessXZPN;
} else {
this.aoLightValueScratchXYZPPN = blockAccess.getBlock(xPos + 1, yPos + 1, zPos)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZPPN = block.getMixedBrightnessForBlock(blockAccess, xPos + 1, yPos + 1, zPos);
}
@@ -863,35 +894,37 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
i1 = l;
- if (this.renderMinZ <= 0.0D || !blockAccess.getBlock(xPos, yPos, zPos - 1).isOpaqueCube()) {
+ if (this.renderMinZ <= 0.0D || !blockAccess.getBlock(xPos, yPos, zPos - 1)
+ .isOpaqueCube()) {
i1 = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos, zPos - 1);
}
- f7 = blockAccess.getBlock(xPos, yPos, zPos - 1).getAmbientOcclusionLightValue();
+ f7 = blockAccess.getBlock(xPos, yPos, zPos - 1)
+ .getAmbientOcclusionLightValue();
f3 = (this.aoLightValueScratchXZNN + this.aoLightValueScratchXYZNPN + f7 + this.aoLightValueScratchYZPN)
- / 4.0F;
+ / 4.0F;
f4 = (f7 + this.aoLightValueScratchYZPN + this.aoLightValueScratchXZPN + this.aoLightValueScratchXYZPPN)
- / 4.0F;
+ / 4.0F;
f5 = (this.aoLightValueScratchYZNN + f7 + this.aoLightValueScratchXYZPNN + this.aoLightValueScratchXZPN)
- / 4.0F;
+ / 4.0F;
f6 = (this.aoLightValueScratchXYZNNN + this.aoLightValueScratchXZNN + this.aoLightValueScratchYZNN + f7)
- / 4.0F;
+ / 4.0F;
this.brightnessTopLeft = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXZNN, this.aoBrightnessXYZNPN, this.aoBrightnessYZPN, i1);
+ .getAoBrightness(this.aoBrightnessXZNN, this.aoBrightnessXYZNPN, this.aoBrightnessYZPN, i1);
this.brightnessBottomLeft = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessYZPN, this.aoBrightnessXZPN, this.aoBrightnessXYZPPN, i1);
+ .getAoBrightness(this.aoBrightnessYZPN, this.aoBrightnessXZPN, this.aoBrightnessXYZPPN, i1);
this.brightnessBottomRight = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessYZNN, this.aoBrightnessXYZPNN, this.aoBrightnessXZPN, i1);
+ .getAoBrightness(this.aoBrightnessYZNN, this.aoBrightnessXYZPNN, this.aoBrightnessXZPN, i1);
this.brightnessTopRight = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXYZNNN, this.aoBrightnessXZNN, this.aoBrightnessYZNN, i1);
+ .getAoBrightness(this.aoBrightnessXYZNNN, this.aoBrightnessXZNN, this.aoBrightnessYZNN, i1);
if (flag1) {
this.colorRedTopLeft = this.colorRedBottomLeft = this.colorRedBottomRight = this.colorRedTopRight = R
- * 0.8F;
+ * 0.8F;
this.colorGreenTopLeft = this.colorGreenBottomLeft = this.colorGreenBottomRight = this.colorGreenTopRight = G
- * 0.8F;
+ * 0.8F;
this.colorBlueTopLeft = this.colorBlueBottomLeft = this.colorBlueBottomRight = this.colorBlueTopRight = B
- * 0.8F;
+ * 0.8F;
} else {
this.colorRedTopLeft = this.colorRedBottomLeft = this.colorRedBottomRight = this.colorRedTopRight = 0.8F;
this.colorGreenTopLeft = this.colorGreenBottomLeft = this.colorGreenBottomRight = this.colorGreenTopRight = 0.8F;
@@ -914,8 +947,8 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
CustomOreBlockRenderer.renderFaceZNeg(aWorld, aRenderer, block, xPos, yPos, zPos, aTextures);
RenderBlocks.getInstance();
- if (RenderBlocks.fancyGrass && iicon.getIconName().equals("grass_side")
- && !this.hasOverrideBlockTexture()) {
+ if (RenderBlocks.fancyGrass && iicon.getIconName()
+ .equals("grass_side") && !this.hasOverrideBlockTexture()) {
this.colorRedTopLeft *= R;
this.colorRedBottomLeft *= R;
this.colorRedBottomRight *= R;
@@ -935,30 +968,38 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
}
if (RenderBlocks.getInstance().renderAllFaces
- || block.shouldSideBeRendered(blockAccess, xPos, yPos, zPos + 1, 3)) {
+ || block.shouldSideBeRendered(blockAccess, xPos, yPos, zPos + 1, 3)) {
if (this.renderMaxZ >= 1.0D) {
++zPos;
}
- this.aoLightValueScratchXZNP = blockAccess.getBlock(xPos - 1, yPos, zPos).getAmbientOcclusionLightValue();
- this.aoLightValueScratchXZPP = blockAccess.getBlock(xPos + 1, yPos, zPos).getAmbientOcclusionLightValue();
- this.aoLightValueScratchYZNP = blockAccess.getBlock(xPos, yPos - 1, zPos).getAmbientOcclusionLightValue();
- this.aoLightValueScratchYZPP = blockAccess.getBlock(xPos, yPos + 1, zPos).getAmbientOcclusionLightValue();
+ this.aoLightValueScratchXZNP = blockAccess.getBlock(xPos - 1, yPos, zPos)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchXZPP = blockAccess.getBlock(xPos + 1, yPos, zPos)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchYZNP = blockAccess.getBlock(xPos, yPos - 1, zPos)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchYZPP = blockAccess.getBlock(xPos, yPos + 1, zPos)
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXZNP = block.getMixedBrightnessForBlock(blockAccess, xPos - 1, yPos, zPos);
this.aoBrightnessXZPP = block.getMixedBrightnessForBlock(blockAccess, xPos + 1, yPos, zPos);
this.aoBrightnessYZNP = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos - 1, zPos);
this.aoBrightnessYZPP = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos + 1, zPos);
- flag2 = blockAccess.getBlock(xPos + 1, yPos, zPos + 1).getCanBlockGrass();
- flag3 = blockAccess.getBlock(xPos - 1, yPos, zPos + 1).getCanBlockGrass();
- flag4 = blockAccess.getBlock(xPos, yPos + 1, zPos + 1).getCanBlockGrass();
- flag5 = blockAccess.getBlock(xPos, yPos - 1, zPos + 1).getCanBlockGrass();
+ flag2 = blockAccess.getBlock(xPos + 1, yPos, zPos + 1)
+ .getCanBlockGrass();
+ flag3 = blockAccess.getBlock(xPos - 1, yPos, zPos + 1)
+ .getCanBlockGrass();
+ flag4 = blockAccess.getBlock(xPos, yPos + 1, zPos + 1)
+ .getCanBlockGrass();
+ flag5 = blockAccess.getBlock(xPos, yPos - 1, zPos + 1)
+ .getCanBlockGrass();
if (!flag3 && !flag5) {
this.aoLightValueScratchXYZNNP = this.aoLightValueScratchXZNP;
this.aoBrightnessXYZNNP = this.aoBrightnessXZNP;
} else {
this.aoLightValueScratchXYZNNP = blockAccess.getBlock(xPos - 1, yPos - 1, zPos)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZNNP = block.getMixedBrightnessForBlock(blockAccess, xPos - 1, yPos - 1, zPos);
}
@@ -967,7 +1008,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZNPP = this.aoBrightnessXZNP;
} else {
this.aoLightValueScratchXYZNPP = blockAccess.getBlock(xPos - 1, yPos + 1, zPos)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZNPP = block.getMixedBrightnessForBlock(blockAccess, xPos - 1, yPos + 1, zPos);
}
@@ -976,7 +1017,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZPNP = this.aoBrightnessXZPP;
} else {
this.aoLightValueScratchXYZPNP = blockAccess.getBlock(xPos + 1, yPos - 1, zPos)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZPNP = block.getMixedBrightnessForBlock(blockAccess, xPos + 1, yPos - 1, zPos);
}
@@ -985,7 +1026,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZPPP = this.aoBrightnessXZPP;
} else {
this.aoLightValueScratchXYZPPP = blockAccess.getBlock(xPos + 1, yPos + 1, zPos)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZPPP = block.getMixedBrightnessForBlock(blockAccess, xPos + 1, yPos + 1, zPos);
}
@@ -995,35 +1036,37 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
i1 = l;
- if (this.renderMaxZ >= 1.0D || !blockAccess.getBlock(xPos, yPos, zPos + 1).isOpaqueCube()) {
+ if (this.renderMaxZ >= 1.0D || !blockAccess.getBlock(xPos, yPos, zPos + 1)
+ .isOpaqueCube()) {
i1 = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos, zPos + 1);
}
- f7 = blockAccess.getBlock(xPos, yPos, zPos + 1).getAmbientOcclusionLightValue();
+ f7 = blockAccess.getBlock(xPos, yPos, zPos + 1)
+ .getAmbientOcclusionLightValue();
f3 = (this.aoLightValueScratchXZNP + this.aoLightValueScratchXYZNPP + f7 + this.aoLightValueScratchYZPP)
- / 4.0F;
+ / 4.0F;
f6 = (f7 + this.aoLightValueScratchYZPP + this.aoLightValueScratchXZPP + this.aoLightValueScratchXYZPPP)
- / 4.0F;
+ / 4.0F;
f5 = (this.aoLightValueScratchYZNP + f7 + this.aoLightValueScratchXYZPNP + this.aoLightValueScratchXZPP)
- / 4.0F;
+ / 4.0F;
f4 = (this.aoLightValueScratchXYZNNP + this.aoLightValueScratchXZNP + this.aoLightValueScratchYZNP + f7)
- / 4.0F;
+ / 4.0F;
this.brightnessTopLeft = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXZNP, this.aoBrightnessXYZNPP, this.aoBrightnessYZPP, i1);
+ .getAoBrightness(this.aoBrightnessXZNP, this.aoBrightnessXYZNPP, this.aoBrightnessYZPP, i1);
this.brightnessTopRight = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessYZPP, this.aoBrightnessXZPP, this.aoBrightnessXYZPPP, i1);
+ .getAoBrightness(this.aoBrightnessYZPP, this.aoBrightnessXZPP, this.aoBrightnessXYZPPP, i1);
this.brightnessBottomRight = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessYZNP, this.aoBrightnessXYZPNP, this.aoBrightnessXZPP, i1);
+ .getAoBrightness(this.aoBrightnessYZNP, this.aoBrightnessXYZPNP, this.aoBrightnessXZPP, i1);
this.brightnessBottomLeft = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXYZNNP, this.aoBrightnessXZNP, this.aoBrightnessYZNP, i1);
+ .getAoBrightness(this.aoBrightnessXYZNNP, this.aoBrightnessXZNP, this.aoBrightnessYZNP, i1);
if (flag1) {
this.colorRedTopLeft = this.colorRedBottomLeft = this.colorRedBottomRight = this.colorRedTopRight = R
- * 0.8F;
+ * 0.8F;
this.colorGreenTopLeft = this.colorGreenBottomLeft = this.colorGreenBottomRight = this.colorGreenTopRight = G
- * 0.8F;
+ * 0.8F;
this.colorBlueTopLeft = this.colorBlueBottomLeft = this.colorBlueBottomRight = this.colorBlueTopRight = B
- * 0.8F;
+ * 0.8F;
} else {
this.colorRedTopLeft = this.colorRedBottomLeft = this.colorRedBottomRight = this.colorRedTopRight = 0.8F;
this.colorGreenTopLeft = this.colorGreenBottomLeft = this.colorGreenBottomRight = this.colorGreenTopRight = 0.8F;
@@ -1046,8 +1089,8 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
CustomOreBlockRenderer.renderFaceZPos(aWorld, aRenderer, block, xPos, yPos, zPos, aTextures);
RenderBlocks.getInstance();
- if (RenderBlocks.fancyGrass && iicon.getIconName().equals("grass_side")
- && !this.hasOverrideBlockTexture()) {
+ if (RenderBlocks.fancyGrass && iicon.getIconName()
+ .equals("grass_side") && !this.hasOverrideBlockTexture()) {
this.colorRedTopLeft *= R;
this.colorRedBottomLeft *= R;
this.colorRedBottomRight *= R;
@@ -1067,30 +1110,38 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
}
if (RenderBlocks.getInstance().renderAllFaces
- || block.shouldSideBeRendered(blockAccess, xPos - 1, yPos, zPos, 4)) {
+ || block.shouldSideBeRendered(blockAccess, xPos - 1, yPos, zPos, 4)) {
if (this.renderMinX <= 0.0D) {
--xPos;
}
- this.aoLightValueScratchXYNN = blockAccess.getBlock(xPos, yPos - 1, zPos).getAmbientOcclusionLightValue();
- this.aoLightValueScratchXZNN = blockAccess.getBlock(xPos, yPos, zPos - 1).getAmbientOcclusionLightValue();
- this.aoLightValueScratchXZNP = blockAccess.getBlock(xPos, yPos, zPos + 1).getAmbientOcclusionLightValue();
- this.aoLightValueScratchXYNP = blockAccess.getBlock(xPos, yPos + 1, zPos).getAmbientOcclusionLightValue();
+ this.aoLightValueScratchXYNN = blockAccess.getBlock(xPos, yPos - 1, zPos)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchXZNN = blockAccess.getBlock(xPos, yPos, zPos - 1)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchXZNP = blockAccess.getBlock(xPos, yPos, zPos + 1)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchXYNP = blockAccess.getBlock(xPos, yPos + 1, zPos)
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYNN = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos - 1, zPos);
this.aoBrightnessXZNN = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos, zPos - 1);
this.aoBrightnessXZNP = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos, zPos + 1);
this.aoBrightnessXYNP = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos + 1, zPos);
- flag2 = blockAccess.getBlock(xPos - 1, yPos + 1, zPos).getCanBlockGrass();
- flag3 = blockAccess.getBlock(xPos - 1, yPos - 1, zPos).getCanBlockGrass();
- flag4 = blockAccess.getBlock(xPos - 1, yPos, zPos - 1).getCanBlockGrass();
- flag5 = blockAccess.getBlock(xPos - 1, yPos, zPos + 1).getCanBlockGrass();
+ flag2 = blockAccess.getBlock(xPos - 1, yPos + 1, zPos)
+ .getCanBlockGrass();
+ flag3 = blockAccess.getBlock(xPos - 1, yPos - 1, zPos)
+ .getCanBlockGrass();
+ flag4 = blockAccess.getBlock(xPos - 1, yPos, zPos - 1)
+ .getCanBlockGrass();
+ flag5 = blockAccess.getBlock(xPos - 1, yPos, zPos + 1)
+ .getCanBlockGrass();
if (!flag4 && !flag3) {
this.aoLightValueScratchXYZNNN = this.aoLightValueScratchXZNN;
this.aoBrightnessXYZNNN = this.aoBrightnessXZNN;
} else {
this.aoLightValueScratchXYZNNN = blockAccess.getBlock(xPos, yPos - 1, zPos - 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZNNN = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos - 1, zPos - 1);
}
@@ -1099,7 +1150,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZNNP = this.aoBrightnessXZNP;
} else {
this.aoLightValueScratchXYZNNP = blockAccess.getBlock(xPos, yPos - 1, zPos + 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZNNP = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos - 1, zPos + 1);
}
@@ -1108,7 +1159,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZNPN = this.aoBrightnessXZNN;
} else {
this.aoLightValueScratchXYZNPN = blockAccess.getBlock(xPos, yPos + 1, zPos - 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZNPN = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos + 1, zPos - 1);
}
@@ -1117,7 +1168,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZNPP = this.aoBrightnessXZNP;
} else {
this.aoLightValueScratchXYZNPP = blockAccess.getBlock(xPos, yPos + 1, zPos + 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZNPP = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos + 1, zPos + 1);
}
@@ -1127,35 +1178,37 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
i1 = l;
- if (this.renderMinX <= 0.0D || !blockAccess.getBlock(xPos - 1, yPos, zPos).isOpaqueCube()) {
+ if (this.renderMinX <= 0.0D || !blockAccess.getBlock(xPos - 1, yPos, zPos)
+ .isOpaqueCube()) {
i1 = block.getMixedBrightnessForBlock(blockAccess, xPos - 1, yPos, zPos);
}
- f7 = blockAccess.getBlock(xPos - 1, yPos, zPos).getAmbientOcclusionLightValue();
+ f7 = blockAccess.getBlock(xPos - 1, yPos, zPos)
+ .getAmbientOcclusionLightValue();
f6 = (this.aoLightValueScratchXYNN + this.aoLightValueScratchXYZNNP + f7 + this.aoLightValueScratchXZNP)
- / 4.0F;
+ / 4.0F;
f3 = (f7 + this.aoLightValueScratchXZNP + this.aoLightValueScratchXYNP + this.aoLightValueScratchXYZNPP)
- / 4.0F;
+ / 4.0F;
f4 = (this.aoLightValueScratchXZNN + f7 + this.aoLightValueScratchXYZNPN + this.aoLightValueScratchXYNP)
- / 4.0F;
+ / 4.0F;
f5 = (this.aoLightValueScratchXYZNNN + this.aoLightValueScratchXYNN + this.aoLightValueScratchXZNN + f7)
- / 4.0F;
+ / 4.0F;
this.brightnessTopRight = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXYNN, this.aoBrightnessXYZNNP, this.aoBrightnessXZNP, i1);
+ .getAoBrightness(this.aoBrightnessXYNN, this.aoBrightnessXYZNNP, this.aoBrightnessXZNP, i1);
this.brightnessTopLeft = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXZNP, this.aoBrightnessXYNP, this.aoBrightnessXYZNPP, i1);
+ .getAoBrightness(this.aoBrightnessXZNP, this.aoBrightnessXYNP, this.aoBrightnessXYZNPP, i1);
this.brightnessBottomLeft = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXZNN, this.aoBrightnessXYZNPN, this.aoBrightnessXYNP, i1);
+ .getAoBrightness(this.aoBrightnessXZNN, this.aoBrightnessXYZNPN, this.aoBrightnessXYNP, i1);
this.brightnessBottomRight = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXYZNNN, this.aoBrightnessXYNN, this.aoBrightnessXZNN, i1);
+ .getAoBrightness(this.aoBrightnessXYZNNN, this.aoBrightnessXYNN, this.aoBrightnessXZNN, i1);
if (flag1) {
this.colorRedTopLeft = this.colorRedBottomLeft = this.colorRedBottomRight = this.colorRedTopRight = R
- * 0.6F;
+ * 0.6F;
this.colorGreenTopLeft = this.colorGreenBottomLeft = this.colorGreenBottomRight = this.colorGreenTopRight = G
- * 0.6F;
+ * 0.6F;
this.colorBlueTopLeft = this.colorBlueBottomLeft = this.colorBlueBottomRight = this.colorBlueTopRight = B
- * 0.6F;
+ * 0.6F;
} else {
this.colorRedTopLeft = this.colorRedBottomLeft = this.colorRedBottomRight = this.colorRedTopRight = 0.6F;
this.colorGreenTopLeft = this.colorGreenBottomLeft = this.colorGreenBottomRight = this.colorGreenTopRight = 0.6F;
@@ -1178,8 +1231,8 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
CustomOreBlockRenderer.renderFaceXNeg(aWorld, aRenderer, block, xPos, yPos, zPos, aTextures);
RenderBlocks.getInstance();
- if (RenderBlocks.fancyGrass && iicon.getIconName().equals("grass_side")
- && !this.hasOverrideBlockTexture()) {
+ if (RenderBlocks.fancyGrass && iicon.getIconName()
+ .equals("grass_side") && !this.hasOverrideBlockTexture()) {
this.colorRedTopLeft *= R;
this.colorRedBottomLeft *= R;
this.colorRedBottomRight *= R;
@@ -1199,30 +1252,38 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
}
if (RenderBlocks.getInstance().renderAllFaces
- || block.shouldSideBeRendered(blockAccess, xPos + 1, yPos, zPos, 5)) {
+ || block.shouldSideBeRendered(blockAccess, xPos + 1, yPos, zPos, 5)) {
if (this.renderMaxX >= 1.0D) {
++xPos;
}
- this.aoLightValueScratchXYPN = blockAccess.getBlock(xPos, yPos - 1, zPos).getAmbientOcclusionLightValue();
- this.aoLightValueScratchXZPN = blockAccess.getBlock(xPos, yPos, zPos - 1).getAmbientOcclusionLightValue();
- this.aoLightValueScratchXZPP = blockAccess.getBlock(xPos, yPos, zPos + 1).getAmbientOcclusionLightValue();
- this.aoLightValueScratchXYPP = blockAccess.getBlock(xPos, yPos + 1, zPos).getAmbientOcclusionLightValue();
+ this.aoLightValueScratchXYPN = blockAccess.getBlock(xPos, yPos - 1, zPos)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchXZPN = blockAccess.getBlock(xPos, yPos, zPos - 1)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchXZPP = blockAccess.getBlock(xPos, yPos, zPos + 1)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchXYPP = blockAccess.getBlock(xPos, yPos + 1, zPos)
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYPN = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos - 1, zPos);
this.aoBrightnessXZPN = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos, zPos - 1);
this.aoBrightnessXZPP = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos, zPos + 1);
this.aoBrightnessXYPP = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos + 1, zPos);
- flag2 = blockAccess.getBlock(xPos + 1, yPos + 1, zPos).getCanBlockGrass();
- flag3 = blockAccess.getBlock(xPos + 1, yPos - 1, zPos).getCanBlockGrass();
- flag4 = blockAccess.getBlock(xPos + 1, yPos, zPos + 1).getCanBlockGrass();
- flag5 = blockAccess.getBlock(xPos + 1, yPos, zPos - 1).getCanBlockGrass();
+ flag2 = blockAccess.getBlock(xPos + 1, yPos + 1, zPos)
+ .getCanBlockGrass();
+ flag3 = blockAccess.getBlock(xPos + 1, yPos - 1, zPos)
+ .getCanBlockGrass();
+ flag4 = blockAccess.getBlock(xPos + 1, yPos, zPos + 1)
+ .getCanBlockGrass();
+ flag5 = blockAccess.getBlock(xPos + 1, yPos, zPos - 1)
+ .getCanBlockGrass();
if (!flag3 && !flag5) {
this.aoLightValueScratchXYZPNN = this.aoLightValueScratchXZPN;
this.aoBrightnessXYZPNN = this.aoBrightnessXZPN;
} else {
this.aoLightValueScratchXYZPNN = blockAccess.getBlock(xPos, yPos - 1, zPos - 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZPNN = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos - 1, zPos - 1);
}
@@ -1231,7 +1292,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZPNP = this.aoBrightnessXZPP;
} else {
this.aoLightValueScratchXYZPNP = blockAccess.getBlock(xPos, yPos - 1, zPos + 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZPNP = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos - 1, zPos + 1);
}
@@ -1240,7 +1301,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZPPN = this.aoBrightnessXZPN;
} else {
this.aoLightValueScratchXYZPPN = blockAccess.getBlock(xPos, yPos + 1, zPos - 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZPPN = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos + 1, zPos - 1);
}
@@ -1249,7 +1310,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZPPP = this.aoBrightnessXZPP;
} else {
this.aoLightValueScratchXYZPPP = blockAccess.getBlock(xPos, yPos + 1, zPos + 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZPPP = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos + 1, zPos + 1);
}
@@ -1259,35 +1320,37 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
i1 = l;
- if (this.renderMaxX >= 1.0D || !blockAccess.getBlock(xPos + 1, yPos, zPos).isOpaqueCube()) {
+ if (this.renderMaxX >= 1.0D || !blockAccess.getBlock(xPos + 1, yPos, zPos)
+ .isOpaqueCube()) {
i1 = block.getMixedBrightnessForBlock(blockAccess, xPos + 1, yPos, zPos);
}
- f7 = blockAccess.getBlock(xPos + 1, yPos, zPos).getAmbientOcclusionLightValue();
+ f7 = blockAccess.getBlock(xPos + 1, yPos, zPos)
+ .getAmbientOcclusionLightValue();
f3 = (this.aoLightValueScratchXYPN + this.aoLightValueScratchXYZPNP + f7 + this.aoLightValueScratchXZPP)
- / 4.0F;
+ / 4.0F;
f4 = (this.aoLightValueScratchXYZPNN + this.aoLightValueScratchXYPN + this.aoLightValueScratchXZPN + f7)
- / 4.0F;
+ / 4.0F;
f5 = (this.aoLightValueScratchXZPN + f7 + this.aoLightValueScratchXYZPPN + this.aoLightValueScratchXYPP)
- / 4.0F;
+ / 4.0F;
f6 = (f7 + this.aoLightValueScratchXZPP + this.aoLightValueScratchXYPP + this.aoLightValueScratchXYZPPP)
- / 4.0F;
+ / 4.0F;
this.brightnessTopLeft = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXYPN, this.aoBrightnessXYZPNP, this.aoBrightnessXZPP, i1);
+ .getAoBrightness(this.aoBrightnessXYPN, this.aoBrightnessXYZPNP, this.aoBrightnessXZPP, i1);
this.brightnessTopRight = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXZPP, this.aoBrightnessXYPP, this.aoBrightnessXYZPPP, i1);
+ .getAoBrightness(this.aoBrightnessXZPP, this.aoBrightnessXYPP, this.aoBrightnessXYZPPP, i1);
this.brightnessBottomRight = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXZPN, this.aoBrightnessXYZPPN, this.aoBrightnessXYPP, i1);
+ .getAoBrightness(this.aoBrightnessXZPN, this.aoBrightnessXYZPPN, this.aoBrightnessXYPP, i1);
this.brightnessBottomLeft = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXYZPNN, this.aoBrightnessXYPN, this.aoBrightnessXZPN, i1);
+ .getAoBrightness(this.aoBrightnessXYZPNN, this.aoBrightnessXYPN, this.aoBrightnessXZPN, i1);
if (flag1) {
this.colorRedTopLeft = this.colorRedBottomLeft = this.colorRedBottomRight = this.colorRedTopRight = R
- * 0.6F;
+ * 0.6F;
this.colorGreenTopLeft = this.colorGreenBottomLeft = this.colorGreenBottomRight = this.colorGreenTopRight = G
- * 0.6F;
+ * 0.6F;
this.colorBlueTopLeft = this.colorBlueBottomLeft = this.colorBlueBottomRight = this.colorBlueTopRight = B
- * 0.6F;
+ * 0.6F;
} else {
this.colorRedTopLeft = this.colorRedBottomLeft = this.colorRedBottomRight = this.colorRedTopRight = 0.6F;
this.colorGreenTopLeft = this.colorGreenBottomLeft = this.colorGreenBottomRight = this.colorGreenTopRight = 0.6F;
@@ -1310,8 +1373,8 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
CustomOreBlockRenderer.renderFaceXPos(aWorld, aRenderer, block, xPos, yPos, zPos, aTextures);
RenderBlocks.getInstance();
- if (RenderBlocks.fancyGrass && iicon.getIconName().equals("grass_side")
- && !this.hasOverrideBlockTexture()) {
+ if (RenderBlocks.fancyGrass && iicon.getIconName()
+ .equals("grass_side") && !this.hasOverrideBlockTexture()) {
this.colorRedTopLeft *= R;
this.colorRedBottomLeft *= R;
this.colorRedBottomRight *= R;
@@ -1338,7 +1401,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
* Renders non-full-cube block with ambient occusion. Args: block, x, y, z, red, green, blue (lighting)
*/
public boolean renderStandardBlockWithAmbientOcclusionPartial(IBlockAccess aWorld, RenderBlocks aRenderer,
- ITexture[][] aTextures, Block block, int xPos, int yPos, int zPos, float R, float G, float B) {
+ ITexture[][] aTextures, Block block, int xPos, int yPos, int zPos, float R, float G, float B) {
this.enableAO = true;
boolean flag = false;
float f3 = 0.0F;
@@ -1350,7 +1413,9 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
Tessellator tessellator = Tessellator.instance;
tessellator.setBrightness(983055);
- if (this.getBlockIcon(block).getIconName().equals("grass_top")) {
+ if (this.getBlockIcon(block)
+ .getIconName()
+ .equals("grass_top")) {
flag1 = false;
} else if (this.hasOverrideBlockTexture()) {
flag1 = false;
@@ -1364,7 +1429,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
float f7;
if (RenderBlocks.getInstance().renderAllFaces
- || block.shouldSideBeRendered(blockAccess, xPos, yPos - 1, zPos, 0)) {
+ || block.shouldSideBeRendered(blockAccess, xPos, yPos - 1, zPos, 0)) {
if (this.renderMinY <= 0.0D) {
--yPos;
}
@@ -1373,21 +1438,29 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessYZNN = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos, zPos - 1);
this.aoBrightnessYZNP = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos, zPos + 1);
this.aoBrightnessXYPN = block.getMixedBrightnessForBlock(blockAccess, xPos + 1, yPos, zPos);
- this.aoLightValueScratchXYNN = blockAccess.getBlock(xPos - 1, yPos, zPos).getAmbientOcclusionLightValue();
- this.aoLightValueScratchYZNN = blockAccess.getBlock(xPos, yPos, zPos - 1).getAmbientOcclusionLightValue();
- this.aoLightValueScratchYZNP = blockAccess.getBlock(xPos, yPos, zPos + 1).getAmbientOcclusionLightValue();
- this.aoLightValueScratchXYPN = blockAccess.getBlock(xPos + 1, yPos, zPos).getAmbientOcclusionLightValue();
- flag2 = blockAccess.getBlock(xPos + 1, yPos - 1, zPos).getCanBlockGrass();
- flag3 = blockAccess.getBlock(xPos - 1, yPos - 1, zPos).getCanBlockGrass();
- flag4 = blockAccess.getBlock(xPos, yPos - 1, zPos + 1).getCanBlockGrass();
- flag5 = blockAccess.getBlock(xPos, yPos - 1, zPos - 1).getCanBlockGrass();
+ this.aoLightValueScratchXYNN = blockAccess.getBlock(xPos - 1, yPos, zPos)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchYZNN = blockAccess.getBlock(xPos, yPos, zPos - 1)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchYZNP = blockAccess.getBlock(xPos, yPos, zPos + 1)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchXYPN = blockAccess.getBlock(xPos + 1, yPos, zPos)
+ .getAmbientOcclusionLightValue();
+ flag2 = blockAccess.getBlock(xPos + 1, yPos - 1, zPos)
+ .getCanBlockGrass();
+ flag3 = blockAccess.getBlock(xPos - 1, yPos - 1, zPos)
+ .getCanBlockGrass();
+ flag4 = blockAccess.getBlock(xPos, yPos - 1, zPos + 1)
+ .getCanBlockGrass();
+ flag5 = blockAccess.getBlock(xPos, yPos - 1, zPos - 1)
+ .getCanBlockGrass();
if (!flag5 && !flag3) {
this.aoLightValueScratchXYZNNN = this.aoLightValueScratchXYNN;
this.aoBrightnessXYZNNN = this.aoBrightnessXYNN;
} else {
this.aoLightValueScratchXYZNNN = blockAccess.getBlock(xPos - 1, yPos, zPos - 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZNNN = block.getMixedBrightnessForBlock(blockAccess, xPos - 1, yPos, zPos - 1);
}
@@ -1396,7 +1469,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZNNP = this.aoBrightnessXYNN;
} else {
this.aoLightValueScratchXYZNNP = blockAccess.getBlock(xPos - 1, yPos, zPos + 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZNNP = block.getMixedBrightnessForBlock(blockAccess, xPos - 1, yPos, zPos + 1);
}
@@ -1405,7 +1478,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZPNN = this.aoBrightnessXYPN;
} else {
this.aoLightValueScratchXYZPNN = blockAccess.getBlock(xPos + 1, yPos, zPos - 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZPNN = block.getMixedBrightnessForBlock(blockAccess, xPos + 1, yPos, zPos - 1);
}
@@ -1414,7 +1487,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZPNP = this.aoBrightnessXYPN;
} else {
this.aoLightValueScratchXYZPNP = blockAccess.getBlock(xPos + 1, yPos, zPos + 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZPNP = block.getMixedBrightnessForBlock(blockAccess, xPos + 1, yPos, zPos + 1);
}
@@ -1424,35 +1497,37 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
i1 = l;
- if (this.renderMinY <= 0.0D || !blockAccess.getBlock(xPos, yPos - 1, zPos).isOpaqueCube()) {
+ if (this.renderMinY <= 0.0D || !blockAccess.getBlock(xPos, yPos - 1, zPos)
+ .isOpaqueCube()) {
i1 = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos - 1, zPos);
}
- f7 = blockAccess.getBlock(xPos, yPos - 1, zPos).getAmbientOcclusionLightValue();
+ f7 = blockAccess.getBlock(xPos, yPos - 1, zPos)
+ .getAmbientOcclusionLightValue();
f3 = (this.aoLightValueScratchXYZNNP + this.aoLightValueScratchXYNN + this.aoLightValueScratchYZNP + f7)
- / 4.0F;
+ / 4.0F;
f6 = (this.aoLightValueScratchYZNP + f7 + this.aoLightValueScratchXYZPNP + this.aoLightValueScratchXYPN)
- / 4.0F;
+ / 4.0F;
f5 = (f7 + this.aoLightValueScratchYZNN + this.aoLightValueScratchXYPN + this.aoLightValueScratchXYZPNN)
- / 4.0F;
+ / 4.0F;
f4 = (this.aoLightValueScratchXYNN + this.aoLightValueScratchXYZNNN + f7 + this.aoLightValueScratchYZNN)
- / 4.0F;
+ / 4.0F;
this.brightnessTopLeft = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXYZNNP, this.aoBrightnessXYNN, this.aoBrightnessYZNP, i1);
+ .getAoBrightness(this.aoBrightnessXYZNNP, this.aoBrightnessXYNN, this.aoBrightnessYZNP, i1);
this.brightnessTopRight = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessYZNP, this.aoBrightnessXYZPNP, this.aoBrightnessXYPN, i1);
+ .getAoBrightness(this.aoBrightnessYZNP, this.aoBrightnessXYZPNP, this.aoBrightnessXYPN, i1);
this.brightnessBottomRight = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessYZNN, this.aoBrightnessXYPN, this.aoBrightnessXYZPNN, i1);
+ .getAoBrightness(this.aoBrightnessYZNN, this.aoBrightnessXYPN, this.aoBrightnessXYZPNN, i1);
this.brightnessBottomLeft = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXYNN, this.aoBrightnessXYZNNN, this.aoBrightnessYZNN, i1);
+ .getAoBrightness(this.aoBrightnessXYNN, this.aoBrightnessXYZNNN, this.aoBrightnessYZNN, i1);
if (flag1) {
this.colorRedTopLeft = this.colorRedBottomLeft = this.colorRedBottomRight = this.colorRedTopRight = R
- * 0.5F;
+ * 0.5F;
this.colorGreenTopLeft = this.colorGreenBottomLeft = this.colorGreenBottomRight = this.colorGreenTopRight = G
- * 0.5F;
+ * 0.5F;
this.colorBlueTopLeft = this.colorBlueBottomLeft = this.colorBlueBottomRight = this.colorBlueTopRight = B
- * 0.5F;
+ * 0.5F;
} else {
this.colorRedTopLeft = this.colorRedBottomLeft = this.colorRedBottomRight = this.colorRedTopRight = 0.5F;
this.colorGreenTopLeft = this.colorGreenBottomLeft = this.colorGreenBottomRight = this.colorGreenTopRight = 0.5F;
@@ -1476,7 +1551,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
}
if (RenderBlocks.getInstance().renderAllFaces
- || block.shouldSideBeRendered(blockAccess, xPos, yPos + 1, zPos, 1)) {
+ || block.shouldSideBeRendered(blockAccess, xPos, yPos + 1, zPos, 1)) {
if (this.renderMaxY >= 1.0D) {
++yPos;
}
@@ -1485,21 +1560,29 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYPP = block.getMixedBrightnessForBlock(blockAccess, xPos + 1, yPos, zPos);
this.aoBrightnessYZPN = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos, zPos - 1);
this.aoBrightnessYZPP = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos, zPos + 1);
- this.aoLightValueScratchXYNP = blockAccess.getBlock(xPos - 1, yPos, zPos).getAmbientOcclusionLightValue();
- this.aoLightValueScratchXYPP = blockAccess.getBlock(xPos + 1, yPos, zPos).getAmbientOcclusionLightValue();
- this.aoLightValueScratchYZPN = blockAccess.getBlock(xPos, yPos, zPos - 1).getAmbientOcclusionLightValue();
- this.aoLightValueScratchYZPP = blockAccess.getBlock(xPos, yPos, zPos + 1).getAmbientOcclusionLightValue();
- flag2 = blockAccess.getBlock(xPos + 1, yPos + 1, zPos).getCanBlockGrass();
- flag3 = blockAccess.getBlock(xPos - 1, yPos + 1, zPos).getCanBlockGrass();
- flag4 = blockAccess.getBlock(xPos, yPos + 1, zPos + 1).getCanBlockGrass();
- flag5 = blockAccess.getBlock(xPos, yPos + 1, zPos - 1).getCanBlockGrass();
+ this.aoLightValueScratchXYNP = blockAccess.getBlock(xPos - 1, yPos, zPos)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchXYPP = blockAccess.getBlock(xPos + 1, yPos, zPos)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchYZPN = blockAccess.getBlock(xPos, yPos, zPos - 1)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchYZPP = blockAccess.getBlock(xPos, yPos, zPos + 1)
+ .getAmbientOcclusionLightValue();
+ flag2 = blockAccess.getBlock(xPos + 1, yPos + 1, zPos)
+ .getCanBlockGrass();
+ flag3 = blockAccess.getBlock(xPos - 1, yPos + 1, zPos)
+ .getCanBlockGrass();
+ flag4 = blockAccess.getBlock(xPos, yPos + 1, zPos + 1)
+ .getCanBlockGrass();
+ flag5 = blockAccess.getBlock(xPos, yPos + 1, zPos - 1)
+ .getCanBlockGrass();
if (!flag5 && !flag3) {
this.aoLightValueScratchXYZNPN = this.aoLightValueScratchXYNP;
this.aoBrightnessXYZNPN = this.aoBrightnessXYNP;
} else {
this.aoLightValueScratchXYZNPN = blockAccess.getBlock(xPos - 1, yPos, zPos - 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZNPN = block.getMixedBrightnessForBlock(blockAccess, xPos - 1, yPos, zPos - 1);
}
@@ -1508,7 +1591,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZPPN = this.aoBrightnessXYPP;
} else {
this.aoLightValueScratchXYZPPN = blockAccess.getBlock(xPos + 1, yPos, zPos - 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZPPN = block.getMixedBrightnessForBlock(blockAccess, xPos + 1, yPos, zPos - 1);
}
@@ -1517,7 +1600,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZNPP = this.aoBrightnessXYNP;
} else {
this.aoLightValueScratchXYZNPP = blockAccess.getBlock(xPos - 1, yPos, zPos + 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZNPP = block.getMixedBrightnessForBlock(blockAccess, xPos - 1, yPos, zPos + 1);
}
@@ -1526,7 +1609,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZPPP = this.aoBrightnessXYPP;
} else {
this.aoLightValueScratchXYZPPP = blockAccess.getBlock(xPos + 1, yPos, zPos + 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZPPP = block.getMixedBrightnessForBlock(blockAccess, xPos + 1, yPos, zPos + 1);
}
@@ -1536,27 +1619,29 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
i1 = l;
- if (this.renderMaxY >= 1.0D || !blockAccess.getBlock(xPos, yPos + 1, zPos).isOpaqueCube()) {
+ if (this.renderMaxY >= 1.0D || !blockAccess.getBlock(xPos, yPos + 1, zPos)
+ .isOpaqueCube()) {
i1 = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos + 1, zPos);
}
- f7 = blockAccess.getBlock(xPos, yPos + 1, zPos).getAmbientOcclusionLightValue();
+ f7 = blockAccess.getBlock(xPos, yPos + 1, zPos)
+ .getAmbientOcclusionLightValue();
f6 = (this.aoLightValueScratchXYZNPP + this.aoLightValueScratchXYNP + this.aoLightValueScratchYZPP + f7)
- / 4.0F;
+ / 4.0F;
f3 = (this.aoLightValueScratchYZPP + f7 + this.aoLightValueScratchXYZPPP + this.aoLightValueScratchXYPP)
- / 4.0F;
+ / 4.0F;
f4 = (f7 + this.aoLightValueScratchYZPN + this.aoLightValueScratchXYPP + this.aoLightValueScratchXYZPPN)
- / 4.0F;
+ / 4.0F;
f5 = (this.aoLightValueScratchXYNP + this.aoLightValueScratchXYZNPN + f7 + this.aoLightValueScratchYZPN)
- / 4.0F;
+ / 4.0F;
this.brightnessTopRight = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXYZNPP, this.aoBrightnessXYNP, this.aoBrightnessYZPP, i1);
+ .getAoBrightness(this.aoBrightnessXYZNPP, this.aoBrightnessXYNP, this.aoBrightnessYZPP, i1);
this.brightnessTopLeft = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessYZPP, this.aoBrightnessXYZPPP, this.aoBrightnessXYPP, i1);
+ .getAoBrightness(this.aoBrightnessYZPP, this.aoBrightnessXYZPPP, this.aoBrightnessXYPP, i1);
this.brightnessBottomLeft = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessYZPN, this.aoBrightnessXYPP, this.aoBrightnessXYZPPN, i1);
+ .getAoBrightness(this.aoBrightnessYZPN, this.aoBrightnessXYPP, this.aoBrightnessXYZPPN, i1);
this.brightnessBottomRight = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXYNP, this.aoBrightnessXYZNPN, this.aoBrightnessYZPN, i1);
+ .getAoBrightness(this.aoBrightnessXYNP, this.aoBrightnessXYZNPN, this.aoBrightnessYZPN, i1);
this.colorRedTopLeft = this.colorRedBottomLeft = this.colorRedBottomRight = this.colorRedTopRight = R;
this.colorGreenTopLeft = this.colorGreenBottomLeft = this.colorGreenBottomRight = this.colorGreenTopRight = G;
this.colorBlueTopLeft = this.colorBlueBottomLeft = this.colorBlueBottomRight = this.colorBlueTopRight = B;
@@ -1587,30 +1672,38 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
IIcon iicon;
if (RenderBlocks.getInstance().renderAllFaces
- || block.shouldSideBeRendered(blockAccess, xPos, yPos, zPos - 1, 2)) {
+ || block.shouldSideBeRendered(blockAccess, xPos, yPos, zPos - 1, 2)) {
if (this.renderMinZ <= 0.0D) {
--zPos;
}
- this.aoLightValueScratchXZNN = blockAccess.getBlock(xPos - 1, yPos, zPos).getAmbientOcclusionLightValue();
- this.aoLightValueScratchYZNN = blockAccess.getBlock(xPos, yPos - 1, zPos).getAmbientOcclusionLightValue();
- this.aoLightValueScratchYZPN = blockAccess.getBlock(xPos, yPos + 1, zPos).getAmbientOcclusionLightValue();
- this.aoLightValueScratchXZPN = blockAccess.getBlock(xPos + 1, yPos, zPos).getAmbientOcclusionLightValue();
+ this.aoLightValueScratchXZNN = blockAccess.getBlock(xPos - 1, yPos, zPos)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchYZNN = blockAccess.getBlock(xPos, yPos - 1, zPos)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchYZPN = blockAccess.getBlock(xPos, yPos + 1, zPos)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchXZPN = blockAccess.getBlock(xPos + 1, yPos, zPos)
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXZNN = block.getMixedBrightnessForBlock(blockAccess, xPos - 1, yPos, zPos);
this.aoBrightnessYZNN = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos - 1, zPos);
this.aoBrightnessYZPN = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos + 1, zPos);
this.aoBrightnessXZPN = block.getMixedBrightnessForBlock(blockAccess, xPos + 1, yPos, zPos);
- flag2 = blockAccess.getBlock(xPos + 1, yPos, zPos - 1).getCanBlockGrass();
- flag3 = blockAccess.getBlock(xPos - 1, yPos, zPos - 1).getCanBlockGrass();
- flag4 = blockAccess.getBlock(xPos, yPos + 1, zPos - 1).getCanBlockGrass();
- flag5 = blockAccess.getBlock(xPos, yPos - 1, zPos - 1).getCanBlockGrass();
+ flag2 = blockAccess.getBlock(xPos + 1, yPos, zPos - 1)
+ .getCanBlockGrass();
+ flag3 = blockAccess.getBlock(xPos - 1, yPos, zPos - 1)
+ .getCanBlockGrass();
+ flag4 = blockAccess.getBlock(xPos, yPos + 1, zPos - 1)
+ .getCanBlockGrass();
+ flag5 = blockAccess.getBlock(xPos, yPos - 1, zPos - 1)
+ .getCanBlockGrass();
if (!flag3 && !flag5) {
this.aoLightValueScratchXYZNNN = this.aoLightValueScratchXZNN;
this.aoBrightnessXYZNNN = this.aoBrightnessXZNN;
} else {
this.aoLightValueScratchXYZNNN = blockAccess.getBlock(xPos - 1, yPos - 1, zPos)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZNNN = block.getMixedBrightnessForBlock(blockAccess, xPos - 1, yPos - 1, zPos);
}
@@ -1619,7 +1712,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZNPN = this.aoBrightnessXZNN;
} else {
this.aoLightValueScratchXYZNPN = blockAccess.getBlock(xPos - 1, yPos + 1, zPos)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZNPN = block.getMixedBrightnessForBlock(blockAccess, xPos - 1, yPos + 1, zPos);
}
@@ -1628,7 +1721,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZPNN = this.aoBrightnessXZPN;
} else {
this.aoLightValueScratchXYZPNN = blockAccess.getBlock(xPos + 1, yPos - 1, zPos)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZPNN = block.getMixedBrightnessForBlock(blockAccess, xPos + 1, yPos - 1, zPos);
}
@@ -1637,7 +1730,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZPPN = this.aoBrightnessXZPN;
} else {
this.aoLightValueScratchXYZPPN = blockAccess.getBlock(xPos + 1, yPos + 1, zPos)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZPPN = block.getMixedBrightnessForBlock(blockAccess, xPos + 1, yPos + 1, zPos);
}
@@ -1647,44 +1740,47 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
i1 = l;
- if (this.renderMinZ <= 0.0D || !blockAccess.getBlock(xPos, yPos, zPos - 1).isOpaqueCube()) {
+ if (this.renderMinZ <= 0.0D || !blockAccess.getBlock(xPos, yPos, zPos - 1)
+ .isOpaqueCube()) {
i1 = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos, zPos - 1);
}
- f7 = blockAccess.getBlock(xPos, yPos, zPos - 1).getAmbientOcclusionLightValue();
+ f7 = blockAccess.getBlock(xPos, yPos, zPos - 1)
+ .getAmbientOcclusionLightValue();
f8 = (this.aoLightValueScratchXZNN + this.aoLightValueScratchXYZNPN + f7 + this.aoLightValueScratchYZPN)
- / 4.0F;
+ / 4.0F;
f9 = (f7 + this.aoLightValueScratchYZPN + this.aoLightValueScratchXZPN + this.aoLightValueScratchXYZPPN)
- / 4.0F;
+ / 4.0F;
f10 = (this.aoLightValueScratchYZNN + f7 + this.aoLightValueScratchXYZPNN + this.aoLightValueScratchXZPN)
- / 4.0F;
+ / 4.0F;
f11 = (this.aoLightValueScratchXYZNNN + this.aoLightValueScratchXZNN + this.aoLightValueScratchYZNN + f7)
- / 4.0F;
+ / 4.0F;
f3 = (float) ((double) f8 * this.renderMaxY * (1.0D - this.renderMinX)
- + (double) f9 * this.renderMaxY * this.renderMinX
- + (double) f10 * (1.0D - this.renderMaxY) * this.renderMinX
- + (double) f11 * (1.0D - this.renderMaxY) * (1.0D - this.renderMinX));
+ + (double) f9 * this.renderMaxY * this.renderMinX
+ + (double) f10 * (1.0D - this.renderMaxY) * this.renderMinX
+ + (double) f11 * (1.0D - this.renderMaxY) * (1.0D - this.renderMinX));
f4 = (float) ((double) f8 * this.renderMaxY * (1.0D - this.renderMaxX)
- + (double) f9 * this.renderMaxY * this.renderMaxX
- + (double) f10 * (1.0D - this.renderMaxY) * this.renderMaxX
- + (double) f11 * (1.0D - this.renderMaxY) * (1.0D - this.renderMaxX));
+ + (double) f9 * this.renderMaxY * this.renderMaxX
+ + (double) f10 * (1.0D - this.renderMaxY) * this.renderMaxX
+ + (double) f11 * (1.0D - this.renderMaxY) * (1.0D - this.renderMaxX));
f5 = (float) ((double) f8 * this.renderMinY * (1.0D - this.renderMaxX)
- + (double) f9 * this.renderMinY * this.renderMaxX
- + (double) f10 * (1.0D - this.renderMinY) * this.renderMaxX
- + (double) f11 * (1.0D - this.renderMinY) * (1.0D - this.renderMaxX));
+ + (double) f9 * this.renderMinY * this.renderMaxX
+ + (double) f10 * (1.0D - this.renderMinY) * this.renderMaxX
+ + (double) f11 * (1.0D - this.renderMinY) * (1.0D - this.renderMaxX));
f6 = (float) ((double) f8 * this.renderMinY * (1.0D - this.renderMinX)
- + (double) f9 * this.renderMinY * this.renderMinX
- + (double) f10 * (1.0D - this.renderMinY) * this.renderMinX
- + (double) f11 * (1.0D - this.renderMinY) * (1.0D - this.renderMinX));
+ + (double) f9 * this.renderMinY * this.renderMinX
+ + (double) f10 * (1.0D - this.renderMinY) * this.renderMinX
+ + (double) f11 * (1.0D - this.renderMinY) * (1.0D - this.renderMinX));
j1 = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXZNN, this.aoBrightnessXYZNPN, this.aoBrightnessYZPN, i1);
+ .getAoBrightness(this.aoBrightnessXZNN, this.aoBrightnessXYZNPN, this.aoBrightnessYZPN, i1);
k1 = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessYZPN, this.aoBrightnessXZPN, this.aoBrightnessXYZPPN, i1);
+ .getAoBrightness(this.aoBrightnessYZPN, this.aoBrightnessXZPN, this.aoBrightnessXYZPPN, i1);
l1 = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessYZNN, this.aoBrightnessXYZPNN, this.aoBrightnessXZPN, i1);
+ .getAoBrightness(this.aoBrightnessYZNN, this.aoBrightnessXYZPNN, this.aoBrightnessXZPN, i1);
i2 = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXYZNNN, this.aoBrightnessXZNN, this.aoBrightnessYZNN, i1);
- this.brightnessTopLeft = RenderBlocks.getInstance().mixAoBrightness(
+ .getAoBrightness(this.aoBrightnessXYZNNN, this.aoBrightnessXZNN, this.aoBrightnessYZNN, i1);
+ this.brightnessTopLeft = RenderBlocks.getInstance()
+ .mixAoBrightness(
j1,
k1,
l1,
@@ -1693,7 +1789,8 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.renderMaxY * this.renderMinX,
(1.0D - this.renderMaxY) * this.renderMinX,
(1.0D - this.renderMaxY) * (1.0D - this.renderMinX));
- this.brightnessBottomLeft = RenderBlocks.getInstance().mixAoBrightness(
+ this.brightnessBottomLeft = RenderBlocks.getInstance()
+ .mixAoBrightness(
j1,
k1,
l1,
@@ -1702,7 +1799,8 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.renderMaxY * this.renderMaxX,
(1.0D - this.renderMaxY) * this.renderMaxX,
(1.0D - this.renderMaxY) * (1.0D - this.renderMaxX));
- this.brightnessBottomRight = RenderBlocks.getInstance().mixAoBrightness(
+ this.brightnessBottomRight = RenderBlocks.getInstance()
+ .mixAoBrightness(
j1,
k1,
l1,
@@ -1711,7 +1809,8 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.renderMinY * this.renderMaxX,
(1.0D - this.renderMinY) * this.renderMaxX,
(1.0D - this.renderMinY) * (1.0D - this.renderMaxX));
- this.brightnessTopRight = RenderBlocks.getInstance().mixAoBrightness(
+ this.brightnessTopRight = RenderBlocks.getInstance()
+ .mixAoBrightness(
j1,
k1,
l1,
@@ -1723,11 +1822,11 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
if (flag1) {
this.colorRedTopLeft = this.colorRedBottomLeft = this.colorRedBottomRight = this.colorRedTopRight = R
- * 0.8F;
+ * 0.8F;
this.colorGreenTopLeft = this.colorGreenBottomLeft = this.colorGreenBottomRight = this.colorGreenTopRight = G
- * 0.8F;
+ * 0.8F;
this.colorBlueTopLeft = this.colorBlueBottomLeft = this.colorBlueBottomRight = this.colorBlueTopRight = B
- * 0.8F;
+ * 0.8F;
} else {
this.colorRedTopLeft = this.colorRedBottomLeft = this.colorRedBottomRight = this.colorRedTopRight = 0.8F;
this.colorGreenTopLeft = this.colorGreenBottomLeft = this.colorGreenBottomRight = this.colorGreenTopRight = 0.8F;
@@ -1750,8 +1849,8 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
CustomOreBlockRenderer.renderFaceZNeg(aWorld, aRenderer, block, xPos, yPos, zPos, aTextures);
RenderBlocks.getInstance();
- if (RenderBlocks.fancyGrass && iicon.getIconName().equals("grass_side")
- && !this.hasOverrideBlockTexture()) {
+ if (RenderBlocks.fancyGrass && iicon.getIconName()
+ .equals("grass_side") && !this.hasOverrideBlockTexture()) {
this.colorRedTopLeft *= R;
this.colorRedBottomLeft *= R;
this.colorRedBottomRight *= R;
@@ -1771,30 +1870,38 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
}
if (RenderBlocks.getInstance().renderAllFaces
- || block.shouldSideBeRendered(blockAccess, xPos, yPos, zPos + 1, 3)) {
+ || block.shouldSideBeRendered(blockAccess, xPos, yPos, zPos + 1, 3)) {
if (this.renderMaxZ >= 1.0D) {
++zPos;
}
- this.aoLightValueScratchXZNP = blockAccess.getBlock(xPos - 1, yPos, zPos).getAmbientOcclusionLightValue();
- this.aoLightValueScratchXZPP = blockAccess.getBlock(xPos + 1, yPos, zPos).getAmbientOcclusionLightValue();
- this.aoLightValueScratchYZNP = blockAccess.getBlock(xPos, yPos - 1, zPos).getAmbientOcclusionLightValue();
- this.aoLightValueScratchYZPP = blockAccess.getBlock(xPos, yPos + 1, zPos).getAmbientOcclusionLightValue();
+ this.aoLightValueScratchXZNP = blockAccess.getBlock(xPos - 1, yPos, zPos)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchXZPP = blockAccess.getBlock(xPos + 1, yPos, zPos)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchYZNP = blockAccess.getBlock(xPos, yPos - 1, zPos)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchYZPP = blockAccess.getBlock(xPos, yPos + 1, zPos)
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXZNP = block.getMixedBrightnessForBlock(blockAccess, xPos - 1, yPos, zPos);
this.aoBrightnessXZPP = block.getMixedBrightnessForBlock(blockAccess, xPos + 1, yPos, zPos);
this.aoBrightnessYZNP = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos - 1, zPos);
this.aoBrightnessYZPP = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos + 1, zPos);
- flag2 = blockAccess.getBlock(xPos + 1, yPos, zPos + 1).getCanBlockGrass();
- flag3 = blockAccess.getBlock(xPos - 1, yPos, zPos + 1).getCanBlockGrass();
- flag4 = blockAccess.getBlock(xPos, yPos + 1, zPos + 1).getCanBlockGrass();
- flag5 = blockAccess.getBlock(xPos, yPos - 1, zPos + 1).getCanBlockGrass();
+ flag2 = blockAccess.getBlock(xPos + 1, yPos, zPos + 1)
+ .getCanBlockGrass();
+ flag3 = blockAccess.getBlock(xPos - 1, yPos, zPos + 1)
+ .getCanBlockGrass();
+ flag4 = blockAccess.getBlock(xPos, yPos + 1, zPos + 1)
+ .getCanBlockGrass();
+ flag5 = blockAccess.getBlock(xPos, yPos - 1, zPos + 1)
+ .getCanBlockGrass();
if (!flag3 && !flag5) {
this.aoLightValueScratchXYZNNP = this.aoLightValueScratchXZNP;
this.aoBrightnessXYZNNP = this.aoBrightnessXZNP;
} else {
this.aoLightValueScratchXYZNNP = blockAccess.getBlock(xPos - 1, yPos - 1, zPos)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZNNP = block.getMixedBrightnessForBlock(blockAccess, xPos - 1, yPos - 1, zPos);
}
@@ -1803,7 +1910,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZNPP = this.aoBrightnessXZNP;
} else {
this.aoLightValueScratchXYZNPP = blockAccess.getBlock(xPos - 1, yPos + 1, zPos)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZNPP = block.getMixedBrightnessForBlock(blockAccess, xPos - 1, yPos + 1, zPos);
}
@@ -1812,7 +1919,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZPNP = this.aoBrightnessXZPP;
} else {
this.aoLightValueScratchXYZPNP = blockAccess.getBlock(xPos + 1, yPos - 1, zPos)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZPNP = block.getMixedBrightnessForBlock(blockAccess, xPos + 1, yPos - 1, zPos);
}
@@ -1821,7 +1928,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZPPP = this.aoBrightnessXZPP;
} else {
this.aoLightValueScratchXYZPPP = blockAccess.getBlock(xPos + 1, yPos + 1, zPos)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZPPP = block.getMixedBrightnessForBlock(blockAccess, xPos + 1, yPos + 1, zPos);
}
@@ -1831,44 +1938,47 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
i1 = l;
- if (this.renderMaxZ >= 1.0D || !blockAccess.getBlock(xPos, yPos, zPos + 1).isOpaqueCube()) {
+ if (this.renderMaxZ >= 1.0D || !blockAccess.getBlock(xPos, yPos, zPos + 1)
+ .isOpaqueCube()) {
i1 = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos, zPos + 1);
}
- f7 = blockAccess.getBlock(xPos, yPos, zPos + 1).getAmbientOcclusionLightValue();
+ f7 = blockAccess.getBlock(xPos, yPos, zPos + 1)
+ .getAmbientOcclusionLightValue();
f8 = (this.aoLightValueScratchXZNP + this.aoLightValueScratchXYZNPP + f7 + this.aoLightValueScratchYZPP)
- / 4.0F;
+ / 4.0F;
f9 = (f7 + this.aoLightValueScratchYZPP + this.aoLightValueScratchXZPP + this.aoLightValueScratchXYZPPP)
- / 4.0F;
+ / 4.0F;
f10 = (this.aoLightValueScratchYZNP + f7 + this.aoLightValueScratchXYZPNP + this.aoLightValueScratchXZPP)
- / 4.0F;
+ / 4.0F;
f11 = (this.aoLightValueScratchXYZNNP + this.aoLightValueScratchXZNP + this.aoLightValueScratchYZNP + f7)
- / 4.0F;
+ / 4.0F;
f3 = (float) ((double) f8 * this.renderMaxY * (1.0D - this.renderMinX)
- + (double) f9 * this.renderMaxY * this.renderMinX
- + (double) f10 * (1.0D - this.renderMaxY) * this.renderMinX
- + (double) f11 * (1.0D - this.renderMaxY) * (1.0D - this.renderMinX));
+ + (double) f9 * this.renderMaxY * this.renderMinX
+ + (double) f10 * (1.0D - this.renderMaxY) * this.renderMinX
+ + (double) f11 * (1.0D - this.renderMaxY) * (1.0D - this.renderMinX));
f4 = (float) ((double) f8 * this.renderMinY * (1.0D - this.renderMinX)
- + (double) f9 * this.renderMinY * this.renderMinX
- + (double) f10 * (1.0D - this.renderMinY) * this.renderMinX
- + (double) f11 * (1.0D - this.renderMinY) * (1.0D - this.renderMinX));
+ + (double) f9 * this.renderMinY * this.renderMinX
+ + (double) f10 * (1.0D - this.renderMinY) * this.renderMinX
+ + (double) f11 * (1.0D - this.renderMinY) * (1.0D - this.renderMinX));
f5 = (float) ((double) f8 * this.renderMinY * (1.0D - this.renderMaxX)
- + (double) f9 * this.renderMinY * this.renderMaxX
- + (double) f10 * (1.0D - this.renderMinY) * this.renderMaxX
- + (double) f11 * (1.0D - this.renderMinY) * (1.0D - this.renderMaxX));
+ + (double) f9 * this.renderMinY * this.renderMaxX
+ + (double) f10 * (1.0D - this.renderMinY) * this.renderMaxX
+ + (double) f11 * (1.0D - this.renderMinY) * (1.0D - this.renderMaxX));
f6 = (float) ((double) f8 * this.renderMaxY * (1.0D - this.renderMaxX)
- + (double) f9 * this.renderMaxY * this.renderMaxX
- + (double) f10 * (1.0D - this.renderMaxY) * this.renderMaxX
- + (double) f11 * (1.0D - this.renderMaxY) * (1.0D - this.renderMaxX));
+ + (double) f9 * this.renderMaxY * this.renderMaxX
+ + (double) f10 * (1.0D - this.renderMaxY) * this.renderMaxX
+ + (double) f11 * (1.0D - this.renderMaxY) * (1.0D - this.renderMaxX));
j1 = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXZNP, this.aoBrightnessXYZNPP, this.aoBrightnessYZPP, i1);
+ .getAoBrightness(this.aoBrightnessXZNP, this.aoBrightnessXYZNPP, this.aoBrightnessYZPP, i1);
k1 = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessYZPP, this.aoBrightnessXZPP, this.aoBrightnessXYZPPP, i1);
+ .getAoBrightness(this.aoBrightnessYZPP, this.aoBrightnessXZPP, this.aoBrightnessXYZPPP, i1);
l1 = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessYZNP, this.aoBrightnessXYZPNP, this.aoBrightnessXZPP, i1);
+ .getAoBrightness(this.aoBrightnessYZNP, this.aoBrightnessXYZPNP, this.aoBrightnessXZPP, i1);
i2 = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXYZNNP, this.aoBrightnessXZNP, this.aoBrightnessYZNP, i1);
- this.brightnessTopLeft = RenderBlocks.getInstance().mixAoBrightness(
+ .getAoBrightness(this.aoBrightnessXYZNNP, this.aoBrightnessXZNP, this.aoBrightnessYZNP, i1);
+ this.brightnessTopLeft = RenderBlocks.getInstance()
+ .mixAoBrightness(
j1,
i2,
l1,
@@ -1877,7 +1987,8 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
(1.0D - this.renderMaxY) * (1.0D - this.renderMinX),
(1.0D - this.renderMaxY) * this.renderMinX,
this.renderMaxY * this.renderMinX);
- this.brightnessBottomLeft = RenderBlocks.getInstance().mixAoBrightness(
+ this.brightnessBottomLeft = RenderBlocks.getInstance()
+ .mixAoBrightness(
j1,
i2,
l1,
@@ -1886,7 +1997,8 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
(1.0D - this.renderMinY) * (1.0D - this.renderMinX),
(1.0D - this.renderMinY) * this.renderMinX,
this.renderMinY * this.renderMinX);
- this.brightnessBottomRight = RenderBlocks.getInstance().mixAoBrightness(
+ this.brightnessBottomRight = RenderBlocks.getInstance()
+ .mixAoBrightness(
j1,
i2,
l1,
@@ -1895,7 +2007,8 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
(1.0D - this.renderMinY) * (1.0D - this.renderMaxX),
(1.0D - this.renderMinY) * this.renderMaxX,
this.renderMinY * this.renderMaxX);
- this.brightnessTopRight = RenderBlocks.getInstance().mixAoBrightness(
+ this.brightnessTopRight = RenderBlocks.getInstance()
+ .mixAoBrightness(
j1,
i2,
l1,
@@ -1907,11 +2020,11 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
if (flag1) {
this.colorRedTopLeft = this.colorRedBottomLeft = this.colorRedBottomRight = this.colorRedTopRight = R
- * 0.8F;
+ * 0.8F;
this.colorGreenTopLeft = this.colorGreenBottomLeft = this.colorGreenBottomRight = this.colorGreenTopRight = G
- * 0.8F;
+ * 0.8F;
this.colorBlueTopLeft = this.colorBlueBottomLeft = this.colorBlueBottomRight = this.colorBlueTopRight = B
- * 0.8F;
+ * 0.8F;
} else {
this.colorRedTopLeft = this.colorRedBottomLeft = this.colorRedBottomRight = this.colorRedTopRight = 0.8F;
this.colorGreenTopLeft = this.colorGreenBottomLeft = this.colorGreenBottomRight = this.colorGreenTopRight = 0.8F;
@@ -1934,8 +2047,8 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
CustomOreBlockRenderer.renderFaceZPos(aWorld, aRenderer, block, xPos, yPos, zPos, aTextures);
RenderBlocks.getInstance();
- if (RenderBlocks.fancyGrass && iicon.getIconName().equals("grass_side")
- && !this.hasOverrideBlockTexture()) {
+ if (RenderBlocks.fancyGrass && iicon.getIconName()
+ .equals("grass_side") && !this.hasOverrideBlockTexture()) {
this.colorRedTopLeft *= R;
this.colorRedBottomLeft *= R;
this.colorRedBottomRight *= R;
@@ -1955,30 +2068,38 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
}
if (RenderBlocks.getInstance().renderAllFaces
- || block.shouldSideBeRendered(blockAccess, xPos - 1, yPos, zPos, 4)) {
+ || block.shouldSideBeRendered(blockAccess, xPos - 1, yPos, zPos, 4)) {
if (this.renderMinX <= 0.0D) {
--xPos;
}
- this.aoLightValueScratchXYNN = blockAccess.getBlock(xPos, yPos - 1, zPos).getAmbientOcclusionLightValue();
- this.aoLightValueScratchXZNN = blockAccess.getBlock(xPos, yPos, zPos - 1).getAmbientOcclusionLightValue();
- this.aoLightValueScratchXZNP = blockAccess.getBlock(xPos, yPos, zPos + 1).getAmbientOcclusionLightValue();
- this.aoLightValueScratchXYNP = blockAccess.getBlock(xPos, yPos + 1, zPos).getAmbientOcclusionLightValue();
+ this.aoLightValueScratchXYNN = blockAccess.getBlock(xPos, yPos - 1, zPos)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchXZNN = blockAccess.getBlock(xPos, yPos, zPos - 1)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchXZNP = blockAccess.getBlock(xPos, yPos, zPos + 1)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchXYNP = blockAccess.getBlock(xPos, yPos + 1, zPos)
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYNN = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos - 1, zPos);
this.aoBrightnessXZNN = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos, zPos - 1);
this.aoBrightnessXZNP = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos, zPos + 1);
this.aoBrightnessXYNP = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos + 1, zPos);
- flag2 = blockAccess.getBlock(xPos - 1, yPos + 1, zPos).getCanBlockGrass();
- flag3 = blockAccess.getBlock(xPos - 1, yPos - 1, zPos).getCanBlockGrass();
- flag4 = blockAccess.getBlock(xPos - 1, yPos, zPos - 1).getCanBlockGrass();
- flag5 = blockAccess.getBlock(xPos - 1, yPos, zPos + 1).getCanBlockGrass();
+ flag2 = blockAccess.getBlock(xPos - 1, yPos + 1, zPos)
+ .getCanBlockGrass();
+ flag3 = blockAccess.getBlock(xPos - 1, yPos - 1, zPos)
+ .getCanBlockGrass();
+ flag4 = blockAccess.getBlock(xPos - 1, yPos, zPos - 1)
+ .getCanBlockGrass();
+ flag5 = blockAccess.getBlock(xPos - 1, yPos, zPos + 1)
+ .getCanBlockGrass();
if (!flag4 && !flag3) {
this.aoLightValueScratchXYZNNN = this.aoLightValueScratchXZNN;
this.aoBrightnessXYZNNN = this.aoBrightnessXZNN;
} else {
this.aoLightValueScratchXYZNNN = blockAccess.getBlock(xPos, yPos - 1, zPos - 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZNNN = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos - 1, zPos - 1);
}
@@ -1987,7 +2108,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZNNP = this.aoBrightnessXZNP;
} else {
this.aoLightValueScratchXYZNNP = blockAccess.getBlock(xPos, yPos - 1, zPos + 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZNNP = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos - 1, zPos + 1);
}
@@ -1996,7 +2117,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZNPN = this.aoBrightnessXZNN;
} else {
this.aoLightValueScratchXYZNPN = blockAccess.getBlock(xPos, yPos + 1, zPos - 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZNPN = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos + 1, zPos - 1);
}
@@ -2005,7 +2126,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZNPP = this.aoBrightnessXZNP;
} else {
this.aoLightValueScratchXYZNPP = blockAccess.getBlock(xPos, yPos + 1, zPos + 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZNPP = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos + 1, zPos + 1);
}
@@ -2015,44 +2136,47 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
i1 = l;
- if (this.renderMinX <= 0.0D || !blockAccess.getBlock(xPos - 1, yPos, zPos).isOpaqueCube()) {
+ if (this.renderMinX <= 0.0D || !blockAccess.getBlock(xPos - 1, yPos, zPos)
+ .isOpaqueCube()) {
i1 = block.getMixedBrightnessForBlock(blockAccess, xPos - 1, yPos, zPos);
}
- f7 = blockAccess.getBlock(xPos - 1, yPos, zPos).getAmbientOcclusionLightValue();
+ f7 = blockAccess.getBlock(xPos - 1, yPos, zPos)
+ .getAmbientOcclusionLightValue();
f8 = (this.aoLightValueScratchXYNN + this.aoLightValueScratchXYZNNP + f7 + this.aoLightValueScratchXZNP)
- / 4.0F;
+ / 4.0F;
f9 = (f7 + this.aoLightValueScratchXZNP + this.aoLightValueScratchXYNP + this.aoLightValueScratchXYZNPP)
- / 4.0F;
+ / 4.0F;
f10 = (this.aoLightValueScratchXZNN + f7 + this.aoLightValueScratchXYZNPN + this.aoLightValueScratchXYNP)
- / 4.0F;
+ / 4.0F;
f11 = (this.aoLightValueScratchXYZNNN + this.aoLightValueScratchXYNN + this.aoLightValueScratchXZNN + f7)
- / 4.0F;
+ / 4.0F;
f3 = (float) ((double) f9 * this.renderMaxY * this.renderMaxZ
- + (double) f10 * this.renderMaxY * (1.0D - this.renderMaxZ)
- + (double) f11 * (1.0D - this.renderMaxY) * (1.0D - this.renderMaxZ)
- + (double) f8 * (1.0D - this.renderMaxY) * this.renderMaxZ);
+ + (double) f10 * this.renderMaxY * (1.0D - this.renderMaxZ)
+ + (double) f11 * (1.0D - this.renderMaxY) * (1.0D - this.renderMaxZ)
+ + (double) f8 * (1.0D - this.renderMaxY) * this.renderMaxZ);
f4 = (float) ((double) f9 * this.renderMaxY * this.renderMinZ
- + (double) f10 * this.renderMaxY * (1.0D - this.renderMinZ)
- + (double) f11 * (1.0D - this.renderMaxY) * (1.0D - this.renderMinZ)
- + (double) f8 * (1.0D - this.renderMaxY) * this.renderMinZ);
+ + (double) f10 * this.renderMaxY * (1.0D - this.renderMinZ)
+ + (double) f11 * (1.0D - this.renderMaxY) * (1.0D - this.renderMinZ)
+ + (double) f8 * (1.0D - this.renderMaxY) * this.renderMinZ);
f5 = (float) ((double) f9 * this.renderMinY * this.renderMinZ
- + (double) f10 * this.renderMinY * (1.0D - this.renderMinZ)
- + (double) f11 * (1.0D - this.renderMinY) * (1.0D - this.renderMinZ)
- + (double) f8 * (1.0D - this.renderMinY) * this.renderMinZ);
+ + (double) f10 * this.renderMinY * (1.0D - this.renderMinZ)
+ + (double) f11 * (1.0D - this.renderMinY) * (1.0D - this.renderMinZ)
+ + (double) f8 * (1.0D - this.renderMinY) * this.renderMinZ);
f6 = (float) ((double) f9 * this.renderMinY * this.renderMaxZ
- + (double) f10 * this.renderMinY * (1.0D - this.renderMaxZ)
- + (double) f11 * (1.0D - this.renderMinY) * (1.0D - this.renderMaxZ)
- + (double) f8 * (1.0D - this.renderMinY) * this.renderMaxZ);
+ + (double) f10 * this.renderMinY * (1.0D - this.renderMaxZ)
+ + (double) f11 * (1.0D - this.renderMinY) * (1.0D - this.renderMaxZ)
+ + (double) f8 * (1.0D - this.renderMinY) * this.renderMaxZ);
j1 = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXYNN, this.aoBrightnessXYZNNP, this.aoBrightnessXZNP, i1);
+ .getAoBrightness(this.aoBrightnessXYNN, this.aoBrightnessXYZNNP, this.aoBrightnessXZNP, i1);
k1 = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXZNP, this.aoBrightnessXYNP, this.aoBrightnessXYZNPP, i1);
+ .getAoBrightness(this.aoBrightnessXZNP, this.aoBrightnessXYNP, this.aoBrightnessXYZNPP, i1);
l1 = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXZNN, this.aoBrightnessXYZNPN, this.aoBrightnessXYNP, i1);
+ .getAoBrightness(this.aoBrightnessXZNN, this.aoBrightnessXYZNPN, this.aoBrightnessXYNP, i1);
i2 = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXYZNNN, this.aoBrightnessXYNN, this.aoBrightnessXZNN, i1);
- this.brightnessTopLeft = RenderBlocks.getInstance().mixAoBrightness(
+ .getAoBrightness(this.aoBrightnessXYZNNN, this.aoBrightnessXYNN, this.aoBrightnessXZNN, i1);
+ this.brightnessTopLeft = RenderBlocks.getInstance()
+ .mixAoBrightness(
k1,
l1,
i2,
@@ -2061,7 +2185,8 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.renderMaxY * (1.0D - this.renderMaxZ),
(1.0D - this.renderMaxY) * (1.0D - this.renderMaxZ),
(1.0D - this.renderMaxY) * this.renderMaxZ);
- this.brightnessBottomLeft = RenderBlocks.getInstance().mixAoBrightness(
+ this.brightnessBottomLeft = RenderBlocks.getInstance()
+ .mixAoBrightness(
k1,
l1,
i2,
@@ -2070,7 +2195,8 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.renderMaxY * (1.0D - this.renderMinZ),
(1.0D - this.renderMaxY) * (1.0D - this.renderMinZ),
(1.0D - this.renderMaxY) * this.renderMinZ);
- this.brightnessBottomRight = RenderBlocks.getInstance().mixAoBrightness(
+ this.brightnessBottomRight = RenderBlocks.getInstance()
+ .mixAoBrightness(
k1,
l1,
i2,
@@ -2079,7 +2205,8 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.renderMinY * (1.0D - this.renderMinZ),
(1.0D - this.renderMinY) * (1.0D - this.renderMinZ),
(1.0D - this.renderMinY) * this.renderMinZ);
- this.brightnessTopRight = RenderBlocks.getInstance().mixAoBrightness(
+ this.brightnessTopRight = RenderBlocks.getInstance()
+ .mixAoBrightness(
k1,
l1,
i2,
@@ -2091,11 +2218,11 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
if (flag1) {
this.colorRedTopLeft = this.colorRedBottomLeft = this.colorRedBottomRight = this.colorRedTopRight = R
- * 0.6F;
+ * 0.6F;
this.colorGreenTopLeft = this.colorGreenBottomLeft = this.colorGreenBottomRight = this.colorGreenTopRight = G
- * 0.6F;
+ * 0.6F;
this.colorBlueTopLeft = this.colorBlueBottomLeft = this.colorBlueBottomRight = this.colorBlueTopRight = B
- * 0.6F;
+ * 0.6F;
} else {
this.colorRedTopLeft = this.colorRedBottomLeft = this.colorRedBottomRight = this.colorRedTopRight = 0.6F;
this.colorGreenTopLeft = this.colorGreenBottomLeft = this.colorGreenBottomRight = this.colorGreenTopRight = 0.6F;
@@ -2118,8 +2245,8 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
CustomOreBlockRenderer.renderFaceXNeg(aWorld, aRenderer, block, xPos, yPos, zPos, aTextures);
RenderBlocks.getInstance();
- if (RenderBlocks.fancyGrass && iicon.getIconName().equals("grass_side")
- && !this.hasOverrideBlockTexture()) {
+ if (RenderBlocks.fancyGrass && iicon.getIconName()
+ .equals("grass_side") && !this.hasOverrideBlockTexture()) {
this.colorRedTopLeft *= R;
this.colorRedBottomLeft *= R;
this.colorRedBottomRight *= R;
@@ -2139,30 +2266,38 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
}
if (RenderBlocks.getInstance().renderAllFaces
- || block.shouldSideBeRendered(blockAccess, xPos + 1, yPos, zPos, 5)) {
+ || block.shouldSideBeRendered(blockAccess, xPos + 1, yPos, zPos, 5)) {
if (this.renderMaxX >= 1.0D) {
++xPos;
}
- this.aoLightValueScratchXYPN = blockAccess.getBlock(xPos, yPos - 1, zPos).getAmbientOcclusionLightValue();
- this.aoLightValueScratchXZPN = blockAccess.getBlock(xPos, yPos, zPos - 1).getAmbientOcclusionLightValue();
- this.aoLightValueScratchXZPP = blockAccess.getBlock(xPos, yPos, zPos + 1).getAmbientOcclusionLightValue();
- this.aoLightValueScratchXYPP = blockAccess.getBlock(xPos, yPos + 1, zPos).getAmbientOcclusionLightValue();
+ this.aoLightValueScratchXYPN = blockAccess.getBlock(xPos, yPos - 1, zPos)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchXZPN = blockAccess.getBlock(xPos, yPos, zPos - 1)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchXZPP = blockAccess.getBlock(xPos, yPos, zPos + 1)
+ .getAmbientOcclusionLightValue();
+ this.aoLightValueScratchXYPP = blockAccess.getBlock(xPos, yPos + 1, zPos)
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYPN = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos - 1, zPos);
this.aoBrightnessXZPN = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos, zPos - 1);
this.aoBrightnessXZPP = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos, zPos + 1);
this.aoBrightnessXYPP = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos + 1, zPos);
- flag2 = blockAccess.getBlock(xPos + 1, yPos + 1, zPos).getCanBlockGrass();
- flag3 = blockAccess.getBlock(xPos + 1, yPos - 1, zPos).getCanBlockGrass();
- flag4 = blockAccess.getBlock(xPos + 1, yPos, zPos + 1).getCanBlockGrass();
- flag5 = blockAccess.getBlock(xPos + 1, yPos, zPos - 1).getCanBlockGrass();
+ flag2 = blockAccess.getBlock(xPos + 1, yPos + 1, zPos)
+ .getCanBlockGrass();
+ flag3 = blockAccess.getBlock(xPos + 1, yPos - 1, zPos)
+ .getCanBlockGrass();
+ flag4 = blockAccess.getBlock(xPos + 1, yPos, zPos + 1)
+ .getCanBlockGrass();
+ flag5 = blockAccess.getBlock(xPos + 1, yPos, zPos - 1)
+ .getCanBlockGrass();
if (!flag3 && !flag5) {
this.aoLightValueScratchXYZPNN = this.aoLightValueScratchXZPN;
this.aoBrightnessXYZPNN = this.aoBrightnessXZPN;
} else {
this.aoLightValueScratchXYZPNN = blockAccess.getBlock(xPos, yPos - 1, zPos - 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZPNN = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos - 1, zPos - 1);
}
@@ -2171,7 +2306,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZPNP = this.aoBrightnessXZPP;
} else {
this.aoLightValueScratchXYZPNP = blockAccess.getBlock(xPos, yPos - 1, zPos + 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZPNP = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos - 1, zPos + 1);
}
@@ -2180,7 +2315,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZPPN = this.aoBrightnessXZPN;
} else {
this.aoLightValueScratchXYZPPN = blockAccess.getBlock(xPos, yPos + 1, zPos - 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZPPN = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos + 1, zPos - 1);
}
@@ -2189,7 +2324,7 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
this.aoBrightnessXYZPPP = this.aoBrightnessXZPP;
} else {
this.aoLightValueScratchXYZPPP = blockAccess.getBlock(xPos, yPos + 1, zPos + 1)
- .getAmbientOcclusionLightValue();
+ .getAmbientOcclusionLightValue();
this.aoBrightnessXYZPPP = block.getMixedBrightnessForBlock(blockAccess, xPos, yPos + 1, zPos + 1);
}
@@ -2199,44 +2334,47 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
i1 = l;
- if (this.renderMaxX >= 1.0D || !blockAccess.getBlock(xPos + 1, yPos, zPos).isOpaqueCube()) {
+ if (this.renderMaxX >= 1.0D || !blockAccess.getBlock(xPos + 1, yPos, zPos)
+ .isOpaqueCube()) {
i1 = block.getMixedBrightnessForBlock(blockAccess, xPos + 1, yPos, zPos);
}
- f7 = blockAccess.getBlock(xPos + 1, yPos, zPos).getAmbientOcclusionLightValue();
+ f7 = blockAccess.getBlock(xPos + 1, yPos, zPos)
+ .getAmbientOcclusionLightValue();
f8 = (this.aoLightValueScratchXYPN + this.aoLightValueScratchXYZPNP + f7 + this.aoLightValueScratchXZPP)
- / 4.0F;
+ / 4.0F;
f9 = (this.aoLightValueScratchXYZPNN + this.aoLightValueScratchXYPN + this.aoLightValueScratchXZPN + f7)
- / 4.0F;
+ / 4.0F;
f10 = (this.aoLightValueScratchXZPN + f7 + this.aoLightValueScratchXYZPPN + this.aoLightValueScratchXYPP)
- / 4.0F;
+ / 4.0F;
f11 = (f7 + this.aoLightValueScratchXZPP + this.aoLightValueScratchXYPP + this.aoLightValueScratchXYZPPP)
- / 4.0F;
+ / 4.0F;
f3 = (float) ((double) f8 * (1.0D - this.renderMinY) * this.renderMaxZ
- + (double) f9 * (1.0D - this.renderMinY) * (1.0D - this.renderMaxZ)
- + (double) f10 * this.renderMinY * (1.0D - this.renderMaxZ)
- + (double) f11 * this.renderMinY * this.renderMaxZ);
+ + (double) f9 * (1.0D - this.renderMinY) * (1.0D - this.renderMaxZ)
+ + (double) f10 * this.renderMinY * (1.0D - this.renderMaxZ)
+ + (double) f11 * this.renderMinY * this.renderMaxZ);
f4 = (float) ((double) f8 * (1.0D - this.renderMinY) * this.renderMinZ
- + (double) f9 * (1.0D - this.renderMinY) * (1.0D - this.renderMinZ)
- + (double) f10 * this.renderMinY * (1.0D - this.renderMinZ)
- + (double) f11 * this.renderMinY * this.renderMinZ);
+ + (double) f9 * (1.0D - this.renderMinY) * (1.0D - this.renderMinZ)
+ + (double) f10 * this.renderMinY * (1.0D - this.renderMinZ)
+ + (double) f11 * this.renderMinY * this.renderMinZ);
f5 = (float) ((double) f8 * (1.0D - this.renderMaxY) * this.renderMinZ
- + (double) f9 * (1.0D - this.renderMaxY) * (1.0D - this.renderMinZ)
- + (double) f10 * this.renderMaxY * (1.0D - this.renderMinZ)
- + (double) f11 * this.renderMaxY * this.renderMinZ);
+ + (double) f9 * (1.0D - this.renderMaxY) * (1.0D - this.renderMinZ)
+ + (double) f10 * this.renderMaxY * (1.0D - this.renderMinZ)
+ + (double) f11 * this.renderMaxY * this.renderMinZ);
f6 = (float) ((double) f8 * (1.0D - this.renderMaxY) * this.renderMaxZ
- + (double) f9 * (1.0D - this.renderMaxY) * (1.0D - this.renderMaxZ)
- + (double) f10 * this.renderMaxY * (1.0D - this.renderMaxZ)
- + (double) f11 * this.renderMaxY * this.renderMaxZ);
+ + (double) f9 * (1.0D - this.renderMaxY) * (1.0D - this.renderMaxZ)
+ + (double) f10 * this.renderMaxY * (1.0D - this.renderMaxZ)
+ + (double) f11 * this.renderMaxY * this.renderMaxZ);
j1 = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXYPN, this.aoBrightnessXYZPNP, this.aoBrightnessXZPP, i1);
+ .getAoBrightness(this.aoBrightnessXYPN, this.aoBrightnessXYZPNP, this.aoBrightnessXZPP, i1);
k1 = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXZPP, this.aoBrightnessXYPP, this.aoBrightnessXYZPPP, i1);
+ .getAoBrightness(this.aoBrightnessXZPP, this.aoBrightnessXYPP, this.aoBrightnessXYZPPP, i1);
l1 = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXZPN, this.aoBrightnessXYZPPN, this.aoBrightnessXYPP, i1);
+ .getAoBrightness(this.aoBrightnessXZPN, this.aoBrightnessXYZPPN, this.aoBrightnessXYPP, i1);
i2 = RenderBlocks.getInstance()
- .getAoBrightness(this.aoBrightnessXYZPNN, this.aoBrightnessXYPN, this.aoBrightnessXZPN, i1);
- this.brightnessTopLeft = RenderBlocks.getInstance().mixAoBrightness(
+ .getAoBrightness(this.aoBrightnessXYZPNN, this.aoBrightnessXYPN, this.aoBrightnessXZPN, i1);
+ this.brightnessTopLeft = RenderBlocks.getInstance()
+ .mixAoBrightness(
j1,
i2,
l1,
@@ -2245,7 +2383,8 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
(1.0D - this.renderMinY) * (1.0D - this.renderMaxZ),
this.renderMinY * (1.0D - this.renderMaxZ),
this.renderMinY * this.renderMaxZ);
- this.brightnessBottomLeft = RenderBlocks.getInstance().mixAoBrightness(
+ this.brightnessBottomLeft = RenderBlocks.getInstance()
+ .mixAoBrightness(
j1,
i2,
l1,
@@ -2254,7 +2393,8 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
(1.0D - this.renderMinY) * (1.0D - this.renderMinZ),
this.renderMinY * (1.0D - this.renderMinZ),
this.renderMinY * this.renderMinZ);
- this.brightnessBottomRight = RenderBlocks.getInstance().mixAoBrightness(
+ this.brightnessBottomRight = RenderBlocks.getInstance()
+ .mixAoBrightness(
j1,
i2,
l1,
@@ -2263,7 +2403,8 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
(1.0D - this.renderMaxY) * (1.0D - this.renderMinZ),
this.renderMaxY * (1.0D - this.renderMinZ),
this.renderMaxY * this.renderMinZ);
- this.brightnessTopRight = RenderBlocks.getInstance().mixAoBrightness(
+ this.brightnessTopRight = RenderBlocks.getInstance()
+ .mixAoBrightness(
j1,
i2,
l1,
@@ -2275,11 +2416,11 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
if (flag1) {
this.colorRedTopLeft = this.colorRedBottomLeft = this.colorRedBottomRight = this.colorRedTopRight = R
- * 0.6F;
+ * 0.6F;
this.colorGreenTopLeft = this.colorGreenBottomLeft = this.colorGreenBottomRight = this.colorGreenTopRight = G
- * 0.6F;
+ * 0.6F;
this.colorBlueTopLeft = this.colorBlueBottomLeft = this.colorBlueBottomRight = this.colorBlueTopRight = B
- * 0.6F;
+ * 0.6F;
} else {
this.colorRedTopLeft = this.colorRedBottomLeft = this.colorRedBottomRight = this.colorRedTopRight = 0.6F;
this.colorGreenTopLeft = this.colorGreenBottomLeft = this.colorGreenBottomRight = this.colorGreenTopRight = 0.6F;
@@ -2302,8 +2443,8 @@ public class CustomOreBlockRenderer implements ISimpleBlockRenderingHandler {
CustomOreBlockRenderer.renderFaceXPos(aWorld, aRenderer, block, xPos, yPos, zPos, aTextures);
RenderBlocks.getInstance();
- if (RenderBlocks.fancyGrass && iicon.getIconName().equals("grass_side")
- && !this.hasOverrideBlockTexture()) {
+ if (RenderBlocks.fancyGrass && iicon.getIconName()
+ .equals("grass_side") && !this.hasOverrideBlockTexture()) {
this.colorRedTopLeft *= R;
this.colorRedBottomLeft *= R;
this.colorRedBottomRight *= R;
diff --git a/src/main/java/gtPlusPlus/core/client/renderer/RenderDecayChest.java b/src/main/java/gtPlusPlus/core/client/renderer/RenderDecayChest.java
index fefa6741da..c691bac144 100644
--- a/src/main/java/gtPlusPlus/core/client/renderer/RenderDecayChest.java
+++ b/src/main/java/gtPlusPlus/core/client/renderer/RenderDecayChest.java
@@ -21,8 +21,8 @@ import gtPlusPlus.core.tileentities.general.TileEntityDecayablesChest;
public class RenderDecayChest extends TileEntitySpecialRenderer {
private static final ResourceLocation mChestTexture = new ResourceLocation(
- GTPlusPlus.ID,
- "textures/blocks/TileEntities/DecayablesChest_full.png");
+ GTPlusPlus.ID,
+ "textures/blocks/TileEntities/DecayablesChest_full.png");
private ModelDecayChest mChestModel = new ModelDecayChest();
public static RenderDecayChest INSTANCE;
@@ -35,7 +35,7 @@ public class RenderDecayChest extends TileEntitySpecialRenderer {
}
public void renderTileEntityAt(TileEntityDecayablesChest p_147500_1_, double p_147500_2_, double p_147500_4_,
- double p_147500_6_, float p_147500_8_) {
+ double p_147500_6_, float p_147500_8_) {
int i = 0;
@@ -81,12 +81,12 @@ public class RenderDecayChest extends TileEntitySpecialRenderer {
@Override
public void renderTileEntityAt(TileEntity p_147500_1_, double p_147500_2_, double p_147500_4_, double p_147500_6_,
- float p_147500_8_) {
+ float p_147500_8_) {
this.renderTileEntityAt(
- (TileEntityDecayablesChest) p_147500_1_,
- p_147500_2_,
- p_147500_4_,
- p_147500_6_,
- p_147500_8_);
+ (TileEntityDecayablesChest) p_147500_1_,
+ p_147500_2_,
+ p_147500_4_,
+ p_147500_6_,
+ p_147500_8_);
}
}
diff --git a/src/main/java/gtPlusPlus/core/client/renderer/RenderMiningExplosivesPrimed.java b/src/main/java/gtPlusPlus/core/client/renderer/RenderMiningExplosivesPrimed.java
index d9e2cc7ec6..259352367d 100644
--- a/src/main/java/gtPlusPlus/core/client/renderer/RenderMiningExplosivesPrimed.java
+++ b/src/main/java/gtPlusPlus/core/client/renderer/RenderMiningExplosivesPrimed.java
@@ -31,7 +31,7 @@ public class RenderMiningExplosivesPrimed extends RenderTNTPrimed {
* double d2, float f, float f1). But JAD is pre 1.5 so doesn't do that.
*/
public void doRender(final EntityPrimedMiningExplosive entity, final double p_76986_2_, final double p_76986_4_,
- final double p_76986_6_, final float p_76986_8_, final float p_76986_9_) {
+ final double p_76986_6_, final float p_76986_8_, final float p_76986_9_) {
Logger.WARNING("Rendering Mining Explosion. 2");
GL11.glPushMatrix();
GL11.glTranslatef((float) p_76986_2_, (float) p_76986_4_, (float) p_76986_6_);
@@ -98,14 +98,14 @@ public class RenderMiningExplosivesPrimed extends RenderTNTPrimed {
*/
@Override
public void doRender(final Entity p_76986_1_, final double p_76986_2_, final double p_76986_4_,
- final double p_76986_6_, final float p_76986_8_, final float p_76986_9_) {
+ final double p_76986_6_, final float p_76986_8_, final float p_76986_9_) {
Logger.WARNING("Rendering Mining Explosion. 3");
this.doRender(
- (EntityPrimedMiningExplosive) p_76986_1_,
- p_76986_2_,
- p_76986_4_,
- p_76986_6_,
- p_76986_8_,
- p_76986_9_);
+ (EntityPrimedMiningExplosive) p_76986_1_,
+ p_76986_2_,
+ p_76986_4_,
+ p_76986_6_,
+ p_76986_8_,
+ p_76986_9_);
}
}
diff --git a/src/main/java/gtPlusPlus/core/client/renderer/RenderSickBlaze.java b/src/main/java/gtPlusPlus/core/client/renderer/RenderSickBlaze.java
index 28e4dd4bc2..c1d3927416 100644
--- a/src/main/java/gtPlusPlus/core/client/renderer/RenderSickBlaze.java
+++ b/src/main/java/gtPlusPlus/core/client/renderer/RenderSickBlaze.java
@@ -17,7 +17,7 @@ import gtPlusPlus.core.entity.monster.EntitySickBlaze;
public class RenderSickBlaze extends RenderLiving {
private static final ResourceLocation blazeTextures = new ResourceLocation(
- GTPlusPlus.ID + ":" + "textures/entity/sickBlaze.png");
+ GTPlusPlus.ID + ":" + "textures/entity/sickBlaze.png");
private int field_77068_a;
public RenderSickBlaze() {
@@ -32,7 +32,7 @@ public class RenderSickBlaze extends RenderLiving {
* double d2, float f, float f1). But JAD is pre 1.5 so doesn't do that.
*/
public void doRender(EntitySickBlaze p_76986_1_, double p_76986_2_, double p_76986_4_, double p_76986_6_,
- float p_76986_8_, float p_76986_9_) {
+ float p_76986_8_, float p_76986_9_) {
int i = ((ModelSickBlaze) this.mainModel).func_78104_a();
if (i != this.field_77068_a) {
@@ -58,7 +58,7 @@ public class RenderSickBlaze extends RenderLiving {
*/
@Override
public void doRender(EntityLiving p_76986_1_, double p_76986_2_, double p_76986_4_, double p_76986_6_,
- float p_76986_8_, float p_76986_9_) {
+ float p_76986_8_, float p_76986_9_) {
this.doRender((EntitySickBlaze) p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
}
@@ -70,7 +70,7 @@ public class RenderSickBlaze extends RenderLiving {
*/
@Override
public void doRender(EntityLivingBase p_76986_1_, double p_76986_2_, double p_76986_4_, double p_76986_6_,
- float p_76986_8_, float p_76986_9_) {
+ float p_76986_8_, float p_76986_9_) {
this.doRender((EntitySickBlaze) p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
}
@@ -90,7 +90,7 @@ public class RenderSickBlaze extends RenderLiving {
*/
@Override
public void doRender(Entity p_76986_1_, double p_76986_2_, double p_76986_4_, double p_76986_6_, float p_76986_8_,
- float p_76986_9_) {
+ float p_76986_9_) {
this.doRender((EntitySickBlaze) p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
}
}
diff --git a/src/main/java/gtPlusPlus/core/client/renderer/RenderStaballoyConstruct.java b/src/main/java/gtPlusPlus/core/client/renderer/RenderStaballoyConstruct.java
index 3ed25954d1..f2ebe84d4d 100644
--- a/src/main/java/gtPlusPlus/core/client/renderer/RenderStaballoyConstruct.java
+++ b/src/main/java/gtPlusPlus/core/client/renderer/RenderStaballoyConstruct.java
@@ -23,7 +23,7 @@ import gtPlusPlus.core.entity.monster.EntityStaballoyConstruct;
public class RenderStaballoyConstruct extends RenderLiving {
private static final ResourceLocation staballoyGolemTextures = new ResourceLocation(
- GTPlusPlus.ID + ":" + "textures/entity/golemStaballoy.png");
+ GTPlusPlus.ID + ":" + "textures/entity/golemStaballoy.png");
/** Staballoy Golem's Model. */
private final ModelStaballoyConstruct staballoyGolemModel;
@@ -39,7 +39,7 @@ public class RenderStaballoyConstruct extends RenderLiving {
* double d2, float f, float f1). But JAD is pre 1.5 so doesn't do that.
*/
public void doRender(EntityStaballoyConstruct p_76986_1_, double p_76986_2_, double p_76986_4_, double p_76986_6_,
- float p_76986_8_, float p_76986_9_) {
+ float p_76986_8_, float p_76986_9_) {
super.doRender(p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
}
@@ -51,7 +51,7 @@ public class RenderStaballoyConstruct extends RenderLiving {
}
protected void rotateCorpse(EntityStaballoyConstruct p_77043_1_, float p_77043_2_, float p_77043_3_,
- float p_77043_4_) {
+ float p_77043_4_) {
super.rotateCorpse(p_77043_1_, p_77043_2_, p_77043_3_, p_77043_4_);
if (p_77043_1_.limbSwingAmount >= 0.01D) {
@@ -69,10 +69,10 @@ public class RenderStaballoyConstruct extends RenderLiving {
GL11.glEnable(GL12.GL_RESCALE_NORMAL);
GL11.glPushMatrix();
GL11.glRotatef(
- 5.0F + 180.0F * this.staballoyGolemModel.ironGolemRightArm.rotateAngleX / (float) Math.PI,
- 1.0F,
- 0.0F,
- 0.0F);
+ 5.0F + 180.0F * this.staballoyGolemModel.ironGolemRightArm.rotateAngleX / (float) Math.PI,
+ 1.0F,
+ 0.0F,
+ 0.0F);
GL11.glTranslatef(-0.6875F, 1.25F, -0.9375F);
GL11.glRotatef(90.0F, 1.0F, 0.0F, 0.0F);
float f1 = 0.8F;
@@ -97,14 +97,14 @@ public class RenderStaballoyConstruct extends RenderLiving {
*/
@Override
public void doRender(EntityLiving p_76986_1_, double p_76986_2_, double p_76986_4_, double p_76986_6_,
- float p_76986_8_, float p_76986_9_) {
+ float p_76986_8_, float p_76986_9_) {
this.doRender(
- (EntityStaballoyConstruct) p_76986_1_,
- p_76986_2_,
- p_76986_4_,
- p_76986_6_,
- p_76986_8_,
- p_76986_9_);
+ (EntityStaballoyConstruct) p_76986_1_,
+ p_76986_2_,
+ p_76986_4_,
+ p_76986_6_,
+ p_76986_8_,
+ p_76986_9_);
}
@Override
@@ -125,14 +125,14 @@ public class RenderStaballoyConstruct extends RenderLiving {
*/
@Override
public void doRender(EntityLivingBase p_76986_1_, double p_76986_2_, double p_76986_4_, double p_76986_6_,
- float p_76986_8_, float p_76986_9_) {
+ float p_76986_8_, float p_76986_9_) {
this.doRender(
- (EntityStaballoyConstruct) p_76986_1_,
- p_76986_2_,
- p_76986_4_,
- p_76986_6_,
- p_76986_8_,
- p_76986_9_);
+ (EntityStaballoyConstruct) p_76986_1_,
+ p_76986_2_,
+ p_76986_4_,
+ p_76986_6_,
+ p_76986_8_,
+ p_76986_9_);
}
/**
@@ -151,13 +151,13 @@ public class RenderStaballoyConstruct extends RenderLiving {
*/
@Override
public void doRender(Entity p_76986_1_, double p_76986_2_, double p_76986_4_, double p_76986_6_, float p_76986_8_,
- float p_76986_9_) {
+ float p_76986_9_) {
this.doRender(
- (EntityStaballoyConstruct) p_76986_1_,
- p_76986_2_,
- p_76986_4_,
- p_76986_6_,
- p_76986_8_,
- p_76986_9_);
+ (EntityStaballoyConstruct) p_76986_1_,
+ p_76986_2_,
+ p_76986_4_,
+ p_76986_6_,
+ p_76986_8_,
+ p_76986_9_);
}
}
diff --git a/src/main/java/gtPlusPlus/core/client/renderer/RenderToxinball.java b/src/main/java/gtPlusPlus/core/client/renderer/RenderToxinball.java
index 7d1b448cdc..2c0ed7f562 100644
--- a/src/main/java/gtPlusPlus/core/client/renderer/RenderToxinball.java
+++ b/src/main/java/gtPlusPlus/core/client/renderer/RenderToxinball.java
@@ -31,7 +31,7 @@ public class RenderToxinball extends Render {
* double d2, float f, float f1). But JAD is pre 1.5 so doesn't do that.
*/
public void doRender(EntityToxinball entity, double p_76986_2_, double p_76986_4_, double p_76986_6_,
- float p_76986_8_, float p_76986_9_) {
+ float p_76986_8_, float p_76986_9_) {
GL11.glPushMatrix();
this.bindEntityTexture(entity);
GL11.glTranslatef((float) p_76986_2_, (float) p_76986_4_, (float) p_76986_6_);
@@ -83,7 +83,7 @@ public class RenderToxinball extends Render {
*/
@Override
public void doRender(Entity entity, double p_76986_2_, double p_76986_4_, double p_76986_6_, float p_76986_8_,
- float p_76986_9_) {
+ float p_76986_9_) {
this.doRender((EntityToxinball) entity, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
}
}
diff --git a/src/main/java/gtPlusPlus/core/client/renderer/particle/EntityDropParticleFX.java b/src/main/java/gtPlusPlus/core/client/renderer/particle/EntityDropParticleFX.java
index f24b339483..58b135f3fb 100644
--- a/src/main/java/gtPlusPlus/core/client/renderer/particle/EntityDropParticleFX.java
+++ b/src/main/java/gtPlusPlus/core/client/renderer/particle/EntityDropParticleFX.java
@@ -15,13 +15,13 @@ public class EntityDropParticleFX extends EntityFX {
private int bobTimer;
public EntityDropParticleFX(World world, double x, double y, double z, float particleRed, float particleGreen,
- float particleBlue) {
+ float particleBlue) {
this(world, x, y, z, particleRed, particleGreen, particleBlue, -1);
}
public EntityDropParticleFX(World world, double x, double y, double z, float particleRed, float particleGreen,
- float particleBlue, int gravityMod) {
+ float particleBlue, int gravityMod) {
super(world, x, y, z, 0.0D, 0.0D, 0.0D);
this.motionX = this.motionY = this.motionZ = 0.0D;
@@ -70,32 +70,32 @@ public class EntityDropParticleFX extends EntityFX {
}
if (this.particleGravity > 0) {
Material material = this.worldObj
- .getBlock(MathHelper.floor(this.posX), MathHelper.floor(this.posY), MathHelper.floor(this.posZ))
- .getMaterial();
+ .getBlock(MathHelper.floor(this.posX), MathHelper.floor(this.posY), MathHelper.floor(this.posZ))
+ .getMaterial();
if (material.isLiquid() || material.isSolid()) {
double d0 = MathHelper.floor(this.posY) + 1
- - BlockLiquid.getLiquidHeightPercent(
- this.worldObj.getBlockMetadata(
- MathHelper.floor(this.posX),
- MathHelper.floor(this.posY),
- MathHelper.floor(this.posZ)));
+ - BlockLiquid.getLiquidHeightPercent(
+ this.worldObj.getBlockMetadata(
+ MathHelper.floor(this.posX),
+ MathHelper.floor(this.posY),
+ MathHelper.floor(this.posZ)));
if (this.posY < d0) {
this.setDead();
}
}
} else {
Material material = this.worldObj
- .getBlock(MathHelper.ceil(this.posX), MathHelper.ceil(this.posY), MathHelper.ceil(this.posZ))
- .getMaterial();
+ .getBlock(MathHelper.ceil(this.posX), MathHelper.ceil(this.posY), MathHelper.ceil(this.posZ))
+ .getMaterial();
if (material.isLiquid() || material.isSolid()) {
double d0 = MathHelper.ceil(this.posY) + 1
- - BlockLiquid.getLiquidHeightPercent(
- this.worldObj.getBlockMetadata(
- MathHelper.ceil(this.posX),
- MathHelper.ceil(this.posY),
- MathHelper.ceil(this.posZ)));
+ - BlockLiquid.getLiquidHeightPercent(
+ this.worldObj.getBlockMetadata(
+ MathHelper.ceil(this.posX),
+ MathHelper.ceil(this.posY),
+ MathHelper.ceil(this.posZ)));
if (this.posY > d0) {
this.setDead();
}
diff --git a/src/main/java/gtPlusPlus/core/commands/CommandEnableDebugWhileRunning.java b/src/main/java/gtPlusPlus/core/commands/CommandEnableDebugWhileRunning.java
index ad57019bce..1794951248 100644
--- a/src/main/java/gtPlusPlus/core/commands/CommandEnableDebugWhileRunning.java
+++ b/src/main/java/gtPlusPlus/core/commands/CommandEnableDebugWhileRunning.java
@@ -71,7 +71,8 @@ public class CommandEnableDebugWhileRunning implements ICommand {
int aMaxArgumentsAllowed = 2;
if ((argString == null || argString.length == 0 || argString.length > aMaxArgumentsAllowed)
- || argString[0].toLowerCase().equals("?")) {
+ || argString[0].toLowerCase()
+ .equals("?")) {
Logger.INFO("Listing commands and their uses.");
final EntityPlayer P = CommandUtils.getPlayer(S);
AsmConfig.disableAllLogging = !AsmConfig.disableAllLogging;
@@ -81,126 +82,137 @@ public class CommandEnableDebugWhileRunning implements ICommand {
PlayerUtils.messagePlayer(P, "hand - Lists information about held item.");
PlayerUtils.messagePlayer(P, "fuid xxx - Tries to find the fluid in the FluidRegistry.");
PlayerUtils.messagePlayer(
- P,
- "debug - Toggles GT++ Debug Mode. Only use when advised, may break everything. (OP)");
- } else if (argString[0].toLowerCase().equals("debug")) {
- Logger.INFO("Toggling Debug Mode.");
- final EntityPlayer P = CommandUtils.getPlayer(S);
- if (PlayerUtils.isPlayerOP(P)) {
- CORE_Preloader.DEBUG_MODE = !CORE_Preloader.DEBUG_MODE;
- PlayerUtils.messagePlayer(P, "Toggled GT++ Debug Mode - Enabled: " + CORE_Preloader.DEBUG_MODE);
- }
- } else if (argString[0].toLowerCase().equals("logging")) {
- Logger.INFO("Toggling Logging.");
- final EntityPlayer P = CommandUtils.getPlayer(S);
- AsmConfig.disableAllLogging = !AsmConfig.disableAllLogging;
- PlayerUtils.messagePlayer(P, "Toggled GT++ Logging - Enabled: " + (!AsmConfig.disableAllLogging));
- }
+ P,
+ "debug - Toggles GT++ Debug Mode. Only use when advised, may break everything. (OP)");
+ } else if (argString[0].toLowerCase()
+ .equals("debug")) {
+ Logger.INFO("Toggling Debug Mode.");
+ final EntityPlayer P = CommandUtils.getPlayer(S);
+ if (PlayerUtils.isPlayerOP(P)) {
+ CORE_Preloader.DEBUG_MODE = !CORE_Preloader.DEBUG_MODE;
+ PlayerUtils.messagePlayer(P, "Toggled GT++ Debug Mode - Enabled: " + CORE_Preloader.DEBUG_MODE);
+ }
+ } else if (argString[0].toLowerCase()
+ .equals("logging")) {
+ Logger.INFO("Toggling Logging.");
+ final EntityPlayer P = CommandUtils.getPlayer(S);
+ AsmConfig.disableAllLogging = !AsmConfig.disableAllLogging;
+ PlayerUtils.messagePlayer(P, "Toggled GT++ Logging - Enabled: " + (!AsmConfig.disableAllLogging));
+ }
/*
* else if (argString[0].toLowerCase().equals("test")) { ItemStack mSemiFluidgen =
* ItemUtils.simpleMetaStack("IC2:blockGenerator", 7, 1); final EntityPlayer P = CommandUtils.getPlayer(S);
* if(mSemiFluidgen != null) { PlayerUtils.messagePlayer(P, ItemUtils.getItemName(mSemiFluidgen)); } }
*/
- else if (argString[0].toLowerCase().equals("inv")) {
- final EntityPlayer P = CommandUtils.getPlayer(S);
- if (P != null && !P.worldObj.isRemote) {
- ItemStack[] aInv = P.inventory.mainInventory;
- for (ItemStack aItem : aInv) {
- if (aItem != null) {
- String aModID = GameRegistry.findUniqueIdentifierFor(aItem.getItem()).modId;
- String aRegistryName = GameRegistry.findUniqueIdentifierFor(aItem.getItem()).name;
- Logger.INFO(
+ else if (argString[0].toLowerCase()
+ .equals("inv")) {
+ final EntityPlayer P = CommandUtils.getPlayer(S);
+ if (P != null && !P.worldObj.isRemote) {
+ ItemStack[] aInv = P.inventory.mainInventory;
+ for (ItemStack aItem : aInv) {
+ if (aItem != null) {
+ String aModID = GameRegistry.findUniqueIdentifierFor(aItem.getItem()).modId;
+ String aRegistryName = GameRegistry.findUniqueIdentifierFor(aItem.getItem()).name;
+ Logger.INFO(
aModID + ":"
- + aRegistryName
- + ":"
- + aItem.getItemDamage()
- + " | "
- + aItem.getDisplayName());
+ + aRegistryName
+ + ":"
+ + aItem.getItemDamage()
+ + " | "
+ + aItem.getDisplayName());
+ }
}
+ PlayerUtils.messagePlayer(P, "Dumped Inventory.");
}
- PlayerUtils.messagePlayer(P, "Dumped Inventory.");
- }
- } else if (argString[0].toLowerCase().equals("hand")) {
- final EntityPlayer P = CommandUtils.getPlayer(S);
- if (P != null) {
- ItemStack aHeldItem = PlayerUtils.getItemStackInPlayersHand(P);
- if (aHeldItem != null) {
- String aItemDisplayName = ItemUtils.getItemName(aHeldItem);
- String aItemUnlocalName = ItemUtils.getUnlocalizedItemName(aHeldItem);
- String aNbtString = tryIterateNBTData(aHeldItem);
- AutoMap<String> aOreDictNames = new AutoMap<>();
+ } else if (argString[0].toLowerCase()
+ .equals("hand")) {
+ final EntityPlayer P = CommandUtils.getPlayer(S);
+ if (P != null) {
+ ItemStack aHeldItem = PlayerUtils.getItemStackInPlayersHand(P);
+ if (aHeldItem != null) {
+ String aItemDisplayName = ItemUtils.getItemName(aHeldItem);
+ String aItemUnlocalName = ItemUtils.getUnlocalizedItemName(aHeldItem);
+ String aNbtString = tryIterateNBTData(aHeldItem);
+ AutoMap<String> aOreDictNames = new AutoMap<>();
- int[] aOreIDs = OreDictionary.getOreIDs(aHeldItem);
- for (int id : aOreIDs) {
- String aOreNameFromID = OreDictionary.getOreName(id);
- if (aOreNameFromID != null && aOreNameFromID.length() > 0
- && !aOreNameFromID.equals("Unknown")) {
- aOreDictNames.add(aOreNameFromID);
- }
- }
+ int[] aOreIDs = OreDictionary.getOreIDs(aHeldItem);
+ for (int id : aOreIDs) {
+ String aOreNameFromID = OreDictionary.getOreName(id);
+ if (aOreNameFromID != null && aOreNameFromID.length() > 0
+ && !aOreNameFromID.equals("Unknown")) {
+ aOreDictNames.add(aOreNameFromID);
+ }
+ }
- String aOreDictData = "";
- if (!aOreDictNames.isEmpty()) {
- for (String tag : aOreDictNames) {
- aOreDictData += (tag + ", ");
- }
- if (aOreDictData.endsWith(", ")) {
- aOreDictData = aOreDictData.substring(0, aOreDictData.length() - 2);
- }
- }
+ String aOreDictData = "";
+ if (!aOreDictNames.isEmpty()) {
+ for (String tag : aOreDictNames) {
+ aOreDictData += (tag + ", ");
+ }
+ if (aOreDictData.endsWith(", ")) {
+ aOreDictData = aOreDictData.substring(0, aOreDictData.length() - 2);
+ }
+ }
- AutoMap<String> aFluidContainerData = new AutoMap<>();
- FluidStack aHeldItemFluid = FluidContainerRegistry.getFluidForFilledItem(aHeldItem);
- if (aHeldItemFluid != null) {
- aFluidContainerData.put("FluidStack Unlocal Name: " + aHeldItemFluid.getUnlocalizedName());
- aFluidContainerData.put("FluidStack Local Name: " + aHeldItemFluid.getLocalizedName());
- aFluidContainerData
- .put("Fluid Unlocal Name: " + aHeldItemFluid.getFluid().getUnlocalizedName());
- aFluidContainerData.put("Fluid Local Name: " + aHeldItemFluid.getLocalizedName());
- aFluidContainerData.put("Fluid Name: " + aHeldItemFluid.getFluid().getName());
- }
+ AutoMap<String> aFluidContainerData = new AutoMap<>();
+ FluidStack aHeldItemFluid = FluidContainerRegistry.getFluidForFilledItem(aHeldItem);
+ if (aHeldItemFluid != null) {
+ aFluidContainerData
+ .put("FluidStack Unlocal Name: " + aHeldItemFluid.getUnlocalizedName());
+ aFluidContainerData.put("FluidStack Local Name: " + aHeldItemFluid.getLocalizedName());
+ aFluidContainerData.put(
+ "Fluid Unlocal Name: " + aHeldItemFluid.getFluid()
+ .getUnlocalizedName());
+ aFluidContainerData.put("Fluid Local Name: " + aHeldItemFluid.getLocalizedName());
+ aFluidContainerData.put(
+ "Fluid Name: " + aHeldItemFluid.getFluid()
+ .getName());
+ }
- PlayerUtils.messagePlayer(P, "[" + aItemUnlocalName + "]" + "[" + aItemDisplayName + "] ");
- if (aFluidContainerData.size() > 0) {
- for (String s : aFluidContainerData) {
- PlayerUtils.messagePlayer(P, "" + s);
+ PlayerUtils.messagePlayer(P, "[" + aItemUnlocalName + "]" + "[" + aItemDisplayName + "] ");
+ if (aFluidContainerData.size() > 0) {
+ for (String s : aFluidContainerData) {
+ PlayerUtils.messagePlayer(P, "" + s);
+ }
+ }
+ if (!aOreDictNames.isEmpty()) {
+ PlayerUtils.messagePlayer(P, "" + aOreDictData);
+ }
+ if (aNbtString.length() > 0) {
+ PlayerUtils.messagePlayer(P, "" + aNbtString);
+ }
+ } else {
+ PlayerUtils.messagePlayer(P, "No item held.");
}
}
- if (!aOreDictNames.isEmpty()) {
- PlayerUtils.messagePlayer(P, "" + aOreDictData);
- }
- if (aNbtString.length() > 0) {
- PlayerUtils.messagePlayer(P, "" + aNbtString);
- }
- } else {
- PlayerUtils.messagePlayer(P, "No item held.");
- }
- }
- } else if (argString[0].toLowerCase().equals("fluid")) {
- if (argString.length > 1 && argString[1] != null && argString[1].length() > 0) {
- final EntityPlayer P = CommandUtils.getPlayer(S);
- FluidStack aFluid = FluidUtils.getWildcardFluidStack(argString[1], 1);
- if (P != null && aFluid != null) {
- PlayerUtils.messagePlayer(P, "Found fluid stack: " + FluidRegistry.getFluidName(aFluid));
- } else if (P != null && aFluid == null) {
- PlayerUtils.messagePlayer(P, "Could not find any fluids.");
- }
- }
- } else if (argString[0].toLowerCase().equals("item")) {
- if (argString.length > 1 && argString[1] != null && argString[1].length() > 0) {
- final EntityPlayer P = CommandUtils.getPlayer(S);
- ItemStack aTest = ItemUtils.getItemStackFromFQRN(argString[1], 1);
- if (P != null && aTest != null) {
- PlayerUtils.messagePlayer(P, "Found fluid stack: " + ItemUtils.getItemName(aTest));
- } else if (P != null && aTest == null) {
- PlayerUtils.messagePlayer(P, "Could not find valid item.");
- }
- }
- } else {
- final EntityPlayer P = CommandUtils.getPlayer(S);
- PlayerUtils.messagePlayer(P, "Invalid command, use '?' as an argument for help.'");
- }
+ } else if (argString[0].toLowerCase()
+ .equals("fluid")) {
+ if (argString.length > 1 && argString[1] != null && argString[1].length() > 0) {
+ final EntityPlayer P = CommandUtils.getPlayer(S);
+ FluidStack aFluid = FluidUtils.getWildcardFluidStack(argString[1], 1);
+ if (P != null && aFluid != null) {
+ PlayerUtils
+ .messagePlayer(P, "Found fluid stack: " + FluidRegistry.getFluidName(aFluid));
+ } else if (P != null && aFluid == null) {
+ PlayerUtils.messagePlayer(P, "Could not find any fluids.");
+ }
+ }
+ } else if (argString[0].toLowerCase()
+ .equals("item")) {
+ if (argString.length > 1 && argString[1] != null && argString[1].length() > 0) {
+ final EntityPlayer P = CommandUtils.getPlayer(S);
+ ItemStack aTest = ItemUtils.getItemStackFromFQRN(argString[1], 1);
+ if (P != null && aTest != null) {
+ PlayerUtils.messagePlayer(P, "Found fluid stack: " + ItemUtils.getItemName(aTest));
+ } else if (P != null && aTest == null) {
+ PlayerUtils.messagePlayer(P, "Could not find valid item.");
+ }
+ }
+ } else {
+ final EntityPlayer P = CommandUtils.getPlayer(S);
+ PlayerUtils.messagePlayer(P, "Invalid command, use '?' as an argument for help.'");
+ }
}
@Override
@@ -241,7 +253,10 @@ public class CommandEnableDebugWhileRunning implements ICommand {
Map<?, ?> mInternalMap = ReflectionUtils.getField(aNBT, "tagMap");
if (mInternalMap != null) {
for (Map.Entry<?, ?> e : mInternalMap.entrySet()) {
- aItemDataTags.add(e.getKey().toString() + ":" + e.getValue());
+ aItemDataTags.add(
+ e.getKey()
+ .toString() + ":"
+ + e.getValue());
}
int a = 0;
String data = "";
diff --git a/src/main/java/gtPlusPlus/core/commands/CommandMath.java b/src/main/java/gtPlusPlus/core/commands/CommandMath.java
index eb872160cc..6065044c29 100644
--- a/src/main/java/gtPlusPlus/core/commands/CommandMath.java
+++ b/src/main/java/gtPlusPlus/core/commands/CommandMath.java
@@ -49,7 +49,8 @@ public class CommandMath implements ICommand {
Logger.INFO("Debug Command");
final World W = S.getEntityWorld();
final EntityPlayer P = CommandUtils.getPlayer(S);
- if (P.getDisplayName().equalsIgnoreCase("draknyte1")) {
+ if (P.getDisplayName()
+ .equalsIgnoreCase("draknyte1")) {
Logger.INFO("[Bedrock Miner] OreType Scan");
MiningUtils.iterateAllOreTypes();
}
@@ -61,9 +62,13 @@ public class CommandMath implements ICommand {
if (P == null) {
return false;
}
- if (P.getDisplayName().toLowerCase().equals("draknyte1")
- || P.getCommandSenderName().toLowerCase().equals("draknyte1")
- || CORE.DEVENV) {
+ if (P.getDisplayName()
+ .toLowerCase()
+ .equals("draknyte1")
+ || P.getCommandSenderName()
+ .toLowerCase()
+ .equals("draknyte1")
+ || CORE.DEVENV) {
return true;
}
return false;
diff --git a/src/main/java/gtPlusPlus/core/common/CommonProxy.java b/src/main/java/gtPlusPlus/core/common/CommonProxy.java
index 70062a5f00..d52b3aa112 100644
--- a/src/main/java/gtPlusPlus/core/common/CommonProxy.java
+++ b/src/main/java/gtPlusPlus/core/common/CommonProxy.java
@@ -105,7 +105,9 @@ public class CommonProxy {
if (!CORE.burnables.isEmpty()) {
BurnableFuelHandler fuelHandler = new BurnableFuelHandler();
GameRegistry.registerFuelHandler(fuelHandler);
- Logger.INFO("[Fuel Handler] Registering " + fuelHandler.getClass().getName());
+ Logger.INFO(
+ "[Fuel Handler] Registering " + fuelHandler.getClass()
+ .getName());
}
// Compat Handling
@@ -157,15 +159,15 @@ public class CommonProxy {
// Blazes
if (ItemUtils.doesOreDictHaveEntryFor("dustPyrotheum")) {
EntityUtils.registerDropsForMob(
- EntityBlaze.class,
- ItemUtils.getItemStackOfAmountFromOreDict("dustPyrotheum", 1),
- 1,
- 10);
+ EntityBlaze.class,
+ ItemUtils.getItemStackOfAmountFromOreDict("dustPyrotheum", 1),
+ 1,
+ 10);
EntityUtils.registerDropsForMob(
- EntityBlaze.class,
- ItemUtils.getItemStackOfAmountFromOreDict("dustPyrotheum", 1),
- 1,
- 10);
+ EntityBlaze.class,
+ ItemUtils.getItemStackOfAmountFromOreDict("dustPyrotheum", 1),
+ 1,
+ 10);
}
// GalaxySpace Support
@@ -176,11 +178,8 @@ public class CommonProxy {
aTinyBlizz = ItemUtils.getItemStackOfAmountFromOreDict("dustTinyBlizz", 1);
aSmallCryo = ItemUtils.getItemStackOfAmountFromOreDict("dustSmallCryotheum", 1);
aTinyCryo = ItemUtils.getItemStackOfAmountFromOreDict("dustTinyCryotheum", 1);
- EntityUtils.registerDropsForMob(
- aColdBlaze,
- ItemUtils.getItemStackOfAmountFromOreDict("stickBlizz", 1),
- 2,
- 500);
+ EntityUtils
+ .registerDropsForMob(aColdBlaze, ItemUtils.getItemStackOfAmountFromOreDict("stickBlizz", 1), 2, 500);
if (aSmallBlizz != null) {
EntityUtils.registerDropsForMob(aColdBlaze, aSmallBlizz, 2, 750);
}
diff --git a/src/main/java/gtPlusPlus/core/common/compat/COMPAT_IC2.java b/src/main/java/gtPlusPlus/core/common/compat/COMPAT_IC2.java
index d2b53c701d..c442251a0e 100644
--- a/src/main/java/gtPlusPlus/core/common/compat/COMPAT_IC2.java
+++ b/src/main/java/gtPlusPlus/core/common/compat/COMPAT_IC2.java
@@ -14,27 +14,27 @@ public class COMPAT_IC2 {
private static ItemStack itemSolarHelmet = ItemUtils.simpleMetaStack("IC2:itemSolarHelmet", 0, 1);
public static ShapedRecipeObject Cropnalyzer = new ShapedRecipeObject(
- "ore:cableGt02Copper",
- "ore:cableGt02Copper",
- null,
- "minecraft:redstone",
- "ore:blockGlass",
- "minecraft:redstone",
- "minecraft:redstone",
- "ore:circuitBasic",
- "minecraft:redstone",
- itemCropnalyzer);
+ "ore:cableGt02Copper",
+ "ore:cableGt02Copper",
+ null,
+ "minecraft:redstone",
+ "ore:blockGlass",
+ "minecraft:redstone",
+ "minecraft:redstone",
+ "ore:circuitBasic",
+ "minecraft:redstone",
+ itemCropnalyzer);
public static ShapedRecipeObject SolarHelmet = new ShapedRecipeObject(
- "ore:plateIron",
- "ore:plateIron",
- "ore:plateIron",
- "ore:plateIron",
- "gregtech:gt.metaitem.01:32750",
- "ore:plateIron",
- "ore:craftingWireCopper",
- "ore:craftingWireCopper",
- "ore:craftingWireCopper",
- itemSolarHelmet);
+ "ore:plateIron",
+ "ore:plateIron",
+ "ore:plateIron",
+ "ore:plateIron",
+ "gregtech:gt.metaitem.01:32750",
+ "ore:plateIron",
+ "ore:craftingWireCopper",
+ "ore:craftingWireCopper",
+ "ore:craftingWireCopper",
+ itemSolarHelmet);
public static void OreDict() {
run();
diff --git a/src/main/java/gtPlusPlus/core/common/compat/COMPAT_Thaumcraft.java b/src/main/java/gtPlusPlus/core/common/compat/COMPAT_Thaumcraft.java
index 768414b9f0..d9c9fec08e 100644
--- a/src/main/java/gtPlusPlus/core/common/compat/COMPAT_Thaumcraft.java
+++ b/src/main/java/gtPlusPlus/core/common/compat/COMPAT_Thaumcraft.java
@@ -20,29 +20,28 @@ public class COMPAT_Thaumcraft {
for (int i = 0; i <= 6; i++) {
ItemUtils.getItemForOreDict("Thaumcraft:ItemShard", "shardAny", "TC Shard " + i, i);
GT_OreDictUnificator
- .registerOre("shardAny", ItemUtils.getItemStackFromFQRN("Thaumcraft:ItemShard:" + i, 1));
+ .registerOre("shardAny", ItemUtils.getItemStackFromFQRN("Thaumcraft:ItemShard:" + i, 1));
ItemUtils.getItemForOreDict("Thaumcraft:ItemShard", "gemInfusedAnything", "TC Shard " + i, i);
GT_OreDictUnificator
- .registerOre("gemInfusedAnything", ItemUtils.getItemStackFromFQRN("Thaumcraft:ItemShard:" + i, 1));
+ .registerOre("gemInfusedAnything", ItemUtils.getItemStackFromFQRN("Thaumcraft:ItemShard:" + i, 1));
}
if (ForbiddenMagic.isModLoaded()) {
for (int i = 0; i <= 6; i++) {
ItemUtils.getItemForOreDict("ForbiddenMagic:NetherShard", "shardAny", "FM Shard " + i, i);
GT_OreDictUnificator
- .registerOre("shardAny", ItemUtils.getItemStackFromFQRN("ForbiddenMagic:NetherShard:" + i, 1));
+ .registerOre("shardAny", ItemUtils.getItemStackFromFQRN("ForbiddenMagic:NetherShard:" + i, 1));
ItemUtils.getItemForOreDict("ForbiddenMagic:NetherShard", "gemInfusedAnything", "FM Shard " + i, i);
GT_OreDictUnificator.registerOre(
- "gemInfusedAnything",
- ItemUtils.getItemStackFromFQRN("ForbiddenMagic:NetherShard:" + i, 1));
+ "gemInfusedAnything",
+ ItemUtils.getItemStackFromFQRN("ForbiddenMagic:NetherShard:" + i, 1));
}
ItemUtils.getItemForOreDict("ForbiddenMagic:GluttonyShard", "shardAny", "FM Gluttony Shard", 0);
GT_OreDictUnificator
- .registerOre("shardAny", ItemUtils.getItemStackFromFQRN("ForbiddenMagic:GluttonyShard", 1));
+ .registerOre("shardAny", ItemUtils.getItemStackFromFQRN("ForbiddenMagic:GluttonyShard", 1));
ItemUtils.getItemForOreDict("ForbiddenMagic:GluttonyShard", "gemInfusedAnything", "FM Gluttony Shard", 0);
- GT_OreDictUnificator.registerOre(
- "gemInfusedAnything",
- ItemUtils.getItemStackFromFQRN("ForbiddenMagic:GluttonyShard", 1));
+ GT_OreDictUnificator
+ .registerOre("gemInfusedAnything", ItemUtils.getItemStackFromFQRN("ForbiddenMagic:GluttonyShard", 1));
}
}
}
diff --git a/src/main/java/gtPlusPlus/core/common/compat/COMPAT_Witchery.java b/src/main/java/gtPlusPlus/core/common/compat/COMPAT_Witchery.java
index 726aa897df..f6fdd87eec 100644
--- a/src/main/java/gtPlusPlus/core/common/compat/COMPAT_Witchery.java
+++ b/src/main/java/gtPlusPlus/core/common/compat/COMPAT_Witchery.java
@@ -16,11 +16,11 @@ public class COMPAT_Witchery {
private static void run() {
// Koboldite
ItemStack aKobolditeDust = ItemUtils
- .getItemStackWithMeta(Witchery.isModLoaded(), "witchery:ingredient", "Koboldite Dust", 148, 1);
+ .getItemStackWithMeta(Witchery.isModLoaded(), "witchery:ingredient", "Koboldite Dust", 148, 1);
ItemStack aKobolditeNugget = ItemUtils
- .getItemStackWithMeta(Witchery.isModLoaded(), "witchery:ingredient", "Koboldite Nugget", 149, 1);
+ .getItemStackWithMeta(Witchery.isModLoaded(), "witchery:ingredient", "Koboldite Nugget", 149, 1);
ItemStack aKobolditeIngot = ItemUtils
- .getItemStackWithMeta(Witchery.isModLoaded(), "witchery:ingredient", "Koboldite Ingot", 150, 1);
+ .getItemStackWithMeta(Witchery.isModLoaded(), "witchery:ingredient", "Koboldite Ingot", 150, 1);
if (aKobolditeDust != null) GT_OreDictUnificator.registerOre("dust" + "Koboldite", aKobolditeDust);
if (aKobolditeNugget != null) GT_OreDictUnificator.registerOre("nugget" + "Koboldite", aKobolditeNugget);
if (aKobolditeIngot != null) GT_OreDictUnificator.registerOre("ingot" + "Koboldite", aKobolditeIngot);
diff --git a/src/main/java/gtPlusPlus/core/config/ConfigHandler.java b/src/main/java/gtPlusPlus/core/config/ConfigHandler.java
index c498164cf9..162d5b0f12 100644
--- a/src/main/java/gtPlusPlus/core/config/ConfigHandler.java
+++ b/src/main/java/gtPlusPlus/core/config/ConfigHandler.java
@@ -109,7 +109,7 @@ public class ConfigHandler {
public static void handleConfigFile(final FMLPreInitializationEvent event) {
final Configuration config = new Configuration(
- new File(event.getModConfigurationDirectory(), "GTplusplus/GTplusplus.cfg"));
+ new File(event.getModConfigurationDirectory(), "GTplusplus/GTplusplus.cfg"));
config.load();
// Debug
@@ -118,552 +118,553 @@ public class ConfigHandler {
* "Enables all sorts of debug logging. (Don't use unless told to, breaks other things.)");
*/
MACHINE_INFO = config.getBoolean(
- "enableMachineInfoLogging",
- "debug",
- false,
- "Makes many machines display lots of debug logging.");
+ "enableMachineInfoLogging",
+ "debug",
+ false,
+ "Makes many machines display lots of debug logging.");
showHiddenNEIItems = config
- .getBoolean("showHiddenNEIItems", "debug", false, "Makes all items hidden from NEI display.");
+ .getBoolean("showHiddenNEIItems", "debug", false, "Makes all items hidden from NEI display.");
dumpItemAndBlockData = config.getBoolean(
- "dumpItemAndBlockData",
- "debug",
- false,
- "Dumps all GT++ and Toxic Everglade Data to en_US.lang in the config folder. This config option can be used by foreign players to generate blank .lang files, which they can populate with their language of choice.");
+ "dumpItemAndBlockData",
+ "debug",
+ false,
+ "Dumps all GT++ and Toxic Everglade Data to en_US.lang in the config folder. This config option can be used by foreign players to generate blank .lang files, which they can populate with their language of choice.");
// Machines
enableThaumcraftShardUnification = config.getBoolean(
- "enableThaumcraftShardUnification",
- "machines",
- false,
- "Allows the use of TC shards across many recipes by oreDicting them into a common group.");
+ "enableThaumcraftShardUnification",
+ "machines",
+ false,
+ "Allows the use of TC shards across many recipes by oreDicting them into a common group.");
disableIC2Recipes = config.getBoolean(
- "disableIC2Recipes",
- "machines",
- false,
- "Alkaluscraft Related - Removes IC2 Cables Except glass fibre. Few other Misc Tweaks.");
+ "disableIC2Recipes",
+ "machines",
+ false,
+ "Alkaluscraft Related - Removes IC2 Cables Except glass fibre. Few other Misc Tweaks.");
boilerSteamPerSecond = config.getInt(
- "boilerSteamPerSecond",
- "machines",
- 750,
- 0,
- 10000,
- "Sets the steam per second value in LV,MV,HV boilers (respectively 1x,2x,3x this number for the tiers)");
+ "boilerSteamPerSecond",
+ "machines",
+ 750,
+ 0,
+ 10000,
+ "Sets the steam per second value in LV,MV,HV boilers (respectively 1x,2x,3x this number for the tiers)");
// GT-Fixes
turbineCutoffBase = config.getInt(
- "turbineCutoffBase",
- GregTech.ID,
- 75000,
- 0,
- Integer.MAX_VALUE,
- "Rotors below this durability will be removed, prevents NEI clutter. Minimum Durability is N * x, where N is the new value set and x is the turbine size, where 1 is Tiny and 4 is Huge. Set to 0 to disable.");
+ "turbineCutoffBase",
+ GregTech.ID,
+ 75000,
+ 0,
+ Integer.MAX_VALUE,
+ "Rotors below this durability will be removed, prevents NEI clutter. Minimum Durability is N * x, where N is the new value set and x is the turbine size, where 1 is Tiny and 4 is Huge. Set to 0 to disable.");
// Pipes & Cables
enableCustom_Pipes = config.getBoolean("enableCustom_Pipes", GregTech.ID, true, "Adds Custom GT Fluid Pipes.");
enableCustom_Cables = config.getBoolean("enableCustom_Cables", GregTech.ID, true, "Adds Custom GT Cables.");
enableMachine_Dehydrators = config
- .getBoolean("enableMachineDehydrators", GregTech.ID, true, "These dehydrate stuff.");
+ .getBoolean("enableMachineDehydrators", GregTech.ID, true, "These dehydrate stuff.");
enableMachine_SteamConverter = config
- .getBoolean("enableMachineSteamConverter", GregTech.ID, true, "Converts IC2 steam -> Railcraft steam.");
+ .getBoolean("enableMachineSteamConverter", GregTech.ID, true, "Converts IC2 steam -> Railcraft steam.");
enableMachine_FluidTanks = config
- .getBoolean("enableMachineFluidTanks", GregTech.ID, true, "Portable fluid tanks.");
+ .getBoolean("enableMachineFluidTanks", GregTech.ID, true, "Portable fluid tanks.");
enableMachine_RocketEngines = config.getBoolean(
- "enableMachineRocketEngines",
- GregTech.ID,
- true,
- "Diesel egines with different internals, they consume less fuel overall.");
+ "enableMachineRocketEngines",
+ GregTech.ID,
+ true,
+ "Diesel egines with different internals, they consume less fuel overall.");
enableMachine_GeothermalEngines = config.getBoolean(
- "enableMachineGeothermalEngines",
- GregTech.ID,
- true,
- "These may be overpowered, Consult a local geologist.");
- enableMachine_Tesseracts = config.getBoolean(
- "enableMachineTesseracts",
- GregTech.ID,
- true,
- "Tesseracts for wireless item/fluid movement.");
+ "enableMachineGeothermalEngines",
+ GregTech.ID,
+ true,
+ "These may be overpowered, Consult a local geologist.");
+ enableMachine_Tesseracts = config
+ .getBoolean("enableMachineTesseracts", GregTech.ID, true, "Tesseracts for wireless item/fluid movement.");
enableMachine_SimpleWasher = config.getBoolean(
- "enableMachineSimpleWasher",
- GregTech.ID,
- true,
- "Very basic automated cauldron for dust washing.");
+ "enableMachineSimpleWasher",
+ GregTech.ID,
+ true,
+ "Very basic automated cauldron for dust washing.");
enableMachine_Pollution = config
- .getBoolean("enableMachinePollution", GregTech.ID, true, "Pollution Detector & Scrubbers.");
+ .getBoolean("enableMachinePollution", GregTech.ID, true, "Pollution Detector & Scrubbers.");
// Multi machines
enableMultiblock_AlloyBlastSmelter = config.getBoolean(
- "enableMultiblockAlloyBlastSmelter",
- GregTech.ID,
- true,
- "Required to smelt most high tier materials from GT++. Also smelts everything else to molten metal.");
+ "enableMultiblockAlloyBlastSmelter",
+ GregTech.ID,
+ true,
+ "Required to smelt most high tier materials from GT++. Also smelts everything else to molten metal.");
enableMultiblock_IndustrialCentrifuge = config
- .getBoolean("enableMultiblockIndustrialCentrifuge", GregTech.ID, true, "Spin, Spin, Spiiiin.");
+ .getBoolean("enableMultiblockIndustrialCentrifuge", GregTech.ID, true, "Spin, Spin, Spiiiin.");
enableMultiblock_IndustrialCokeOven = config.getBoolean(
- "enableMultiblockIndustrialCokeOven",
- GregTech.ID,
- true,
- "Pyro Oven Alternative, older, more realistic, better.");
+ "enableMultiblockIndustrialCokeOven",
+ GregTech.ID,
+ true,
+ "Pyro Oven Alternative, older, more realistic, better.");
enableMultiblock_IndustrialElectrolyzer = config.getBoolean(
- "enableMultiblockIndustrialElectrolyzer",
- GregTech.ID,
- true,
- "Electrolyzes things with extra bling factor.");
+ "enableMultiblockIndustrialElectrolyzer",
+ GregTech.ID,
+ true,
+ "Electrolyzes things with extra bling factor.");
enableMultiblock_IndustrialMacerationStack = config.getBoolean(
- "enableMultiblockIndustrialMacerationStack",
- GregTech.ID,
- true,
- "A hyper efficient maceration tower, nets more bonus outputs.");
+ "enableMultiblockIndustrialMacerationStack",
+ GregTech.ID,
+ true,
+ "A hyper efficient maceration tower, nets more bonus outputs.");
enableMultiblock_IndustrialPlatePress = config.getBoolean(
- "enableMultiblockIndustrialPlatePress",
- GregTech.ID,
- true,
- "Industrial bendering machine thingo.");
+ "enableMultiblockIndustrialPlatePress",
+ GregTech.ID,
+ true,
+ "Industrial bendering machine thingo.");
enableMultiblock_IndustrialWireMill = config.getBoolean(
- "enableMultiblockIndustrialWireMill",
- GregTech.ID,
- true,
- "Produces fine wire and exotic cables.");
+ "enableMultiblockIndustrialWireMill",
+ GregTech.ID,
+ true,
+ "Produces fine wire and exotic cables.");
enableMultiblock_MatterFabricator = config
- .getBoolean("enableMultiblockMatterFabricator", GregTech.ID, true, "?FAB?RIC?ATE MA?TT?ER.");
+ .getBoolean("enableMultiblockMatterFabricator", GregTech.ID, true, "?FAB?RIC?ATE MA?TT?ER.");
enableMultiblock_MultiTank = config.getBoolean(
- "enableMultiblockMultiTank",
- GregTech.ID,
- true,
- "Tall tanks, each layer adds extra fluid storage.");
+ "enableMultiblockMultiTank",
+ GregTech.ID,
+ true,
+ "Tall tanks, each layer adds extra fluid storage.");
enableMultiblock_PowerSubstation = config
- .getBoolean("enableMultiblockPowerSubstation", GregTech.ID, true, "For managing large power grids.");
+ .getBoolean("enableMultiblockPowerSubstation", GregTech.ID, true, "For managing large power grids.");
enableMultiblock_LiquidFluorideThoriumReactor = config.getBoolean(
- "enableMultiblockLiquidFluorideThoriumReactor",
- GregTech.ID,
- true,
- "For supplying large power grids.");
+ "enableMultiblockLiquidFluorideThoriumReactor",
+ GregTech.ID,
+ true,
+ "For supplying large power grids.");
enableMultiblock_NuclearFuelRefinery = config.getBoolean(
- "enableMultiblock_NuclearFuelRefinery",
- GregTech.ID,
- true,
- "Refines molten chemicals into nuclear fuels.");
+ "enableMultiblock_NuclearFuelRefinery",
+ GregTech.ID,
+ true,
+ "Refines molten chemicals into nuclear fuels.");
enableMultiblock_NuclearSaltProcessingPlant = config.getBoolean(
- "enableMultiblockNuclearSaltProcessingPlant",
- GregTech.ID,
- true,
- "Reprocesses depleted nuclear salts into useful chemicals.");
+ "enableMultiblockNuclearSaltProcessingPlant",
+ GregTech.ID,
+ true,
+ "Reprocesses depleted nuclear salts into useful chemicals.");
enableMultiblock_IndustrialSifter = config
- .getBoolean("enableMultiblock_IndustrialSifter", GregTech.ID, true, "Large scale sifting.");
+ .getBoolean("enableMultiblock_IndustrialSifter", GregTech.ID, true, "Large scale sifting.");
enableMultiblock_LargeAutoCrafter = config.getBoolean(
- "enableMultiblock_LargeAutoCrafter",
- GregTech.ID,
- true,
- "Can Assemble, Disassemble and Craft Project data from Data Sticks.");
+ "enableMultiblock_LargeAutoCrafter",
+ GregTech.ID,
+ true,
+ "Can Assemble, Disassemble and Craft Project data from Data Sticks.");
enableMultiblock_IndustrialThermalCentrifuge = config.getBoolean(
- "enableMultiblock_IndustrialThermalCentrifuge",
- GregTech.ID,
- true,
- "Your warm spin for the ore thing.");
+ "enableMultiblock_IndustrialThermalCentrifuge",
+ GregTech.ID,
+ true,
+ "Your warm spin for the ore thing.");
enableMultiblock_IndustrialWashPlant = config.getBoolean(
- "enableMultiblock_IndustrialWashPlant",
- GregTech.ID,
- true,
- "Used to wash the dirt, riiiiight offff..");
+ "enableMultiblock_IndustrialWashPlant",
+ GregTech.ID,
+ true,
+ "Used to wash the dirt, riiiiight offff..");
enableMultiblock_ThermalBoiler = config.getBoolean(
- "enableMachineThermalBoiler",
- GregTech.ID,
- true,
- "Thermal Boiler from GT4. Can Filter Lava for resources.");
+ "enableMachineThermalBoiler",
+ GregTech.ID,
+ true,
+ "Thermal Boiler from GT4. Can Filter Lava for resources.");
enableMultiblock_IndustrialCuttingMachine = config.getBoolean(
- "enableMultiblock_IndustrialCuttingMachine",
- GregTech.ID,
- true,
- "Very fast and efficient Cutting Machine.");
- enableMultiblock_IndustrialFishingPort = config.getBoolean(
- "enableMultiblock_IndustrialFishingPort",
- GregTech.ID,
- true,
- "Fish the seas, except on land.");
+ "enableMultiblock_IndustrialCuttingMachine",
+ GregTech.ID,
+ true,
+ "Very fast and efficient Cutting Machine.");
+ enableMultiblock_IndustrialFishingPort = config
+ .getBoolean("enableMultiblock_IndustrialFishingPort", GregTech.ID, true, "Fish the seas, except on land.");
enableMultiblock_IndustrialExtrudingMachine = config.getBoolean(
- "enableMultiblock_IndustrialExtrudingMachine",
- GregTech.ID,
- true,
- "Very fast and efficient Extruding Machine.");
+ "enableMultiblock_IndustrialExtrudingMachine",
+ GregTech.ID,
+ true,
+ "Very fast and efficient Extruding Machine.");
enableMultiblock_IndustrialMultiMachine = config.getBoolean(
- "enableMultiblock_IndustrialMultiMachine",
- GregTech.ID,
- true,
- "Can run recipes for 9 different types of machines.");
+ "enableMultiblock_IndustrialMultiMachine",
+ GregTech.ID,
+ true,
+ "Can run recipes for 9 different types of machines.");
enableMultiblock_Cyclotron = config
- .getBoolean("enableMultiblock_Cyclotron", GregTech.ID, true, "COMET - Scientific Cyclotron.");
+ .getBoolean("enableMultiblock_Cyclotron", GregTech.ID, true, "COMET - Scientific Cyclotron.");
// Features
enableCustomCapes = config.getBoolean("enableSupporterCape", "features", true, "Enables Custom GT++ Cape.");
enableWatchdogBGM = config.getInt(
- "enableWatchdogBGM",
- "features",
- 0,
- 0,
- Short.MAX_VALUE,
- "Set to a value greater than 0 to reduce the ticks taken to delay between BGM tracks. Acceptable Values are 1-32767, where 0 is disabled. Vanilla Uses 12,000 & 24,000. 200 is 10s.");
+ "enableWatchdogBGM",
+ "features",
+ 0,
+ 0,
+ Short.MAX_VALUE,
+ "Set to a value greater than 0 to reduce the ticks taken to delay between BGM tracks. Acceptable Values are 1-32767, where 0 is disabled. Vanilla Uses 12,000 & 24,000. 200 is 10s.");
hideUniversalCells = config
- .getBoolean("hideUniversalCells", "features", true, "Hides every filled IC2 Universal Cell from NEI.");
+ .getBoolean("hideUniversalCells", "features", true, "Hides every filled IC2 Universal Cell from NEI.");
// Biomes
EVERGLADES_ID = config.getInt("darkworld_ID", "worldgen", 227, 1, 254, "The ID of the Dark Dimension.");
EVERGLADESBIOME_ID = config
- .getInt("darkbiome_ID", "worldgen", 238, 1, 254, "The biome within the Dark Dimension.");
+ .getInt("darkbiome_ID", "worldgen", 238, 1, 254, "The biome within the Dark Dimension.");
// Pollution
pollutionPerSecondMultiPackager = config
- .get(
- "pollution",
- "pollutionPerSecondMultiPackager",
- pollutionPerSecondMultiPackager,
- "pollution rate in gibbl/s for the Amazon warehousing depot")
- .getInt(pollutionPerSecondMultiPackager);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiPackager",
+ pollutionPerSecondMultiPackager,
+ "pollution rate in gibbl/s for the Amazon warehousing depot")
+ .getInt(pollutionPerSecondMultiPackager);
pollutionPerSecondMultiIndustrialAlloySmelter = config
- .get(
- "pollution",
- "pollutionPerSecondMultiIndustrialAlloySmelter",
- pollutionPerSecondMultiIndustrialAlloySmelter,
- "pollution rate in gibbl/s for the Alloy blast smelter")
- .getInt(pollutionPerSecondMultiIndustrialAlloySmelter);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiIndustrialAlloySmelter",
+ pollutionPerSecondMultiIndustrialAlloySmelter,
+ "pollution rate in gibbl/s for the Alloy blast smelter")
+ .getInt(pollutionPerSecondMultiIndustrialAlloySmelter);
pollutionPerSecondMultiIndustrialArcFurnace = config
- .get(
- "pollution",
- "pollutionPerSecondMultiIndustrialArcFurnace",
- pollutionPerSecondMultiIndustrialArcFurnace,
- "pollution rate in gibbl/s for the High current arc furnace")
- .getInt(pollutionPerSecondMultiIndustrialArcFurnace);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiIndustrialArcFurnace",
+ pollutionPerSecondMultiIndustrialArcFurnace,
+ "pollution rate in gibbl/s for the High current arc furnace")
+ .getInt(pollutionPerSecondMultiIndustrialArcFurnace);
pollutionPerSecondMultiIndustrialCentrifuge = config
- .get(
- "pollution",
- "pollutionPerSecondMultiIndustrialCentrifuge",
- pollutionPerSecondMultiIndustrialCentrifuge,
- "pollution rate in gibbl/s for the Industrial centrifuge")
- .getInt(pollutionPerSecondMultiIndustrialCentrifuge);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiIndustrialCentrifuge",
+ pollutionPerSecondMultiIndustrialCentrifuge,
+ "pollution rate in gibbl/s for the Industrial centrifuge")
+ .getInt(pollutionPerSecondMultiIndustrialCentrifuge);
pollutionPerSecondMultiIndustrialCokeOven = config
- .get(
- "pollution",
- "pollutionPerSecondMultiIndustrialCokeOven",
- pollutionPerSecondMultiIndustrialCokeOven,
- "pollution rate in gibbl/s for the Industrial coke oven")
- .getInt(pollutionPerSecondMultiIndustrialCokeOven);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiIndustrialCokeOven",
+ pollutionPerSecondMultiIndustrialCokeOven,
+ "pollution rate in gibbl/s for the Industrial coke oven")
+ .getInt(pollutionPerSecondMultiIndustrialCokeOven);
pollutionPerSecondMultiIndustrialCuttingMachine = config
- .get(
- "pollution",
- "pollutionPerSecondMultiIndustrialCuttingMachine",
- pollutionPerSecondMultiIndustrialCuttingMachine,
- "pollution rate in gibbl/s for the Cutting factory")
- .getInt(pollutionPerSecondMultiIndustrialCuttingMachine);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiIndustrialCuttingMachine",
+ pollutionPerSecondMultiIndustrialCuttingMachine,
+ "pollution rate in gibbl/s for the Cutting factory")
+ .getInt(pollutionPerSecondMultiIndustrialCuttingMachine);
pollutionPerSecondMultiIndustrialDehydrator = config
- .get(
- "pollution",
- "pollutionPerSecondMultiIndustrialDehydrator",
- pollutionPerSecondMultiIndustrialDehydrator,
- "pollution rate in gibbl/s for the Utupu-Tanuri")
- .getInt(pollutionPerSecondMultiIndustrialDehydrator);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiIndustrialDehydrator",
+ pollutionPerSecondMultiIndustrialDehydrator,
+ "pollution rate in gibbl/s for the Utupu-Tanuri")
+ .getInt(pollutionPerSecondMultiIndustrialDehydrator);
pollutionPerSecondMultiIndustrialElectrolyzer = config
- .get(
- "pollution",
- "pollutionPerSecondMultiIndustrialElectrolyzer",
- pollutionPerSecondMultiIndustrialElectrolyzer,
- "pollution rate in gibbl/s for the Industrial electrolyzer")
- .getInt(pollutionPerSecondMultiIndustrialElectrolyzer);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiIndustrialElectrolyzer",
+ pollutionPerSecondMultiIndustrialElectrolyzer,
+ "pollution rate in gibbl/s for the Industrial electrolyzer")
+ .getInt(pollutionPerSecondMultiIndustrialElectrolyzer);
pollutionPerSecondMultiIndustrialExtruder = config
- .get(
- "pollution",
- "pollutionPerSecondMultiIndustrialExtruder",
- pollutionPerSecondMultiIndustrialExtruder,
- "pollution rate in gibbl/s for the Industrial extrusion machine")
- .getInt(pollutionPerSecondMultiIndustrialExtruder);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiIndustrialExtruder",
+ pollutionPerSecondMultiIndustrialExtruder,
+ "pollution rate in gibbl/s for the Industrial extrusion machine")
+ .getInt(pollutionPerSecondMultiIndustrialExtruder);
pollutionPerSecondMultiIndustrialMacerator = config
- .get(
- "pollution",
- "pollutionPerSecondMultiIndustrialMacerator",
- pollutionPerSecondMultiIndustrialMacerator,
- "pollution rate in gibbl/s for the Maceration stack")
- .getInt(pollutionPerSecondMultiIndustrialMacerator);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiIndustrialMacerator",
+ pollutionPerSecondMultiIndustrialMacerator,
+ "pollution rate in gibbl/s for the Maceration stack")
+ .getInt(pollutionPerSecondMultiIndustrialMacerator);
pollutionPerSecondMultiIndustrialMixer = config
- .get(
- "pollution",
- "pollutionPerSecondMultiIndustrialMixer",
- pollutionPerSecondMultiIndustrialMixer,
- "pollution rate in gibbl/s for the Industrial mixing machine")
- .getInt(pollutionPerSecondMultiIndustrialMixer);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiIndustrialMixer",
+ pollutionPerSecondMultiIndustrialMixer,
+ "pollution rate in gibbl/s for the Industrial mixing machine")
+ .getInt(pollutionPerSecondMultiIndustrialMixer);
pollutionPerSecondMultiIndustrialMultiMachine_ModeMetal = config
- .get(
- "pollution",
- "pollutionPerSecondMultiIndustrialMultiMachine_ModeMetal",
- pollutionPerSecondMultiIndustrialMultiMachine_ModeMetal,
- "pollution rate in gibbl/s for the Large processing factory in metal mode")
- .getInt(pollutionPerSecondMultiIndustrialMultiMachine_ModeMetal);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiIndustrialMultiMachine_ModeMetal",
+ pollutionPerSecondMultiIndustrialMultiMachine_ModeMetal,
+ "pollution rate in gibbl/s for the Large processing factory in metal mode")
+ .getInt(pollutionPerSecondMultiIndustrialMultiMachine_ModeMetal);
pollutionPerSecondMultiIndustrialMultiMachine_ModeFluid = config
- .get(
- "pollution",
- "pollutionPerSecondMultiIndustrialMultiMachine_ModeFluid",
- pollutionPerSecondMultiIndustrialMultiMachine_ModeFluid,
- "pollution rate in gibbl/s for the Large processing factory in fluid mode")
- .getInt(pollutionPerSecondMultiIndustrialMultiMachine_ModeFluid);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiIndustrialMultiMachine_ModeFluid",
+ pollutionPerSecondMultiIndustrialMultiMachine_ModeFluid,
+ "pollution rate in gibbl/s for the Large processing factory in fluid mode")
+ .getInt(pollutionPerSecondMultiIndustrialMultiMachine_ModeFluid);
pollutionPerSecondMultiIndustrialMultiMachine_ModeMisc = config
- .get(
- "pollution",
- "pollutionPerSecondMultiIndustrialMultiMachine_ModeMisc",
- pollutionPerSecondMultiIndustrialMultiMachine_ModeMisc,
- "pollution rate in gibbl/s for the Large processing factory in misc mode")
- .getInt(pollutionPerSecondMultiIndustrialMultiMachine_ModeMisc);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiIndustrialMultiMachine_ModeMisc",
+ pollutionPerSecondMultiIndustrialMultiMachine_ModeMisc,
+ "pollution rate in gibbl/s for the Large processing factory in misc mode")
+ .getInt(pollutionPerSecondMultiIndustrialMultiMachine_ModeMisc);
pollutionPerSecondMultiIndustrialPlatePress_ModeForming = config
- .get(
- "pollution",
- "pollutionPerSecondMultiIndustrialPlatePress_ModeForming",
- pollutionPerSecondMultiIndustrialPlatePress_ModeForming,
- "pollution rate in gibbl/s for the Industrial material press in forming mode")
- .getInt(pollutionPerSecondMultiIndustrialPlatePress_ModeForming);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiIndustrialPlatePress_ModeForming",
+ pollutionPerSecondMultiIndustrialPlatePress_ModeForming,
+ "pollution rate in gibbl/s for the Industrial material press in forming mode")
+ .getInt(pollutionPerSecondMultiIndustrialPlatePress_ModeForming);
pollutionPerSecondMultiIndustrialPlatePress_ModeBending = config
- .get(
- "pollution",
- "pollutionPerSecondMultiIndustrialPlatePress_ModeBending",
- pollutionPerSecondMultiIndustrialPlatePress_ModeBending,
- "pollution rate in gibbl/s for the Industrial material press in bending mode")
- .getInt(pollutionPerSecondMultiIndustrialPlatePress_ModeBending);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiIndustrialPlatePress_ModeBending",
+ pollutionPerSecondMultiIndustrialPlatePress_ModeBending,
+ "pollution rate in gibbl/s for the Industrial material press in bending mode")
+ .getInt(pollutionPerSecondMultiIndustrialPlatePress_ModeBending);
pollutionPerSecondMultiIndustrialForgeHammer = config
- .get(
- "pollution",
- "pollutionPerSecondMultiIndustrialForgeHammer",
- pollutionPerSecondMultiIndustrialForgeHammer,
- "pollution rate in gibbl/s for the Industrial Forge Hammer")
- .getInt(pollutionPerSecondMultiIndustrialForgeHammer);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiIndustrialForgeHammer",
+ pollutionPerSecondMultiIndustrialForgeHammer,
+ "pollution rate in gibbl/s for the Industrial Forge Hammer")
+ .getInt(pollutionPerSecondMultiIndustrialForgeHammer);
pollutionPerSecondMultiIndustrialSifter = config
- .get(
- "pollution",
- "pollutionPerSecondMultiIndustrialSifter",
- pollutionPerSecondMultiIndustrialSifter,
- "pollution rate in gibbl/s for the Large Sifter")
- .getInt(pollutionPerSecondMultiIndustrialSifter);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiIndustrialSifter",
+ pollutionPerSecondMultiIndustrialSifter,
+ "pollution rate in gibbl/s for the Large Sifter")
+ .getInt(pollutionPerSecondMultiIndustrialSifter);
pollutionPerSecondMultiIndustrialThermalCentrifuge = config
- .get(
- "pollution",
- "pollutionPerSecondMultiIndustrialThermalCentrifuge",
- pollutionPerSecondMultiIndustrialThermalCentrifuge,
- "pollution rate in gibbl/s for the Large thermal refinery")
- .getInt(pollutionPerSecondMultiIndustrialThermalCentrifuge);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiIndustrialThermalCentrifuge",
+ pollutionPerSecondMultiIndustrialThermalCentrifuge,
+ "pollution rate in gibbl/s for the Large thermal refinery")
+ .getInt(pollutionPerSecondMultiIndustrialThermalCentrifuge);
pollutionPerSecondMultiIndustrialVacuumFreezer = config
- .get(
- "pollution",
- "pollutionPerSecondMultiIndustrialVacuumFreezer",
- pollutionPerSecondMultiIndustrialVacuumFreezer,
- "pollution rate in gibbl/s for the Cryogenic freezer")
- .getInt(pollutionPerSecondMultiIndustrialVacuumFreezer);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiIndustrialVacuumFreezer",
+ pollutionPerSecondMultiIndustrialVacuumFreezer,
+ "pollution rate in gibbl/s for the Cryogenic freezer")
+ .getInt(pollutionPerSecondMultiIndustrialVacuumFreezer);
pollutionPerSecondMultiIndustrialWashPlant_ModeChemBath = config
- .get(
- "pollution",
- "pollutionPerSecondMultiIndustrialWashPlant_ModeChemBath",
- pollutionPerSecondMultiIndustrialWashPlant_ModeChemBath,
- "pollution rate in gibbl/s for the Ore washing plant in chemical bath mode")
- .getInt(pollutionPerSecondMultiIndustrialWashPlant_ModeChemBath);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiIndustrialWashPlant_ModeChemBath",
+ pollutionPerSecondMultiIndustrialWashPlant_ModeChemBath,
+ "pollution rate in gibbl/s for the Ore washing plant in chemical bath mode")
+ .getInt(pollutionPerSecondMultiIndustrialWashPlant_ModeChemBath);
pollutionPerSecondMultiIndustrialWashPlant_ModeWasher = config
- .get(
- "pollution",
- "pollutionPerSecondMultiIndustrialWashPlant_ModeWasher",
- pollutionPerSecondMultiIndustrialWashPlant_ModeWasher,
- "pollution rate in gibbl/s for the Ore washing plant in ore washer mode")
- .getInt(pollutionPerSecondMultiIndustrialWashPlant_ModeWasher);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiIndustrialWashPlant_ModeWasher",
+ pollutionPerSecondMultiIndustrialWashPlant_ModeWasher,
+ "pollution rate in gibbl/s for the Ore washing plant in ore washer mode")
+ .getInt(pollutionPerSecondMultiIndustrialWashPlant_ModeWasher);
pollutionPerSecondMultiIndustrialWireMill = config
- .get(
- "pollution",
- "pollutionPerSecondMultiIndustrialWireMill",
- pollutionPerSecondMultiIndustrialWireMill,
- "pollution rate in gibbl/s for the Wire factory")
- .getInt(pollutionPerSecondMultiIndustrialWireMill);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiIndustrialWireMill",
+ pollutionPerSecondMultiIndustrialWireMill,
+ "pollution rate in gibbl/s for the Wire factory")
+ .getInt(pollutionPerSecondMultiIndustrialWireMill);
pollutionPerSecondMultiIsaMill = config
- .get(
- "pollution",
- "pollutionPerSecondMultiIsaMill",
- pollutionPerSecondMultiIsaMill,
- "pollution rate in gibbl/s for the IsaMill grinding machine")
- .getInt(pollutionPerSecondMultiIsaMill);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiIsaMill",
+ pollutionPerSecondMultiIsaMill,
+ "pollution rate in gibbl/s for the IsaMill grinding machine")
+ .getInt(pollutionPerSecondMultiIsaMill);
pollutionPerSecondMultiAdvDistillationTower_ModeDistillery = config
- .get(
- "pollution",
- "pollutionPerSecondMultiAdvDistillationTower_ModeDistillery",
- pollutionPerSecondMultiAdvDistillationTower_ModeDistillery,
- "pollution rate in gibbl/s for the Dangote distillus in distillery mode")
- .getInt(pollutionPerSecondMultiAdvDistillationTower_ModeDistillery);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiAdvDistillationTower_ModeDistillery",
+ pollutionPerSecondMultiAdvDistillationTower_ModeDistillery,
+ "pollution rate in gibbl/s for the Dangote distillus in distillery mode")
+ .getInt(pollutionPerSecondMultiAdvDistillationTower_ModeDistillery);
pollutionPerSecondMultiAdvDistillationTower_ModeDT = config
- .get(
- "pollution",
- "pollutionPerSecondMultiAdvDistillationTower_ModeDT",
- pollutionPerSecondMultiAdvDistillationTower_ModeDT,
- "pollution rate in gibbl/s for the Dangote distillus in distillation tower mode")
- .getInt(pollutionPerSecondMultiAdvDistillationTower_ModeDT);
- pollutionPerSecondMultiAdvEBF = config.get(
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiAdvDistillationTower_ModeDT",
+ pollutionPerSecondMultiAdvDistillationTower_ModeDT,
+ "pollution rate in gibbl/s for the Dangote distillus in distillation tower mode")
+ .getInt(pollutionPerSecondMultiAdvDistillationTower_ModeDT);
+ pollutionPerSecondMultiAdvEBF = config
+ .get(
"pollution",
"pollutionPerSecondMultiAdvEBF",
pollutionPerSecondMultiAdvEBF,
- "pollution rate in gibbl/s for the Volcanus").getInt(pollutionPerSecondMultiAdvEBF);
- pollutionPerSecondMultiAdvImplosion = config.get(
+ "pollution rate in gibbl/s for the Volcanus")
+ .getInt(pollutionPerSecondMultiAdvEBF);
+ pollutionPerSecondMultiAdvImplosion = config
+ .get(
"pollution",
"pollutionPerSecondMultiAdvImplosion",
pollutionPerSecondMultiAdvImplosion,
- "pollution rate in gibbl/s for the Density^2").getInt(pollutionPerSecondMultiAdvImplosion);
- pollutionPerSecondMultiABS = config.get(
+ "pollution rate in gibbl/s for the Density^2")
+ .getInt(pollutionPerSecondMultiAdvImplosion);
+ pollutionPerSecondMultiABS = config
+ .get(
"pollution",
"pollutionPerSecondMultiABS",
pollutionPerSecondMultiABS,
- "pollution rate in gibbl/s for the Alloy blast furnace").getInt(pollutionPerSecondMultiABS);
- pollutionPerSecondMultiCyclotron = config.get(
+ "pollution rate in gibbl/s for the Alloy blast furnace")
+ .getInt(pollutionPerSecondMultiABS);
+ pollutionPerSecondMultiCyclotron = config
+ .get(
"pollution",
"pollutionPerSecondMultiCyclotron",
pollutionPerSecondMultiCyclotron,
- "pollution rate in gibbl/s for the Cyclotron").getInt(pollutionPerSecondMultiCyclotron);
+ "pollution rate in gibbl/s for the Cyclotron")
+ .getInt(pollutionPerSecondMultiCyclotron);
pollutionPerSecondMultiIndustrialFishingPond = config
- .get(
- "pollution",
- "pollutionPerSecondMultiIndustrialFishingPond",
- pollutionPerSecondMultiIndustrialFishingPond,
- "pollution rate in gibbl/s for the Zuhai - fishing port")
- .getInt(pollutionPerSecondMultiIndustrialFishingPond);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiIndustrialFishingPond",
+ pollutionPerSecondMultiIndustrialFishingPond,
+ "pollution rate in gibbl/s for the Zuhai - fishing port")
+ .getInt(pollutionPerSecondMultiIndustrialFishingPond);
// pollutionPerSecondMultiLargeRocketEngine;
pollutionPerSecondMultiLargeSemiFluidGenerator = config
- .get(
- "pollution",
- "pollutionPerSecondMultiLargeSemiFluidGenerator",
- pollutionPerSecondMultiLargeSemiFluidGenerator,
- "pollution rate in gibbl/s for the Large semifluid burner")
- .getInt(pollutionPerSecondMultiLargeSemiFluidGenerator);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiLargeSemiFluidGenerator",
+ pollutionPerSecondMultiLargeSemiFluidGenerator,
+ "pollution rate in gibbl/s for the Large semifluid burner")
+ .getInt(pollutionPerSecondMultiLargeSemiFluidGenerator);
pollutionPerSecondMultiMassFabricator = config
- .get(
- "pollution",
- "pollutionPerSecondMultiMassFabricator",
- pollutionPerSecondMultiMassFabricator,
- "pollution rate in gibbl/s for the Matter fabrication CPU")
- .getInt(pollutionPerSecondMultiMassFabricator);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiMassFabricator",
+ pollutionPerSecondMultiMassFabricator,
+ "pollution rate in gibbl/s for the Matter fabrication CPU")
+ .getInt(pollutionPerSecondMultiMassFabricator);
pollutionPerSecondMultiRefinery = config
- .get(
- "pollution",
- "pollutionPerSecondMultiRefinery",
- pollutionPerSecondMultiRefinery,
- "pollution rate in gibbl/s for the Reactor fuel processing plant")
- .getInt(pollutionPerSecondMultiRefinery);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiRefinery",
+ pollutionPerSecondMultiRefinery,
+ "pollution rate in gibbl/s for the Reactor fuel processing plant")
+ .getInt(pollutionPerSecondMultiRefinery);
// pollutionPerSecondMultiGeneratorArray;
pollutionPerSecondMultiIndustrialRockBreaker = config
- .get(
- "pollution",
- "pollutionPerSecondMultiIndustrialRockBreaker",
- pollutionPerSecondMultiIndustrialRockBreaker,
- "pollution rate in gibbl/s for the Industrial Rock Breaker")
- .getInt(pollutionPerSecondMultiIndustrialRockBreaker);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiIndustrialRockBreaker",
+ pollutionPerSecondMultiIndustrialRockBreaker,
+ "pollution rate in gibbl/s for the Industrial Rock Breaker")
+ .getInt(pollutionPerSecondMultiIndustrialRockBreaker);
pollutionPerSecondMultiIndustrialChisel = config
- .get(
- "pollution",
- "pollutionPerSecondMultiIndustrialChisel",
- pollutionPerSecondMultiIndustrialChisel,
- "pollution rate in gibbl/s for the Industrial Chisel")
- .getInt(pollutionPerSecondMultiIndustrialChisel);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiIndustrialChisel",
+ pollutionPerSecondMultiIndustrialChisel,
+ "pollution rate in gibbl/s for the Industrial Chisel")
+ .getInt(pollutionPerSecondMultiIndustrialChisel);
pollutionPerSecondMultiTreeFarm = config
- .get(
- "pollution",
- "pollutionPerSecondMultiTreeFarm",
- pollutionPerSecondMultiTreeFarm,
- "pollution rate in gibbl/s for the Tree growth simulator")
- .getInt(pollutionPerSecondMultiTreeFarm);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiTreeFarm",
+ pollutionPerSecondMultiTreeFarm,
+ "pollution rate in gibbl/s for the Tree growth simulator")
+ .getInt(pollutionPerSecondMultiTreeFarm);
pollutionPerSecondMultiFrothFlotationCell = config
- .get(
- "pollution",
- "pollutionPerSecondMultiFrothFlotationCell",
- pollutionPerSecondMultiFrothFlotationCell,
- "pollution rate in gibbl/s for the Flotation cell regulator")
- .getInt(pollutionPerSecondMultiFrothFlotationCell);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiFrothFlotationCell",
+ pollutionPerSecondMultiFrothFlotationCell,
+ "pollution rate in gibbl/s for the Flotation cell regulator")
+ .getInt(pollutionPerSecondMultiFrothFlotationCell);
pollutionPerSecondMultiAutoCrafter = config
- .get(
- "pollution",
- "pollutionPerSecondMultiAutoCrafter",
- pollutionPerSecondMultiAutoCrafter,
- "pollution rate in gibbl/s for the Large-Scale auto assembler v1.01")
- .getInt(pollutionPerSecondMultiAutoCrafter);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiAutoCrafter",
+ pollutionPerSecondMultiAutoCrafter,
+ "pollution rate in gibbl/s for the Large-Scale auto assembler v1.01")
+ .getInt(pollutionPerSecondMultiAutoCrafter);
pollutionPerSecondMultiMolecularTransformer = config
- .get(
- "pollution",
- "pollutionPerSecondMultiMolecularTransformer",
- pollutionPerSecondMultiMolecularTransformer,
- "pollution rate in gibbl/s for the Multiblock Molecular Transformer")
- .getInt(pollutionPerSecondMultiMolecularTransformer);
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiMolecularTransformer",
+ pollutionPerSecondMultiMolecularTransformer,
+ "pollution rate in gibbl/s for the Multiblock Molecular Transformer")
+ .getInt(pollutionPerSecondMultiMolecularTransformer);
pollutionPerSecondMultiThermalBoiler = config
- .get(
- "pollution",
- "pollutionPerSecondMultiThermalBoiler",
- pollutionPerSecondMultiThermalBoiler,
- "pollution rate in gibbl/s for the Thermal boiler")
- .getInt(pollutionPerSecondMultiThermalBoiler);
- pollutionPerSecondMultiAlgaePond = config.get(
+ .get(
+ "pollution",
+ "pollutionPerSecondMultiThermalBoiler",
+ pollutionPerSecondMultiThermalBoiler,
+ "pollution rate in gibbl/s for the Thermal boiler")
+ .getInt(pollutionPerSecondMultiThermalBoiler);
+ pollutionPerSecondMultiAlgaePond = config
+ .get(
"pollution",
"pollutionPerSecondMultiAlgaePond",
pollutionPerSecondMultiAlgaePond,
- "pollution rate in gibbl/s for the Algae farm").getInt(pollutionPerSecondMultiAlgaePond);
+ "pollution rate in gibbl/s for the Algae farm")
+ .getInt(pollutionPerSecondMultiAlgaePond);
basePollutionPerSecondSemiFluidGenerator = config
- .get(
- "pollution",
- "basePollutionPerSecondSemiFluidGenerator",
- basePollutionPerSecondSemiFluidGenerator,
- "base pollution rate in gibbl/s for the single block semi fluid generators")
- .getInt(basePollutionPerSecondSemiFluidGenerator);
- pollutionReleasedByTierSemiFluidGenerator = config.get(
+ .get(
"pollution",
- "pollutionReleasedByTierSemiFluidGenerator",
- pollutionReleasedByTierSemiFluidGenerator,
- "coefficient applied to the base rate of the single block semi fluid generators based on its tier (first is tier 0 aka ULV)")
- .getDoubleList();
+ "basePollutionPerSecondSemiFluidGenerator",
+ basePollutionPerSecondSemiFluidGenerator,
+ "base pollution rate in gibbl/s for the single block semi fluid generators")
+ .getInt(basePollutionPerSecondSemiFluidGenerator);
+ pollutionReleasedByTierSemiFluidGenerator = config.get(
+ "pollution",
+ "pollutionReleasedByTierSemiFluidGenerator",
+ pollutionReleasedByTierSemiFluidGenerator,
+ "coefficient applied to the base rate of the single block semi fluid generators based on its tier (first is tier 0 aka ULV)")
+ .getDoubleList();
basePollutionPerSecondBoiler = config
- .get(
- "pollution",
- "basePollutionPerSecondBoiler",
- basePollutionPerSecondBoiler,
- "base pollution rate in gibbl/s for the single block boilers")
- .getInt(basePollutionPerSecondBoiler);
- pollutionReleasedByTierBoiler = config.get(
+ .get(
"pollution",
- "pollutionReleasedByTierBoiler",
- pollutionReleasedByTierBoiler,
- "coefficient applied to the base rate of the single block semi fluid generators based on its tier (first is tier 0 aka ULV)")
- .getDoubleList();
+ "basePollutionPerSecondBoiler",
+ basePollutionPerSecondBoiler,
+ "base pollution rate in gibbl/s for the single block boilers")
+ .getInt(basePollutionPerSecondBoiler);
+ pollutionReleasedByTierBoiler = config.get(
+ "pollution",
+ "pollutionReleasedByTierBoiler",
+ pollutionReleasedByTierBoiler,
+ "coefficient applied to the base rate of the single block semi fluid generators based on its tier (first is tier 0 aka ULV)")
+ .getDoubleList();
baseMinPollutionPerSecondRocketFuelGenerator = config
- .get(
- "pollution",
- "baseMinPollutionPerSecondRocketFuelGenerator",
- baseMinPollutionPerSecondRocketFuelGenerator,
- "minimum base pollution rate in gibbl/s for the single block rocket engines")
- .getInt(baseMinPollutionPerSecondRocketFuelGenerator);
+ .get(
+ "pollution",
+ "baseMinPollutionPerSecondRocketFuelGenerator",
+ baseMinPollutionPerSecondRocketFuelGenerator,
+ "minimum base pollution rate in gibbl/s for the single block rocket engines")
+ .getInt(baseMinPollutionPerSecondRocketFuelGenerator);
baseMaxPollutionPerSecondRocketFuelGenerator = config
- .get(
- "pollution",
- "baseMaxPollutionPerSecondRocketFuelGenerator",
- baseMaxPollutionPerSecondRocketFuelGenerator,
- "maximum base pollution rate in gibbl/s for the single block rocket engines")
- .getInt(baseMaxPollutionPerSecondRocketFuelGenerator);
- pollutionReleasedByTierRocketFuelGenerator = config.get(
+ .get(
"pollution",
- "pollutionReleasedByTierRocketFuelGenerator",
- pollutionReleasedByTierRocketFuelGenerator,
- "coefficient applied to the base rate of the single block rocket engines based on its tier (first is tier 0 aka ULV)")
- .getDoubleList();
+ "baseMaxPollutionPerSecondRocketFuelGenerator",
+ baseMaxPollutionPerSecondRocketFuelGenerator,
+ "maximum base pollution rate in gibbl/s for the single block rocket engines")
+ .getInt(baseMaxPollutionPerSecondRocketFuelGenerator);
+ pollutionReleasedByTierRocketFuelGenerator = config.get(
+ "pollution",
+ "pollutionReleasedByTierRocketFuelGenerator",
+ pollutionReleasedByTierRocketFuelGenerator,
+ "coefficient applied to the base rate of the single block rocket engines based on its tier (first is tier 0 aka ULV)")
+ .getDoubleList();
basePollutionPerSecondGeothermalGenerator = config
- .get(
- "pollution",
- "basePollutionPerSecondGeothermalGenerator",
- basePollutionPerSecondGeothermalGenerator,
- "base pollution rate in gibbl/s for the geothermal engines")
- .getInt(basePollutionPerSecondGeothermalGenerator);
- pollutionReleasedByTierGeothermalGenerator = config.get(
+ .get(
"pollution",
- "pollutionReleasedByTierGeothermalGenerator",
- pollutionReleasedByTierGeothermalGenerator,
- "coefficient applied to the base rate of the single block geothermal engines based on its tier (first is tier 0 aka ULV)")
- .getDoubleList();
+ "basePollutionPerSecondGeothermalGenerator",
+ basePollutionPerSecondGeothermalGenerator,
+ "base pollution rate in gibbl/s for the geothermal engines")
+ .getInt(basePollutionPerSecondGeothermalGenerator);
+ pollutionReleasedByTierGeothermalGenerator = config.get(
+ "pollution",
+ "pollutionReleasedByTierGeothermalGenerator",
+ pollutionReleasedByTierGeothermalGenerator,
+ "coefficient applied to the base rate of the single block geothermal engines based on its tier (first is tier 0 aka ULV)")
+ .getDoubleList();
// Visual
- enableAnimatedTextures = config.getBoolean(
- "enableAnimatedTextures",
- "visual",
- true,
- "Enables Animated GT++ Textures, Requires Restart");
+ enableAnimatedTextures = config
+ .getBoolean("enableAnimatedTextures", "visual", true, "Enables Animated GT++ Textures, Requires Restart");
config.save();
}
}
diff --git a/src/main/java/gtPlusPlus/core/container/Container_CircuitProgrammer.java b/src/main/java/gtPlusPlus/core/container/Container_CircuitProgrammer.java
index 5eebcf5654..f1e84f439f 100644
--- a/src/main/java/gtPlusPlus/core/container/Container_CircuitProgrammer.java
+++ b/src/main/java/gtPlusPlus/core/container/Container_CircuitProgrammer.java
@@ -96,7 +96,7 @@ public class Container_CircuitProgrammer extends Container {
for (var6 = 0; var6 < 3; ++var6) {
for (var7 = 0; var7 < 9; ++var7) {
this.addSlotToContainer(
- new Slot(inventory, var7 + (var6 * 9) + 9, 8 + (var7 * 18), 84 + (var6 * 18)));
+ new Slot(inventory, var7 + (var6 * 9) + 9, 8 + (var7 * 18), 84 + (var6 * 18)));
}
}
// Player Hotbar
@@ -110,7 +110,7 @@ public class Container_CircuitProgrammer extends Container {
@Override
public ItemStack slotClick(final int aSlotIndex, final int aMouseclick, final int aShifthold,
- final EntityPlayer aPlayer) {
+ final EntityPlayer aPlayer) {
if (!aPlayer.worldObj.isRemote) {
if ((aSlotIndex == 999) || (aSlotIndex == -999)) {
diff --git a/src/main/java/gtPlusPlus/core/container/Container_DecayablesChest.java b/src/main/java/gtPlusPlus/core/container/Container_DecayablesChest.java
index 55227e6ab0..d8bab9395a 100644
--- a/src/main/java/gtPlusPlus/core/container/Container_DecayablesChest.java
+++ b/src/main/java/gtPlusPlus/core/container/Container_DecayablesChest.java
@@ -66,7 +66,7 @@ public class Container_DecayablesChest extends Container {
@Override
public ItemStack slotClick(final int aSlotIndex, final int aMouseclick, final int aShifthold,
- final EntityPlayer aPlayer) {
+ final EntityPlayer aPlayer) {
if (!aPlayer.worldObj.isRemote) {
if ((aSlotIndex == 999) || (aSlotIndex == -999)) {
diff --git a/src/main/java/gtPlusPlus/core/container/Container_FishTrap.java b/src/main/java/gtPlusPlus/core/container/Container_FishTrap.java
index 3dd73a1aaf..881311897f 100644
--- a/src/main/java/gtPlusPlus/core/container/Container_FishTrap.java
+++ b/src/main/java/gtPlusPlus/core/container/Container_FishTrap.java
@@ -67,7 +67,7 @@ public class Container_FishTrap extends Container {
@Override
public ItemStack slotClick(final int aSlotIndex, final int aMouseclick, final int aShifthold,
- final EntityPlayer aPlayer) {
+ final EntityPlayer aPlayer) {
if (!aPlayer.worldObj.isRemote) {
if ((aSlotIndex == 999) || (aSlotIndex == -999)) {
diff --git a/src/main/java/gtPlusPlus/core/container/Container_PestKiller.java b/src/main/java/gtPlusPlus/core/container/Container_PestKiller.java
index f3d4c361a1..d6afa0d68f 100644
--- a/src/main/java/gtPlusPlus/core/container/Container_PestKiller.java
+++ b/src/main/java/gtPlusPlus/core/container/Container_PestKiller.java
@@ -65,7 +65,8 @@ public class Container_PestKiller extends Container {
public FluidStack getFluidOfStoredTank() {
if (tile_entity != null) {
if (tile_entity.getTank() != null) {
- return tile_entity.getTank().getFluid();
+ return tile_entity.getTank()
+ .getFluid();
}
}
return null;
@@ -78,7 +79,7 @@ public class Container_PestKiller extends Container {
@Override
public ItemStack slotClick(final int aSlotIndex, final int aMouseclick, final int aShifthold,
- final EntityPlayer aPlayer) {
+ final EntityPlayer aPlayer) {
boolean fluid = false;
if (aSlotIndex == 2) {
fluid = true;
diff --git a/src/main/java/gtPlusPlus/core/container/Container_ProjectTable.java b/src/main/java/gtPlusPlus/core/container/Container_ProjectTable.java
index a98097967a..1702be19ab 100644
--- a/src/main/java/gtPlusPlus/core/container/Container_ProjectTable.java
+++ b/src/main/java/gtPlusPlus/core/container/Container_ProjectTable.java
@@ -59,14 +59,14 @@ public class Container_ProjectTable extends Container {
this.addSlotToContainer(new SlotNoInput(this.inventoryOutputs, 1, 26 + (18 * 6), 44));
this.addSlotToContainer(
- new SlotCraftingNoCollect(inventory.player, this.craftMatrix, this.craftResult, 0, 26 + (18 * 4), 25));
+ new SlotCraftingNoCollect(inventory.player, this.craftMatrix, this.craftResult, 0, 26 + (18 * 4), 25));
int o = 0;
// Storage Side
for (var6 = 0; var6 < 3; ++var6) {
for (var7 = 0; var7 < 3; ++var7) {
this.addSlotToContainer(
- new Slot(this.craftMatrix, nextFreeSlot, 8 + 18 + (var7 * 18), 8 + (var6 * 18)));
+ new Slot(this.craftMatrix, nextFreeSlot, 8 + 18 + (var7 * 18), 8 + (var6 * 18)));
this.slotGrid[o] = nextFreeSlot;
nextFreeSlot++;
o++;
@@ -94,8 +94,9 @@ public class Container_ProjectTable extends Container {
@Override
public void onCraftMatrixChanged(IInventory p_75130_1_) {
this.craftResult.setInventorySlotContents(
- 0,
- CraftingManager.getInstance().findMatchingRecipe(this.craftMatrix, this.worldObj));
+ 0,
+ CraftingManager.getInstance()
+ .findMatchingRecipe(this.craftMatrix, this.worldObj));
}
/**
@@ -116,7 +117,7 @@ public class Container_ProjectTable extends Container {
@Override
public ItemStack slotClick(final int aSlotIndex, final int aMouseclick, final int aShifthold,
- final EntityPlayer aPlayer) {
+ final EntityPlayer aPlayer) {
if (!aPlayer.worldObj.isRemote) {
if ((aSlotIndex == 999) || (aSlotIndex == -999)) {
diff --git a/src/main/java/gtPlusPlus/core/container/Container_SuperJukebox.java b/src/main/java/gtPlusPlus/core/container/Container_SuperJukebox.java
index 4f54a0795a..ab7525c897 100644
--- a/src/main/java/gtPlusPlus/core/container/Container_SuperJukebox.java
+++ b/src/main/java/gtPlusPlus/core/container/Container_SuperJukebox.java
@@ -92,17 +92,17 @@ public class Container_SuperJukebox extends Container {
// Two Control Buttons
this.addSlotToContainer(new SlotNoInput(this.inventoryChest, SLOT_HOLO_PLAY, xStart + (18 * c), 12));
this.addSlotToContainer(
- new SlotNoInput(this.inventoryChest, SLOT_HOLO_LOOP, xStart + (18 * c), 12 + (1 * 18)));
+ new SlotNoInput(this.inventoryChest, SLOT_HOLO_LOOP, xStart + (18 * c), 12 + (1 * 18)));
// Active playing slot for visual
this.addSlotToContainer(
- new SlotJukebox(this.inventoryChest, SLOT_OUTPUT, xStart + (18 * c), 18 + (2 * 18), true));
+ new SlotJukebox(this.inventoryChest, SLOT_OUTPUT, xStart + (18 * c), 18 + (2 * 18), true));
// Player Inventory
for (var6 = 0; var6 < 3; ++var6) {
for (var7 = 0; var7 < 9; ++var7) {
this.addSlotToContainer(
- new Slot(inventory, var7 + (var6 * 9) + 9, 8 + (var7 * 18), 84 + (var6 * 18)));
+ new Slot(inventory, var7 + (var6 * 9) + 9, 8 + (var7 * 18), 84 + (var6 * 18)));
}
}
// Player Hotbar
diff --git a/src/main/java/gtPlusPlus/core/container/Container_VolumetricFlaskSetter.java b/src/main/java/gtPlusPlus/core/container/Container_VolumetricFlaskSetter.java
index 2f2d69364f..0315967263 100644
--- a/src/main/java/gtPlusPlus/core/container/Container_VolumetricFlaskSetter.java
+++ b/src/main/java/gtPlusPlus/core/container/Container_VolumetricFlaskSetter.java
@@ -82,7 +82,7 @@ public class Container_VolumetricFlaskSetter extends Container {
for (var6 = 0; var6 < 3; ++var6) {
for (var7 = 0; var7 < 9; ++var7) {
this.addSlotToContainer(
- new Slot(inventory, var7 + (var6 * 9) + 9, 8 + (var7 * 18), 84 + (var6 * 18)));
+ new Slot(inventory, var7 + (var6 * 9) + 9, 8 + (var7 * 18), 84 + (var6 * 18)));
}
}
// Player Hotbar
diff --git a/src/main/java/gtPlusPlus/core/entity/EntityPrimedMiningExplosive.java b/src/main/java/gtPlusPlus/core/entity/EntityPrimedMiningExplosive.java
index ec189bf6ae..99a86c447a 100644
--- a/src/main/java/gtPlusPlus/core/entity/EntityPrimedMiningExplosive.java
+++ b/src/main/java/gtPlusPlus/core/entity/EntityPrimedMiningExplosive.java
@@ -22,7 +22,7 @@ public class EntityPrimedMiningExplosive extends EntityTNTPrimed {
}
public EntityPrimedMiningExplosive(final World world, final double x, final double y, final double z,
- final EntityLivingBase placingEntity) {
+ final EntityLivingBase placingEntity) {
this(world);
this.setPosition(x, y, z);
final float f = (float) (Math.random() * Math.PI * 2.0D);
@@ -91,270 +91,270 @@ public class EntityPrimedMiningExplosive extends EntityTNTPrimed {
if (e <= 1) {
this.worldObj.spawnParticle("smoke", this.posX, this.posY + 0.5D, this.posZ, 0.0D, 0.0D, 0.0D);
this.worldObj.spawnParticle(
- "largesmoke",
- this.posX + MathUtils.randDouble(0, 1),
- this.posY + MathUtils.randDouble(0, 1),
- this.posZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "largesmoke",
+ this.posX + MathUtils.randDouble(0, 1),
+ this.posY + MathUtils.randDouble(0, 1),
+ this.posZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "cloud",
- this.posX + MathUtils.randDouble(0, 1),
- this.posY + MathUtils.randDouble(0, 1),
- this.posZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "cloud",
+ this.posX + MathUtils.randDouble(0, 1),
+ this.posY + MathUtils.randDouble(0, 1),
+ this.posZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "flame",
- this.posX + MathUtils.randDouble(0, 1),
- this.posY + MathUtils.randDouble(0, 1),
- this.posZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "flame",
+ this.posX + MathUtils.randDouble(0, 1),
+ this.posY + MathUtils.randDouble(0, 1),
+ this.posZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
} else if (e == 2) {
this.worldObj.spawnParticle(
- "explode",
- this.posX + MathUtils.randDouble(0, 1),
- this.posY + MathUtils.randDouble(0, 1),
- this.posZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "explode",
+ this.posX + MathUtils.randDouble(0, 1),
+ this.posY + MathUtils.randDouble(0, 1),
+ this.posZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "largeexplode",
- this.posX + MathUtils.randDouble(0, 1),
- this.posY + MathUtils.randDouble(0, 1),
- this.posZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "largeexplode",
+ this.posX + MathUtils.randDouble(0, 1),
+ this.posY + MathUtils.randDouble(0, 1),
+ this.posZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "hugeexplosion",
- this.posX + MathUtils.randDouble(0, 1),
- this.posY + MathUtils.randDouble(0, 1),
- this.posZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "hugeexplosion",
+ this.posX + MathUtils.randDouble(0, 1),
+ this.posY + MathUtils.randDouble(0, 1),
+ this.posZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
}
} else if (t <= 4) {
int e = MathUtils.randInt(0, 5);
if (e <= 1) {
this.worldObj.spawnParticle("smoke", this.posX, this.posY + 0.5D, this.posZ, 0.0D, 0.0D, 0.0D);
this.worldObj.spawnParticle(
- "largesmoke",
- this.posX + MathUtils.randDouble(0, 1),
- this.posY + MathUtils.randDouble(0, 1),
- this.posZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "largesmoke",
+ this.posX + MathUtils.randDouble(0, 1),
+ this.posY + MathUtils.randDouble(0, 1),
+ this.posZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "cloud",
- this.posX + MathUtils.randDouble(0, 1),
- this.posY + MathUtils.randDouble(0, 1),
- this.posZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "cloud",
+ this.posX + MathUtils.randDouble(0, 1),
+ this.posY + MathUtils.randDouble(0, 1),
+ this.posZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "flame",
- this.posX + MathUtils.randDouble(0, 1),
- this.posY + MathUtils.randDouble(0, 1),
- this.posZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "flame",
+ this.posX + MathUtils.randDouble(0, 1),
+ this.posY + MathUtils.randDouble(0, 1),
+ this.posZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
} else if (e == 2) {
this.worldObj.spawnParticle(
- "explode",
- this.posX + MathUtils.randDouble(0, 1),
- this.posY + MathUtils.randDouble(0, 1),
- this.posZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "explode",
+ this.posX + MathUtils.randDouble(0, 1),
+ this.posY + MathUtils.randDouble(0, 1),
+ this.posZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "largeexplode",
- this.posX + MathUtils.randDouble(0, 1),
- this.posY + MathUtils.randDouble(0, 1),
- this.posZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "largeexplode",
+ this.posX + MathUtils.randDouble(0, 1),
+ this.posY + MathUtils.randDouble(0, 1),
+ this.posZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "hugeexplosion",
- this.posX + MathUtils.randDouble(0, 1),
- this.posY + MathUtils.randDouble(0, 1),
- this.posZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "hugeexplosion",
+ this.posX + MathUtils.randDouble(0, 1),
+ this.posY + MathUtils.randDouble(0, 1),
+ this.posZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
}
} else if (t <= 6) {
int e = MathUtils.randInt(0, 4);
if (e <= 1) {
this.worldObj.spawnParticle("smoke", this.posX, this.posY + 0.5D, this.posZ, 0.0D, 0.0D, 0.0D);
this.worldObj.spawnParticle(
- "largesmoke",
- this.posX + MathUtils.randDouble(0, 1),
- this.posY + MathUtils.randDouble(0, 1),
- this.posZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "largesmoke",
+ this.posX + MathUtils.randDouble(0, 1),
+ this.posY + MathUtils.randDouble(0, 1),
+ this.posZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "cloud",
- this.posX + MathUtils.randDouble(0, 1),
- this.posY + MathUtils.randDouble(0, 1),
- this.posZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "cloud",
+ this.posX + MathUtils.randDouble(0, 1),
+ this.posY + MathUtils.randDouble(0, 1),
+ this.posZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "flame",
- this.posX + MathUtils.randDouble(0, 1),
- this.posY + MathUtils.randDouble(0, 1),
- this.posZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "flame",
+ this.posX + MathUtils.randDouble(0, 1),
+ this.posY + MathUtils.randDouble(0, 1),
+ this.posZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
} else if (e == 2) {
this.worldObj.spawnParticle(
- "explode",
- this.posX + MathUtils.randDouble(0, 1),
- this.posY + MathUtils.randDouble(0, 1),
- this.posZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "explode",
+ this.posX + MathUtils.randDouble(0, 1),
+ this.posY + MathUtils.randDouble(0, 1),
+ this.posZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "largeexplode",
- this.posX + MathUtils.randDouble(0, 1),
- this.posY + MathUtils.randDouble(0, 1),
- this.posZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "largeexplode",
+ this.posX + MathUtils.randDouble(0, 1),
+ this.posY + MathUtils.randDouble(0, 1),
+ this.posZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "hugeexplosion",
- this.posX + MathUtils.randDouble(0, 1),
- this.posY + MathUtils.randDouble(0, 1),
- this.posZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "hugeexplosion",
+ this.posX + MathUtils.randDouble(0, 1),
+ this.posY + MathUtils.randDouble(0, 1),
+ this.posZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
}
} else if (t <= 8) {
int e = MathUtils.randInt(0, 1);
if (e <= 1) {
this.worldObj.spawnParticle("smoke", this.posX, this.posY + 0.5D, this.posZ, 0.0D, 0.0D, 0.0D);
this.worldObj.spawnParticle(
- "largesmoke",
- this.posX + MathUtils.randDouble(0, 1),
- this.posY + MathUtils.randDouble(0, 1),
- this.posZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "largesmoke",
+ this.posX + MathUtils.randDouble(0, 1),
+ this.posY + MathUtils.randDouble(0, 1),
+ this.posZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "cloud",
- this.posX + MathUtils.randDouble(0, 1),
- this.posY + MathUtils.randDouble(0, 1),
- this.posZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "cloud",
+ this.posX + MathUtils.randDouble(0, 1),
+ this.posY + MathUtils.randDouble(0, 1),
+ this.posZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "flame",
- this.posX + MathUtils.randDouble(0, 1),
- this.posY + MathUtils.randDouble(0, 1),
- this.posZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "flame",
+ this.posX + MathUtils.randDouble(0, 1),
+ this.posY + MathUtils.randDouble(0, 1),
+ this.posZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
} else if (e == 2) {
this.worldObj.spawnParticle(
- "explode",
- this.posX + MathUtils.randDouble(0, 1),
- this.posY + MathUtils.randDouble(0, 1),
- this.posZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "explode",
+ this.posX + MathUtils.randDouble(0, 1),
+ this.posY + MathUtils.randDouble(0, 1),
+ this.posZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "largeexplode",
- this.posX + MathUtils.randDouble(0, 1),
- this.posY + MathUtils.randDouble(0, 1),
- this.posZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "largeexplode",
+ this.posX + MathUtils.randDouble(0, 1),
+ this.posY + MathUtils.randDouble(0, 1),
+ this.posZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "hugeexplosion",
- this.posX + MathUtils.randDouble(0, 1),
- this.posY + MathUtils.randDouble(0, 1),
- this.posZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "hugeexplosion",
+ this.posX + MathUtils.randDouble(0, 1),
+ this.posY + MathUtils.randDouble(0, 1),
+ this.posZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
}
} else if (t <= 10) {
int e = MathUtils.randInt(0, 6);
if (e <= 1) {
this.worldObj.spawnParticle("smoke", this.posX, this.posY + 0.5D, this.posZ, 0.0D, 0.0D, 0.0D);
this.worldObj.spawnParticle(
- "largesmoke",
- this.posX + MathUtils.randDouble(0, 1),
- this.posY + MathUtils.randDouble(0, 1),
- this.posZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "largesmoke",
+ this.posX + MathUtils.randDouble(0, 1),
+ this.posY + MathUtils.randDouble(0, 1),
+ this.posZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "cloud",
- this.posX + MathUtils.randDouble(0, 1),
- this.posY + MathUtils.randDouble(0, 1),
- this.posZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "cloud",
+ this.posX + MathUtils.randDouble(0, 1),
+ this.posY + MathUtils.randDouble(0, 1),
+ this.posZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "flame",
- this.posX + MathUtils.randDouble(0, 1),
- this.posY + MathUtils.randDouble(0, 1),
- this.posZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "flame",
+ this.posX + MathUtils.randDouble(0, 1),
+ this.posY + MathUtils.randDouble(0, 1),
+ this.posZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
} else if (e >= 2) {
this.worldObj.spawnParticle(
- "explode",
- this.posX + MathUtils.randDouble(0, 1),
- this.posY + MathUtils.randDouble(0, 1),
- this.posZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "explode",
+ this.posX + MathUtils.randDouble(0, 1),
+ this.posY + MathUtils.randDouble(0, 1),
+ this.posZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "largeexplode",
- this.posX + MathUtils.randDouble(0, 1),
- this.posY + MathUtils.randDouble(0, 1),
- this.posZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "largeexplode",
+ this.posX + MathUtils.randDouble(0, 1),
+ this.posY + MathUtils.randDouble(0, 1),
+ this.posZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "hugeexplosion",
- this.posX + MathUtils.randDouble(0, 1),
- this.posY + MathUtils.randDouble(0, 1),
- this.posZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "hugeexplosion",
+ this.posX + MathUtils.randDouble(0, 1),
+ this.posY + MathUtils.randDouble(0, 1),
+ this.posZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
}
}
}
diff --git a/src/main/java/gtPlusPlus/core/entity/InternalEntityRegistry.java b/src/main/java/gtPlusPlus/core/entity/InternalEntityRegistry.java
index 1bd9d09b60..a971541bc2 100644
--- a/src/main/java/gtPlusPlus/core/entity/InternalEntityRegistry.java
+++ b/src/main/java/gtPlusPlus/core/entity/InternalEntityRegistry.java
@@ -18,53 +18,47 @@ public class InternalEntityRegistry {
Logger.INFO("Registering GT++ Entities.");
EntityRegistry.registerModEntity(
- EntityPrimedMiningExplosive.class,
- "MiningCharge",
- mEntityID++,
- GTplusplus.instance,
- 64,
- 20,
- true);
+ EntityPrimedMiningExplosive.class,
+ "MiningCharge",
+ mEntityID++,
+ GTplusplus.instance,
+ 64,
+ 20,
+ true);
- EntityRegistry.registerModEntity(
- EntityToxinballSmall.class,
- "toxinBall",
- mEntityID++,
- GTplusplus.instance,
- 64,
- 20,
- true);
+ EntityRegistry
+ .registerModEntity(EntityToxinballSmall.class, "toxinBall", mEntityID++, GTplusplus.instance, 64, 20, true);
EntityRegistry.registerModEntity(
- EntityStaballoyConstruct.class,
- "constructStaballoy",
- mEntityID++,
- GTplusplus.instance,
- 64,
- 20,
- true);
+ EntityStaballoyConstruct.class,
+ "constructStaballoy",
+ mEntityID++,
+ GTplusplus.instance,
+ 64,
+ 20,
+ true);
ItemCustomSpawnEgg.registerEntityForSpawnEgg(
- 0,
- "constructStaballoy",
- Utils.rgbtoHexValue(20, 200, 20),
- Utils.rgbtoHexValue(20, 20, 20));
+ 0,
+ "constructStaballoy",
+ Utils.rgbtoHexValue(20, 200, 20),
+ Utils.rgbtoHexValue(20, 20, 20));
EntityRegistry
- .registerModEntity(EntitySickBlaze.class, "sickBlaze", mEntityID++, GTplusplus.instance, 64, 20, true);
+ .registerModEntity(EntitySickBlaze.class, "sickBlaze", mEntityID++, GTplusplus.instance, 64, 20, true);
ItemCustomSpawnEgg.registerEntityForSpawnEgg(
- 1,
- "sickBlaze",
- Utils.rgbtoHexValue(40, 180, 40),
- Utils.rgbtoHexValue(75, 75, 75));
+ 1,
+ "sickBlaze",
+ Utils.rgbtoHexValue(40, 180, 40),
+ Utils.rgbtoHexValue(75, 75, 75));
EntityRegistry.registerModEntity(
- EntityLightningAttack.class,
- "EntityLightningAttack",
- mEntityID++,
- GTplusplus.instance,
- 64,
- 20,
- true);
+ EntityLightningAttack.class,
+ "EntityLightningAttack",
+ mEntityID++,
+ GTplusplus.instance,
+ 64,
+ 20,
+ true);
}
}
diff --git a/src/main/java/gtPlusPlus/core/entity/monster/EntitySickBlaze.java b/src/main/java/gtPlusPlus/core/entity/monster/EntitySickBlaze.java
index c5301958ad..38940d3ad6 100644
--- a/src/main/java/gtPlusPlus/core/entity/monster/EntitySickBlaze.java
+++ b/src/main/java/gtPlusPlus/core/entity/monster/EntitySickBlaze.java
@@ -32,9 +32,12 @@ public class EntitySickBlaze extends EntityMob {
@Override
protected void applyEntityAttributes() {
super.applyEntityAttributes();
- this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(20.0D);
- this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(1.5D);
- this.getEntityAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(6.0D);
+ this.getEntityAttribute(SharedMonsterAttributes.maxHealth)
+ .setBaseValue(20.0D);
+ this.getEntityAttribute(SharedMonsterAttributes.movementSpeed)
+ .setBaseValue(1.5D);
+ this.getEntityAttribute(SharedMonsterAttributes.attackDamage)
+ .setBaseValue(6.0D);
}
@Override
@@ -99,9 +102,8 @@ public class EntitySickBlaze extends EntityMob {
this.heightOffset = 0.5F + (float) this.rand.nextGaussian() * 3.0F;
}
- if (this.getEntityToAttack() != null
- && this.getEntityToAttack().posY + this.getEntityToAttack().getEyeHeight()
- > this.posY + this.getEyeHeight() + this.heightOffset) {
+ if (this.getEntityToAttack() != null && this.getEntityToAttack().posY + this.getEntityToAttack()
+ .getEyeHeight() > this.posY + this.getEyeHeight() + this.heightOffset) {
this.motionY += (0.30000001192092896D - this.motionY) * 0.30000001192092896D;
}
}
@@ -112,13 +114,13 @@ public class EntitySickBlaze extends EntityMob {
for (int i = 0; i < 2; ++i) {
this.worldObj.spawnParticle(
- "crit",
- this.posX + (this.rand.nextDouble() - 0.5D) * this.width,
- this.posY + this.rand.nextDouble() * this.height,
- this.posZ + (this.rand.nextDouble() - 0.5D) * this.width,
- 0.0D,
- 0.0D,
- 0.0D);
+ "crit",
+ this.posX + (this.rand.nextDouble() - 0.5D) * this.width,
+ this.posY + this.rand.nextDouble() * this.height,
+ this.posZ + (this.rand.nextDouble() - 0.5D) * this.width,
+ 0.0D,
+ 0.0D,
+ 0.0D);
}
super.onLivingUpdate();
@@ -130,8 +132,8 @@ public class EntitySickBlaze extends EntityMob {
@Override
protected void attackEntity(Entity entity, float p_70785_2_) {
if (this.attackTime <= 0 && p_70785_2_ < 2.0F
- && entity.boundingBox.maxY > this.boundingBox.minY
- && entity.boundingBox.minY < this.boundingBox.maxY) {
+ && entity.boundingBox.maxY > this.boundingBox.minY
+ && entity.boundingBox.minY < this.boundingBox.maxY) {
this.attackTime = 20;
this.attackEntityAsMob(entity);
} else if (p_70785_2_ < 30.0F) {
@@ -157,11 +159,11 @@ public class EntitySickBlaze extends EntityMob {
for (int i = 0; i < 1; ++i) {
EntityToxinballSmall entitysmalltoxinball = new EntityToxinballSmall(
- this.worldObj,
- this,
- d0 + this.rand.nextGaussian() * f1,
- d1,
- d2 + this.rand.nextGaussian() * f1);
+ this.worldObj,
+ this,
+ d0 + this.rand.nextGaussian() * f1,
+ d1,
+ d2 + this.rand.nextGaussian() * f1);
entitysmalltoxinball.posY = this.posY + this.height / 2.0F + 0.5D;
this.worldObj.spawnEntityInWorld(entitysmalltoxinball);
}
diff --git a/src/main/java/gtPlusPlus/core/entity/monster/EntityStaballoyConstruct.java b/src/main/java/gtPlusPlus/core/entity/monster/EntityStaballoyConstruct.java
index 7634266046..c58f5ba9df 100644
--- a/src/main/java/gtPlusPlus/core/entity/monster/EntityStaballoyConstruct.java
+++ b/src/main/java/gtPlusPlus/core/entity/monster/EntityStaballoyConstruct.java
@@ -48,10 +48,14 @@ public class EntityStaballoyConstruct extends EntityIronGolem {
super(world);
this.experienceValue = 250;
this.setSize(1.4F, 2.9F);
- this.getNavigator().setAvoidsWater(true);
- this.getNavigator().setBreakDoors(true);
- this.getNavigator().setCanSwim(false);
- this.getNavigator().setAvoidSun(false);
+ this.getNavigator()
+ .setAvoidsWater(true);
+ this.getNavigator()
+ .setBreakDoors(true);
+ this.getNavigator()
+ .setCanSwim(false);
+ this.getNavigator()
+ .setAvoidSun(false);
this.tasks.addTask(1, new EntityAIAttackOnCollide(this, 1.0D, true));
this.tasks.addTask(2, new EntityAIMoveTowardsTarget(this, 0.9D, 32.0F));
// this.tasks.addTask(3, new EntityAIMoveThroughVillage(this, 0.6D, true));
@@ -61,8 +65,8 @@ public class EntityStaballoyConstruct extends EntityIronGolem {
this.tasks.addTask(6, new EntityAILookIdle(this));
this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false));
this.targetTasks.addTask(
- 2,
- new EntityAINearestAttackableTarget(this, EntityLiving.class, 0, false, true, IMob.mobSelector));
+ 2,
+ new EntityAINearestAttackableTarget(this, EntityLiving.class, 0, false, true, IMob.mobSelector));
}
/**
@@ -112,8 +116,10 @@ public class EntityStaballoyConstruct extends EntityIronGolem {
@Override
protected void applyEntityAttributes() {
super.applyEntityAttributes();
- this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(500.0D);
- this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(0.5D);
+ this.getEntityAttribute(SharedMonsterAttributes.maxHealth)
+ .setBaseValue(500.0D);
+ this.getEntityAttribute(SharedMonsterAttributes.movementSpeed)
+ .setBaseValue(0.5D);
}
/**
@@ -126,7 +132,8 @@ public class EntityStaballoyConstruct extends EntityIronGolem {
@Override
protected void collideWithEntity(Entity p_82167_1_) {
- if (p_82167_1_ instanceof IMob && this.getRNG().nextInt(20) == 0) {
+ if (p_82167_1_ instanceof IMob && this.getRNG()
+ .nextInt(20) == 0) {
this.setAttackTarget((EntityLivingBase) p_82167_1_);
}
@@ -146,7 +153,7 @@ public class EntityStaballoyConstruct extends EntityIronGolem {
}
if (this.motionX * this.motionX + this.motionZ * this.motionZ > 2.500000277905201E-7D
- && this.rand.nextInt(5) == 0) {
+ && this.rand.nextInt(5) == 0) {
int i = MathHelper.floor_double(this.posX);
int j = MathHelper.floor_double(this.posY - 0.20000000298023224D - this.yOffset);
int k = MathHelper.floor_double(this.posZ);
@@ -154,13 +161,13 @@ public class EntityStaballoyConstruct extends EntityIronGolem {
if (block.getMaterial() != Material.air) {
this.worldObj.spawnParticle(
- "blockcrack_" + Block.getIdFromBlock(block) + "_" + this.worldObj.getBlockMetadata(i, j, k),
- this.posX + (this.rand.nextFloat() - 0.5D) * this.width,
- this.boundingBox.minY + 0.1D,
- this.posZ + (this.rand.nextFloat() - 0.5D) * this.width,
- 4.0D * (this.rand.nextFloat() - 0.5D),
- 0.5D,
- (this.rand.nextFloat() - 0.5D) * 4.0D);
+ "blockcrack_" + Block.getIdFromBlock(block) + "_" + this.worldObj.getBlockMetadata(i, j, k),
+ this.posX + (this.rand.nextFloat() - 0.5D) * this.width,
+ this.boundingBox.minY + 0.1D,
+ this.posZ + (this.rand.nextFloat() - 0.5D) * this.width,
+ 4.0D * (this.rand.nextFloat() - 0.5D),
+ 0.5D,
+ (this.rand.nextFloat() - 0.5D) * 4.0D);
}
}
}
@@ -332,73 +339,73 @@ public class EntityStaballoyConstruct extends EntityIronGolem {
for (int o = 0; o < r2; o++) {
if (r <= 0.3) {
this.worldObj.spawnParticle(
- "smoke",
- this.posX + MathUtils.randDouble(-2, 2),
- this.posY + MathUtils.randDouble(-2, 2),
- this.posZ + MathUtils.randDouble(-2, 2),
- 0.0D,
- 0.0D,
- 0.0D);
+ "smoke",
+ this.posX + MathUtils.randDouble(-2, 2),
+ this.posY + MathUtils.randDouble(-2, 2),
+ this.posZ + MathUtils.randDouble(-2, 2),
+ 0.0D,
+ 0.0D,
+ 0.0D);
} else if (r <= 0.6) {
this.worldObj.spawnParticle(
- "largesmoke",
- this.posX + MathUtils.randDouble(-2, 2),
- this.posY + MathUtils.randDouble(-2, 2),
- this.posZ + MathUtils.randDouble(-2, 2),
- 0.0D,
- 0.0D,
- 0.0D);
+ "largesmoke",
+ this.posX + MathUtils.randDouble(-2, 2),
+ this.posY + MathUtils.randDouble(-2, 2),
+ this.posZ + MathUtils.randDouble(-2, 2),
+ 0.0D,
+ 0.0D,
+ 0.0D);
}
if (r <= 0.3) {
this.worldObj.spawnParticle(
- "cloud",
- this.posX + MathUtils.randDouble(-2, 2),
- this.posY + MathUtils.randDouble(-2, 2),
- this.posZ + MathUtils.randDouble(-2, 2),
- 0.0D,
- 0.0D,
- 0.0D);
+ "cloud",
+ this.posX + MathUtils.randDouble(-2, 2),
+ this.posY + MathUtils.randDouble(-2, 2),
+ this.posZ + MathUtils.randDouble(-2, 2),
+ 0.0D,
+ 0.0D,
+ 0.0D);
} else if (r <= 0.7) {
this.worldObj.spawnParticle(
- "flame",
- this.posX + MathUtils.randDouble(-2, 2),
- this.posY + MathUtils.randDouble(-2, 2),
- this.posZ + MathUtils.randDouble(-2, 2),
- 0.0D,
- 0.0D,
- 0.0D);
+ "flame",
+ this.posX + MathUtils.randDouble(-2, 2),
+ this.posY + MathUtils.randDouble(-2, 2),
+ this.posZ + MathUtils.randDouble(-2, 2),
+ 0.0D,
+ 0.0D,
+ 0.0D);
}
if (r <= 0.2) {
this.worldObj.spawnParticle(
- "explode",
- this.posX + MathUtils.randDouble(-2, 2),
- this.posY + MathUtils.randDouble(-2, 2),
- this.posZ + MathUtils.randDouble(-2, 2),
- 0.0D,
- 0.0D,
- 0.0D);
+ "explode",
+ this.posX + MathUtils.randDouble(-2, 2),
+ this.posY + MathUtils.randDouble(-2, 2),
+ this.posZ + MathUtils.randDouble(-2, 2),
+ 0.0D,
+ 0.0D,
+ 0.0D);
} else if (r <= 0.5) {
this.worldObj.spawnParticle(
- "largeexplode",
- this.posX + MathUtils.randDouble(-2, 2),
- this.posY + MathUtils.randDouble(-2, 2),
- this.posZ + MathUtils.randDouble(-2, 2),
- 0.0D,
- 0.0D,
- 0.0D);
+ "largeexplode",
+ this.posX + MathUtils.randDouble(-2, 2),
+ this.posY + MathUtils.randDouble(-2, 2),
+ this.posZ + MathUtils.randDouble(-2, 2),
+ 0.0D,
+ 0.0D,
+ 0.0D);
} else if (r <= 0.7) {
this.worldObj.spawnParticle(
- "hugeexplosion",
- this.posX + MathUtils.randDouble(-2, 2),
- this.posY + MathUtils.randDouble(-2, 2),
- this.posZ + MathUtils.randDouble(-2, 2),
- 0.0D,
- 0.0D,
- 0.0D);
+ "hugeexplosion",
+ this.posX + MathUtils.randDouble(-2, 2),
+ this.posY + MathUtils.randDouble(-2, 2),
+ this.posZ + MathUtils.randDouble(-2, 2),
+ 0.0D,
+ 0.0D,
+ 0.0D);
}
}
}
@@ -475,14 +482,15 @@ public class EntityStaballoyConstruct extends EntityIronGolem {
public boolean handleFluidMovement(Material fluid) {
if (this.worldObj.handleMaterialAcceleration(
- this.boundingBox.expand(0.0D, -0.4000000059604645D, 0.0D).contract(0.001D, 0.001D, 0.001D),
- fluid,
- this)) {
+ this.boundingBox.expand(0.0D, -0.4000000059604645D, 0.0D)
+ .contract(0.001D, 0.001D, 0.001D),
+ fluid,
+ this)) {
if (!this.inFluid && !this.mReflectFirstUpdate) {
float f = MathHelper.sqrt_double(
- this.motionX * this.motionX * 0.20000000298023224D + this.motionY * this.motionY
- + this.motionZ * this.motionZ * 0.20000000298023224D)
- * 0.2F;
+ this.motionX * this.motionX * 0.20000000298023224D + this.motionY * this.motionY
+ + this.motionZ * this.motionZ * 0.20000000298023224D)
+ * 0.2F;
if (f > 1.0F) {
f = 1.0F;
@@ -498,26 +506,26 @@ public class EntityStaballoyConstruct extends EntityIronGolem {
f2 = (this.rand.nextFloat() * 2.0F - 1.0F) * this.width;
f3 = (this.rand.nextFloat() * 2.0F - 1.0F) * this.width;
this.worldObj.spawnParticle(
- "bubble",
- this.posX + f2,
- f1 + 1.0F,
- this.posZ + f3,
- this.motionX,
- this.motionY - this.rand.nextFloat() * 0.2F,
- this.motionZ);
+ "bubble",
+ this.posX + f2,
+ f1 + 1.0F,
+ this.posZ + f3,
+ this.motionX,
+ this.motionY - this.rand.nextFloat() * 0.2F,
+ this.motionZ);
}
for (i = 0; i < 1.0F + this.width * 20.0F; ++i) {
f2 = (this.rand.nextFloat() * 2.0F - 1.0F) * this.width;
f3 = (this.rand.nextFloat() * 2.0F - 1.0F) * this.width;
this.worldObj.spawnParticle(
- "splash",
- this.posX + f2,
- f1 + 1.0F,
- this.posZ + f3,
- this.motionX,
- this.motionY,
- this.motionZ);
+ "splash",
+ this.posX + f2,
+ f1 + 1.0F,
+ this.posZ + f3,
+ this.motionX,
+ this.motionY,
+ this.motionZ);
}
}
this.fallDistance = 0.0F;
@@ -555,73 +563,73 @@ public class EntityStaballoyConstruct extends EntityIronGolem {
for (int o = 0; o < r2; o++) {
if (r <= 0.3) {
this.worldObj.spawnParticle(
- "smoke",
- this.posX + MathUtils.randDouble(-4, 4),
- this.posY + MathUtils.randDouble(0, 3),
- this.posZ + MathUtils.randDouble(-4, 4),
- 0.0D,
- 0.0D,
- 0.0D);
+ "smoke",
+ this.posX + MathUtils.randDouble(-4, 4),
+ this.posY + MathUtils.randDouble(0, 3),
+ this.posZ + MathUtils.randDouble(-4, 4),
+ 0.0D,
+ 0.0D,
+ 0.0D);
} else if (r <= 0.6) {
this.worldObj.spawnParticle(
- "largesmoke",
- this.posX + MathUtils.randDouble(-4, 4),
- this.posY + MathUtils.randDouble(-4, 4),
- this.posZ + MathUtils.randDouble(-4, 4),
- 0.0D,
- 0.0D,
- 0.0D);
+ "largesmoke",
+ this.posX + MathUtils.randDouble(-4, 4),
+ this.posY + MathUtils.randDouble(-4, 4),
+ this.posZ + MathUtils.randDouble(-4, 4),
+ 0.0D,
+ 0.0D,
+ 0.0D);
}
if (r <= 0.3) {
this.worldObj.spawnParticle(
- "cloud",
- this.posX + MathUtils.randDouble(-4, 4),
- this.posY + MathUtils.randDouble(-4, 4),
- this.posZ + MathUtils.randDouble(-4, 4),
- 0.0D,
- 0.0D,
- 0.0D);
+ "cloud",
+ this.posX + MathUtils.randDouble(-4, 4),
+ this.posY + MathUtils.randDouble(-4, 4),
+ this.posZ + MathUtils.randDouble(-4, 4),
+ 0.0D,
+ 0.0D,
+ 0.0D);
} else if (r <= 0.7) {
this.worldObj.spawnParticle(
- "flame",
- this.posX + MathUtils.randDouble(-4, 4),
- this.posY + MathUtils.randDouble(-4, 4),
- this.posZ + MathUtils.randDouble(-4, 4),
- 0.0D,
- 0.0D,
- 0.0D);
+ "flame",
+ this.posX + MathUtils.randDouble(-4, 4),
+ this.posY + MathUtils.randDouble(-4, 4),
+ this.posZ + MathUtils.randDouble(-4, 4),
+ 0.0D,
+ 0.0D,
+ 0.0D);
}
if (r <= 0.2) {
this.worldObj.spawnParticle(
- "explode",
- this.posX + MathUtils.randDouble(-4, 4),
- this.posY + MathUtils.randDouble(-4, 4),
- this.posZ + MathUtils.randDouble(-4, 4),
- 0.0D,
- 0.0D,
- 0.0D);
+ "explode",
+ this.posX + MathUtils.randDouble(-4, 4),
+ this.posY + MathUtils.randDouble(-4, 4),
+ this.posZ + MathUtils.randDouble(-4, 4),
+ 0.0D,
+ 0.0D,
+ 0.0D);
} else if (r <= 0.5) {
this.worldObj.spawnParticle(
- "largeexplode",
- this.posX + MathUtils.randDouble(-4, 4),
- this.posY + MathUtils.randDouble(-4, 4),
- this.posZ + MathUtils.randDouble(-4, 4),
- 0.0D,
- 0.0D,
- 0.0D);
+ "largeexplode",
+ this.posX + MathUtils.randDouble(-4, 4),
+ this.posY + MathUtils.randDouble(-4, 4),
+ this.posZ + MathUtils.randDouble(-4, 4),
+ 0.0D,
+ 0.0D,
+ 0.0D);
} else if (r <= 0.7) {
this.worldObj.spawnParticle(
- "hugeexplosion",
- this.posX + MathUtils.randDouble(-4, 4),
- this.posY + MathUtils.randDouble(-4, 4),
- this.posZ + MathUtils.randDouble(-4, 4),
- 0.0D,
- 0.0D,
- 0.0D);
+ "hugeexplosion",
+ this.posX + MathUtils.randDouble(-4, 4),
+ this.posY + MathUtils.randDouble(-4, 4),
+ this.posZ + MathUtils.randDouble(-4, 4),
+ 0.0D,
+ 0.0D,
+ 0.0D);
}
}
}
diff --git a/src/main/java/gtPlusPlus/core/entity/projectile/EntityLightningAttack.java b/src/main/java/gtPlusPlus/core/entity/projectile/EntityLightningAttack.java
index 3f5e755626..e1a4063f49 100644
--- a/src/main/java/gtPlusPlus/core/entity/projectile/EntityLightningAttack.java
+++ b/src/main/java/gtPlusPlus/core/entity/projectile/EntityLightningAttack.java
@@ -15,14 +15,14 @@ import cpw.mods.fml.relauncher.SideOnly;
public class EntityLightningAttack extends EntityWitherSkull {
public EntityLightningAttack(World p_i1794_1_, EntityLivingBase p_i1794_2_, double p_i1794_3_, double p_i1794_5_,
- double p_i1794_7_) {
+ double p_i1794_7_) {
super(p_i1794_1_, p_i1794_2_, p_i1794_3_, p_i1794_5_, p_i1794_7_);
this.setSize(0.3125F, 0.3125F);
}
@SideOnly(Side.CLIENT)
public EntityLightningAttack(World p_i1795_1_, double p_i1795_2_, double p_i1795_4_, double p_i1795_6_,
- double p_i1795_8_, double p_i1795_10_, double p_i1795_12_) {
+ double p_i1795_8_, double p_i1795_10_, double p_i1795_12_) {
super(p_i1795_1_, p_i1795_2_, p_i1795_4_, p_i1795_6_, p_i1795_8_, p_i1795_10_, p_i1795_12_);
this.setSize(0.3125F, 0.3125F);
}
@@ -37,7 +37,7 @@ public class EntityLightningAttack extends EntityWitherSkull {
if (p_70227_1_.entityHit != null) {
if (this.shootingEntity != null) {
if (p_70227_1_.entityHit.attackEntityFrom(DamageSource.causeMobDamage(this.shootingEntity), 8.0F)
- && !p_70227_1_.entityHit.isEntityAlive()) {
+ && !p_70227_1_.entityHit.isEntityAlive()) {
this.shootingEntity.heal(0.5F);
}
} else {
@@ -55,23 +55,24 @@ public class EntityLightningAttack extends EntityWitherSkull {
if (b0 > 0) {
((EntityLivingBase) p_70227_1_.entityHit)
- .addPotionEffect(new PotionEffect(Potion.poison.id, 20 * b0, 1));
+ .addPotionEffect(new PotionEffect(Potion.poison.id, 20 * b0, 1));
((EntityLivingBase) p_70227_1_.entityHit)
- .addPotionEffect(new PotionEffect(Potion.confusion.id, 20 * b0, 1));
+ .addPotionEffect(new PotionEffect(Potion.confusion.id, 20 * b0, 1));
((EntityLivingBase) p_70227_1_.entityHit)
- .addPotionEffect(new PotionEffect(Potion.weakness.id, 20 * b0, 1));
+ .addPotionEffect(new PotionEffect(Potion.weakness.id, 20 * b0, 1));
}
}
}
this.worldObj.newExplosion(
- this,
- this.posX,
- this.posY,
- this.posZ,
- 1.0F,
- false,
- this.worldObj.getGameRules().getGameRuleBooleanValue("mobGriefing"));
+ this,
+ this.posX,
+ this.posY,
+ this.posZ,
+ 1.0F,
+ false,
+ this.worldObj.getGameRules()
+ .getGameRuleBooleanValue("mobGriefing"));
this.setDead();
}
}
diff --git a/src/main/java/gtPlusPlus/core/entity/projectile/EntityToxinball.java b/src/main/java/gtPlusPlus/core/entity/projectile/EntityToxinball.java
index da1a59600d..a3b2f6f28b 100644
--- a/src/main/java/gtPlusPlus/core/entity/projectile/EntityToxinball.java
+++ b/src/main/java/gtPlusPlus/core/entity/projectile/EntityToxinball.java
@@ -82,7 +82,7 @@ public abstract class EntityToxinball extends EntityFireball {
@Override
public void onUpdate() {
if (!this.worldObj.isRemote && (this.shootingEntity != null && this.shootingEntity.isDead
- || !this.worldObj.blockExists(this.entityX, this.entityY, this.entityZ))) {
+ || !this.worldObj.blockExists(this.entityX, this.entityY, this.entityZ))) {
this.setDead();
} else {
super.onUpdate();
@@ -111,34 +111,35 @@ public abstract class EntityToxinball extends EntityFireball {
Vec3 vec3 = Vec3.createVectorHelper(this.entityX, this.entityY, this.entityZ);
Vec3 vec31 = Vec3.createVectorHelper(
- this.entityX + this.motionX,
- this.entityY + this.motionY,
- this.entityZ + this.motionZ);
+ this.entityX + this.motionX,
+ this.entityY + this.motionY,
+ this.entityZ + this.motionZ);
MovingObjectPosition movingobjectposition = this.worldObj.rayTraceBlocks(vec3, vec31);
vec3 = Vec3.createVectorHelper(this.entityX, this.entityY, this.entityZ);
vec31 = Vec3.createVectorHelper(
- this.entityX + this.motionX,
- this.entityY + this.motionY,
- this.entityZ + this.motionZ);
+ this.entityX + this.motionX,
+ this.entityY + this.motionY,
+ this.entityZ + this.motionZ);
if (movingobjectposition != null) {
vec31 = Vec3.createVectorHelper(
- movingobjectposition.hitVec.xCoord,
- movingobjectposition.hitVec.yCoord,
- movingobjectposition.hitVec.zCoord);
+ movingobjectposition.hitVec.xCoord,
+ movingobjectposition.hitVec.yCoord,
+ movingobjectposition.hitVec.zCoord);
}
Entity entity = null;
List<?> list = 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 d0 = 0.0D;
for (Object o : list) {
Entity entity1 = (Entity) o;
if (entity1.canBeCollidedWith()
- && (!entity1.isEntityEqual(this.shootingEntity) || this.ticksInAir >= 25)) {
+ && (!entity1.isEntityEqual(this.shootingEntity) || this.ticksInAir >= 25)) {
float f = 0.3F;
AxisAlignedBB axisalignedbb = entity1.boundingBox.expand(f, f, f);
MovingObjectPosition movingobjectposition1 = axisalignedbb.calculateIntercept(vec3, vec31);
@@ -169,7 +170,7 @@ public abstract class EntityToxinball extends EntityFireball {
this.rotationYaw = (float) (Math.atan2(this.motionZ, this.motionX) * 180.0D / Math.PI) + 90.0F;
for (this.rotationPitch = (float) (Math.atan2(f1, this.motionY) * 180.0D / Math.PI)
- - 90.0F; this.rotationPitch - this.prevRotationPitch < -180.0F; this.prevRotationPitch -= 360.0F) {
+ - 90.0F; this.rotationPitch - this.prevRotationPitch < -180.0F; this.prevRotationPitch -= 360.0F) {
;
}
@@ -193,13 +194,13 @@ public abstract class EntityToxinball extends EntityFireball {
for (int j = 0; j < 4; ++j) {
float f3 = 0.25F;
this.worldObj.spawnParticle(
- "bubble",
- this.entityX - this.motionX * f3,
- this.entityY - this.motionY * f3,
- this.entityZ - this.motionZ * f3,
- this.motionX,
- this.motionY,
- this.motionZ);
+ "bubble",
+ this.entityX - this.motionX * f3,
+ this.entityY - this.motionY * f3,
+ this.entityZ - this.motionZ * f3,
+ this.motionX,
+ this.motionY,
+ this.motionZ);
}
f2 = 0.8F;
@@ -288,7 +289,8 @@ public abstract class EntityToxinball extends EntityFireball {
this.setBeenAttacked();
if (damage.getEntity() != null) {
- Vec3 vec3 = damage.getEntity().getLookVec();
+ Vec3 vec3 = damage.getEntity()
+ .getLookVec();
if (vec3 != null) {
this.motionX = vec3.xCoord;
diff --git a/src/main/java/gtPlusPlus/core/entity/projectile/EntityToxinballSmall.java b/src/main/java/gtPlusPlus/core/entity/projectile/EntityToxinballSmall.java
index bf7e2159c7..44b2e8f694 100644
--- a/src/main/java/gtPlusPlus/core/entity/projectile/EntityToxinballSmall.java
+++ b/src/main/java/gtPlusPlus/core/entity/projectile/EntityToxinballSmall.java
@@ -21,7 +21,7 @@ public class EntityToxinballSmall extends EntityToxinball {
if (!this.worldObj.isRemote) {
if (MoP.entityHit != null) {
if (!MoP.entityHit.isImmuneToFire() && MoP.entityHit
- .attackEntityFrom(DamageSource.causeFireballDamage(this, this.shootingEntity), 5.0F)) {
+ .attackEntityFrom(DamageSource.causeFireballDamage(this, this.shootingEntity), 5.0F)) {
MoP.entityHit.setFire(5);
}
} else {
diff --git a/src/main/java/gtPlusPlus/core/fluids/FluidRegistryHandler.java b/src/main/java/gtPlusPlus/core/fluids/FluidRegistryHandler.java
index 22f9ce0799..b08889b42b 100644
--- a/src/main/java/gtPlusPlus/core/fluids/FluidRegistryHandler.java
+++ b/src/main/java/gtPlusPlus/core/fluids/FluidRegistryHandler.java
@@ -43,8 +43,10 @@ public class FluidRegistryHandler {
FluidRegistry.registerFluid(fluidSludge);
blockFluidSludge = new BlockFluidSludge(fluidSludge, Material.cactus).setBlockName("fluidBlockSludge");
GameRegistry.registerBlock(
- blockFluidSludge,
- GTPlusPlus.ID + "_" + blockFluidSludge.getUnlocalizedName().substring(5));
+ blockFluidSludge,
+ GTPlusPlus.ID + "_"
+ + blockFluidSludge.getUnlocalizedName()
+ .substring(5));
fluidSludge.setUnlocalizedName(blockFluidSludge.getUnlocalizedName());
}
}
diff --git a/src/main/java/gtPlusPlus/core/gui/beta/Gui_ID_Registry.java b/src/main/java/gtPlusPlus/core/gui/beta/Gui_ID_Registry.java
index 2e08493d0d..7da3d1a35c 100644
--- a/src/main/java/gtPlusPlus/core/gui/beta/Gui_ID_Registry.java
+++ b/src/main/java/gtPlusPlus/core/gui/beta/Gui_ID_Registry.java
@@ -15,7 +15,7 @@ public class Gui_ID_Registry {
static {}
private static void registerGuiHandlers(final Gui_Types MU_GuiType,
- final List<Class<? extends IGuiManagerMiscUtils>> guiHandlerClasses) {
+ final List<Class<? extends IGuiManagerMiscUtils>> guiHandlerClasses) {
for (final Class<? extends IGuiManagerMiscUtils> tileGuiHandlerClass : guiHandlerClasses) {
final MU_GuiId guiId = new MU_GuiId(nextId++, MU_GuiType, tileGuiHandlerClass);
classMap.put(tileGuiHandlerClass, guiId);
@@ -28,7 +28,7 @@ public class Gui_ID_Registry {
MU_GuiId guiId = classMap.get(guiHandlerClass);
if (guiId == null) {
for (final Map.Entry<Class<? extends IGuiManagerMiscUtils>, MU_GuiId> classGuiIdEntry : classMap
- .entrySet()) {
+ .entrySet()) {
if (((Class<?>) classGuiIdEntry.getKey()).isAssignableFrom(guiHandlerClass)) {
guiId = classGuiIdEntry.getValue();
break;
diff --git a/src/main/java/gtPlusPlus/core/gui/machine/GUI_CircuitProgrammer.java b/src/main/java/gtPlusPlus/core/gui/machine/GUI_CircuitProgrammer.java
index 6cd3925b46..71d3b36470 100644
--- a/src/main/java/gtPlusPlus/core/gui/machine/GUI_CircuitProgrammer.java
+++ b/src/main/java/gtPlusPlus/core/gui/machine/GUI_CircuitProgrammer.java
@@ -17,8 +17,8 @@ import gtPlusPlus.core.tileentities.general.TileEntityCircuitProgrammer;
public class GUI_CircuitProgrammer extends GuiContainer {
private static final ResourceLocation craftingTableGuiTextures = new ResourceLocation(
- GTPlusPlus.ID,
- "textures/gui/CircuitProgrammer.png");
+ GTPlusPlus.ID,
+ "textures/gui/CircuitProgrammer.png");
public GUI_CircuitProgrammer(final InventoryPlayer player_inventory, final TileEntityCircuitProgrammer te) {
super(new Container_CircuitProgrammer(player_inventory, te));
diff --git a/src/main/java/gtPlusPlus/core/gui/machine/GUI_DecayablesChest.java b/src/main/java/gtPlusPlus/core/gui/machine/GUI_DecayablesChest.java
index eb019b500f..60e0f0e67e 100644
--- a/src/main/java/gtPlusPlus/core/gui/machine/GUI_DecayablesChest.java
+++ b/src/main/java/gtPlusPlus/core/gui/machine/GUI_DecayablesChest.java
@@ -17,8 +17,8 @@ import gtPlusPlus.core.tileentities.general.TileEntityDecayablesChest;
public class GUI_DecayablesChest extends GuiContainer {
private static final ResourceLocation craftingTableGuiTextures = new ResourceLocation(
- GTPlusPlus.ID,
- "textures/gui/FishTrap.png");
+ GTPlusPlus.ID,
+ "textures/gui/FishTrap.png");
public GUI_DecayablesChest(final InventoryPlayer player_inventory, final TileEntityDecayablesChest te) {
super(new Container_DecayablesChest(player_inventory, te));
diff --git a/src/main/java/gtPlusPlus/core/gui/machine/GUI_FishTrap.java b/src/main/java/gtPlusPlus/core/gui/machine/GUI_FishTrap.java
index c67ab36856..d57ef408d0 100644
--- a/src/main/java/gtPlusPlus/core/gui/machine/GUI_FishTrap.java
+++ b/src/main/java/gtPlusPlus/core/gui/machine/GUI_FishTrap.java
@@ -17,8 +17,8 @@ import gtPlusPlus.core.tileentities.general.TileEntityFishTrap;
public class GUI_FishTrap extends GuiContainer {
private static final ResourceLocation craftingTableGuiTextures = new ResourceLocation(
- GTPlusPlus.ID,
- "textures/gui/FishTrap.png");
+ GTPlusPlus.ID,
+ "textures/gui/FishTrap.png");
public GUI_FishTrap(final InventoryPlayer player_inventory, final TileEntityFishTrap te) {
super(new Container_FishTrap(player_inventory, te));
diff --git a/src/main/java/gtPlusPlus/core/gui/machine/GUI_PestKiller.java b/src/main/java/gtPlusPlus/core/gui/machine/GUI_PestKiller.java
index e08ca4e67b..bed8707fc4 100644
--- a/src/main/java/gtPlusPlus/core/gui/machine/GUI_PestKiller.java
+++ b/src/main/java/gtPlusPlus/core/gui/machine/GUI_PestKiller.java
@@ -25,8 +25,8 @@ import gtPlusPlus.core.util.math.MathUtils;
public class GUI_PestKiller extends GuiContainer {
private static final ResourceLocation craftingTableGuiTextures = new ResourceLocation(
- GTPlusPlus.ID,
- "textures/gui/PestKiller.png");
+ GTPlusPlus.ID,
+ "textures/gui/PestKiller.png");
private final TileEntityPestKiller mTileKiller;
public GUI_PestKiller(final InventoryPlayer player_inventory, final TileEntityPestKiller te) {
@@ -98,8 +98,19 @@ public class GUI_PestKiller extends GuiContainer {
this.fontRendererObj.drawString("Tier: 1", 4, 18, 4210752);
this.fontRendererObj.drawString("Range: 5x5", 4, 30, 4210752);
this.fontRendererObj.drawString("Poison: ", 4, 42, 4210752);
- this.fontRendererObj.drawString("" + aTile.getTank().getFluid().getLocalizedName(), 4, 54, 4210752);
- this.fontRendererObj.drawString("Amount: " + aTile.getTank().getFluidAmount(), 4, 64, 4210752);
+ this.fontRendererObj.drawString(
+ "" + aTile.getTank()
+ .getFluid()
+ .getLocalizedName(),
+ 4,
+ 54,
+ 4210752);
+ this.fontRendererObj.drawString(
+ "Amount: " + aTile.getTank()
+ .getFluidAmount(),
+ 4,
+ 64,
+ 4210752);
didRender = true;
} else if (aTier == 2) {
if (aTank != null && aTank.getFluidAmount() > 0) {
@@ -115,8 +126,19 @@ public class GUI_PestKiller extends GuiContainer {
this.fontRendererObj.drawString("Tier: 2", 4, 18, 4210752);
this.fontRendererObj.drawString("Range: 9x9", 4, 30, 4210752);
this.fontRendererObj.drawString("Poison: ", 4, 42, 4210752);
- this.fontRendererObj.drawString("" + aTile.getTank().getFluid().getLocalizedName(), 4, 54, 4210752);
- this.fontRendererObj.drawString("Amount: " + aTile.getTank().getFluidAmount(), 4, 64, 4210752);
+ this.fontRendererObj.drawString(
+ "" + aTile.getTank()
+ .getFluid()
+ .getLocalizedName(),
+ 4,
+ 54,
+ 4210752);
+ this.fontRendererObj.drawString(
+ "Amount: " + aTile.getTank()
+ .getFluidAmount(),
+ 4,
+ 64,
+ 4210752);
didRender = true;
}
}
diff --git a/src/main/java/gtPlusPlus/core/gui/machine/GUI_ProjectTable.java b/src/main/java/gtPlusPlus/core/gui/machine/GUI_ProjectTable.java
index db8019a93a..3707855641 100644
--- a/src/main/java/gtPlusPlus/core/gui/machine/GUI_ProjectTable.java
+++ b/src/main/java/gtPlusPlus/core/gui/machine/GUI_ProjectTable.java
@@ -18,8 +18,8 @@ import gtPlusPlus.core.tileentities.machines.TileEntityProjectTable;
public class GUI_ProjectTable extends GuiContainer {
private static final ResourceLocation craftingTableGuiTextures = new ResourceLocation(
- GTPlusPlus.ID,
- "textures/gui/ProjectTable.png");
+ GTPlusPlus.ID,
+ "textures/gui/ProjectTable.png");
public GUI_ProjectTable(final InventoryPlayer player_inventory, final TileEntityProjectTable tile) {
super(new Container_ProjectTable(player_inventory, tile));
diff --git a/src/main/java/gtPlusPlus/core/gui/machine/GUI_SuperJukebox.java b/src/main/java/gtPlusPlus/core/gui/machine/GUI_SuperJukebox.java
index e453c61641..9afa2b4ce1 100644
--- a/src/main/java/gtPlusPlus/core/gui/machine/GUI_SuperJukebox.java
+++ b/src/main/java/gtPlusPlus/core/gui/machine/GUI_SuperJukebox.java
@@ -20,8 +20,8 @@ import gtPlusPlus.core.gui.GUI_Base_Tile_Entity;
public class GUI_SuperJukebox extends GUI_Base_Tile_Entity {
private static final ResourceLocation craftingTableGuiTextures = new ResourceLocation(
- GTPlusPlus.ID,
- "textures/gui/SuperJukebox.png");
+ GTPlusPlus.ID,
+ "textures/gui/SuperJukebox.png");
private final Container_SuperJukebox mThisContainer;
public GUI_SuperJukebox(final InventoryPlayer player_inventory, final TileEntitySuperJukebox te) {
diff --git a/src/main/java/gtPlusPlus/core/gui/machine/GUI_VolumetricFlaskSetter.java b/src/main/java/gtPlusPlus/core/gui/machine/GUI_VolumetricFlaskSetter.java
index d3b30c87c1..6595b510c0 100644
--- a/src/main/java/gtPlusPlus/core/gui/machine/GUI_VolumetricFlaskSetter.java
+++ b/src/main/java/gtPlusPlus/core/gui/machine/GUI_VolumetricFlaskSetter.java
@@ -22,8 +22,8 @@ import gtPlusPlus.core.tileentities.general.TileEntityVolumetricFlaskSetter;
public class GUI_VolumetricFlaskSetter extends GuiContainer {
private static final ResourceLocation mGuiTextures = new ResourceLocation(
- GTPlusPlus.ID,
- "textures/gui/VolumetricFlaskSetter.png");
+ GTPlusPlus.ID,
+ "textures/gui/VolumetricFlaskSetter.png");
private Container_VolumetricFlaskSetter mContainer;
private boolean mIsOpen = false;
private GuiValueField mText;
@@ -76,14 +76,14 @@ public class GUI_VolumetricFlaskSetter extends GuiContainer {
// Keyboard.enableRepeatEvents(true);
mIsOpen = true;
this.mText = new GuiValueField(
- this.fontRendererObj,
- 26,
- 31,
- this.width / 2 - 62,
- this.height / 2 - 52,
- 106,
- 14,
- this);
+ this.fontRendererObj,
+ 26,
+ 31,
+ this.width / 2 - 62,
+ this.height / 2 - 52,
+ 106,
+ 14,
+ this);
mText.setMaxStringLength(5);
mText.setEnableBackgroundDrawing(true);
mText.setText("0");
@@ -137,7 +137,8 @@ public class GUI_VolumetricFlaskSetter extends GuiContainer {
} else {
if (isNumber(par2) || isNumber(par1)) {
log("Pressed number.");
- if (this.mText.getText().equals("0")) {
+ if (this.mText.getText()
+ .equals("0")) {
this.mText.textboxKeyTyped(par1, par2);
sendUpdateToServer();
} else {
diff --git a/src/main/java/gtPlusPlus/core/gui/widget/GuiValueField.java b/src/main/java/gtPlusPlus/core/gui/widget/GuiValueField.java
index 5e6973ab2a..698aa1951a 100644
--- a/src/main/java/gtPlusPlus/core/gui/widget/GuiValueField.java
+++ b/src/main/java/gtPlusPlus/core/gui/widget/GuiValueField.java
@@ -17,7 +17,7 @@ public class GuiValueField extends GuiTextField {
private final GUI_VolumetricFlaskSetter mGUI;
public GuiValueField(FontRenderer aFontRenderer, int aX, int aY, int aScreenLocationX, int aScreenLocationY,
- int aWidth, int aHeight, GUI_VolumetricFlaskSetter aGUI) {
+ int aWidth, int aHeight, GUI_VolumetricFlaskSetter aGUI) {
super(aFontRenderer, aX, aY, aWidth, aHeight);
mFontRenderer = aFontRenderer;
mScreenLocationX = aScreenLocationX;
@@ -32,8 +32,8 @@ public class GuiValueField extends GuiTextField {
public boolean isBackgroundDrawingEnabled() {
Field enableBackgroundDrawing = ReflectionUtils.getField(
- GuiTextField.class,
- !CORE_Preloader.DEV_ENVIRONMENT ? "field_146215_m" : "enableBackgroundDrawing");
+ GuiTextField.class,
+ !CORE_Preloader.DEV_ENVIRONMENT ? "field_146215_m" : "enableBackgroundDrawing");
if (enableBackgroundDrawing != null) {
return ReflectionUtils.getFieldValue(enableBackgroundDrawing, this);
}
@@ -42,7 +42,7 @@ public class GuiValueField extends GuiTextField {
public int getLineScrollOffset() {
Field lineScrollOffset = ReflectionUtils
- .getField(GuiTextField.class, !CORE_Preloader.DEV_ENVIRONMENT ? "field_146225_q" : "lineScrollOffset");
+ .getField(GuiTextField.class, !CORE_Preloader.DEV_ENVIRONMENT ? "field_146225_q" : "lineScrollOffset");
if (lineScrollOffset != null) {
return (int) ReflectionUtils.getFieldValue(lineScrollOffset, this);
}
@@ -52,8 +52,8 @@ public class GuiValueField extends GuiTextField {
public boolean didClickInTextField(int aX, int aY) {
mGUI.log("Clicked at X:" + aX + ", Y:" + aY);
boolean aDidClick = aX >= this.mScreenLocationX && aX < this.mScreenLocationX + this.width
- && aY >= this.mScreenLocationY
- && aY < this.mScreenLocationY + this.height;
+ && aY >= this.mScreenLocationY
+ && aY < this.mScreenLocationY + this.height;
mGUI.log("Did click in textbox? " + aDidClick);
mGUI.log("Expected Region: X:" + mScreenLocationX + "-" + (this.mScreenLocationX + this.width));
mGUI.log("Expected Region: Y:" + mScreenLocationY + "-" + (this.mScreenLocationY + this.height));
@@ -78,16 +78,24 @@ public class GuiValueField extends GuiTextField {
}
if (aButton == 0) {
mGUI.log("Left clicked in text box.");
- String s = this.mFontRenderer
- .trimStringToWidth(this.getText().substring(getLineScrollOffset()), this.getWidth());
- this.setCursorPosition(this.mFontRenderer.trimStringToWidth(s, l).length() + getLineScrollOffset());
+ String s = this.mFontRenderer.trimStringToWidth(
+ this.getText()
+ .substring(getLineScrollOffset()),
+ this.getWidth());
+ this.setCursorPosition(
+ this.mFontRenderer.trimStringToWidth(s, l)
+ .length() + getLineScrollOffset());
} else if (aButton == 1) {
mGUI.log("Right clicked in text box.");
mGUI.setText(0);
mGUI.sendUpdateToServer();
- String s = this.mFontRenderer
- .trimStringToWidth(this.getText().substring(getLineScrollOffset()), this.getWidth());
- this.setCursorPosition(this.mFontRenderer.trimStringToWidth(s, l).length() + getLineScrollOffset());
+ String s = this.mFontRenderer.trimStringToWidth(
+ this.getText()
+ .substring(getLineScrollOffset()),
+ this.getWidth());
+ this.setCursorPosition(
+ this.mFontRenderer.trimStringToWidth(s, l)
+ .length() + getLineScrollOffset());
}
} else {
mGUI.log("Clicked, but no focus.");
diff --git a/src/main/java/gtPlusPlus/core/handler/AchievementHandler.java b/src/main/java/gtPlusPlus/core/handler/AchievementHandler.java
index ce3a95e21c..41513163a0 100644
--- a/src/main/java/gtPlusPlus/core/handler/AchievementHandler.java
+++ b/src/main/java/gtPlusPlus/core/handler/AchievementHandler.java
@@ -45,33 +45,33 @@ public class AchievementHandler {
// register first
this.registerAchievement(
- aBaseAchievementName,
- 0,
- 0,
- MetaGeneratedGregtechTools.INSTANCE.getToolWithStats(
- MetaGeneratedGregtechTools.ANGLE_GRINDER,
- 1,
- Materials.Osmium,
- Materials.Osmium,
- null),
- "",
- true);
+ aBaseAchievementName,
+ 0,
+ 0,
+ MetaGeneratedGregtechTools.INSTANCE.getToolWithStats(
+ MetaGeneratedGregtechTools.ANGLE_GRINDER,
+ 1,
+ Materials.Osmium,
+ Materials.Osmium,
+ null),
+ "",
+ true);
this.registerAchievement(
- "hatch.dynamo.buffered",
- 2,
- -2,
- GregtechItemList.Hatch_Buffer_Dynamo_IV.get(1),
- aBaseAchievementName,
- false);
+ "hatch.dynamo.buffered",
+ 2,
+ -2,
+ GregtechItemList.Hatch_Buffer_Dynamo_IV.get(1),
+ aBaseAchievementName,
+ false);
// First multi anyone really needs
this.registerAchievement(
- "multi.abs",
- -4,
- -2,
- GregtechItemList.Industrial_AlloyBlastSmelter.get(1),
- aBaseAchievementName,
- true);
+ "multi.abs",
+ -4,
+ -2,
+ GregtechItemList.Industrial_AlloyBlastSmelter.get(1),
+ aBaseAchievementName,
+ true);
// Material Advancement
this.registerAchievement("dust.potin", 0, 2, ALLOY.POTIN.getDust(1), aBaseAchievementName, false);
@@ -82,167 +82,172 @@ public class AchievementHandler {
// Blocks
this.registerAchievement(
- "block.fishtrap",
- -2,
- 2,
- ItemUtils.getSimpleStack(ModBlocks.blockFishTrap),
- "dust.potin",
- false);
+ "block.fishtrap",
+ -2,
+ 2,
+ ItemUtils.getSimpleStack(ModBlocks.blockFishTrap),
+ "dust.potin",
+ false);
this.registerAchievement(
- "block.withercage",
- -2,
- 4,
- ItemUtils.getSimpleStack(ModBlocks.blockWitherGuard),
- "dust.eglin",
- false);
+ "block.withercage",
+ -2,
+ 4,
+ ItemUtils.getSimpleStack(ModBlocks.blockWitherGuard),
+ "dust.eglin",
+ false);
// Machines (-10/-8/-6)
this.registerAchievement("rtg", -16, -10, GregtechItemList.RTG.get(1), aBaseAchievementName, false);
this.registerAchievement(
- "dehydrate",
- -15,
- -10,
- GregtechItemList.GT_Dehydrator_HV.get(1),
- aBaseAchievementName,
- false);
+ "dehydrate",
+ -15,
+ -10,
+ GregtechItemList.GT_Dehydrator_HV.get(1),
+ aBaseAchievementName,
+ false);
this.registerAchievement(
- "semifluid",
- -14,
- -10,
- GregtechItemList.Generator_SemiFluid_HV.get(1),
- aBaseAchievementName,
- false);
+ "semifluid",
+ -14,
+ -10,
+ GregtechItemList.Generator_SemiFluid_HV.get(1),
+ aBaseAchievementName,
+ false);
this.registerAchievement(
- "earlywasher",
- -13,
- -10,
- GregtechItemList.SimpleDustWasher_ULV.get(1),
- aBaseAchievementName,
- false);
+ "earlywasher",
+ -13,
+ -10,
+ GregtechItemList.SimpleDustWasher_ULV.get(1),
+ aBaseAchievementName,
+ false);
this.registerAchievement(
- "advancedsteam",
- -12,
- -10,
- GregtechItemList.Boiler_Advanced_MV.get(1),
- aBaseAchievementName,
- false);
+ "advancedsteam",
+ -12,
+ -10,
+ GregtechItemList.Boiler_Advanced_MV.get(1),
+ aBaseAchievementName,
+ false);
if (PollutionUtils.isPollutionEnabled()) {
this.registerAchievement(
- "pollutionremoval",
- -11,
- -10,
- GregtechItemList.Pollution_Cleaner_IV.get(1),
- aBaseAchievementName,
- false);
- }
- this.registerAchievement(
- "hiampxform",
- -10,
+ "pollutionremoval",
+ -11,
-10,
- GregtechItemList.Transformer_HA_HV_MV.get(1),
+ GregtechItemList.Pollution_Cleaner_IV.get(1),
aBaseAchievementName,
false);
+ }
+ this.registerAchievement(
+ "hiampxform",
+ -10,
+ -10,
+ GregtechItemList.Transformer_HA_HV_MV.get(1),
+ aBaseAchievementName,
+ false);
// Multis (-4/-2/0)
this.registerAchievement("multi.pss", -16, -7, GregtechItemList.PowerSubStation.get(1), "multi.abs", false);
this.registerAchievement("multi.cyclo", -15, -7, GregtechItemList.COMET_Cyclotron.get(1), "multi.abs", false);
this.registerAchievement(
- "multi.sifter",
- -14,
- -7,
- GregtechItemList.Industrial_Sifter.get(1),
- "dust.eglin",
- false);
+ "multi.sifter",
+ -14,
+ -7,
+ GregtechItemList.Industrial_Sifter.get(1),
+ "dust.eglin",
+ false);
this.registerAchievement(
- "multi.cokeoven",
- -13,
- -7,
- GregtechItemList.Industrial_CokeOven.get(1),
- "multi.abs",
- false);
+ "multi.cokeoven",
+ -13,
+ -7,
+ GregtechItemList.Industrial_CokeOven.get(1),
+ "multi.abs",
+ false);
this.registerAchievement(
- "multi.boiler.thermal",
- -12,
- -7,
- GregtechItemList.GT4_Thermal_Boiler.get(1),
- "multi.abs",
- false);
+ "multi.boiler.thermal",
+ -12,
+ -7,
+ GregtechItemList.GT4_Thermal_Boiler.get(1),
+ "multi.abs",
+ false);
this.registerAchievement(
- "multi.zhuhai",
- -11,
- -7,
- GregtechItemList.Industrial_FishingPond.get(1),
- aBaseAchievementName,
- false);
+ "multi.zhuhai",
+ -11,
+ -7,
+ GregtechItemList.Industrial_FishingPond.get(1),
+ aBaseAchievementName,
+ false);
// Casings
this.registerAchievement(
- "casing.abs",
- 2,
- -10,
- GregtechItemList.Casing_Coil_BlastSmelter.get(1),
- aBaseAchievementName,
- false);
+ "casing.abs",
+ 2,
+ -10,
+ GregtechItemList.Casing_Coil_BlastSmelter.get(1),
+ aBaseAchievementName,
+ false);
this.registerAchievement(
- "casing.cyclotron.coil",
- 3,
- -10,
- GregtechItemList.Casing_Cyclotron_Coil.get(1),
- aBaseAchievementName,
- false);
+ "casing.cyclotron.coil",
+ 3,
+ -10,
+ GregtechItemList.Casing_Cyclotron_Coil.get(1),
+ aBaseAchievementName,
+ false);
this.registerAchievement(
- "casing.multiuse",
- 4,
- -10,
- GregtechItemList.Casing_Multi_Use.get(1),
- aBaseAchievementName,
- false);
+ "casing.multiuse",
+ 4,
+ -10,
+ GregtechItemList.Casing_Multi_Use.get(1),
+ aBaseAchievementName,
+ false);
this.registerAchievement(
- "casing.containment",
- 5,
- -10,
- GregtechItemList.Casing_Containment.get(1),
- aBaseAchievementName,
- false);
+ "casing.containment",
+ 5,
+ -10,
+ GregtechItemList.Casing_Containment.get(1),
+ aBaseAchievementName,
+ false);
// Radioactive
this.registerAchievement(
- "decay.neptunium238",
- 11,
- 8,
- ItemUtils.getSimpleStack(ModItems.dustNeptunium238),
- "multi.cyclo",
- false);
+ "decay.neptunium238",
+ 11,
+ 8,
+ ItemUtils.getSimpleStack(ModItems.dustNeptunium238),
+ "multi.cyclo",
+ false);
this.registerAchievement(
- "decay.radium226",
- 12,
- 8,
- ItemUtils.getSimpleStack(ModItems.dustRadium226),
- "multi.cyclo",
- false);
+ "decay.radium226",
+ 12,
+ 8,
+ ItemUtils.getSimpleStack(ModItems.dustRadium226),
+ "multi.cyclo",
+ false);
this.registerAchievement(
- "decay.molybdenum99",
- 13,
- 8,
- ItemUtils.getSimpleStack(ModItems.dustMolybdenum99),
- "multi.cyclo",
- false);
+ "decay.molybdenum99",
+ 13,
+ 8,
+ ItemUtils.getSimpleStack(ModItems.dustMolybdenum99),
+ "multi.cyclo",
+ false);
AchievementPage.registerAchievementPage(
- new AchievementPage("GT++", this.achievementList.values().toArray(new Achievement[0])));
+ new AchievementPage(
+ "GT++",
+ this.achievementList.values()
+ .toArray(new Achievement[0])));
MinecraftForge.EVENT_BUS.register(this);
- FMLCommonHandler.instance().bus().register(this);
+ FMLCommonHandler.instance()
+ .bus()
+ .register(this);
}
public Achievement registerAchievement(String textId, int x, int y, ItemStack icon, String requirement,
- boolean special) {
+ boolean special) {
Achievement achievement = new Achievement(
- textId,
- textId,
- this.adjX + x,
- this.adjY + y,
- icon,
- this.getAchievement(requirement));
+ textId,
+ textId,
+ this.adjX + x,
+ this.adjY + y,
+ icon,
+ this.getAchievement(requirement));
if (special) {
achievement.setSpecial();
}
@@ -292,8 +297,10 @@ public class AchievementHandler {
return;
}
- if (ItemUtils.getModId(aStack).equals(GTPlusPlus.ID)
- || ItemUtils.getModId(aStack).equalsIgnoreCase(GregTech.ID)) {
+ if (ItemUtils.getModId(aStack)
+ .equals(GTPlusPlus.ID)
+ || ItemUtils.getModId(aStack)
+ .equalsIgnoreCase(GregTech.ID)) {
isValid = true;
}
if (!isValid) {
@@ -301,7 +308,8 @@ public class AchievementHandler {
}
// Should unlock base achievement from *ANY* GT++ item. (Too lazy to special case GT machineBlocks though)
- if (ItemUtils.getModId(aStack).equals(GTPlusPlus.ID)) {
+ if (ItemUtils.getModId(aStack)
+ .equals(GTPlusPlus.ID)) {
this.issueAchievement(aPlayer, aBaseAchievementName);
}
diff --git a/src/main/java/gtPlusPlus/core/handler/BookHandler.java b/src/main/java/gtPlusPlus/core/handler/BookHandler.java
index 155d46c40d..5725c1c710 100644
--- a/src/main/java/gtPlusPlus/core/handler/BookHandler.java
+++ b/src/main/java/gtPlusPlus/core/handler/BookHandler.java
@@ -36,379 +36,378 @@ public class BookHandler {
// Thermal Boiler
book_ThermalBoiler = writeBookTemplate(
- "Manual_Thermal_Boiler",
- "Thermal Boiler Manual",
- "GregoriusT",
- new String[] {
- "This Book explains how to set up and run your Thermal Boiler. We are not responsible for any Damage done by this Book itself nor its content.",
- "First you need to craft the following things for a Thermal Boiler to Function: The Main Boiler Block, 20 Thermal Containment Casings, two Input Hatches, two Output Hatches, a bunch of different Tools and a Maintenance Hatch.",
- "To begin the building, lay out the first 3x3 layer of Machine Casings on the ground (with a Hatch in the Middle), then place the Boiler Block facing outward in the middle of one of the 3m wide Sides.",
- "Now grab 3 other Hatches and place them on the remaining three 3m wide Sides also facing outwards. And now the four corners of the Machine need also a Machine Casing. There should only be a Hole left in the middle of the Cube.",
- "So, now place a 3x3 of Machine Casings on top, at the 3rd Layer with the last Hatch in the middle facing outwards as well.",
- "When accessing the Boiler Block, it should now stop telling you, that the structure is incomplete (bottom Line of that Screen). Now go with a bunch of different Tools (Metal Hammer, Rubber Hammer, Screwdriver, Wrench, Soldering Iron and Crowbar)",
- "to the Maintenance Hatch and access it. After that you grab the 6 Tools and rightclick the Slot with each of them in your Hand in the Maintenance GUI. Note that you need Soldering Tin/Lead in your Inventory to use the Soldering Iron.",
- "The Main Block should now tell you that you need to use the Rubber Hammer on it to (re)activate the Machine. The Rubber Hammer can enable and disable Machines. The Machine disables itself after something important broke.",
- "If you want to use Lava with this Device, then you should add a Lava Filter to extract additional Resources from the Lava. If the Filter breaks, the Machine won't explode like a Turbine would. If you use molten Salt, then you won't need a Filter.",
- "You will get Obsidian when processing Lava, however if a Filter is used, you will get sometimes an Ingot instead of a Block of Obsidian. When using molten Salt, you will get the Salt back.",
- "So, now for the Maintenance. After a few Hours of running nonstop, your Boiler will get small Problems, which don't prevent it from running, these Problems just decrease Efficiency. Every Problem listed on the Screen does -10% Efficiency.",
- "To fix these Problems, just go to the Maintenance Hatch and click with the problem corresponding Tool on the Slot to repair. If all six possible runtime Problems happen, the Machine will auto-shutdown no matter what. No Explosion, it's just stopping.",
- "The Thermal Boiler will produce 800 Liters of Steam per tick for about 5 or 6 Liters of Water per tick at reaching 100% Efficiency. In case of Lava it consumes 1666 Liters every Second.",
- "A Thermal Boiler is worth about 33 small Thermal Generators, and as the Boilers get much less Efficient, when not having enough Fuel, you should consider making a large Nether Pump for Lava, or a good Nuclear Reactor for molten Salt.",
- "Input and Output Slots are fully optional, you can place multiple ones of them or even none on the Machine. A Machine without Input couldn't process any Recipes, while a Machine without Output just voids all outputted Items and Liquids.",
- "It might be useful to use the Screwdriver on the Output Hatches to determine what is outputted where." });
+ "Manual_Thermal_Boiler",
+ "Thermal Boiler Manual",
+ "GregoriusT",
+ new String[] {
+ "This Book explains how to set up and run your Thermal Boiler. We are not responsible for any Damage done by this Book itself nor its content.",
+ "First you need to craft the following things for a Thermal Boiler to Function: The Main Boiler Block, 20 Thermal Containment Casings, two Input Hatches, two Output Hatches, a bunch of different Tools and a Maintenance Hatch.",
+ "To begin the building, lay out the first 3x3 layer of Machine Casings on the ground (with a Hatch in the Middle), then place the Boiler Block facing outward in the middle of one of the 3m wide Sides.",
+ "Now grab 3 other Hatches and place them on the remaining three 3m wide Sides also facing outwards. And now the four corners of the Machine need also a Machine Casing. There should only be a Hole left in the middle of the Cube.",
+ "So, now place a 3x3 of Machine Casings on top, at the 3rd Layer with the last Hatch in the middle facing outwards as well.",
+ "When accessing the Boiler Block, it should now stop telling you, that the structure is incomplete (bottom Line of that Screen). Now go with a bunch of different Tools (Metal Hammer, Rubber Hammer, Screwdriver, Wrench, Soldering Iron and Crowbar)",
+ "to the Maintenance Hatch and access it. After that you grab the 6 Tools and rightclick the Slot with each of them in your Hand in the Maintenance GUI. Note that you need Soldering Tin/Lead in your Inventory to use the Soldering Iron.",
+ "The Main Block should now tell you that you need to use the Rubber Hammer on it to (re)activate the Machine. The Rubber Hammer can enable and disable Machines. The Machine disables itself after something important broke.",
+ "If you want to use Lava with this Device, then you should add a Lava Filter to extract additional Resources from the Lava. If the Filter breaks, the Machine won't explode like a Turbine would. If you use molten Salt, then you won't need a Filter.",
+ "You will get Obsidian when processing Lava, however if a Filter is used, you will get sometimes an Ingot instead of a Block of Obsidian. When using molten Salt, you will get the Salt back.",
+ "So, now for the Maintenance. After a few Hours of running nonstop, your Boiler will get small Problems, which don't prevent it from running, these Problems just decrease Efficiency. Every Problem listed on the Screen does -10% Efficiency.",
+ "To fix these Problems, just go to the Maintenance Hatch and click with the problem corresponding Tool on the Slot to repair. If all six possible runtime Problems happen, the Machine will auto-shutdown no matter what. No Explosion, it's just stopping.",
+ "The Thermal Boiler will produce 800 Liters of Steam per tick for about 5 or 6 Liters of Water per tick at reaching 100% Efficiency. In case of Lava it consumes 1666 Liters every Second.",
+ "A Thermal Boiler is worth about 33 small Thermal Generators, and as the Boilers get much less Efficient, when not having enough Fuel, you should consider making a large Nether Pump for Lava, or a good Nuclear Reactor for molten Salt.",
+ "Input and Output Slots are fully optional, you can place multiple ones of them or even none on the Machine. A Machine without Input couldn't process any Recipes, while a Machine without Output just voids all outputted Items and Liquids.",
+ "It might be useful to use the Screwdriver on the Output Hatches to determine what is outputted where." });
// Test Novel
book_MultiPowerStation = writeBookTemplate(
- "Manual_Multi_PowerStation",
- "Power Storage & You [Version 0.64]",
- "Alkalus",
- new String[] {
- // Page 1
- """
- So, when it comes to power storage you really have three separate options:
- \s
- Battery Buffers,
- Energy Buffers,
- The Power Sub-Station
- """,
- // Page 2
- """
- Battery Buffer
- \s
- Is rather portable. Allowing you to throw set one up and insert batteries where ever you may need.
- They output 1A for each battery stored inside, up to a maximum of 16A.""",
- // Page 3
- """
- Energy Buffer
- \s
- Is a more optimal choice for storage in your base. Once placed down, they cannot be moved without losing all stored power.
- Energy Buffers can output 4A from the output side, however accept 16A as input.""",
- // Page 4
- """
- The Power Sub-Station\s
- Is used for storing Insane amounts of power later game.
- Consumes 2% of the average voltage of all energy type hatches every tick.
- """,
- // Page 5
- """
- Allows Insertion/Removal of power from the rear face of the controller, swap with a screwdriver.
- Variable Height Structure, between 4-16Y. Inserted Redox Cells dictate max energy tier of structure.
- """,
- // Page 6
- """
- Redox Cells cannot be placed into the Top or Bottom layer and only take up 3xhx3 internally.
- Different Tier cells CANNOT be mixed together.
- """,
- // Page 7
- """
- All Hatches Must be HV at a Minimum, this minimum tier is in place to stop people abusing ULV/LV hatches to lower the avg/t.
- Currently the GUI will NOT display anything at all until the structure forms, this is a known bug.
- """,
- // Page 8
- """
- Valid Hatches:
- Energy Hatch,
- Dynamo Hatch,
- Charging Bus,
- Discharging Bus,
- Dynamo Buffer,
- Multi-Amp Dynamo Hatch.
-
-
- Structure MUST contain at least one energy input and one energy output hatch.""" });
+ "Manual_Multi_PowerStation",
+ "Power Storage & You [Version 0.64]",
+ "Alkalus",
+ new String[] {
+ // Page 1
+ """
+ So, when it comes to power storage you really have three separate options:
+ \s
+ Battery Buffers,
+ Energy Buffers,
+ The Power Sub-Station
+ """,
+ // Page 2
+ """
+ Battery Buffer
+ \s
+ Is rather portable. Allowing you to throw set one up and insert batteries where ever you may need.
+ They output 1A for each battery stored inside, up to a maximum of 16A.""",
+ // Page 3
+ """
+ Energy Buffer
+ \s
+ Is a more optimal choice for storage in your base. Once placed down, they cannot be moved without losing all stored power.
+ Energy Buffers can output 4A from the output side, however accept 16A as input.""",
+ // Page 4
+ """
+ The Power Sub-Station\s
+ Is used for storing Insane amounts of power later game.
+ Consumes 2% of the average voltage of all energy type hatches every tick.
+ """,
+ // Page 5
+ """
+ Allows Insertion/Removal of power from the rear face of the controller, swap with a screwdriver.
+ Variable Height Structure, between 4-16Y. Inserted Redox Cells dictate max energy tier of structure.
+ """,
+ // Page 6
+ """
+ Redox Cells cannot be placed into the Top or Bottom layer and only take up 3xhx3 internally.
+ Different Tier cells CANNOT be mixed together.
+ """,
+ // Page 7
+ """
+ All Hatches Must be HV at a Minimum, this minimum tier is in place to stop people abusing ULV/LV hatches to lower the avg/t.
+ Currently the GUI will NOT display anything at all until the structure forms, this is a known bug.
+ """,
+ // Page 8
+ """
+ Valid Hatches:
+ Energy Hatch,
+ Dynamo Hatch,
+ Charging Bus,
+ Discharging Bus,
+ Dynamo Buffer,
+ Multi-Amp Dynamo Hatch.
+
+
+ Structure MUST contain at least one energy input and one energy output hatch.""" });
// Test Novel
book_ModularBauble = writeBookTemplate(
- "Manual_Modular_Bauble",
- "How to: Modular Baubles",
- "Alkalus",
- new String[] {
- """
- Concept: This idea came from wanting flexibility.\s
- First step, Build a Modularity table to begin customisation of your Bauble.\s
- After this has been constructed, you can now combine the upgrades listed within this book to improve the baubles level/100.""",
- """
- Defence:
- Can be upgraded by combining metal plates with the bauble.\s
- | +1 | Aluminium\s
- | +2 | Stainless Steel\s
- | +3 | Tungsten\s
- | +4 | Tungsten Steel\s
- | +5 | Naquadah\s
- """, "There was once a sad and lonely oak tree. \n",
- "There was once a sad and lonely oak tree. \n",
- "There was once a sad and lonely oak tree. \n" });
+ "Manual_Modular_Bauble",
+ "How to: Modular Baubles",
+ "Alkalus",
+ new String[] {
+ """
+ Concept: This idea came from wanting flexibility.\s
+ First step, Build a Modularity table to begin customisation of your Bauble.\s
+ After this has been constructed, you can now combine the upgrades listed within this book to improve the baubles level/100.""",
+ """
+ Defence:
+ Can be upgraded by combining metal plates with the bauble.\s
+ | +1 | Aluminium\s
+ | +2 | Stainless Steel\s
+ | +3 | Tungsten\s
+ | +4 | Tungsten Steel\s
+ | +5 | Naquadah\s
+ """, "There was once a sad and lonely oak tree. \n", "There was once a sad and lonely oak tree. \n",
+ "There was once a sad and lonely oak tree. \n" });
// Test Novel
// 20/21/22
book_MultiMachineManual = writeBookTemplate(
- "Manual_Multi_Machine",
- "Multi-Machine Manual",
- "Alkalus",
- new String[] {
- "This Multiblock, depending upon the mode used, can function as a variety of different machines. The idea behind this, was that most of these machines are rather niche compared to any others, as such, not used often.",
- "To build, you need to construct a hollow 3x3x3 structure made from Multi-Use casings, With a minimum of 6. Any Casing position can be substituted out with an Input Hatch/Bus, an Output Hatch/Bus, Muffler, Maint. Hatch or Energy Injector Hatch.",
- "The Mode can be set by using a Screwdriver on the controller block. Each mode allows the use of Numbered Circuits, to allow a different machine 'type' for each input bus.",
- "[Metal Work] Mode Metal - Allows the multiblock to function as a Compressor, a Lathe or an Electro-Magnet. To allow a hatch to run in Compressor mode, insert a No. 20 circuit. For Lathe, use No. 21 and for Electro-Magnet use No. 22.",
- "[Fluid Work] Mode Fluid - Allows the multiblock to function as a Fermenter, a Fluid Extractor or an Extractor. To allow a hatch to run in Fermenter mode, insert a No. 20 circuit. For Fluid Extractor, use No. 21 and for Extractor use No. 22.",
- "[Misc. Work] Mode Misc - Allows the multiblock to function as a Laser Engraver, an Autoclave or a Fluid Solidifier. To allow a hatch to run in Laser Engraver mode, insert a No. 20 circuit. For Autoclave, use No. 21 and for Solidifier use No. 22.", });
+ "Manual_Multi_Machine",
+ "Multi-Machine Manual",
+ "Alkalus",
+ new String[] {
+ "This Multiblock, depending upon the mode used, can function as a variety of different machines. The idea behind this, was that most of these machines are rather niche compared to any others, as such, not used often.",
+ "To build, you need to construct a hollow 3x3x3 structure made from Multi-Use casings, With a minimum of 6. Any Casing position can be substituted out with an Input Hatch/Bus, an Output Hatch/Bus, Muffler, Maint. Hatch or Energy Injector Hatch.",
+ "The Mode can be set by using a Screwdriver on the controller block. Each mode allows the use of Numbered Circuits, to allow a different machine 'type' for each input bus.",
+ "[Metal Work] Mode Metal - Allows the multiblock to function as a Compressor, a Lathe or an Electro-Magnet. To allow a hatch to run in Compressor mode, insert a No. 20 circuit. For Lathe, use No. 21 and for Electro-Magnet use No. 22.",
+ "[Fluid Work] Mode Fluid - Allows the multiblock to function as a Fermenter, a Fluid Extractor or an Extractor. To allow a hatch to run in Fermenter mode, insert a No. 20 circuit. For Fluid Extractor, use No. 21 and for Extractor use No. 22.",
+ "[Misc. Work] Mode Misc - Allows the multiblock to function as a Laser Engraver, an Autoclave or a Fluid Solidifier. To allow a hatch to run in Laser Engraver mode, insert a No. 20 circuit. For Autoclave, use No. 21 and for Solidifier use No. 22.", });
book_NuclearManual = writeBookTemplate(
- "Manual_NuclearStuff_1",
- "Nuclear Chemistry [FFPP]",
- "Alkalus",
- new String[] {
- // Page 1
- """
- Fission Fuel Processing Plant
- Size: 3x9x3 [LxHxW]
- Controller: Center, Bottom
- 4x Input Hatch
- 2x Output Hatch
- 1x Output Bus
- 1x ZPM+ Muffler
- 1x Maintenance Hatch
- 1x Energy Hatch
- """,
- // Page 2
- """
- [1] 7x Hastelloy-X or I/O
- [2] 5x Incoloy-DS Fluid Containment
- [3] 4x Zeron-100 Shielding
- [4] 17x Hastelloy-N Sealant Case
- Multiblock Construction
- Convention is [LxHxW]
-
- """,
- // Page 3
- """
- Layer 1/2:
- [1][1][1]
- [1][1][1]
- [1][1][1]
-
- Layer 3/5/6
- [ ][4][ ]
- [4][2][4]
- [ ][4][ ]
-
- """,
- // Page 4
- """
- Layer 4
- [ ][3][ ]
- [3][2][3]
- [ ][3][ ]
-
- Layer 7/8/9
- [ ][ ][ ]
- [ ][3][ ]
- [ ][ ][ ]
- """,
- // Page 5
- """
- Fission Fuel
- Processing Plant----------------------
- This structure is used to produce the Molten Salts required to run a Liquid Fluorine Thorium Reactor [LFTR].""" });
+ "Manual_NuclearStuff_1",
+ "Nuclear Chemistry [FFPP]",
+ "Alkalus",
+ new String[] {
+ // Page 1
+ """
+ Fission Fuel Processing Plant
+ Size: 3x9x3 [LxHxW]
+ Controller: Center, Bottom
+ 4x Input Hatch
+ 2x Output Hatch
+ 1x Output Bus
+ 1x ZPM+ Muffler
+ 1x Maintenance Hatch
+ 1x Energy Hatch
+ """,
+ // Page 2
+ """
+ [1] 7x Hastelloy-X or I/O
+ [2] 5x Incoloy-DS Fluid Containment
+ [3] 4x Zeron-100 Shielding
+ [4] 17x Hastelloy-N Sealant Case
+ Multiblock Construction
+ Convention is [LxHxW]
+
+ """,
+ // Page 3
+ """
+ Layer 1/2:
+ [1][1][1]
+ [1][1][1]
+ [1][1][1]
+
+ Layer 3/5/6
+ [ ][4][ ]
+ [4][2][4]
+ [ ][4][ ]
+
+ """,
+ // Page 4
+ """
+ Layer 4
+ [ ][3][ ]
+ [3][2][3]
+ [ ][3][ ]
+
+ Layer 7/8/9
+ [ ][ ][ ]
+ [ ][3][ ]
+ [ ][ ][ ]
+ """,
+ // Page 5
+ """
+ Fission Fuel
+ Processing Plant----------------------
+ This structure is used to produce the Molten Salts required to run a Liquid Fluorine Thorium Reactor [LFTR].""" });
book_MultiChemicalPlant = writeBookTemplate(
- "book_Multi_ChemicalPlant",
- "Chemical Plant Manual",
- "Alkalus",
- new String[] {
-
- // Intro
- "This book will explain how the Chemical Plant is constructed, which blocks are valid to upgrade it and also how the upgrades work.",
-
- // Info
- """
- Solid Casings = Plant tier
- Machine Casings = Hatch tier
- Higher tier coils More Speed
- T1 50% , T2 100% , T3 150%, etc
- """, """
- Higher tier pipe casings boost parallel
- and reduce catalyst consumption.
- +2 parallel per tier, 20% extra chance of
- not damaging catalyst per tier.""", """
- Awakened Draconium Coil (or above) with
- Tungstensteel Pipe Casing
- does not damage catalyst at all.""",
-
- // Machine Casings
- """
- Valid Solid Machine Casings:
- 1 - Strong Bronze
- 2 - Solid Steel
- 3 - Sturdy Aluminium
- 4 - Clean Stainless Steel
- 5 - Stable Titanium
- 6 - Robust Tungstensteel
- 7 - Vigorous Laurenium
- 8 - Rugged Botmium""",
-
- // Machine Casings
- "Valid Tiered Machine Casings:" + "\n"
- + "\n"
- + "1 - "
- + GT_Values.VN[0]
- + "\n"
- + "2 - "
- + GT_Values.VN[1]
- + "\n"
- + "3 - "
- + GT_Values.VN[2]
- + "\n"
- + "4 - "
- + GT_Values.VN[3]
- + "\n"
- + "5 - "
- + GT_Values.VN[4]
- + "\n"
- + "6 - "
- + GT_Values.VN[5]
- + "\n"
- + "7 - "
- + GT_Values.VN[6]
- + "\n"
- + "8 - "
- + GT_Values.VN[7]
- + "\n"
- + "9 - "
- + GT_Values.VN[8]
- + "\n"
- + "10 - "
- + GT_Values.VN[9],
-
- // Pipe Casings
- """
- Valid Pipe Casings:
-
- 1 - Bronze
- 2 - Steel
- 3 - Titanium
- 4 - Tungstensteel""",
-
- // Coils
- """
- Valid Coils:
-
- 1 - Cupronickel
- 2 - Kanthal
- 3 - Nichrome
- 4 - TPV-Alloy
- 5 - HSS-G
- 6 - HSS-S
- 7 - Naquadah
- 8 - Naquadah Alloy
- 9 - Trinium
- 10 - Fluxed Electrum""", """
- 11 - Awakened Draconium
- 12 - Infinity
- 13 - Hypogen
- 14 - Eternal""",
-
- // Requirements
- """
- Multiblock Requirements:
-
- 27x Coils
- 18x Pipe Casings
- 57x Tiered Machine Casings
- 70+ Solid Casings
- 1x Catalyst Housing (Catalysts cannot go inside an Input Bus)""",
-
- // Construction Guide
- """
- Construction Guide Pt1:
-
- Controller is placed on a middle casing in the bottom layer
- Hatches can only be placed on the bottom layer edges""", """
- Construction Guide Pt2:
-
- 7x7x7 Hollow frame of solid casings
- 5x1x5 layer of solid casings (fills in top layer)
- 5x1x5 layer of machine casings (fills in bottom layer)""", """
- Construction Guide Pt3:
- In the central 3x5x3:
- 3x1x3 layer of Coils, surrounded by ring of Machine Casings
- 3x1x3 layer of Pipe Casings
- 3x1x3 layer of Coils
- 3x1x3 layer of Pipe Casings
- 3x1x3 layer of Coils, surrounded by ring of Machine Casings""",
-
- // Construction Guide Info
- """
- Information:
-
- A = Air
- X = Solid Casing
- M = Machine Casing
- P = Pipe Casing
- C = Coil Casing""", """
- Layer 1:
-
- XXXXXXX
- XMMMMMX
- XMMMMMX
- XMMMMMX
- XMMMMMX
- XMMMMMX
- XXXXXXX""", """
- Layer 2:
-
- XAAAAAX
- AMMMMMA
- AMCCCMA
- AMCCCMA
- AMCCCMA
- AMMMMMA
- XAAAAAX""", """
- Layer 3:
-
- XAAAAAX
- AAAAAAA
- AAPPPAA
- AAPPPAA
- AAPPPAA
- AAAAAAA
- XAAAAAX""", """
- Layer 4:
-
- XAAAAAX
- AAAAAAA
- AACCCAA
- AACCCAA
- AACCCAA
- AAAAAAA
- XAAAAAX""", """
- Layer 5:
-
- XAAAAAX
- AAAAAAA
- AAPPPAA
- AAPPPAA
- AAPPPAA
- AAAAAAA
- XAAAAAX""", """
- Layer 6:
-
- XAAAAAX
- AMMMMMA
- AMCCCMA
- AMCCCMA
- AMCCCMA
- AMMMMMA
- XAAAAAX""", """
- Layer 7:
-
- XXXXXXX
- XXXXXXX
- XXXXXXX
- XXXXXXX
- XXXXXXX
- XXXXXXX
- XXXXXXX""", });
+ "book_Multi_ChemicalPlant",
+ "Chemical Plant Manual",
+ "Alkalus",
+ new String[] {
+
+ // Intro
+ "This book will explain how the Chemical Plant is constructed, which blocks are valid to upgrade it and also how the upgrades work.",
+
+ // Info
+ """
+ Solid Casings = Plant tier
+ Machine Casings = Hatch tier
+ Higher tier coils More Speed
+ T1 50% , T2 100% , T3 150%, etc
+ """, """
+ Higher tier pipe casings boost parallel
+ and reduce catalyst consumption.
+ +2 parallel per tier, 20% extra chance of
+ not damaging catalyst per tier.""", """
+ Awakened Draconium Coil (or above) with
+ Tungstensteel Pipe Casing
+ does not damage catalyst at all.""",
+
+ // Machine Casings
+ """
+ Valid Solid Machine Casings:
+ 1 - Strong Bronze
+ 2 - Solid Steel
+ 3 - Sturdy Aluminium
+ 4 - Clean Stainless Steel
+ 5 - Stable Titanium
+ 6 - Robust Tungstensteel
+ 7 - Vigorous Laurenium
+ 8 - Rugged Botmium""",
+
+ // Machine Casings
+ "Valid Tiered Machine Casings:" + "\n"
+ + "\n"
+ + "1 - "
+ + GT_Values.VN[0]
+ + "\n"
+ + "2 - "
+ + GT_Values.VN[1]
+ + "\n"
+ + "3 - "
+ + GT_Values.VN[2]
+ + "\n"
+ + "4 - "
+ + GT_Values.VN[3]
+ + "\n"
+ + "5 - "
+ + GT_Values.VN[4]
+ + "\n"
+ + "6 - "
+ + GT_Values.VN[5]
+ + "\n"
+ + "7 - "
+ + GT_Values.VN[6]
+ + "\n"
+ + "8 - "
+ + GT_Values.VN[7]
+ + "\n"
+ + "9 - "
+ + GT_Values.VN[8]
+ + "\n"
+ + "10 - "
+ + GT_Values.VN[9],
+
+ // Pipe Casings
+ """
+ Valid Pipe Casings:
+
+ 1 - Bronze
+ 2 - Steel
+ 3 - Titanium
+ 4 - Tungstensteel""",
+
+ // Coils
+ """
+ Valid Coils:
+
+ 1 - Cupronickel
+ 2 - Kanthal
+ 3 - Nichrome
+ 4 - TPV-Alloy
+ 5 - HSS-G
+ 6 - HSS-S
+ 7 - Naquadah
+ 8 - Naquadah Alloy
+ 9 - Trinium
+ 10 - Fluxed Electrum""", """
+ 11 - Awakened Draconium
+ 12 - Infinity
+ 13 - Hypogen
+ 14 - Eternal""",
+
+ // Requirements
+ """
+ Multiblock Requirements:
+
+ 27x Coils
+ 18x Pipe Casings
+ 57x Tiered Machine Casings
+ 70+ Solid Casings
+ 1x Catalyst Housing (Catalysts cannot go inside an Input Bus)""",
+
+ // Construction Guide
+ """
+ Construction Guide Pt1:
+
+ Controller is placed on a middle casing in the bottom layer
+ Hatches can only be placed on the bottom layer edges""", """
+ Construction Guide Pt2:
+
+ 7x7x7 Hollow frame of solid casings
+ 5x1x5 layer of solid casings (fills in top layer)
+ 5x1x5 layer of machine casings (fills in bottom layer)""", """
+ Construction Guide Pt3:
+ In the central 3x5x3:
+ 3x1x3 layer of Coils, surrounded by ring of Machine Casings
+ 3x1x3 layer of Pipe Casings
+ 3x1x3 layer of Coils
+ 3x1x3 layer of Pipe Casings
+ 3x1x3 layer of Coils, surrounded by ring of Machine Casings""",
+
+ // Construction Guide Info
+ """
+ Information:
+
+ A = Air
+ X = Solid Casing
+ M = Machine Casing
+ P = Pipe Casing
+ C = Coil Casing""", """
+ Layer 1:
+
+ XXXXXXX
+ XMMMMMX
+ XMMMMMX
+ XMMMMMX
+ XMMMMMX
+ XMMMMMX
+ XXXXXXX""", """
+ Layer 2:
+
+ XAAAAAX
+ AMMMMMA
+ AMCCCMA
+ AMCCCMA
+ AMCCCMA
+ AMMMMMA
+ XAAAAAX""", """
+ Layer 3:
+
+ XAAAAAX
+ AAAAAAA
+ AAPPPAA
+ AAPPPAA
+ AAPPPAA
+ AAAAAAA
+ XAAAAAX""", """
+ Layer 4:
+
+ XAAAAAX
+ AAAAAAA
+ AACCCAA
+ AACCCAA
+ AACCCAA
+ AAAAAAA
+ XAAAAAX""", """
+ Layer 5:
+
+ XAAAAAX
+ AAAAAAA
+ AAPPPAA
+ AAPPPAA
+ AAPPPAA
+ AAAAAAA
+ XAAAAAX""", """
+ Layer 6:
+
+ XAAAAAX
+ AMMMMMA
+ AMCCCMA
+ AMCCCMA
+ AMCCCMA
+ AMMMMMA
+ XAAAAAX""", """
+ Layer 7:
+
+ XXXXXXX
+ XXXXXXX
+ XXXXXXX
+ XXXXXXX
+ XXXXXXX
+ XXXXXXX
+ XXXXXXX""", });
}
public static ItemStack ItemBookWritten_ThermalBoiler;
@@ -428,26 +427,26 @@ public class BookHandler {
// Multiblock Manuals
RecipeUtils.addShapelessGregtechRecipe(
- new ItemStack[] { ItemUtils.getSimpleStack(Items.writable_book),
- ItemUtils.getSimpleStack(Items.lava_bucket) },
- ItemBookWritten_ThermalBoiler);
+ new ItemStack[] { ItemUtils.getSimpleStack(Items.writable_book),
+ ItemUtils.getSimpleStack(Items.lava_bucket) },
+ ItemBookWritten_ThermalBoiler);
GT_ModHandler.addCraftingRecipe(
- ItemBookWritten_MultiMachineManual,
- GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE
- | GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "Xw", 'X', ItemUtils.getSimpleStack(Items.writable_book) });
+ ItemBookWritten_MultiMachineManual,
+ GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE
+ | GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "Xw", 'X', ItemUtils.getSimpleStack(Items.writable_book) });
RecipeUtils.addShapelessGregtechRecipe(
- new ItemStack[] { ItemUtils.getSimpleStack(Items.writable_book),
- ItemUtils.getItemStackOfAmountFromOreDict("wireGt01Tin", 1) },
- ItemBookWritten_MultiPowerStorage);
+ new ItemStack[] { ItemUtils.getSimpleStack(Items.writable_book),
+ ItemUtils.getItemStackOfAmountFromOreDict("wireGt01Tin", 1) },
+ ItemBookWritten_MultiPowerStorage);
RecipeUtils.addShapelessGregtechRecipe(
- new ItemStack[] { ItemUtils.getSimpleStack(Items.writable_book),
- ItemUtils.getItemStackOfAmountFromOreDict("dustUranium", 1) },
- ItemBookWritten_NuclearManual);
+ new ItemStack[] { ItemUtils.getSimpleStack(Items.writable_book),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustUranium", 1) },
+ ItemBookWritten_NuclearManual);
RecipeUtils.addShapelessGregtechRecipe(
- new ItemStack[] { ItemUtils.getSimpleStack(Items.writable_book),
- ItemUtils.getItemStackOfAmountFromOreDict("wireGt01Copper", 1) },
- ItemBookWritten_MultiChemicalPlant);
+ new ItemStack[] { ItemUtils.getSimpleStack(Items.writable_book),
+ ItemUtils.getItemStackOfAmountFromOreDict("wireGt01Copper", 1) },
+ ItemBookWritten_MultiChemicalPlant);
for (int i = 0; i < mBookKeeperCount; i++) {
ItemStack bookstack = ItemUtils.simpleMetaStack(ModItems.itemCustomBook, i, 1);
diff --git a/src/main/java/gtPlusPlus/core/handler/BurnableFuelHandler.java b/src/main/java/gtPlusPlus/core/handler/BurnableFuelHandler.java
index edd85ba3d1..8e3377b5f9 100644
--- a/src/main/java/gtPlusPlus/core/handler/BurnableFuelHandler.java
+++ b/src/main/java/gtPlusPlus/core/handler/BurnableFuelHandler.java
@@ -15,7 +15,9 @@ public class BurnableFuelHandler implements IFuelHandler {
// Iterate over my burnables.
for (Pair<Integer, ItemStack> temp : CORE.burnables) {
int aStackID = Item.getIdFromItem(aStack.getItem());
- int burnID = Item.getIdFromItem(temp.getValue().getItem());
+ int burnID = Item.getIdFromItem(
+ temp.getValue()
+ .getItem());
if (aStackID == burnID) {
int burn = temp.getKey();
ItemStack fuel = temp.getValue();
diff --git a/src/main/java/gtPlusPlus/core/handler/COMPAT_HANDLER.java b/src/main/java/gtPlusPlus/core/handler/COMPAT_HANDLER.java
index 3bd35d162d..cf276d90a1 100644
--- a/src/main/java/gtPlusPlus/core/handler/COMPAT_HANDLER.java
+++ b/src/main/java/gtPlusPlus/core/handler/COMPAT_HANDLER.java
@@ -109,8 +109,8 @@ public class COMPAT_HANDLER {
for (int i = 1; i <= 10; i++) {
GT_OreDictUnificator.registerOre(
- "bufferCore_" + GT_Values.VN[i - 1],
- new ItemStack(ItemUtils.getItemFromFQRN("miscutils:item.itemBufferCore" + i)));
+ "bufferCore_" + GT_Values.VN[i - 1],
+ new ItemStack(ItemUtils.getItemFromFQRN("miscutils:item.itemBufferCore" + i)));
}
}
@@ -224,10 +224,14 @@ public class COMPAT_HANDLER {
for (RunnableWithInfo<Material> r : m) {
try {
r.run();
- Logger.INFO("[FIND] " + r.getInfoData().getLocalizedName() + " recipes generated.");
+ Logger.INFO(
+ "[FIND] " + r.getInfoData()
+ .getLocalizedName() + " recipes generated.");
} catch (Throwable t) {
t.printStackTrace();
- Logger.INFO("[ERROR] " + r.getInfoData().getLocalizedName() + " recipes failed to generated.");
+ Logger.INFO(
+ "[ERROR] " + r.getInfoData()
+ .getLocalizedName() + " recipes failed to generated.");
}
}
}
diff --git a/src/main/java/gtPlusPlus/core/handler/GuiHandler.java b/src/main/java/gtPlusPlus/core/handler/GuiHandler.java
index 2da010cb1f..d5d0859472 100644
--- a/src/main/java/gtPlusPlus/core/handler/GuiHandler.java
+++ b/src/main/java/gtPlusPlus/core/handler/GuiHandler.java
@@ -62,7 +62,7 @@ public class GuiHandler implements IGuiHandler {
@Override // ContainerModTileEntity
public Object getServerGuiElement(final int ID, final EntityPlayer player, final World world, final int x,
- final int y, final int z) {
+ final int y, final int z) {
final TileEntity te = world.getTileEntity(x, y, z);
if (te != null) {
@@ -95,18 +95,18 @@ public class GuiHandler implements IGuiHandler {
@Override // GuiModTileEntity
public Object getClientGuiElement(final int ID, final EntityPlayer player, final World world, final int x,
- final int y, final int z) {
+ final int y, final int z) {
Logger.WARNING(
- "getClientGuiElement Called by: " + player
- + ", in world: "
- + player.dimension
- + " at x:"
- + x
- + ", y:"
- + y
- + ", z:"
- + z
- + ".");
+ "getClientGuiElement Called by: " + player
+ + ", in world: "
+ + player.dimension
+ + " at x:"
+ + x
+ + ", y:"
+ + y
+ + ", z:"
+ + z
+ + ".");
final TileEntity te = world.getTileEntity(x, y, z);
if (te != null) {
if (ID == GUI1) {
@@ -127,7 +127,7 @@ public class GuiHandler implements IGuiHandler {
return new GUI_PestKiller(player.inventory, (TileEntityPestKiller) te);
} else if (ID == GUI18) {
return new GUI_VolumetricFlaskSetter(
- new Container_VolumetricFlaskSetter(player.inventory, (TileEntityVolumetricFlaskSetter) te));
+ new Container_VolumetricFlaskSetter(player.inventory, (TileEntityVolumetricFlaskSetter) te));
}
}
@@ -143,12 +143,12 @@ public class GuiHandler implements IGuiHandler {
final int guiData = encodeGuiData(guiHandler, data);
final ChunkCoordinates coordinates = guiHandler.getCoordinates();
entityplayer.openGui(
- GTplusplus.instance,
- guiData,
- entityplayer.worldObj,
- coordinates.posX,
- coordinates.posY,
- coordinates.posZ);
+ GTplusplus.instance,
+ guiData,
+ entityplayer.worldObj,
+ coordinates.posX,
+ coordinates.posY,
+ coordinates.posZ);
}
private static int encodeGuiData(final IGuiManager guiHandler, final short data) {
diff --git a/src/main/java/gtPlusPlus/core/handler/PacketHandler.java b/src/main/java/gtPlusPlus/core/handler/PacketHandler.java
index 9a2f57233b..af6a376f1a 100644
--- a/src/main/java/gtPlusPlus/core/handler/PacketHandler.java
+++ b/src/main/java/gtPlusPlus/core/handler/PacketHandler.java
@@ -39,8 +39,8 @@ public class PacketHandler {
INSTANCE.registerMessage(handlerClass, messageClass, packetId++, side);
if (AbstractPacket.class.isInstance(messageClass.getClass())) {
AbstractPacket aPacket = ReflectionUtils.createNewInstanceFromConstructor(
- ReflectionUtils.getConstructor(messageClass, new Class[] {}),
- new Object[] {});
+ ReflectionUtils.getConstructor(messageClass, new Class[] {}),
+ new Object[] {});
if (aPacket != null) {
Logger.INFO("Registered Packet: " + aPacket.getPacketName());
}
@@ -66,7 +66,7 @@ public class PacketHandler {
* Sends a message to everyone within a certain range of the coordinates in the same dimension.
*/
public static final void sendToAllAround(IMessage message, int dimension, double x, double y, double z,
- double range) {
+ double range) {
sendToAllAround(message, new NetworkRegistry.TargetPoint(dimension, x, y, z, range));
}
diff --git a/src/main/java/gtPlusPlus/core/handler/Recipes/DecayableRecipe.java b/src/main/java/gtPlusPlus/core/handler/Recipes/DecayableRecipe.java
index 16781cea8c..e50a76d5d5 100644
--- a/src/main/java/gtPlusPlus/core/handler/Recipes/DecayableRecipe.java
+++ b/src/main/java/gtPlusPlus/core/handler/Recipes/DecayableRecipe.java
@@ -25,7 +25,7 @@ public class DecayableRecipe {
public boolean equals(Object o) {
if (o instanceof DecayableRecipe i) {
if (i.mTime == this.mTime && GT_Utility.areStacksEqual(mInput, i.mInput)
- && GT_Utility.areStacksEqual(mOutput, i.mOutput)) {
+ && GT_Utility.areStacksEqual(mOutput, i.mOutput)) {
return true;
}
}
diff --git a/src/main/java/gtPlusPlus/core/handler/events/CustomMovementHandler.java b/src/main/java/gtPlusPlus/core/handler/events/CustomMovementHandler.java
index 678f2ac62f..390efe0b35 100644
--- a/src/main/java/gtPlusPlus/core/handler/events/CustomMovementHandler.java
+++ b/src/main/java/gtPlusPlus/core/handler/events/CustomMovementHandler.java
@@ -56,7 +56,8 @@ public class CustomMovementHandler {
//
// Check to see if Enabled - Added 6/17/14 to provide option to disable Sneak Toggle
- final boolean isSneaking = SneakManager.get(thisPlayer).Sneaking();
+ final boolean isSneaking = SneakManager.get(thisPlayer)
+ .Sneaking();
if (isSneaking) {
// Key Pressed
if (settings.keyBindSneak.getIsKeyPressed() && !this.handledSneakPress) {
@@ -90,7 +91,8 @@ public class CustomMovementHandler {
options.sneak = settings.keyBindSneak.getIsKeyPressed();
}
- if (options.sneak || SneakManager.get(thisPlayer).Sneaking()) {
+ if (options.sneak || SneakManager.get(thisPlayer)
+ .Sneaking()) {
options.moveStrafe = (float) (options.moveStrafe * 0.3D);
options.moveForward = (float) (options.moveForward * 0.3D);
}
@@ -100,13 +102,14 @@ public class CustomMovementHandler {
//
// Establish conditions where we don't want to start a sprint - sneaking, riding, flying, hungry
- final boolean enoughHunger = (thisPlayer.getFoodStats().getFoodLevel() > 6.0F)
- || thisPlayer.capabilities.isFlying;
+ final boolean enoughHunger = (thisPlayer.getFoodStats()
+ .getFoodLevel() > 6.0F) || thisPlayer.capabilities.isFlying;
final boolean canSprint = !options.sneak && !thisPlayer.isRiding()
- && !thisPlayer.capabilities.isFlying
- && enoughHunger;
+ && !thisPlayer.capabilities.isFlying
+ && enoughHunger;
- this.isDisabled = !SneakManager.get(thisPlayer).Sprinting();
+ this.isDisabled = !SneakManager.get(thisPlayer)
+ .Sprinting();
this.canDoubleTap = SneakManager.get(thisPlayer).optionDoubleTap;
// Key Pressed
diff --git a/src/main/java/gtPlusPlus/core/handler/events/EnderDragonDeathHandler.java b/src/main/java/gtPlusPlus/core/handler/events/EnderDragonDeathHandler.java
index 00806d748f..07b027faa1 100644
--- a/src/main/java/gtPlusPlus/core/handler/events/EnderDragonDeathHandler.java
+++ b/src/main/java/gtPlusPlus/core/handler/events/EnderDragonDeathHandler.java
@@ -35,27 +35,27 @@ public class EnderDragonDeathHandler {
for (int y = 0; y < MathUtils.randInt(100, 250); y++) {
int aAmount = MathUtils.randInt(5, 25);
event.entityLiving
- .entityDropItem(ELEMENT.STANDALONE.DRAGON_METAL.getNugget(aAmount), MathUtils.randFloat(0, 1));
+ .entityDropItem(ELEMENT.STANDALONE.DRAGON_METAL.getNugget(aAmount), MathUtils.randFloat(0, 1));
aCountTotal = +aAmount;
}
} else if (mDE && mChaoseDragonClass != null && mChaoseDragonClass.isInstance(event.entityLiving)) {
for (int y = 0; y < MathUtils.randInt(100, 200); y++) {
int aAmount = MathUtils.randInt(1, 5);
event.entityLiving
- .entityDropItem(ELEMENT.STANDALONE.DRAGON_METAL.getIngot(aAmount), MathUtils.randFloat(0, 1));
+ .entityDropItem(ELEMENT.STANDALONE.DRAGON_METAL.getIngot(aAmount), MathUtils.randFloat(0, 1));
aCountTotal = +aAmount;
}
} else if (event.entityLiving instanceof EntityDragon) {
for (int y = 0; y < MathUtils.randInt(25, 50); y++) {
int aAmount = MathUtils.randInt(1, 10);
event.entityLiving
- .entityDropItem(ELEMENT.STANDALONE.DRAGON_METAL.getNugget(aAmount), MathUtils.randFloat(0, 1));
+ .entityDropItem(ELEMENT.STANDALONE.DRAGON_METAL.getNugget(aAmount), MathUtils.randFloat(0, 1));
aCountTotal = +aAmount;
}
}
if (aCountTotal > 0) {
PlayerUtils
- .messageAllPlayers(aCountTotal + " Shards of Dragons Blood have crystalized into a metallic form.");
+ .messageAllPlayers(aCountTotal + " Shards of Dragons Blood have crystalized into a metallic form.");
}
}
}
diff --git a/src/main/java/gtPlusPlus/core/handler/events/EntityDeathHandler.java b/src/main/java/gtPlusPlus/core/handler/events/EntityDeathHandler.java
index c92985b802..20d64f2b36 100644
--- a/src/main/java/gtPlusPlus/core/handler/events/EntityDeathHandler.java
+++ b/src/main/java/gtPlusPlus/core/handler/events/EntityDeathHandler.java
@@ -40,11 +40,8 @@ public class EntityDeathHandler {
mMobDropMap.put(aMobClass, aDataMap);
Logger.INFO(
- "[Loot] Registered " + aStack.getDisplayName()
- + " (1-"
- + aMaxAmount
- + ") as a valid drop for "
- + aMobClass.getCanonicalName());
+ "[Loot] Registered " + aStack
+ .getDisplayName() + " (1-" + aMaxAmount + ") as a valid drop for " + aMobClass.getCanonicalName());
mInternalClassKeyCache.add(aMobClass);
}
@@ -86,27 +83,27 @@ public class EntityDeathHandler {
// always drop some meat.
int aBigMeatStackSize1 = MathUtils.randInt(4, 8);
aPlayer.entityDropItem(
- ItemUtils.simpleMetaStack(ModItems.itemMetaFood, 0, aBigMeatStackSize1),
- MathUtils.randInt(0, 1));
+ ItemUtils.simpleMetaStack(ModItems.itemMetaFood, 0, aBigMeatStackSize1),
+ MathUtils.randInt(0, 1));
// additional chances for more meat.
if (MathUtils.randInt(0, 10) < 7) {
int aBigMeatStackSize2 = MathUtils.randInt(4, 8);
aPlayer.entityDropItem(
- ItemUtils.simpleMetaStack(ModItems.itemMetaFood, 0, aBigMeatStackSize2),
- MathUtils.randInt(0, 1));
+ ItemUtils.simpleMetaStack(ModItems.itemMetaFood, 0, aBigMeatStackSize2),
+ MathUtils.randInt(0, 1));
}
if (MathUtils.randInt(0, 10) < 4) {
int aBigMeatStackSize3 = MathUtils.randInt(4, 8);
aPlayer.entityDropItem(
- ItemUtils.simpleMetaStack(ModItems.itemMetaFood, 0, aBigMeatStackSize3),
- MathUtils.randInt(0, 1));
+ ItemUtils.simpleMetaStack(ModItems.itemMetaFood, 0, aBigMeatStackSize3),
+ MathUtils.randInt(0, 1));
}
if (MathUtils.randInt(0, 10) < 2) {
int aBigMeatStackSize4 = MathUtils.randInt(4, 8);
aPlayer.entityDropItem(
- ItemUtils.simpleMetaStack(ModItems.itemMetaFood, 0, aBigMeatStackSize4),
- MathUtils.randInt(0, 1));
+ ItemUtils.simpleMetaStack(ModItems.itemMetaFood, 0, aBigMeatStackSize4),
+ MathUtils.randInt(0, 1));
}
}
diff --git a/src/main/java/gtPlusPlus/core/handler/events/PlayerSleepEventHandler.java b/src/main/java/gtPlusPlus/core/handler/events/PlayerSleepEventHandler.java
index 8fb4a61c44..0ca315cc72 100644
--- a/src/main/java/gtPlusPlus/core/handler/events/PlayerSleepEventHandler.java
+++ b/src/main/java/gtPlusPlus/core/handler/events/PlayerSleepEventHandler.java
@@ -23,7 +23,7 @@ import gtPlusPlus.preloader.CORE_Preloader;
public class PlayerSleepEventHandler {
private static Field sEffectDuration = ReflectionUtils
- .getField(PotionEffect.class, !CORE_Preloader.DEV_ENVIRONMENT ? "field_76460_b" : "duration");
+ .getField(PotionEffect.class, !CORE_Preloader.DEV_ENVIRONMENT ? "field_76460_b" : "duration");
private static ArrayList<Potion> sPositiveEffects = new ArrayList<>();
private static ArrayList<Potion> sNegativeEffects = new ArrayList<>();
@@ -56,7 +56,8 @@ public class PlayerSleepEventHandler {
public void wake(PlayerWakeUpEvent event) {
EntityPlayer aPlayer = event.entityPlayer;
if (aPlayer != null && !aPlayer.worldObj.isRemote) {
- if (event.entityPlayer.getEntityWorld().getWorldTime() % 24000 != 0) {
+ if (event.entityPlayer.getEntityWorld()
+ .getWorldTime() % 24000 != 0) {
return;
}
boolean aRemovedBad = false;
@@ -94,10 +95,7 @@ public class PlayerSleepEventHandler {
Potion aPotionToApply = sPositiveEffects.get(aRandomBuff);
if (aPotionToApply != null) {
aPlayer.addPotionEffect(
- new GtPotionEffect(
- aPotionToApply.id,
- MathUtils.randInt(60, 180),
- MathUtils.randInt(0, 2)));
+ new GtPotionEffect(aPotionToApply.id, MathUtils.randInt(60, 180), MathUtils.randInt(0, 2)));
messagePlayer(aPlayer, "sleep.event.wellrested");
}
}
diff --git a/src/main/java/gtPlusPlus/core/handler/events/SneakManager.java b/src/main/java/gtPlusPlus/core/handler/events/SneakManager.java
index ad6477026f..7af831c675 100644
--- a/src/main/java/gtPlusPlus/core/handler/events/SneakManager.java
+++ b/src/main/java/gtPlusPlus/core/handler/events/SneakManager.java
@@ -29,7 +29,9 @@ public class SneakManager {
}
private static String getKey(EntityPlayer aPlayer) {
- return "" + aPlayer.getGameProfile().getId().toString();
+ return "" + aPlayer.getGameProfile()
+ .getId()
+ .toString();
}
public SneakManager instance;
diff --git a/src/main/java/gtPlusPlus/core/handler/workbench/Workbench_CraftingHandler.java b/src/main/java/gtPlusPlus/core/handler/workbench/Workbench_CraftingHandler.java
index 43b7d3a2d1..6933c0f82d 100644
--- a/src/main/java/gtPlusPlus/core/handler/workbench/Workbench_CraftingHandler.java
+++ b/src/main/java/gtPlusPlus/core/handler/workbench/Workbench_CraftingHandler.java
@@ -28,8 +28,8 @@ public class Workbench_CraftingHandler {
// just a example recipe so you know how to add them
this.addRecipe(
- new ItemStack(Blocks.iron_block),
- new Object[] { "###", "###", "###", Character.valueOf('#'), Items.iron_ingot });
+ new ItemStack(Blocks.iron_block),
+ new Object[] { "###", "###", "###", Character.valueOf('#'), Items.iron_ingot });
// another example Recipe, but shapeless
this.addShapelessRecipe(new ItemStack(Items.cake), new Object[] { Items.stick });
@@ -47,14 +47,18 @@ public class Workbench_CraftingHandler {
for (final String s2 : as) {
k++;
j = s2.length();
- s = (new StringBuilder()).append(s).append(s2).toString();
+ s = (new StringBuilder()).append(s)
+ .append(s2)
+ .toString();
}
} else {
while (par2ArrayOfObj[i] instanceof String) {
final String s1 = (String) par2ArrayOfObj[i++];
k++;
j = s1.length();
- s = (new StringBuilder()).append(s).append(s1).toString();
+ s = (new StringBuilder()).append(s)
+ .append(s1)
+ .toString();
}
}
@@ -81,7 +85,8 @@ public class Workbench_CraftingHandler {
final char c = s.charAt(i1);
if (hashmap.containsKey(Character.valueOf(c))) {
- aitemstack[i1] = hashmap.get(Character.valueOf(c)).copy();
+ aitemstack[i1] = hashmap.get(Character.valueOf(c))
+ .copy();
} else {
aitemstack[i1] = null;
}
diff --git a/src/main/java/gtPlusPlus/core/item/ModItems.java b/src/main/java/gtPlusPlus/core/item/ModItems.java
index cbd149fbdf..0fabf375a2 100644
--- a/src/main/java/gtPlusPlus/core/item/ModItems.java
+++ b/src/main/java/gtPlusPlus/core/item/ModItems.java
@@ -220,10 +220,10 @@ public final class ModItems {
// Default item used when recipes fail, handy for debugging. Let's make sure they exist when this class is
// called upon.
AAA_Broken = new BaseItemIngot_OLD(
- "AAA_Broken",
- "Errors - Tell Alkalus",
- Utils.rgbtoHexValue(128, 128, 128),
- 0);
+ "AAA_Broken",
+ "Errors - Tell Alkalus",
+ Utils.rgbtoHexValue(128, 128, 128),
+ 0);
ZZZ_Empty = new ItemEmpty();
}
@@ -232,15 +232,15 @@ public final class ModItems {
itemMagicFeather = new ItemMagicFeather();
itemAlkalusDisk = new BaseItemDamageable(
- "itemAlkalusDisk",
- AddToCreativeTab.tabMisc,
- 1,
- 0,
- "Unknown Use",
- EnumRarity.rare,
- EnumChatFormatting.AQUA,
- false,
- null);
+ "itemAlkalusDisk",
+ AddToCreativeTab.tabMisc,
+ 1,
+ 0,
+ "Unknown Use",
+ EnumRarity.rare,
+ EnumChatFormatting.AQUA,
+ false,
+ null);
itemGenericToken = new ItemGenericToken();
itemDummyResearch = new ItemDummyResearch();
@@ -258,15 +258,15 @@ public final class ModItems {
itemBlueprintBase = new ItemBlueprint("itemBlueprint");
itemHalfCompleteCasings = new ItemHalfCompleteCasings(
- "itemHalfCompleteCasings",
- AddToCreativeTab.tabMisc,
- 32,
- 0,
- "This isn't quite finished yet.",
- EnumRarity.common,
- EnumChatFormatting.GRAY,
- false,
- Utils.rgbtoHexValue(255, 255, 255)).setTextureName(GregTech.ID + ":" + "gt.metaitem.01/" + "761");
+ "itemHalfCompleteCasings",
+ AddToCreativeTab.tabMisc,
+ 32,
+ 0,
+ "This isn't quite finished yet.",
+ EnumRarity.common,
+ EnumChatFormatting.GRAY,
+ false,
+ Utils.rgbtoHexValue(255, 255, 255)).setTextureName(GregTech.ID + ":" + "gt.metaitem.01/" + "761");
// Start meta Item Generation
ItemsFoods.load();
@@ -490,17 +490,17 @@ public final class ModItems {
shardAqua = new BaseItemTCShard("Aqua", Utils.rgbtoHexValue(5, 5, 255));
} else {
shardAer = ItemUtils
- .getItemStackWithMeta(Thaumcraft.isModLoaded(), "Thaumcraft:ItemShard", "Air Shard", 0, 1)
- .getItem();
+ .getItemStackWithMeta(Thaumcraft.isModLoaded(), "Thaumcraft:ItemShard", "Air Shard", 0, 1)
+ .getItem();
shardIgnis = ItemUtils
- .getItemStackWithMeta(Thaumcraft.isModLoaded(), "Thaumcraft:ItemShard", "Fire Shard", 1, 1)
- .getItem();
+ .getItemStackWithMeta(Thaumcraft.isModLoaded(), "Thaumcraft:ItemShard", "Fire Shard", 1, 1)
+ .getItem();
shardAqua = ItemUtils
- .getItemStackWithMeta(Thaumcraft.isModLoaded(), "Thaumcraft:ItemShard", "Warer Shard", 2, 1)
- .getItem();
+ .getItemStackWithMeta(Thaumcraft.isModLoaded(), "Thaumcraft:ItemShard", "Warer Shard", 2, 1)
+ .getItem();
shardTerra = ItemUtils
- .getItemStackWithMeta(Thaumcraft.isModLoaded(), "Thaumcraft:ItemShard", "Earth Shard", 3, 1)
- .getItem();
+ .getItemStackWithMeta(Thaumcraft.isModLoaded(), "Thaumcraft:ItemShard", "Earth Shard", 3, 1)
+ .getItem();
}
// Generates a set of four special dusts to be used in my recipes.
dustAer = ItemUtils.generateSpecialUseDusts(ELEMENT.getInstance().AER, true)[0];
@@ -509,64 +509,64 @@ public final class ModItems {
dustAqua = ItemUtils.generateSpecialUseDusts(ELEMENT.getInstance().AQUA, true)[0];
ItemUtils.generateSpecialUseDusts(MISC_MATERIALS.WOODS_GLASS, false);
- cellHydrogenChlorideMix = MISC_MATERIALS.HYDROGEN_CHLORIDE_MIX.getCell(1).getItem();
+ cellHydrogenChlorideMix = MISC_MATERIALS.HYDROGEN_CHLORIDE_MIX.getCell(1)
+ .getItem();
// Nuclear Fuel Dusts
dustLithiumCarbonate = ItemUtils.generateSpecialUseDusts(
- "LithiumCarbonate",
- "Lithium Carbonate",
- "Li2CO3",
- Utils.rgbtoHexValue(240, 240, 240))[0]; // https://en.wikipedia.org/wiki/Lithium_carbonate
+ "LithiumCarbonate",
+ "Lithium Carbonate",
+ "Li2CO3",
+ Utils.rgbtoHexValue(240, 240, 240))[0]; // https://en.wikipedia.org/wiki/Lithium_carbonate
dustLithiumPeroxide = ItemUtils.generateSpecialUseDusts(
- "LithiumPeroxide",
- "Lithium Peroxide",
- "Li2O2",
- Utils.rgbtoHexValue(250, 250, 250))[0]; // https://en.wikipedia.org/wiki/Lithium_peroxide
+ "LithiumPeroxide",
+ "Lithium Peroxide",
+ "Li2O2",
+ Utils.rgbtoHexValue(250, 250, 250))[0]; // https://en.wikipedia.org/wiki/Lithium_peroxide
dustLithiumHydroxide = ItemUtils.generateSpecialUseDusts(
- "LithiumHydroxide",
- "Lithium Hydroxide",
- "LiOH",
- Utils.rgbtoHexValue(250, 250, 250))[0]; // https://en.wikipedia.org/wiki/Lithium_hydroxide
+ "LithiumHydroxide",
+ "Lithium Hydroxide",
+ "LiOH",
+ Utils.rgbtoHexValue(250, 250, 250))[0]; // https://en.wikipedia.org/wiki/Lithium_hydroxide
if (!ItemUtils.checkForInvalidItems(ItemUtils.getItemStackOfAmountFromOreDict("dustQuicklime", 1))) {
dustQuicklime = ItemUtils
- .generateSpecialUseDusts("Quicklime", "Quicklime", "CaO", Utils.rgbtoHexValue(255, 255, 175))[0]; // https://en.wikipedia.org/wiki/Calcium_oxide
+ .generateSpecialUseDusts("Quicklime", "Quicklime", "CaO", Utils.rgbtoHexValue(255, 255, 175))[0]; // https://en.wikipedia.org/wiki/Calcium_oxide
}
dustCalciumHydroxide = ItemUtils.generateSpecialUseDusts(
- "CalciumHydroxide",
- "Hydrated Lime",
- "Ca(OH)2",
- Utils.rgbtoHexValue(255, 255, 255))[0]; // https://en.wikipedia.org/wiki/Calcium_hydroxide
+ "CalciumHydroxide",
+ "Hydrated Lime",
+ "Ca(OH)2",
+ Utils.rgbtoHexValue(255, 255, 255))[0]; // https://en.wikipedia.org/wiki/Calcium_hydroxide
dustCalciumCarbonate = ItemUtils.generateSpecialUseDusts(
- "CalciumCarbonate",
- "Calcium Carbonate",
- "CaCO3",
- Utils.rgbtoHexValue(255, 255, 255))[0]; // https://en.wikipedia.org/wiki/Calcium_carbonate
+ "CalciumCarbonate",
+ "Calcium Carbonate",
+ "CaCO3",
+ Utils.rgbtoHexValue(255, 255, 255))[0]; // https://en.wikipedia.org/wiki/Calcium_carbonate
if ((ItemUtils.getItemStackOfAmountFromOreDictNoBroken("dustGypsum", 1) == null)
- || (ItemUtils.getItemStackOfAmountFromOreDictNoBroken("dustCalciumSulfate", 1) == null)) {
+ || (ItemUtils.getItemStackOfAmountFromOreDictNoBroken("dustCalciumSulfate", 1) == null)) {
dustCalciumSulfate = ItemUtils.generateSpecialUseDusts(
- "Gypsum",
- "Calcium Sulfate (Gypsum)",
- "CaSO4",
- Utils.rgbtoHexValue(255, 255, 255))[0]; // https://en.wikipedia.org/wiki/Calcium_sulfate
+ "Gypsum",
+ "Calcium Sulfate (Gypsum)",
+ "CaSO4",
+ Utils.rgbtoHexValue(255, 255, 255))[0]; // https://en.wikipedia.org/wiki/Calcium_sulfate
GT_OreDictUnificator.registerOre("dustCalciumSulfate", ItemUtils.getSimpleStack(dustCalciumSulfate));
} else {
- GT_OreDictUnificator.registerOre(
- "dustCalciumSulfate",
- ItemUtils.getItemStackOfAmountFromOreDictNoBroken("dustGypsum", 1));
+ GT_OreDictUnificator
+ .registerOre("dustCalciumSulfate", ItemUtils.getItemStackOfAmountFromOreDictNoBroken("dustGypsum", 1));
}
dustLi2CO3CaOH2 = ItemUtils.generateSpecialUseDusts(
- "Li2CO3CaOH2",
- "Li2CO3 + Ca(OH)2 Compound",
- "Li2CO3CaOH2",
- Utils.rgbtoHexValue(255, 255, 255))[0]; // https://en.wikipedia.org/wiki/Calcium_carbonate
+ "Li2CO3CaOH2",
+ "Li2CO3 + Ca(OH)2 Compound",
+ "Li2CO3CaOH2",
+ Utils.rgbtoHexValue(255, 255, 255))[0]; // https://en.wikipedia.org/wiki/Calcium_carbonate
MaterialUtils.generateSpecialDustAndAssignToAMaterial(FLUORIDES.SODIUM_FLUORIDE, false);
// FLiBe Fuel Compounds
dustLi2BeF4 = ItemUtils.generateSpecialUseDusts(
- "Li2BeF4",
- "Lithium Tetrafluoroberyllate Fuel Compound",
- "Li2BeF4",
- Utils.rgbtoHexValue(255, 255, 255))[0]; // https://en.wikipedia.org/wiki/FLiBe
+ "Li2BeF4",
+ "Lithium Tetrafluoroberyllate Fuel Compound",
+ "Li2BeF4",
+ Utils.rgbtoHexValue(255, 255, 255))[0]; // https://en.wikipedia.org/wiki/FLiBe
Material.registerComponentForMaterial(NUCLIDE.Li2BeF4, OrePrefixes.dust, ItemUtils.getSimpleStack(dustLi2BeF4));
// fluidFLiBeSalt = ("Li2BeF4", "Li2BeF4", 7430, new short[]{255, 255, 255, 100}, 0);
// fluidFLiBeSalt = FluidUtils.addGTFluidNoPrefix("Li2BeF4", "Lithium Tetrafluoroberyllate", new short[]{255,
@@ -585,28 +585,28 @@ public final class ModItems {
// 800, null, CI.emptyCells(1), 1000, true);
// LFTR Blanket Fluid Processing
fluidNuclearWaste = FluidUtils.addGTFluidNoPrefix(
- "nuclear.waste",
- "Nuclear Waste",
- new short[] { 10, 250, 10, 100 },
- 0,
- 1000,
- null,
- CI.emptyCells(1),
- 1000,
- true);
+ "nuclear.waste",
+ "Nuclear Waste",
+ new short[] { 10, 250, 10, 100 },
+ 0,
+ 1000,
+ null,
+ CI.emptyCells(1),
+ 1000,
+ true);
// LFTR Control Circuit
itemCircuitLFTR = new CoreItem(
- "itemCircuitLFTR",
- "" + EnumChatFormatting.GREEN + "Control Circuit",
- AddToCreativeTab.tabMisc,
- 1,
- 0,
- new String[] { "Keeps Multiblocks Stable" },
- EnumRarity.epic,
- EnumChatFormatting.DARK_GREEN,
- false,
- null);
+ "itemCircuitLFTR",
+ "" + EnumChatFormatting.GREEN + "Control Circuit",
+ AddToCreativeTab.tabMisc,
+ 1,
+ 0,
+ new String[] { "Keeps Multiblocks Stable" },
+ EnumRarity.epic,
+ EnumChatFormatting.DARK_GREEN,
+ false,
+ null);
if (CORE.ConfigSwitches.enableMachine_Pollution) {
itemBasicTurbine = new ItemBasicScrubberTurbine();
@@ -615,14 +615,14 @@ public final class ModItems {
// Zirconium
// Cinter Pellet.
itemZirconiumChlorideCinterPellet = new CoreItem(
- "itemZirconiumPellet",
- "Zirconium Pellet [" + StringUtils.subscript("ZrCl4") + "]",
- tabMisc).setTextureName(GTPlusPlus.ID + ":itemShard");
+ "itemZirconiumPellet",
+ "Zirconium Pellet [" + StringUtils.subscript("ZrCl4") + "]",
+ tabMisc).setTextureName(GTPlusPlus.ID + ":itemShard");
GT_OreDictUnificator.registerOre("pelletZirconium", new ItemStack(itemZirconiumChlorideCinterPellet));
// Zirconium Chloride
dustZrCl4 = ItemUtils.generateSpecialUseDusts("ZrCl4", "ZrCl4", "ZrCl4", Utils.rgbtoHexValue(180, 180, 180))[0]; // http://www.iaea.org/inis/collection/NCLCollectionStore/_Public/39/036/39036750.pdf
dustCookedZrCl4 = ItemUtils
- .generateSpecialUseDusts("CookedZrCl4", "Cooked ZrCl4", "ZrCl4", Utils.rgbtoHexValue(180, 180, 180))[0]; // http://www.iaea.org/inis/collection/NCLCollectionStore/_Public/39/036/39036750.pdf
+ .generateSpecialUseDusts("CookedZrCl4", "Cooked ZrCl4", "ZrCl4", Utils.rgbtoHexValue(180, 180, 180))[0]; // http://www.iaea.org/inis/collection/NCLCollectionStore/_Public/39/036/39036750.pdf
// Zirconium Tetrafluoride
/*
@@ -632,10 +632,10 @@ public final class ModItems {
* ItemUtils.getItemStackOfAmountFromOreDict("dustZirconiumTetrafluoride", 1));
*/
fluidZrF4 = FluidUtils.generateFluidNoPrefix(
- "ZirconiumTetrafluoride",
- "Zirconium Tetrafluoride",
- 500,
- new short[] { 170, 170, 140, 100 }); // https://en.wikipedia.org/wiki/Zirconium_tetrafluoride
+ "ZirconiumTetrafluoride",
+ "Zirconium Tetrafluoride",
+ 500,
+ new short[] { 170, 170, 140, 100 }); // https://en.wikipedia.org/wiki/Zirconium_tetrafluoride
FLUORIDES.ZIRCONIUM_TETRAFLUORIDE.setFluid(fluidZrF4);
// Coolant Salt
@@ -646,9 +646,9 @@ public final class ModItems {
// Load Tree Farmer
if (CORE.ConfigSwitches.enableMultiblock_TreeFarmer) { // https://en.wikipedia.org/wiki/UAN
dustFertUN18 = ItemUtils
- .generateSpecialUseDusts("UN18Fertiliser", "UN-18 Fertiliser", Utils.rgbtoHexValue(60, 155, 60))[0];
+ .generateSpecialUseDusts("UN18Fertiliser", "UN-18 Fertiliser", Utils.rgbtoHexValue(60, 155, 60))[0];
dustFertUN32 = ItemUtils
- .generateSpecialUseDusts("UN32Fertiliser", "UN-32 Fertiliser", Utils.rgbtoHexValue(55, 190, 55))[0];
+ .generateSpecialUseDusts("UN32Fertiliser", "UN-32 Fertiliser", Utils.rgbtoHexValue(55, 190, 55))[0];
ItemStack temp1 = ItemUtils.getCorrectStacktype("IC2:itemFertilizer", 1);
ItemStack temp2 = null;
@@ -658,32 +658,36 @@ public final class ModItems {
}
if (temp1 != null) {
fluidFertBasic = FluidUtils.generateFluidNonMolten(
- "Fertiliser",
- "Fertiliser",
- 32,
- new short[] { 45, 170, 45, 100 },
- temp1,
- null,
- true);
- GT_Values.RA.stdBuilder().itemInputs(temp2).fluidOutputs(new FluidStack(fluidFertBasic, 36))
- .duration(5 * TICKS).eut(16).addTo(fluidExtractionRecipes);
- }
- fluidFertUN32 = FluidUtils.generateFluidNonMolten(
- "UN32Fertiliser",
- "UN-32 Fertiliser",
- 24,
- new short[] { 55, 190, 55, 100 },
- null,
+ "Fertiliser",
+ "Fertiliser",
+ 32,
+ new short[] { 45, 170, 45, 100 },
+ temp1,
null,
true);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(temp2)
+ .fluidOutputs(new FluidStack(fluidFertBasic, 36))
+ .duration(5 * TICKS)
+ .eut(16)
+ .addTo(fluidExtractionRecipes);
+ }
+ fluidFertUN32 = FluidUtils.generateFluidNonMolten(
+ "UN32Fertiliser",
+ "UN-32 Fertiliser",
+ 24,
+ new short[] { 55, 190, 55, 100 },
+ null,
+ null,
+ true);
fluidFertUN18 = FluidUtils.generateFluidNonMolten(
- "UN18Fertiliser",
- "UN-18 Fertiliser",
- 22,
- new short[] { 60, 155, 60, 100 },
- null,
- null,
- true);
+ "UN18Fertiliser",
+ "UN-18 Fertiliser",
+ 22,
+ new short[] { 60, 155, 60, 100 },
+ null,
+ null,
+ true);
/*
* GT_Values.RA.addMixerRecipe( arg0, //Item In arg1, arg2, arg3, arg4, //Fluid in arg5, //Fluid Out arg6,
@@ -694,14 +698,14 @@ public final class ModItems {
// Juice
FluidUtils.generateFluidNonMolten(
- "RaisinJuice",
- "Raisin Juice",
- 2,
- new short[] { 51, 0, 51, 100 },
- ItemUtils.getItemStackOfAmountFromOreDictNoBroken("foodRaisins", 1),
- ItemUtils.getItemStackOfAmountFromOreDictNoBroken("fruitRaisins", 1),
- 50,
- true);
+ "RaisinJuice",
+ "Raisin Juice",
+ 2,
+ new short[] { 51, 0, 51, 100 },
+ ItemUtils.getItemStackOfAmountFromOreDictNoBroken("foodRaisins", 1),
+ ItemUtils.getItemStackOfAmountFromOreDictNoBroken("fruitRaisins", 1),
+ 50,
+ true);
// Test items
toolGregtechPump = new GregtechPump();
@@ -716,49 +720,52 @@ public final class ModItems {
}
dustNeptunium238 = new DustDecayable(
- "dustNeptunium238",
- Utils.rgbtoHexValue(175, 240, 75),
- 50640,
- new String[] { StringUtils.superscript("238Np"),
- "Result: Plutonium 238 (" + StringUtils.superscript("238Pu") + ")" },
- ELEMENT.getInstance().PLUTONIUM238.getDust(1).getItem(),
- 5);
+ "dustNeptunium238",
+ Utils.rgbtoHexValue(175, 240, 75),
+ 50640,
+ new String[] { StringUtils.superscript("238Np"),
+ "Result: Plutonium 238 (" + StringUtils.superscript("238Pu") + ")" },
+ ELEMENT.getInstance().PLUTONIUM238.getDust(1)
+ .getItem(),
+ 5);
dustDecayedRadium226 = ItemUtils.generateSpecialUseDusts(
- "DecayedRadium226",
- "Decayed Radium-226",
- "Contains Radon (" + StringUtils.superscript("222Rn") + ")",
- ELEMENT.getInstance().RADIUM.getRgbAsHex())[0];
+ "DecayedRadium226",
+ "Decayed Radium-226",
+ "Contains Radon (" + StringUtils.superscript("222Rn") + ")",
+ ELEMENT.getInstance().RADIUM.getRgbAsHex())[0];
dustRadium226 = new DustDecayable(
- "dustRadium226",
- ELEMENT.getInstance().RADIUM.getRgbAsHex(),
- 90000,
- new String[] { StringUtils.superscript("226Ra"),
- "Result: Radon (" + StringUtils.superscript("222Rn") + ")" },
- ItemUtils.getSimpleStack(dustDecayedRadium226).getItem(),
- 5);
+ "dustRadium226",
+ ELEMENT.getInstance().RADIUM.getRgbAsHex(),
+ 90000,
+ new String[] { StringUtils.superscript("226Ra"),
+ "Result: Radon (" + StringUtils.superscript("222Rn") + ")" },
+ ItemUtils.getSimpleStack(dustDecayedRadium226)
+ .getItem(),
+ 5);
dustProtactinium233 = new DustDecayable(
- "dustProtactinium233",
- ELEMENT.getInstance().PROTACTINIUM.getRgbAsHex(),
- 32000,
- new String[] { StringUtils.superscript("233Pa"),
- "Result: Uranium 233(" + StringUtils.superscript("233U") + ")" },
- ELEMENT.getInstance().URANIUM233.getDust(1).getItem(),
- 6);
+ "dustProtactinium233",
+ ELEMENT.getInstance().PROTACTINIUM.getRgbAsHex(),
+ 32000,
+ new String[] { StringUtils.superscript("233Pa"),
+ "Result: Uranium 233(" + StringUtils.superscript("233U") + ")" },
+ ELEMENT.getInstance().URANIUM233.getDust(1)
+ .getItem(),
+ 6);
dustMolybdenum99 = new DustDecayable(
- "dustMolybdenum99",
- ELEMENT.getInstance().MOLYBDENUM.getRgbAsHex(),
- 16450,
- new String[] { StringUtils.superscript("99Mo"),
- "Result: Technicium 99ᵐ (" + StringUtils.superscript("99ᵐTc") + ")" },
- dustTechnetium99M,
- 4);
+ "dustMolybdenum99",
+ ELEMENT.getInstance().MOLYBDENUM.getRgbAsHex(),
+ 16450,
+ new String[] { StringUtils.superscript("99Mo"),
+ "Result: Technicium 99ᵐ (" + StringUtils.superscript("99ᵐTc") + ")" },
+ dustTechnetium99M,
+ 4);
itemIonParticleBase = new IonParticles();
itemStandarParticleBase = new StandardBaseParticles();
Item a8kFlask = VolumetricFlaskHelper.generateNewFlask("Volumetric_Flask_8k", "Large Volumetric Flask", 8000);
Item a64kFlask = VolumetricFlaskHelper
- .generateNewFlask("Volumetric_Flask_32k", "Gigantic Volumetric Flask", 32000);
+ .generateNewFlask("Volumetric_Flask_32k", "Gigantic Volumetric Flask", 32000);
GregtechItemList.VOLUMETRIC_FLASK_8k.set(a8kFlask);
GregtechItemList.VOLUMETRIC_FLASK_32k.set(a64kFlask);
@@ -827,34 +834,34 @@ public final class ModItems {
*/
if (!ItemUtils.checkForInvalidItems(ItemUtils.getItemStackOfAmountFromOreDictNoBroken("dustGadolinium", 1))) {
ItemUtils.generateSpecialUseDusts(
- "Gadolinium",
- "Gadolinium",
- Materials.Gadolinium.mElement.name(),
- Utils.rgbtoHexValue(226, 172, 9));
+ "Gadolinium",
+ "Gadolinium",
+ Materials.Gadolinium.mElement.name(),
+ Utils.rgbtoHexValue(226, 172, 9));
}
if (!ItemUtils.checkForInvalidItems(ItemUtils.getItemStackOfAmountFromOreDictNoBroken("dustYtterbium", 1))) {
ItemUtils.generateSpecialUseDusts(
- "Ytterbium",
- "Ytterbium",
- Materials.Ytterbium.mElement.name(),
- Utils.rgbtoHexValue(
- Materials.Yttrium.mRGBa[0] - 60,
- Materials.Yttrium.mRGBa[1] - 60,
- Materials.Yttrium.mRGBa[2] - 60));
+ "Ytterbium",
+ "Ytterbium",
+ Materials.Ytterbium.mElement.name(),
+ Utils.rgbtoHexValue(
+ Materials.Yttrium.mRGBa[0] - 60,
+ Materials.Yttrium.mRGBa[1] - 60,
+ Materials.Yttrium.mRGBa[2] - 60));
}
if (!ItemUtils.checkForInvalidItems(ItemUtils.getItemStackOfAmountFromOreDictNoBroken("dustSamarium", 1))) {
ItemUtils.generateSpecialUseDusts(
- "Samarium",
- "Samarium",
- Materials.Samarium.mElement.name(),
- Utils.rgbtoHexValue(161, 168, 114));
+ "Samarium",
+ "Samarium",
+ Materials.Samarium.mElement.name(),
+ Utils.rgbtoHexValue(161, 168, 114));
}
if (!ItemUtils.checkForInvalidItems(ItemUtils.getItemStackOfAmountFromOreDictNoBroken("dustLanthanum", 1))) {
ItemUtils.generateSpecialUseDusts(
- "Lanthanum",
- "Lanthanum",
- Materials.Lanthanum.mElement.name(),
- Utils.rgbtoHexValue(106, 127, 163));
+ "Lanthanum",
+ "Lanthanum",
+ Materials.Lanthanum.mElement.name(),
+ Utils.rgbtoHexValue(106, 127, 163));
}
// Just an unusual plate needed for some black magic.
@@ -877,7 +884,7 @@ public final class ModItems {
// Krypton Processing
if (ItemUtils.getItemStackOfAmountFromOreDictNoBroken("ingotHotTitanium", 1) == null) {
itemHotTitaniumIngot = ItemUtils
- .getSimpleStack(new BaseItemIngot(ELEMENT.getInstance().TITANIUM, ComponentTypes.HOTINGOT));
+ .getSimpleStack(new BaseItemIngot(ELEMENT.getInstance().TITANIUM, ComponentTypes.HOTINGOT));
} else {
itemHotTitaniumIngot = ItemUtils.getItemStackOfAmountFromOreDictNoBroken("ingotHotTitanium", 1);
}
@@ -889,7 +896,7 @@ public final class ModItems {
// Springs
MaterialUtils
- .generateComponentAndAssignToAMaterial(ComponentTypes.SPRING, ELEMENT.STANDALONE.CELESTIAL_TUNGSTEN);
+ .generateComponentAndAssignToAMaterial(ComponentTypes.SPRING, ELEMENT.STANDALONE.CELESTIAL_TUNGSTEN);
MaterialUtils.generateComponentAndAssignToAMaterial(ComponentTypes.SPRING, ELEMENT.STANDALONE.WHITE_METAL);
MaterialUtils.generateComponentAndAssignToAMaterial(ComponentTypes.SPRING, ALLOY.NITINOL_60);
MaterialUtils.generateComponentAndAssignToAMaterial(ComponentTypes.SPRING, ALLOY.AQUATIC_STEEL);
@@ -913,7 +920,7 @@ public final class ModItems {
MaterialUtils.generateComponentAndAssignToAMaterial(ComponentTypes.FINEWIRE, ALLOY.QUANTUM);
MaterialUtils.generateComponentAndAssignToAMaterial(ComponentTypes.FINEWIRE, ELEMENT.STANDALONE.HYPOGEN);
MaterialUtils
- .generateComponentAndAssignToAMaterial(ComponentTypes.FINEWIRE, ELEMENT.STANDALONE.CHRONOMATIC_GLASS);
+ .generateComponentAndAssignToAMaterial(ComponentTypes.FINEWIRE, ELEMENT.STANDALONE.CHRONOMATIC_GLASS);
// Foil
MaterialUtils.generateComponentAndAssignToAMaterial(ComponentTypes.FOIL, ALLOY.BLACK_TITANIUM);
@@ -966,16 +973,16 @@ public final class ModItems {
// A plate of Europium.
if ((ItemUtils.getItemStackOfAmountFromOreDictNoBroken("plateEuropium", 1) == null)
- && CORE.ConfigSwitches.enableCustom_Pipes) {
+ && CORE.ConfigSwitches.enableCustom_Pipes) {
itemPlateEuropium = new BaseItemPlate(ELEMENT.getInstance().EUROPIUM);
}
if ((ItemUtils.getItemStackOfAmountFromOreDictNoBroken("plateDoubleEuropium", 1) == null)
- && CORE.ConfigSwitches.enableCustom_Pipes) {
+ && CORE.ConfigSwitches.enableCustom_Pipes) {
itemDoublePlateEuropium = new BaseItemPlateDouble(ELEMENT.getInstance().EUROPIUM);
}
// Tumbaga Mix (For Simple Crafting)
dustTumbagaMix = ItemUtils
- .generateSpecialUseDusts("MixTumbaga", "Tumbaga Mix", "Au2Cu", Utils.rgbtoHexValue(255, 150, 80))[0];
+ .generateSpecialUseDusts("MixTumbaga", "Tumbaga Mix", "Au2Cu", Utils.rgbtoHexValue(255, 150, 80))[0];
}
}
diff --git a/src/main/java/gtPlusPlus/core/item/base/BaseItemBurnable.java b/src/main/java/gtPlusPlus/core/item/base/BaseItemBurnable.java
index 3b22db5b6f..8bbc5a3b08 100644
--- a/src/main/java/gtPlusPlus/core/item/base/BaseItemBurnable.java
+++ b/src/main/java/gtPlusPlus/core/item/base/BaseItemBurnable.java
@@ -12,7 +12,7 @@ public class BaseItemBurnable extends CoreItem {
protected final int meta;
public BaseItemBurnable(String unlocalizedName, String displayName, CreativeTabs creativeTab, int stackSize,
- int maxDmg, String description, String oredictName, int burnTime, int meta) {
+ int maxDmg, String description, String oredictName, int burnTime, int meta) {
super(unlocalizedName, creativeTab, stackSize, maxDmg, description);
this.itemName = displayName;
this.meta = meta;
diff --git a/src/main/java/gtPlusPlus/core/item/base/BaseItemColourable.java b/src/main/java/gtPlusPlus/core/item/base/BaseItemColourable.java
index e846603070..d391207a56 100644
--- a/src/main/java/gtPlusPlus/core/item/base/BaseItemColourable.java
+++ b/src/main/java/gtPlusPlus/core/item/base/BaseItemColourable.java
@@ -33,8 +33,8 @@ public class BaseItemColourable extends Item {
* Name, Tab, Stack, Dmg, Description, Rarity, Text Colour, Effect
*/
public BaseItemColourable(final String unlocalizedName, final CreativeTabs creativeTab, final int stackSize,
- final int maxDmg, final String description, final EnumRarity regRarity, final EnumChatFormatting colour,
- final boolean Effect, int rgb) {
+ final int maxDmg, final String description, final EnumRarity regRarity, final EnumChatFormatting colour,
+ final boolean Effect, int rgb) {
this.setUnlocalizedName(unlocalizedName);
this.setTextureName(GTPlusPlus.ID + ":" + unlocalizedName);
this.setCreativeTab(creativeTab);
@@ -54,8 +54,8 @@ public class BaseItemColourable extends Item {
* Name, Tab, Stack, Dmg, Description, Rarity, Text Colour, Effect
*/
public BaseItemColourable(final String unlocalizedName, final String displayName, final CreativeTabs creativeTab,
- final int stackSize, final int maxDmg, final String description, final EnumRarity regRarity,
- final EnumChatFormatting colour, final boolean Effect, int rgb) {
+ final int stackSize, final int maxDmg, final String description, final EnumRarity regRarity,
+ final EnumChatFormatting colour, final boolean Effect, int rgb) {
this.setUnlocalizedName(unlocalizedName);
GT_LanguageManager.addStringLocalization("gtplusplus." + this.getUnlocalizedName() + ".name", displayName);
this.setTextureName(GTPlusPlus.ID + ":" + unlocalizedName);
@@ -74,8 +74,8 @@ public class BaseItemColourable extends Item {
@Override
public void addInformation(final ItemStack stack, final EntityPlayer aPlayer, final List list, final boolean bool) {
list.add(
- this.descColour
- + GT_LanguageManager.getTranslation("gtplusplus." + this.getUnlocalizedName() + ".tooltip"));
+ this.descColour
+ + GT_LanguageManager.getTranslation("gtplusplus." + this.getUnlocalizedName() + ".tooltip"));
// super.addInformation(stack, aPlayer, list, bool);
}
@@ -93,7 +93,7 @@ public class BaseItemColourable extends Item {
@Override
public String getItemStackDisplayName(final ItemStack tItem) {
if (!("gtplusplus." + this.getUnlocalizedName() + ".name")
- .equals(GT_LanguageManager.getTranslation("gtplusplus." + this.getUnlocalizedName() + ".name"))) {
+ .equals(GT_LanguageManager.getTranslation("gtplusplus." + this.getUnlocalizedName() + ".name"))) {
return GT_LanguageManager.getTranslation("gtplusplus." + this.getUnlocalizedName() + ".name");
} else return super.getItemStackDisplayName(tItem);
}
diff --git a/src/main/java/gtPlusPlus/core/item/base/BaseItemComponent.java b/src/main/java/gtPlusPlus/core/item/base/BaseItemComponent.java
index dea21a97c4..6846f8febb 100644
--- a/src/main/java/gtPlusPlus/core/item/base/BaseItemComponent.java
+++ b/src/main/java/gtPlusPlus/core/item/base/BaseItemComponent.java
@@ -72,8 +72,8 @@ public class BaseItemComponent extends Item {
// if (componentType != ComponentTypes.DUST)
GT_OreDictUnificator.registerOre(
- componentType.getOreDictName() + material.getUnlocalizedName(),
- ItemUtils.getSimpleStack(this));
+ componentType.getOreDictName() + material.getUnlocalizedName(),
+ ItemUtils.getSimpleStack(this));
if (componentType == ComponentTypes.GEAR) {
GT_OreDictUnificator.registerOre("gear" + material.getUnlocalizedName(), ItemUtils.getSimpleStack(this));
}
@@ -97,7 +97,9 @@ public class BaseItemComponent extends Item {
this.componentMaterial = aTempMaterial;
this.unlocalName = "itemCell" + aFormattedNameForFluids;
this.materialName = localName;
- this.translatedMaterialName = getFluidName("fluid." + this.materialName.toLowerCase().replace(" ", ""));
+ this.translatedMaterialName = getFluidName(
+ "fluid." + this.materialName.toLowerCase()
+ .replace(" ", ""));
this.componentType = ComponentTypes.CELL;
this.setCreativeTab(AddToCreativeTab.tabMisc);
this.setUnlocalizedName(aFormattedNameForFluids);
@@ -108,16 +110,17 @@ public class BaseItemComponent extends Item {
this.setTextureName(GTPlusPlus.ID + ":" + "item" + ComponentTypes.CELL.COMPONENT_NAME);
GameRegistry.registerItem(this, aFormattedNameForFluids);
GT_OreDictUnificator.registerOre(
- ComponentTypes.CELL.getOreDictName() + Utils.sanitizeStringKeepBrackets(localName),
- ItemUtils.getSimpleStack(this));
+ ComponentTypes.CELL.getOreDictName() + Utils.sanitizeStringKeepBrackets(localName),
+ ItemUtils.getSimpleStack(this));
registerComponent();
GT_LanguageManager
- .addStringLocalization("gtplusplus.item." + this.unlocalName + ".name", getFormattedLangName());
+ .addStringLocalization("gtplusplus.item." + this.unlocalName + ".name", getFormattedLangName());
}
private String getFormattedLangName() {
- return componentType.getName().replace("@", "%material");
+ return componentType.getName()
+ .replace("@", "%material");
}
public boolean registerComponent() {
@@ -129,32 +132,33 @@ public class BaseItemComponent extends Item {
if (aMap == null) {
aMap = new HashMap<>();
}
- String aKey = componentType.getGtOrePrefix().name();
+ String aKey = componentType.getGtOrePrefix()
+ .name();
ItemStack x = aMap.get(aKey);
if (x == null) {
aMap.put(aKey, ItemUtils.getSimpleStack(this));
Logger.MATERIALS(
- "Registering a material component. Item: [" + componentMaterial.getUnlocalizedName()
- + "] Map: ["
- + aKey
- + "]");
+ "Registering a material component. Item: [" + componentMaterial.getUnlocalizedName()
+ + "] Map: ["
+ + aKey
+ + "]");
Material.mComponentMap.put(componentMaterial.getUnlocalizedName(), aMap);
if (componentType == ComponentTypes.PLATE) {
GregTech_API.registerCover(
- componentMaterial.getPlate(1),
- new GT_RenderedTexture(
- componentMaterial.getTextureSet().mTextures[71],
- componentMaterial.getRGBA(),
- false),
- null);
+ componentMaterial.getPlate(1),
+ new GT_RenderedTexture(
+ componentMaterial.getTextureSet().mTextures[71],
+ componentMaterial.getRGBA(),
+ false),
+ null);
} else if (componentType == ComponentTypes.PLATEDOUBLE) {
GregTech_API.registerCover(
- componentMaterial.getPlateDouble(1),
- new GT_RenderedTexture(
- componentMaterial.getTextureSet().mTextures[72],
- componentMaterial.getRGBA(),
- false),
- null);
+ componentMaterial.getPlateDouble(1),
+ new GT_RenderedTexture(
+ componentMaterial.getTextureSet().mTextures[72],
+ componentMaterial.getRGBA(),
+ false),
+ null);
}
return true;
} else {
@@ -200,20 +204,23 @@ public class BaseItemComponent extends Item {
trans = GT_LanguageManager.getTranslation(aKey);
if (!trans.equals(aKey)) return trans;
return GT_LanguageManager.addStringLocalization(
- "gtplusplus.fluid." + this.materialName.toLowerCase().replace(" ", ""),
- this.materialName);
+ "gtplusplus.fluid." + this.materialName.toLowerCase()
+ .replace(" ", ""),
+ this.materialName);
}
@Override
public String getItemStackDisplayName(ItemStack stack) {
- return GT_LanguageManager.getTranslation("gtplusplus.item." + unlocalName + ".name").replace("%s", "%temp")
- .replace("%material", translatedMaterialName).replace("%temp", "%s");
+ return GT_LanguageManager.getTranslation("gtplusplus.item." + unlocalName + ".name")
+ .replace("%s", "%temp")
+ .replace("%material", translatedMaterialName)
+ .replace("%temp", "%s");
}
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public final void addInformation(final ItemStack stack, final EntityPlayer aPlayer, final List list,
- final boolean bool) {
+ final boolean bool) {
try {
@@ -224,8 +231,8 @@ public class BaseItemComponent extends Item {
}
if ((this.materialName != null) && (this.materialName != "")
- && !this.materialName.equals("")
- && (this.componentMaterial != null)) {
+ && !this.materialName.equals("")
+ && (this.componentMaterial != null)) {
if (this.componentMaterial != null) {
if (!this.componentMaterial.vChemicalFormula.contains("?")) {
@@ -248,14 +255,15 @@ public class BaseItemComponent extends Item {
if (this.componentType == ComponentTypes.INGOT || this.componentType == ComponentTypes.HOTINGOT) {
if ((this.materialName != null) && (this.materialName != "")
- && !this.materialName.equals("")
- && this.unlocalName.toLowerCase().contains("hot")) {
+ && !this.materialName.equals("")
+ && this.unlocalName.toLowerCase()
+ .contains("hot")) {
list.add(
- EnumChatFormatting.GRAY + "Warning: "
- + EnumChatFormatting.RED
- + "Very hot! "
- + EnumChatFormatting.GRAY
- + " Avoid direct handling..");
+ EnumChatFormatting.GRAY + "Warning: "
+ + EnumChatFormatting.RED
+ + "Very hot! "
+ + EnumChatFormatting.GRAY
+ + " Avoid direct handling..");
}
}
} else {
@@ -269,16 +277,18 @@ public class BaseItemComponent extends Item {
if (KeyboardUtils.isCtrlKeyDown()) {
if (this.componentMaterial != null) {
String type = this.componentMaterial.getTextureSet().mSetName;
- String output = type.substring(0, 1).toUpperCase() + type.substring(1);
+ String output = type.substring(0, 1)
+ .toUpperCase() + type.substring(1);
list.add(EnumChatFormatting.GRAY + "Material Type: " + output + ".");
list.add(
- EnumChatFormatting.GRAY + "Material State: "
- + this.componentMaterial.getState().name()
- + ".");
+ EnumChatFormatting.GRAY + "Material State: "
+ + this.componentMaterial.getState()
+ .name()
+ + ".");
list.add(
- EnumChatFormatting.GRAY + "Radioactivity Level: "
- + this.componentMaterial.vRadiationLevel
- + ".");
+ EnumChatFormatting.GRAY + "Radioactivity Level: "
+ + this.componentMaterial.vRadiationLevel
+ + ".");
}
} else {
list.add(EnumChatFormatting.DARK_GRAY + "Hold Ctrl to show additional info.");
@@ -292,15 +302,15 @@ public class BaseItemComponent extends Item {
@SuppressWarnings("unchecked")
@Override
public void onUpdate(final ItemStack iStack, final World world, final Entity entityHolding, final int p_77663_4_,
- final boolean p_77663_5_) {
+ final boolean p_77663_5_) {
if (this.componentMaterial != null) {
if (entityHolding instanceof EntityPlayer) {
if (!((EntityPlayer) entityHolding).capabilities.isCreativeMode) {
EntityUtils.applyRadiationDamageToEntity(
- iStack.stackSize,
- this.componentMaterial.vRadiationLevel,
- world,
- entityHolding);
+ iStack.stackSize,
+ this.componentMaterial.vRadiationLevel,
+ world,
+ entityHolding);
}
}
}
@@ -349,11 +359,11 @@ public class BaseItemComponent extends Item {
// 4 sec cycle, 200 control point. 20ms interval.
int currentFrame = (int) ((System.nanoTime() % 4_000_000_000L) / 20_000_000L);
int value = currentFrame < 50 ? currentFrame + 1
- : currentFrame < 100 ? 50 : currentFrame < 150 ? 149 - currentFrame : 0;
+ : currentFrame < 100 ? 50 : currentFrame < 150 ? 149 - currentFrame : 0;
return Utils.rgbtoHexValue(
- Math.min(255, Math.max(componentMaterial.getRGBA()[0] + value, 0)),
- Math.min(255, Math.max(componentMaterial.getRGBA()[1] + value, 0)),
- Math.min(255, Math.max(componentMaterial.getRGBA()[2] + value, 0)));
+ Math.min(255, Math.max(componentMaterial.getRGBA()[0] + value, 0)),
+ Math.min(255, Math.max(componentMaterial.getRGBA()[1] + value, 0)),
+ Math.min(255, Math.max(componentMaterial.getRGBA()[2] + value, 0)));
}
// Rainbow Hue Cycle
@@ -423,7 +433,7 @@ public class BaseItemComponent extends Item {
private final OrePrefixes a_GT_EQUAL;
private ComponentTypes(final String LocalName, final String DisplayName, final String OreDictName,
- final OrePrefixes aPrefix) {
+ final OrePrefixes aPrefix) {
this.COMPONENT_NAME = LocalName;
this.DISPLAY_NAME = DisplayName;
this.OREDICT_NAME = OreDictName;
diff --git a/src/main/java/gtPlusPlus/core/item/base/BaseItemDamageable.java b/src/main/java/gtPlusPlus/core/item/base/BaseItemDamageable.java
index 8fbc005ce8..9a4109a1de 100644
--- a/src/main/java/gtPlusPlus/core/item/base/BaseItemDamageable.java
+++ b/src/main/java/gtPlusPlus/core/item/base/BaseItemDamageable.java
@@ -25,8 +25,8 @@ public class BaseItemDamageable extends Item {
private final boolean hasEffect;
public BaseItemDamageable(final String unlocalizedName, final CreativeTabs creativeTab, final int stackSize,
- final int maxDmg, final String description, final EnumRarity regRarity, final EnumChatFormatting colour,
- final boolean Effect, final ItemStack OverrideItem) {
+ final int maxDmg, final String description, final EnumRarity regRarity, final EnumChatFormatting colour,
+ final boolean Effect, final ItemStack OverrideItem) {
this.setUnlocalizedName(unlocalizedName);
this.setTextureName(GTPlusPlus.ID + ":" + unlocalizedName);
this.setCreativeTab(creativeTab);
@@ -52,16 +52,16 @@ public class BaseItemDamageable extends Item {
}
if (dmg > 3 && dmg <= 25) {
list.add(
- EnumChatFormatting.GRAY
- + "You have discovered that smashing this against valuable stones has some function..");
+ EnumChatFormatting.GRAY
+ + "You have discovered that smashing this against valuable stones has some function..");
} else if (dmg > 0) {
int maxDamage = 250;
list.add(
- EnumChatFormatting.GRAY + ""
- + (maxDamage - getItemDamage(stack))
- + "/"
- + maxDamage
- + " gems remaining.");
+ EnumChatFormatting.GRAY + ""
+ + (maxDamage - getItemDamage(stack))
+ + "/"
+ + maxDamage
+ + " gems remaining.");
}
}
diff --git a/src/main/java/gtPlusPlus/core/item/base/BaseItemTCShard.java b/src/main/java/gtPlusPlus/core/item/base/BaseItemTCShard.java
index 40163e29ec..3ecb6960d6 100644
--- a/src/main/java/gtPlusPlus/core/item/base/BaseItemTCShard.java
+++ b/src/main/java/gtPlusPlus/core/item/base/BaseItemTCShard.java
@@ -36,7 +36,7 @@ public class BaseItemTCShard extends Item {
if (Description != null) {
for (int i = 0; i < Description.length; i++) {
GT_LanguageManager
- .addStringLocalization("gtplusplus." + getUnlocalizedName() + ".tooltip." + i, Description[i]);
+ .addStringLocalization("gtplusplus." + getUnlocalizedName() + ".tooltip." + i, Description[i]);
}
}
this.setMaxStackSize(64);
@@ -51,7 +51,7 @@ public class BaseItemTCShard extends Item {
public void addInformation(final ItemStack stack, final EntityPlayer aPlayer, final List list, final boolean bool) {
for (int i = 0;; i++) {
String tooltip = GT_LanguageManager
- .getTranslation("gtplusplus." + this.getUnlocalizedName() + ".tooltip" + "." + i);
+ .getTranslation("gtplusplus." + this.getUnlocalizedName() + ".tooltip" + "." + i);
if (!("gtplusplus." + this.getUnlocalizedName() + ".tooltip" + "." + i).equals(tooltip)) {
list.add(tooltip);
} else break;
@@ -65,5 +65,5 @@ public class BaseItemTCShard extends Item {
@Override
public void onUpdate(final ItemStack iStack, final World world, final Entity entityHolding, final int p_77663_4_,
- final boolean p_77663_5_) {}
+ final boolean p_77663_5_) {}
}
diff --git a/src/main/java/gtPlusPlus/core/item/base/BaseItemTickable.java b/src/main/java/gtPlusPlus/core/item/base/BaseItemTickable.java
index 77af625213..8417eba3d1 100644
--- a/src/main/java/gtPlusPlus/core/item/base/BaseItemTickable.java
+++ b/src/main/java/gtPlusPlus/core/item/base/BaseItemTickable.java
@@ -35,22 +35,22 @@ public class BaseItemTickable extends CoreItem {
}
public BaseItemTickable(boolean containerTick, boolean twoPass, final String unlocalName, final int colour,
- final int maxTicks) {
+ final int maxTicks) {
this(containerTick, twoPass, unlocalName, colour, maxTicks, new String[] {});
}
public BaseItemTickable(boolean containerTick, boolean twoPass, final String unlocalName, final int colour,
- final int maxTicks, final String[] Description) {
+ final int maxTicks, final String[] Description) {
super(
- unlocalName,
- AddToCreativeTab.tabMisc,
- 1,
- 999999999,
- Description,
- EnumRarity.epic,
- EnumChatFormatting.DARK_RED,
- true,
- null);
+ unlocalName,
+ AddToCreativeTab.tabMisc,
+ 1,
+ 999999999,
+ Description,
+ EnumRarity.epic,
+ EnumChatFormatting.DARK_RED,
+ true,
+ null);
this.itemColour = colour;
this.descriptionString = Description;
this.maxTicks = maxTicks;
@@ -62,7 +62,7 @@ public class BaseItemTickable extends CoreItem {
@Override
public void onUpdate(final ItemStack iStack, final World world, final Entity entityHolding, final int p_77663_4_,
- final boolean p_77663_5_) {
+ final boolean p_77663_5_) {
if (world == null || iStack == null) {
return;
}
@@ -292,7 +292,7 @@ public class BaseItemTickable extends CoreItem {
@SuppressWarnings("unchecked")
@Override
public void addInformation(ItemStack stack, EntityPlayer player, @SuppressWarnings("rawtypes") List list,
- boolean bool) {
+ boolean bool) {
World world = player.getEntityWorld();
if (this.descriptionString.length > 0) {
list.add(EnumChatFormatting.GRAY + this.descriptionString[0]);
diff --git a/src/main/java/gtPlusPlus/core/item/base/BasicSpawnEgg.java b/src/main/java/gtPlusPlus/core/item/base/BasicSpawnEgg.java
index 80284495b9..b564d60424 100644
--- a/src/main/java/gtPlusPlus/core/item/base/BasicSpawnEgg.java
+++ b/src/main/java/gtPlusPlus/core/item/base/BasicSpawnEgg.java
@@ -43,7 +43,7 @@ public class BasicSpawnEgg extends ItemMonsterPlacer {
}
public BasicSpawnEgg(final String MODID, final String parEntityToSpawnName, final int parPrimaryColor,
- final int parSecondaryColor) {
+ final int parSecondaryColor) {
this.setHasSubtypes(false);
this.maxStackSize = 64;
this.setCreativeTab(AddToCreativeTab.tabOther);
@@ -63,7 +63,7 @@ public class BasicSpawnEgg extends ItemMonsterPlacer {
*/
@Override
public boolean onItemUse(final ItemStack par1ItemStack, final EntityPlayer par2EntityPlayer, final World par3World,
- int par4, int par5, int par6, final int par7, final float par8, final float par9, final float par10) {
+ int par4, int par5, int par6, final int par7, final float par8, final float par9, final float par10) {
if (par3World.isRemote) {
return true;
}
@@ -99,12 +99,12 @@ public class BasicSpawnEgg extends ItemMonsterPlacer {
*/
@Override
public ItemStack onItemRightClick(final ItemStack par1ItemStack, final World par2World,
- final EntityPlayer par3EntityPlayer) {
+ final EntityPlayer par3EntityPlayer) {
if (par2World.isRemote) {
return par1ItemStack;
}
final MovingObjectPosition movingobjectposition = this
- .getMovingObjectPositionFromPlayer(par2World, par3EntityPlayer, true);
+ .getMovingObjectPositionFromPlayer(par2World, par3EntityPlayer, true);
if (movingobjectposition == null) {
return par1ItemStack;
@@ -155,11 +155,11 @@ public class BasicSpawnEgg extends ItemMonsterPlacer {
this.entityToSpawn = (EntityLiving) EntityList.createEntityByName(this.entityToSpawnNameFull, parWorld);
this.entityToSpawn.setLocationAndAngles(
- parX,
- parY,
- parZ,
- MathHelper.wrapAngleTo180_float(parWorld.rand.nextFloat() * 360.0F),
- 0.0F);
+ parX,
+ parY,
+ parZ,
+ MathHelper.wrapAngleTo180_float(parWorld.rand.nextFloat() * 360.0F),
+ 0.0F);
parWorld.spawnEntityInWorld(this.entityToSpawn);
this.entityToSpawn.onSpawnWithEgg((IEntityLivingData) null);
diff --git a/src/main/java/gtPlusPlus/core/item/base/CoreItem.java b/src/main/java/gtPlusPlus/core/item/base/CoreItem.java
index f328479b70..4745fda281 100644
--- a/src/main/java/gtPlusPlus/core/item/base/CoreItem.java
+++ b/src/main/java/gtPlusPlus/core/item/base/CoreItem.java
@@ -53,16 +53,16 @@ public class CoreItem extends Item {
*/
public CoreItem(final String unlocalizedName, final CreativeTabs creativeTab, final ItemStack OverrideItem) {
this(
- unlocalizedName,
- creativeTab,
- 64,
- 0,
- new String[] {
- "This item will be replaced by another when held by a player, it is old and should not be used in recipes." },
- EnumRarity.uncommon,
- EnumChatFormatting.UNDERLINE,
- false,
- OverrideItem); // Calls 5
+ unlocalizedName,
+ creativeTab,
+ 64,
+ 0,
+ new String[] {
+ "This item will be replaced by another when held by a player, it is old and should not be used in recipes." },
+ EnumRarity.uncommon,
+ EnumChatFormatting.UNDERLINE,
+ false,
+ OverrideItem); // Calls 5
}
// 0.1
@@ -70,18 +70,18 @@ public class CoreItem extends Item {
* Name, Tab - 64 Stack, 0 Dmg
*/
public CoreItem(final String unlocalizedName, final String displayName, final CreativeTabs creativeTab,
- final ItemStack OverrideItem) {
+ final ItemStack OverrideItem) {
this(
- unlocalizedName,
- creativeTab,
- 64,
- 0,
- new String[] {
- "This item will be replaced by another when held by a player, it is old and should not be used in recipes." },
- EnumRarity.uncommon,
- EnumChatFormatting.UNDERLINE,
- false,
- OverrideItem); // Calls 5
+ unlocalizedName,
+ creativeTab,
+ 64,
+ 0,
+ new String[] {
+ "This item will be replaced by another when held by a player, it is old and should not be used in recipes." },
+ EnumRarity.uncommon,
+ EnumChatFormatting.UNDERLINE,
+ false,
+ OverrideItem); // Calls 5
this.itemName = displayName;
}
@@ -98,7 +98,7 @@ public class CoreItem extends Item {
* Name, Tab, Stack, Description - 0 Dmg
*/
public CoreItem(final String unlocalizedName, final CreativeTabs creativeTab, final int stackSize,
- final String[] description) {
+ final String[] description) {
this(unlocalizedName, creativeTab, stackSize, 0, description); // Calls 4
}
@@ -111,7 +111,7 @@ public class CoreItem extends Item {
}
public CoreItem(final String unlocalizedName, final CreativeTabs creativeTab, final int stackSize,
- final int maxDmg) {
+ final int maxDmg) {
this(unlocalizedName, creativeTab, stackSize, maxDmg, new String[] {}); // Calls 4
}
@@ -124,17 +124,17 @@ public class CoreItem extends Item {
}
public CoreItem(final String unlocalizedName, final CreativeTabs creativeTab, final int stackSize, final int maxDmg,
- final String[] description) {
+ final String[] description) {
this(
- unlocalizedName,
- creativeTab,
- stackSize,
- maxDmg,
- description,
- EnumRarity.common,
- EnumChatFormatting.GRAY,
- false,
- null); // Calls 4.5
+ unlocalizedName,
+ creativeTab,
+ stackSize,
+ maxDmg,
+ description,
+ EnumRarity.common,
+ EnumChatFormatting.GRAY,
+ false,
+ null); // Calls 4.5
}
// 4.5
@@ -142,7 +142,7 @@ public class CoreItem extends Item {
* Name, Tab, Stack, Dmg, Description, Text Colour - Common
*/
public CoreItem(final String unlocalizedName, final CreativeTabs creativeTab, final int stackSize, final int maxDmg,
- final String[] description, final EnumChatFormatting colour) {
+ final String[] description, final EnumChatFormatting colour) {
this(unlocalizedName, creativeTab, stackSize, maxDmg, description, EnumRarity.common, colour, false, null); // Calls
// 5
}
@@ -152,22 +152,22 @@ public class CoreItem extends Item {
* Name, Tab, Stack, Dmg, Description, Rarity - Gray text
*/
public CoreItem(String unlocalizedName, CreativeTabs creativeTab, int stackSize, int maxDmg, String string,
- EnumRarity uncommon) {
+ EnumRarity uncommon) {
this(unlocalizedName, creativeTab, stackSize, maxDmg, new String[] { string }, uncommon);
}
public CoreItem(final String unlocalizedName, final CreativeTabs creativeTab, final int stackSize, final int maxDmg,
- final String[] description, final EnumRarity rarity) {
+ final String[] description, final EnumRarity rarity) {
this(
- unlocalizedName,
- creativeTab,
- stackSize,
- maxDmg,
- description,
- rarity,
- EnumChatFormatting.GRAY,
- false,
- null); // Calls 5
+ unlocalizedName,
+ creativeTab,
+ stackSize,
+ maxDmg,
+ description,
+ rarity,
+ EnumChatFormatting.GRAY,
+ false,
+ null); // Calls 5
}
// 5
@@ -175,8 +175,8 @@ public class CoreItem extends Item {
* Name, Tab, Stack, Dmg, Description, Rarity, Text Colour, Effect
*/
public CoreItem(final String unlocalizedName, final CreativeTabs creativeTab, final int stackSize, final int maxDmg,
- final String[] description, final EnumRarity regRarity, final EnumChatFormatting colour,
- final boolean Effect, final ItemStack OverrideItem) {
+ final String[] description, final EnumRarity regRarity, final EnumChatFormatting colour, final boolean Effect,
+ final ItemStack OverrideItem) {
this.setUnlocalizedName(unlocalizedName);
this.setTextureName(GTPlusPlus.ID + ":" + unlocalizedName);
this.setCreativeTab(creativeTab);
@@ -195,8 +195,8 @@ public class CoreItem extends Item {
* Name, Tab, Stack, Dmg, Description, Rarity, Text Colour, Effect
*/
public CoreItem(final String unlocalizedName, final String displayName, final CreativeTabs creativeTab,
- final int stackSize, final int maxDmg, final String[] description, final EnumRarity regRarity,
- final EnumChatFormatting colour, final boolean Effect, final ItemStack OverrideItem) {
+ final int stackSize, final int maxDmg, final String[] description, final EnumRarity regRarity,
+ final EnumChatFormatting colour, final boolean Effect, final ItemStack OverrideItem) {
this.setUnlocalizedName(unlocalizedName);
this.itemName = displayName;
this.setTextureName(GTPlusPlus.ID + ":" + unlocalizedName);
@@ -216,7 +216,7 @@ public class CoreItem extends Item {
public void addInformation(final ItemStack stack, final EntityPlayer aPlayer, final List list, final boolean bool) {
for (int i = 0;; i++) {
String tooltip = GT_LanguageManager
- .getTranslation("gtplusplus." + this.getUnlocalizedName() + ".tooltip" + "." + i);
+ .getTranslation("gtplusplus." + this.getUnlocalizedName() + ".tooltip" + "." + i);
if (!("gtplusplus." + this.getUnlocalizedName() + ".tooltip" + "." + i).equals(tooltip)) {
list.add(tooltip);
} else break;
@@ -236,7 +236,7 @@ public class CoreItem extends Item {
@Override
public void onUpdate(final ItemStack iStack, final World world, final Entity entityHolding, final int p_77663_4_,
- final boolean p_77663_5_) {
+ final boolean p_77663_5_) {
if (this.turnsInto != null) {
if (entityHolding instanceof EntityPlayer) {
@@ -275,8 +275,8 @@ public class CoreItem extends Item {
public void setItemDescription(String[] description) {
for (int i = 0; i < description.length; i++) {
GT_LanguageManager.addStringLocalization(
- "gtplusplus." + this.getUnlocalizedName() + ".tooltip" + "." + i,
- description[i]);
+ "gtplusplus." + this.getUnlocalizedName() + ".tooltip" + "." + i,
+ description[i]);
}
}
/*
diff --git a/src/main/java/gtPlusPlus/core/item/base/cell/BaseItemCell.java b/src/main/java/gtPlusPlus/core/item/base/cell/BaseItemCell.java
index 99b6407249..1140390375 100644
--- a/src/main/java/gtPlusPlus/core/item/base/cell/BaseItemCell.java
+++ b/src/main/java/gtPlusPlus/core/item/base/cell/BaseItemCell.java
@@ -39,9 +39,9 @@ public class BaseItemCell extends BaseItemComponent {
super(unlocalName, localName, RGBa);
this.fluidColour = RGBa;
FluidContainerRegistry.registerFluidContainer(
- FluidUtils.getFluidStack(cellFluid, 1000),
- ItemUtils.getSimpleStack(this),
- Ic2Items.cell.copy());
+ FluidUtils.getFluidStack(cellFluid, 1000),
+ ItemUtils.getSimpleStack(this),
+ Ic2Items.cell.copy());
}
@Override
diff --git a/src/main/java/gtPlusPlus/core/item/base/cell/BaseItemPlasmaCell.java b/src/main/java/gtPlusPlus/core/item/base/cell/BaseItemPlasmaCell.java
index cca8113e91..151f3f3860 100644
--- a/src/main/java/gtPlusPlus/core/item/base/cell/BaseItemPlasmaCell.java
+++ b/src/main/java/gtPlusPlus/core/item/base/cell/BaseItemPlasmaCell.java
@@ -60,7 +60,7 @@ public class BaseItemPlasmaCell extends BaseItemComponent {
@Override
public void onUpdate(final ItemStack iStack, final World world, final Entity entityHolding, final int p_77663_4_,
- final boolean p_77663_5_) {
+ final boolean p_77663_5_) {
if (this.componentMaterial != null) {
if (!world.isRemote) {
if (this.tickCounter < this.tickCounterMax) {
diff --git a/src/main/java/gtPlusPlus/core/item/base/dusts/BaseItemDust.java b/src/main/java/gtPlusPlus/core/item/base/dusts/BaseItemDust.java
index 435a055ede..fd52fe78c4 100644
--- a/src/main/java/gtPlusPlus/core/item/base/dusts/BaseItemDust.java
+++ b/src/main/java/gtPlusPlus/core/item/base/dusts/BaseItemDust.java
@@ -30,7 +30,7 @@ public class BaseItemDust extends BaseItemComponent {
}
private BaseItemDust(String unlocalizedName, String materialName, Material matInfo, int colour, String pileSize,
- int tier, boolean addRecipes) {
+ int tier, boolean addRecipes) {
super(matInfo, ComponentTypes.DUST);
}
diff --git a/src/main/java/gtPlusPlus/core/item/base/dusts/BaseItemDustUnique.java b/src/main/java/gtPlusPlus/core/item/base/dusts/BaseItemDustUnique.java
index 08df349d66..2592fe3cf7 100644
--- a/src/main/java/gtPlusPlus/core/item/base/dusts/BaseItemDustUnique.java
+++ b/src/main/java/gtPlusPlus/core/item/base/dusts/BaseItemDustUnique.java
@@ -31,12 +31,12 @@ public class BaseItemDustUnique extends Item {
protected final String chemicalNotation;
public BaseItemDustUnique(final String unlocalizedName, final String materialName, final int colour,
- final String pileSize) {
+ final String pileSize) {
this(unlocalizedName, materialName, "NullFormula", colour, pileSize);
}
public BaseItemDustUnique(final String unlocalizedName, final String materialName, final String mChemicalFormula,
- final int colour, final String pileSize) {
+ final int colour, final String pileSize) {
this.setUnlocalizedName(unlocalizedName);
this.setMaxStackSize(64);
this.setTextureName(this.getCorrectTexture(pileSize));
@@ -52,19 +52,23 @@ public class BaseItemDustUnique extends Item {
GameRegistry.registerItem(this, unlocalizedName);
String type;
- if (this.getUnlocalizedName().contains("DustTiny")) {
+ if (this.getUnlocalizedName()
+ .contains("DustTiny")) {
type = "Tiny Pile of %material Dust";
- } else if (this.getUnlocalizedName().contains("DustSmall")) {
- type = "Small Pile of %material Dust";
- } else {
- type = "%material Dust";
- }
+ } else if (this.getUnlocalizedName()
+ .contains("DustSmall")) {
+ type = "Small Pile of %material Dust";
+ } else {
+ type = "%material Dust";
+ }
GT_LanguageManager.addStringLocalization("gtplusplus." + this.getUnlocalizedName() + ".name", type);
String temp = "";
Logger.WARNING("Unlocalized name for OreDict nameGen: " + this.getUnlocalizedName());
- if (this.getUnlocalizedName().contains("item.")) {
- temp = this.getUnlocalizedName().replace("item.", "");
+ if (this.getUnlocalizedName()
+ .contains("item.")) {
+ temp = this.getUnlocalizedName()
+ .replace("item.", "");
Logger.WARNING("Generating OreDict Name: " + temp);
} else {
temp = this.getUnlocalizedName();
@@ -112,7 +116,7 @@ public class BaseItemDustUnique extends Item {
@Override
public String getItemStackDisplayName(final ItemStack iStack) {
return GT_LanguageManager.getTranslation("gtplusplus." + getUnlocalizedName() + ".name")
- .replace("%material", GT_LanguageManager.getTranslation("gtplusplus.material." + materialName));
+ .replace("%material", GT_LanguageManager.getTranslation("gtplusplus.material." + materialName));
}
private String getCorrectTexture(final String pileSize) {
@@ -123,11 +127,13 @@ public class BaseItemDustUnique extends Item {
this.setTextureName(GTPlusPlus.ID + ":" + "dust" + pileSize);
}
}
- if (pileSize.toLowerCase().contains("small")) {
+ if (pileSize.toLowerCase()
+ .contains("small")) {
return GregTech.ID + ":" + "materialicons/SHINY/dustSmall";
- } else if (pileSize.toLowerCase().contains("tiny")) {
- return GregTech.ID + ":" + "materialicons/SHINY/dustTiny";
- }
+ } else if (pileSize.toLowerCase()
+ .contains("tiny")) {
+ return GregTech.ID + ":" + "materialicons/SHINY/dustTiny";
+ }
return GregTech.ID + ":" + "materialicons/SHINY/dust";
}
@@ -138,7 +144,7 @@ public class BaseItemDustUnique extends Item {
list.add(CORE.GT_Tooltip_Radioactive.get());
}
if (this.chemicalNotation.length() > 0 && !chemicalNotation.equals("")
- && !chemicalNotation.equals("NullFormula")) {
+ && !chemicalNotation.equals("NullFormula")) {
list.add(this.chemicalNotation);
}
super.addInformation(stack, aPlayer, list, bool);
diff --git a/src/main/java/gtPlusPlus/core/item/base/ingots/BaseItemIngotHot.java b/src/main/java/gtPlusPlus/core/item/base/ingots/BaseItemIngotHot.java
index ca7fc7c087..9d22c0faf8 100644
--- a/src/main/java/gtPlusPlus/core/item/base/ingots/BaseItemIngotHot.java
+++ b/src/main/java/gtPlusPlus/core/item/base/ingots/BaseItemIngotHot.java
@@ -54,14 +54,17 @@ public class BaseItemIngotHot extends BaseItemIngot {
private void generateRecipe() {
Logger.WARNING("Adding Vacuum Freezer recipe for a Hot Ingot of " + this.materialName + ".");
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getSimpleStack(this)).itemOutputs(this.outputIngot.copy())
- .duration(Math.max(this.componentMaterial.getMass() * 3L, 1L) * TICKS)
- .eut(this.componentMaterial.vVoltageMultiplier).addTo(vacuumFreezerRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getSimpleStack(this))
+ .itemOutputs(this.outputIngot.copy())
+ .duration(Math.max(this.componentMaterial.getMass() * 3L, 1L) * TICKS)
+ .eut(this.componentMaterial.vVoltageMultiplier)
+ .addTo(vacuumFreezerRecipes);
}
@Override
public void onUpdate(final ItemStack iStack, final World world, final Entity entityHolding, final int p_77663_4_,
- final boolean p_77663_5_) {
+ final boolean p_77663_5_) {
if (this.componentMaterial != null) {
if (entityHolding != null && entityHolding instanceof EntityPlayer) {
if (!((EntityPlayer) entityHolding).capabilities.isCreativeMode) {
@@ -89,8 +92,8 @@ public class BaseItemIngotHot extends BaseItemIngot {
this.base = i.registerIcon(GregTech.ID + ":" + "materialicons/METALLIC/" + "ingotHot");
this.overlay = i.registerIcon(GregTech.ID + ":" + "materialicons/METALLIC/" + "ingotHot_OVERLAY");
} else {
- this.base = i.registerIcon(
- GTPlusPlus.ID + ":" + "item" + BaseItemComponent.ComponentTypes.HOTINGOT.getComponent());
+ this.base = i
+ .registerIcon(GTPlusPlus.ID + ":" + "item" + BaseItemComponent.ComponentTypes.HOTINGOT.getComponent());
}
// this.overlay = cellMaterial.getFluid(1000).getFluid().get
}
diff --git a/src/main/java/gtPlusPlus/core/item/base/ingots/BaseItemIngot_OLD.java b/src/main/java/gtPlusPlus/core/item/base/ingots/BaseItemIngot_OLD.java
index bd03cf33fb..6335820c9a 100644
--- a/src/main/java/gtPlusPlus/core/item/base/ingots/BaseItemIngot_OLD.java
+++ b/src/main/java/gtPlusPlus/core/item/base/ingots/BaseItemIngot_OLD.java
@@ -25,7 +25,7 @@ public class BaseItemIngot_OLD extends Item {
protected String unlocalName;
public BaseItemIngot_OLD(final String unlocalizedName, final String materialName, final int colour,
- final int sRadioactivity) {
+ final int sRadioactivity) {
this.setUnlocalizedName(unlocalizedName);
this.setCreativeTab(AddToCreativeTab.tabMisc);
this.unlocalName = unlocalizedName;
@@ -69,10 +69,13 @@ public class BaseItemIngot_OLD extends Item {
if (this.unlocalName.contains("itemIngot")) {
final ItemStack tempStack = ItemUtils.getSimpleStack(this, 9);
ItemStack tempOutput = null;
- String temp = this.getUnlocalizedName().replace("item.itemIngot", "block");
+ String temp = this.getUnlocalizedName()
+ .replace("item.itemIngot", "block");
Logger.WARNING("Unlocalized name for OreDict nameGen: " + this.getUnlocalizedName());
- if (this.getUnlocalizedName().contains("item.")) {
- temp = this.getUnlocalizedName().replace("item.", "");
+ if (this.getUnlocalizedName()
+ .contains("item.")) {
+ temp = this.getUnlocalizedName()
+ .replace("item.", "");
Logger.WARNING("Generating OreDict Name: " + temp);
}
temp = temp.replace("itemIngot", "block");
@@ -80,8 +83,12 @@ public class BaseItemIngot_OLD extends Item {
if ((temp != null) && !temp.equals("")) {
tempOutput = ItemUtils.getItemStackOfAmountFromOreDict(temp, 1);
if (tempOutput != null) {
- GT_Values.RA.stdBuilder().itemInputs(tempStack).itemOutputs(tempOutput).duration(15 * SECONDS)
- .eut(2).addTo(compressorRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(tempStack)
+ .itemOutputs(tempOutput)
+ .duration(15 * SECONDS)
+ .eut(2)
+ .addTo(compressorRecipes);
}
}
} else if (this.unlocalName.contains("itemHotIngot")) {
@@ -93,7 +100,7 @@ public class BaseItemIngot_OLD extends Item {
@Override
public void onUpdate(final ItemStack iStack, final World world, final Entity entityHolding, final int p_77663_4_,
- final boolean p_77663_5_) {
+ final boolean p_77663_5_) {
EntityUtils.applyRadiationDamageToEntity(iStack.stackSize, this.sRadiation, world, entityHolding);
}
}
diff --git a/src/main/java/gtPlusPlus/core/item/base/itemblock/ItemBlockGtBlock.java b/src/main/java/gtPlusPlus/core/item/base/itemblock/ItemBlockGtBlock.java
index e13136d87e..98c652a1ba 100644
--- a/src/main/java/gtPlusPlus/core/item/base/itemblock/ItemBlockGtBlock.java
+++ b/src/main/java/gtPlusPlus/core/item/base/itemblock/ItemBlockGtBlock.java
@@ -72,7 +72,10 @@ public class ItemBlockGtBlock extends ItemBlock {
}
public String getUnlocalizedBlockName() {
- return "block." + mMaterial.getUnlocalizedName() + "." + this.thisBlockType.name().toLowerCase();
+ return "block." + mMaterial.getUnlocalizedName()
+ + "."
+ + this.thisBlockType.name()
+ .toLowerCase();
}
public String GetProperName() {
@@ -120,14 +123,14 @@ public class ItemBlockGtBlock extends ItemBlock {
if (this.mMaterial != null) {
list.add("Mining Level: " + Math.min(Math.max(aMiningLevel1, 0), 5));
list.add("Contains: ");
- if (mMaterial.getComposites().isEmpty()) {
+ if (mMaterial.getComposites()
+ .isEmpty()) {
list.add("- " + mMaterial.getLocalizedName());
} else {
for (MaterialStack m : mMaterial.getComposites()) {
list.add(
- "- " + m.getStackMaterial().getLocalizedName()
- + " x"
- + m.getPartsPerOneHundred());
+ "- " + m.getStackMaterial()
+ .getLocalizedName() + " x" + m.getPartsPerOneHundred());
}
}
}
@@ -155,7 +158,7 @@ public class ItemBlockGtBlock extends ItemBlock {
@Override
public void onUpdate(final ItemStack iStack, final World world, final Entity entityHolding, final int p_77663_4_,
- final boolean p_77663_5_) {
+ final boolean p_77663_5_) {
if (!isModular && !isOre) {
mMaterial = null;
diff --git a/src/main/java/gtPlusPlus/core/item/base/itemblock/ItemBlockOre.java b/src/main/java/gtPlusPlus/core/item/base/itemblock/ItemBlockOre.java
index c88a8581b6..0cee16b3f6 100644
--- a/src/main/java/gtPlusPlus/core/item/base/itemblock/ItemBlockOre.java
+++ b/src/main/java/gtPlusPlus/core/item/base/itemblock/ItemBlockOre.java
@@ -51,7 +51,9 @@ public class ItemBlockOre extends ItemBlock {
for (WorldGen_GT_Ore_Layer f : gtPlusPlus.everglades.gen.gt.WorldGen_Ores.validOreveins.values()) {
Material[] m2 = new Material[] { f.mPrimary, f.mSecondary, f.mBetween, f.mSporadic };
for (Material m1 : m2) {
- AutoMap<String> aMap = mMapOreBlockItemToDimName.get(m1.getUnlocalizedName().toLowerCase());
+ AutoMap<String> aMap = mMapOreBlockItemToDimName.get(
+ m1.getUnlocalizedName()
+ .toLowerCase());
if (aMap == null) {
aMap = new AutoMap<>();
}
@@ -59,7 +61,10 @@ public class ItemBlockOre extends ItemBlock {
if (!aMap.containsValue(aDimName)) {
aMap.put(aDimName);
}
- mMapOreBlockItemToDimName.put(m1.getUnlocalizedName().toLowerCase(), aMap);
+ mMapOreBlockItemToDimName.put(
+ m1.getUnlocalizedName()
+ .toLowerCase(),
+ aMap);
}
}
mInitOres_Everglades = true;
@@ -76,11 +81,14 @@ public class ItemBlockOre extends ItemBlock {
if (this.mThisMaterial != null) {
list.add("Ore contains: ");
- if (mThisMaterial.getComposites().isEmpty()) {
+ if (mThisMaterial.getComposites()
+ .isEmpty()) {
list.add("- " + mThisMaterial.getLocalizedName());
} else {
for (MaterialStack m : mThisMaterial.getComposites()) {
- list.add("- " + m.getStackMaterial().getLocalizedName() + " x" + m.getPartsPerOneHundred());
+ list.add(
+ "- " + m.getStackMaterial()
+ .getLocalizedName() + " x" + m.getPartsPerOneHundred());
}
}
}
@@ -96,8 +104,9 @@ public class ItemBlockOre extends ItemBlock {
}
if (mDimsForThisOre.isEmpty()) {
- AutoMap<String> A = mMapOreBlockItemToDimName
- .get(this.mThisMaterial.getUnlocalizedName().toLowerCase());
+ AutoMap<String> A = mMapOreBlockItemToDimName.get(
+ this.mThisMaterial.getUnlocalizedName()
+ .toLowerCase());
if (A != null) {
mDimsForThisOre = A;
}
@@ -121,16 +130,16 @@ public class ItemBlockOre extends ItemBlock {
@Override
public void onUpdate(final ItemStack iStack, final World world, final Entity entityHolding, final int p_77663_4_,
- final boolean p_77663_5_) {
+ final boolean p_77663_5_) {
if (this.mThisMaterial != null) {
if (this.mThisRadiation > 0) {
if (entityHolding instanceof EntityPlayer) {
if (!((EntityPlayer) entityHolding).capabilities.isCreativeMode) {
EntityUtils.applyRadiationDamageToEntity(
- iStack.stackSize,
- this.mThisMaterial.vRadiationLevel,
- world,
- entityHolding);
+ iStack.stackSize,
+ this.mThisMaterial.vRadiationLevel,
+ world,
+ entityHolding);
}
}
}
diff --git a/src/main/java/gtPlusPlus/core/item/base/misc/BaseItemMisc.java b/src/main/java/gtPlusPlus/core/item/base/misc/BaseItemMisc.java
index 6560ac5ff2..020becc687 100644
--- a/src/main/java/gtPlusPlus/core/item/base/misc/BaseItemMisc.java
+++ b/src/main/java/gtPlusPlus/core/item/base/misc/BaseItemMisc.java
@@ -30,7 +30,7 @@ public class BaseItemMisc extends Item {
public final Object componentColour;
public BaseItemMisc(final String displayName, final short[] RGB, final int maxStackSize, final MiscTypes miscType,
- String[] description) {
+ String[] description) {
// Set-up the Misc Generic Item
this.displayName = displayName;
@@ -48,9 +48,8 @@ public class BaseItemMisc extends Item {
}
if (description != null) {
for (int i = 0; i < description.length; i++) {
- GT_LanguageManager.addStringLocalization(
- "gtplusplus." + this.getUnlocalizedName() + ".tooltip." + i,
- description[i]);
+ GT_LanguageManager
+ .addStringLocalization("gtplusplus." + this.getUnlocalizedName() + ".tooltip." + i, description[i]);
}
}
GameRegistry.registerItem(this, this.unlocalName);
@@ -94,10 +93,10 @@ public class BaseItemMisc extends Item {
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public final void addInformation(final ItemStack stack, final EntityPlayer aPlayer, final List list,
- final boolean bool) {
+ final boolean bool) {
for (int i = 0;; i++) {
String tooltip = GT_LanguageManager
- .getTranslation("gtplusplus." + this.getUnlocalizedName() + ".tooltip" + "." + i);
+ .getTranslation("gtplusplus." + this.getUnlocalizedName() + ".tooltip" + "." + i);
if (!("gtplusplus." + this.getUnlocalizedName() + ".tooltip" + "." + i).equals(tooltip)) {
list.add(tooltip);
} else break;
@@ -116,7 +115,7 @@ public class BaseItemMisc extends Item {
@Override
public void onUpdate(final ItemStack iStack, final World world, final Entity entityHolding, final int p_77663_4_,
- final boolean p_77663_5_) {
+ final boolean p_77663_5_) {
// Nothing Fancy here yet.
}
diff --git a/src/main/java/gtPlusPlus/core/item/base/misc/BaseItemParticle.java b/src/main/java/gtPlusPlus/core/item/base/misc/BaseItemParticle.java
index 8c1efb96c2..b6292c695e 100644
--- a/src/main/java/gtPlusPlus/core/item/base/misc/BaseItemParticle.java
+++ b/src/main/java/gtPlusPlus/core/item/base/misc/BaseItemParticle.java
@@ -22,16 +22,16 @@ public abstract class BaseItemParticle extends CoreItem {
public BaseItemParticle(String aType, int aCount, EnumRarity aRarity) {
super(
- "particle" + aType,
- aType,
- AddToCreativeTab.tabOther,
- 64,
- 0,
- new String[] {},
- aRarity,
- EnumChatFormatting.DARK_AQUA,
- false,
- null);
+ "particle" + aType,
+ aType,
+ AddToCreativeTab.tabOther,
+ 64,
+ 0,
+ new String[] {},
+ aRarity,
+ EnumChatFormatting.DARK_AQUA,
+ false,
+ null);
this.setTextureName(GTPlusPlus.ID + ":" + "science/Atom");
aMaxCount = aCount;
this.setHasSubtypes(true);
diff --git a/src/main/java/gtPlusPlus/core/item/base/ore/BaseOreComponent.java b/src/main/java/gtPlusPlus/core/item/base/ore/BaseOreComponent.java
index eff545871b..2074bb2ede 100644
--- a/src/main/java/gtPlusPlus/core/item/base/ore/BaseOreComponent.java
+++ b/src/main/java/gtPlusPlus/core/item/base/ore/BaseOreComponent.java
@@ -54,9 +54,8 @@ public class BaseOreComponent extends Item {
this.componentColour = material.getRgbAsHex();
GameRegistry.registerItem(this, this.unlocalName);
registerComponent();
- GT_OreDictUnificator.registerOre(
- componentType.getComponent() + material.getUnlocalizedName(),
- ItemUtils.getSimpleStack(this));
+ GT_OreDictUnificator
+ .registerOre(componentType.getComponent() + material.getUnlocalizedName(), ItemUtils.getSimpleStack(this));
}
public boolean registerComponent() {
@@ -86,10 +85,10 @@ public class BaseOreComponent extends Item {
if (x == null) {
aMap.put(aKey, ItemUtils.getSimpleStack(this));
Logger.MATERIALS(
- "Registering a material component. Item: [" + componentMaterial.getUnlocalizedName()
- + "] Map: ["
- + aKey
- + "]");
+ "Registering a material component. Item: [" + componentMaterial.getUnlocalizedName()
+ + "] Map: ["
+ + aKey
+ + "]");
Material.mComponentMap.put(componentMaterial.getUnlocalizedName(), aMap);
return true;
} else {
@@ -111,7 +110,7 @@ public class BaseOreComponent extends Item {
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public final void addInformation(final ItemStack stack, final EntityPlayer aPlayer, final List list,
- final boolean bool) {
+ final boolean bool) {
if (this.materialName != null && !this.materialName.equals("")) {
if (this.componentMaterial != null) {
if (!this.componentMaterial.vChemicalFormula.contains("?")) {
@@ -142,15 +141,15 @@ public class BaseOreComponent extends Item {
@Override
public void onUpdate(final ItemStack iStack, final World world, final Entity entityHolding, final int p_77663_4_,
- final boolean p_77663_5_) {
+ final boolean p_77663_5_) {
if (this.componentMaterial != null) {
if (entityHolding instanceof EntityPlayer) {
if (!((EntityPlayer) entityHolding).capabilities.isCreativeMode) {
EntityUtils.applyRadiationDamageToEntity(
- iStack.stackSize,
- this.componentMaterial.vRadiationLevel,
- world,
- entityHolding);
+ iStack.stackSize,
+ this.componentMaterial.vRadiationLevel,
+ world,
+ entityHolding);
}
}
}
@@ -178,26 +177,26 @@ public class BaseOreComponent extends Item {
this.base = par1IconRegister.registerIcon(GTPlusPlus.ID + ":" + "processing/MilledOre/milled");
if (this.componentType.hasOverlay()) {
this.overlay = par1IconRegister
- .registerIcon(GTPlusPlus.ID + ":" + "processing/MilledOre/milled_OVERLAY");
+ .registerIcon(GTPlusPlus.ID + ":" + "processing/MilledOre/milled_OVERLAY");
}
} else if (CORE.ConfigSwitches.useGregtechTextures) {
// Logger.MATERIALS(this.componentType.getPrefix()+this.componentMaterial.getLocalizedName()+this.componentType.DISPLAY_NAME+"
// is using `"+GregTech.ID + ":" + "materialicons/METALLIC/" + this.componentType.COMPONENT_NAME+"' as the
// layer 0 texture path.");
this.base = par1IconRegister
- .registerIcon(GregTech.ID + ":" + "materialicons/METALLIC/" + this.componentType.COMPONENT_NAME);
+ .registerIcon(GregTech.ID + ":" + "materialicons/METALLIC/" + this.componentType.COMPONENT_NAME);
if (this.componentType.hasOverlay()) {
// Logger.MATERIALS(this.componentType.getPrefix()+this.componentMaterial.getLocalizedName()+this.componentType.DISPLAY_NAME+"
// is using `"+GregTech.ID + ":" + "materialicons/METALLIC/" +
// this.componentType.COMPONENT_NAME+"_OVERLAY"+"' as the layer 1 texture path.");
this.overlay = par1IconRegister.registerIcon(
- GregTech.ID + ":" + "materialicons/METALLIC/" + this.componentType.COMPONENT_NAME + "_OVERLAY");
+ GregTech.ID + ":" + "materialicons/METALLIC/" + this.componentType.COMPONENT_NAME + "_OVERLAY");
}
} else {
this.base = par1IconRegister.registerIcon(GTPlusPlus.ID + ":" + "item" + this.componentType.getComponent());
if (this.componentType.hasOverlay()) {
this.overlay = par1IconRegister
- .registerIcon(GTPlusPlus.ID + ":" + "item" + this.componentType.getComponent() + "_Overlay");
+ .registerIcon(GTPlusPlus.ID + ":" + "item" + this.componentType.getComponent() + "_Overlay");
}
}
}
@@ -245,7 +244,7 @@ public class BaseOreComponent extends Item {
private final boolean HAS_OVERLAY;
private ComponentTypes(final String LocalName, final String prefix, final String DisplayName,
- final boolean overlay) {
+ final boolean overlay) {
this.COMPONENT_NAME = LocalName;
this.PREFIX = prefix;
this.DISPLAY_NAME = DisplayName;
diff --git a/src/main/java/gtPlusPlus/core/item/base/plates/BaseItemPlate.java b/src/main/java/gtPlusPlus/core/item/base/plates/BaseItemPlate.java
index fbfa859a17..0fad7a8258 100644
--- a/src/main/java/gtPlusPlus/core/item/base/plates/BaseItemPlate.java
+++ b/src/main/java/gtPlusPlus/core/item/base/plates/BaseItemPlate.java
@@ -12,12 +12,12 @@ public class BaseItemPlate extends BaseItemComponent {
}
public BaseItemPlate(final String unlocalizedName, final String materialName, final MaterialState state,
- final short[] colour, final int tier, final int sRadioactivity) {
+ final short[] colour, final int tier, final int sRadioactivity) {
this(
- MaterialUtils.generateQuickMaterial(
- materialName,
- state,
- new short[] { colour[0], colour[1], colour[2], 0 },
- sRadioactivity));
+ MaterialUtils.generateQuickMaterial(
+ materialName,
+ state,
+ new short[] { colour[0], colour[1], colour[2], 0 },
+ sRadioactivity));
}
}
diff --git a/src/main/java/gtPlusPlus/core/item/base/plates/BaseItemPlate_OLD.java b/src/main/java/gtPlusPlus/core/item/base/plates/BaseItemPlate_OLD.java
index 6f46752c2f..168d5236c6 100644
--- a/src/main/java/gtPlusPlus/core/item/base/plates/BaseItemPlate_OLD.java
+++ b/src/main/java/gtPlusPlus/core/item/base/plates/BaseItemPlate_OLD.java
@@ -28,12 +28,12 @@ public class BaseItemPlate_OLD extends Item {
protected final String chemicalNotation;
public BaseItemPlate_OLD(final String unlocalizedName, final String materialName, final int colour,
- final int sRadioactivity) {
+ final int sRadioactivity) {
this(unlocalizedName, materialName, "NullFormula", colour, sRadioactivity);
}
public BaseItemPlate_OLD(final String unlocalizedName, final String materialName, final String mChemicalFormula,
- final int colour, final int sRadioactivity) {
+ final int colour, final int sRadioactivity) {
this.setUnlocalizedName("itemPlate" + unlocalizedName);
this.setCreativeTab(AddToCreativeTab.tabMisc);
this.unlocalName = "itemPlate" + unlocalizedName;
@@ -50,7 +50,8 @@ public class BaseItemPlate_OLD extends Item {
this.sRadiation = sRadioactivity;
GameRegistry.registerItem(this, "itemPlate" + unlocalizedName);
String temp;
- if (this.unlocalName.toLowerCase().contains("itemplate")) {
+ if (this.unlocalName.toLowerCase()
+ .contains("itemplate")) {
temp = this.unlocalName.replace("itemP", "p");
if ((temp != null) && !temp.equals("")) {
GT_OreDictUnificator.registerOre(temp, ItemUtils.getSimpleStack(this));
@@ -72,7 +73,7 @@ public class BaseItemPlate_OLD extends Item {
@Override
public void onUpdate(final ItemStack iStack, final World world, final Entity entityHolding, final int p_77663_4_,
- final boolean p_77663_5_) {
+ final boolean p_77663_5_) {
EntityUtils.applyRadiationDamageToEntity(iStack.stackSize, this.sRadiation, world, entityHolding);
}
diff --git a/src/main/java/gtPlusPlus/core/item/bauble/BaseBauble.java b/src/main/java/gtPlusPlus/core/item/bauble/BaseBauble.java
index 74e810f9bd..92468aa6d8 100644
--- a/src/main/java/gtPlusPlus/core/item/bauble/BaseBauble.java
+++ b/src/main/java/gtPlusPlus/core/item/bauble/BaseBauble.java
@@ -27,8 +27,8 @@ import gtPlusPlus.core.util.Utils;
import gtPlusPlus.core.util.minecraft.NBTUtils;
@Optional.InterfaceList(
- value = { @Optional.Interface(iface = "baubles.api.IBauble", modid = Mods.Names.BAUBLES),
- @Optional.Interface(iface = "baubles.api.BaubleType", modid = Mods.Names.BAUBLES) })
+ value = { @Optional.Interface(iface = "baubles.api.IBauble", modid = Mods.Names.BAUBLES),
+ @Optional.Interface(iface = "baubles.api.BaubleType", modid = Mods.Names.BAUBLES) })
public class BaseBauble extends Item implements IBauble {
/**
@@ -96,13 +96,15 @@ public class BaseBauble extends Item implements IBauble {
public void onEquippedOrLoadedIntoWorld(EntityLivingBase player) {
attributes.clear();
- player.getAttributeMap().applyAttributeModifiers(attributes);
+ player.getAttributeMap()
+ .applyAttributeModifiers(attributes);
}
@Override
public void onUnequipped(ItemStack stack, EntityLivingBase player) {
attributes.clear();
- player.getAttributeMap().removeAttributeModifiers(attributes);
+ player.getAttributeMap()
+ .removeAttributeModifiers(attributes);
}
public ItemStack getCorrectBauble(EntityPlayer player) {
diff --git a/src/main/java/gtPlusPlus/core/item/bauble/BatteryPackBaseBauble.java b/src/main/java/gtPlusPlus/core/item/bauble/BatteryPackBaseBauble.java
index 463dd1608a..881146b15d 100644
--- a/src/main/java/gtPlusPlus/core/item/bauble/BatteryPackBaseBauble.java
+++ b/src/main/java/gtPlusPlus/core/item/bauble/BatteryPackBaseBauble.java
@@ -56,7 +56,7 @@ public class BatteryPackBaseBauble extends ElectricBaseBauble {
@Override
public void onUpdate(final ItemStack itemStack, final World worldObj, final Entity player, final int p_77663_4_,
- final boolean p_77663_5_) {
+ final boolean p_77663_5_) {
super.onUpdate(itemStack, worldObj, player, p_77663_4_, p_77663_5_);
}
@@ -96,13 +96,13 @@ public class BatteryPackBaseBauble extends ElectricBaseBauble {
list.add(EnumChatFormatting.GREEN + aString1 + EnumChatFormatting.GRAY);
list.add(
- EnumChatFormatting.GREEN + aString2
- + " "
- + (int) getTransferLimit(stack)
- + aEUT
- + " "
- + aString3
- + EnumChatFormatting.GRAY);
+ EnumChatFormatting.GREEN + aString2
+ + " "
+ + (int) getTransferLimit(stack)
+ + aEUT
+ + " "
+ + aString3
+ + EnumChatFormatting.GRAY);
list.add(EnumChatFormatting.GREEN + aString4 + EnumChatFormatting.GRAY);
super.addInformation(stack, aPlayer, list, bool);
}
@@ -154,27 +154,18 @@ public class BatteryPackBaseBauble extends ElectricBaseBauble {
if (aItemCharge <= (electricItem.getMaxCharge(aInvStack) - aTransferRate)) {
if (ElectricItem.manager.getCharge(aBaubleStack) >= aTransferRate) {
if (ElectricItem.manager.getCharge(aInvStack)
- <= (electricItem.getMaxCharge(aInvStack) - aTransferRate)) {
- double d = ElectricItem.manager.charge(
+ <= (electricItem.getMaxCharge(aInvStack) - aTransferRate)) {
+ double d = ElectricItem.manager
+ .charge(aInvStack, aTransferRate * 16, mTier, false, true);
+ if (d > 0) {
+ d = ElectricItem.manager.charge(
aInvStack,
aTransferRate * 16,
mTier,
false,
- true);
- if (d > 0) {
- d = ElectricItem.manager.charge(
- aInvStack,
- aTransferRate * 16,
- mTier,
- false,
- false);
- ElectricItem.manager.discharge(
- aBaubleStack,
- d,
- mTier,
- false,
- true,
- false);
+ false);
+ ElectricItem.manager
+ .discharge(aBaubleStack, d, mTier, false, true, false);
// Logger.INFO("Charging " + aInvStack.getDisplayName() + "
// | " + d + " | "+electricItem.getMaxCharge(aInvStack));
}
@@ -222,23 +213,14 @@ public class BatteryPackBaseBauble extends ElectricBaseBauble {
if (aItemCharge <= (electricItem.getMaxCharge(aInvStack) - aTransferRate)) {
if (ElectricItem.manager.getCharge(aBaubleStack) >= aTransferRate) {
if (ElectricItem.manager.getCharge(aInvStack)
- <= (electricItem.getMaxCharge(aInvStack) - aTransferRate)) {
+ <= (electricItem.getMaxCharge(aInvStack) - aTransferRate)) {
double d = ElectricItem.manager
- .charge(aInvStack, aTransferRate, mTier, false, true);
+ .charge(aInvStack, aTransferRate, mTier, false, true);
if (d > 0) {
- d = ElectricItem.manager.charge(
- aInvStack,
- aTransferRate,
- mTier,
- false,
- false);
- ElectricItem.manager.discharge(
- aBaubleStack,
- d,
- mTier,
- false,
- true,
- false);
+ d = ElectricItem.manager
+ .charge(aInvStack, aTransferRate, mTier, false, false);
+ ElectricItem.manager
+ .discharge(aBaubleStack, d, mTier, false, true, false);
// Logger.INFO("Charging " + aInvStack.getDisplayName() + "
// | " + d + " | "+electricItem.getMaxCharge(aInvStack));
}
diff --git a/src/main/java/gtPlusPlus/core/item/bauble/ElectricBaseBauble.java b/src/main/java/gtPlusPlus/core/item/bauble/ElectricBaseBauble.java
index e6b3ab9941..ab17e91232 100644
--- a/src/main/java/gtPlusPlus/core/item/bauble/ElectricBaseBauble.java
+++ b/src/main/java/gtPlusPlus/core/item/bauble/ElectricBaseBauble.java
@@ -30,8 +30,8 @@ import ic2.api.item.IElectricItem;
import ic2.api.item.IElectricItemManager;
@Optional.InterfaceList(
- value = { @Optional.Interface(iface = "baubles.api.IBauble", modid = Mods.Names.BAUBLES),
- @Optional.Interface(iface = "baubles.api.BaubleType", modid = Mods.Names.BAUBLES) })
+ value = { @Optional.Interface(iface = "baubles.api.IBauble", modid = Mods.Names.BAUBLES),
+ @Optional.Interface(iface = "baubles.api.BaubleType", modid = Mods.Names.BAUBLES) })
public abstract class ElectricBaseBauble extends BaseBauble implements IElectricItem, IElectricItemManager, IBauble {
public final int mTier;
@@ -76,7 +76,7 @@ public abstract class ElectricBaseBauble extends BaseBauble implements IElectric
@Override
public void onUpdate(final ItemStack itemStack, final World worldObj, final Entity player, final int p_77663_4_,
- final boolean p_77663_5_) {
+ final boolean p_77663_5_) {
super.onUpdate(itemStack, worldObj, player, p_77663_4_, p_77663_5_);
}
@@ -138,38 +138,37 @@ public abstract class ElectricBaseBauble extends BaseBauble implements IElectric
list.add(EnumChatFormatting.GOLD + aEuInfo + EnumChatFormatting.GRAY);
list.add(
- EnumChatFormatting.GRAY + aTier
- + ": ["
- + EnumChatFormatting.YELLOW
- + GT_Utility.formatNumbers(this.getTier(stack))
- + EnumChatFormatting.GRAY
- + "] "
- + aInputLimit
- + ": ["
- + EnumChatFormatting.YELLOW
- + GT_Utility.formatNumbers(this.getTransferLimit(stack))
- + EnumChatFormatting.GRAY
- + aEUT
- + "]");
+ EnumChatFormatting.GRAY + aTier
+ + ": ["
+ + EnumChatFormatting.YELLOW
+ + GT_Utility.formatNumbers(this.getTier(stack))
+ + EnumChatFormatting.GRAY
+ + "] "
+ + aInputLimit
+ + ": ["
+ + EnumChatFormatting.YELLOW
+ + GT_Utility.formatNumbers(this.getTransferLimit(stack))
+ + EnumChatFormatting.GRAY
+ + aEUT
+ + "]");
list.add(
- EnumChatFormatting.GRAY + aCurrentPower
- + ": ["
- + EnumChatFormatting.YELLOW
- + GT_Utility.formatNumbers(this.getCharge(stack))
- + EnumChatFormatting.GRAY
- + aEU
- + "] ["
- + EnumChatFormatting.YELLOW
- + GT_Utility.formatNumbers(
- MathUtils.findPercentage(this.getCharge(stack), this.getMaxCharge(stack)))
- + EnumChatFormatting.GRAY
- + "%]");
+ EnumChatFormatting.GRAY + aCurrentPower
+ + ": ["
+ + EnumChatFormatting.YELLOW
+ + GT_Utility.formatNumbers(this.getCharge(stack))
+ + EnumChatFormatting.GRAY
+ + aEU
+ + "] ["
+ + EnumChatFormatting.YELLOW
+ + GT_Utility.formatNumbers(MathUtils.findPercentage(this.getCharge(stack), this.getMaxCharge(stack)))
+ + EnumChatFormatting.GRAY
+ + "%]");
super.addInformation(stack, aPlayer, list, bool);
}
@Override
public final double charge(final ItemStack stack, final double amount, final int tier,
- final boolean ignoreTransferLimit, final boolean simulate) {
+ final boolean ignoreTransferLimit, final boolean simulate) {
/*
* if (!simulate) { ElectricItem.manager.charge(stack, amount, tier, true, simulate); }
*/
@@ -179,7 +178,7 @@ public abstract class ElectricBaseBauble extends BaseBauble implements IElectric
@Override
public final double discharge(final ItemStack stack, final double amount, final int tier,
- final boolean ignoreTransferLimit, final boolean externally, final boolean simulate) {
+ final boolean ignoreTransferLimit, final boolean externally, final boolean simulate) {
/*
* if (!simulate) { ElectricItem.manager.discharge(stack, amount, tier, ignoreTransferLimit, externally,
* simulate); }
diff --git a/src/main/java/gtPlusPlus/core/item/bauble/FireProtectionBauble.java b/src/main/java/gtPlusPlus/core/item/bauble/FireProtectionBauble.java
index 95c2462e23..c3c371ae35 100644
--- a/src/main/java/gtPlusPlus/core/item/bauble/FireProtectionBauble.java
+++ b/src/main/java/gtPlusPlus/core/item/bauble/FireProtectionBauble.java
@@ -26,7 +26,7 @@ public class FireProtectionBauble extends BaseBauble {
static {
isImmuneToFire = ReflectionUtils
- .getField(Entity.class, !CORE_Preloader.DEV_ENVIRONMENT ? "func_70045_F" : "isImmuneToFire");
+ .getField(Entity.class, !CORE_Preloader.DEV_ENVIRONMENT ? "func_70045_F" : "isImmuneToFire");
}
public static boolean fireImmune(Entity aEntity) {
@@ -56,7 +56,7 @@ public class FireProtectionBauble extends BaseBauble {
@Override
public void onUpdate(final ItemStack itemStack, final World worldObj, final Entity player, final int p_77663_4_,
- final boolean p_77663_5_) {
+ final boolean p_77663_5_) {
super.onUpdate(itemStack, worldObj, player, p_77663_4_, p_77663_5_);
}
diff --git a/src/main/java/gtPlusPlus/core/item/chemistry/AgriculturalChem.java b/src/main/java/gtPlusPlus/core/item/chemistry/AgriculturalChem.java
index 95d1fc616d..e14d9f7f08 100644
--- a/src/main/java/gtPlusPlus/core/item/chemistry/AgriculturalChem.java
+++ b/src/main/java/gtPlusPlus/core/item/chemistry/AgriculturalChem.java
@@ -133,17 +133,17 @@ public class AgriculturalChem extends ItemPackage {
public void items() {
// Nitrogen, Ammonium Nitrate, Phosphates, Calcium, Copper, Carbon
dustManureByproducts = ItemUtils.generateSpecialUseDusts(
- "ManureByproducts",
- "Manure Byproduct",
- "(N2H4O3)N2P2Ca3CuC8",
- Utils.rgbtoHexValue(110, 75, 25))[0];
+ "ManureByproducts",
+ "Manure Byproduct",
+ "(N2H4O3)N2P2Ca3CuC8",
+ Utils.rgbtoHexValue(110, 75, 25))[0];
// Basically Guano
dustOrganicFertilizer = ItemUtils.generateSpecialUseDusts(
- "OrganicFertilizer",
- "Organic Fertilizer",
- "Ca5(PO4)3(OH)",
- Utils.rgbtoHexValue(240, 240, 240))[0];
+ "OrganicFertilizer",
+ "Organic Fertilizer",
+ "Ca5(PO4)3(OH)",
+ Utils.rgbtoHexValue(240, 240, 240))[0];
// Dirt Dust :)
dustDirt = ItemUtils.generateSpecialUseDusts("Dirt", "Dried Earth", Utils.rgbtoHexValue(65, 50, 15))[0];
@@ -177,7 +177,7 @@ public class AgriculturalChem extends ItemPackage {
* If It exists, don't add a new one.
*/
if (OreDictionary.doesOreNameExist("dustSodiumHydroxide_GT5U")
- || OreDictionary.doesOreNameExist("dustSodiumHydroxide")) {
+ || OreDictionary.doesOreNameExist("dustSodiumHydroxide")) {
List<ItemStack> aTest = OreDictionary.getOres("dustSodiumHydroxide", false);
ItemStack aTestStack;
if (aTest.isEmpty()) {
@@ -249,43 +249,43 @@ public class AgriculturalChem extends ItemPackage {
public void fluids() {
// Sewage
PoopJuice = FluidUtils.generateFluidNonMolten(
- "raw.waste",
- "Raw Animal Waste",
- 32 + 175,
- new short[] { 100, 70, 30, 100 },
- null,
- null,
- 0,
- true);
+ "raw.waste",
+ "Raw Animal Waste",
+ 32 + 175,
+ new short[] { 100, 70, 30, 100 },
+ null,
+ null,
+ 0,
+ true);
// Sewage
ManureSlurry = FluidUtils.generateFluidNonMolten(
- "manure.slurry",
- "Manure Slurry",
- 39 + 175,
- new short[] { 75, 45, 15, 100 },
- null,
- null,
- 0,
- true);
+ "manure.slurry",
+ "Manure Slurry",
+ 39 + 175,
+ new short[] { 75, 45, 15, 100 },
+ null,
+ null,
+ 0,
+ true);
// Sewage
FertileManureSlurry = FluidUtils.generateFluidNonMolten(
- "fertile.manure.slurry",
- "Fertile Manure Slurry",
- 45 + 175,
- new short[] { 65, 50, 15, 100 },
- null,
- null,
- 0,
- true);
+ "fertile.manure.slurry",
+ "Fertile Manure Slurry",
+ 45 + 175,
+ new short[] { 65, 50, 15, 100 },
+ null,
+ null,
+ 0,
+ true);
RedMud = FluidUtils.generateFluidNoPrefix(
- "mud.red.slurry",
- "Red Mud Slurry",
- 32 + 175,
- new short[] { 180, 35, 25, 100 },
- true);
+ "mud.red.slurry",
+ "Red Mud Slurry",
+ 32 + 175,
+ new short[] { 180, 35, 25, 100 },
+ true);
}
public AgriculturalChem() {
@@ -318,7 +318,7 @@ public class AgriculturalChem extends ItemPackage {
// Handle Blood Internally, Create if required.
if (mBloodFluids.isEmpty() || CustomBlood == null) {
Logger.INFO(
- "Did not find any existing Blood fluids. Trying to wildcard search the fluid registry, then generate our own if that fails.");
+ "Did not find any existing Blood fluids. Trying to wildcard search the fluid registry, then generate our own if that fails.");
FluidStack aTempBlood = FluidUtils.getWildcardFluidStack("blood", 100);
if (aTempBlood != null) {
CustomBlood = aTempBlood.getFluid();
@@ -326,7 +326,7 @@ public class AgriculturalChem extends ItemPackage {
aTempBlood = FluidUtils.getWildcardFluidStack("hell_blood", 100);
if (aTempBlood == null) {
CustomBlood = FluidUtils
- .generateFluidNoPrefix("blood", "Blood", 32 + 175, new short[] { 175, 25, 25, 100 }, true);
+ .generateFluidNoPrefix("blood", "Blood", 32 + 175, new short[] { 175, 25, 25, 100 }, true);
} else {
CustomBlood = aTempBlood.getFluid();
}
@@ -420,18 +420,26 @@ public class AgriculturalChem extends ItemPackage {
ItemStack aDirtDust = ItemUtils.getSimpleStack(dustDirt, 1);
// Poop Juice to Basic Slurry
- GT_Values.RA.stdBuilder().itemInputs(GT_Utility.getIntegratedCircuit(10))
- .itemOutputs(aDirtDust, aDirtDust, aManureByprod1, aManureByprod1, aManureByprod1, aManureByprod1)
- .outputChances(2000, 2000, 500, 500, 250, 250).fluidInputs(FluidUtils.getFluidStack(PoopJuice, 1000))
- .fluidOutputs(FluidUtils.getFluidStack(ManureSlurry, 250)).duration(10 * SECONDS).eut(TierEU.RECIPE_LV)
- .addTo(centrifugeRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(GT_Utility.getIntegratedCircuit(10))
+ .itemOutputs(aDirtDust, aDirtDust, aManureByprod1, aManureByprod1, aManureByprod1, aManureByprod1)
+ .outputChances(2000, 2000, 500, 500, 250, 250)
+ .fluidInputs(FluidUtils.getFluidStack(PoopJuice, 1000))
+ .fluidOutputs(FluidUtils.getFluidStack(ManureSlurry, 250))
+ .duration(10 * SECONDS)
+ .eut(TierEU.RECIPE_LV)
+ .addTo(centrifugeRecipes);
// More Efficient way to get byproducts, less Slurry
- GT_Values.RA.stdBuilder().itemInputs(GT_Utility.getIntegratedCircuit(20))
- .itemOutputs(aDirtDust, aDirtDust, aManureByprod1, aManureByprod1, aManureByprod2, aManureByprod2)
- .outputChances(4000, 3000, 1250, 1250, 675, 675).fluidInputs(FluidUtils.getFluidStack(PoopJuice, 1000))
- .fluidOutputs(FluidUtils.getFluidStack(ManureSlurry, 50)).duration(20 * SECONDS)
- .eut(TierEU.RECIPE_MV / 2).addTo(centrifugeRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(GT_Utility.getIntegratedCircuit(20))
+ .itemOutputs(aDirtDust, aDirtDust, aManureByprod1, aManureByprod1, aManureByprod2, aManureByprod2)
+ .outputChances(4000, 3000, 1250, 1250, 675, 675)
+ .fluidInputs(FluidUtils.getFluidStack(PoopJuice, 1000))
+ .fluidOutputs(FluidUtils.getFluidStack(ManureSlurry, 50))
+ .duration(20 * SECONDS)
+ .eut(TierEU.RECIPE_MV / 2)
+ .addTo(centrifugeRecipes);
}
private static void addAdvancedSlurryRecipes() {
@@ -449,9 +457,14 @@ public class AgriculturalChem extends ItemPackage {
for (ItemStack aMeatStack : mList_Master_Meats) {
aMeat = ItemUtils.getSimpleStack(aMeatStack, 5);
// Poop Juice to Fertile Slurry
- GT_Values.RA.stdBuilder().itemInputs(aCircuit, aBone, aMeat, aInputCells).itemOutputs(aEmptyCells)
- .fluidInputs(aBloodStack).fluidOutputs(aOutput).duration(8 * SECONDS)
- .eut(TierEU.RECIPE_MV / 2).addTo(mixerRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(aCircuit, aBone, aMeat, aInputCells)
+ .itemOutputs(aEmptyCells)
+ .fluidInputs(aBloodStack)
+ .fluidOutputs(aOutput)
+ .duration(8 * SECONDS)
+ .eut(TierEU.RECIPE_MV / 2)
+ .addTo(mixerRecipes);
}
}
}
@@ -466,14 +479,24 @@ public class AgriculturalChem extends ItemPackage {
aPeat = ItemUtils.getSimpleStack(aPeatStack, 3);
for (ItemStack aMeatStack : mList_Master_Meats) {
aMeat = ItemUtils.getSimpleStack(aMeatStack, 5);
- GT_Values.RA.stdBuilder().itemInputs(aPeat, aMeat).itemOutputs(aOutputDust).fluidInputs(aInputFluid)
- .duration(20 * SECONDS).eut(TierEU.RECIPE_MV).addTo(UniversalChemical);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(aPeat, aMeat)
+ .itemOutputs(aOutputDust)
+ .fluidInputs(aInputFluid)
+ .duration(20 * SECONDS)
+ .eut(TierEU.RECIPE_MV)
+ .addTo(UniversalChemical);
}
aPeat = ItemUtils.getSimpleStack(aPeatStack, 2);
for (ItemStack aMeatStack : mList_Master_FruitVege) {
aMeat = ItemUtils.getSimpleStack(aMeatStack, 9);
- GT_Values.RA.stdBuilder().itemInputs(aPeat, aMeat).itemOutputs(aOutputDust).fluidInputs(aInputFluid)
- .duration(10 * SECONDS).eut(TierEU.RECIPE_MV).addTo(UniversalChemical);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(aPeat, aMeat)
+ .itemOutputs(aOutputDust)
+ .fluidInputs(aInputFluid)
+ .duration(10 * SECONDS)
+ .eut(TierEU.RECIPE_MV)
+ .addTo(UniversalChemical);
}
}
}
@@ -487,14 +510,24 @@ public class AgriculturalChem extends ItemPackage {
aPeat = ItemUtils.getSimpleStack(aPeatStack, 5);
for (ItemStack aMeatStack : mList_Master_Meats) {
aMeat = ItemUtils.getSimpleStack(aMeatStack, 7);
- GT_Values.RA.stdBuilder().itemInputs(aPeat, aMeat).itemOutputs(aOutputDust).fluidInputs(aInputFluid)
- .duration(10 * SECONDS).eut(140).addTo(UniversalChemical);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(aPeat, aMeat)
+ .itemOutputs(aOutputDust)
+ .fluidInputs(aInputFluid)
+ .duration(10 * SECONDS)
+ .eut(140)
+ .addTo(UniversalChemical);
}
aPeat = ItemUtils.getSimpleStack(aPeatStack, 3);
for (ItemStack aMeatStack : mList_Master_FruitVege) {
aMeat = ItemUtils.getSimpleStack(aMeatStack, 12);
- GT_Values.RA.stdBuilder().itemInputs(aPeat, aMeat).itemOutputs(aOutputDust).fluidInputs(aInputFluid)
- .duration(5 * SECONDS).eut(140).addTo(UniversalChemical);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(aPeat, aMeat)
+ .itemOutputs(aOutputDust)
+ .fluidInputs(aInputFluid)
+ .duration(5 * SECONDS)
+ .eut(140)
+ .addTo(UniversalChemical);
}
}
}
@@ -514,7 +547,7 @@ public class AgriculturalChem extends ItemPackage {
*/
if (Forestry.isModLoaded()) {
Field aItemField = ReflectionUtils
- .getField(ReflectionUtils.getClass("forestry.plugins.PluginCore"), "items");
+ .getField(ReflectionUtils.getClass("forestry.plugins.PluginCore"), "items");
try {
Object aItemRegInstance = aItemField != null ? aItemField.get(aItemField) : null;
if (aItemRegInstance != null) {
@@ -523,15 +556,15 @@ public class AgriculturalChem extends ItemPackage {
if (aItemInstance instanceof Item aForestryFert) {
aFertForestry = ItemUtils.getSimpleStack((Item) aItemInstance);
CORE.RA.addDehydratorRecipe(
- new ItemStack[] { CI.getNumberedCircuit(11),
- ItemUtils.getSimpleStack(aDustOrganicFert, 4) },
- null,
- null,
- new ItemStack[] { ItemUtils.getSimpleStack(aForestryFert, 3), aManureByprod,
- aManureByprod },
- new int[] { 10000, 2000, 2000 },
- 20 * 20,
- 240);
+ new ItemStack[] { CI.getNumberedCircuit(11),
+ ItemUtils.getSimpleStack(aDustOrganicFert, 4) },
+ null,
+ null,
+ new ItemStack[] { ItemUtils.getSimpleStack(aForestryFert, 3), aManureByprod,
+ aManureByprod },
+ new int[] { 10000, 2000, 2000 },
+ 20 * 20,
+ 240);
}
}
} catch (IllegalArgumentException | IllegalAccessException e) {
@@ -544,35 +577,40 @@ public class AgriculturalChem extends ItemPackage {
*/
aFertIC2 = ItemUtils.getItemStackFromFQRN("IC2:itemFertilizer", 1);
CORE.RA.addDehydratorRecipe(
- new ItemStack[] { CI.getNumberedCircuit(12), ItemUtils.getSimpleStack(aDustOrganicFert, 4) },
- null,
- null,
- new ItemStack[] { ItemUtils.getItemStackFromFQRN("IC2:itemFertilizer", 3), aManureByprod,
- aManureByprod },
- new int[] { 10000, 2000, 2000 },
- 20 * 20,
- 240);
+ new ItemStack[] { CI.getNumberedCircuit(12), ItemUtils.getSimpleStack(aDustOrganicFert, 4) },
+ null,
+ null,
+ new ItemStack[] { ItemUtils.getItemStackFromFQRN("IC2:itemFertilizer", 3), aManureByprod, aManureByprod },
+ new int[] { 10000, 2000, 2000 },
+ 20 * 20,
+ 240);
// Dirt Production
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getSimpleStack(dustDirt, 9))
- .itemOutputs(ItemUtils.getSimpleStack(Blocks.dirt)).duration(2 * SECONDS).eut(8)
- .addTo(compressorRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getSimpleStack(dustDirt, 9))
+ .itemOutputs(ItemUtils.getSimpleStack(Blocks.dirt))
+ .duration(2 * SECONDS)
+ .eut(8)
+ .addTo(compressorRecipes);
// Centrifuge Byproducts
// Ammonium Nitrate, Phosphates, Calcium, Copper, Carbon
GT_Values.RA.stdBuilder()
- .itemInputs(ItemUtils.getSimpleStack(aManureByprod, 4), GT_Utility.getIntegratedCircuit(20))
- .itemOutputs(
- GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Phosphorus, 2L),
- GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Calcium, 2L),
- GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Copper, 1L),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 1L),
- ItemUtils.getSimpleStack(dustDirt, 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustTinyAmmoniumNitrate", 1))
- .outputChances(2500, 2500, 750, 1000, 5000, 250).fluidInputs(Materials.SulfuricAcid.getFluid(250))
- .fluidOutputs(FluidUtils.getFluidStack("sulfuricapatite", 50)).duration(20 * SECONDS)
- .eut(TierEU.RECIPE_MV / 2).addTo(centrifugeRecipes);
+ .itemInputs(ItemUtils.getSimpleStack(aManureByprod, 4), GT_Utility.getIntegratedCircuit(20))
+ .itemOutputs(
+ GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Phosphorus, 2L),
+ GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Calcium, 2L),
+ GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Copper, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 1L),
+ ItemUtils.getSimpleStack(dustDirt, 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustTinyAmmoniumNitrate", 1))
+ .outputChances(2500, 2500, 750, 1000, 5000, 250)
+ .fluidInputs(Materials.SulfuricAcid.getFluid(250))
+ .fluidOutputs(FluidUtils.getFluidStack("sulfuricapatite", 50))
+ .duration(20 * SECONDS)
+ .eut(TierEU.RECIPE_MV / 2)
+ .addTo(centrifugeRecipes);
// Add Fuel Usages
CORE.RA.addSemifluidFuel(FluidUtils.getFluidStack(PoopJuice, 1000), 12);
@@ -580,18 +618,21 @@ public class AgriculturalChem extends ItemPackage {
CORE.RA.addSemifluidFuel(FluidUtils.getFluidStack(FertileManureSlurry, 1000), 32);
// Red Slurry / Tailings Processing
- GT_Values.RA.stdBuilder().itemInputs(CI.getNumberedBioCircuit(10))
- .itemOutputs(
- GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Iron, 1L),
- GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Copper, 1L),
- GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Tin, 1L),
- GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Sulfur, 1L),
- GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Nickel, 1L),
- GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Lead, 1L))
- .outputChances(3000, 3000, 2000, 2000, 1000, 1000)
- .fluidInputs(FluidUtils.getFluidStack(AgriculturalChem.RedMud, 1000))
- .fluidOutputs(Materials.Water.getFluid(500)).duration(30 * SECONDS).eut(TierEU.RECIPE_LV)
- .addTo(centrifugeRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(CI.getNumberedBioCircuit(10))
+ .itemOutputs(
+ GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Iron, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Copper, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Tin, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Sulfur, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Nickel, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Lead, 1L))
+ .outputChances(3000, 3000, 2000, 2000, 1000, 1000)
+ .fluidInputs(FluidUtils.getFluidStack(AgriculturalChem.RedMud, 1000))
+ .fluidOutputs(Materials.Water.getFluid(500))
+ .duration(30 * SECONDS)
+ .eut(TierEU.RECIPE_LV)
+ .addTo(centrifugeRecipes);
}
@Override
diff --git a/src/main/java/gtPlusPlus/core/item/chemistry/CoalTar.java b/src/main/java/gtPlusPlus/core/item/chemistry/CoalTar.java
index b339b6e582..1fafbb5088 100644
--- a/src/main/java/gtPlusPlus/core/item/chemistry/CoalTar.java
+++ b/src/main/java/gtPlusPlus/core/item/chemistry/CoalTar.java
@@ -44,94 +44,100 @@ public class CoalTar extends ItemPackage {
// C2H6O = C2H4 + H2O
if (bioEth1 != null) {
CORE.RA.addDehydratorRecipe(
- new ItemStack[] { CI.getNumberedBioCircuit(17),
- ItemUtils.getItemStackOfAmountFromOreDict("cellEmpty", 1) },
- bioEth1,
- FluidUtils.getWater(1000),
- new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("cellEthylene", 1) },
- new int[] { 10000 },
- 120 * 20,
- 80);
+ new ItemStack[] { CI.getNumberedBioCircuit(17),
+ ItemUtils.getItemStackOfAmountFromOreDict("cellEmpty", 1) },
+ bioEth1,
+ FluidUtils.getWater(1000),
+ new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("cellEthylene", 1) },
+ new int[] { 10000 },
+ 120 * 20,
+ 80);
}
if (bioEth2 != null) {
CORE.RA.addDehydratorRecipe(
- new ItemStack[] { CI.getNumberedBioCircuit(18),
- ItemUtils.getItemStackOfAmountFromOreDict("cellEmpty", 1) },
- bioEth2,
- FluidUtils.getWater(1000),
- new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("cellEthylene", 1) },
- new int[] { 10000 },
- 120 * 20,
- 80);
+ new ItemStack[] { CI.getNumberedBioCircuit(18),
+ ItemUtils.getItemStackOfAmountFromOreDict("cellEmpty", 1) },
+ bioEth2,
+ FluidUtils.getWater(1000),
+ new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("cellEthylene", 1) },
+ new int[] { 10000 },
+ 120 * 20,
+ 80);
}
}
public static void recipeCreateBenzene() {
// C7H8 + 2H = CH4 + C6H6
- GT_Values.RA.stdBuilder().itemInputs(Materials.Toluene.getCells(1)).itemOutputs(Materials.Benzene.getCells(1))
- .fluidInputs(Materials.Hydrogen.getGas(2000)).fluidOutputs(Materials.Methane.getGas(1000))
- .duration(10 * SECONDS).eut(90).noOptimize().addTo(chemicalDehydratorRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(Materials.Toluene.getCells(1))
+ .itemOutputs(Materials.Benzene.getCells(1))
+ .fluidInputs(Materials.Hydrogen.getGas(2000))
+ .fluidOutputs(Materials.Methane.getGas(1000))
+ .duration(10 * SECONDS)
+ .eut(90)
+ .noOptimize()
+ .addTo(chemicalDehydratorRecipes);
}
public static void recipeCreateEthylbenzene() {
// C2H4 + C6H6 = C8H10
GT_Values.RA.addChemicalRecipe(
- ItemUtils.getItemStackOfAmountFromOreDict("cellEthylene", 2),
- ItemUtils.getGregtechCircuit(1),
- FluidUtils.getFluidStack("benzene", 2000),
- FluidUtils.getFluidStack("fluid.ethylbenzene", 2000),
- ItemUtils.getItemStackOfAmountFromOreDict("cellEmpty", 2),
- 300);
+ ItemUtils.getItemStackOfAmountFromOreDict("cellEthylene", 2),
+ ItemUtils.getGregtechCircuit(1),
+ FluidUtils.getFluidStack("benzene", 2000),
+ FluidUtils.getFluidStack("fluid.ethylbenzene", 2000),
+ ItemUtils.getItemStackOfAmountFromOreDict("cellEmpty", 2),
+ 300);
GT_Values.RA.addChemicalRecipe(
- ItemUtils.getItemStackOfAmountFromOreDict("cellBenzene", 2),
- ItemUtils.getGregtechCircuit(1),
- FluidUtils.getFluidStack("ethylene", 2000),
- FluidUtils.getFluidStack("fluid.ethylbenzene", 2000),
- ItemUtils.getItemStackOfAmountFromOreDict("cellEmpty", 2),
- 300);
+ ItemUtils.getItemStackOfAmountFromOreDict("cellBenzene", 2),
+ ItemUtils.getGregtechCircuit(1),
+ FluidUtils.getFluidStack("ethylene", 2000),
+ FluidUtils.getFluidStack("fluid.ethylbenzene", 2000),
+ ItemUtils.getItemStackOfAmountFromOreDict("cellEmpty", 2),
+ 300);
}
public static void recipeCoalToCoalTar() {
// Charcoal
AddGregtechRecipe.addCokeAndPyrolyseRecipes(
- GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Charcoal, 32L),
- 8,
- GT_Values.NF,
- ItemUtils.getItemStackOfAmountFromOreDict("dustSmallDirt", 2),
- FluidUtils.getFluidStack("fluid.coaltar", 800),
- 15,
- 120);
+ GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Charcoal, 32L),
+ 8,
+ GT_Values.NF,
+ ItemUtils.getItemStackOfAmountFromOreDict("dustSmallDirt", 2),
+ FluidUtils.getFluidStack("fluid.coaltar", 800),
+ 15,
+ 120);
// Lignite
AddGregtechRecipe.addCokeAndPyrolyseRecipes(
- GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Lignite, 16L),
- 8,
- GT_Values.NF,
- ItemUtils.getItemStackOfAmountFromOreDict("dustSmallDarkAsh", 2),
- FluidUtils.getFluidStack("fluid.coaltar", 800),
- 45,
- 60);
+ GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Lignite, 16L),
+ 8,
+ GT_Values.NF,
+ ItemUtils.getItemStackOfAmountFromOreDict("dustSmallDarkAsh", 2),
+ FluidUtils.getFluidStack("fluid.coaltar", 800),
+ 45,
+ 60);
// Coal
AddGregtechRecipe.addCokeAndPyrolyseRecipes(
- GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Coal, 12L),
- 8,
- GT_Values.NF,
- ItemUtils.getItemStackOfAmountFromOreDict("dustSmallDarkAsh", 2),
- FluidUtils.getFluidStack("fluid.coaltar", 2200),
- 30,
- 120);
+ GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Coal, 12L),
+ 8,
+ GT_Values.NF,
+ ItemUtils.getItemStackOfAmountFromOreDict("dustSmallDarkAsh", 2),
+ FluidUtils.getFluidStack("fluid.coaltar", 2200),
+ 30,
+ 120);
// Coke
AddGregtechRecipe.addCokeAndPyrolyseRecipes(
- ItemUtils.getItemStackOfAmountFromOreDict("fuelCoke", 8),
- 8,
- GT_Values.NF,
- ItemUtils.getItemStackOfAmountFromOreDict("dustSmallAsh", 3),
- FluidUtils.getFluidStack("fluid.coaltar", 3400),
- 15,
- 240);
+ ItemUtils.getItemStackOfAmountFromOreDict("fuelCoke", 8),
+ 8,
+ GT_Values.NF,
+ ItemUtils.getItemStackOfAmountFromOreDict("dustSmallAsh", 3),
+ FluidUtils.getFluidStack("fluid.coaltar", 3400),
+ 15,
+ 240);
}
private static void recipeCoalTarToCoalTarOil() {
@@ -139,53 +145,65 @@ public class CoalTar extends ItemPackage {
// Create Coal Tar Oil
FluidStack[] distOutputs = new FluidStack[] { FluidUtils.getFluidStack("fluid.coaltaroil", 600),
- FluidUtils.getFluidStack("liquid_naphtha", 150), FluidUtils.getFluidStack("fluid.ethylbenzene", 200),
- FluidUtils.getFluidStack("fluid.anthracene", 50), FluidUtils.getFluidStack("fluid.kerosene", 600) };
+ FluidUtils.getFluidStack("liquid_naphtha", 150), FluidUtils.getFluidStack("fluid.ethylbenzene", 200),
+ FluidUtils.getFluidStack("fluid.anthracene", 50), FluidUtils.getFluidStack("fluid.kerosene", 600) };
for (int i = 0; i < distOutputs.length; i++) {
- GT_Values.RA.stdBuilder().itemInputs(GT_Utility.getIntegratedCircuit(i + 1))
- .fluidInputs(FluidUtils.getFluidStack("fluid.coaltar", 1000)).fluidOutputs(distOutputs[i])
- .duration(30 * SECONDS).eut(64).addTo(distilleryRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(GT_Utility.getIntegratedCircuit(i + 1))
+ .fluidInputs(FluidUtils.getFluidStack("fluid.coaltar", 1000))
+ .fluidOutputs(distOutputs[i])
+ .duration(30 * SECONDS)
+ .eut(64)
+ .addTo(distilleryRecipes);
}
- GT_Values.RA.stdBuilder().fluidInputs(FluidUtils.getFluidStack("fluid.coaltar", 1000)).fluidOutputs(distOutputs)
- .duration(15 * SECONDS).eut(256).addTo(distillationTowerRecipes);
+ GT_Values.RA.stdBuilder()
+ .fluidInputs(FluidUtils.getFluidStack("fluid.coaltar", 1000))
+ .fluidOutputs(distOutputs)
+ .duration(15 * SECONDS)
+ .eut(256)
+ .addTo(distillationTowerRecipes);
}
private static void recipeCoalTarOilToSulfuricOilToNaphthalene() {
// SulfuricCoalTarOil
GT_Values.RA.addChemicalRecipe(
- ItemUtils.getItemStackOfAmountFromOreDict("cellCoalTarOil", 8),
- ItemUtils.getItemStackOfAmountFromOreDict("cellSulfuricAcid", 8),
- null,
- null,
- ItemUtils.getItemStackOfAmountFromOreDict("cellSulfuricCoalTarOil", 16),
- 20 * 16);
+ ItemUtils.getItemStackOfAmountFromOreDict("cellCoalTarOil", 8),
+ ItemUtils.getItemStackOfAmountFromOreDict("cellSulfuricAcid", 8),
+ null,
+ null,
+ ItemUtils.getItemStackOfAmountFromOreDict("cellSulfuricCoalTarOil", 16),
+ 20 * 16);
GT_Values.RA.addDistilleryRecipe(
- CI.getNumberedCircuit(6), // Circuit
- FluidUtils.getFluidStack("fluid.sulfuriccoaltaroil", 1000), // aInput
- FluidUtils.getFluidStack("fluid.naphthalene", 1000), // aOutput
- 1200, // aDuration
- 30, // aEUt
- false // Hidden?
+ CI.getNumberedCircuit(6), // Circuit
+ FluidUtils.getFluidStack("fluid.sulfuriccoaltaroil", 1000), // aInput
+ FluidUtils.getFluidStack("fluid.naphthalene", 1000), // aOutput
+ 1200, // aDuration
+ 30, // aEUt
+ false // Hidden?
);
}
private static void recipeNaphthaleneToPhthalicAcid() {
// SulfuricCoalTarOil
- GT_Values.RA.stdBuilder().itemInputs(Materials.Lithium.getDust(5))
- .fluidInputs(FluidUtils.getFluidStack(Naphthalene, 2000))
- .fluidOutputs(Materials.PhthalicAcid.getFluid(2500)).eut(30).duration(16 * SECONDS).noOptimize()
- .addTo(UniversalChemical);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(Materials.Lithium.getDust(5))
+ .fluidInputs(FluidUtils.getFluidStack(Naphthalene, 2000))
+ .fluidOutputs(Materials.PhthalicAcid.getFluid(2500))
+ .eut(30)
+ .duration(16 * SECONDS)
+ .noOptimize()
+ .addTo(UniversalChemical);
}
private static void recipePhthalicAcidToPhthalicAnhydride() {
CORE.RA.addDehydratorRecipe(
- new ItemStack[] { CI.getNumberedBioCircuit(15) },
- Materials.PhthalicAcid.getFluid(1000),
- null,
- new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustPhthalicAnhydride", 15) },
- new int[] { 10000 },
- 60 * 20,
- 120);
+ new ItemStack[] { CI.getNumberedBioCircuit(15) },
+ Materials.PhthalicAcid.getFluid(1000),
+ null,
+ new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustPhthalicAnhydride", 15) },
+ new int[] { 10000 },
+ 60 * 20,
+ 120);
}
@Override
@@ -219,17 +237,17 @@ public class CoalTar extends ItemPackage {
// v - Dehydrate at 180C+
// Create Phthalic Anhydride
ItemUtils.generateSpecialUseDusts(
- "PhthalicAnhydride",
- "Phthalic Anhydride",
- "C6H4(CO)2O",
- Utils.rgbtoHexValue(175, 175, 175));
+ "PhthalicAnhydride",
+ "Phthalic Anhydride",
+ "C6H4(CO)2O",
+ Utils.rgbtoHexValue(175, 175, 175));
// Lithium Hydroperoxide - LiOH + H2O2 → LiOOH + 2 H2O
ItemUtils.generateSpecialUseDusts(
- "LithiumHydroperoxide",
- "Lithium Hydroperoxide",
- "HLiO2",
- Utils.rgbtoHexValue(125, 125, 125));
+ "LithiumHydroperoxide",
+ "Lithium Hydroperoxide",
+ "HLiO2",
+ Utils.rgbtoHexValue(125, 125, 125));
// v - Dehydrate
// Lithium Peroxide - 2 LiOOH → Li2O2 + H2O2 + 2 H2O
}
@@ -242,83 +260,60 @@ public class CoalTar extends ItemPackage {
// Create Coal Gas
Coal_Gas = FluidUtils
- .generateFluidNonMolten("CoalGas", "Coal Gas", 500, new short[] { 48, 48, 48, 100 }, null, null);
+ .generateFluidNonMolten("CoalGas", "Coal Gas", 500, new short[] { 48, 48, 48, 100 }, null, null);
// Ethanol
// v - Dehydrate cells to remove water
// Create Ethylene
if (!FluidUtils.doesFluidExist("ethylene")) {
- Ethylene = FluidUtils.generateFluidNonMolten(
- "ethylene",
- "Ethylene",
- -103,
- new short[] { 255, 255, 255, 100 },
- null,
- null);
+ Ethylene = FluidUtils
+ .generateFluidNonMolten("ethylene", "Ethylene", -103, new short[] { 255, 255, 255, 100 }, null, null);
} else {
- Ethylene = FluidUtils.getWildcardFluidStack("ethylene", 1).getFluid();
+ Ethylene = FluidUtils.getWildcardFluidStack("ethylene", 1)
+ .getFluid();
}
// Create Ethylbenzene - Ethylbenzene is produced in on a large scale by combining benzene and ethylene in an
// acid-catalyzed chemical reaction
// Use Chemical Reactor
Ethylbenzene = FluidUtils.generateFluidNonMolten(
- "Ethylbenzene",
- "Ethylbenzene",
- 136,
- new short[] { 255, 255, 255, 100 },
- null,
- null);
+ "Ethylbenzene",
+ "Ethylbenzene",
+ 136,
+ new short[] { 255, 255, 255, 100 },
+ null,
+ null);
// Create Anthracene
- Anthracene = FluidUtils.generateFluidNonMolten(
- "Anthracene",
- "Anthracene",
- 340,
- new short[] { 255, 255, 255, 100 },
- null,
- null);
+ Anthracene = FluidUtils
+ .generateFluidNonMolten("Anthracene", "Anthracene", 340, new short[] { 255, 255, 255, 100 }, null, null);
// Toluene
if (!FluidUtils.doesFluidExist("liquid_toluene")) {
- Toluene = FluidUtils.generateFluidNonMolten(
- "liquid_toluene",
- "Toluene",
- -95,
- new short[] { 140, 70, 20, 100 },
- null,
- null);
+ Toluene = FluidUtils
+ .generateFluidNonMolten("liquid_toluene", "Toluene", -95, new short[] { 140, 70, 20, 100 }, null, null);
} else {
- Toluene = FluidUtils.getWildcardFluidStack("liquid_toluene", 1).getFluid();
+ Toluene = FluidUtils.getWildcardFluidStack("liquid_toluene", 1)
+ .getFluid();
}
// Create Coal Tar
Coal_Tar = FluidUtils
- .generateFluidNonMolten("CoalTar", "Coal Tar", 450, new short[] { 32, 32, 32, 100 }, null, null);
+ .generateFluidNonMolten("CoalTar", "Coal Tar", 450, new short[] { 32, 32, 32, 100 }, null, null);
// v - Distill (60% Tar oil/15% Naphtha/20% Ethylbenzene/5% Anthracene)
// Create Coal Tar Oil
- Coal_Tar_Oil = FluidUtils.generateFluidNonMolten(
- "CoalTarOil",
- "Coal Tar Oil",
- 240,
- new short[] { 240, 240, 150, 100 },
- null,
- null);
+ Coal_Tar_Oil = FluidUtils
+ .generateFluidNonMolten("CoalTarOil", "Coal Tar Oil", 240, new short[] { 240, 240, 150, 100 }, null, null);
// v - Wash With Sulfuric Acid
// Create Sulfuric Coal Tar Oil
Sulfuric_Coal_Tar_Oil = FluidUtils.generateFluidNonMolten(
- "SulfuricCoalTarOil",
- "Sulfuric Coal Tar Oil",
- 240,
- new short[] { 250, 170, 12, 100 },
- null,
- null);
+ "SulfuricCoalTarOil",
+ "Sulfuric Coal Tar Oil",
+ 240,
+ new short[] { 250, 170, 12, 100 },
+ null,
+ null);
// v - Distill (No loss, just time consuming)
// Create Naphthalene
- Naphthalene = FluidUtils.generateFluidNonMolten(
- "Naphthalene",
- "Naphthalene",
- 115,
- new short[] { 210, 185, 135, 100 },
- null,
- null);
+ Naphthalene = FluidUtils
+ .generateFluidNonMolten("Naphthalene", "Naphthalene", 115, new short[] { 210, 185, 135, 100 }, null, null);
}
}
diff --git a/src/main/java/gtPlusPlus/core/item/chemistry/GenericChem.java b/src/main/java/gtPlusPlus/core/item/chemistry/GenericChem.java
index 81de187929..31ea030c64 100644
--- a/src/main/java/gtPlusPlus/core/item/chemistry/GenericChem.java
+++ b/src/main/java/gtPlusPlus/core/item/chemistry/GenericChem.java
@@ -52,21 +52,21 @@ public class GenericChem extends ItemPackage {
// Refined PTFE
public static final Material TEFLON = new Material(
- "Teflon",
- MaterialState.SOLID,
- TextureSet.SET_SHINY,
- new short[] { 75, 45, 75 },
- 330,
- 640,
- -1,
- -1,
- false,
- null,
- 0,
- new MaterialStack(NONMATERIAL.PTFE, 75),
- new MaterialStack(NONMATERIAL.PLASTIC, 15),
- new MaterialStack(ELEMENT.getInstance().CARBON, 5),
- new MaterialStack(ELEMENT.getInstance().SODIUM, 5));
+ "Teflon",
+ MaterialState.SOLID,
+ TextureSet.SET_SHINY,
+ new short[] { 75, 45, 75 },
+ 330,
+ 640,
+ -1,
+ -1,
+ false,
+ null,
+ 0,
+ new MaterialStack(NONMATERIAL.PTFE, 75),
+ new MaterialStack(NONMATERIAL.PLASTIC, 15),
+ new MaterialStack(ELEMENT.getInstance().CARBON, 5),
+ new MaterialStack(ELEMENT.getInstance().SODIUM, 5));
/**
* Fluids
@@ -244,21 +244,21 @@ public class GenericChem extends ItemPackage {
if (!FluidRegistry.isFluidRegistered("benzene")) {
Benzene = FluidUtils
- .generateFluidNoPrefix("benzene", "Benzene", 278, new short[] { 100, 70, 30, 100 }, true);
+ .generateFluidNoPrefix("benzene", "Benzene", 278, new short[] { 100, 70, 30, 100 }, true);
} else {
Benzene = FluidRegistry.getFluid("benzene");
}
NitroBenzene = FluidUtils
- .generateFluidNoPrefix("nitrobenzene", "Nitrobenzene", 278, new short[] { 70, 50, 40, 100 }, true);
+ .generateFluidNoPrefix("nitrobenzene", "Nitrobenzene", 278, new short[] { 70, 50, 40, 100 }, true);
Aniline = FluidUtils.generateFluidNoPrefix("aniline", "Aniline", 266, new short[] { 100, 100, 30, 100 }, true);
BoricAcid = FluidUtils
- .generateFluidNoPrefix("boricacid", "Boric Acid", 278, new short[] { 90, 30, 120, 100 }, true);
+ .generateFluidNoPrefix("boricacid", "Boric Acid", 278, new short[] { 90, 30, 120, 100 }, true);
Polyurethane = FluidUtils
- .generateFluidNoPrefix("polyurethane", "Polyurethane", 350, new short[] { 100, 70, 100, 100 }, true);
+ .generateFluidNoPrefix("polyurethane", "Polyurethane", 350, new short[] { 100, 70, 100, 100 }, true);
if (!FluidRegistry.isFluidRegistered("phenol")) {
Phenol = FluidUtils.generateFluidNoPrefix("phenol", "Phenol", 313, new short[] { 100, 70, 30, 100 }, true);
@@ -271,54 +271,50 @@ public class GenericChem extends ItemPackage {
HydrochloricAcid = FluidRegistry.getFluid("hydrochloricacid_gt5u");
} else {
HydrochloricAcid = FluidUtils.generateFluidNoPrefix(
- "hydrochloricacid",
- "Hydrochloric Acid",
- 285,
- new short[] { 183, 200, 196, 100 },
- true);
+ "hydrochloricacid",
+ "Hydrochloric Acid",
+ 285,
+ new short[] { 183, 200, 196, 100 },
+ true);
}
Cyclohexane = FluidUtils
- .generateFluidNoPrefix("cyclohexane", "Cyclohexane", 32 + 175, new short[] { 100, 70, 30, 100 }, true);
- Cyclohexanone = FluidUtils.generateFluidNoPrefix(
- "cyclohexanone",
- "Cyclohexanone",
- 32 + 175,
- new short[] { 100, 70, 30, 100 },
- true);
+ .generateFluidNoPrefix("cyclohexane", "Cyclohexane", 32 + 175, new short[] { 100, 70, 30, 100 }, true);
+ Cyclohexanone = FluidUtils
+ .generateFluidNoPrefix("cyclohexanone", "Cyclohexanone", 32 + 175, new short[] { 100, 70, 30, 100 }, true);
Cadaverine = FluidUtils
- .generateFluidNoPrefix("cadaverine", "Cadaverine", 32 + 175, new short[] { 100, 70, 30, 100 }, true);
+ .generateFluidNoPrefix("cadaverine", "Cadaverine", 32 + 175, new short[] { 100, 70, 30, 100 }, true);
Putrescine = FluidUtils
- .generateFluidNoPrefix("putrescine", "Putrescine", 32 + 175, new short[] { 100, 70, 30, 100 }, true);
+ .generateFluidNoPrefix("putrescine", "Putrescine", 32 + 175, new short[] { 100, 70, 30, 100 }, true);
// Create 2-Ethylanthraquinone
// 2-Ethylanthraquinone is prepared from the reaction of phthalic anhydride and ethylbenzene
Ethylanthraquinone2 = FluidUtils.generateFluidNonMolten(
- "2Ethylanthraquinone",
- "2-Ethylanthraquinone",
- 415,
- new short[] { 227, 255, 159, 100 },
- null,
- null);
+ "2Ethylanthraquinone",
+ "2-Ethylanthraquinone",
+ 415,
+ new short[] { 227, 255, 159, 100 },
+ null,
+ null);
// Create 2-Ethylanthrahydroquinone
// Palladium plate + Hydrogen(250) + 2-Ethylanthraquinone(500) = 600 Ethylanthrahydroquinone
Ethylanthrahydroquinone2 = FluidUtils.generateFluidNonMolten(
- "2Ethylanthrahydroquinone",
- "2-Ethylanthrahydroquinone",
- 415,
- new short[] { 207, 225, 129, 100 },
- null,
- null);
+ "2Ethylanthrahydroquinone",
+ "2-Ethylanthrahydroquinone",
+ 415,
+ new short[] { 207, 225, 129, 100 },
+ null,
+ null);
// Create Hydrogen Peroxide
// Compressed Air(1500) + Ethylanthrahydroquinone(500) + Anthracene(5) = 450 Ethylanthraquinone && 200 Peroxide
Hydrogen_Peroxide = FluidUtils.generateFluidNonMolten(
- "HydrogenPeroxide",
- "Hydrogen Peroxide",
- 150,
- new short[] { 210, 255, 255, 100 },
- null,
- null);
+ "HydrogenPeroxide",
+ "Hydrogen Peroxide",
+ 150,
+ new short[] { 210, 255, 255, 100 },
+ null,
+ null);
// Lithium Hydroperoxide - LiOH + H2O2 → LiOOH + 2 H2O
// ItemUtils.generateSpecialUseDusts("LithiumHydroperoxide", "Lithium Hydroperoxide", "HLiO2",
@@ -326,15 +322,15 @@ public class GenericChem extends ItemPackage {
// v - Dehydrate
// Lithium Peroxide - 2 LiOOH → Li2O2 + H2O2 + 2 H2O
Lithium_Peroxide = FluidUtils.generateFluidNonMolten(
- "LithiumPeroxide",
- "Lithium Peroxide",
- 446,
- new short[] { 135, 135, 135, 100 },
- null,
- null);
+ "LithiumPeroxide",
+ "Lithium Peroxide",
+ 446,
+ new short[] { 135, 135, 135, 100 },
+ null,
+ null);
Carbon_Disulfide = FluidUtils
- .generateFluidNoPrefix("CarbonDisulfide", "Carbon Disulfide", 350, new short[] { 175, 175, 175, 100 });
+ .generateFluidNoPrefix("CarbonDisulfide", "Carbon Disulfide", 350, new short[] { 175, 175, 175, 100 });
}
@Override
@@ -387,89 +383,90 @@ public class GenericChem extends ItemPackage {
private void recipeSodiumEthoxide() {
// C2H5OH + Na → C2H5ONa + H
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedCircuit(16), ELEMENT.getInstance().SODIUM.getDust(1) },
- new FluidStack[] { Materials.Ethanol.getFluid(1000) },
- new ItemStack[] { ItemUtils.getSimpleStack(mSodiumEthoxide, 9) },
- new FluidStack[] { ELEMENT.getInstance().HYDROGEN.getFluidStack(1000) },
- 20 * 20,
- 120,
- 2);
+ new ItemStack[] { CI.getNumberedCircuit(16), ELEMENT.getInstance().SODIUM.getDust(1) },
+ new FluidStack[] { Materials.Ethanol.getFluid(1000) },
+ new ItemStack[] { ItemUtils.getSimpleStack(mSodiumEthoxide, 9) },
+ new FluidStack[] { ELEMENT.getInstance().HYDROGEN.getFluidStack(1000) },
+ 20 * 20,
+ 120,
+ 2);
}
private void recipePotassiumHydroxide() {
// Ca(OH)2 + K2O + CO2 → CaCO3 + 2 KOH
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedCircuit(18), Materials.Potash.getDust(3),
- ItemUtils.getItemStackOfAmountFromOreDict("dustCalciumHydroxide", 5), },
- new FluidStack[] { Materials.CarbonDioxide.getGas(1000) },
- new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustCalciumCarbonate", 5),
- ItemUtils.getSimpleStack(mPotassiumHydroxide, 6) },
- new FluidStack[] {},
- 20 * 30,
- 120,
- 2);
+ new ItemStack[] { CI.getNumberedCircuit(18), Materials.Potash.getDust(3),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustCalciumHydroxide", 5), },
+ new FluidStack[] { Materials.CarbonDioxide.getGas(1000) },
+ new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustCalciumCarbonate", 5),
+ ItemUtils.getSimpleStack(mPotassiumHydroxide, 6) },
+ new FluidStack[] {},
+ 20 * 30,
+ 120,
+ 2);
}
private void recipeEthylXanthates() {
// Potassium ethyl xanthate - CH3CH2OH + CS2 + KOH → C3H5KOS2 + H2O
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedCircuit(17), ItemUtils.getSimpleStack(mPotassiumHydroxide, 3), },
- new FluidStack[] { Materials.Ethanol.getFluid(1000),
- FluidUtils.getFluidStack(Carbon_Disulfide, 1000), },
- new ItemStack[] { ItemUtils.getSimpleStack(mPotassiumEthylXanthate, 12) },
- new FluidStack[] { FluidUtils.getWater(1000) },
- 20 * 60,
- 120,
- 4);
+ new ItemStack[] { CI.getNumberedCircuit(17), ItemUtils.getSimpleStack(mPotassiumHydroxide, 3), },
+ new FluidStack[] { Materials.Ethanol.getFluid(1000), FluidUtils.getFluidStack(Carbon_Disulfide, 1000), },
+ new ItemStack[] { ItemUtils.getSimpleStack(mPotassiumEthylXanthate, 12) },
+ new FluidStack[] { FluidUtils.getWater(1000) },
+ 20 * 60,
+ 120,
+ 4);
// Sodium ethyl xanthate - CH3CH2ONa + CS2 → CH3CH2OCS2Na
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedCircuit(17), ItemUtils.getSimpleStack(mSodiumEthoxide, 9) },
- new FluidStack[] { FluidUtils.getFluidStack(Carbon_Disulfide, 1000), },
- new ItemStack[] { ItemUtils.getSimpleStack(mSodiumEthylXanthate, 12) },
- new FluidStack[] {},
- 20 * 60,
- 120,
- 4);
+ new ItemStack[] { CI.getNumberedCircuit(17), ItemUtils.getSimpleStack(mSodiumEthoxide, 9) },
+ new FluidStack[] { FluidUtils.getFluidStack(Carbon_Disulfide, 1000), },
+ new ItemStack[] { ItemUtils.getSimpleStack(mSodiumEthylXanthate, 12) },
+ new FluidStack[] {},
+ 20 * 60,
+ 120,
+ 4);
}
private void recipeCarbonDisulfide() {
GT_Values.RA.stdBuilder()
- .itemInputs(
- ItemUtils.getItemStackOfAmountFromOreDict("fuelCoke", 8),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 16L))
- .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 1L))
- .fluidOutputs(FluidUtils.getFluidStack(Carbon_Disulfide, 4000)).duration(10 * MINUTES)
- .eut(TierEU.RECIPE_LV).metadata(COIL_HEAT, 1500).addTo(blastFurnaceRecipes);
+ .itemInputs(
+ ItemUtils.getItemStackOfAmountFromOreDict("fuelCoke", 8),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 16L))
+ .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 1L))
+ .fluidOutputs(FluidUtils.getFluidStack(Carbon_Disulfide, 4000))
+ .duration(10 * MINUTES)
+ .eut(TierEU.RECIPE_LV)
+ .metadata(COIL_HEAT, 1500)
+ .addTo(blastFurnaceRecipes);
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedCircuit(20), ItemUtils.getSimpleStack(mBrownCatalyst, 0),
- ItemUtils.getItemStackOfAmountFromOreDict("dustSulfur", 4) },
- new FluidStack[] { FluidUtils.getFluidStack(CoalTar.Coal_Gas, 1000), },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(Carbon_Disulfide, 2000) },
- 20 * 60 * 5,
- 30,
- 2);
+ new ItemStack[] { CI.getNumberedCircuit(20), ItemUtils.getSimpleStack(mBrownCatalyst, 0),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustSulfur", 4) },
+ new FluidStack[] { FluidUtils.getFluidStack(CoalTar.Coal_Gas, 1000), },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(Carbon_Disulfide, 2000) },
+ 20 * 60 * 5,
+ 30,
+ 2);
}
private void recipeMutatedLivingSolder() {
// Endgame soldering alloy meant for the bioware circuit line and beyond.
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { ItemUtils.getSimpleStack(GenericChem.mInfiniteMutationCatalyst, 0),
- ItemList.Circuit_Chip_Biocell.get(64), ItemList.Gravistar.get(8),
- Materials.InfinityCatalyst.getDust(2) },
- new FluidStack[] { FluidUtils.getFluidStack("plasma.tin", 18000),
- FluidUtils.getFluidStack("plasma.bismuth", 18000),
- FluidUtils.getFluidStack("cryotheum", 4000) },
- new ItemStack[] {},
- new FluidStack[] { MISC_MATERIALS.MUTATED_LIVING_SOLDER.getFluidStack(144 * 280) },
- 20 * 800,
- 3842160,
- 7);
+ new ItemStack[] { ItemUtils.getSimpleStack(GenericChem.mInfiniteMutationCatalyst, 0),
+ ItemList.Circuit_Chip_Biocell.get(64), ItemList.Gravistar.get(8),
+ Materials.InfinityCatalyst.getDust(2) },
+ new FluidStack[] { FluidUtils.getFluidStack("plasma.tin", 18000),
+ FluidUtils.getFluidStack("plasma.bismuth", 18000), FluidUtils.getFluidStack("cryotheum", 4000) },
+ new ItemStack[] {},
+ new FluidStack[] { MISC_MATERIALS.MUTATED_LIVING_SOLDER.getFluidStack(144 * 280) },
+ 20 * 800,
+ 3842160,
+ 7);
}
private static void registerFuels() {
@@ -477,289 +474,315 @@ public class GenericChem extends ItemPackage {
// Burnables
// Gas Fuels
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getItemStackOfAmountFromOreDict("cellNitrobenzene", 1))
- .metadata(FUEL_VALUE, 1600).metadata(FUEL_TYPE, 1).duration(0).eut(0).addTo(GT_RecipeConstants.Fuel);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getItemStackOfAmountFromOreDict("cellNitrobenzene", 1))
+ .metadata(FUEL_VALUE, 1600)
+ .metadata(FUEL_TYPE, 1)
+ .duration(0)
+ .eut(0)
+ .addTo(GT_RecipeConstants.Fuel);
}
private void recipeGrindingBallAlumina() {
GT_Values.RA.stdBuilder()
- .itemInputs(
- ItemUtils.getSimpleStack(AgriculturalChem.mAlumina, 64),
- GT_Utility.getIntegratedCircuit(10))
- .itemOutputs(ItemUtils.getSimpleStack(mMillingBallAlumina, 8))
- .fluidInputs(FluidUtils.getFluidStack(GenericChem.Aniline, 4000)).duration(3 * MINUTES)
- .eut(TierEU.RECIPE_HV).addTo(assemblerRecipes);
+ .itemInputs(ItemUtils.getSimpleStack(AgriculturalChem.mAlumina, 64), GT_Utility.getIntegratedCircuit(10))
+ .itemOutputs(ItemUtils.getSimpleStack(mMillingBallAlumina, 8))
+ .fluidInputs(FluidUtils.getFluidStack(GenericChem.Aniline, 4000))
+ .duration(3 * MINUTES)
+ .eut(TierEU.RECIPE_HV)
+ .addTo(assemblerRecipes);
}
private void recipeGrindingBallSoapstone() {
GT_Values.RA.stdBuilder()
- .itemInputs(
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Soapstone, 32L),
- GT_Utility.getIntegratedCircuit(10))
- .itemOutputs(ItemUtils.getSimpleStack(mMillingBallSoapstone, 8))
- .fluidInputs(FluidUtils.getFluidStack(AgrichemFluids.mLiquidResin, 2500)).duration(2 * MINUTES)
- .eut(TierEU.RECIPE_HV).addTo(assemblerRecipes);
+ .itemInputs(
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Soapstone, 32L),
+ GT_Utility.getIntegratedCircuit(10))
+ .itemOutputs(ItemUtils.getSimpleStack(mMillingBallSoapstone, 8))
+ .fluidInputs(FluidUtils.getFluidStack(AgrichemFluids.mLiquidResin, 2500))
+ .duration(2 * MINUTES)
+ .eut(TierEU.RECIPE_HV)
+ .addTo(assemblerRecipes);
}
private void recipeCyclohexane() {
// C6H6 + 6H = C6H12
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getTierTwoChip(), ItemUtils.getSimpleStack(mBrownCatalyst, 0) },
- new FluidStack[] { FluidUtils.getFluidStack(Benzene, 1000),
- FluidUtils.getFluidStack("hydrogen", 6000) },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(Cyclohexane, 1000), },
- 20 * 120,
- 120,
- 2);
+ new ItemStack[] { getTierTwoChip(), ItemUtils.getSimpleStack(mBrownCatalyst, 0) },
+ new FluidStack[] { FluidUtils.getFluidStack(Benzene, 1000), FluidUtils.getFluidStack("hydrogen", 6000) },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(Cyclohexane, 1000), },
+ 20 * 120,
+ 120,
+ 2);
}
private void recipeCyclohexanone() {
// C6H12 + 2O(Air) = C6H10O + H2O
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getTierTwoChip(), ItemUtils.getSimpleStack(mBlueCatalyst, 0) },
- new FluidStack[] { FluidUtils.getFluidStack(Cyclohexane, 1000), FluidUtils.getFluidStack("air", 4000) },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(Cyclohexanone, 1000), },
- 20 * 120,
- 120,
- 2);
+ new ItemStack[] { getTierTwoChip(), ItemUtils.getSimpleStack(mBlueCatalyst, 0) },
+ new FluidStack[] { FluidUtils.getFluidStack(Cyclohexane, 1000), FluidUtils.getFluidStack("air", 4000) },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(Cyclohexanone, 1000), },
+ 20 * 120,
+ 120,
+ 2);
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getTierTwoChip(), },
- new FluidStack[] { FluidUtils.getFluidStack(Cyclohexane, 1000),
- FluidUtils.getFluidStack("oxygen", 2000) },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(Cyclohexanone, 1000), },
- 20 * 120,
- 120,
- 2);
+ new ItemStack[] { getTierTwoChip(), },
+ new FluidStack[] { FluidUtils.getFluidStack(Cyclohexane, 1000), FluidUtils.getFluidStack("oxygen", 2000) },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(Cyclohexanone, 1000), },
+ 20 * 120,
+ 120,
+ 2);
}
private void recipeCatalystRed() {
// Assembler Recipe
GT_Values.RA.stdBuilder()
- .itemInputs(
- getTierOneChip(),
- CI.getEmptyCatalyst(10),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 2L),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Copper, 2L))
- .itemOutputs(ItemUtils.getSimpleStack(mRedCatalyst, 10)).duration(20 * SECONDS).eut(TierEU.RECIPE_LV)
- .addTo(assemblerRecipes);
+ .itemInputs(
+ getTierOneChip(),
+ CI.getEmptyCatalyst(10),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 2L),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Copper, 2L))
+ .itemOutputs(ItemUtils.getSimpleStack(mRedCatalyst, 10))
+ .duration(20 * SECONDS)
+ .eut(TierEU.RECIPE_LV)
+ .addTo(assemblerRecipes);
}
private void recipeCatalystYellow() {
// Assembler Recipe
GT_Values.RA.stdBuilder()
- .itemInputs(
- getTierThreeChip(),
- CI.getEmptyCatalyst(10),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Tungsten, 4L),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Nickel, 4L))
- .itemOutputs(ItemUtils.getSimpleStack(mYellowCatalyst, 10)).duration(1 * MINUTES).eut(TierEU.RECIPE_EV)
- .addTo(assemblerRecipes);
+ .itemInputs(
+ getTierThreeChip(),
+ CI.getEmptyCatalyst(10),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Tungsten, 4L),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Nickel, 4L))
+ .itemOutputs(ItemUtils.getSimpleStack(mYellowCatalyst, 10))
+ .duration(1 * MINUTES)
+ .eut(TierEU.RECIPE_EV)
+ .addTo(assemblerRecipes);
}
private void recipeCatalystBlue() {
// Assembler Recipe
GT_Values.RA.stdBuilder()
- .itemInputs(
- getTierTwoChip(),
- CI.getEmptyCatalyst(10),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cobalt, 3L),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Titanium, 3L))
- .itemOutputs(ItemUtils.getSimpleStack(mBlueCatalyst, 10)).duration(40 * SECONDS).eut(TierEU.RECIPE_HV)
- .addTo(assemblerRecipes);
+ .itemInputs(
+ getTierTwoChip(),
+ CI.getEmptyCatalyst(10),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cobalt, 3L),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Titanium, 3L))
+ .itemOutputs(ItemUtils.getSimpleStack(mBlueCatalyst, 10))
+ .duration(40 * SECONDS)
+ .eut(TierEU.RECIPE_HV)
+ .addTo(assemblerRecipes);
}
private void recipeCatalystOrange() {
// Assembler Recipe
GT_Values.RA.stdBuilder()
- .itemInputs(
- getTierTwoChip(),
- CI.getEmptyCatalyst(10),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Vanadium, 5L),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Palladium, 5L))
- .itemOutputs(ItemUtils.getSimpleStack(mOrangeCatalyst, 10)).duration(40 * SECONDS).eut(TierEU.RECIPE_HV)
- .addTo(assemblerRecipes);
+ .itemInputs(
+ getTierTwoChip(),
+ CI.getEmptyCatalyst(10),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Vanadium, 5L),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Palladium, 5L))
+ .itemOutputs(ItemUtils.getSimpleStack(mOrangeCatalyst, 10))
+ .duration(40 * SECONDS)
+ .eut(TierEU.RECIPE_HV)
+ .addTo(assemblerRecipes);
}
private void recipeCatalystPurple() {
// Assembler Recipe
GT_Values.RA.stdBuilder()
- .itemInputs(
- getTierFourChip(),
- CI.getEmptyCatalyst(10),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iridium, 6L),
- ELEMENT.getInstance().RUTHENIUM.getDust(6))
- .itemOutputs(ItemUtils.getSimpleStack(mPurpleCatalyst, 10)).duration(2 * MINUTES).eut(TierEU.RECIPE_IV)
- .addTo(assemblerRecipes);
+ .itemInputs(
+ getTierFourChip(),
+ CI.getEmptyCatalyst(10),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iridium, 6L),
+ ELEMENT.getInstance().RUTHENIUM.getDust(6))
+ .itemOutputs(ItemUtils.getSimpleStack(mPurpleCatalyst, 10))
+ .duration(2 * MINUTES)
+ .eut(TierEU.RECIPE_IV)
+ .addTo(assemblerRecipes);
}
private void recipeCatalystBrown() {
// Assembler Recipe
GT_Values.RA.stdBuilder()
- .itemInputs(
- getTierOneChip(),
- CI.getEmptyCatalyst(10),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Nickel, 4L),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminium, 4L))
- .itemOutputs(ItemUtils.getSimpleStack(mBrownCatalyst, 10)).duration(15 * SECONDS).eut(TierEU.RECIPE_LV)
- .addTo(assemblerRecipes);
+ .itemInputs(
+ getTierOneChip(),
+ CI.getEmptyCatalyst(10),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Nickel, 4L),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminium, 4L))
+ .itemOutputs(ItemUtils.getSimpleStack(mBrownCatalyst, 10))
+ .duration(15 * SECONDS)
+ .eut(TierEU.RECIPE_LV)
+ .addTo(assemblerRecipes);
}
private void recipeCatalystPink() {
// Assembler Recipe
GT_Values.RA.stdBuilder()
- .itemInputs(
- getTierThreeChip(),
- CI.getEmptyCatalyst(10),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Platinum, 4L),
- ELEMENT.getInstance().RHODIUM.getDust(4))
- .itemOutputs(ItemUtils.getSimpleStack(mPinkCatalyst, 10)).duration(30 * SECONDS).eut(TierEU.RECIPE_EV)
- .addTo(assemblerRecipes);
+ .itemInputs(
+ getTierThreeChip(),
+ CI.getEmptyCatalyst(10),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Platinum, 4L),
+ ELEMENT.getInstance().RHODIUM.getDust(4))
+ .itemOutputs(ItemUtils.getSimpleStack(mPinkCatalyst, 10))
+ .duration(30 * SECONDS)
+ .eut(TierEU.RECIPE_EV)
+ .addTo(assemblerRecipes);
}
private void recipeCatalystFormaldehyde() {
// Assembler Recipe
GT_Values.RA.stdBuilder()
- .itemInputs(
- getTierThreeChip(),
- CI.getEmptyCatalyst(4),
- ItemUtils.getSimpleStack(RocketFuels.Formaldehyde_Catalyst_Dust, 8))
- .itemOutputs(ItemUtils.getSimpleStack(mFormaldehydeCatalyst, 4)).duration(30 * SECONDS)
- .eut(TierEU.RECIPE_HV / 2).addTo(assemblerRecipes);
+ .itemInputs(
+ getTierThreeChip(),
+ CI.getEmptyCatalyst(4),
+ ItemUtils.getSimpleStack(RocketFuels.Formaldehyde_Catalyst_Dust, 8))
+ .itemOutputs(ItemUtils.getSimpleStack(mFormaldehydeCatalyst, 4))
+ .duration(30 * SECONDS)
+ .eut(TierEU.RECIPE_HV / 2)
+ .addTo(assemblerRecipes);
}
private void recipeCatalystSolidAcid() {
// Assembler Recipe
GT_Values.RA.stdBuilder()
- .itemInputs(
- getTierThreeChip(),
- CI.getEmptyCatalyst(5),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lapis, 2L))
- .itemOutputs(ItemUtils.getSimpleStack(GenericChem.mSolidAcidCatalyst, 5))
- .fluidInputs(MISC_MATERIALS.SOLID_ACID_MIXTURE.getFluidStack(1000)).duration(30 * SECONDS)
- .eut(TierEU.RECIPE_EV).addTo(assemblerRecipes);
+ .itemInputs(
+ getTierThreeChip(),
+ CI.getEmptyCatalyst(5),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lapis, 2L))
+ .itemOutputs(ItemUtils.getSimpleStack(GenericChem.mSolidAcidCatalyst, 5))
+ .fluidInputs(MISC_MATERIALS.SOLID_ACID_MIXTURE.getFluidStack(1000))
+ .duration(30 * SECONDS)
+ .eut(TierEU.RECIPE_EV)
+ .addTo(assemblerRecipes);
}
private void recipeCatalystInfiniteMutation() {
// Assembler Recipe
GT_Values.RA.stdBuilder()
- .itemInputs(
- getTierThreeChip(),
- CI.getEmptyCatalyst(5),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Infinity, 1L),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadria, 10L))
- .itemOutputs(ItemUtils.getSimpleStack(GenericChem.mInfiniteMutationCatalyst, 5)).duration(5 * SECONDS)
- .eut(TierEU.RECIPE_UHV).addTo(assemblerRecipes);
+ .itemInputs(
+ getTierThreeChip(),
+ CI.getEmptyCatalyst(5),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Infinity, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Naquadria, 10L))
+ .itemOutputs(ItemUtils.getSimpleStack(GenericChem.mInfiniteMutationCatalyst, 5))
+ .duration(5 * SECONDS)
+ .eut(TierEU.RECIPE_UHV)
+ .addTo(assemblerRecipes);
}
private void recipeCadaverineAndPutrescine() {
// Basic Recipe
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getTierOneChip(), ItemUtils.getSimpleStack(Items.rotten_flesh, 64) },
- new FluidStack[] { FluidUtils.getHotWater(2000) },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(Cadaverine, 250),
- FluidUtils.getFluidStack(Putrescine, 250), },
- 20 * 120,
- 120,
- 1);
+ new ItemStack[] { getTierOneChip(), ItemUtils.getSimpleStack(Items.rotten_flesh, 64) },
+ new FluidStack[] { FluidUtils.getHotWater(2000) },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(Cadaverine, 250), FluidUtils.getFluidStack(Putrescine, 250), },
+ 20 * 120,
+ 120,
+ 1);
// Advanced Recipe
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getTierTwoChip(), ItemUtils.getSimpleStack(Items.rotten_flesh, 128),
- ItemUtils.simpleMetaStack(AgriculturalChem.mAgrichemItem1, 8, 32) },
- new FluidStack[] { FluidUtils.getHotWater(3000) },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(Cadaverine, 750),
- FluidUtils.getFluidStack(Putrescine, 750), },
- 20 * 120,
- 240,
- 2);
+ new ItemStack[] { getTierTwoChip(), ItemUtils.getSimpleStack(Items.rotten_flesh, 128),
+ ItemUtils.simpleMetaStack(AgriculturalChem.mAgrichemItem1, 8, 32) },
+ new FluidStack[] { FluidUtils.getHotWater(3000) },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(Cadaverine, 750), FluidUtils.getFluidStack(Putrescine, 750), },
+ 20 * 120,
+ 240,
+ 2);
}
private void recipeAniline() {
// C6H5NO2 + 6H = C6H7N + 2H2O
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getTierThreeChip(), ItemUtils.getSimpleStack(mBlueCatalyst, 0) },
- new FluidStack[] { FluidUtils.getFluidStack(NitroBenzene, 1000),
- FluidUtils.getFluidStack("hydrogen", 6000) },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(Aniline, 1000), },
- 20 * 30,
- 500,
- 3);
+ new ItemStack[] { getTierThreeChip(), ItemUtils.getSimpleStack(mBlueCatalyst, 0) },
+ new FluidStack[] { FluidUtils.getFluidStack(NitroBenzene, 1000),
+ FluidUtils.getFluidStack("hydrogen", 6000) },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(Aniline, 1000), },
+ 20 * 30,
+ 500,
+ 3);
}
private void recipeNitroBenzene() {
// C6H6 + HNO3 =H2SO4= C6H5NO2 +H2O
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getTierThreeChip(), },
- new FluidStack[] { FluidUtils.getFluidStack(Benzene, 5000),
- FluidUtils.getFluidStack("sulfuricacid", 1000), FluidUtils.getFluidStack("nitricacid", 5000),
- FluidUtils.getDistilledWater(10000) },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(NitroBenzene, 5000), },
- 20 * 30,
- 500,
- 4);
+ new ItemStack[] { getTierThreeChip(), },
+ new FluidStack[] { FluidUtils.getFluidStack(Benzene, 5000), FluidUtils.getFluidStack("sulfuricacid", 1000),
+ FluidUtils.getFluidStack("nitricacid", 5000), FluidUtils.getDistilledWater(10000) },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(NitroBenzene, 5000), },
+ 20 * 30,
+ 500,
+ 4);
}
private void recipe2Ethylanthraquinone() {
// C6H4(CO)2O + C6H5CH2CH3 = C6H4(CO)2C6H3CH2CH3 + H2O
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedCircuit(4),
- ItemUtils.getItemStackOfAmountFromOreDict("dustPhthalicAnhydride", 15), },
- new FluidStack[] { FluidUtils.getFluidStack(CoalTar.Ethylbenzene, 1000), },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(Ethylanthraquinone2, 1000), },
- 20 * 15,
- 120,
- 2);
+ new ItemStack[] { CI.getNumberedCircuit(4),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustPhthalicAnhydride", 15), },
+ new FluidStack[] { FluidUtils.getFluidStack(CoalTar.Ethylbenzene, 1000), },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(Ethylanthraquinone2, 1000), },
+ 20 * 15,
+ 120,
+ 2);
}
private void recipe2Ethylanthrahydroquinone() {
// C6H4(CO)2C6H3CH2CH3 + 2H = C6H4(COH)2C6H3CH2CH3
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedCircuit(4), ItemUtils.getSimpleStack(mOrangeCatalyst, 0), },
- new FluidStack[] { FluidUtils.getFluidStack(Ethylanthraquinone2, 1000),
- FluidUtils.getFluidStack("hydrogen", 2000), },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(Ethylanthrahydroquinone2, 1000), },
- 20 * 40,
- 120,
- 2);
+ new ItemStack[] { CI.getNumberedCircuit(4), ItemUtils.getSimpleStack(mOrangeCatalyst, 0), },
+ new FluidStack[] { FluidUtils.getFluidStack(Ethylanthraquinone2, 1000),
+ FluidUtils.getFluidStack("hydrogen", 2000), },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(Ethylanthrahydroquinone2, 1000), },
+ 20 * 40,
+ 120,
+ 2);
}
private void recipeLithiumPeroxide() {
// 2HLiO2 = Li2O2 + H2O2
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getItemStackOfAmountFromOreDict("dustLithiumHydroperoxide", 8))
- .fluidOutputs(FluidUtils.getFluidStack("fluid.hydrogenperoxide", 1000))
- .itemOutputs(ItemUtils.getItemStackOfAmountFromOreDict("dustLithiumPeroxide", 4))
- .duration(100 * SECONDS).eut(120).noOptimize().addTo(chemicalDehydratorRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getItemStackOfAmountFromOreDict("dustLithiumHydroperoxide", 8))
+ .fluidOutputs(FluidUtils.getFluidStack("fluid.hydrogenperoxide", 1000))
+ .itemOutputs(ItemUtils.getItemStackOfAmountFromOreDict("dustLithiumPeroxide", 4))
+ .duration(100 * SECONDS)
+ .eut(120)
+ .noOptimize()
+ .addTo(chemicalDehydratorRecipes);
}
private void recipeLithiumHydroperoxide() {
// LiOH + H2O2 = HLiO2 + H2O
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedCircuit(4),
- ItemUtils.getItemStackOfAmountFromOreDict("dustLithiumHydroxide", 3), },
- new FluidStack[] { FluidUtils.getFluidStack("fluid.hydrogenperoxide", 1000), },
- new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustLithiumHydroperoxide", 4), },
- new FluidStack[] {},
- 20 * 30,
- 240,
- 1);
+ new ItemStack[] { CI.getNumberedCircuit(4),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustLithiumHydroxide", 3), },
+ new FluidStack[] { FluidUtils.getFluidStack("fluid.hydrogenperoxide", 1000), },
+ new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustLithiumHydroperoxide", 4), },
+ new FluidStack[] {},
+ 20 * 30,
+ 240,
+ 1);
}
@@ -767,28 +790,27 @@ public class GenericChem extends ItemPackage {
// C6H4(COH)2C6H3CH2CH3 + 2O =(C6H4CH)2= H2O2 + C6H4(CO)2C6H3CH2CH3
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedCircuit(4), },
- new FluidStack[] { FluidUtils.getFluidStack("air", 20000),
- FluidUtils.getFluidStack(Ethylanthrahydroquinone2, 5000),
- FluidUtils.getFluidStack("fluid.anthracene", 50), },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(Ethylanthraquinone2, 5000),
- FluidUtils.getFluidStack("fluid.hydrogenperoxide", 5000), },
- 20 * 30,
- 240,
- 1);
+ new ItemStack[] { CI.getNumberedCircuit(4), },
+ new FluidStack[] { FluidUtils.getFluidStack("air", 20000),
+ FluidUtils.getFluidStack(Ethylanthrahydroquinone2, 5000),
+ FluidUtils.getFluidStack("fluid.anthracene", 50), },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(Ethylanthraquinone2, 5000),
+ FluidUtils.getFluidStack("fluid.hydrogenperoxide", 5000), },
+ 20 * 30,
+ 240,
+ 1);
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedCircuit(4), },
- new FluidStack[] { Materials.Oxygen.getGas(10000),
- FluidUtils.getFluidStack(Ethylanthrahydroquinone2, 5000),
- FluidUtils.getFluidStack("fluid.anthracene", 50), },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(Ethylanthraquinone2, 5000),
- FluidUtils.getFluidStack("fluid.hydrogenperoxide", 5000), },
- 20 * 5,
- 240,
- 1);
+ new ItemStack[] { CI.getNumberedCircuit(4), },
+ new FluidStack[] { Materials.Oxygen.getGas(10000), FluidUtils.getFluidStack(Ethylanthrahydroquinone2, 5000),
+ FluidUtils.getFluidStack("fluid.anthracene", 50), },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(Ethylanthraquinone2, 5000),
+ FluidUtils.getFluidStack("fluid.hydrogenperoxide", 5000), },
+ 20 * 5,
+ 240,
+ 1);
}
@@ -810,130 +832,130 @@ public class GenericChem extends ItemPackage {
private static void recipeAdvancedChip() {
GT_ModHandler.addShapelessCraftingRecipe(
- GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 0L),
- 0,
- new Object[] { OrePrefixes.circuit.get(Materials.Advanced) });
+ GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 0L),
+ 0,
+ new Object[] { OrePrefixes.circuit.get(Materials.Advanced) });
long bits = 0;
BioRecipes.addCraftingRecipe(
- GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 1L, new Object[0]),
- bits,
- new Object[] { "d ", " P ", " ", 'P',
- GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 1L, new Object[0]),
+ bits,
+ new Object[] { "d ", " P ", " ", 'P',
+ GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
BioRecipes.addCraftingRecipe(
- GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 2L, new Object[0]),
- bits,
- new Object[] { " d ", " P ", " ", 'P',
- GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 2L, new Object[0]),
+ bits,
+ new Object[] { " d ", " P ", " ", 'P',
+ GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
BioRecipes.addCraftingRecipe(
- GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 3L, new Object[0]),
- bits,
- new Object[] { " d", " P ", " ", 'P',
- GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 3L, new Object[0]),
+ bits,
+ new Object[] { " d", " P ", " ", 'P',
+ GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
BioRecipes.addCraftingRecipe(
- GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 4L, new Object[0]),
- bits,
- new Object[] { " ", " Pd", " ", 'P',
- GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 4L, new Object[0]),
+ bits,
+ new Object[] { " ", " Pd", " ", 'P',
+ GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
BioRecipes.addCraftingRecipe(
- GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 5L, new Object[0]),
- bits,
- new Object[] { " ", " P ", " d", 'P',
- GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 5L, new Object[0]),
+ bits,
+ new Object[] { " ", " P ", " d", 'P',
+ GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
BioRecipes.addCraftingRecipe(
- GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 6L, new Object[0]),
- bits,
- new Object[] { " ", " P ", " d ", 'P',
- GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 6L, new Object[0]),
+ bits,
+ new Object[] { " ", " P ", " d ", 'P',
+ GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
BioRecipes.addCraftingRecipe(
- GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 7L, new Object[0]),
- bits,
- new Object[] { " ", " P ", "d ", 'P',
- GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 7L, new Object[0]),
+ bits,
+ new Object[] { " ", " P ", "d ", 'P',
+ GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
BioRecipes.addCraftingRecipe(
- GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 8L, new Object[0]),
- bits,
- new Object[] { " ", "dP ", " ", 'P',
- GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 8L, new Object[0]),
+ bits,
+ new Object[] { " ", "dP ", " ", 'P',
+ GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
BioRecipes.addCraftingRecipe(
- GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 9L, new Object[0]),
- bits,
- new Object[] { "P d", " ", " ", 'P',
- GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 9L, new Object[0]),
+ bits,
+ new Object[] { "P d", " ", " ", 'P',
+ GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
BioRecipes.addCraftingRecipe(
- GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 10L, new Object[0]),
- bits,
- new Object[] { "P ", " d", " ", 'P',
- GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 10L, new Object[0]),
+ bits,
+ new Object[] { "P ", " d", " ", 'P',
+ GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
BioRecipes.addCraftingRecipe(
- GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 11L, new Object[0]),
- bits,
- new Object[] { "P ", " ", " d", 'P',
- GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 11L, new Object[0]),
+ bits,
+ new Object[] { "P ", " ", " d", 'P',
+ GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
BioRecipes.addCraftingRecipe(
- GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 12L, new Object[0]),
- bits,
- new Object[] { "P ", " ", " d ", 'P',
- GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 12L, new Object[0]),
+ bits,
+ new Object[] { "P ", " ", " d ", 'P',
+ GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
BioRecipes.addCraftingRecipe(
- GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 13L, new Object[0]),
- bits,
- new Object[] { " P", " ", " d", 'P',
- GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 13L, new Object[0]),
+ bits,
+ new Object[] { " P", " ", " d", 'P',
+ GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
BioRecipes.addCraftingRecipe(
- GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 14L, new Object[0]),
- bits,
- new Object[] { " P", " ", " d ", 'P',
- GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 14L, new Object[0]),
+ bits,
+ new Object[] { " P", " ", " d ", 'P',
+ GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
BioRecipes.addCraftingRecipe(
- GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 15L, new Object[0]),
- bits,
- new Object[] { " P", " ", "d ", 'P',
- GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 15L, new Object[0]),
+ bits,
+ new Object[] { " P", " ", "d ", 'P',
+ GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
BioRecipes.addCraftingRecipe(
- GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 16L, new Object[0]),
- bits,
- new Object[] { " P", "d ", " ", 'P',
- GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 16L, new Object[0]),
+ bits,
+ new Object[] { " P", "d ", " ", 'P',
+ GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
BioRecipes.addCraftingRecipe(
- GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 17L, new Object[0]),
- bits,
- new Object[] { " ", " ", "d P", 'P',
- GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 17L, new Object[0]),
+ bits,
+ new Object[] { " ", " ", "d P", 'P',
+ GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
BioRecipes.addCraftingRecipe(
- GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 18L, new Object[0]),
- bits,
- new Object[] { " ", "d ", " P", 'P',
- GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 18L, new Object[0]),
+ bits,
+ new Object[] { " ", "d ", " P", 'P',
+ GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
BioRecipes.addCraftingRecipe(
- GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 19L, new Object[0]),
- bits,
- new Object[] { "d ", " ", " P", 'P',
- GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 19L, new Object[0]),
+ bits,
+ new Object[] { "d ", " ", " P", 'P',
+ GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
BioRecipes.addCraftingRecipe(
- GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 20L, new Object[0]),
- bits,
- new Object[] { " d ", " ", " P", 'P',
- GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 20L, new Object[0]),
+ bits,
+ new Object[] { " d ", " ", " P", 'P',
+ GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
BioRecipes.addCraftingRecipe(
- GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 21L, new Object[0]),
- bits,
- new Object[] { "d ", " ", "P ", 'P',
- GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 21L, new Object[0]),
+ bits,
+ new Object[] { "d ", " ", "P ", 'P',
+ GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
BioRecipes.addCraftingRecipe(
- GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 22L, new Object[0]),
- bits,
- new Object[] { " d ", " ", "P ", 'P',
- GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 22L, new Object[0]),
+ bits,
+ new Object[] { " d ", " ", "P ", 'P',
+ GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
BioRecipes.addCraftingRecipe(
- GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 23L, new Object[0]),
- bits,
- new Object[] { " d", " ", "P ", 'P',
- GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 23L, new Object[0]),
+ bits,
+ new Object[] { " d", " ", "P ", 'P',
+ GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
BioRecipes.addCraftingRecipe(
- GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 24L, new Object[0]),
- bits,
- new Object[] { " ", " d", "P ", 'P',
- GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_T3RecipeSelector.getWithDamage(1L, 24L, new Object[0]),
+ bits,
+ new Object[] { " ", " d", "P ", 'P',
+ GregtechItemList.Circuit_T3RecipeSelector.getWildcard(1L, new Object[0]) });
}
}
diff --git a/src/main/java/gtPlusPlus/core/item/chemistry/IonParticles.java b/src/main/java/gtPlusPlus/core/item/chemistry/IonParticles.java
index 46a595e756..d4f5e832f6 100644
--- a/src/main/java/gtPlusPlus/core/item/chemistry/IonParticles.java
+++ b/src/main/java/gtPlusPlus/core/item/chemistry/IonParticles.java
@@ -113,11 +113,11 @@ public class IonParticles extends BaseItemParticle {
// State not set
if (aCharge == 0) {
list.add(
- EnumChatFormatting.GRAY + "A "
- + MetaToNameMap.get(stack.getItemDamage())
- + " Ion with an "
- + aState
- + " charge state");
+ EnumChatFormatting.GRAY + "A "
+ + MetaToNameMap.get(stack.getItemDamage())
+ + " Ion with an "
+ + aState
+ + " charge state");
} else {
if (aCharge > 0) {
aState = EnumChatFormatting.GREEN + "Positive" + EnumChatFormatting.GRAY;
@@ -126,13 +126,13 @@ public class IonParticles extends BaseItemParticle {
}
list.add(
- EnumChatFormatting.GRAY + "A "
- + MetaToNameMap.get(stack.getItemDamage())
- + " Ion with a "
- + aState
- + " charge state of "
- + aCharge
- + "");
+ EnumChatFormatting.GRAY + "A "
+ + MetaToNameMap.get(stack.getItemDamage())
+ + " Ion with a "
+ + aState
+ + " charge state of "
+ + aCharge
+ + "");
}
super.addInformation(stack, player, list, bool);
}
diff --git a/src/main/java/gtPlusPlus/core/item/chemistry/MilledOreProcessing.java b/src/main/java/gtPlusPlus/core/item/chemistry/MilledOreProcessing.java
index 1eacad3e49..5a848d2616 100644
--- a/src/main/java/gtPlusPlus/core/item/chemistry/MilledOreProcessing.java
+++ b/src/main/java/gtPlusPlus/core/item/chemistry/MilledOreProcessing.java
@@ -116,85 +116,85 @@ public class MilledOreProcessing extends ItemPackage {
short[] aZincFrothRGB = Materials.Sphalerite.mRGBa;
SphaleriteFlotationFroth = FluidUtils.generateFluidNoPrefix(
- "froth.zincflotation",
- "Sphalerite Froth",
- 32 + 175,
- new short[] { aZincFrothRGB[0], aZincFrothRGB[1], aZincFrothRGB[2], 100 },
- true);
+ "froth.zincflotation",
+ "Sphalerite Froth",
+ 32 + 175,
+ new short[] { aZincFrothRGB[0], aZincFrothRGB[1], aZincFrothRGB[2], 100 },
+ true);
short[] aCopperFrothRGB = Materials.Chalcopyrite.mRGBa;
ChalcopyriteFlotationFroth = FluidUtils.generateFluidNoPrefix(
- "froth.copperflotation",
- "Chalcopyrite Froth",
- 32 + 175,
- new short[] { aCopperFrothRGB[0], aCopperFrothRGB[1], aCopperFrothRGB[2], 100 },
- true);
+ "froth.copperflotation",
+ "Chalcopyrite Froth",
+ 32 + 175,
+ new short[] { aCopperFrothRGB[0], aCopperFrothRGB[1], aCopperFrothRGB[2], 100 },
+ true);
short[] aNickelFrothRGB = Materials.Nickel.mRGBa;
NickelFlotationFroth = FluidUtils.generateFluidNoPrefix(
- "froth.nickelflotation",
- "Nickel Froth",
- 32 + 175,
- new short[] { aNickelFrothRGB[0], aNickelFrothRGB[1], aNickelFrothRGB[2], 100 },
- true);
+ "froth.nickelflotation",
+ "Nickel Froth",
+ 32 + 175,
+ new short[] { aNickelFrothRGB[0], aNickelFrothRGB[1], aNickelFrothRGB[2], 100 },
+ true);
short[] aPlatinumFrothRGB = Materials.Platinum.mRGBa;
PlatinumFlotationFroth = FluidUtils.generateFluidNoPrefix(
- "froth.platinumflotation",
- "Platinum Froth",
- 32 + 175,
- new short[] { aPlatinumFrothRGB[0], aPlatinumFrothRGB[1], aPlatinumFrothRGB[2], 100 },
- true);
+ "froth.platinumflotation",
+ "Platinum Froth",
+ 32 + 175,
+ new short[] { aPlatinumFrothRGB[0], aPlatinumFrothRGB[1], aPlatinumFrothRGB[2], 100 },
+ true);
short[] aPentlanditeFrothRGB = Materials.Pentlandite.mRGBa;
PentlanditeFlotationFroth = FluidUtils.generateFluidNoPrefix(
- "froth.pentlanditeflotation",
- "Pentlandite Froth",
- 32 + 175,
- new short[] { aPentlanditeFrothRGB[0], aPentlanditeFrothRGB[1], aPentlanditeFrothRGB[2], 100 },
- true);
+ "froth.pentlanditeflotation",
+ "Pentlandite Froth",
+ 32 + 175,
+ new short[] { aPentlanditeFrothRGB[0], aPentlanditeFrothRGB[1], aPentlanditeFrothRGB[2], 100 },
+ true);
short[] aRedstoneFrothRGB = Materials.Redstone.mRGBa;
RedstoneFlotationFroth = FluidUtils.generateFluidNoPrefix(
- "froth.redstoneflotation",
- "Redstone Froth",
- 32 + 175,
- new short[] { aRedstoneFrothRGB[0], aRedstoneFrothRGB[1], aRedstoneFrothRGB[2], 100 },
- true);
+ "froth.redstoneflotation",
+ "Redstone Froth",
+ 32 + 175,
+ new short[] { aRedstoneFrothRGB[0], aRedstoneFrothRGB[1], aRedstoneFrothRGB[2], 100 },
+ true);
short[] aSpessartineFrothRGB = Materials.Spessartine.mRGBa;
SpessartineFlotationFroth = FluidUtils.generateFluidNoPrefix(
- "froth.spessartineflotation",
- "Spessartine Froth",
- 32 + 175,
- new short[] { aSpessartineFrothRGB[0], aSpessartineFrothRGB[1], aSpessartineFrothRGB[2], 100 },
- true);
+ "froth.spessartineflotation",
+ "Spessartine Froth",
+ 32 + 175,
+ new short[] { aSpessartineFrothRGB[0], aSpessartineFrothRGB[1], aSpessartineFrothRGB[2], 100 },
+ true);
short[] aGrossularFrothRGB = Materials.Grossular.mRGBa;
GrossularFlotationFroth = FluidUtils.generateFluidNoPrefix(
- "froth.grossularflotation",
- "Grossular Froth",
- 32 + 175,
- new short[] { aGrossularFrothRGB[0], aGrossularFrothRGB[1], aGrossularFrothRGB[2], 100 },
- true);
+ "froth.grossularflotation",
+ "Grossular Froth",
+ 32 + 175,
+ new short[] { aGrossularFrothRGB[0], aGrossularFrothRGB[1], aGrossularFrothRGB[2], 100 },
+ true);
short[] aAlmandineFrothRGB = Materials.Almandine.mRGBa;
AlmandineFlotationFroth = FluidUtils.generateFluidNoPrefix(
- "froth.almandineflotation",
- "Almandine Froth",
- 32 + 175,
- new short[] { aAlmandineFrothRGB[0], aAlmandineFrothRGB[1], aAlmandineFrothRGB[2], 100 },
- true);
+ "froth.almandineflotation",
+ "Almandine Froth",
+ 32 + 175,
+ new short[] { aAlmandineFrothRGB[0], aAlmandineFrothRGB[1], aAlmandineFrothRGB[2], 100 },
+ true);
short[] aPyropeFrothRGB = Materials.Pyrope.mRGBa;
PyropeFlotationFroth = FluidUtils.generateFluidNoPrefix(
- "froth.pyropeflotation",
- "Pyrope Froth",
- 32 + 175,
- new short[] { aPyropeFrothRGB[0], aPyropeFrothRGB[1], aPyropeFrothRGB[2], 100 },
- true);
+ "froth.pyropeflotation",
+ "Pyrope Froth",
+ 32 + 175,
+ new short[] { aPyropeFrothRGB[0], aPyropeFrothRGB[1], aPyropeFrothRGB[2], 100 },
+ true);
short[] aMonaziteFrothRGB = Materials.Monazite.mRGBa;
MonaziteFlotationFroth = FluidUtils.generateFluidNoPrefix(
- "froth.Monaziteflotation",
- "Monazite Froth",
- 32 + 175,
- new short[] { aMonaziteFrothRGB[0], aMonaziteFrothRGB[1], aMonaziteFrothRGB[2], 100 },
- true);
+ "froth.Monaziteflotation",
+ "Monazite Froth",
+ 32 + 175,
+ new short[] { aMonaziteFrothRGB[0], aMonaziteFrothRGB[1], aMonaziteFrothRGB[2], 100 },
+ true);
PineOil = FluidUtils
- .generateFluidNoPrefix("pineoil", "Pine Oil", 32 + 175, new short[] { 250, 200, 60, 100 }, true);
+ .generateFluidNoPrefix("pineoil", "Pine Oil", 32 + 175, new short[] { 250, 200, 60, 100 }, true);
}
public MilledOreProcessing() {
@@ -210,129 +210,129 @@ public class MilledOreProcessing extends ItemPackage {
// milledSphalerite
registerOreDataForMilledType(
- SphaleriteFlotationFroth,
- ELEMENT.getInstance().ZINC,
- 180,
- ELEMENT.getInstance().IRON,
- 120,
- ELEMENT.getInstance().INDIUM,
- 64,
- ELEMENT.getInstance().GERMANIUM,
- 15);
+ SphaleriteFlotationFroth,
+ ELEMENT.getInstance().ZINC,
+ 180,
+ ELEMENT.getInstance().IRON,
+ 120,
+ ELEMENT.getInstance().INDIUM,
+ 64,
+ ELEMENT.getInstance().GERMANIUM,
+ 15);
// milledChalcopyrite
registerOreDataForMilledType(
- ChalcopyriteFlotationFroth,
- ELEMENT.getInstance().COPPER,
- 180,
- ELEMENT.getInstance().IRON,
- 120,
- ELEMENT.getInstance().CADMIUM,
- 50,
- ELEMENT.getInstance().INDIUM,
- 10);
+ ChalcopyriteFlotationFroth,
+ ELEMENT.getInstance().COPPER,
+ 180,
+ ELEMENT.getInstance().IRON,
+ 120,
+ ELEMENT.getInstance().CADMIUM,
+ 50,
+ ELEMENT.getInstance().INDIUM,
+ 10);
// milledNickel
registerOreDataForMilledType(
- NickelFlotationFroth,
- ELEMENT.getInstance().NICKEL,
- 150,
- ELEMENT.getInstance().COBALT,
- 120,
- ELEMENT.getInstance().RHODIUM,
- 32,
- ELEMENT.getInstance().RUTHENIUM,
- 16);
+ NickelFlotationFroth,
+ ELEMENT.getInstance().NICKEL,
+ 150,
+ ELEMENT.getInstance().COBALT,
+ 120,
+ ELEMENT.getInstance().RHODIUM,
+ 32,
+ ELEMENT.getInstance().RUTHENIUM,
+ 16);
// milledPlatinum
registerOreDataForMilledType(
- PlatinumFlotationFroth,
- ELEMENT.getInstance().PLATINUM,
- 120,
- ELEMENT.getInstance().RHODIUM,
- 60,
- ELEMENT.getInstance().SELENIUM,
- 40,
- ELEMENT.getInstance().TELLURIUM,
- 10);
+ PlatinumFlotationFroth,
+ ELEMENT.getInstance().PLATINUM,
+ 120,
+ ELEMENT.getInstance().RHODIUM,
+ 60,
+ ELEMENT.getInstance().SELENIUM,
+ 40,
+ ELEMENT.getInstance().TELLURIUM,
+ 10);
// milledPentlandite
registerOreDataForMilledType(
- PentlanditeFlotationFroth,
- ELEMENT.getInstance().IRON,
- 150,
- ELEMENT.getInstance().NICKEL,
- 100,
- ELEMENT.getInstance().PROMETHIUM,
- 20,
- ELEMENT.getInstance().HAFNIUM,
- 10);
+ PentlanditeFlotationFroth,
+ ELEMENT.getInstance().IRON,
+ 150,
+ ELEMENT.getInstance().NICKEL,
+ 100,
+ ELEMENT.getInstance().PROMETHIUM,
+ 20,
+ ELEMENT.getInstance().HAFNIUM,
+ 10);
/*
* Second 5
*/
// milledRedstone
registerOreDataForMilledType(
- RedstoneFlotationFroth,
- NONMATERIAL.REDSTONE,
- 300,
- ELEMENT.getInstance().CHROMIUM,
- 60,
- MaterialUtils.generateMaterialFromGtENUM(Materials.Firestone),
- 45,
- ELEMENT.getInstance().DYSPROSIUM,
- 16);
+ RedstoneFlotationFroth,
+ NONMATERIAL.REDSTONE,
+ 300,
+ ELEMENT.getInstance().CHROMIUM,
+ 60,
+ MaterialUtils.generateMaterialFromGtENUM(Materials.Firestone),
+ 45,
+ ELEMENT.getInstance().DYSPROSIUM,
+ 16);
// milledSpessartine
registerOreDataForMilledType(
- SpessartineFlotationFroth,
- ELEMENT.getInstance().MANGANESE,
- 150,
- ELEMENT.getInstance().ALUMINIUM,
- 90,
- ELEMENT.getInstance().OSMIUM,
- 30,
- ELEMENT.getInstance().STRONTIUM,
- 20);
+ SpessartineFlotationFroth,
+ ELEMENT.getInstance().MANGANESE,
+ 150,
+ ELEMENT.getInstance().ALUMINIUM,
+ 90,
+ ELEMENT.getInstance().OSMIUM,
+ 30,
+ ELEMENT.getInstance().STRONTIUM,
+ 20);
// milledGrossular
registerOreDataForMilledType(
- GrossularFlotationFroth,
- ELEMENT.getInstance().CALCIUM,
- 180,
- ELEMENT.getInstance().ALUMINIUM,
- 110,
- ELEMENT.getInstance().TUNGSTEN,
- 60,
- ELEMENT.getInstance().THALLIUM,
- 15);
+ GrossularFlotationFroth,
+ ELEMENT.getInstance().CALCIUM,
+ 180,
+ ELEMENT.getInstance().ALUMINIUM,
+ 110,
+ ELEMENT.getInstance().TUNGSTEN,
+ 60,
+ ELEMENT.getInstance().THALLIUM,
+ 15);
// milledAlmandine
registerOreDataForMilledType(
- AlmandineFlotationFroth,
- ELEMENT.getInstance().ALUMINIUM,
- 150,
- ELEMENT.getInstance().MAGNESIUM,
- 75,
- ELEMENT.getInstance().YTTRIUM,
- 25,
- ELEMENT.getInstance().YTTERBIUM,
- 15);
+ AlmandineFlotationFroth,
+ ELEMENT.getInstance().ALUMINIUM,
+ 150,
+ ELEMENT.getInstance().MAGNESIUM,
+ 75,
+ ELEMENT.getInstance().YTTRIUM,
+ 25,
+ ELEMENT.getInstance().YTTERBIUM,
+ 15);
// milledPyrope
registerOreDataForMilledType(
- PyropeFlotationFroth,
- ELEMENT.getInstance().MAGNESIUM,
- 110,
- ELEMENT.getInstance().MANGANESE,
- 70,
- MaterialUtils.generateMaterialFromGtENUM(Materials.Borax),
- 60,
- ELEMENT.getInstance().RHENIUM,
- 20);
+ PyropeFlotationFroth,
+ ELEMENT.getInstance().MAGNESIUM,
+ 110,
+ ELEMENT.getInstance().MANGANESE,
+ 70,
+ MaterialUtils.generateMaterialFromGtENUM(Materials.Borax),
+ 60,
+ ELEMENT.getInstance().RHENIUM,
+ 20);
// milledMonazite TODO
registerOreDataForMilledType(
- MonaziteFlotationFroth,
- ELEMENT.getInstance().ERBIUM,
- 64,
- ELEMENT.getInstance().LANTHANUM,
- 32,
- ELEMENT.getInstance().LUTETIUM,
- 16,
- ELEMENT.getInstance().EUROPIUM,
- 8);
+ MonaziteFlotationFroth,
+ ELEMENT.getInstance().ERBIUM,
+ 64,
+ ELEMENT.getInstance().LANTHANUM,
+ 32,
+ ELEMENT.getInstance().LUTETIUM,
+ 16,
+ ELEMENT.getInstance().EUROPIUM,
+ 8);
}
@Override
@@ -354,200 +354,200 @@ public class MilledOreProcessing extends ItemPackage {
int aCircuitID = 1;
CORE.RA.addVacuumFurnaceRecipe(
- new ItemStack[] { CI.getNumberedCircuit(aCircuitID++) },
- new FluidStack[] { FluidUtils.getFluidStack(SphaleriteFlotationFroth, 4000) },
- getOutputsFromMap(SphaleriteFlotationFroth),
- new FluidStack[] { FluidUtils.getFluidStack(AgriculturalChem.RedMud, 2000), FluidUtils.getWater(2000) },
- 20 * 120,
- MaterialUtils.getVoltageForTier(6),
- 5500);
+ new ItemStack[] { CI.getNumberedCircuit(aCircuitID++) },
+ new FluidStack[] { FluidUtils.getFluidStack(SphaleriteFlotationFroth, 4000) },
+ getOutputsFromMap(SphaleriteFlotationFroth),
+ new FluidStack[] { FluidUtils.getFluidStack(AgriculturalChem.RedMud, 2000), FluidUtils.getWater(2000) },
+ 20 * 120,
+ MaterialUtils.getVoltageForTier(6),
+ 5500);
CORE.RA.addVacuumFurnaceRecipe(
- new ItemStack[] { CI.getNumberedCircuit(aCircuitID++) },
- new FluidStack[] { FluidUtils.getFluidStack(ChalcopyriteFlotationFroth, 4000) },
- getOutputsFromMap(ChalcopyriteFlotationFroth),
- new FluidStack[] { FluidUtils.getFluidStack(AgriculturalChem.RedMud, 2000), FluidUtils.getWater(2000) },
- 20 * 120,
- MaterialUtils.getVoltageForTier(5),
- 4500);
+ new ItemStack[] { CI.getNumberedCircuit(aCircuitID++) },
+ new FluidStack[] { FluidUtils.getFluidStack(ChalcopyriteFlotationFroth, 4000) },
+ getOutputsFromMap(ChalcopyriteFlotationFroth),
+ new FluidStack[] { FluidUtils.getFluidStack(AgriculturalChem.RedMud, 2000), FluidUtils.getWater(2000) },
+ 20 * 120,
+ MaterialUtils.getVoltageForTier(5),
+ 4500);
CORE.RA.addVacuumFurnaceRecipe(
- new ItemStack[] { CI.getNumberedCircuit(aCircuitID++) },
- new FluidStack[] { FluidUtils.getFluidStack(NickelFlotationFroth, 4000) },
- getOutputsFromMap(NickelFlotationFroth),
- new FluidStack[] { FluidUtils.getFluidStack(AgriculturalChem.RedMud, 2000), FluidUtils.getWater(2000) },
- 20 * 120,
- MaterialUtils.getVoltageForTier(5),
- 4500);
+ new ItemStack[] { CI.getNumberedCircuit(aCircuitID++) },
+ new FluidStack[] { FluidUtils.getFluidStack(NickelFlotationFroth, 4000) },
+ getOutputsFromMap(NickelFlotationFroth),
+ new FluidStack[] { FluidUtils.getFluidStack(AgriculturalChem.RedMud, 2000), FluidUtils.getWater(2000) },
+ 20 * 120,
+ MaterialUtils.getVoltageForTier(5),
+ 4500);
CORE.RA.addVacuumFurnaceRecipe(
- new ItemStack[] { CI.getNumberedCircuit(aCircuitID++) },
- new FluidStack[] { FluidUtils.getFluidStack(PlatinumFlotationFroth, 4000) },
- getOutputsFromMap(PlatinumFlotationFroth),
- new FluidStack[] { FluidUtils.getFluidStack(AgriculturalChem.RedMud, 2000), FluidUtils.getWater(2000) },
- 20 * 120,
- MaterialUtils.getVoltageForTier(6),
- 5500);
+ new ItemStack[] { CI.getNumberedCircuit(aCircuitID++) },
+ new FluidStack[] { FluidUtils.getFluidStack(PlatinumFlotationFroth, 4000) },
+ getOutputsFromMap(PlatinumFlotationFroth),
+ new FluidStack[] { FluidUtils.getFluidStack(AgriculturalChem.RedMud, 2000), FluidUtils.getWater(2000) },
+ 20 * 120,
+ MaterialUtils.getVoltageForTier(6),
+ 5500);
CORE.RA.addVacuumFurnaceRecipe(
- new ItemStack[] { CI.getNumberedCircuit(aCircuitID++) },
- new FluidStack[] { FluidUtils.getFluidStack(PentlanditeFlotationFroth, 4000) },
- getOutputsFromMap(PentlanditeFlotationFroth),
- new FluidStack[] { FluidUtils.getFluidStack(AgriculturalChem.RedMud, 2000), FluidUtils.getWater(2000) },
- 20 * 120,
- MaterialUtils.getVoltageForTier(6),
- 5500);
+ new ItemStack[] { CI.getNumberedCircuit(aCircuitID++) },
+ new FluidStack[] { FluidUtils.getFluidStack(PentlanditeFlotationFroth, 4000) },
+ getOutputsFromMap(PentlanditeFlotationFroth),
+ new FluidStack[] { FluidUtils.getFluidStack(AgriculturalChem.RedMud, 2000), FluidUtils.getWater(2000) },
+ 20 * 120,
+ MaterialUtils.getVoltageForTier(6),
+ 5500);
CORE.RA.addVacuumFurnaceRecipe(
- new ItemStack[] { CI.getNumberedCircuit(aCircuitID++) },
- new FluidStack[] { FluidUtils.getFluidStack(RedstoneFlotationFroth, 4000) },
- getOutputsFromMap(RedstoneFlotationFroth),
- new FluidStack[] { FluidUtils.getFluidStack(AgriculturalChem.RedMud, 2000), FluidUtils.getWater(2000) },
- 20 * 120,
- MaterialUtils.getVoltageForTier(5),
- 4500);
+ new ItemStack[] { CI.getNumberedCircuit(aCircuitID++) },
+ new FluidStack[] { FluidUtils.getFluidStack(RedstoneFlotationFroth, 4000) },
+ getOutputsFromMap(RedstoneFlotationFroth),
+ new FluidStack[] { FluidUtils.getFluidStack(AgriculturalChem.RedMud, 2000), FluidUtils.getWater(2000) },
+ 20 * 120,
+ MaterialUtils.getVoltageForTier(5),
+ 4500);
CORE.RA.addVacuumFurnaceRecipe(
- new ItemStack[] { CI.getNumberedCircuit(aCircuitID++) },
- new FluidStack[] { FluidUtils.getFluidStack(SpessartineFlotationFroth, 4000) },
- getOutputsFromMap(SpessartineFlotationFroth),
- new FluidStack[] { FluidUtils.getFluidStack(AgriculturalChem.RedMud, 2000), FluidUtils.getWater(2000) },
- 20 * 120,
- MaterialUtils.getVoltageForTier(6),
- 5500);
+ new ItemStack[] { CI.getNumberedCircuit(aCircuitID++) },
+ new FluidStack[] { FluidUtils.getFluidStack(SpessartineFlotationFroth, 4000) },
+ getOutputsFromMap(SpessartineFlotationFroth),
+ new FluidStack[] { FluidUtils.getFluidStack(AgriculturalChem.RedMud, 2000), FluidUtils.getWater(2000) },
+ 20 * 120,
+ MaterialUtils.getVoltageForTier(6),
+ 5500);
CORE.RA.addVacuumFurnaceRecipe(
- new ItemStack[] { CI.getNumberedCircuit(aCircuitID++) },
- new FluidStack[] { FluidUtils.getFluidStack(GrossularFlotationFroth, 4000) },
- getOutputsFromMap(GrossularFlotationFroth),
- new FluidStack[] { FluidUtils.getFluidStack(AgriculturalChem.RedMud, 2000), FluidUtils.getWater(2000) },
- 20 * 120,
- MaterialUtils.getVoltageForTier(6),
- 5500);
+ new ItemStack[] { CI.getNumberedCircuit(aCircuitID++) },
+ new FluidStack[] { FluidUtils.getFluidStack(GrossularFlotationFroth, 4000) },
+ getOutputsFromMap(GrossularFlotationFroth),
+ new FluidStack[] { FluidUtils.getFluidStack(AgriculturalChem.RedMud, 2000), FluidUtils.getWater(2000) },
+ 20 * 120,
+ MaterialUtils.getVoltageForTier(6),
+ 5500);
CORE.RA.addVacuumFurnaceRecipe(
- new ItemStack[] { CI.getNumberedCircuit(aCircuitID++) },
- new FluidStack[] { FluidUtils.getFluidStack(AlmandineFlotationFroth, 4000) },
- getOutputsFromMap(AlmandineFlotationFroth),
- new FluidStack[] { FluidUtils.getFluidStack(AgriculturalChem.RedMud, 2000), FluidUtils.getWater(2000) },
- 20 * 120,
- MaterialUtils.getVoltageForTier(6),
- 5500);
+ new ItemStack[] { CI.getNumberedCircuit(aCircuitID++) },
+ new FluidStack[] { FluidUtils.getFluidStack(AlmandineFlotationFroth, 4000) },
+ getOutputsFromMap(AlmandineFlotationFroth),
+ new FluidStack[] { FluidUtils.getFluidStack(AgriculturalChem.RedMud, 2000), FluidUtils.getWater(2000) },
+ 20 * 120,
+ MaterialUtils.getVoltageForTier(6),
+ 5500);
CORE.RA.addVacuumFurnaceRecipe(
- new ItemStack[] { CI.getNumberedCircuit(aCircuitID++) },
- new FluidStack[] { FluidUtils.getFluidStack(PyropeFlotationFroth, 4000) },
- getOutputsFromMap(PyropeFlotationFroth),
- new FluidStack[] { FluidUtils.getFluidStack(AgriculturalChem.RedMud, 2000), FluidUtils.getWater(2000) },
- 20 * 120,
- MaterialUtils.getVoltageForTier(4),
- 3500);
+ new ItemStack[] { CI.getNumberedCircuit(aCircuitID++) },
+ new FluidStack[] { FluidUtils.getFluidStack(PyropeFlotationFroth, 4000) },
+ getOutputsFromMap(PyropeFlotationFroth),
+ new FluidStack[] { FluidUtils.getFluidStack(AgriculturalChem.RedMud, 2000), FluidUtils.getWater(2000) },
+ 20 * 120,
+ MaterialUtils.getVoltageForTier(4),
+ 3500);
CORE.RA.addVacuumFurnaceRecipe(
- new ItemStack[] { CI.getNumberedCircuit(aCircuitID++) },
- new FluidStack[] { FluidUtils.getFluidStack(MonaziteFlotationFroth, 4000) },
- getOutputsFromMap(MonaziteFlotationFroth),
- new FluidStack[] { FluidUtils.getFluidStack(AgriculturalChem.RedMud, 2000), FluidUtils.getWater(2000) },
- 20 * 120,
- MaterialUtils.getVoltageForTier(7),
- 7500);
+ new ItemStack[] { CI.getNumberedCircuit(aCircuitID++) },
+ new FluidStack[] { FluidUtils.getFluidStack(MonaziteFlotationFroth, 4000) },
+ getOutputsFromMap(MonaziteFlotationFroth),
+ new FluidStack[] { FluidUtils.getFluidStack(AgriculturalChem.RedMud, 2000), FluidUtils.getWater(2000) },
+ 20 * 120,
+ MaterialUtils.getVoltageForTier(7),
+ 7500);
}
private void addFlotationRecipes1() {
// Sphalerite
CORE.RA.addFlotationRecipe(
- Materials.Sphalerite,
- ItemUtils.getSimpleStack(GenericChem.mSodiumEthylXanthate, 1),
- new FluidStack[] { FluidUtils.getFluidStack(PineOil, 14000), },
- new FluidStack[] { FluidUtils.getFluidStack(SphaleriteFlotationFroth, 1000) },
- 20 * 480,
- MaterialUtils.getVoltageForTier(6));
+ Materials.Sphalerite,
+ ItemUtils.getSimpleStack(GenericChem.mSodiumEthylXanthate, 1),
+ new FluidStack[] { FluidUtils.getFluidStack(PineOil, 14000), },
+ new FluidStack[] { FluidUtils.getFluidStack(SphaleriteFlotationFroth, 1000) },
+ 20 * 480,
+ MaterialUtils.getVoltageForTier(6));
// Chalcopyrite
CORE.RA.addFlotationRecipe(
- Materials.Chalcopyrite,
- ItemUtils.getSimpleStack(GenericChem.mSodiumEthylXanthate, 1),
- new FluidStack[] { FluidUtils.getFluidStack(PineOil, 12000), },
- new FluidStack[] { FluidUtils.getFluidStack(ChalcopyriteFlotationFroth, 1000) },
- 20 * 480,
- MaterialUtils.getVoltageForTier(5));
+ Materials.Chalcopyrite,
+ ItemUtils.getSimpleStack(GenericChem.mSodiumEthylXanthate, 1),
+ new FluidStack[] { FluidUtils.getFluidStack(PineOil, 12000), },
+ new FluidStack[] { FluidUtils.getFluidStack(ChalcopyriteFlotationFroth, 1000) },
+ 20 * 480,
+ MaterialUtils.getVoltageForTier(5));
// Nickel
CORE.RA.addFlotationRecipe(
- Materials.Nickel,
- ItemUtils.getSimpleStack(GenericChem.mPotassiumEthylXanthate, 1),
- new FluidStack[] { FluidUtils.getFluidStack(PineOil, 25000), },
- new FluidStack[] { FluidUtils.getFluidStack(NickelFlotationFroth, 1000) },
- 20 * 480,
- MaterialUtils.getVoltageForTier(5));
+ Materials.Nickel,
+ ItemUtils.getSimpleStack(GenericChem.mPotassiumEthylXanthate, 1),
+ new FluidStack[] { FluidUtils.getFluidStack(PineOil, 25000), },
+ new FluidStack[] { FluidUtils.getFluidStack(NickelFlotationFroth, 1000) },
+ 20 * 480,
+ MaterialUtils.getVoltageForTier(5));
// Platinum
CORE.RA.addFlotationRecipe(
- Materials.Platinum,
- ItemUtils.getSimpleStack(GenericChem.mPotassiumEthylXanthate, 1),
- new FluidStack[] { FluidUtils.getFluidStack(PineOil, 35000), },
- new FluidStack[] { FluidUtils.getFluidStack(PlatinumFlotationFroth, 1000) },
- 20 * 480,
- MaterialUtils.getVoltageForTier(6));
+ Materials.Platinum,
+ ItemUtils.getSimpleStack(GenericChem.mPotassiumEthylXanthate, 1),
+ new FluidStack[] { FluidUtils.getFluidStack(PineOil, 35000), },
+ new FluidStack[] { FluidUtils.getFluidStack(PlatinumFlotationFroth, 1000) },
+ 20 * 480,
+ MaterialUtils.getVoltageForTier(6));
// Pentlandite
CORE.RA.addFlotationRecipe(
- Materials.Pentlandite,
- ItemUtils.getSimpleStack(GenericChem.mSodiumEthylXanthate, 1),
- new FluidStack[] { FluidUtils.getFluidStack(PineOil, 14000), },
- new FluidStack[] { FluidUtils.getFluidStack(PentlanditeFlotationFroth, 1000) },
- 20 * 480,
- MaterialUtils.getVoltageForTier(6));
+ Materials.Pentlandite,
+ ItemUtils.getSimpleStack(GenericChem.mSodiumEthylXanthate, 1),
+ new FluidStack[] { FluidUtils.getFluidStack(PineOil, 14000), },
+ new FluidStack[] { FluidUtils.getFluidStack(PentlanditeFlotationFroth, 1000) },
+ 20 * 480,
+ MaterialUtils.getVoltageForTier(6));
}
private void addFlotationRecipes2() {
// Redstone
CORE.RA.addFlotationRecipe(
- Materials.Redstone,
- ItemUtils.getSimpleStack(GenericChem.mSodiumEthylXanthate, 1),
- new FluidStack[] { FluidUtils.getFluidStack(PineOil, 13000), },
- new FluidStack[] { FluidUtils.getFluidStack(RedstoneFlotationFroth, 1000) },
- 20 * 480,
- MaterialUtils.getVoltageForTier(5));
+ Materials.Redstone,
+ ItemUtils.getSimpleStack(GenericChem.mSodiumEthylXanthate, 1),
+ new FluidStack[] { FluidUtils.getFluidStack(PineOil, 13000), },
+ new FluidStack[] { FluidUtils.getFluidStack(RedstoneFlotationFroth, 1000) },
+ 20 * 480,
+ MaterialUtils.getVoltageForTier(5));
// Spessartine
CORE.RA.addFlotationRecipe(
- Materials.Spessartine,
- ItemUtils.getSimpleStack(GenericChem.mPotassiumEthylXanthate, 1),
- new FluidStack[] { FluidUtils.getFluidStack(PineOil, 35000), },
- new FluidStack[] { FluidUtils.getFluidStack(SpessartineFlotationFroth, 1000) },
- 20 * 480,
- MaterialUtils.getVoltageForTier(6));
+ Materials.Spessartine,
+ ItemUtils.getSimpleStack(GenericChem.mPotassiumEthylXanthate, 1),
+ new FluidStack[] { FluidUtils.getFluidStack(PineOil, 35000), },
+ new FluidStack[] { FluidUtils.getFluidStack(SpessartineFlotationFroth, 1000) },
+ 20 * 480,
+ MaterialUtils.getVoltageForTier(6));
// Grossular
CORE.RA.addFlotationRecipe(
- Materials.Grossular,
- ItemUtils.getSimpleStack(GenericChem.mPotassiumEthylXanthate, 1),
- new FluidStack[] { FluidUtils.getFluidStack(PineOil, 28000), },
- new FluidStack[] { FluidUtils.getFluidStack(GrossularFlotationFroth, 1000) },
- 20 * 480,
- MaterialUtils.getVoltageForTier(6));
+ Materials.Grossular,
+ ItemUtils.getSimpleStack(GenericChem.mPotassiumEthylXanthate, 1),
+ new FluidStack[] { FluidUtils.getFluidStack(PineOil, 28000), },
+ new FluidStack[] { FluidUtils.getFluidStack(GrossularFlotationFroth, 1000) },
+ 20 * 480,
+ MaterialUtils.getVoltageForTier(6));
// Almandine
CORE.RA.addFlotationRecipe(
- Materials.Almandine,
- ItemUtils.getSimpleStack(GenericChem.mSodiumEthylXanthate, 1),
- new FluidStack[] { FluidUtils.getFluidStack(PineOil, 18000), },
- new FluidStack[] { FluidUtils.getFluidStack(AlmandineFlotationFroth, 1000) },
- 20 * 480,
- MaterialUtils.getVoltageForTier(5));
+ Materials.Almandine,
+ ItemUtils.getSimpleStack(GenericChem.mSodiumEthylXanthate, 1),
+ new FluidStack[] { FluidUtils.getFluidStack(PineOil, 18000), },
+ new FluidStack[] { FluidUtils.getFluidStack(AlmandineFlotationFroth, 1000) },
+ 20 * 480,
+ MaterialUtils.getVoltageForTier(5));
// Pyrope
CORE.RA.addFlotationRecipe(
- Materials.Pyrope,
- ItemUtils.getSimpleStack(GenericChem.mSodiumEthylXanthate, 1),
- new FluidStack[] { FluidUtils.getFluidStack(PineOil, 8000), },
- new FluidStack[] { FluidUtils.getFluidStack(PyropeFlotationFroth, 1000) },
- 20 * 480,
- MaterialUtils.getVoltageForTier(4));
+ Materials.Pyrope,
+ ItemUtils.getSimpleStack(GenericChem.mSodiumEthylXanthate, 1),
+ new FluidStack[] { FluidUtils.getFluidStack(PineOil, 8000), },
+ new FluidStack[] { FluidUtils.getFluidStack(PyropeFlotationFroth, 1000) },
+ 20 * 480,
+ MaterialUtils.getVoltageForTier(4));
// Monazite
CORE.RA.addFlotationRecipe(
- Materials.Monazite,
- ItemUtils.getSimpleStack(GenericChem.mPotassiumEthylXanthate, 1),
- new FluidStack[] { FluidUtils.getFluidStack(PineOil, 30000), },
- new FluidStack[] { FluidUtils.getFluidStack(MonaziteFlotationFroth, 1000) },
- 20 * 480,
- MaterialUtils.getVoltageForTier(6));
+ Materials.Monazite,
+ ItemUtils.getSimpleStack(GenericChem.mPotassiumEthylXanthate, 1),
+ new FluidStack[] { FluidUtils.getFluidStack(PineOil, 30000), },
+ new FluidStack[] { FluidUtils.getFluidStack(MonaziteFlotationFroth, 1000) },
+ 20 * 480,
+ MaterialUtils.getVoltageForTier(6));
}
private void addPineOilExtraction() {
@@ -590,41 +590,41 @@ public class MilledOreProcessing extends ItemPackage {
}
for (ItemStack aSapling : aSaplings) {
addRecipe(
- aSapling,
- ItemUtils.getSimpleStack(aCrushedPine, 4),
- new int[] { 7500, 7500, 2500, 2500 },
- 10,
- 60);
+ aSapling,
+ ItemUtils.getSimpleStack(aCrushedPine, 4),
+ new int[] { 7500, 7500, 2500, 2500 },
+ 10,
+ 60);
}
for (ItemStack aCone : aPinecones) {
addRecipe(aCone, ItemUtils.getSimpleStack(aCrushedPine, 1), new int[] { 7500, 7500, 5000, 2500 }, 10, 60);
}
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(16), ItemUtils.getSimpleStack(aCrushedPine, 64) },
- new FluidStack[] { FluidUtils.getSteam(5000), },
- new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustTinyAsh", 5),
- ItemUtils.getItemStackOfAmountFromOreDict("dustTinyAsh", 5),
- ItemUtils.getItemStackOfAmountFromOreDict("dustTinyDarkAsh", 5),
- ItemUtils.getItemStackOfAmountFromOreDict("dustTinyDarkAsh", 5) },
- new FluidStack[] { FluidUtils.getFluidStack(PineOil, 500) },
- new int[] { 2000, 2000, 2000, 2000 },
- 20 * 60,
- 120,
- 3);
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(16), ItemUtils.getSimpleStack(aCrushedPine, 64) },
+ new FluidStack[] { FluidUtils.getSteam(5000), },
+ new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustTinyAsh", 5),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustTinyAsh", 5),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustTinyDarkAsh", 5),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustTinyDarkAsh", 5) },
+ new FluidStack[] { FluidUtils.getFluidStack(PineOil, 500) },
+ new int[] { 2000, 2000, 2000, 2000 },
+ 20 * 60,
+ 120,
+ 3);
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(18), ItemUtils.getSimpleStack(aCrushedPine, 64) },
- new FluidStack[] { FluidUtils.getSuperHeatedSteam(5000), },
- new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustTinyAsh", 5),
- ItemUtils.getItemStackOfAmountFromOreDict("dustTinyAsh", 5),
- ItemUtils.getItemStackOfAmountFromOreDict("dustTinyDarkAsh", 5),
- ItemUtils.getItemStackOfAmountFromOreDict("dustTinyDarkAsh", 5) },
- new FluidStack[] { FluidUtils.getFluidStack(PineOil, 1500) },
- new int[] { 3000, 3000, 3000, 3000 },
- 20 * 45,
- 120,
- 4);
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(18), ItemUtils.getSimpleStack(aCrushedPine, 64) },
+ new FluidStack[] { FluidUtils.getSuperHeatedSteam(5000), },
+ new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustTinyAsh", 5),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustTinyAsh", 5),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustTinyDarkAsh", 5),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustTinyDarkAsh", 5) },
+ new FluidStack[] { FluidUtils.getFluidStack(PineOil, 1500) },
+ new int[] { 3000, 3000, 3000, 3000 },
+ 20 * 45,
+ 120,
+ 4);
}
public boolean addRecipe(ItemStack aInput, ItemStack aOutput1, int[] aChances, int aTime, int aEU) {
@@ -635,19 +635,19 @@ public class MilledOreProcessing extends ItemPackage {
}
aOutputs = cleanArray(aOutputs);
if ((GT_Utility.isStackInvalid(aInput))
- || (GT_Utility.isStackInvalid(aOutput1) || (GT_Utility.getContainerItem(aInput, false) != null))) {
+ || (GT_Utility.isStackInvalid(aOutput1) || (GT_Utility.getContainerItem(aInput, false) != null))) {
return false;
}
return CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(14), aInput },
- new FluidStack[] {},
- aOutputs,
- new FluidStack[] {},
- aChances,
- aTime * 20,
- aEU,
- 3);
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(14), aInput },
+ new FluidStack[] {},
+ aOutputs,
+ new FluidStack[] {},
+ aChances,
+ aTime * 20,
+ aEU,
+ 3);
}
public static ItemStack[] cleanArray(ItemStack[] input) {
@@ -671,31 +671,31 @@ public class MilledOreProcessing extends ItemPackage {
private static final HashMap<String, Quad<Pair<Material, Integer>, Pair<Material, Integer>, Pair<Material, Integer>, Pair<Material, Integer>>> aMilledFluidMap = new HashMap<>();
public static void registerOreDataForMilledType(Fluid aMilledFluid, Materials aOutput1, int aPerc1,
- Materials aOutput2, int aPerc2, Materials aOutput3, int aPerc3, Materials aOutput4, int aPerc4) {
+ Materials aOutput2, int aPerc2, Materials aOutput3, int aPerc3, Materials aOutput4, int aPerc4) {
registerOreDataForMilledType(
- aMilledFluid,
- MaterialUtils.generateMaterialFromGtENUM(aOutput1),
- aPerc1,
- MaterialUtils.generateMaterialFromGtENUM(aOutput2),
- aPerc2,
- MaterialUtils.generateMaterialFromGtENUM(aOutput3),
- aPerc3,
- MaterialUtils.generateMaterialFromGtENUM(aOutput4),
- aPerc4);
+ aMilledFluid,
+ MaterialUtils.generateMaterialFromGtENUM(aOutput1),
+ aPerc1,
+ MaterialUtils.generateMaterialFromGtENUM(aOutput2),
+ aPerc2,
+ MaterialUtils.generateMaterialFromGtENUM(aOutput3),
+ aPerc3,
+ MaterialUtils.generateMaterialFromGtENUM(aOutput4),
+ aPerc4);
}
public static void registerOreDataForMilledType(Fluid aMilledFluid, Material aOutput1, int aPerc1,
- Material aOutput2, int aPerc2, Material aOutput3, int aPerc3, Material aOutput4, int aPerc4) {
+ Material aOutput2, int aPerc2, Material aOutput3, int aPerc3, Material aOutput4, int aPerc4) {
Pair<Material, Integer> aFluidOutput1 = new Pair<>(aOutput1, aPerc1);
Pair<Material, Integer> aFluidOutput2 = new Pair<>(aOutput2, aPerc2);
Pair<Material, Integer> aFluidOutput3 = new Pair<>(aOutput3, aPerc3);
Pair<Material, Integer> aFluidOutput4 = new Pair<>(aOutput4, aPerc4);
Quad<Pair<Material, Integer>, Pair<Material, Integer>, Pair<Material, Integer>, Pair<Material, Integer>> aDataQuad = new Quad<>(
- aFluidOutput1,
- aFluidOutput2,
- aFluidOutput3,
- aFluidOutput4);
+ aFluidOutput1,
+ aFluidOutput2,
+ aFluidOutput3,
+ aFluidOutput4);
aMilledFluidMap.put(aMilledFluid.getUnlocalizedName(), aDataQuad);
}
@@ -705,7 +705,7 @@ public class MilledOreProcessing extends ItemPackage {
}
private static ItemStack[] getArrayFromQuad(
- Quad<Pair<Material, Integer>, Pair<Material, Integer>, Pair<Material, Integer>, Pair<Material, Integer>> aData) {
+ Quad<Pair<Material, Integer>, Pair<Material, Integer>, Pair<Material, Integer>, Pair<Material, Integer>> aData) {
AutoMap<ItemStack> aOutputs = new AutoMap<>();
for (Object aPair : aData.values()) {
if (aPair != null && Pair.class.isInstance(aPair)) {
diff --git a/src/main/java/gtPlusPlus/core/item/chemistry/NuclearChem.java b/src/main/java/gtPlusPlus/core/item/chemistry/NuclearChem.java
index 1fd9416b90..d83b5a7cea 100644
--- a/src/main/java/gtPlusPlus/core/item/chemistry/NuclearChem.java
+++ b/src/main/java/gtPlusPlus/core/item/chemistry/NuclearChem.java
@@ -36,44 +36,45 @@ public class NuclearChem extends ItemPackage {
public void fluids() {
// Create Used Nuclear Fuels
Burnt_LiFBeF2ThF4UF4 = FluidUtils.generateFluidNonMolten(
- "BurntLiFBeF2ThF4UF4",
- "Burnt LiFBeF2ThF4UF4 Salt",
- 545,
- new short[] { 48, 175, 48, 100 },
- null,
- null);
+ "BurntLiFBeF2ThF4UF4",
+ "Burnt LiFBeF2ThF4UF4 Salt",
+ 545,
+ new short[] { 48, 175, 48, 100 },
+ null,
+ null);
Burnt_LiFBeF2ZrF4UF4 = FluidUtils.generateFluidNonMolten(
- "BurntLiFBeF2ZrF4UF4",
- "Burnt LiFBeF2ZrF4UF4 Salt",
- 520,
- new short[] { 48, 168, 68, 100 },
- null,
- null);
+ "BurntLiFBeF2ZrF4UF4",
+ "Burnt LiFBeF2ZrF4UF4 Salt",
+ 520,
+ new short[] { 48, 168, 68, 100 },
+ null,
+ null);
Burnt_LiFBeF2ZrF4U235 = FluidUtils.generateFluidNonMolten(
- "BurntLiFBeF2ZrF4U235",
- "Burnt LiFBeF2ZrF4U235 Salt",
- 533,
- new short[] { 68, 185, 48, 100 },
- null,
- null);
+ "BurntLiFBeF2ZrF4U235",
+ "Burnt LiFBeF2ZrF4U235 Salt",
+ 533,
+ new short[] { 68, 185, 48, 100 },
+ null,
+ null);
Impure_LiFBeF2 = FluidUtils.generateFluidNonMolten(
- "ImpureLiFBeF2",
- "Impure Molten Salt Base",
- 533,
- new short[] { 110, 75, 186, 100 },
- null,
- null);
+ "ImpureLiFBeF2",
+ "Impure Molten Salt Base",
+ 533,
+ new short[] { 110, 75, 186, 100 },
+ null,
+ null);
if (FluidUtils.getFluidStack("fluid.Mutagen", 1) == null) {
GeneticMutagen = FluidUtils.generateFluidNonMolten(
- "GeneticMutagen",
- "Genetic Mutagen",
- 12,
- new short[] { 22, 148, 185, 100 },
- null,
- null);
+ "GeneticMutagen",
+ "Genetic Mutagen",
+ 12,
+ new short[] { 22, 148, 185, 100 },
+ null,
+ null);
generateMutagenRecipe = true;
} else {
- GeneticMutagen = FluidUtils.getFluidStack("fluid.Mutagen", 1).getFluid();
+ GeneticMutagen = FluidUtils.getFluidStack("fluid.Mutagen", 1)
+ .getFluid();
}
}
@@ -92,11 +93,13 @@ public class NuclearChem extends ItemPackage {
private static void chemReactor_CreateMutagen() {
GT_Values.RA.stdBuilder()
- .itemInputs(
- GT_OreDictUnificator.get(OrePrefixes.gem, Materials.NetherStar, 2),
- GT_Utility.getIntegratedCircuit(20))
- .fluidInputs(FluidRegistry.getFluidStack("mobessence", 5000))
- .fluidOutputs(FluidUtils.getFluidStack(GeneticMutagen, 8000)).duration(30 * SECONDS)
- .eut(TierEU.RECIPE_HV).addTo(UniversalChemical);
+ .itemInputs(
+ GT_OreDictUnificator.get(OrePrefixes.gem, Materials.NetherStar, 2),
+ GT_Utility.getIntegratedCircuit(20))
+ .fluidInputs(FluidRegistry.getFluidStack("mobessence", 5000))
+ .fluidOutputs(FluidUtils.getFluidStack(GeneticMutagen, 8000))
+ .duration(30 * SECONDS)
+ .eut(TierEU.RECIPE_HV)
+ .addTo(UniversalChemical);
}
}
diff --git a/src/main/java/gtPlusPlus/core/item/chemistry/RocketFuels.java b/src/main/java/gtPlusPlus/core/item/chemistry/RocketFuels.java
index a64dcab0f2..3fc682e7cc 100644
--- a/src/main/java/gtPlusPlus/core/item/chemistry/RocketFuels.java
+++ b/src/main/java/gtPlusPlus/core/item/chemistry/RocketFuels.java
@@ -71,198 +71,213 @@ public class RocketFuels extends ItemPackage {
FluidStack fuelB = FluidUtils.getFluidStack("fuel", 3000);
if (fuelA != null) {
- GT_Values.RA.stdBuilder().itemInputs(GT_Utility.getIntegratedCircuit(23)).fluidInputs(fuelA)
- .fluidOutputs(FluidUtils.getFluidStack(Kerosene, 1800)).duration(10 * SECONDS)
- .eut(TierEU.RECIPE_MV / 2).addTo(distilleryRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(GT_Utility.getIntegratedCircuit(23))
+ .fluidInputs(fuelA)
+ .fluidOutputs(FluidUtils.getFluidStack(Kerosene, 1800))
+ .duration(10 * SECONDS)
+ .eut(TierEU.RECIPE_MV / 2)
+ .addTo(distilleryRecipes);
}
if (fuelA == null && fuelB != null) {
- GT_Values.RA.stdBuilder().itemInputs(GT_Utility.getIntegratedCircuit(23)).fluidInputs(fuelB)
- .fluidOutputs(FluidUtils.getFluidStack(Kerosene, 1800)).duration(10 * SECONDS)
- .eut(TierEU.RECIPE_MV / 2).addTo(distilleryRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(GT_Utility.getIntegratedCircuit(23))
+ .fluidInputs(fuelB)
+ .fluidOutputs(FluidUtils.getFluidStack(Kerosene, 1800))
+ .duration(10 * SECONDS)
+ .eut(TierEU.RECIPE_MV / 2)
+ .addTo(distilleryRecipes);
}
}
public static void createRP1() {
FluidStack fuelA = FluidUtils.getFluidStack(Kerosene, 1000);
if (fuelA != null) {
- GT_Values.RA.stdBuilder().itemInputs(GT_Utility.getIntegratedCircuit(23)).fluidInputs(fuelA)
- .fluidOutputs(FluidUtils.getFluidStack(RP1, 750)).duration(40 * SECONDS).eut(TierEU.RECIPE_MV)
- .addTo(distilleryRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(GT_Utility.getIntegratedCircuit(23))
+ .fluidInputs(fuelA)
+ .fluidOutputs(FluidUtils.getFluidStack(RP1, 750))
+ .duration(40 * SECONDS)
+ .eut(TierEU.RECIPE_MV)
+ .addTo(distilleryRecipes);
}
}
public static void createNitrogenTetroxide() {
// 2HNO3 + Cu = N2O4 + H2O + CuO
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustCopper", 1),
- ItemUtils.getSimpleStack(GenericChem.mOrangeCatalyst, 0), },
- new FluidStack[] { FluidUtils.getFluidStack("nitricacid", 2000) },
- new ItemStack[] { Materials.CupricOxide.getDust(2), },
- new FluidStack[] { FluidUtils.getFluidStack(Nitrogen_Tetroxide, 1000), },
- new int[] { 100, 100, 50, 50 },
- 20 * 30,
- MaterialUtils.getVoltageForTier(3),
- 3);
+ new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustCopper", 1),
+ ItemUtils.getSimpleStack(GenericChem.mOrangeCatalyst, 0), },
+ new FluidStack[] { FluidUtils.getFluidStack("nitricacid", 2000) },
+ new ItemStack[] { Materials.CupricOxide.getDust(2), },
+ new FluidStack[] { FluidUtils.getFluidStack(Nitrogen_Tetroxide, 1000), },
+ new int[] { 100, 100, 50, 50 },
+ 20 * 30,
+ MaterialUtils.getVoltageForTier(3),
+ 3);
}
public static void createHydrazine() {
// H2O2 + 2NH3 = N2H4 + 2H2O
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedCircuit(21) },
- new FluidStack[] { FluidUtils.getFluidStack("fluid.hydrogenperoxide", 1000),
- FluidUtils.getFluidStack("ammonia", 2000), },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(Hydrazine, 1000), },
- 20 * 30,
- MaterialUtils.getVoltageForTier(2),
- 1);
+ new ItemStack[] { CI.getNumberedCircuit(21) },
+ new FluidStack[] { FluidUtils.getFluidStack("fluid.hydrogenperoxide", 1000),
+ FluidUtils.getFluidStack("ammonia", 2000), },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(Hydrazine, 1000), },
+ 20 * 30,
+ MaterialUtils.getVoltageForTier(2),
+ 1);
}
public static void createMonomethylhydrazine() {
// C + 2H + N2H4 = CH6N2
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedCircuit(21),
- ItemUtils.getItemStackOfAmountFromOreDict("dustCarbon", 1) },
- new FluidStack[] { FluidUtils.getFluidStack("hydrogen", 2000),
- FluidUtils.getFluidStack(Hydrazine, 1000), },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(Monomethylhydrazine, 1000), },
- 20 * 48,
- 240,
- 2);
+ new ItemStack[] { CI.getNumberedCircuit(21), ItemUtils.getItemStackOfAmountFromOreDict("dustCarbon", 1) },
+ new FluidStack[] { FluidUtils.getFluidStack("hydrogen", 2000), FluidUtils.getFluidStack(Hydrazine, 1000), },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(Monomethylhydrazine, 1000), },
+ 20 * 48,
+ 240,
+ 2);
}
private static void createLOH() {
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getItemStackOfAmountFromOreDict("cellHydrogen", 1))
- .itemOutputs(ItemUtils.getItemStackOfAmountFromOreDict("cellLiquidHydrogen", 1)).duration(16 * SECONDS)
- .eut(TierEU.RECIPE_MV).addTo(vacuumFreezerRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getItemStackOfAmountFromOreDict("cellHydrogen", 1))
+ .itemOutputs(ItemUtils.getItemStackOfAmountFromOreDict("cellLiquidHydrogen", 1))
+ .duration(16 * SECONDS)
+ .eut(TierEU.RECIPE_MV)
+ .addTo(vacuumFreezerRecipes);
}
private static void createHydratedAmmoniumNitrateSlurry() {
// NH3 + HNO3 = NH4NO3
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(21), },
- new FluidStack[] { FluidUtils.getFluidStack("ammonia", 4000),
- FluidUtils.getFluidStack("nitricacid", 4000), },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(Hydrated_Ammonium_Nitrate_Slurry, 5184), },
- 20 * 60,
- 120,
- 1);
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(21), },
+ new FluidStack[] { FluidUtils.getFluidStack("ammonia", 4000),
+ FluidUtils.getFluidStack("nitricacid", 4000), },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(Hydrated_Ammonium_Nitrate_Slurry, 5184), },
+ 20 * 60,
+ 120,
+ 1);
}
private static void createAmmoniumNitrateDust() {
CORE.RA.addDehydratorRecipe(
- new ItemStack[] { CI.getNumberedCircuit(8) },
- FluidUtils.getFluidStack(Hydrated_Ammonium_Nitrate_Slurry, 8 * 144),
- FluidUtils.getWater(2000),
- new ItemStack[] { ItemUtils.getSimpleStack(Ammonium_Nitrate_Dust, 8) },
- new int[] { 10000 },
- 90 * 20,
- 480);
+ new ItemStack[] { CI.getNumberedCircuit(8) },
+ FluidUtils.getFluidStack(Hydrated_Ammonium_Nitrate_Slurry, 8 * 144),
+ FluidUtils.getWater(2000),
+ new ItemStack[] { ItemUtils.getSimpleStack(Ammonium_Nitrate_Dust, 8) },
+ new int[] { 10000 },
+ 90 * 20,
+ 480);
}
private static void createFormaldehyde() {
// O + CH4O = CH2O + H2O
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(21),
- ItemUtils.getSimpleStack(GenericChem.mFormaldehydeCatalyst, 0), },
- new FluidStack[] { FluidUtils.getFluidStack("oxygen", 32000),
- FluidUtils.getFluidStack("methanol", 32000), },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(Formaldehyde, 32000), },
- 20 * 90,
- 120,
- 1);
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(21),
+ ItemUtils.getSimpleStack(GenericChem.mFormaldehydeCatalyst, 0), },
+ new FluidStack[] { FluidUtils.getFluidStack("oxygen", 32000),
+ FluidUtils.getFluidStack("methanol", 32000), },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(Formaldehyde, 32000), },
+ 20 * 90,
+ 120,
+ 1);
}
private static void createFormaldehydeCatalyst() {
GT_Values.RA.stdBuilder()
- .itemInputs(
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 16L),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Vanadium, 1L),
- GT_Utility.getIntegratedCircuit(18))
- .itemOutputs(ItemUtils.getSimpleStack(Formaldehyde_Catalyst_Dust, 4)).duration(8 * SECONDS)
- .eut(TierEU.RECIPE_LV).addTo(mixerRecipes);
+ .itemInputs(
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 16L),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Vanadium, 1L),
+ GT_Utility.getIntegratedCircuit(18))
+ .itemOutputs(ItemUtils.getSimpleStack(Formaldehyde_Catalyst_Dust, 4))
+ .duration(8 * SECONDS)
+ .eut(TierEU.RECIPE_LV)
+ .addTo(mixerRecipes);
}
private static void createUnsymmetricalDimethylhydrazine() {
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(21),
- ItemUtils.getSimpleStack(GenericChem.mFormaldehydeCatalyst, 0), },
- new FluidStack[] { FluidUtils.getFluidStack("fluid.hydrazine", 2000),
- FluidUtils.getFluidStack(Formaldehyde, 2000), FluidUtils.getFluidStack("hydrogen", 4000), },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(Unsymmetrical_Dimethylhydrazine, 2000),
- FluidUtils.getWater(2000) },
- 20 * 60,
- 120,
- 3);
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(21),
+ ItemUtils.getSimpleStack(GenericChem.mFormaldehydeCatalyst, 0), },
+ new FluidStack[] { FluidUtils.getFluidStack("fluid.hydrazine", 2000),
+ FluidUtils.getFluidStack(Formaldehyde, 2000), FluidUtils.getFluidStack("hydrogen", 4000), },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(Unsymmetrical_Dimethylhydrazine, 2000),
+ FluidUtils.getWater(2000) },
+ 20 * 60,
+ 120,
+ 3);
}
private static void addRocketFuelsToMap() {
HashMap<Integer, GT_Recipe> mRocketFuels = new LinkedHashMap<>();
mRocketFuels.put(
+ 0,
+ new GT_Recipe(
+ true,
+ new ItemStack[] {},
+ new ItemStack[] {},
+ null,
+ new int[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(RP1_Plus_Liquid_Oxygen, 1000) },
+ new FluidStack[] {},
+ 0,
0,
- new GT_Recipe(
- true,
- new ItemStack[] {},
- new ItemStack[] {},
- null,
- new int[] {},
- new FluidStack[] { FluidUtils.getFluidStack(RP1_Plus_Liquid_Oxygen, 1000) },
- new FluidStack[] {},
- 0,
- 0,
- 512)); // Fuel Value
+ 512)); // Fuel Value
mRocketFuels.put(
- 1,
- new GT_Recipe(
- true,
- new ItemStack[] {},
- new ItemStack[] {},
- null,
- new int[] {},
- new FluidStack[] { FluidUtils.getFluidStack(Dense_Hydrazine_Mix, 1000) },
- new FluidStack[] {},
- 0,
- 0,
- 1024)); // Fuel Value
+ 1,
+ new GT_Recipe(
+ true,
+ new ItemStack[] {},
+ new ItemStack[] {},
+ null,
+ new int[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(Dense_Hydrazine_Mix, 1000) },
+ new FluidStack[] {},
+ 0,
+ 0,
+ 1024)); // Fuel Value
mRocketFuels.put(
- 2,
- new GT_Recipe(
- true,
- new ItemStack[] {},
- new ItemStack[] {},
- null,
- new int[] {},
- new FluidStack[] { FluidUtils.getFluidStack(Monomethylhydrazine_Plus_Nitric_Acid, 1000) },
- new FluidStack[] {},
- 0,
- 0,
- 2048)); // Fuel Value
+ 2,
+ new GT_Recipe(
+ true,
+ new ItemStack[] {},
+ new ItemStack[] {},
+ null,
+ new int[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(Monomethylhydrazine_Plus_Nitric_Acid, 1000) },
+ new FluidStack[] {},
+ 0,
+ 0,
+ 2048)); // Fuel Value
mRocketFuels.put(
- 3,
- new GT_Recipe(
- true,
- new ItemStack[] {},
- new ItemStack[] {},
- null,
- new int[] {},
- new FluidStack[] { FluidUtils
- .getFluidStack(Unsymmetrical_Dimethylhydrazine_Plus_Nitrogen_Tetroxide, 1000) },
- new FluidStack[] {},
- 0,
- 0,
- 4196)); // Fuel Value
+ 3,
+ new GT_Recipe(
+ true,
+ new ItemStack[] {},
+ new ItemStack[] {},
+ null,
+ new int[] {},
+ new FluidStack[] {
+ FluidUtils.getFluidStack(Unsymmetrical_Dimethylhydrazine_Plus_Nitrogen_Tetroxide, 1000) },
+ new FluidStack[] {},
+ 0,
+ 0,
+ 4196)); // Fuel Value
// Add in default Diesel for the Buggy
mValidRocketFuels.put(-1, Diesel);
@@ -282,47 +297,46 @@ public class RocketFuels extends ItemPackage {
// RP1_Plus_Liquid_Oxygen
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedCircuit(1), },
- new FluidStack[] { FluidUtils.getFluidStack(Liquid_Oxygen, 2000), FluidUtils.getFluidStack(RP1, 500), },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(RP1_Plus_Liquid_Oxygen, 1500), },
- 20 * 15,
- 240,
- 3);
+ new ItemStack[] { CI.getNumberedCircuit(1), },
+ new FluidStack[] { FluidUtils.getFluidStack(Liquid_Oxygen, 2000), FluidUtils.getFluidStack(RP1, 500), },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(RP1_Plus_Liquid_Oxygen, 1500), },
+ 20 * 15,
+ 240,
+ 3);
// Dense_Hydrazine_Mix
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedCircuit(2), },
- new FluidStack[] { FluidUtils.getFluidStack(Hydrazine, 4000),
- FluidUtils.getFluidStack("methanol", 6000), },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(Dense_Hydrazine_Mix, 10000), },
- 20 * 30,
- 240,
- 4);
+ new ItemStack[] { CI.getNumberedCircuit(2), },
+ new FluidStack[] { FluidUtils.getFluidStack(Hydrazine, 4000), FluidUtils.getFluidStack("methanol", 6000), },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(Dense_Hydrazine_Mix, 10000), },
+ 20 * 30,
+ 240,
+ 4);
// Monomethylhydrazine_Plus_Nitric_Acid
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedCircuit(3), },
- new FluidStack[] { FluidUtils.getFluidStack(Monomethylhydrazine, 2000),
- FluidUtils.getFluidStack("nitricacid", 1000), },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(Monomethylhydrazine_Plus_Nitric_Acid, 2000), },
- 20 * 45,
- 480,
- 5);
+ new ItemStack[] { CI.getNumberedCircuit(3), },
+ new FluidStack[] { FluidUtils.getFluidStack(Monomethylhydrazine, 2000),
+ FluidUtils.getFluidStack("nitricacid", 1000), },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(Monomethylhydrazine_Plus_Nitric_Acid, 2000), },
+ 20 * 45,
+ 480,
+ 5);
// Unsymmetrical_Dimethylhydrazine_Plus_Nitrogen_Tetroxide
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedCircuit(4), },
- new FluidStack[] { FluidUtils.getFluidStack(Unsymmetrical_Dimethylhydrazine, 2000),
- FluidUtils.getFluidStack(Nitrogen_Tetroxide, 2000), },
- new ItemStack[] {},
- new FluidStack[] {
- FluidUtils.getFluidStack(Unsymmetrical_Dimethylhydrazine_Plus_Nitrogen_Tetroxide, 5000), },
- 20 * 60,
- 480,
- 6);
+ new ItemStack[] { CI.getNumberedCircuit(4), },
+ new FluidStack[] { FluidUtils.getFluidStack(Unsymmetrical_Dimethylhydrazine, 2000),
+ FluidUtils.getFluidStack(Nitrogen_Tetroxide, 2000), },
+ new ItemStack[] {},
+ new FluidStack[] {
+ FluidUtils.getFluidStack(Unsymmetrical_Dimethylhydrazine_Plus_Nitrogen_Tetroxide, 5000), },
+ 20 * 60,
+ 480,
+ 6);
}
@Override
@@ -355,10 +369,10 @@ public class RocketFuels extends ItemPackage {
@Override
public void items() {
Formaldehyde_Catalyst_Dust = ItemUtils.generateSpecialUseDusts(
- "FormaldehydeCatalyst",
- "Formaldehyde Catalyst",
- "Fe16V1",
- Utils.rgbtoHexValue(25, 5, 25))[0];
+ "FormaldehydeCatalyst",
+ "Formaldehyde Catalyst",
+ "Fe16V1",
+ Utils.rgbtoHexValue(25, 5, 25))[0];
Formaldehyde_Catalyst_Stack = ItemUtils.getSimpleStack(Formaldehyde_Catalyst_Dust);
}
@@ -369,14 +383,18 @@ public class RocketFuels extends ItemPackage {
public void fluids() {
// Register default fluids
- Diesel = MaterialUtils.getMaterial("Fuel", "Diesel").getFluid(1).getFluid();
+ Diesel = MaterialUtils.getMaterial("Fuel", "Diesel")
+ .getFluid(1)
+ .getFluid();
// 5.08 Compat
if (!FluidUtils.doesFluidExist("liquid_heavy_oil")) {
Oil_Heavy = FluidUtils
- .generateFluidNoPrefix("liquid_heavy_oil", "Heavy Oil", 200, new short[] { 10, 10, 10, 100 });
+ .generateFluidNoPrefix("liquid_heavy_oil", "Heavy Oil", 200, new short[] { 10, 10, 10, 100 });
} else {
- Oil_Heavy = MaterialUtils.getMaterial("OilHeavy", "Oil").getFluid(1).getFluid();
+ Oil_Heavy = MaterialUtils.getMaterial("OilHeavy", "Oil")
+ .getFluid(1)
+ .getFluid();
if (ItemUtils.getItemStackOfAmountFromOreDictNoBroken("cellOilHeavy", 1) == null) {
new BaseItemComponent("OilHeavy", "Heavy Oil", new short[] { 10, 10, 10 });
}
@@ -384,7 +402,7 @@ public class RocketFuels extends ItemPackage {
// Create Kerosene
Kerosene = FluidUtils
- .generateFluidNonMolten("Kerosene", "Kerosene", 233, new short[] { 150, 40, 150, 100 }, null, null);
+ .generateFluidNonMolten("Kerosene", "Kerosene", 233, new short[] { 150, 40, 150, 100 }, null, null);
CoalTar.Coal_Oil = Kerosene;
// RP! Focket Fuel
@@ -392,41 +410,42 @@ public class RocketFuels extends ItemPackage {
// Create Nitrogen Tetroxide
Nitrogen_Tetroxide = FluidUtils.generateFluidNonMolten(
- "NitrogenTetroxide",
- "Nitrogen Tetroxide",
- 261,
- new short[] { 170, 170, 0, 100 },
- null,
- null);
+ "NitrogenTetroxide",
+ "Nitrogen Tetroxide",
+ 261,
+ new short[] { 170, 170, 0, 100 },
+ null,
+ null);
// Create Hydrazine
Hydrazine = FluidUtils
- .generateFluidNonMolten("Hydrazine", "Hydrazine", 275, new short[] { 250, 250, 250, 100 }, null, null);
+ .generateFluidNonMolten("Hydrazine", "Hydrazine", 275, new short[] { 250, 250, 250, 100 }, null, null);
// Create Monomethylhydrazine
Monomethylhydrazine = FluidUtils.generateFluidNonMolten(
- "Monomethylhydrazine",
- "Monomethylhydrazine",
- 221,
- new short[] { 125, 125, 125, 100 },
- null,
- null);
+ "Monomethylhydrazine",
+ "Monomethylhydrazine",
+ 221,
+ new short[] { 125, 125, 125, 100 },
+ null,
+ null);
// Create Anthracene
Nitrous_Oxide = FluidUtils.generateFluidNonMolten(
- "NitrousOxide",
- "Nitrous Oxide",
- 182,
- new short[] { 255, 255, 255, 100 },
- null,
- null);
+ "NitrousOxide",
+ "Nitrous Oxide",
+ 182,
+ new short[] { 255, 255, 255, 100 },
+ null,
+ null);
// Nos
if (!FluidUtils.doesFluidExist("NitrousOxide")) {
Nitrous_Oxide = FluidUtils
- .generateFluidNoPrefix("NitrousOxide", "Nitrous Oxide", 182, new short[] { 255, 255, 255, 100 });
+ .generateFluidNoPrefix("NitrousOxide", "Nitrous Oxide", 182, new short[] { 255, 255, 255, 100 });
} else {
- Nitrous_Oxide = FluidUtils.getWildcardFluidStack("NitrousOxide", 1).getFluid();
+ Nitrous_Oxide = FluidUtils.getWildcardFluidStack("NitrousOxide", 1)
+ .getFluid();
if (ItemUtils.getItemStackOfAmountFromOreDictNoBroken("cellNitrousOxide", 1) == null) {
new BaseItemComponent("NitrousOxide", "Nitrous Oxide", new short[] { 10, 10, 175 });
}
@@ -435,47 +454,50 @@ public class RocketFuels extends ItemPackage {
// Unsymmetrical_Dimethylhydrazine
if (FluidUtils.getFluidStack("1,1dimethylhydrazine", 1) == null) {
Unsymmetrical_Dimethylhydrazine = FluidUtils.generateFluidNonMolten(
- "UnsymmetricalDimethylhydrazine",
- "Unsymmetrical Dimethylhydrazine",
- 216,
- new short[] { 70, 210, 20, 100 },
- null,
- null);
+ "UnsymmetricalDimethylhydrazine",
+ "Unsymmetrical Dimethylhydrazine",
+ 216,
+ new short[] { 70, 210, 20, 100 },
+ null,
+ null);
} else {
- Unsymmetrical_Dimethylhydrazine = FluidUtils.getFluidStack("1,1dimethylhydrazine", 1000).getFluid();
+ Unsymmetrical_Dimethylhydrazine = FluidUtils.getFluidStack("1,1dimethylhydrazine", 1000)
+ .getFluid();
}
// Create Hydrated_Ammonium_Nitrate_Slurry
Hydrated_Ammonium_Nitrate_Slurry = FluidUtils.generateFluidNonMolten(
- "AmmoniumNitrateSlurry",
- "Hydrated Ammonium Nitrate Slurry",
- 450,
- new short[] { 150, 75, 150, 100 },
- null,
- null);
+ "AmmoniumNitrateSlurry",
+ "Hydrated Ammonium Nitrate Slurry",
+ 450,
+ new short[] { 150, 75, 150, 100 },
+ null,
+ null);
// Lithium Hydroperoxide - LiOH + H2O2 → LiOOH + 2 H2O
Ammonium_Nitrate_Dust = ItemUtils.generateSpecialUseDusts(
- "AmmoniumNitrate",
- "Ammonium Nitrate",
- "N2H4O3",
- Utils.rgbtoHexValue(150, 75, 150))[0];
+ "AmmoniumNitrate",
+ "Ammonium Nitrate",
+ "N2H4O3",
+ Utils.rgbtoHexValue(150, 75, 150))[0];
// Create Liquid_Oxygen
if (FluidUtils.getFluidStack("LiquidOxygen", 1) == null
- && FluidUtils.getFluidStack("liquidoxygen", 1) == null) {
+ && FluidUtils.getFluidStack("liquidoxygen", 1) == null) {
Liquid_Oxygen = FluidUtils.generateFluidNonMolten(
- "LiquidOxygen",
- "Liquid Oxygen",
- 54,
- new short[] { 75, 75, 220, 100 },
- null,
- null);
+ "LiquidOxygen",
+ "Liquid Oxygen",
+ 54,
+ new short[] { 75, 75, 220, 100 },
+ null,
+ null);
} else {
if (FluidUtils.getFluidStack("LiquidOxygen", 1) != null) {
- Liquid_Oxygen = FluidUtils.getFluidStack("LiquidOxygen", 1).getFluid();
+ Liquid_Oxygen = FluidUtils.getFluidStack("LiquidOxygen", 1)
+ .getFluid();
} else {
- Liquid_Oxygen = FluidUtils.getFluidStack("liquidoxygen", 1).getFluid();
+ Liquid_Oxygen = FluidUtils.getFluidStack("liquidoxygen", 1)
+ .getFluid();
}
if (ItemUtils.getItemStackOfAmountFromOreDictNoBroken("cellLiquidOxygen", 1) == null) {
new BaseItemComponent("LiquidOxygen", "Liquid Oxygen", new short[] { 10, 10, 175 });
@@ -484,60 +506,57 @@ public class RocketFuels extends ItemPackage {
// Create Liquid_Hydrogen
if (FluidUtils.getFluidStack("LiquidHydrogen", 1) == null
- && FluidUtils.getFluidStack("liquidhydrogen", 1) == null) {
+ && FluidUtils.getFluidStack("liquidhydrogen", 1) == null) {
Liquid_Hydrogen = FluidUtils.generateFluidNonMolten(
- "LiquidHydrogen",
- "Liquid Hydrogen",
- 14,
- new short[] { 75, 75, 220, 100 },
- null,
- null);
+ "LiquidHydrogen",
+ "Liquid Hydrogen",
+ 14,
+ new short[] { 75, 75, 220, 100 },
+ null,
+ null);
} else {
if (FluidUtils.getFluidStack("LiquidHydrogen", 1) != null) {
- Liquid_Hydrogen = FluidUtils.getFluidStack("LiquidHydrogen", 1).getFluid();
+ Liquid_Hydrogen = FluidUtils.getFluidStack("LiquidHydrogen", 1)
+ .getFluid();
} else {
- Liquid_Hydrogen = FluidUtils.getFluidStack("liquidhydrogen", 1).getFluid();
+ Liquid_Hydrogen = FluidUtils.getFluidStack("liquidhydrogen", 1)
+ .getFluid();
}
if (ItemUtils.getItemStackOfAmountFromOreDictNoBroken("cellLiquidHydrogen", 1) == null) {
new BaseItemComponent("LiquidHydrogen", "Liquid Hydrogen", new short[] { 10, 10, 175 });
}
}
- Formaldehyde = FluidUtils.generateFluidNonMolten(
- "Formaldehyde",
- "Formaldehyde",
- 185,
- new short[] { 150, 75, 150, 100 },
- null,
- null);
+ Formaldehyde = FluidUtils
+ .generateFluidNonMolten("Formaldehyde", "Formaldehyde", 185, new short[] { 150, 75, 150, 100 }, null, null);
Unsymmetrical_Dimethylhydrazine_Plus_Nitrogen_Tetroxide = FluidUtils.generateFluidNonMolten(
- "RocketFuelMixA",
- "H8N4C2O4 Rocket Fuel",
- 216,
- new short[] { 50, 220, 50, 100 },
- null,
- null);
+ "RocketFuelMixA",
+ "H8N4C2O4 Rocket Fuel",
+ 216,
+ new short[] { 50, 220, 50, 100 },
+ null,
+ null);
RP1_Plus_Liquid_Oxygen = FluidUtils.generateFluidNonMolten(
- "RocketFuelMixB",
- "Rp-1 Rocket Fuel",
- 250,
- new short[] { 250, 50, 50, 100 },
- null,
- null);
+ "RocketFuelMixB",
+ "Rp-1 Rocket Fuel",
+ 250,
+ new short[] { 250, 50, 50, 100 },
+ null,
+ null);
Monomethylhydrazine_Plus_Nitric_Acid = FluidUtils.generateFluidNonMolten(
- "RocketFuelMixC",
- "CN3H7O3 Rocket Fuel",
- 221,
- new short[] { 125, 75, 180, 100 },
- null,
- null);
+ "RocketFuelMixC",
+ "CN3H7O3 Rocket Fuel",
+ 221,
+ new short[] { 125, 75, 180, 100 },
+ null,
+ null);
Dense_Hydrazine_Mix = FluidUtils.generateFluidNonMolten(
- "RocketFuelMixD",
- "Dense Hydrazine Fuel Mixture",
- 275,
- new short[] { 175, 80, 120, 100 },
- null,
- null);
+ "RocketFuelMixD",
+ "Dense Hydrazine Fuel Mixture",
+ 275,
+ new short[] { 175, 80, 120, 100 },
+ null,
+ null);
}
}
diff --git a/src/main/java/gtPlusPlus/core/item/chemistry/StandardBaseParticles.java b/src/main/java/gtPlusPlus/core/item/chemistry/StandardBaseParticles.java
index 0202c1c54e..1604bcb571 100644
--- a/src/main/java/gtPlusPlus/core/item/chemistry/StandardBaseParticles.java
+++ b/src/main/java/gtPlusPlus/core/item/chemistry/StandardBaseParticles.java
@@ -28,9 +28,8 @@ public class StandardBaseParticles extends BaseItemParticle {
}
private static final String[] aTypes = new String[] { "Graviton", "Up", "Down", "Charm", "Strange", "Top", "Bottom",
- "Electron", "Electron Neutrino", "Muon", "Muon Neutrino", "Tau", "Tau Neutrino", "Gluon", "Photon",
- "Z Boson", "W Boson", "Higgs Boson", "Proton", "Neutron", "Lambda", "Omega", "Pion", "ETA Meson",
- "Unknown" };
+ "Electron", "Electron Neutrino", "Muon", "Muon Neutrino", "Tau", "Tau Neutrino", "Gluon", "Photon", "Z Boson",
+ "W Boson", "Higgs Boson", "Proton", "Neutron", "Lambda", "Omega", "Pion", "ETA Meson", "Unknown" };
public IIcon[] icons = new IIcon[aTypes.length];
@@ -44,7 +43,8 @@ public class StandardBaseParticles extends BaseItemParticle {
MetaToNameMap.put(key, Utils.sanitizeString(s.toLowerCase()));
for (Particle o : Particle.aMap) {
int aColour = 0;
- if (o.mParticleName.toLowerCase().equals(s.toLowerCase())) {
+ if (o.mParticleName.toLowerCase()
+ .equals(s.toLowerCase())) {
if (o.mParticleType == ElementaryGroup.BARYON) {
aColour = Utils.rgbtoHexValue(174, 226, 156);
aColourMap.put(key++, aColour);
@@ -111,23 +111,30 @@ public class StandardBaseParticles extends BaseItemParticle {
EnumChatFormatting aColour = EnumChatFormatting.GRAY;
String aState = aColour + "Unknown" + EnumChatFormatting.RESET;
if (aCharge != null) {
- String aGroup = aCharge.mParticleType.name().toLowerCase();
- if (aGroup.toLowerCase().contains("quark")) {
+ String aGroup = aCharge.mParticleType.name()
+ .toLowerCase();
+ if (aGroup.toLowerCase()
+ .contains("quark")) {
aColour = EnumChatFormatting.LIGHT_PURPLE;
- } else if (aGroup.toLowerCase().contains("lepton")) {
- aColour = EnumChatFormatting.GREEN;
- } else if (aCharge == Particle.HIGGS_BOSON) {
- aColour = EnumChatFormatting.YELLOW;
- } else if (aGroup.toLowerCase().contains("boson")) {
- aColour = EnumChatFormatting.RED;
- } else if (aGroup.toLowerCase().contains("baryon")) {
- aColour = EnumChatFormatting.BLUE;
- } else if (aGroup.toLowerCase().contains("meson")) {
- aColour = EnumChatFormatting.WHITE;
- } else {
- aColour = EnumChatFormatting.GRAY;
- }
- String aFirstLet = aGroup.substring(0, 1).toUpperCase();
+ } else if (aGroup.toLowerCase()
+ .contains("lepton")) {
+ aColour = EnumChatFormatting.GREEN;
+ } else if (aCharge == Particle.HIGGS_BOSON) {
+ aColour = EnumChatFormatting.YELLOW;
+ } else if (aGroup.toLowerCase()
+ .contains("boson")) {
+ aColour = EnumChatFormatting.RED;
+ } else if (aGroup.toLowerCase()
+ .contains("baryon")) {
+ aColour = EnumChatFormatting.BLUE;
+ } else if (aGroup.toLowerCase()
+ .contains("meson")) {
+ aColour = EnumChatFormatting.WHITE;
+ } else {
+ aColour = EnumChatFormatting.GRAY;
+ }
+ String aFirstLet = aGroup.substring(0, 1)
+ .toUpperCase();
aGroup = aGroup.replaceFirst(aGroup.substring(0, 1), aFirstLet);
aState = aColour + aGroup + EnumChatFormatting.RESET;
list.add(EnumChatFormatting.GRAY + "Type: " + aState);
diff --git a/src/main/java/gtPlusPlus/core/item/chemistry/general/ItemGenericChemBase.java b/src/main/java/gtPlusPlus/core/item/chemistry/general/ItemGenericChemBase.java
index 1f4c373578..8ef674ac19 100644
--- a/src/main/java/gtPlusPlus/core/item/chemistry/general/ItemGenericChemBase.java
+++ b/src/main/java/gtPlusPlus/core/item/chemistry/general/ItemGenericChemBase.java
@@ -75,7 +75,7 @@ public class ItemGenericChemBase extends Item {
@Override
public void onUpdate(ItemStack p_77663_1_, World p_77663_2_, Entity p_77663_3_, int p_77663_4_,
- boolean p_77663_5_) {
+ boolean p_77663_5_) {
super.onUpdate(p_77663_1_, p_77663_2_, p_77663_3_, p_77663_4_, p_77663_5_);
}
@@ -162,13 +162,15 @@ public class ItemGenericChemBase extends Item {
@Override
public double getDurabilityForDisplay(ItemStack aStack) {
if (ItemUtils.isMillingBall(aStack)) {
- if (aStack.getTagCompound() == null || aStack.getTagCompound().hasNoTags()) {
+ if (aStack.getTagCompound() == null || aStack.getTagCompound()
+ .hasNoTags()) {
createMillingBallNBT(aStack);
}
double currentDamage = getMillingBallDamage(aStack);
return currentDamage / getMaxBallDurability(aStack);
} else if (ItemUtils.isCatalyst(aStack)) {
- if (aStack.getTagCompound() == null || aStack.getTagCompound().hasNoTags()) {
+ if (aStack.getTagCompound() == null || aStack.getTagCompound()
+ .hasNoTags()) {
createCatalystNBT(aStack);
}
double currentDamage = getCatalystDamage(aStack);
@@ -242,19 +244,23 @@ public class ItemGenericChemBase extends Item {
}
public static int getMillingBallDamage(ItemStack aStack) {
- if (aStack.getTagCompound() == null || aStack.getTagCompound().hasNoTags()) {
+ if (aStack.getTagCompound() == null || aStack.getTagCompound()
+ .hasNoTags()) {
createMillingBallNBT(aStack);
}
NBTTagCompound aNBT = aStack.getTagCompound();
- return aNBT.getCompoundTag("MillingBall").getInteger("Damage");
+ return aNBT.getCompoundTag("MillingBall")
+ .getInteger("Damage");
}
public static int getMillingBallMaxDamage(ItemStack aStack) {
- if (aStack.getTagCompound() == null || aStack.getTagCompound().hasNoTags()) {
+ if (aStack.getTagCompound() == null || aStack.getTagCompound()
+ .hasNoTags()) {
createMillingBallNBT(aStack);
}
NBTTagCompound aNBT = aStack.getTagCompound();
- return aNBT.getCompoundTag("MillingBall").getInteger("MaxDamage");
+ return aNBT.getCompoundTag("MillingBall")
+ .getInteger("MaxDamage");
}
public static void setMillingBallDamage(ItemStack aStack, int aAmount) {
@@ -284,19 +290,23 @@ public class ItemGenericChemBase extends Item {
}
public static int getCatalystDamage(ItemStack aStack) {
- if (aStack.getTagCompound() == null || aStack.getTagCompound().hasNoTags()) {
+ if (aStack.getTagCompound() == null || aStack.getTagCompound()
+ .hasNoTags()) {
createCatalystNBT(aStack);
}
NBTTagCompound aNBT = aStack.getTagCompound();
- return aNBT.getCompoundTag("catalyst").getInteger("Damage");
+ return aNBT.getCompoundTag("catalyst")
+ .getInteger("Damage");
}
public static int getCatalystMaxDamage(ItemStack aStack) {
- if (aStack.getTagCompound() == null || aStack.getTagCompound().hasNoTags()) {
+ if (aStack.getTagCompound() == null || aStack.getTagCompound()
+ .hasNoTags()) {
createCatalystNBT(aStack);
}
NBTTagCompound aNBT = aStack.getTagCompound();
- return aNBT.getCompoundTag("catalyst").getInteger("MaxDamage");
+ return aNBT.getCompoundTag("catalyst")
+ .getInteger("MaxDamage");
}
public static void setCatalystDamage(ItemStack aStack, int aAmount) {
diff --git a/src/main/java/gtPlusPlus/core/item/circuit/GTPP_IntegratedCircuit_Item.java b/src/main/java/gtPlusPlus/core/item/circuit/GTPP_IntegratedCircuit_Item.java
index e70561efac..11bbac53a3 100644
--- a/src/main/java/gtPlusPlus/core/item/circuit/GTPP_IntegratedCircuit_Item.java
+++ b/src/main/java/gtPlusPlus/core/item/circuit/GTPP_IntegratedCircuit_Item.java
@@ -72,13 +72,17 @@ public class GTPP_IntegratedCircuit_Item extends Item implements INetworkUpdatab
try {
aList.add("Configuration == " + aStack.getItemDamage());
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"));
} catch (Throwable t) {
t.printStackTrace();
}
@@ -132,7 +136,8 @@ public class GTPP_IntegratedCircuit_Item extends Item implements INetworkUpdatab
if (toolIndex == null) return true;
ItemStack[] mainInventory = player.inventory.mainInventory;
- mainInventory[toolIndex.getKey()] = toolIndex.getValue().apply(mainInventory[toolIndex.getKey()], player);
+ mainInventory[toolIndex.getKey()] = toolIndex.getValue()
+ .apply(mainInventory[toolIndex.getKey()], player);
}
stack.setItemDamage(meta);
@@ -152,18 +157,18 @@ public class GTPP_IntegratedCircuit_Item extends Item implements INetworkUpdatab
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()];
@@ -174,14 +179,14 @@ public class GTPP_IntegratedCircuit_Item extends Item implements INetworkUpdatab
private void openSelectorGui(ItemStack configurator, int meta, EntityPlayer player) {
UIInfos.openClientUI(
- player,
- buildContext -> new SelectItemUIFactory(
- StatCollector.translateToLocal("GT5U.item.programmed_circuit.select.header"),
- configurator,
- GTPP_IntegratedCircuit_Item::onConfigured,
- ALL_VARIANTS,
- meta,
- true).createWindow(buildContext));
+ player,
+ buildContext -> new SelectItemUIFactory(
+ StatCollector.translateToLocal("GT5U.item.programmed_circuit.select.header"),
+ configurator,
+ GTPP_IntegratedCircuit_Item::onConfigured,
+ ALL_VARIANTS,
+ meta,
+ true).createWindow(buildContext));
}
private static void onConfigured(ItemStack stack) {
@@ -191,7 +196,7 @@ public class GTPP_IntegratedCircuit_Item extends Item implements INetworkUpdatab
}
private static Pair<Integer, BiFunction<ItemStack, EntityPlayerMP, ItemStack>> findConfiguratorInInv(
- EntityPlayer player) {
+ EntityPlayer player) {
ItemStack[] mainInventory = player.inventory.mainInventory;
for (int j = 0, mainInventoryLength = mainInventory.length; j < mainInventoryLength; j++) {
ItemStack toolStack = mainInventory[j];
@@ -199,8 +204,9 @@ public class GTPP_IntegratedCircuit_Item extends Item implements INetworkUpdatab
if (!GT_Utility.isStackValid(toolStack)) continue;
for (Map.Entry<Predicate<ItemStack>, BiFunction<ItemStack, EntityPlayerMP, ItemStack>> p : GregTech_API.sCircuitProgrammerList
- .entrySet())
- if (p.getKey().test(toolStack)) return Pair.of(j, p.getValue());
+ .entrySet())
+ if (p.getKey()
+ .test(toolStack)) return Pair.of(j, p.getValue());
}
return null;
}
diff --git a/src/main/java/gtPlusPlus/core/item/crafting/ItemDummyResearch.java b/src/main/java/gtPlusPlus/core/item/crafting/ItemDummyResearch.java
index 9da7de5578..51bff6f12b 100644
--- a/src/main/java/gtPlusPlus/core/item/crafting/ItemDummyResearch.java
+++ b/src/main/java/gtPlusPlus/core/item/crafting/ItemDummyResearch.java
@@ -74,12 +74,12 @@ public class ItemDummyResearch extends ItemGenericToken {
@Override
public boolean register(int id, String aLocalName, int aMaxStack, String aDescript) {
return register(
- id,
- aLocalName,
- 1,
- new String[] { aDescript, EnumChatFormatting.DARK_GRAY + "Used to further your knowledge" },
- EnumRarity.common,
- EnumChatFormatting.LIGHT_PURPLE);
+ id,
+ aLocalName,
+ 1,
+ new String[] { aDescript, EnumChatFormatting.DARK_GRAY + "Used to further your knowledge" },
+ EnumRarity.common,
+ EnumChatFormatting.LIGHT_PURPLE);
}
@Override
diff --git a/src/main/java/gtPlusPlus/core/item/food/BaseItemMetaFood.java b/src/main/java/gtPlusPlus/core/item/food/BaseItemMetaFood.java
index 7aaa5ffc53..a307eb48ac 100644
--- a/src/main/java/gtPlusPlus/core/item/food/BaseItemMetaFood.java
+++ b/src/main/java/gtPlusPlus/core/item/food/BaseItemMetaFood.java
@@ -42,58 +42,58 @@ public class BaseItemMetaFood extends ItemFood {
public static void registerMetaFoods() {
registerNewMetaFood(
- 0,
- "I wouldn't eat this unless I was starving",
- 2,
- 0,
- 64,
- getPotionEffectPackage(new EffectWeaknessModerate(80), new EffectSlownessModerate(80)),
- getOreDictNamesAsArrayList("listAllmeatraw"));
+ 0,
+ "I wouldn't eat this unless I was starving",
+ 2,
+ 0,
+ 64,
+ getPotionEffectPackage(new EffectWeaknessModerate(80), new EffectSlownessModerate(80)),
+ getOreDictNamesAsArrayList("listAllmeatraw"));
registerNewMetaFood(
- 1,
- "Doesn't look any better cooked",
- 4,
- 1,
- 64,
- getPotionEffectPackage(new EffectWeaknessBasic(50), new EffectSlownessBasic(50)),
- getOreDictNamesAsArrayList("listAllmeatcooked"));
+ 1,
+ "Doesn't look any better cooked",
+ 4,
+ 1,
+ 64,
+ getPotionEffectPackage(new EffectWeaknessBasic(50), new EffectSlownessBasic(50)),
+ getOreDictNamesAsArrayList("listAllmeatcooked"));
registerNewMetaFood(
- 2,
- "",
- 2,
- 0,
- 64,
- getPotionEffectPackage(new EffectWeaknessBasic(30), new EffectSlownessBasic(30)),
- getOreDictNamesAsArrayList("listAllmeatraw"));
+ 2,
+ "",
+ 2,
+ 0,
+ 64,
+ getPotionEffectPackage(new EffectWeaknessBasic(30), new EffectSlownessBasic(30)),
+ getOreDictNamesAsArrayList("listAllmeatraw"));
registerNewMetaFood(3, "", 4, 1, 64, getOreDictNamesAsArrayList("listAllmeatcooked"));
registerNewMetaFood(
- 4,
- "",
- 2,
- 0,
- 64,
- getPotionEffectPackage(new EffectWeaknessBasic(25), new EffectSlownessBasic(30)),
- getOreDictNamesAsArrayList("listAllmeatraw"));
+ 4,
+ "",
+ 2,
+ 0,
+ 64,
+ getPotionEffectPackage(new EffectWeaknessBasic(25), new EffectSlownessBasic(30)),
+ getOreDictNamesAsArrayList("listAllmeatraw"));
registerNewMetaFood(5, "", 4, 1, 64, getOreDictNamesAsArrayList("listAllmeatcooked"));
registerNewMetaFood(
- 6,
- "",
- 2,
- 0,
- 64,
- getPotionEffectPackage(new EffectWeaknessBasic(30), new EffectSlownessBasic(25)),
- getOreDictNamesAsArrayList("listAllmeatraw"));
+ 6,
+ "",
+ 2,
+ 0,
+ 64,
+ getPotionEffectPackage(new EffectWeaknessBasic(30), new EffectSlownessBasic(25)),
+ getOreDictNamesAsArrayList("listAllmeatraw"));
registerNewMetaFood(7, "", 4, 1, 64, getOreDictNamesAsArrayList("listAllmeatcooked"));
registerNewMetaFood(
- 8,
- "Warm to the touch",
- EnumRarity.uncommon,
- 4,
- 1,
- 64,
- new AutoMap<>(),
- new setOnFire(),
- getOreDictNamesAsArrayList("listAllmeatcooked"));
+ 8,
+ "Warm to the touch",
+ EnumRarity.uncommon,
+ 4,
+ 1,
+ 64,
+ new AutoMap<>(),
+ new setOnFire(),
+ getOreDictNamesAsArrayList("listAllmeatcooked"));
}
private static final HashMap<Integer, Integer> mMaxStackSizeMap = new HashMap<>();
@@ -107,82 +107,81 @@ public class BaseItemMetaFood extends ItemFood {
private static final HashMap<Integer, ArrayList<String>> mOreDictNames = new HashMap<>();
public static void registerNewMetaFood(final int aMetaID, String aTooltip, final int aHealAmount,
- final float aSaturationModifier, final int aMaxStacksize) {
+ final float aSaturationModifier, final int aMaxStacksize) {
registerNewMetaFood(
- aMetaID,
- aTooltip,
- EnumRarity.common,
- aHealAmount,
- aSaturationModifier,
- aMaxStacksize,
- new AutoMap<>(),
- null,
- new ArrayList<>());
+ aMetaID,
+ aTooltip,
+ EnumRarity.common,
+ aHealAmount,
+ aSaturationModifier,
+ aMaxStacksize,
+ new AutoMap<>(),
+ null,
+ new ArrayList<>());
}
public static void registerNewMetaFood(final int aMetaID, String aTooltip, final int aHealAmount,
- final float aSaturationModifier, final int aMaxStacksize, final ArrayList<String> aOreDictNames) {
+ final float aSaturationModifier, final int aMaxStacksize, final ArrayList<String> aOreDictNames) {
registerNewMetaFood(
- aMetaID,
- aTooltip,
- EnumRarity.common,
- aHealAmount,
- aSaturationModifier,
- aMaxStacksize,
- new AutoMap<>(),
- null,
- aOreDictNames);
+ aMetaID,
+ aTooltip,
+ EnumRarity.common,
+ aHealAmount,
+ aSaturationModifier,
+ aMaxStacksize,
+ new AutoMap<>(),
+ null,
+ aOreDictNames);
}
public static void registerNewMetaFood(final int aMetaID, String aTooltip, final int aHealAmount,
- final float aSaturationModifier, final int aMaxStacksize,
- final AutoMap<PotionEffectPackage> aPotionEffects) {
+ final float aSaturationModifier, final int aMaxStacksize, final AutoMap<PotionEffectPackage> aPotionEffects) {
registerNewMetaFood(
- aMetaID,
- aTooltip,
- EnumRarity.common,
- aHealAmount,
- aSaturationModifier,
- aMaxStacksize,
- new AutoMap<>(),
- null,
- new ArrayList<>());
+ aMetaID,
+ aTooltip,
+ EnumRarity.common,
+ aHealAmount,
+ aSaturationModifier,
+ aMaxStacksize,
+ new AutoMap<>(),
+ null,
+ new ArrayList<>());
}
public static void registerNewMetaFood(final int aMetaID, String aTooltip, final int aHealAmount,
- final float aSaturationModifier, final int aMaxStacksize, final AutoMap<PotionEffectPackage> aPotionEffects,
- final ArrayList<String> aOreDictNames) {
+ final float aSaturationModifier, final int aMaxStacksize, final AutoMap<PotionEffectPackage> aPotionEffects,
+ final ArrayList<String> aOreDictNames) {
registerNewMetaFood(
- aMetaID,
- aTooltip,
- EnumRarity.common,
- aHealAmount,
- aSaturationModifier,
- aMaxStacksize,
- aPotionEffects,
- null,
- aOreDictNames);
+ aMetaID,
+ aTooltip,
+ EnumRarity.common,
+ aHealAmount,
+ aSaturationModifier,
+ aMaxStacksize,
+ aPotionEffects,
+ null,
+ aOreDictNames);
}
public static void registerNewMetaFood(final int aMetaID, String aTooltip, EnumRarity aRarity,
- final int aHealAmount, final float aSaturationModifier, final int aMaxStacksize,
- final AutoMap<PotionEffectPackage> aPotionEffects, final SpecialFoodBehaviour aSpecialBehaviour) {
+ final int aHealAmount, final float aSaturationModifier, final int aMaxStacksize,
+ final AutoMap<PotionEffectPackage> aPotionEffects, final SpecialFoodBehaviour aSpecialBehaviour) {
registerNewMetaFood(
- aMetaID,
- aTooltip,
- EnumRarity.common,
- aHealAmount,
- aSaturationModifier,
- aMaxStacksize,
- aPotionEffects,
- null,
- new ArrayList<>());
+ aMetaID,
+ aTooltip,
+ EnumRarity.common,
+ aHealAmount,
+ aSaturationModifier,
+ aMaxStacksize,
+ aPotionEffects,
+ null,
+ new ArrayList<>());
}
public static void registerNewMetaFood(final int aMetaID, String aTooltip, EnumRarity aRarity,
- final int aHealAmount, final float aSaturationModifier, final int aMaxStacksize,
- final AutoMap<PotionEffectPackage> aPotionEffects, final SpecialFoodBehaviour aSpecialBehaviour,
- final ArrayList<String> aOreDictNames) {
+ final int aHealAmount, final float aSaturationModifier, final int aMaxStacksize,
+ final AutoMap<PotionEffectPackage> aPotionEffects, final SpecialFoodBehaviour aSpecialBehaviour,
+ final ArrayList<String> aOreDictNames) {
mTotalMetaItems++;
mMaxStackSizeMap.put(aMetaID, aMaxStacksize);
mTooltipMap.put(aMetaID, aTooltip);
@@ -253,11 +252,11 @@ public class BaseItemMetaFood extends ItemFood {
PotionEffect aEffect = aFoodEffect.getEffect();
if (aEffect != null && aEffect.getPotionID() > 0) {
aPlayer.addPotionEffect(
- new PotionEffect(
- aEffect.getPotionID(),
- aEffect.getDuration() * 20,
- aEffect.getAmplifier(),
- aEffect.getIsAmbient()));
+ new PotionEffect(
+ aEffect.getPotionID(),
+ aEffect.getDuration() * 20,
+ aEffect.getAmplifier(),
+ aEffect.getIsAmbient()));
}
}
}
@@ -294,7 +293,7 @@ public class BaseItemMetaFood extends ItemFood {
@Override
public void onUpdate(ItemStack p_77663_1_, World p_77663_2_, Entity p_77663_3_, int p_77663_4_,
- boolean p_77663_5_) {
+ boolean p_77663_5_) {
super.onUpdate(p_77663_1_, p_77663_2_, p_77663_3_, p_77663_4_, p_77663_5_);
}
diff --git a/src/main/java/gtPlusPlus/core/item/general/BufferCore.java b/src/main/java/gtPlusPlus/core/item/general/BufferCore.java
index 653b7bdcb6..69257afb0e 100644
--- a/src/main/java/gtPlusPlus/core/item/general/BufferCore.java
+++ b/src/main/java/gtPlusPlus/core/item/general/BufferCore.java
@@ -41,9 +41,9 @@ public class BufferCore extends BaseItemWithDamageValue {
@Override
public void addInformation(final ItemStack stack, final EntityPlayer aPlayer, final List list, final boolean bool) {
list.add(
- EnumChatFormatting.GRAY + "A key crafting component for "
- + GT_Values.VN[this.coreTier - 1]
- + " Applicances");
+ EnumChatFormatting.GRAY + "A key crafting component for "
+ + GT_Values.VN[this.coreTier - 1]
+ + " Applicances");
}
public final int getCoreTier() {
@@ -54,15 +54,13 @@ public class BufferCore extends BaseItemWithDamageValue {
public int getColorFromItemStack(final ItemStack stack, int HEX_OxFFFFFF) {
int[] mTierTypes = new int[] { Utils.rgbtoHexValue(200, 180, 180), Utils.rgbtoHexValue(142, 153, 161),
- Utils.rgbtoHexValue(230, 121, 75), Utils.rgbtoHexValue(215, 156, 70), Utils.rgbtoHexValue(97, 97, 96), // EV
- Utils.rgbtoHexValue(202, 202, 201), Utils.rgbtoHexValue(247, 159, 157),
- Utils.rgbtoHexValue(181, 223, 223), Utils.rgbtoHexValue(187, 219, 185), };
+ Utils.rgbtoHexValue(230, 121, 75), Utils.rgbtoHexValue(215, 156, 70), Utils.rgbtoHexValue(97, 97, 96), // EV
+ Utils.rgbtoHexValue(202, 202, 201), Utils.rgbtoHexValue(247, 159, 157), Utils.rgbtoHexValue(181, 223, 223),
+ Utils.rgbtoHexValue(187, 219, 185), };
if (this.coreTier == 10) {
- return Utils.rgbtoHexValue(
- MathUtils.randInt(220, 250),
- MathUtils.randInt(221, 251),
- MathUtils.randInt(220, 250));
+ return Utils
+ .rgbtoHexValue(MathUtils.randInt(220, 250), MathUtils.randInt(221, 251), MathUtils.randInt(220, 250));
}
return mTierTypes[this.coreTier - 1];
diff --git a/src/main/java/gtPlusPlus/core/item/general/ItemBlueprint.java b/src/main/java/gtPlusPlus/core/item/general/ItemBlueprint.java
index 61bdfe6705..c6e0743268 100644
--- a/src/main/java/gtPlusPlus/core/item/general/ItemBlueprint.java
+++ b/src/main/java/gtPlusPlus/core/item/general/ItemBlueprint.java
@@ -37,7 +37,7 @@ public class ItemBlueprint extends Item implements IItemBlueprint {
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public void addInformation(final ItemStack itemStack, final EntityPlayer aPlayer, final List list,
- final boolean bool) {
+ final boolean bool) {
// Create some NBT if it's not there, otherwise this does nothing.
if (!itemStack.hasTagCompound()) {
this.createNBT(itemStack);
@@ -57,15 +57,14 @@ public class ItemBlueprint extends Item implements IItemBlueprint {
if (itemStack.hasTagCompound()) {
if (id != -1) {
list.add(
- EnumChatFormatting.GRAY + StatCollector.translateToLocalFormatted(
- StatCollector.translateToLocal("item.itemBlueprint.tooltip.0"),
- id));
+ EnumChatFormatting.GRAY + StatCollector
+ .translateToLocalFormatted(StatCollector.translateToLocal("item.itemBlueprint.tooltip.0"), id));
}
if (blueprint) {
list.add(
- EnumChatFormatting.BLUE + StatCollector.translateToLocalFormatted(
- StatCollector.translateToLocal("item.itemBlueprint.tooltip.1"),
- name));
+ EnumChatFormatting.BLUE + StatCollector.translateToLocalFormatted(
+ StatCollector.translateToLocal("item.itemBlueprint.tooltip.1"),
+ name));
} else {
list.add(EnumChatFormatting.RED + StatCollector.translateToLocal("item.itemBlueprint.tooltip.2"));
}
@@ -82,22 +81,22 @@ public class ItemBlueprint extends Item implements IItemBlueprint {
@Override
public void onUpdate(final ItemStack itemStack, final World par2World, final Entity par3Entity, final int par4,
- final boolean par5) {}
+ final boolean par5) {}
@Override
public ItemStack onItemRightClick(final ItemStack itemStack, final World world, final EntityPlayer par3Entity) {
// Let the player know what blueprint is held
if (itemStack.hasTagCompound()) {
PlayerUtils.messagePlayer(
- par3Entity,
- "This Blueprint holds NBT data. " + "|"
- + this.getNBT(itemStack, "mID")
- + "|"
- + this.getNBT(itemStack, "mBlueprint")
- + "|"
- + this.getNBT(itemStack, "mName")
- + "|"
- + ItemUtils.getArrayStackNames(this.readItemsFromNBT(itemStack)));
+ par3Entity,
+ "This Blueprint holds NBT data. " + "|"
+ + this.getNBT(itemStack, "mID")
+ + "|"
+ + this.getNBT(itemStack, "mBlueprint")
+ + "|"
+ + this.getNBT(itemStack, "mName")
+ + "|"
+ + ItemUtils.getArrayStackNames(this.readItemsFromNBT(itemStack)));
} else {
this.createNBT(itemStack);
PlayerUtils.messagePlayer(par3Entity, "This is a placeholder. " + this.getNBT(itemStack, "mID"));
@@ -170,7 +169,8 @@ public class ItemBlueprint extends Item implements IItemBlueprint {
}
this.writeItemsToNBT(stack, blueprint);
if (stack.hasTagCompound()) {
- if (stack.getTagCompound().getCompoundTag("Items") != null) {
+ if (stack.getTagCompound()
+ .getCompoundTag("Items") != null) {
stack.stackTagCompound.setBoolean("mBlueprint", true);
} else {
// Invalid BP saved?
@@ -226,19 +226,21 @@ public class ItemBlueprint extends Item implements IItemBlueprint {
public boolean createNBT(final ItemStack itemStack) {
if (itemStack.hasTagCompound()) {
- if (!itemStack.stackTagCompound.getBoolean("mBlueprint")
- && !itemStack.stackTagCompound.getString("mName").equals("")) {
+ if (!itemStack.stackTagCompound.getBoolean("mBlueprint") && !itemStack.stackTagCompound.getString("mName")
+ .equals("")) {
// No Blueprint and no name Set
Logger.WARNING("No Blueprint and no name Set");
return false;
} else if (itemStack.stackTagCompound.getBoolean("mBlueprint")
- && !itemStack.stackTagCompound.getString("mName").equals("")) {
+ && !itemStack.stackTagCompound.getString("mName")
+ .equals("")) {
// Has Blueprint but invalid name set
Logger.WARNING("Has Blueprint but invalid name set");
return false;
} else
if (!itemStack.stackTagCompound.getBoolean("mBlueprint")
- && itemStack.stackTagCompound.getString("mName").equals("")) {
+ && itemStack.stackTagCompound.getString("mName")
+ .equals("")) {
// Has no Blueprint, but strangely has a name
Logger.WARNING("Has no Blueprint, but strangely has a name");
return false;
diff --git a/src/main/java/gtPlusPlus/core/item/general/ItemCloakingDevice.java b/src/main/java/gtPlusPlus/core/item/general/ItemCloakingDevice.java
index 3193262859..9e5cf0a69d 100644
--- a/src/main/java/gtPlusPlus/core/item/general/ItemCloakingDevice.java
+++ b/src/main/java/gtPlusPlus/core/item/general/ItemCloakingDevice.java
@@ -28,8 +28,8 @@ import ic2.api.item.IElectricItem;
import ic2.api.item.IElectricItemManager;
@Optional.InterfaceList(
- value = { @Optional.Interface(iface = "baubles.api.IBauble", modid = Names.BAUBLES),
- @Optional.Interface(iface = "baubles.api.BaubleType", modid = Names.BAUBLES) })
+ value = { @Optional.Interface(iface = "baubles.api.IBauble", modid = Names.BAUBLES),
+ @Optional.Interface(iface = "baubles.api.BaubleType", modid = Names.BAUBLES) })
public class ItemCloakingDevice extends Item implements IElectricItem, IElectricItemManager, IBauble {
private final String unlocalizedName = "personalCloakingDevice";
@@ -133,25 +133,25 @@ public class ItemCloakingDevice extends Item implements IElectricItem, IElectric
list.add("");
list.add(StatCollector.translateToLocal("item.personalCloakingDevice.tooltip.2"));
list.add(
- StatCollector.translateToLocalFormatted(
- "item.personalCloakingDevice.tooltip.3",
- GT_Utility.formatNumbers(this.getTier(this.thisStack)),
- GT_Utility.formatNumbers(this.getTransferLimit(this.thisStack))));
+ StatCollector.translateToLocalFormatted(
+ "item.personalCloakingDevice.tooltip.3",
+ GT_Utility.formatNumbers(this.getTier(this.thisStack)),
+ GT_Utility.formatNumbers(this.getTransferLimit(this.thisStack))));
list.add(
- StatCollector.translateToLocalFormatted(
- "item.personalCloakingDevice.tooltip.4",
- GT_Utility.formatNumbers(this.getCharge(stack)),
- MathUtils.findPercentage(this.getCharge(stack), this.getMaxCharge(stack))));
+ StatCollector.translateToLocalFormatted(
+ "item.personalCloakingDevice.tooltip.4",
+ GT_Utility.formatNumbers(this.getCharge(stack)),
+ MathUtils.findPercentage(this.getCharge(stack), this.getMaxCharge(stack))));
list.add(
- StatCollector.translateToLocalFormatted(
- "item.personalCloakingDevice.tooltip.5",
- GT_Utility.formatNumbers(this.secondsLeft(stack))));
+ StatCollector.translateToLocalFormatted(
+ "item.personalCloakingDevice.tooltip.5",
+ GT_Utility.formatNumbers(this.secondsLeft(stack))));
super.addInformation(stack, aPlayer, list, bool);
}
@Override
public double charge(final ItemStack stack, final double amount, final int tier, final boolean ignoreTransferLimit,
- final boolean simulate) {
+ final boolean simulate) {
if (!simulate) {
ElectricItem.manager.charge(stack, amount, tier, true, simulate);
@@ -161,7 +161,7 @@ public class ItemCloakingDevice extends Item implements IElectricItem, IElectric
@Override
public double discharge(final ItemStack stack, final double amount, final int tier,
- final boolean ignoreTransferLimit, final boolean externally, final boolean simulate) {
+ final boolean ignoreTransferLimit, final boolean externally, final boolean simulate) {
if (!simulate) {
ElectricItem.manager.discharge(stack, amount, tier, ignoreTransferLimit, externally, simulate);
}
diff --git a/src/main/java/gtPlusPlus/core/item/general/ItemGenericToken.java b/src/main/java/gtPlusPlus/core/item/general/ItemGenericToken.java
index d457369a4c..c1bea0b81d 100644
--- a/src/main/java/gtPlusPlus/core/item/general/ItemGenericToken.java
+++ b/src/main/java/gtPlusPlus/core/item/general/ItemGenericToken.java
@@ -36,16 +36,16 @@ public class ItemGenericToken extends CoreItem {
public ItemGenericToken(String aUnlocalName, String aInternalName, String[] aBaseTooltip, String aTextureDir) {
super(
- aUnlocalName,
- aInternalName,
- AddToCreativeTab.tabMisc,
- 64,
- 1000,
- aBaseTooltip,
- EnumRarity.common,
- EnumChatFormatting.RESET,
- false,
- null);
+ aUnlocalName,
+ aInternalName,
+ AddToCreativeTab.tabMisc,
+ 64,
+ 1000,
+ aBaseTooltip,
+ EnumRarity.common,
+ EnumChatFormatting.RESET,
+ false,
+ null);
mLocalNames = new HashMap<>();
mMaxStackSizes = new HashMap<>();
mDescriptionArrays = new HashMap<>();
@@ -65,7 +65,7 @@ public class ItemGenericToken extends CoreItem {
}
public boolean register(int id, String aLocalName, int aMaxStack, String[] aDescript, EnumRarity aRarity,
- EnumChatFormatting aCustomNameColour) {
+ EnumChatFormatting aCustomNameColour) {
int[][] sizes = new int[2][6];
sizes[0][0] = mLocalNames.size();
sizes[0][1] = mMaxStackSizes.size();
@@ -75,13 +75,13 @@ public class ItemGenericToken extends CoreItem {
// sizes[0][5] = mIcons.size();
mLocalNames.put(id, aLocalName);
GT_LanguageManager
- .addStringLocalization("gtplusplus." + this.getUnlocalizedName() + "." + id + ".name", aLocalName);
+ .addStringLocalization("gtplusplus." + this.getUnlocalizedName() + "." + id + ".name", aLocalName);
mMaxStackSizes.put(id, aMaxStack);
mDescriptionArrays.put(id, aDescript);
for (int i = 0; i < aDescript.length; i++) {
GT_LanguageManager.addStringLocalization(
- "gtplusplus." + this.getUnlocalizedName() + "." + id + ".tooltip." + i,
- aDescript[i]);
+ "gtplusplus." + this.getUnlocalizedName() + "." + id + ".tooltip." + i,
+ aDescript[i]);
}
mRarities.put(id, aRarity);
mCustomNameColours.put(id, aCustomNameColour);
@@ -92,9 +92,9 @@ public class ItemGenericToken extends CoreItem {
sizes[1][4] = mCustomNameColours.size();
// sizes[1][5] = mIcons.size();
boolean b = sizes[0][0] > sizes[1][0] && sizes[0][1] > sizes[1][1]
- && sizes[0][2] > sizes[1][2]
- && sizes[0][3] > sizes[1][3]
- && sizes[0][4] > sizes[1][4];
+ && sizes[0][2] > sizes[1][2]
+ && sizes[0][3] > sizes[1][3]
+ && sizes[0][4] > sizes[1][4];
return b;
}
@@ -114,11 +114,11 @@ public class ItemGenericToken extends CoreItem {
super.addInformation(stack, aPlayer, list, bool);
for (int i = 0;; i++) {
String tooltip = GT_LanguageManager.getTranslation(
- "gtplusplus." + this
- .getUnlocalizedNameInefficiently(stack) + "." + stack.getItemDamage() + ".tooltip." + i);
+ "gtplusplus." + this
+ .getUnlocalizedNameInefficiently(stack) + "." + stack.getItemDamage() + ".tooltip." + i);
if (!("gtplusplus." + this
- .getUnlocalizedNameInefficiently(stack) + "." + stack.getItemDamage() + ".tooltip." + i)
- .equals(tooltip)) {
+ .getUnlocalizedNameInefficiently(stack) + "." + stack.getItemDamage() + ".tooltip." + i)
+ .equals(tooltip)) {
list.add(tooltip);
} else break;
}
@@ -127,7 +127,7 @@ public class ItemGenericToken extends CoreItem {
@Override
public String getItemStackDisplayName(final ItemStack tItem) {
String ret = GT_LanguageManager.getTranslation(
- "gtplusplus." + this.getUnlocalizedNameInefficiently(tItem) + "." + tItem.getItemDamage() + ".name");
+ "gtplusplus." + this.getUnlocalizedNameInefficiently(tItem) + "." + tItem.getItemDamage() + ".name");
EnumChatFormatting format = mCustomNameColours.get(tItem.getItemDamage());
if (format != null) {
ret = format + ret;
diff --git a/src/main/java/gtPlusPlus/core/item/general/ItemHalfCompleteCasings.java b/src/main/java/gtPlusPlus/core/item/general/ItemHalfCompleteCasings.java
index b4f32e81fd..47cd73a62b 100644
--- a/src/main/java/gtPlusPlus/core/item/general/ItemHalfCompleteCasings.java
+++ b/src/main/java/gtPlusPlus/core/item/general/ItemHalfCompleteCasings.java
@@ -14,7 +14,7 @@ import gtPlusPlus.core.util.Utils;
public class ItemHalfCompleteCasings extends BaseItemColourable {
public ItemHalfCompleteCasings(String unlocalizedName, CreativeTabs creativeTab, int stackSize, int maxDmg,
- String description, EnumRarity regRarity, EnumChatFormatting colour, boolean Effect, int rgb) {
+ String description, EnumRarity regRarity, EnumChatFormatting colour, boolean Effect, int rgb) {
super(unlocalizedName, creativeTab, stackSize, maxDmg, description, regRarity, colour, Effect, rgb);
}
diff --git a/src/main/java/gtPlusPlus/core/item/general/ItemHealingDevice.java b/src/main/java/gtPlusPlus/core/item/general/ItemHealingDevice.java
index e1b2ee1a06..d80238b99a 100644
--- a/src/main/java/gtPlusPlus/core/item/general/ItemHealingDevice.java
+++ b/src/main/java/gtPlusPlus/core/item/general/ItemHealingDevice.java
@@ -33,8 +33,8 @@ import ic2.api.item.IElectricItem;
import ic2.api.item.IElectricItemManager;
@Optional.InterfaceList(
- value = { @Optional.Interface(iface = "baubles.api.IBauble", modid = Mods.Names.BAUBLES),
- @Optional.Interface(iface = "baubles.api.BaubleType", modid = Mods.Names.BAUBLES) })
+ value = { @Optional.Interface(iface = "baubles.api.IBauble", modid = Mods.Names.BAUBLES),
+ @Optional.Interface(iface = "baubles.api.BaubleType", modid = Mods.Names.BAUBLES) })
public class ItemHealingDevice extends Item implements IElectricItem, IElectricItemManager, IBauble {
private final String unlocalizedName = "personalHealingDevice";
@@ -51,7 +51,7 @@ public class ItemHealingDevice extends Item implements IElectricItem, IElectricI
@Override
public void onUpdate(final ItemStack itemStack, final World worldObj, final Entity player, final int p_77663_4_,
- final boolean p_77663_5_) {
+ final boolean p_77663_5_) {
if (worldObj.isRemote) {
return;
}
@@ -137,10 +137,10 @@ public class ItemHealingDevice extends Item implements IElectricItem, IElectricI
list.add(EnumChatFormatting.GREEN + aString1 + EnumChatFormatting.GRAY);
list.add(
- EnumChatFormatting.GREEN + aString2
- + GT_Utility.formatNumbers(EUPerOperation)
- + aString3
- + EnumChatFormatting.GRAY);
+ EnumChatFormatting.GREEN + aString2
+ + GT_Utility.formatNumbers(EUPerOperation)
+ + aString3
+ + EnumChatFormatting.GRAY);
list.add(EnumChatFormatting.GREEN + aString4 + EnumChatFormatting.GRAY);
list.add(EnumChatFormatting.RED + aString5 + EnumChatFormatting.GRAY);
@@ -148,45 +148,44 @@ public class ItemHealingDevice extends Item implements IElectricItem, IElectricI
list.add(EnumChatFormatting.GOLD + aEuInfo + EnumChatFormatting.GRAY);
list.add(
- EnumChatFormatting.GRAY + aTier
- + ": ["
- + EnumChatFormatting.YELLOW
- + GT_Utility.formatNumbers(this.getTier(stack))
- + EnumChatFormatting.GRAY
- + "] "
- + aInputLimit
- + ": ["
- + EnumChatFormatting.YELLOW
- + GT_Utility.formatNumbers(this.getTransferLimit(stack))
- + EnumChatFormatting.GRAY
- + aEUT
- + "]");
+ EnumChatFormatting.GRAY + aTier
+ + ": ["
+ + EnumChatFormatting.YELLOW
+ + GT_Utility.formatNumbers(this.getTier(stack))
+ + EnumChatFormatting.GRAY
+ + "] "
+ + aInputLimit
+ + ": ["
+ + EnumChatFormatting.YELLOW
+ + GT_Utility.formatNumbers(this.getTransferLimit(stack))
+ + EnumChatFormatting.GRAY
+ + aEUT
+ + "]");
list.add(
- EnumChatFormatting.GRAY + aCurrentPower
- + ": ["
- + EnumChatFormatting.YELLOW
- + GT_Utility.formatNumbers(this.getCharge(stack))
- + EnumChatFormatting.GRAY
- + aEU
- + "] ["
- + EnumChatFormatting.YELLOW
- + GT_Utility.formatNumbers(
- MathUtils.findPercentage(this.getCharge(stack), this.getMaxCharge(stack)))
- + EnumChatFormatting.GRAY
- + "%]");
+ EnumChatFormatting.GRAY + aCurrentPower
+ + ": ["
+ + EnumChatFormatting.YELLOW
+ + GT_Utility.formatNumbers(this.getCharge(stack))
+ + EnumChatFormatting.GRAY
+ + aEU
+ + "] ["
+ + EnumChatFormatting.YELLOW
+ + GT_Utility.formatNumbers(MathUtils.findPercentage(this.getCharge(stack), this.getMaxCharge(stack)))
+ + EnumChatFormatting.GRAY
+ + "%]");
list.add(EnumChatFormatting.GOLD + aString6 + EnumChatFormatting.GRAY);
list.add(
- EnumChatFormatting.GOLD + aStringTooltip
- + " "
- + (!isShowing ? EnumChatFormatting.DARK_GREEN : EnumChatFormatting.DARK_RED)
- + !isShowing
- + EnumChatFormatting.GRAY);
+ EnumChatFormatting.GOLD + aStringTooltip
+ + " "
+ + (!isShowing ? EnumChatFormatting.DARK_GREEN : EnumChatFormatting.DARK_RED)
+ + !isShowing
+ + EnumChatFormatting.GRAY);
super.addInformation(stack, aPlayer, list, bool);
}
@Override
public double charge(final ItemStack stack, final double amount, final int tier, final boolean ignoreTransferLimit,
- final boolean simulate) {
+ final boolean simulate) {
if (!simulate) {
ElectricItem.manager.charge(stack, amount, tier, true, simulate);
@@ -196,7 +195,7 @@ public class ItemHealingDevice extends Item implements IElectricItem, IElectricI
@Override
public double discharge(final ItemStack stack, final double amount, final int tier,
- final boolean ignoreTransferLimit, final boolean externally, final boolean simulate) {
+ final boolean ignoreTransferLimit, final boolean externally, final boolean simulate) {
return ElectricItem.manager.discharge(stack, amount, tier, ignoreTransferLimit, externally, simulate);
}
@@ -280,7 +279,7 @@ public class ItemHealingDevice extends Item implements IElectricItem, IElectricI
if ((ElectricItem.manager.getCharge(aInvStack) >= aTransferRate)) {
if (electricItem.canProvideEnergy(aInvStack)) {
double d = ElectricItem.manager
- .discharge(aInvStack, aTransferRate, mTier, false, true, false);
+ .discharge(aInvStack, aTransferRate, mTier, false, true, false);
// Logger.INFO("Charging from "+aInvStack.getDisplayName() +" | "+d);
ElectricItem.manager.charge(baubleStack, d, mTier, true, false);
}
@@ -329,26 +328,23 @@ public class ItemHealingDevice extends Item implements IElectricItem, IElectricI
// Only show Messages if they're enabled.
if (getShowMessages(baubleStack)) {
- if (hp > 0 || hunger > 0 || saturation > 0) PlayerUtils.messagePlayer(
- (EntityPlayer) arg1,
- "Your NanoBooster Whirs! Leaving you feeling stronger.");
+ if (hp > 0 || hunger > 0 || saturation > 0) PlayerUtils
+ .messagePlayer((EntityPlayer) arg1, "Your NanoBooster Whirs! Leaving you feeling stronger.");
if (hp > 0) PlayerUtils
- .messagePlayer((EntityPlayer) arg1, "Healed " + GT_Utility.formatNumbers(hp) + " hp.");
+ .messagePlayer((EntityPlayer) arg1, "Healed " + GT_Utility.formatNumbers(hp) + " hp.");
- if (hunger > 0) PlayerUtils.messagePlayer(
- (EntityPlayer) arg1,
- "Healed " + GT_Utility.formatNumbers(hunger) + " hunger.");
+ if (hunger > 0) PlayerUtils
+ .messagePlayer((EntityPlayer) arg1, "Healed " + GT_Utility.formatNumbers(hunger) + " hunger.");
if (saturation > 0) PlayerUtils.messagePlayer(
- (EntityPlayer) arg1,
- "Satured Hunger by " + GT_Utility.formatNumbers(saturation) + ".");
+ (EntityPlayer) arg1,
+ "Satured Hunger by " + GT_Utility.formatNumbers(saturation) + ".");
if (hp > 0 || hunger > 0 || saturation > 0) PlayerUtils.messagePlayer(
- (EntityPlayer) arg1,
- "You check it's remaining uses, it has "
- + GT_Utility.formatNumbers(secondsLeft(baubleStack))
- + " seconds left.");
+ (EntityPlayer) arg1,
+ "You check it's remaining uses, it has " + GT_Utility.formatNumbers(secondsLeft(baubleStack))
+ + " seconds left.");
}
}
}
@@ -388,19 +384,19 @@ public class ItemHealingDevice extends Item implements IElectricItem, IElectricI
@Override
public boolean onItemUse(ItemStack p_77648_1_, EntityPlayer p_77648_2_, World p_77648_3_, int p_77648_4_,
- int p_77648_5_, int p_77648_6_, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ int p_77648_5_, int p_77648_6_, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
// TODO Auto-generated method stub
return super.onItemUse(
- p_77648_1_,
- p_77648_2_,
- p_77648_3_,
- p_77648_4_,
- p_77648_5_,
- p_77648_6_,
- p_77648_7_,
- p_77648_8_,
- p_77648_9_,
- p_77648_10_);
+ p_77648_1_,
+ p_77648_2_,
+ p_77648_3_,
+ p_77648_4_,
+ p_77648_5_,
+ p_77648_6_,
+ p_77648_7_,
+ p_77648_8_,
+ p_77648_9_,
+ p_77648_10_);
}
@Override
diff --git a/src/main/java/gtPlusPlus/core/item/general/ItemLavaFilter.java b/src/main/java/gtPlusPlus/core/item/general/ItemLavaFilter.java
index 583124a44d..2b5dd8883f 100644
--- a/src/main/java/gtPlusPlus/core/item/general/ItemLavaFilter.java
+++ b/src/main/java/gtPlusPlus/core/item/general/ItemLavaFilter.java
@@ -22,15 +22,15 @@ public class ItemLavaFilter extends CoreItem {
public ItemLavaFilter() {
super(
- "itemLavaFilter",
- AddToCreativeTab.tabMachines,
- 1,
- 99,
- new String[] { "Lava Filter" },
- EnumRarity.common,
- EnumChatFormatting.BLACK,
- false,
- null);
+ "itemLavaFilter",
+ AddToCreativeTab.tabMachines,
+ 1,
+ 99,
+ new String[] { "Lava Filter" },
+ EnumRarity.common,
+ EnumChatFormatting.BLACK,
+ false,
+ null);
setGregtechItemList();
}
diff --git a/src/main/java/gtPlusPlus/core/item/general/ItemMagicFeather.java b/src/main/java/gtPlusPlus/core/item/general/ItemMagicFeather.java
index 981ccf2af1..9b4dd86525 100644
--- a/src/main/java/gtPlusPlus/core/item/general/ItemMagicFeather.java
+++ b/src/main/java/gtPlusPlus/core/item/general/ItemMagicFeather.java
@@ -39,15 +39,15 @@ public class ItemMagicFeather extends CoreItem {
public ItemMagicFeather() {
super(
- "magicfeather",
- AddToCreativeTab.tabMisc,
- 1,
- 100,
- new String[] { "Lets you fly around Beacons" },
- EnumRarity.uncommon,
- null,
- false,
- null);
+ "magicfeather",
+ AddToCreativeTab.tabMisc,
+ 1,
+ 100,
+ new String[] { "Lets you fly around Beacons" },
+ EnumRarity.uncommon,
+ null,
+ false,
+ null);
setMaxStackSize(1);
setUnlocalizedName(GTPlusPlus.ID + ":" + NAME);
MinecraftForge.EVENT_BUS.register(this);
@@ -80,21 +80,22 @@ public class ItemMagicFeather extends CoreItem {
}
HashSet<TileEntityBeacon> aBeaconData = sBeaconData.computeIfAbsent(player, k -> new HashSet<>());
int chunkXlo = (int) (player.posX - 50) >> 4, chunkXhi = (int) (player.posX + 50) >> 4,
- chunkZlo = (int) (player.posZ - 50) >> 4, chunkZhi = (int) (player.posZ + 50) >> 4;
+ chunkZlo = (int) (player.posZ - 50) >> 4, chunkZhi = (int) (player.posZ + 50) >> 4;
for (int chunkX = chunkXlo; chunkX < chunkXhi; chunkX++) {
for (int chunkZ = chunkZlo; chunkZ < chunkZhi; chunkZ++) {
- if (!world.getChunkProvider().chunkExists(chunkX, chunkZ)) continue;
+ if (!world.getChunkProvider()
+ .chunkExists(chunkX, chunkZ)) continue;
findSuitableBeacon(
- player,
- world.getChunkFromChunkCoords(chunkX, chunkZ).chunkTileEntityMap.values(),
- aBeaconData);
+ player,
+ world.getChunkFromChunkCoords(chunkX, chunkZ).chunkTileEntityMap.values(),
+ aBeaconData);
}
}
return aBeaconData.size() > 0;
}
private static void findSuitableBeacon(EntityPlayer player, Collection<TileEntity> tileEntities,
- HashSet<TileEntityBeacon> aBeaconData) {
+ HashSet<TileEntityBeacon> aBeaconData) {
for (TileEntity t : tileEntities) {
if (!(t instanceof TileEntityBeacon beacon)) {
continue;
@@ -153,8 +154,8 @@ public class ItemMagicFeather extends CoreItem {
int x = aBeacon.xCoord;
int z = aBeacon.zCoord;
if (player.posX < (x - radius) || player.posX > (x + radius)
- || player.posZ < (z - radius)
- || player.posZ > (z + radius)) {
+ || player.posZ < (z - radius)
+ || player.posZ > (z + radius)) {
iterator.remove();
}
}
diff --git a/src/main/java/gtPlusPlus/core/item/general/books/ItemBaseBook.java b/src/main/java/gtPlusPlus/core/item/general/books/ItemBaseBook.java
index 9e642c41a7..87c5ab3e74 100644
--- a/src/main/java/gtPlusPlus/core/item/general/books/ItemBaseBook.java
+++ b/src/main/java/gtPlusPlus/core/item/general/books/ItemBaseBook.java
@@ -58,7 +58,7 @@ public class ItemBaseBook extends ItemWritableBook {
return NBTUtils.getString(tItem, "title");
} else if (tItem.getItemDamage() > -1 && tItem.getItemDamage() <= mBookMap.size()) {
return EnumChatFormatting.ITALIC + ""
- + addBookTitleLocalization(mBookMap.get(tItem.getItemDamage()).mTitle);
+ + addBookTitleLocalization(mBookMap.get(tItem.getItemDamage()).mTitle);
}
// NBTUtils.tryIterateNBTData(tItem);
return "GT++ Storybook";
@@ -96,21 +96,22 @@ public class ItemBaseBook extends ItemWritableBook {
// player.displayGUIBook(item);
int i = item.getItemDamage();
ItemStack bookstack = Utils.getWrittenBook(
- null,
- mBookMap.get(i).mMeta,
- mBookMap.get(i).mMapping,
- mBookMap.get(i).mTitle,
- mBookMap.get(i).mAuthor,
- mBookMap.get(i).mPages);
+ null,
+ mBookMap.get(i).mMeta,
+ mBookMap.get(i).mMapping,
+ mBookMap.get(i).mTitle,
+ mBookMap.get(i).mAuthor,
+ mBookMap.get(i).mPages);
if (player.worldObj.isRemote) {
try {
Class<?> clazz = ReflectionUtils.getClass("net.minecraft.client.gui.GuiScreenBook");
Constructor<?> ctor = clazz.getConstructor(EntityPlayer.class, ItemStack.class, boolean.class);
Object object = ctor.newInstance(new Object[] { player, bookstack, false });
- Minecraft.getMinecraft().displayGuiScreen((GuiScreen) object);
+ Minecraft.getMinecraft()
+ .displayGuiScreen((GuiScreen) object);
} catch (InstantiationException | IllegalAccessException | IllegalArgumentException
- | InvocationTargetException | NoSuchMethodException | SecurityException e) {
+ | InvocationTargetException | NoSuchMethodException | SecurityException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
diff --git a/src/main/java/gtPlusPlus/core/item/general/chassis/ItemDehydratorCoil.java b/src/main/java/gtPlusPlus/core/item/general/chassis/ItemDehydratorCoil.java
index 86f92f4572..24759808ab 100644
--- a/src/main/java/gtPlusPlus/core/item/general/chassis/ItemDehydratorCoil.java
+++ b/src/main/java/gtPlusPlus/core/item/general/chassis/ItemDehydratorCoil.java
@@ -56,7 +56,7 @@ public class ItemDehydratorCoil extends Item {
@Override
public String getItemStackDisplayName(final ItemStack tItem) {
return StatCollector
- .translateToLocalFormatted("item.itemDehydratorCoil.name", GT_Values.VN[tItem.getItemDamage() + 4]);
+ .translateToLocalFormatted("item.itemDehydratorCoil.name", GT_Values.VN[tItem.getItemDamage() + 4]);
}
/*
diff --git a/src/main/java/gtPlusPlus/core/item/general/chassis/ItemDehydratorCoilWire.java b/src/main/java/gtPlusPlus/core/item/general/chassis/ItemDehydratorCoilWire.java
index 3f7de078ca..b050e4c65c 100644
--- a/src/main/java/gtPlusPlus/core/item/general/chassis/ItemDehydratorCoilWire.java
+++ b/src/main/java/gtPlusPlus/core/item/general/chassis/ItemDehydratorCoilWire.java
@@ -56,7 +56,7 @@ public class ItemDehydratorCoilWire extends Item {
@Override
public String getItemStackDisplayName(final ItemStack tItem) {
return StatCollector
- .translateToLocalFormatted("item.itemDehydratorCoilWire.name", GT_Values.VN[tItem.getItemDamage() + 4]);
+ .translateToLocalFormatted("item.itemDehydratorCoilWire.name", GT_Values.VN[tItem.getItemDamage() + 4]);
}
/*
diff --git a/src/main/java/gtPlusPlus/core/item/general/spawn/ItemCustomSpawnEgg.java b/src/main/java/gtPlusPlus/core/item/general/spawn/ItemCustomSpawnEgg.java
index 2c12eaa8ca..c186fccd4b 100644
--- a/src/main/java/gtPlusPlus/core/item/general/spawn/ItemCustomSpawnEgg.java
+++ b/src/main/java/gtPlusPlus/core/item/general/spawn/ItemCustomSpawnEgg.java
@@ -51,18 +51,18 @@ public class ItemCustomSpawnEgg extends ItemMonsterPlacer {
protected EntityLiving entityToSpawn = null;
public static void registerEntityForSpawnEgg(final int aMetaID, String parEntityToSpawnName, int aPrimaryColor,
- int aSecondaryColor) {
+ int aSecondaryColor) {
registerEntityForSpawnEgg(
- aMetaID,
- parEntityToSpawnName,
- aPrimaryColor,
- aSecondaryColor,
- EnumRarity.common,
- new ArrayList<String>());
+ aMetaID,
+ parEntityToSpawnName,
+ aPrimaryColor,
+ aSecondaryColor,
+ EnumRarity.common,
+ new ArrayList<String>());
}
public static void registerEntityForSpawnEgg(final int aMetaID, String parEntityToSpawnName, int aPrimaryColor,
- int aSecondaryColor, EnumRarity aRarity, final ArrayList<String> aOreDictNames) {
+ int aSecondaryColor, EnumRarity aRarity, final ArrayList<String> aOreDictNames) {
mTotalMetaItems++;
mMaxStackSizeMap.put(aMetaID, 64);
mRarityMap.put(aMetaID, aRarity);
@@ -89,7 +89,7 @@ public class ItemCustomSpawnEgg extends ItemMonsterPlacer {
*/
@Override
public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4,
- int par5, int par6, int par7, float par8, float par9, float par10) {
+ int par5, int par6, int par7, float par8, float par9, float par10) {
if (par3World.isRemote) {
return true;
} else {
@@ -130,9 +130,9 @@ public class ItemCustomSpawnEgg extends ItemMonsterPlacer {
return par1ItemStack;
} else {
MovingObjectPosition movingobjectposition = getMovingObjectPositionFromPlayer(
- par2World,
- par3EntityPlayer,
- true);
+ par2World,
+ par3EntityPlayer,
+ true);
if (movingobjectposition == null) {
return par1ItemStack;
@@ -190,11 +190,11 @@ public class ItemCustomSpawnEgg extends ItemMonsterPlacer {
if (EntityList.stringToClassMapping.containsKey(entityToSpawnNameFull)) {
entityToSpawn = (EntityLiving) EntityList.createEntityByName(entityToSpawnNameFull, parWorld);
entityToSpawn.setLocationAndAngles(
- parX,
- parY,
- parZ,
- MathHelper.wrapAngleTo180_float(parWorld.rand.nextFloat() * 360.0F),
- 0.0F);
+ parX,
+ parY,
+ parZ,
+ MathHelper.wrapAngleTo180_float(parWorld.rand.nextFloat() * 360.0F),
+ 0.0F);
parWorld.spawnEntityInWorld(entityToSpawn);
entityToSpawn.onSpawnWithEgg((IEntityLivingData) null);
entityToSpawn.playLivingSound();
@@ -236,9 +236,8 @@ public class ItemCustomSpawnEgg extends ItemMonsterPlacer {
// unless you specifically check for localization here and convert
public String getItemStackDisplayName(ItemStack par1ItemStack) {
return StatCollector.translateToLocalFormatted(
- "item.ItemCustomSpawnEgg.name",
- StatCollector
- .translateToLocal("entity." + mEntityNameMap.get(par1ItemStack.getItemDamage()) + ".name"));
+ "item.ItemCustomSpawnEgg.name",
+ StatCollector.translateToLocal("entity." + mEntityNameMap.get(par1ItemStack.getItemDamage()) + ".name"));
}
@Override
diff --git a/src/main/java/gtPlusPlus/core/item/materials/DustDecayable.java b/src/main/java/gtPlusPlus/core/item/materials/DustDecayable.java
index 638a43ecb5..eaf8c2c9da 100644
--- a/src/main/java/gtPlusPlus/core/item/materials/DustDecayable.java
+++ b/src/main/java/gtPlusPlus/core/item/materials/DustDecayable.java
@@ -51,7 +51,7 @@ public class DustDecayable extends BaseItemTickable {
@Override
public void onUpdate(final ItemStack iStack, final World world, final Entity entityHolding, final int p_77663_4_,
- final boolean p_77663_5_) {
+ final boolean p_77663_5_) {
if (world == null || iStack == null) {
return;
}
diff --git a/src/main/java/gtPlusPlus/core/item/tool/misc/GregtechPump.java b/src/main/java/gtPlusPlus/core/item/tool/misc/GregtechPump.java
index 9a67ee06ca..5ba3aa1531 100644
--- a/src/main/java/gtPlusPlus/core/item/tool/misc/GregtechPump.java
+++ b/src/main/java/gtPlusPlus/core/item/tool/misc/GregtechPump.java
@@ -69,7 +69,7 @@ public class GregtechPump extends Item implements ISpecialElectricItem, IElectri
*/
@Override
public boolean onItemUse(ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int a4,
- float p_77648_8_, float p_77648_9_, float p_77648_10_) {
+ float p_77648_8_, float p_77648_9_, float p_77648_10_) {
if (aStack == null || aPlayer == null || aWorld == null || aWorld.isRemote) {
return false;
}
@@ -109,14 +109,14 @@ public class GregtechPump extends Item implements ISpecialElectricItem, IElectri
public void registerPumpType(final int aID, final String aPumpName, final int aEuMax, final int aTier) {
ModItems.toolGregtechPump.registerItem(
- aID, // ID
- aPumpName, // Name
- aEuMax, // Eu Storage
- (short) aTier, // Tier/ Tooltip
- aTier <= 0 ? EnumRarity.common
- : aTier == 1 ? EnumRarity.uncommon
- : aTier == 2 ? EnumRarity.rare : aTier == 3 ? EnumRarity.epic : EnumRarity.common, // Rarity
- false // Effect?
+ aID, // ID
+ aPumpName, // Name
+ aEuMax, // Eu Storage
+ (short) aTier, // Tier/ Tooltip
+ aTier <= 0 ? EnumRarity.common
+ : aTier == 1 ? EnumRarity.uncommon
+ : aTier == 2 ? EnumRarity.rare : aTier == 3 ? EnumRarity.epic : EnumRarity.common, // Rarity
+ false // Effect?
);
}
@@ -125,7 +125,7 @@ public class GregtechPump extends Item implements ISpecialElectricItem, IElectri
}
public GregtechPump(final String unlocalizedName, final CreativeTabs creativeTab, final short aOffset,
- final short aItemAmount) {
+ final short aItemAmount) {
this.mEnabledItems = new BitSet(aItemAmount);
this.mVisibleItems = new BitSet(aItemAmount);
this.mOffset = (short) Math.min(32766, aOffset);
@@ -145,17 +145,17 @@ public class GregtechPump extends Item implements ISpecialElectricItem, IElectri
}
public void registerItem(final int id, final String localizedName, final long euStorage, final int tier,
- final int burnTime) {
+ final int burnTime) {
this.registerItem(id, localizedName, euStorage, (short) tier, EnumRarity.common, false);
this.setBurnValue(id, burnTime);
}
public void registerItem(final int id, final String localizedName, final long euStorage, final short tier,
- final EnumRarity regRarity, final boolean Effect) {
+ final EnumRarity regRarity, final boolean Effect) {
this.addItem(
- id,
- localizedName,
- EnumChatFormatting.GRAY + "Can be used to remove fluids from GT machine input & output slots");
+ id,
+ localizedName,
+ EnumChatFormatting.GRAY + "Can be used to remove fluids from GT machine input & output slots");
if (euStorage > 0 && tier > 0)
this.setElectricStats(this.mOffset + id, euStorage, GT_Values.V[tier], tier, -3L, true);
this.rarity.put(id, regRarity);
@@ -188,8 +188,8 @@ public class GregtechPump extends Item implements ISpecialElectricItem, IElectri
// aList.add("Meta: "+(aStack.getItemDamage()-mOffset));
int aOffsetMeta = getCorrectMetaForItemstack(aStack);
aList.add(
- GT_LanguageManager.getTranslation(
- "gtplusplus." + this.getUnlocalizedName(aStack) + "." + aOffsetMeta + ".tooltip"));
+ GT_LanguageManager
+ .getTranslation("gtplusplus." + this.getUnlocalizedName(aStack) + "." + aOffsetMeta + ".tooltip"));
if (aOffsetMeta <= 3) {
FluidStack f = getFluid(aStack);
@@ -197,38 +197,39 @@ public class GregtechPump extends Item implements ISpecialElectricItem, IElectri
aList.add(StatCollector.translateToLocal("item.itemGregtechPump.tooltip.1"));
aList.add(EnumChatFormatting.DARK_GRAY + StatCollector.translateToLocal("item.itemGregtechPump.tooltip.2"));
aList.add(
- EnumChatFormatting.BLUE + (f != null ? f.getLocalizedName()
- : StatCollector.translateToLocal("item.itemGregtechPump.tooltip.3")));
+ EnumChatFormatting.BLUE + (f != null ? f.getLocalizedName()
+ : StatCollector.translateToLocal("item.itemGregtechPump.tooltip.3")));
aList.add(
- EnumChatFormatting.BLUE + (f != null ? "" + f.amount : "" + 0)
- + "L"
- + " / "
- + formatNumbers(getCapacity(aStack))
- + "L");
+ EnumChatFormatting.BLUE + (f != null ? "" + f.amount : "" + 0)
+ + "L"
+ + " / "
+ + formatNumbers(getCapacity(aStack))
+ + "L");
}
final Long[] tStats = this.getElectricStats(aStack);
if (tStats != null) {
if (tStats[3] > 0) {
aList.add(
- EnumChatFormatting.AQUA + StatCollector.translateToLocalFormatted(
- "item.itemBaseEuItem.tooltip.1",
- formatNumbers(tStats[3]),
- (tStats[2] >= 0 ? tStats[2] : 0)) + EnumChatFormatting.GRAY);
+ EnumChatFormatting.AQUA + StatCollector.translateToLocalFormatted(
+ "item.itemBaseEuItem.tooltip.1",
+ formatNumbers(tStats[3]),
+ (tStats[2] >= 0 ? tStats[2] : 0)) + EnumChatFormatting.GRAY);
} else {
final long tCharge = this.getRealCharge(aStack);
if ((tStats[3] == -2) && (tCharge <= 0)) {
aList.add(
- EnumChatFormatting.AQUA + StatCollector.translateToLocal("item.itemBaseEuItem.tooltip.2")
- + EnumChatFormatting.GRAY);
+ EnumChatFormatting.AQUA + StatCollector.translateToLocal("item.itemBaseEuItem.tooltip.2")
+ + EnumChatFormatting.GRAY);
} else {
aList.add(
- EnumChatFormatting.AQUA + StatCollector.translateToLocalFormatted(
- "item.itemBaseEuItem.tooltip.3",
- formatNumbers(tCharge),
- formatNumbers(Math.abs(tStats[0])) + " EU - Voltage: ",
- V[(int) (tStats[2] >= 0 ? tStats[2] < V.length ? tStats[2] : V.length - 1 : 1)])
- + EnumChatFormatting.GRAY);
+ EnumChatFormatting.AQUA
+ + StatCollector.translateToLocalFormatted(
+ "item.itemBaseEuItem.tooltip.3",
+ formatNumbers(tCharge),
+ formatNumbers(Math.abs(tStats[0])) + " EU - Voltage: ",
+ V[(int) (tStats[2] >= 0 ? tStats[2] < V.length ? tStats[2] : V.length - 1 : 1)])
+ + EnumChatFormatting.GRAY);
}
}
}
@@ -277,18 +278,18 @@ public class GregtechPump extends Item implements ISpecialElectricItem, IElectri
@Override
public final double charge(final ItemStack aStack, final double aCharge, final int aTier,
- final boolean aIgnoreTransferLimit, final boolean aSimulate) {
+ final boolean aIgnoreTransferLimit, final boolean aSimulate) {
final Long[] tStats = this.getElectricStats(aStack);
if ((tStats == null) || (tStats[2] > aTier)
- || !((tStats[3] == -1) || (tStats[3] == -3) || ((tStats[3] < 0) && (aCharge == Integer.MAX_VALUE)))
- || (aStack.stackSize != 1)) {
+ || !((tStats[3] == -1) || (tStats[3] == -3) || ((tStats[3] < 0) && (aCharge == Integer.MAX_VALUE)))
+ || (aStack.stackSize != 1)) {
return 0;
}
- final long tChargeBefore = this.getRealCharge(aStack), tNewCharge = aCharge == Integer.MAX_VALUE
- ? Long.MAX_VALUE
+ final long tChargeBefore = this.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)));
+ Math.abs(tStats[0]),
+ tChargeBefore + (aIgnoreTransferLimit ? (long) aCharge : Math.min(tStats[1], (long) aCharge)));
if (!aSimulate) {
this.setCharge(aStack, tNewCharge);
}
@@ -297,7 +298,7 @@ public class GregtechPump extends Item implements ISpecialElectricItem, IElectri
@Override
public final double discharge(final ItemStack aStack, final double aCharge, final int aTier,
- final boolean aIgnoreTransferLimit, final boolean aBatteryAlike, final boolean aSimulate) {
+ final boolean aIgnoreTransferLimit, final boolean aBatteryAlike, final boolean aSimulate) {
final Long[] tStats = this.getElectricStats(aStack);
if ((tStats == null) || (tStats[2] > aTier)) {
return 0;
@@ -315,7 +316,7 @@ public class GregtechPump extends Item implements ISpecialElectricItem, IElectri
return tStats[3];
}
final long tChargeBefore = this.getRealCharge(aStack), tNewCharge = Math
- .max(0, tChargeBefore - (aIgnoreTransferLimit ? (long) aCharge : Math.min(tStats[1], (long) aCharge)));
+ .max(0, tChargeBefore - (aIgnoreTransferLimit ? (long) aCharge : Math.min(tStats[1], (long) aCharge)));
if (!aSimulate) {
this.setCharge(aStack, tNewCharge);
}
@@ -369,12 +370,12 @@ public class GregtechPump extends Item implements ISpecialElectricItem, IElectri
final IElectricItem tArmorItem = (IElectricItem) tArmor.getItem();
if (tArmorItem.canProvideEnergy(tArmor) && (tArmorItem.getTier(tArmor) >= this.getTier(aStack))) {
final double tCharge = ElectricItem.manager.discharge(
- tArmor,
- this.charge(aStack, Integer.MAX_VALUE - 1, Integer.MAX_VALUE, true, true),
- Integer.MAX_VALUE,
- true,
- true,
- false);
+ tArmor,
+ this.charge(aStack, Integer.MAX_VALUE - 1, Integer.MAX_VALUE, true, true),
+ Integer.MAX_VALUE,
+ true,
+ true,
+ false);
if (tCharge > 0) {
this.charge(aStack, tCharge, Integer.MAX_VALUE, true, false);
if (aPlayer instanceof EntityPlayer) {
@@ -489,7 +490,7 @@ public class GregtechPump extends Item implements ISpecialElectricItem, IElectri
* @return the Item itself for convenience in constructing.
*/
public final GregtechPump setElectricStats(final int aMetaValue, final long aMaxCharge, final long aTransferLimit,
- final long aTier, final long aSpecialData, final boolean aUseAnimations) {
+ final long aTier, final long aSpecialData, final boolean aUseAnimations) {
if (aMetaValue < 0) {
return this;
}
@@ -497,8 +498,8 @@ public class GregtechPump extends Item implements ISpecialElectricItem, IElectri
this.mElectricStats.remove((short) aMetaValue);
} else {
this.mElectricStats.put(
- (short) aMetaValue,
- new Long[] { aMaxCharge, Math.max(0, aTransferLimit), Math.max(-1, aTier), aSpecialData });
+ (short) aMetaValue,
+ new Long[] { aMaxCharge, Math.max(0, aTransferLimit), Math.max(-1, aTier), aSpecialData });
}
return this;
}
@@ -531,8 +532,8 @@ public class GregtechPump extends Item implements ISpecialElectricItem, IElectri
for (short i = 0, j = (short) this.mEnabledItems.length(); i < j; i++) {
if (this.mEnabledItems.get(i)) {
mIconMap.put(
- (int) i,
- aIconRegister.registerIcon(GTPlusPlus.ID + ":" + (this.getUnlocalizedName() + "/" + i)));
+ (int) i,
+ aIconRegister.registerIcon(GTPlusPlus.ID + ":" + (this.getUnlocalizedName() + "/" + i)));
}
}
}
@@ -630,12 +631,11 @@ public class GregtechPump extends Item implements ISpecialElectricItem, IElectri
GT_ModHandler.registerBoxableItemToToolBox(rStack);
this.mEnabledItems.set(aID);
this.mVisibleItems.set(aID);
+ GT_LanguageManager
+ .addStringLocalization("gtplusplus." + this.getUnlocalizedName(rStack) + "." + aID + ".name", aEnglish);
GT_LanguageManager.addStringLocalization(
- "gtplusplus." + this.getUnlocalizedName(rStack) + "." + aID + ".name",
- aEnglish);
- GT_LanguageManager.addStringLocalization(
- "gtplusplus." + this.getUnlocalizedName(rStack) + "." + aID + ".tooltip",
- aToolTip);
+ "gtplusplus." + this.getUnlocalizedName(rStack) + "." + aID + ".tooltip",
+ aToolTip);
final List<TC_AspectStack> tAspects = new ArrayList<>();
// Important Stuff to do first
for (final Object tRandomData : aRandomData) {
@@ -698,7 +698,7 @@ public class GregtechPump extends Item implements ISpecialElectricItem, IElectri
keyValue = 0;
}
return GT_LanguageManager
- .getTranslation("gtplusplus." + this.getUnlocalizedName(aStack) + "." + keyValue + ".name");
+ .getTranslation("gtplusplus." + this.getUnlocalizedName(aStack) + "." + keyValue + ".name");
}
/**
@@ -728,7 +728,8 @@ public class GregtechPump extends Item implements ISpecialElectricItem, IElectri
if (aFluid == null) {
return;
} else {
- String fluidname = aFluid.getFluid().getName();
+ String fluidname = aFluid.getFluid()
+ .getName();
int amount = aFluid.amount;
if (fluidname != null && fluidname.length() > 0 && amount > 0) {
NBTUtils.setString(aStack, "mFluid", fluidname);
@@ -739,10 +740,14 @@ public class GregtechPump extends Item implements ISpecialElectricItem, IElectri
@Override
public FluidStack getFluid(ItemStack container) {
- if (!container.hasTagCompound() || !container.getTagCompound().hasKey("mInit")) {
+ if (!container.hasTagCompound() || !container.getTagCompound()
+ .hasKey("mInit")) {
initNBT(container);
}
- if (container.getTagCompound().hasKey("mInit") && container.getTagCompound().getBoolean("mInit")) {
+ if (container.getTagCompound()
+ .hasKey("mInit")
+ && container.getTagCompound()
+ .getBoolean("mInit")) {
String fluidname;
Integer amount = 0;
fluidname = NBTUtils.getString(container, "mFluid");
@@ -758,11 +763,16 @@ public class GregtechPump extends Item implements ISpecialElectricItem, IElectri
@Override
public int getCapacity(ItemStack container) {
- if (!container.hasTagCompound() || !container.getTagCompound().hasKey("mInit")) {
+ if (!container.hasTagCompound() || !container.getTagCompound()
+ .hasKey("mInit")) {
initNBT(container);
}
- if (container.getTagCompound().hasKey("mInit") && container.getTagCompound().getBoolean("mInit")) {
- return container.getTagCompound().getInteger("mCapacity");
+ if (container.getTagCompound()
+ .hasKey("mInit")
+ && container.getTagCompound()
+ .getBoolean("mInit")) {
+ return container.getTagCompound()
+ .getInteger("mCapacity");
}
int aMeta = this.getCorrectMetaForItemstack(container);
int aCapacity = (aMeta == 0 ? 2000 : (aMeta == 1 ? 8000 : (aMeta == 2 ? 32000 : 128000)));
@@ -779,16 +789,21 @@ public class GregtechPump extends Item implements ISpecialElectricItem, IElectri
return 0;
}
- if (!container.hasTagCompound() || !container.getTagCompound().hasKey("mInit")) {
+ if (!container.hasTagCompound() || !container.getTagCompound()
+ .hasKey("mInit")) {
initNBT(container);
}
- if (container.getTagCompound().hasKey("mInit") && container.getTagCompound().getBoolean("mInit")) {
+ if (container.getTagCompound()
+ .hasKey("mInit")
+ && container.getTagCompound()
+ .getBoolean("mInit")) {
String aStored;
int aStoredAmount = 0;
int aCapacity = getCapacity(container);
FluidStack aStoredFluid = getFluid(container);
if (aStoredFluid != null) {
- aStored = aStoredFluid.getFluid().getName();
+ aStored = aStoredFluid.getFluid()
+ .getName();
aStoredAmount = aStoredFluid.amount;
if (aStoredAmount == aCapacity) {
return 0;
@@ -815,7 +830,7 @@ public class GregtechPump extends Item implements ISpecialElectricItem, IElectri
Logger.INFO("Found matching fluids.");
int aSpaceLeft = (aCapacity - aStoredAmount);
Logger.INFO(
- "Capacity: " + aCapacity + " | Stored: " + aStoredAmount + " | Space left: " + aSpaceLeft);
+ "Capacity: " + aCapacity + " | Stored: " + aStoredAmount + " | Space left: " + aSpaceLeft);
FluidStack toConsume;
int amountToConsume = 0;
if (resource.amount >= aSpaceLeft) {
@@ -851,17 +866,22 @@ public class GregtechPump extends Item implements ISpecialElectricItem, IElectri
if (!doDrain || maxDrain == 0) {
return null;
}
- if (!container.hasTagCompound() || !container.getTagCompound().hasKey("mInit")) {
+ if (!container.hasTagCompound() || !container.getTagCompound()
+ .hasKey("mInit")) {
initNBT(container);
}
- if (container.getTagCompound().hasKey("mInit") && container.getTagCompound().getBoolean("mInit")) {
+ if (container.getTagCompound()
+ .hasKey("mInit")
+ && container.getTagCompound()
+ .getBoolean("mInit")) {
String aStored;
int aStoredAmount = 0;
FluidStack aStoredFluid = getFluid(container);
if (aStoredFluid != null) {
- aStored = aStoredFluid.getFluid().getName();
+ aStored = aStoredFluid.getFluid()
+ .getName();
aStoredAmount = aStoredFluid.amount;
}
// We cannot drain this if it's empty.
@@ -987,14 +1007,14 @@ public class GregtechPump extends Item implements ISpecialElectricItem, IElectri
*/
public boolean drainIFluidTank(TileEntity tTileEntity, ItemStack aStack, World aWorld, EntityPlayer aPlayer, int aX,
- int aY, int aZ) {
+ int aY, int aZ) {
if (tTileEntity == null) {
Logger.INFO("Invalid Tile, somehow.");
return false;
}
if ((tTileEntity instanceof IFluidTank || tTileEntity instanceof IFluidHandler)) {
if (this.getFluid(aStack) == null
- || (this.getFluid(aStack) != null && this.getFluid(aStack).amount < this.getCapacity(aStack))) {
+ || (this.getFluid(aStack) != null && this.getFluid(aStack).amount < this.getCapacity(aStack))) {
Logger.INFO("Trying to find Stored Fluid - Behaviour Class.");
FluidStack aStored = getStoredFluidOfVanillaTank(tTileEntity);
if (aStored != null) {
@@ -1005,15 +1025,15 @@ public class GregtechPump extends Item implements ISpecialElectricItem, IElectri
newStackRemainingInTank = null;
} else {
newStackRemainingInTank = FluidUtils
- .getFluidStack(aStored, (aStored.amount - mAmountInserted));
+ .getFluidStack(aStored, (aStored.amount - mAmountInserted));
}
boolean b = setStoredFluidOfVanillaTank(tTileEntity, newStackRemainingInTank);
Logger.INFO("Cleared Tank? " + b + " | mAmountInserted: " + mAmountInserted);
Logger.INFO("Returning " + b + " - drainTankVanilla.");
if (b) {
PlayerUtils.messagePlayer(
- aPlayer,
- "Drained " + mAmountInserted + "L of " + aStored.getLocalizedName() + ".");
+ aPlayer,
+ "Drained " + mAmountInserted + "L of " + aStored.getLocalizedName() + ".");
}
return b;
}
@@ -1033,7 +1053,7 @@ public class GregtechPump extends Item implements ISpecialElectricItem, IElectri
*/
public boolean drainTankGT(TileEntity tTileEntity, ItemStack aStack, World aWorld, EntityPlayer aPlayer, int aX,
- int aY, int aZ) {
+ int aY, int aZ) {
if (tTileEntity == null) {
return false;
}
@@ -1047,7 +1067,7 @@ public class GregtechPump extends Item implements ISpecialElectricItem, IElectri
return true;
} else {
if (this.getFluid(aStack) == null
- || (this.getFluid(aStack) != null && this.getFluid(aStack).amount < this.getCapacity(aStack))) {
+ || (this.getFluid(aStack) != null && this.getFluid(aStack).amount < this.getCapacity(aStack))) {
Logger.INFO("Trying to find Stored Fluid - drainTankGT.");
FluidStack aStored = getStoredFluidOfGTMachine((IGregTechTileEntity) tTileEntity);
if (aStored != null) {
@@ -1058,17 +1078,17 @@ public class GregtechPump extends Item implements ISpecialElectricItem, IElectri
newStackRemainingInTank = null;
} else {
newStackRemainingInTank = FluidUtils
- .getFluidStack(aStored, (aStored.amount - mAmountInserted));
+ .getFluidStack(aStored, (aStored.amount - mAmountInserted));
}
boolean b = setStoredFluidOfGTMachine(
- (IGregTechTileEntity) tTileEntity,
- newStackRemainingInTank);
+ (IGregTechTileEntity) tTileEntity,
+ newStackRemainingInTank);
Logger.INFO("Cleared Tank? " + b + " | mAmountInserted: " + mAmountInserted);
Logger.INFO("Returning " + b + " - drainTankGT.");
if (b) {
PlayerUtils.messagePlayer(
- aPlayer,
- "Drained " + mAmountInserted + "L of " + aStored.getLocalizedName() + ".");
+ aPlayer,
+ "Drained " + mAmountInserted + "L of " + aStored.getLocalizedName() + ".");
} else {
drain(aStack, mAmountInserted);
}
@@ -1107,8 +1127,8 @@ public class GregtechPump extends Item implements ISpecialElectricItem, IElectri
public FluidStack getStoredFluidOfVanillaTank(IFluidTank aTileEntity) {
FluidStack f = aTileEntity.getFluid();
Logger.INFO(
- "Returning Fluid stack from tile. Found: "
- + (f != null ? f.getLocalizedName() + " - " + f.amount + "L" : "Nothing"));
+ "Returning Fluid stack from tile. Found: "
+ + (f != null ? f.getLocalizedName() + " - " + f.amount + "L" : "Nothing"));
return f;
}
@@ -1171,9 +1191,7 @@ public class GregtechPump extends Item implements ISpecialElectricItem, IElectri
if (a1[0] != null) {
aTankContents = a1[0].fluid;
Logger.INFO(
- "Found Fluid in Tank. " + aTankContents.getLocalizedName()
- + " - "
- + aTankContents.amount);
+ "Found Fluid in Tank. " + aTankContents.getLocalizedName() + " - " + aTankContents.amount);
}
}
if (aSetFluid == null) {
@@ -1183,9 +1201,9 @@ public class GregtechPump extends Item implements ISpecialElectricItem, IElectri
Logger.INFO("Setting fluid to tank contents, as we're going to empty it totally.");
}
Logger.INFO(
- "Tile Was instance of IFluidHandler. Trying to Drain " + aSetFluid.getLocalizedName()
- + " - "
- + aSetFluid.amount);
+ "Tile Was instance of IFluidHandler. Trying to Drain " + aSetFluid.getLocalizedName()
+ + " - "
+ + aSetFluid.amount);
if (a1 == null || aTankContents == null) {
Logger.INFO("Tank is empty.");
@@ -1246,8 +1264,8 @@ public class GregtechPump extends Item implements ISpecialElectricItem, IElectri
*/
Logger.INFO(
- "Returning Fluid stack from tile. Found: "
- + (f != null ? f.getLocalizedName() + " - " + f.amount + "L" : "Nothing"));
+ "Returning Fluid stack from tile. Found: "
+ + (f != null ? f.getLocalizedName() + " - " + f.amount + "L" : "Nothing"));
return f;
}
diff --git a/src/main/java/gtPlusPlus/core/item/wearable/armour/ArmourLoader.java b/src/main/java/gtPlusPlus/core/item/wearable/armour/ArmourLoader.java
index 8caf65c88d..e929d6cb7f 100644
--- a/src/main/java/gtPlusPlus/core/item/wearable/armour/ArmourLoader.java
+++ b/src/main/java/gtPlusPlus/core/item/wearable/armour/ArmourLoader.java
@@ -21,7 +21,7 @@ public class ArmourLoader {
public static Item TinFoilHat;
public static ArmorMaterial ClearGlassArmour = EnumHelper
- .addArmorMaterial("ClearGlassArmor", 1, new int[] { 1, 1, 1, 1 }, 100);
+ .addArmorMaterial("ClearGlassArmor", 1, new int[] { 1, 1, 1, 1 }, 100);
public static ArmorMaterial TinFoilArmour = EnumHelper.addArmorMaterial("TINFOIL", 5, new int[] { 1, 1, 1, 1 }, 50);
public static void run() {
diff --git a/src/main/java/gtPlusPlus/core/item/wearable/armour/tinfoil/ArmourTinFoilHat.java b/src/main/java/gtPlusPlus/core/item/wearable/armour/tinfoil/ArmourTinFoilHat.java
index 5f61f4cf86..0703ac3b93 100644
--- a/src/main/java/gtPlusPlus/core/item/wearable/armour/tinfoil/ArmourTinFoilHat.java
+++ b/src/main/java/gtPlusPlus/core/item/wearable/armour/tinfoil/ArmourTinFoilHat.java
@@ -91,7 +91,7 @@ public class ArmourTinFoilHat extends BaseArmourHelm {
@Override
public ArmorProperties getProperties(EntityLivingBase player, ItemStack armor, DamageSource source, double damage,
- int slot) {
+ int slot) {
return new ArmorProperties(0, 0, 0);
}
@@ -102,7 +102,7 @@ public class ArmourTinFoilHat extends BaseArmourHelm {
@Override
public boolean itemInteractionForEntity(ItemStack p_111207_1_, EntityPlayer p_111207_2_,
- EntityLivingBase p_111207_3_) {
+ EntityLivingBase p_111207_3_) {
return super.itemInteractionForEntity(p_111207_1_, p_111207_2_, p_111207_3_);
}
@@ -141,12 +141,12 @@ public class ArmourTinFoilHat extends BaseArmourHelm {
for (Entity e : g) {
if (e != null) {
if (!EntityXPOrb.class.isInstance(e) && !EntityBoat.class.isInstance(e)
- && !EntitySnowball.class.isInstance(e)
- && !EntityFireball.class.isInstance(e)
- && !EntityEgg.class.isInstance(e)
- && !EntityExpBottle.class.isInstance(e)
- && !EntityEnderEye.class.isInstance(e)
- && !EntityEnderPearl.class.isInstance(e)) {
+ && !EntitySnowball.class.isInstance(e)
+ && !EntityFireball.class.isInstance(e)
+ && !EntityEgg.class.isInstance(e)
+ && !EntityExpBottle.class.isInstance(e)
+ && !EntityEnderEye.class.isInstance(e)
+ && !EntityEnderPearl.class.isInstance(e)) {
continue;
} else {
// Logger.INFO("Found "+e.getClass().getName());
diff --git a/src/main/java/gtPlusPlus/core/item/wearable/base/BaseItemWearable.java b/src/main/java/gtPlusPlus/core/item/wearable/base/BaseItemWearable.java
index 1ec92b0a51..84b1d2ff51 100644
--- a/src/main/java/gtPlusPlus/core/item/wearable/base/BaseItemWearable.java
+++ b/src/main/java/gtPlusPlus/core/item/wearable/base/BaseItemWearable.java
@@ -18,7 +18,7 @@ public abstract class BaseItemWearable extends ItemArmor implements ISpecialArmo
@Override
public abstract ArmorProperties getProperties(EntityLivingBase player, ItemStack armor, DamageSource source,
- double damage, int slot);
+ double damage, int slot);
@Override
public int getArmorDisplay(EntityPlayer player, ItemStack armor, int slot) {
@@ -28,7 +28,7 @@ public abstract class BaseItemWearable extends ItemArmor implements ISpecialArmo
@Override
public abstract void damageArmor(EntityLivingBase entity, ItemStack stack, DamageSource source, int damage,
- int slot);
+ int slot);
public void dyeArmour(ItemStack aArmour, int aColour) {
func_82813_b(aArmour, aColour);
diff --git a/src/main/java/gtPlusPlus/core/item/wearable/hazmat/ItemArmorHazmatEx.java b/src/main/java/gtPlusPlus/core/item/wearable/hazmat/ItemArmorHazmatEx.java
index 495b131aea..e01c89d827 100644
--- a/src/main/java/gtPlusPlus/core/item/wearable/hazmat/ItemArmorHazmatEx.java
+++ b/src/main/java/gtPlusPlus/core/item/wearable/hazmat/ItemArmorHazmatEx.java
@@ -13,13 +13,13 @@ public class ItemArmorHazmatEx extends ItemArmorHazmat {
public static void init() {
GregtechItemList.Armour_Hazmat_Advanced_Helmet
- .set(new ItemStack(new ItemArmorHazmatEx(CustomInternalName.aHazmatHelmetEx, 0)));
+ .set(new ItemStack(new ItemArmorHazmatEx(CustomInternalName.aHazmatHelmetEx, 0)));
GregtechItemList.Armour_Hazmat_Advanced_Chest
- .set(new ItemStack(new ItemArmorHazmatEx(CustomInternalName.aHazmatChestEx, 1)));
+ .set(new ItemStack(new ItemArmorHazmatEx(CustomInternalName.aHazmatChestEx, 1)));
GregtechItemList.Armour_Hazmat_Advanced_Legs
- .set(new ItemStack(new ItemArmorHazmatEx(CustomInternalName.aHazmatLegsEx, 2)));
+ .set(new ItemStack(new ItemArmorHazmatEx(CustomInternalName.aHazmatLegsEx, 2)));
GregtechItemList.Armour_Hazmat_Advanced_Boots
- .set(new ItemStack(new ItemArmorHazmatEx(CustomInternalName.aHazmatBootsEx, 3)));
+ .set(new ItemStack(new ItemArmorHazmatEx(CustomInternalName.aHazmatBootsEx, 3)));
}
private ItemArmorHazmatEx(InternalName internalName, int type) {
diff --git a/src/main/java/gtPlusPlus/core/lib/CORE.java b/src/main/java/gtPlusPlus/core/lib/CORE.java
index bb04525301..9f39f1f369 100644
--- a/src/main/java/gtPlusPlus/core/lib/CORE.java
+++ b/src/main/java/gtPlusPlus/core/lib/CORE.java
@@ -50,15 +50,15 @@ public class CORE {
// GT++ Fake Player Profile
public static final GameProfile gameProfile = new GameProfile(
- UUID.nameUUIDFromBytes("gtplusplus.core".getBytes()),
- "[GT++]");
+ UUID.nameUUIDFromBytes("gtplusplus.core".getBytes()),
+ "[GT++]");
public static final WeakHashMap<World, EntityPlayerMP> fakePlayerCache = new WeakHashMap<>();
// Tooltips;
public static final Supplier<String> GT_Tooltip = () -> StatCollector.translateToLocal("GTPP.core.GT_Tooltip");
public static final Supplier<String> GT_Tooltip_Builder = () -> StatCollector
- .translateToLocal("GTPP.core.GT_Tooltip_Builder");
+ .translateToLocal("GTPP.core.GT_Tooltip_Builder");
public static final Supplier<String> GT_Tooltip_Radioactive = () -> StatCollector
- .translateToLocal("GTPP.core.GT_Tooltip_Radioactive");
+ .translateToLocal("GTPP.core.GT_Tooltip_Radioactive");
public static final String SEPERATOR = "/";
@@ -189,7 +189,7 @@ public class CORE {
// pollution single blocks
public static int basePollutionPerSecondSemiFluidGenerator = 40;
public static double[] pollutionReleasedByTierSemiFluidGenerator = new double[] { 0, 2.0, 4.0, 8.0, 12.0, 16,
- 0 };
+ 0 };
public static int basePollutionPerSecondBoiler = 35;
public static double[] pollutionReleasedByTierBoiler = new double[] { 0, 1.0, 1.43, 1.86 };
public static int baseMinPollutionPerSecondRocketFuelGenerator = 250;
@@ -236,6 +236,7 @@ public class CORE {
} catch (Throwable t) {
t.printStackTrace();
}
- FMLCommonHandler.instance().exitJava(0, true);
+ FMLCommonHandler.instance()
+ .exitJava(0, true);
}
}
diff --git a/src/main/java/gtPlusPlus/core/material/ALLOY.java b/src/main/java/gtPlusPlus/core/material/ALLOY.java
index d9df4b115e..6618c61dd3 100644
--- a/src/main/java/gtPlusPlus/core/material/ALLOY.java
+++ b/src/main/java/gtPlusPlus/core/material/ALLOY.java
@@ -18,101 +18,99 @@ public final class ALLOY {
public static final Material OSMIRIDIUM = MaterialUtils.generateMaterialFromGtENUM(Materials.Osmiridium);
public static final Material POLYETHYLENE = MaterialUtils.generateMaterialFromGtENUM(Materials.Plastic);
public static final Material POLYTETRAFLUOROETHYLENE = MaterialUtils
- .generateMaterialFromGtENUM(Materials.Polytetrafluoroethylene);
+ .generateMaterialFromGtENUM(Materials.Polytetrafluoroethylene);
public static final Material ENERGYCRYSTAL = new Material(
- "Energy Crystal", // Material Name
- MaterialState.SOLID, // State
- new short[] { 228, 255, 0, 0 }, // Material Colour
- 4660, // Melting Point in C
- 5735, // Boiling Point in C
- 90, // Protons
- 40, // Neutrons
- true, // Uses Blast furnace?
- "⬟ ⯂ ⬢ ⬣ ⯃ ⯄",
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().AER, 5),
- new MaterialStack(ELEMENT.getInstance().IGNIS, 5),
- new MaterialStack(ELEMENT.getInstance().TERRA, 5),
- new MaterialStack(ELEMENT.getInstance().AQUA, 5) });
+ "Energy Crystal", // Material Name
+ MaterialState.SOLID, // State
+ new short[] { 228, 255, 0, 0 }, // Material Colour
+ 4660, // Melting Point in C
+ 5735, // Boiling Point in C
+ 90, // Protons
+ 40, // Neutrons
+ true, // Uses Blast furnace?
+ "⬟ ⯂ ⬢ ⬣ ⯃ ⯄",
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().AER, 5),
+ new MaterialStack(ELEMENT.getInstance().IGNIS, 5), new MaterialStack(ELEMENT.getInstance().TERRA, 5),
+ new MaterialStack(ELEMENT.getInstance().AQUA, 5) });
public static final Material BLOODSTEEL = new Material(
- "Blood Steel", // Material Name
- MaterialState.SOLID, // State
- new short[] { 142, 28, 0, 0 }, // Material Colour
- 2500, // Melting Point in C
- 0, // Boiling Point in C
- 100, // Protons
- 100, // Neutrons
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ALLOY.STEEL, 5),
- new MaterialStack(ELEMENT.getInstance().IGNIS, 5) });
+ "Blood Steel", // Material Name
+ MaterialState.SOLID, // State
+ new short[] { 142, 28, 0, 0 }, // Material Colour
+ 2500, // Melting Point in C
+ 0, // Boiling Point in C
+ 100, // Protons
+ 100, // Neutrons
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ALLOY.STEEL, 5), new MaterialStack(ELEMENT.getInstance().IGNIS, 5) });
public static final Material STABALLOY = new Material(
- "Staballoy", // Material Name
- MaterialState.SOLID, // State
- new short[] { 68, 75, 66, 0 }, // Material Colour
- 3450, // Melting Point in C
- -1,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().URANIUM238, 9),
- new MaterialStack(ELEMENT.getInstance().TITANIUM, 1) });
+ "Staballoy", // Material Name
+ MaterialState.SOLID, // State
+ new short[] { 68, 75, 66, 0 }, // Material Colour
+ 3450, // Melting Point in C
+ -1,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().URANIUM238, 9),
+ new MaterialStack(ELEMENT.getInstance().TITANIUM, 1) });
public static final Material TANTALLOY_60 = new Material(
- "Tantalloy-60", // Material Name
- MaterialState.SOLID, // State
- new short[] { 213, 231, 237, 0 }, // Material Colour
- 3025, // Melting Point in C
- -1,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().TUNGSTEN, 4),
- new MaterialStack(ELEMENT.getInstance().TANTALUM, 46) });
+ "Tantalloy-60", // Material Name
+ MaterialState.SOLID, // State
+ new short[] { 213, 231, 237, 0 }, // Material Colour
+ 3025, // Melting Point in C
+ -1,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().TUNGSTEN, 4),
+ new MaterialStack(ELEMENT.getInstance().TANTALUM, 46) });
public static final Material TANTALLOY_61 = new Material(
- "Tantalloy-61", // Material Name
- MaterialState.SOLID, // State
- new short[] { 193, 211, 217, 0 }, // Material Colour
- 3030, // Melting Point in C
- -1,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ALLOY.TANTALLOY_60, 2),
- new MaterialStack(ELEMENT.getInstance().TITANIUM, 12),
- new MaterialStack(ELEMENT.getInstance().YTTRIUM, 8) });
+ "Tantalloy-61", // Material Name
+ MaterialState.SOLID, // State
+ new short[] { 193, 211, 217, 0 }, // Material Colour
+ 3030, // Melting Point in C
+ -1,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ALLOY.TANTALLOY_60, 2),
+ new MaterialStack(ELEMENT.getInstance().TITANIUM, 12),
+ new MaterialStack(ELEMENT.getInstance().YTTRIUM, 8) });
public static final Material TUMBAGA = new Material(
- "Tumbaga", // Material Name
- MaterialState.SOLID, // State
- new short[] { 255, 178, 15, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().GOLD, 70),
- new MaterialStack(ELEMENT.getInstance().COPPER, 30) });
+ "Tumbaga", // Material Name
+ MaterialState.SOLID, // State
+ new short[] { 255, 178, 15, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().GOLD, 70),
+ new MaterialStack(ELEMENT.getInstance().COPPER, 30) });
public static final Material POTIN = new Material(
- "Potin", // Material Name
- MaterialState.SOLID, // State
- new short[] { 201, 151, 129, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().LEAD, 40),
- new MaterialStack(ALLOY.BRONZE, 40), new MaterialStack(ELEMENT.getInstance().TIN, 20) });
+ "Potin", // Material Name
+ MaterialState.SOLID, // State
+ new short[] { 201, 151, 129, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().LEAD, 40), new MaterialStack(ALLOY.BRONZE, 40),
+ new MaterialStack(ELEMENT.getInstance().TIN, 20) });
/*
* public static final Material BEDROCKIUM = new Material( "Bedrockium", //Material Name new short[]{32, 32, 32, 0},
@@ -121,746 +119,710 @@ public final class ALLOY {
*/
public static final Material INCONEL_625 = new Material(
- "Inconel-625", // Material Name
- MaterialState.SOLID, // State
- new short[] { 128, 200, 128, 0 }, // Material Colour
- 2425, // Melting Point in C
- 3758,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().NICKEL, 3),
- new MaterialStack(ELEMENT.getInstance().CHROMIUM, 7),
- new MaterialStack(ELEMENT.getInstance().MOLYBDENUM, 10), new MaterialStack(INVAR, 10),
- new MaterialStack(NICHROME, 13) });
+ "Inconel-625", // Material Name
+ MaterialState.SOLID, // State
+ new short[] { 128, 200, 128, 0 }, // Material Colour
+ 2425, // Melting Point in C
+ 3758,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().NICKEL, 3),
+ new MaterialStack(ELEMENT.getInstance().CHROMIUM, 7),
+ new MaterialStack(ELEMENT.getInstance().MOLYBDENUM, 10), new MaterialStack(INVAR, 10),
+ new MaterialStack(NICHROME, 13) });
public static final Material INCONEL_690 = new Material(
- "Inconel-690", // Material Name
- MaterialState.SOLID, // State
- new short[] { 118, 220, 138, 0 }, // Material Colour
- 3425, // Melting Point in C
- 4895,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().CHROMIUM, 5),
- new MaterialStack(ELEMENT.getInstance().NIOBIUM, 10),
- new MaterialStack(ELEMENT.getInstance().MOLYBDENUM, 10), new MaterialStack(NICHROME, 15) });
+ "Inconel-690", // Material Name
+ MaterialState.SOLID, // State
+ new short[] { 118, 220, 138, 0 }, // Material Colour
+ 3425, // Melting Point in C
+ 4895,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().CHROMIUM, 5),
+ new MaterialStack(ELEMENT.getInstance().NIOBIUM, 10),
+ new MaterialStack(ELEMENT.getInstance().MOLYBDENUM, 10), new MaterialStack(NICHROME, 15) });
public static final Material INCONEL_792 = new Material(
- "Inconel-792", // Material Name
- MaterialState.SOLID, // State
- new short[] { 108, 240, 118, 0 }, // Material Colour
- 3425, // Melting Point in C
- 6200,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().NICKEL, 20),
- new MaterialStack(ELEMENT.getInstance().NIOBIUM, 10),
- new MaterialStack(ELEMENT.getInstance().ALUMINIUM, 20), new MaterialStack(NICHROME, 10) });
+ "Inconel-792", // Material Name
+ MaterialState.SOLID, // State
+ new short[] { 108, 240, 118, 0 }, // Material Colour
+ 3425, // Melting Point in C
+ 6200,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().NICKEL, 20),
+ new MaterialStack(ELEMENT.getInstance().NIOBIUM, 10),
+ new MaterialStack(ELEMENT.getInstance().ALUMINIUM, 20), new MaterialStack(NICHROME, 10) });
public static final Material NITINOL_60 = new Material(
- "Nitinol 60", // Material Name
- MaterialState.SOLID, // State
- null, // Material Colour
- 5651, // Melting Point in C
- 8975,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().NICKEL, 40),
- new MaterialStack(ELEMENT.getInstance().TITANIUM, 60) });
+ "Nitinol 60", // Material Name
+ MaterialState.SOLID, // State
+ null, // Material Colour
+ 5651, // Melting Point in C
+ 8975,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().NICKEL, 40),
+ new MaterialStack(ELEMENT.getInstance().TITANIUM, 60) });
public static final Material ZERON_100 = new Material(
- "Zeron-100", // Material Name
- MaterialState.SOLID, // State
- new short[] { 180, 180, 20, 0 }, // Material Colour
- 6100,
- 9785,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().CHROMIUM, 26),
- new MaterialStack(ELEMENT.getInstance().NICKEL, 6),
- new MaterialStack(ELEMENT.getInstance().MOLYBDENUM, 4),
- new MaterialStack(ELEMENT.getInstance().COPPER, 20),
- new MaterialStack(ELEMENT.getInstance().TUNGSTEN, 4), new MaterialStack(ALLOY.STEEL, 40) });
+ "Zeron-100", // Material Name
+ MaterialState.SOLID, // State
+ new short[] { 180, 180, 20, 0 }, // Material Colour
+ 6100,
+ 9785,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().CHROMIUM, 26),
+ new MaterialStack(ELEMENT.getInstance().NICKEL, 6), new MaterialStack(ELEMENT.getInstance().MOLYBDENUM, 4),
+ new MaterialStack(ELEMENT.getInstance().COPPER, 20), new MaterialStack(ELEMENT.getInstance().TUNGSTEN, 4),
+ new MaterialStack(ALLOY.STEEL, 40) });
public static final Material MARAGING250 = new Material(
- "Maraging Steel 250", // Material Name
- MaterialState.SOLID, // State
- null, // Material Colour
- 2413, // Melting Point in C
- 4555,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ALLOY.STEEL, 64),
- new MaterialStack(ELEMENT.getInstance().MOLYBDENUM, 4),
- new MaterialStack(ELEMENT.getInstance().TITANIUM, 4),
- new MaterialStack(ELEMENT.getInstance().NICKEL, 16),
- new MaterialStack(ELEMENT.getInstance().COBALT, 8), });
+ "Maraging Steel 250", // Material Name
+ MaterialState.SOLID, // State
+ null, // Material Colour
+ 2413, // Melting Point in C
+ 4555,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ALLOY.STEEL, 64),
+ new MaterialStack(ELEMENT.getInstance().MOLYBDENUM, 4),
+ new MaterialStack(ELEMENT.getInstance().TITANIUM, 4), new MaterialStack(ELEMENT.getInstance().NICKEL, 16),
+ new MaterialStack(ELEMENT.getInstance().COBALT, 8), });
public static final Material MARAGING300 = new Material(
- "Maraging Steel 300", // Material Name
- MaterialState.SOLID, // State
- null, // Material Colour
- 2413, // Melting Point in C
- 4555,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ALLOY.STEEL, 64),
- new MaterialStack(ELEMENT.getInstance().TITANIUM, 4),
- new MaterialStack(ELEMENT.getInstance().ALUMINIUM, 4),
- new MaterialStack(ELEMENT.getInstance().NICKEL, 16),
- new MaterialStack(ELEMENT.getInstance().COBALT, 8), });
+ "Maraging Steel 300", // Material Name
+ MaterialState.SOLID, // State
+ null, // Material Colour
+ 2413, // Melting Point in C
+ 4555,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ALLOY.STEEL, 64), new MaterialStack(ELEMENT.getInstance().TITANIUM, 4),
+ new MaterialStack(ELEMENT.getInstance().ALUMINIUM, 4), new MaterialStack(ELEMENT.getInstance().NICKEL, 16),
+ new MaterialStack(ELEMENT.getInstance().COBALT, 8), });
public static final Material MARAGING350 = new Material(
- "Maraging Steel 350", // Material Name
- MaterialState.SOLID, // State
- null, // Material Colour
- 2413, // Melting Point in C
- 4555,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ALLOY.STEEL, 64),
- new MaterialStack(ELEMENT.getInstance().ALUMINIUM, 4),
- new MaterialStack(ELEMENT.getInstance().MOLYBDENUM, 4),
- new MaterialStack(ELEMENT.getInstance().NICKEL, 16),
- new MaterialStack(ELEMENT.getInstance().COBALT, 8), });
+ "Maraging Steel 350", // Material Name
+ MaterialState.SOLID, // State
+ null, // Material Colour
+ 2413, // Melting Point in C
+ 4555,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ALLOY.STEEL, 64), new MaterialStack(ELEMENT.getInstance().ALUMINIUM, 4),
+ new MaterialStack(ELEMENT.getInstance().MOLYBDENUM, 4), new MaterialStack(ELEMENT.getInstance().NICKEL, 16),
+ new MaterialStack(ELEMENT.getInstance().COBALT, 8), });
public static final Material AQUATIC_STEEL = new Material(
- "Watertight Steel", // Material Name
- MaterialState.SOLID, // State
- new short[] { 120, 120, 180 }, // Material Colour
- 2673, // Melting Point in C
- 4835,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ALLOY.STEEL, 60),
- new MaterialStack(ELEMENT.getInstance().CARBON, 10),
- new MaterialStack(ELEMENT.getInstance().MANGANESE, 5),
- new MaterialStack(ELEMENT.getInstance().SILICON, 10),
- new MaterialStack(ELEMENT.getInstance().PHOSPHORUS, 5),
- new MaterialStack(ELEMENT.getInstance().SULFUR, 5),
- new MaterialStack(ELEMENT.getInstance().ALUMINIUM, 5) });
+ "Watertight Steel", // Material Name
+ MaterialState.SOLID, // State
+ new short[] { 120, 120, 180 }, // Material Colour
+ 2673, // Melting Point in C
+ 4835,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ALLOY.STEEL, 60), new MaterialStack(ELEMENT.getInstance().CARBON, 10),
+ new MaterialStack(ELEMENT.getInstance().MANGANESE, 5), new MaterialStack(ELEMENT.getInstance().SILICON, 10),
+ new MaterialStack(ELEMENT.getInstance().PHOSPHORUS, 5), new MaterialStack(ELEMENT.getInstance().SULFUR, 5),
+ new MaterialStack(ELEMENT.getInstance().ALUMINIUM, 5) });
public static final Material STELLITE = new Material(
- "Stellite", // Material Name
- MaterialState.SOLID, // State
- null, // Material Colour
- 4310, // Melting Point in C
- 6250,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().COBALT, 35),
- new MaterialStack(ELEMENT.getInstance().CHROMIUM, 35),
- new MaterialStack(ELEMENT.getInstance().MANGANESE, 20),
- new MaterialStack(ELEMENT.getInstance().TITANIUM, 10) });
+ "Stellite", // Material Name
+ MaterialState.SOLID, // State
+ null, // Material Colour
+ 4310, // Melting Point in C
+ 6250,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().COBALT, 35),
+ new MaterialStack(ELEMENT.getInstance().CHROMIUM, 35),
+ new MaterialStack(ELEMENT.getInstance().MANGANESE, 20),
+ new MaterialStack(ELEMENT.getInstance().TITANIUM, 10) });
public static final Material TALONITE = new Material(
- "Talonite", // Material Name
- MaterialState.SOLID, // State
- null, // Material Colour
- 3454, // Melting Point in C
- 5500,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().COBALT, 40),
- new MaterialStack(ELEMENT.getInstance().CHROMIUM, 30),
- new MaterialStack(ELEMENT.getInstance().PHOSPHORUS, 20),
- new MaterialStack(ELEMENT.getInstance().MOLYBDENUM, 10) });
+ "Talonite", // Material Name
+ MaterialState.SOLID, // State
+ null, // Material Colour
+ 3454, // Melting Point in C
+ 5500,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().COBALT, 40),
+ new MaterialStack(ELEMENT.getInstance().CHROMIUM, 30),
+ new MaterialStack(ELEMENT.getInstance().PHOSPHORUS, 20),
+ new MaterialStack(ELEMENT.getInstance().MOLYBDENUM, 10) });
public static final Material HASTELLOY_W = new Material(
- "Hastelloy-W", // Material Name
- MaterialState.SOLID, // State
- null, // Material Colour
- 3350, // Melting Point in C
- 5755,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().IRON, 06),
- new MaterialStack(ELEMENT.getInstance().COBALT, 2),
- new MaterialStack(ELEMENT.getInstance().MOLYBDENUM, 24),
- new MaterialStack(ELEMENT.getInstance().CHROMIUM, 6),
- new MaterialStack(ELEMENT.getInstance().NICKEL, 62) });
+ "Hastelloy-W", // Material Name
+ MaterialState.SOLID, // State
+ null, // Material Colour
+ 3350, // Melting Point in C
+ 5755,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().IRON, 06),
+ new MaterialStack(ELEMENT.getInstance().COBALT, 2), new MaterialStack(ELEMENT.getInstance().MOLYBDENUM, 24),
+ new MaterialStack(ELEMENT.getInstance().CHROMIUM, 6),
+ new MaterialStack(ELEMENT.getInstance().NICKEL, 62) });
public static final Material HASTELLOY_X = new Material(
- "Hastelloy-X", // Material Name
- MaterialState.SOLID, // State
- null, // Material Colour
- 3350, // Melting Point in C
- 5755,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().IRON, 18),
- new MaterialStack(ELEMENT.getInstance().MANGANESE, 2),
- new MaterialStack(ELEMENT.getInstance().SILICON, 2),
- new MaterialStack(ELEMENT.getInstance().MOLYBDENUM, 8),
- new MaterialStack(ELEMENT.getInstance().CHROMIUM, 22),
- new MaterialStack(ELEMENT.getInstance().NICKEL, 48) });
+ "Hastelloy-X", // Material Name
+ MaterialState.SOLID, // State
+ null, // Material Colour
+ 3350, // Melting Point in C
+ 5755,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().IRON, 18),
+ new MaterialStack(ELEMENT.getInstance().MANGANESE, 2), new MaterialStack(ELEMENT.getInstance().SILICON, 2),
+ new MaterialStack(ELEMENT.getInstance().MOLYBDENUM, 8),
+ new MaterialStack(ELEMENT.getInstance().CHROMIUM, 22),
+ new MaterialStack(ELEMENT.getInstance().NICKEL, 48) });
public static final Material HASTELLOY_N = new Material(
- "Hastelloy-N", // Material Name
- MaterialState.SOLID, // State
- null, // Material Colour
- 4350, // Melting Point in C
- 6875,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().YTTRIUM, 8),
- new MaterialStack(ELEMENT.getInstance().MOLYBDENUM, 16),
- new MaterialStack(ELEMENT.getInstance().CHROMIUM, 8),
- new MaterialStack(ELEMENT.getInstance().TITANIUM, 8),
- new MaterialStack(ELEMENT.getInstance().NICKEL, 60) });
+ "Hastelloy-N", // Material Name
+ MaterialState.SOLID, // State
+ null, // Material Colour
+ 4350, // Melting Point in C
+ 6875,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().YTTRIUM, 8),
+ new MaterialStack(ELEMENT.getInstance().MOLYBDENUM, 16),
+ new MaterialStack(ELEMENT.getInstance().CHROMIUM, 8), new MaterialStack(ELEMENT.getInstance().TITANIUM, 8),
+ new MaterialStack(ELEMENT.getInstance().NICKEL, 60) });
public static final Material HASTELLOY_C276 = new Material(
- "Hastelloy-C276", // Material Name
- MaterialState.SOLID, // State
- null, // Material Colour
- 4350, // Melting Point in C
- 6520,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().COBALT, 2),
- new MaterialStack(ELEMENT.getInstance().MOLYBDENUM, 16),
- new MaterialStack(ELEMENT.getInstance().TUNGSTEN, 2),
- new MaterialStack(ELEMENT.getInstance().COPPER, 2),
- new MaterialStack(ELEMENT.getInstance().CHROMIUM, 14),
- new MaterialStack(ELEMENT.getInstance().NICKEL, 64) });
+ "Hastelloy-C276", // Material Name
+ MaterialState.SOLID, // State
+ null, // Material Colour
+ 4350, // Melting Point in C
+ 6520,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().COBALT, 2),
+ new MaterialStack(ELEMENT.getInstance().MOLYBDENUM, 16),
+ new MaterialStack(ELEMENT.getInstance().TUNGSTEN, 2), new MaterialStack(ELEMENT.getInstance().COPPER, 2),
+ new MaterialStack(ELEMENT.getInstance().CHROMIUM, 14),
+ new MaterialStack(ELEMENT.getInstance().NICKEL, 64) });
public static final Material INCOLOY_020 = new Material(
- "Incoloy-020", // Material Name
- MaterialState.SOLID, // State
- null, // Material Colour
- 3425, // Melting Point in C
- 5420,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().IRON, 40),
- new MaterialStack(ELEMENT.getInstance().COPPER, 4),
- new MaterialStack(ELEMENT.getInstance().CHROMIUM, 20),
- new MaterialStack(ELEMENT.getInstance().NICKEL, 36) });
+ "Incoloy-020", // Material Name
+ MaterialState.SOLID, // State
+ null, // Material Colour
+ 3425, // Melting Point in C
+ 5420,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().IRON, 40),
+ new MaterialStack(ELEMENT.getInstance().COPPER, 4), new MaterialStack(ELEMENT.getInstance().CHROMIUM, 20),
+ new MaterialStack(ELEMENT.getInstance().NICKEL, 36) });
public static final Material INCOLOY_DS = new Material(
- "Incoloy-DS", // Material Name
- MaterialState.SOLID, // State
- null, // Material Colour
- 3425, // Melting Point in C
- 5420,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().IRON, 46),
- new MaterialStack(ELEMENT.getInstance().COBALT, 18),
- new MaterialStack(ELEMENT.getInstance().CHROMIUM, 18),
- new MaterialStack(ELEMENT.getInstance().NICKEL, 18) });
+ "Incoloy-DS", // Material Name
+ MaterialState.SOLID, // State
+ null, // Material Colour
+ 3425, // Melting Point in C
+ 5420,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().IRON, 46),
+ new MaterialStack(ELEMENT.getInstance().COBALT, 18), new MaterialStack(ELEMENT.getInstance().CHROMIUM, 18),
+ new MaterialStack(ELEMENT.getInstance().NICKEL, 18) });
public static final Material INCOLOY_MA956 = new Material(
- "Incoloy-MA956", // Material Name
- MaterialState.SOLID, // State
- null, // Material Colour
- 4425, // Melting Point in C
- 6875,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().IRON, 64),
- new MaterialStack(ELEMENT.getInstance().ALUMINIUM, 12),
- new MaterialStack(ELEMENT.getInstance().CHROMIUM, 20),
- new MaterialStack(ELEMENT.getInstance().YTTRIUM, 4) });
+ "Incoloy-MA956", // Material Name
+ MaterialState.SOLID, // State
+ null, // Material Colour
+ 4425, // Melting Point in C
+ 6875,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().IRON, 64),
+ new MaterialStack(ELEMENT.getInstance().ALUMINIUM, 12),
+ new MaterialStack(ELEMENT.getInstance().CHROMIUM, 20),
+ new MaterialStack(ELEMENT.getInstance().YTTRIUM, 4) });
public static final Material TUNGSTEN_CARBIDE = new Material(
- "Tungsten Carbide", // Material Name
- MaterialState.SOLID, // State
- new short[] { 44, 44, 44, 0 }, // Material Colour
- 3422, // Melting Point in C
- -1,
- -1,
- -1,
- true, // Uses Blast furnace?
- false, // Generate cells
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().CARBON, 50),
- new MaterialStack(ELEMENT.getInstance().TUNGSTEN, 50) });
+ "Tungsten Carbide", // Material Name
+ MaterialState.SOLID, // State
+ new short[] { 44, 44, 44, 0 }, // Material Colour
+ 3422, // Melting Point in C
+ -1,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ false, // Generate cells
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().CARBON, 50),
+ new MaterialStack(ELEMENT.getInstance().TUNGSTEN, 50) });
public static final Material TUNGSTEN_TITANIUM_CARBIDE = new Material(
- "Tungsten Titanium Carbide", // Material Name
- MaterialState.SOLID, // State
- null,
- 4422, // Melting Point in C
- -1,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(TUNGSTEN_CARBIDE, 70),
- new MaterialStack(ELEMENT.getInstance().TITANIUM, 30) });
+ "Tungsten Titanium Carbide", // Material Name
+ MaterialState.SOLID, // State
+ null,
+ 4422, // Melting Point in C
+ -1,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(TUNGSTEN_CARBIDE, 70),
+ new MaterialStack(ELEMENT.getInstance().TITANIUM, 30) });
public static final Material SILICON_CARBIDE = new Material(
- "Silicon Carbide", // Material Name
- MaterialState.SOLID, // State
- new short[] { 40, 48, 36, 0 }, // Material Colour
- 1414, // Melting Point in C
- -1,
- -1,
- -1,
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().SILICON, 50),
- new MaterialStack(ELEMENT.getInstance().CARBON, 50) });
+ "Silicon Carbide", // Material Name
+ MaterialState.SOLID, // State
+ new short[] { 40, 48, 36, 0 }, // Material Colour
+ 1414, // Melting Point in C
+ -1,
+ -1,
+ -1,
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().SILICON, 50),
+ new MaterialStack(ELEMENT.getInstance().CARBON, 50) });
public static final Material TANTALUM_CARBIDE = new Material(
- "Tantalum Carbide", // Material Name
- MaterialState.SOLID, // State
- new short[] { 139, 136, 120, 0 }, // Material Colour
- 2980, // Melting Point in C
- -1,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().TANTALUM, 50),
- new MaterialStack(ELEMENT.getInstance().CARBON, 50) });
+ "Tantalum Carbide", // Material Name
+ MaterialState.SOLID, // State
+ new short[] { 139, 136, 120, 0 }, // Material Colour
+ 2980, // Melting Point in C
+ -1,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().TANTALUM, 50),
+ new MaterialStack(ELEMENT.getInstance().CARBON, 50) });
public static final Material ZIRCONIUM_CARBIDE = new Material(
- "Zirconium Carbide", // Material Name
- MaterialState.SOLID, // State
- new short[] { 222, 202, 180, 0 }, // Material Colour
- 1555, // Melting Point in C
- -1,
- -1,
- -1,
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().ZIRCONIUM, 50),
- new MaterialStack(ELEMENT.getInstance().CARBON, 50) });
+ "Zirconium Carbide", // Material Name
+ MaterialState.SOLID, // State
+ new short[] { 222, 202, 180, 0 }, // Material Colour
+ 1555, // Melting Point in C
+ -1,
+ -1,
+ -1,
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().ZIRCONIUM, 50),
+ new MaterialStack(ELEMENT.getInstance().CARBON, 50) });
public static final Material NIOBIUM_CARBIDE = new Material(
- "Niobium Carbide", // Material Name
- MaterialState.SOLID, // State
- new short[] { 205, 197, 191, 0 }, // Material Colour
- 2477, // Melting Point in C
- -1,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().NIOBIUM, 50),
- new MaterialStack(ELEMENT.getInstance().CARBON, 50) });
+ "Niobium Carbide", // Material Name
+ MaterialState.SOLID, // State
+ new short[] { 205, 197, 191, 0 }, // Material Colour
+ 2477, // Melting Point in C
+ -1,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().NIOBIUM, 50),
+ new MaterialStack(ELEMENT.getInstance().CARBON, 50) });
public static final Material ARCANITE = new Material(
- "Arcanite", // Material Name
- MaterialState.SOLID, // State
- null,
- 5666, // Melting Point in C
- 9875,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().THORIUM232, 40),
- new MaterialStack(ENERGYCRYSTAL, 40), new MaterialStack(ELEMENT.getInstance().ORDO, 10),
- new MaterialStack(ELEMENT.getInstance().PERDITIO, 10) });
+ "Arcanite", // Material Name
+ MaterialState.SOLID, // State
+ null,
+ 5666, // Melting Point in C
+ 9875,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().THORIUM232, 40),
+ new MaterialStack(ENERGYCRYSTAL, 40), new MaterialStack(ELEMENT.getInstance().ORDO, 10),
+ new MaterialStack(ELEMENT.getInstance().PERDITIO, 10) });
public static final Material LEAGRISIUM = new Material(
- "Grisium", // Material Name
- MaterialState.SOLID, // State
- new short[] { 53, 93, 106, 0 }, // Material Colour
- 3850, // Melting Point in C
- 5550, // Boiling Point in C
- 96, // Protons
- 128, // Neutrons
- true, // Uses Blast furnace?
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().TITANIUM, 18),
- new MaterialStack(ELEMENT.getInstance().CARBON, 18),
- new MaterialStack(ELEMENT.getInstance().POTASSIUM, 18),
- new MaterialStack(ELEMENT.getInstance().LITHIUM, 18),
- new MaterialStack(ELEMENT.getInstance().SULFUR, 18),
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 10) }); // Material Stacks with Percentage of
- // required elements.
+ "Grisium", // Material Name
+ MaterialState.SOLID, // State
+ new short[] { 53, 93, 106, 0 }, // Material Colour
+ 3850, // Melting Point in C
+ 5550, // Boiling Point in C
+ 96, // Protons
+ 128, // Neutrons
+ true, // Uses Blast furnace?
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().TITANIUM, 18),
+ new MaterialStack(ELEMENT.getInstance().CARBON, 18), new MaterialStack(ELEMENT.getInstance().POTASSIUM, 18),
+ new MaterialStack(ELEMENT.getInstance().LITHIUM, 18), new MaterialStack(ELEMENT.getInstance().SULFUR, 18),
+ new MaterialStack(ELEMENT.getInstance().HYDROGEN, 10) }); // Material Stacks with Percentage of
+ // required elements.
public static final Material EGLIN_STEEL_BASE = new Material(
- "Eglin Steel Base Compound", // Material Name
- MaterialState.SOLID, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1,
- -1,
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().IRON, 12), new MaterialStack(KANTHAL, 3),
- new MaterialStack(INVAR, 15) });
+ "Eglin Steel Base Compound", // Material Name
+ MaterialState.SOLID, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1,
+ -1,
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().IRON, 12), new MaterialStack(KANTHAL, 3),
+ new MaterialStack(INVAR, 15) });
public static final Material EGLIN_STEEL = new Material(
- "Eglin Steel", // Material Name
- MaterialState.SOLID, // State
- new short[] { 139, 69, 19, 0 }, // Material Colour
- 1048, // Melting Point in C
- 1973, // Boiling Point in C
- -1,
- -1,
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ALLOY.EGLIN_STEEL_BASE, 10),
- new MaterialStack(ELEMENT.getInstance().SULFUR, 1),
- new MaterialStack(ELEMENT.getInstance().SILICON, 4),
- new MaterialStack(ELEMENT.getInstance().CARBON, 1) });
+ "Eglin Steel", // Material Name
+ MaterialState.SOLID, // State
+ new short[] { 139, 69, 19, 0 }, // Material Colour
+ 1048, // Melting Point in C
+ 1973, // Boiling Point in C
+ -1,
+ -1,
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ALLOY.EGLIN_STEEL_BASE, 10),
+ new MaterialStack(ELEMENT.getInstance().SULFUR, 1), new MaterialStack(ELEMENT.getInstance().SILICON, 4),
+ new MaterialStack(ELEMENT.getInstance().CARBON, 1) });
public static final Material HG1223 = new Material(
- "HG-1223", // Material Name
- MaterialState.LIQUID, // State
- new short[] { 39, 85, 159, 0 }, // Material Colour
- 6357, // Melting Point in C
- 8563, // Boiling Point in C
- -1,
- -1,
- false, // Uses Blast furnace?
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().MERCURY, 1),
- new MaterialStack(ELEMENT.getInstance().BARIUM, 2),
- new MaterialStack(ELEMENT.getInstance().CALCIUM, 2),
- new MaterialStack(ELEMENT.getInstance().COPPER, 3),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 8) });
+ "HG-1223", // Material Name
+ MaterialState.LIQUID, // State
+ new short[] { 39, 85, 159, 0 }, // Material Colour
+ 6357, // Melting Point in C
+ 8563, // Boiling Point in C
+ -1,
+ -1,
+ false, // Uses Blast furnace?
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().MERCURY, 1),
+ new MaterialStack(ELEMENT.getInstance().BARIUM, 2), new MaterialStack(ELEMENT.getInstance().CALCIUM, 2),
+ new MaterialStack(ELEMENT.getInstance().COPPER, 3), new MaterialStack(ELEMENT.getInstance().OXYGEN, 8) });
public static final Material HS188A = new Material(
- "HS188-A", // Material Name
- MaterialState.SOLID, // State
- null, // Material Colour
- 4870, // Melting Point in C
- 7550, // Boiling Point in C
- -1, // Protons
- -1, // Neutrons
- true, // Uses Blast furnace?
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().COBALT, 20),
- new MaterialStack(ELEMENT.getInstance().HAFNIUM, 20), new MaterialStack(TALONITE, 16),
- new MaterialStack(ELEMENT.getInstance().RHENIUM, 10), new MaterialStack(NIOBIUM_CARBIDE, 10),
- new MaterialStack(HASTELLOY_X, 8), new MaterialStack(TUNGSTENSTEEL, 8),
- new MaterialStack(ZIRCONIUM_CARBIDE, 8), }); // Material Stacks with Percentage of required
- // elements.
+ "HS188-A", // Material Name
+ MaterialState.SOLID, // State
+ null, // Material Colour
+ 4870, // Melting Point in C
+ 7550, // Boiling Point in C
+ -1, // Protons
+ -1, // Neutrons
+ true, // Uses Blast furnace?
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().COBALT, 20),
+ new MaterialStack(ELEMENT.getInstance().HAFNIUM, 20), new MaterialStack(TALONITE, 16),
+ new MaterialStack(ELEMENT.getInstance().RHENIUM, 10), new MaterialStack(NIOBIUM_CARBIDE, 10),
+ new MaterialStack(HASTELLOY_X, 8), new MaterialStack(TUNGSTENSTEEL, 8),
+ new MaterialStack(ZIRCONIUM_CARBIDE, 8), }); // Material Stacks with Percentage of required
+ // elements.
/**
* Stargate Materials - #D2FFA9 210, 255, 170
*/
public static final Material TRINIUM_TITANIUM = new Material(
- "Trinium Titanium Alloy", // Material Name
- MaterialState.SOLID, // State
- null, // Material Colour
- 3750, // Melting Point in C
- 7210, // Boiling Point in C
- -1,
- -1,
- true, // Uses Blast furnace?
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().TRINIUM_REFINED, 3),
- new MaterialStack(ELEMENT.getInstance().TITANIUM, 7) });
+ "Trinium Titanium Alloy", // Material Name
+ MaterialState.SOLID, // State
+ null, // Material Colour
+ 3750, // Melting Point in C
+ 7210, // Boiling Point in C
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().TRINIUM_REFINED, 3),
+ new MaterialStack(ELEMENT.getInstance().TITANIUM, 7) });
public static final Material TRINIUM_NAQUADAH = new Material(
- "Trinium Naquadah Alloy", // Material Name
- MaterialState.SOLID, // State
- null, // Material Colour
- 4200, // Melting Point in C
- 7400, // Boiling Point in C
- -1,
- -1,
- false, // Uses Blast furnace?
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().TRINIUM_REFINED, 5),
- new MaterialStack(ELEMENT.getInstance().NAQUADAH, 9) });
+ "Trinium Naquadah Alloy", // Material Name
+ MaterialState.SOLID, // State
+ null, // Material Colour
+ 4200, // Melting Point in C
+ 7400, // Boiling Point in C
+ -1,
+ -1,
+ false, // Uses Blast furnace?
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().TRINIUM_REFINED, 5),
+ new MaterialStack(ELEMENT.getInstance().NAQUADAH, 9) });
public static final Material TRINIUM_NAQUADAH_CARBON = new Material(
- "Trinium Naquadah Carbonite", // Material Name
- MaterialState.SOLID, // State
- null, // Material Colour
- 6500, // Melting Point in C
- 9000, // Boiling Point in C
- -1,
- -1,
- true, // Uses Blast furnace?
- new MaterialStack[] { new MaterialStack(TRINIUM_NAQUADAH, 9),
- new MaterialStack(ELEMENT.getInstance().CARBON, 1) });
+ "Trinium Naquadah Carbonite", // Material Name
+ MaterialState.SOLID, // State
+ null, // Material Colour
+ 6500, // Melting Point in C
+ 9000, // Boiling Point in C
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ new MaterialStack[] { new MaterialStack(TRINIUM_NAQUADAH, 9),
+ new MaterialStack(ELEMENT.getInstance().CARBON, 1) });
public static final Material TRINIUM_REINFORCED_STEEL = new Material(
- "Arceus Alloy 2B", // Material Name
- MaterialState.SOLID, // State
- new short[] { 205, 197, 23, 0 }, // Material Colour
- 7555, // Melting Point in C
- 12350,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().TRINIUM_REFINED, 30),
- new MaterialStack(ALLOY.MARAGING350, 40), new MaterialStack(ALLOY.TUNGSTENSTEEL, 20),
- new MaterialStack(ALLOY.OSMIRIDIUM, 10), new MaterialStack(ELEMENT.getInstance().STRONTIUM, 10) });
+ "Arceus Alloy 2B", // Material Name
+ MaterialState.SOLID, // State
+ new short[] { 205, 197, 23, 0 }, // Material Colour
+ 7555, // Melting Point in C
+ 12350,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().TRINIUM_REFINED, 30),
+ new MaterialStack(ALLOY.MARAGING350, 40), new MaterialStack(ALLOY.TUNGSTENSTEEL, 20),
+ new MaterialStack(ALLOY.OSMIRIDIUM, 10), new MaterialStack(ELEMENT.getInstance().STRONTIUM, 10) });
/*
* Witchery Material
*/
public static final Material KOBOLDITE = new Material(
- "Koboldite", // Material Name
- MaterialState.SOLID, // State
- new short[] { 80, 210, 255, 0 }, // Material Colour
- -1, // Melting Point in C
- -1,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().NICKEL, 35),
- new MaterialStack(ELEMENT.getInstance().THAUMIUM, 30),
- new MaterialStack(ELEMENT.getInstance().IRON, 35) });
+ "Koboldite", // Material Name
+ MaterialState.SOLID, // State
+ new short[] { 80, 210, 255, 0 }, // Material Colour
+ -1, // Melting Point in C
+ -1,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().NICKEL, 35),
+ new MaterialStack(ELEMENT.getInstance().THAUMIUM, 30), new MaterialStack(ELEMENT.getInstance().IRON, 35) });
/*
* Top Tier Alloys
*/
public static final Material HELICOPTER = new Material(
- "HeLiCoPtEr", // Material Name
- MaterialState.SOLID, // State
- null, // Material Colour
- 5763,
- 8192,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().HELIUM, 20),
- new MaterialStack(ELEMENT.getInstance().LITHIUM, 20),
- new MaterialStack(ELEMENT.getInstance().COBALT, 20),
- new MaterialStack(ELEMENT.getInstance().PLATINUM, 20),
- new MaterialStack(ELEMENT.getInstance().ERBIUM, 20) });
+ "HeLiCoPtEr", // Material Name
+ MaterialState.SOLID, // State
+ null, // Material Colour
+ 5763,
+ 8192,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().HELIUM, 20),
+ new MaterialStack(ELEMENT.getInstance().LITHIUM, 20), new MaterialStack(ELEMENT.getInstance().COBALT, 20),
+ new MaterialStack(ELEMENT.getInstance().PLATINUM, 20),
+ new MaterialStack(ELEMENT.getInstance().ERBIUM, 20) });
// 0lafe Compound
public static final Material LAFIUM = new Material(
- "Lafium Compound", // Material Name
- MaterialState.SOLID, // State
- null, // Material Colour
- 6350, // Melting Point in C
- 9865, // Boiling Point in C
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ALLOY.HASTELLOY_N, 8),
- new MaterialStack(ELEMENT.getInstance().NAQUADAH, 4),
- new MaterialStack(ELEMENT.getInstance().SAMARIUM, 2),
- new MaterialStack(ELEMENT.getInstance().TUNGSTEN, 4),
- new MaterialStack(ELEMENT.getInstance().ARGON, 2),
- new MaterialStack(ELEMENT.getInstance().ALUMINIUM, 6),
- new MaterialStack(ELEMENT.getInstance().NICKEL, 8),
- new MaterialStack(ELEMENT.getInstance().CARBON, 2) });
+ "Lafium Compound", // Material Name
+ MaterialState.SOLID, // State
+ null, // Material Colour
+ 6350, // Melting Point in C
+ 9865, // Boiling Point in C
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ALLOY.HASTELLOY_N, 8),
+ new MaterialStack(ELEMENT.getInstance().NAQUADAH, 4), new MaterialStack(ELEMENT.getInstance().SAMARIUM, 2),
+ new MaterialStack(ELEMENT.getInstance().TUNGSTEN, 4), new MaterialStack(ELEMENT.getInstance().ARGON, 2),
+ new MaterialStack(ELEMENT.getInstance().ALUMINIUM, 6), new MaterialStack(ELEMENT.getInstance().NICKEL, 8),
+ new MaterialStack(ELEMENT.getInstance().CARBON, 2) });
// Cinobi Alloy
public static final Material CINOBITE = new Material(
- "Cinobite A243", // Material Name
- MaterialState.SOLID, // State
- null, // Material Colour
- 7350, // Melting Point in C
- 12565, // Boiling Point in C
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ALLOY.ZERON_100, 16),
- new MaterialStack(ELEMENT.getInstance().NAQUADRIA, 7),
- new MaterialStack(ELEMENT.getInstance().GADOLINIUM, 5),
- new MaterialStack(ELEMENT.getInstance().ALUMINIUM, 3),
- new MaterialStack(ELEMENT.getInstance().MERCURY, 2),
- new MaterialStack(ELEMENT.getInstance().TIN, 2),
- new MaterialStack(ELEMENT.getInstance().TITANIUM, 12), new MaterialStack(ALLOY.OSMIRIDIUM, 6) });
+ "Cinobite A243", // Material Name
+ MaterialState.SOLID, // State
+ null, // Material Colour
+ 7350, // Melting Point in C
+ 12565, // Boiling Point in C
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ALLOY.ZERON_100, 16),
+ new MaterialStack(ELEMENT.getInstance().NAQUADRIA, 7),
+ new MaterialStack(ELEMENT.getInstance().GADOLINIUM, 5),
+ new MaterialStack(ELEMENT.getInstance().ALUMINIUM, 3), new MaterialStack(ELEMENT.getInstance().MERCURY, 2),
+ new MaterialStack(ELEMENT.getInstance().TIN, 2), new MaterialStack(ELEMENT.getInstance().TITANIUM, 12),
+ new MaterialStack(ALLOY.OSMIRIDIUM, 6) });
// Piky Alloy
public static final Material PIKYONIUM = new Material(
- "Pikyonium 64B", // Material Name
- MaterialState.SOLID, // State
- new short[] { 52, 103, 186, 0 }, // Material Colour
- 6850, // Melting Point in C
- 11765, // Boiling Point in C
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ALLOY.INCONEL_792, 16), new MaterialStack(ALLOY.EGLIN_STEEL, 10),
- new MaterialStack(ELEMENT.getInstance().NAQUADAH_ENRICHED, 8),
- new MaterialStack(ELEMENT.getInstance().CERIUM, 6),
- new MaterialStack(ELEMENT.getInstance().ANTIMONY, 4),
- new MaterialStack(ELEMENT.getInstance().PLATINUM, 4),
- new MaterialStack(ELEMENT.getInstance().YTTERBIUM, 2), new MaterialStack(ALLOY.TUNGSTENSTEEL, 8) });
+ "Pikyonium 64B", // Material Name
+ MaterialState.SOLID, // State
+ new short[] { 52, 103, 186, 0 }, // Material Colour
+ 6850, // Melting Point in C
+ 11765, // Boiling Point in C
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ALLOY.INCONEL_792, 16), new MaterialStack(ALLOY.EGLIN_STEEL, 10),
+ new MaterialStack(ELEMENT.getInstance().NAQUADAH_ENRICHED, 8),
+ new MaterialStack(ELEMENT.getInstance().CERIUM, 6), new MaterialStack(ELEMENT.getInstance().ANTIMONY, 4),
+ new MaterialStack(ELEMENT.getInstance().PLATINUM, 4), new MaterialStack(ELEMENT.getInstance().YTTERBIUM, 2),
+ new MaterialStack(ALLOY.TUNGSTENSTEEL, 8) });
// Piky Alloy
public static final Material ABYSSAL = new Material(
- "Abyssal Alloy", // Material Name
- MaterialState.SOLID, // State
- null, // Material Colour
- 9650, // Melting Point in C
- 13765, // Boiling Point in C
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ALLOY.STAINLESS_STEEL, 10),
- new MaterialStack(ALLOY.TUNGSTEN_CARBIDE, 10), new MaterialStack(ALLOY.NICHROME, 10),
- new MaterialStack(ALLOY.BRONZE, 10), new MaterialStack(ALLOY.INCOLOY_MA956, 10),
- new MaterialStack(ELEMENT.getInstance().IODINE, 2),
- new MaterialStack(ELEMENT.getInstance().RADON, 2),
- new MaterialStack(ELEMENT.getInstance().GERMANIUM, 2), });
+ "Abyssal Alloy", // Material Name
+ MaterialState.SOLID, // State
+ null, // Material Colour
+ 9650, // Melting Point in C
+ 13765, // Boiling Point in C
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ALLOY.STAINLESS_STEEL, 10),
+ new MaterialStack(ALLOY.TUNGSTEN_CARBIDE, 10), new MaterialStack(ALLOY.NICHROME, 10),
+ new MaterialStack(ALLOY.BRONZE, 10), new MaterialStack(ALLOY.INCOLOY_MA956, 10),
+ new MaterialStack(ELEMENT.getInstance().IODINE, 2), new MaterialStack(ELEMENT.getInstance().RADON, 2),
+ new MaterialStack(ELEMENT.getInstance().GERMANIUM, 2), });
// Alkalus Alloy
public static final Material LAURENIUM = new Material(
- "Laurenium", // Material Name
- MaterialState.SOLID, // State
- new short[] { 244, 168, 255, 0 }, // Material Colour
- 6825, // Melting Point in C
- 11355, // Boiling Point in C
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ALLOY.EGLIN_STEEL, 40),
- new MaterialStack(ELEMENT.getInstance().INDIUM, 10),
- new MaterialStack(ELEMENT.getInstance().CHROMIUM, 20),
- new MaterialStack(ELEMENT.getInstance().DYSPROSIUM, 5),
- new MaterialStack(ELEMENT.getInstance().RHENIUM, 5), });
+ "Laurenium", // Material Name
+ MaterialState.SOLID, // State
+ new short[] { 244, 168, 255, 0 }, // Material Colour
+ 6825, // Melting Point in C
+ 11355, // Boiling Point in C
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ALLOY.EGLIN_STEEL, 40),
+ new MaterialStack(ELEMENT.getInstance().INDIUM, 10), new MaterialStack(ELEMENT.getInstance().CHROMIUM, 20),
+ new MaterialStack(ELEMENT.getInstance().DYSPROSIUM, 5),
+ new MaterialStack(ELEMENT.getInstance().RHENIUM, 5), });
// Bot Alloy
public static final Material BOTMIUM = new Material(
- "Botmium", // Material Name
- MaterialState.SOLID, // State
- new short[] { 80, 160, 80, 0 }, // Material Colour
- 8220, // Melting Point in C
- 10540, // Boiling Point in C
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ALLOY.NITINOL_60, 2),
- new MaterialStack(ELEMENT.getInstance().OSMIUM, 12),
- new MaterialStack(ELEMENT.getInstance().RUTHENIUM, 12),
- new MaterialStack(ELEMENT.getInstance().THALLIUM, 6), });
+ "Botmium", // Material Name
+ MaterialState.SOLID, // State
+ new short[] { 80, 160, 80, 0 }, // Material Colour
+ 8220, // Melting Point in C
+ 10540, // Boiling Point in C
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ALLOY.NITINOL_60, 2),
+ new MaterialStack(ELEMENT.getInstance().OSMIUM, 12), new MaterialStack(ELEMENT.getInstance().RUTHENIUM, 12),
+ new MaterialStack(ELEMENT.getInstance().THALLIUM, 6), });
// Titansteel
public static final Material TITANSTEEL = new Material(
- "Titansteel", // Material Name
- MaterialState.SOLID, // State
- null, // Material Colour
- 8250, // Melting Point in C
- 11765, // Boiling Point in C
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ALLOY.TUNGSTEN_TITANIUM_CARBIDE, 3),
- new MaterialStack(ELEMENT.getInstance().IGNIS, 1),
- new MaterialStack(ELEMENT.getInstance().TERRA, 1),
- new MaterialStack(ELEMENT.getInstance().PERDITIO, 1), });
+ "Titansteel", // Material Name
+ MaterialState.SOLID, // State
+ null, // Material Colour
+ 8250, // Melting Point in C
+ 11765, // Boiling Point in C
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ALLOY.TUNGSTEN_TITANIUM_CARBIDE, 3),
+ new MaterialStack(ELEMENT.getInstance().IGNIS, 1), new MaterialStack(ELEMENT.getInstance().TERRA, 1),
+ new MaterialStack(ELEMENT.getInstance().PERDITIO, 1), });
public static final Material OCTIRON = new Material(
- "Octiron", // Material Name
- MaterialState.SOLID, // State
- null,
- 9120, // Melting Point in C
- 14200,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ARCANITE, 30), new MaterialStack(TITANSTEEL, 30),
- new MaterialStack(ENERGYCRYSTAL, 5), new MaterialStack(STEEL_BLACK, 10),
- new MaterialStack(ELEMENT.getInstance().THAUMIUM, 25) });
+ "Octiron", // Material Name
+ MaterialState.SOLID, // State
+ null,
+ 9120, // Melting Point in C
+ 14200,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ARCANITE, 30), new MaterialStack(TITANSTEEL, 30),
+ new MaterialStack(ENERGYCRYSTAL, 5), new MaterialStack(STEEL_BLACK, 10),
+ new MaterialStack(ELEMENT.getInstance().THAUMIUM, 25) });
public static final Material BLACK_TITANIUM = new Material(
- "Black Titanium", // Material Name
- MaterialState.SOLID, // State
- null, // Material Colour
- Materials.Titanium.mMeltingPoint * 4, // Melting Point in C
- Materials.Titanium.mMeltingPoint * 16,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().TITANIUM, 55),
- new MaterialStack(ELEMENT.getInstance().LANTHANUM, 12),
- new MaterialStack(ELEMENT.getInstance().TUNGSTEN, 8),
- new MaterialStack(ELEMENT.getInstance().COBALT, 6),
- new MaterialStack(ELEMENT.getInstance().MANGANESE, 4),
- new MaterialStack(ELEMENT.getInstance().PHOSPHORUS, 4),
- new MaterialStack(ELEMENT.getInstance().PALLADIUM, 4),
- new MaterialStack(ELEMENT.getInstance().NIOBIUM, 2),
- new MaterialStack(ELEMENT.getInstance().ARGON, 5) });
+ "Black Titanium", // Material Name
+ MaterialState.SOLID, // State
+ null, // Material Colour
+ Materials.Titanium.mMeltingPoint * 4, // Melting Point in C
+ Materials.Titanium.mMeltingPoint * 16,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().TITANIUM, 55),
+ new MaterialStack(ELEMENT.getInstance().LANTHANUM, 12),
+ new MaterialStack(ELEMENT.getInstance().TUNGSTEN, 8), new MaterialStack(ELEMENT.getInstance().COBALT, 6),
+ new MaterialStack(ELEMENT.getInstance().MANGANESE, 4),
+ new MaterialStack(ELEMENT.getInstance().PHOSPHORUS, 4),
+ new MaterialStack(ELEMENT.getInstance().PALLADIUM, 4), new MaterialStack(ELEMENT.getInstance().NIOBIUM, 2),
+ new MaterialStack(ELEMENT.getInstance().ARGON, 5) });
public static final Material BABBIT_ALLOY = new Material(
- "Babbit Alloy", // Material Name
- MaterialState.SOLID, // State
- null, // Material Colour
- 268, // Melting Point in C
- 589,
- -1,
- -1,
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().TIN, 10),
- new MaterialStack(ELEMENT.getInstance().LEAD, 72),
- new MaterialStack(ELEMENT.getInstance().ANTIMONY, 16),
- new MaterialStack(ELEMENT.getInstance().ARSENIC, 2) });
+ "Babbit Alloy", // Material Name
+ MaterialState.SOLID, // State
+ null, // Material Colour
+ 268, // Melting Point in C
+ 589,
+ -1,
+ -1,
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().TIN, 10),
+ new MaterialStack(ELEMENT.getInstance().LEAD, 72), new MaterialStack(ELEMENT.getInstance().ANTIMONY, 16),
+ new MaterialStack(ELEMENT.getInstance().ARSENIC, 2) });
public static final Material INDALLOY_140 = new Material(
- "Indalloy 140", // Material Name
- MaterialState.SOLID, // State
- null, // Material Colour
- 5200, // Melting Point in C
- 6500,
- -1,
- -1,
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().BISMUTH, 47),
- new MaterialStack(ELEMENT.getInstance().LEAD, 25), new MaterialStack(ELEMENT.getInstance().TIN, 13),
- new MaterialStack(ELEMENT.getInstance().CADMIUM, 10),
- new MaterialStack(ELEMENT.getInstance().INDIUM, 5) });
+ "Indalloy 140", // Material Name
+ MaterialState.SOLID, // State
+ null, // Material Colour
+ 5200, // Melting Point in C
+ 6500,
+ -1,
+ -1,
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().BISMUTH, 47),
+ new MaterialStack(ELEMENT.getInstance().LEAD, 25), new MaterialStack(ELEMENT.getInstance().TIN, 13),
+ new MaterialStack(ELEMENT.getInstance().CADMIUM, 10), new MaterialStack(ELEMENT.getInstance().INDIUM, 5) });
// Quantum
public static final Material QUANTUM = new Material(
- "Quantum", // Material Name
- MaterialState.SOLID, // State
- null, // Material Colour
- 10500, // Melting Point in C
- 25000, // Boiling Point in C
- 150, // Protons
- 200, // Neutrons
- true, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ALLOY.STELLITE, 15), new MaterialStack(ALLOY.ENERGYCRYSTAL, 5),
- new MaterialStack(ALLOY.SILICON_CARBIDE, 5), new MaterialStack(ELEMENT.getInstance().GALLIUM, 5),
- new MaterialStack(ELEMENT.getInstance().AMERICIUM, 5),
- new MaterialStack(ELEMENT.getInstance().PALLADIUM, 5),
- new MaterialStack(ELEMENT.getInstance().BISMUTH, 5),
- new MaterialStack(ELEMENT.getInstance().GERMANIUM, 5) });
+ "Quantum", // Material Name
+ MaterialState.SOLID, // State
+ null, // Material Colour
+ 10500, // Melting Point in C
+ 25000, // Boiling Point in C
+ 150, // Protons
+ 200, // Neutrons
+ true, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ALLOY.STELLITE, 15), new MaterialStack(ALLOY.ENERGYCRYSTAL, 5),
+ new MaterialStack(ALLOY.SILICON_CARBIDE, 5), new MaterialStack(ELEMENT.getInstance().GALLIUM, 5),
+ new MaterialStack(ELEMENT.getInstance().AMERICIUM, 5),
+ new MaterialStack(ELEMENT.getInstance().PALLADIUM, 5), new MaterialStack(ELEMENT.getInstance().BISMUTH, 5),
+ new MaterialStack(ELEMENT.getInstance().GERMANIUM, 5) });
}
diff --git a/src/main/java/gtPlusPlus/core/material/ELEMENT.java b/src/main/java/gtPlusPlus/core/material/ELEMENT.java
index 71580fb81f..9bcea2a47b 100644
--- a/src/main/java/gtPlusPlus/core/material/ELEMENT.java
+++ b/src/main/java/gtPlusPlus/core/material/ELEMENT.java
@@ -23,16 +23,16 @@ public final class ELEMENT {
public final Material OXYGEN = MaterialUtils.generateMaterialFromGtENUM(Materials.Oxygen);
public final Material FLUORINE = MaterialUtils.generateMaterialFromGtENUM(Materials.Fluorine);
public final Material NEON = new Material(
- "Neon",
- MaterialState.PURE_GAS,
- new short[] { 240, 180, 30 },
- -248,
- -246,
- 10,
- 10,
- false,
- "Ne",
- 0); // Not a GT Inherited Material
+ "Neon",
+ MaterialState.PURE_GAS,
+ new short[] { 240, 180, 30 },
+ -248,
+ -246,
+ 10,
+ 10,
+ false,
+ "Ne",
+ 0); // Not a GT Inherited Material
public final Material SODIUM = MaterialUtils.generateMaterialFromGtENUM(Materials.Sodium);
public final Material MAGNESIUM = MaterialUtils.generateMaterialFromGtENUM(Materials.Magnesium);
public final Material ALUMINIUM = MaterialUtils.generateMaterialFromGtENUM(Materials.Aluminium);
@@ -57,115 +57,115 @@ public final class ELEMENT {
public final Material ZINC = MaterialUtils.generateMaterialFromGtENUM(Materials.Zinc);
public final Material GALLIUM = MaterialUtils.generateMaterialFromGtENUM(Materials.Gallium);
public final Material GERMANIUM = new Material(
- "Germanium",
- MaterialState.SOLID,
- new short[] { 200, 200, 200 },
- 937,
- 2830,
- 32,
- 41,
- false,
- "Ge",
- 0); // Not a GT Inherited Material
+ "Germanium",
+ MaterialState.SOLID,
+ new short[] { 200, 200, 200 },
+ 937,
+ 2830,
+ 32,
+ 41,
+ false,
+ "Ge",
+ 0); // Not a GT Inherited Material
public final Material ARSENIC = MaterialUtils.generateMaterialFromGtENUM(Materials.Arsenic);
public final Material SELENIUM = new Material(
- "Selenium",
- MaterialState.SOLID,
- new short[] { 190, 190, 190 },
- 217,
- 685,
- 34,
- 45,
- false,
- "Se",
- 0); // Not a GT Inherited Material
+ "Selenium",
+ MaterialState.SOLID,
+ new short[] { 190, 190, 190 },
+ 217,
+ 685,
+ 34,
+ 45,
+ false,
+ "Se",
+ 0); // Not a GT Inherited Material
public final Material BROMINE = new Material(
- "Bromine",
- MaterialState.PURE_LIQUID,
- new short[] { 200, 25, 25 },
- -7,
- 58,
- 35,
- 45,
- false,
- "Br",
- 0); // Not a GT Inherited Material
+ "Bromine",
+ MaterialState.PURE_LIQUID,
+ new short[] { 200, 25, 25 },
+ -7,
+ 58,
+ 35,
+ 45,
+ false,
+ "Br",
+ 0); // Not a GT Inherited Material
public final Material KRYPTON = new Material(
- "Krypton",
- MaterialState.PURE_GAS,
- new short[] { 5, 200, 220 },
- -157,
- -153,
- 36,
- 48,
- false,
- "Kr",
- 0); // Not a GT Inherited Material
+ "Krypton",
+ MaterialState.PURE_GAS,
+ new short[] { 5, 200, 220 },
+ -157,
+ -153,
+ 36,
+ 48,
+ false,
+ "Kr",
+ 0); // Not a GT Inherited Material
public final Material RUBIDIUM = MaterialUtils.generateMaterialFromGtENUM(Materials.Rubidium);
public final Material STRONTIUM = MaterialUtils
- .generateMaterialFromGtENUM(Materials.Strontium, new short[] { 230, 210, 110 }, TextureSet.SET_FLINT);
+ .generateMaterialFromGtENUM(Materials.Strontium, new short[] { 230, 210, 110 }, TextureSet.SET_FLINT);
public final Material YTTRIUM = MaterialUtils.generateMaterialFromGtENUM(Materials.Yttrium);
public final Material ZIRCONIUM = new Material(
- "Zirconium",
- MaterialState.SOLID,
- new short[] { 255, 250, 205 },
- 1855,
- 4377,
- 40,
- 51,
- false,
- "Zr",
- 0); // Not a GT Inherited Material
+ "Zirconium",
+ MaterialState.SOLID,
+ new short[] { 255, 250, 205 },
+ 1855,
+ 4377,
+ 40,
+ 51,
+ false,
+ "Zr",
+ 0); // Not a GT Inherited Material
public final Material NIOBIUM = MaterialUtils.generateMaterialFromGtENUM(Materials.Niobium);
public final Material MOLYBDENUM = MaterialUtils.generateMaterialFromGtENUM(Materials.Molybdenum);
public final Material RUTHENIUM = new Material(
- "Ruthenium",
- MaterialState.SOLID,
- new short[] { 220, 220, 220 },
- 2250,
- 3900,
- 44,
- 57,
- false,
- "Ru",
- 0); // Not a GT Inherited Material
+ "Ruthenium",
+ MaterialState.SOLID,
+ new short[] { 220, 220, 220 },
+ 2250,
+ 3900,
+ 44,
+ 57,
+ false,
+ "Ru",
+ 0); // Not a GT Inherited Material
public final Material RHODIUM = new Material(
- "Rhodium",
- MaterialState.SOLID,
- new short[] { 220, 220, 220 },
- 1966,
- 3727,
- 45,
- 58,
- false,
- "Rh",
- 0); // Not a GT Inherited Material
+ "Rhodium",
+ MaterialState.SOLID,
+ new short[] { 220, 220, 220 },
+ 1966,
+ 3727,
+ 45,
+ 58,
+ false,
+ "Rh",
+ 0); // Not a GT Inherited Material
public final Material AMERICIUM = MaterialUtils.generateMaterialFromGtENUM(Materials.Americium);
public final Material TECHNETIUM = new Material(
- "Technetium",
- MaterialState.SOLID,
- TextureSets.NUCLEAR.get(),
- new short[] { 220, 220, 220 },
- 2200,
- 4877,
- 43,
- 55,
- false,
- "Tc",
- 2); // Not a GT Inherited Material
+ "Technetium",
+ MaterialState.SOLID,
+ TextureSets.NUCLEAR.get(),
+ new short[] { 220, 220, 220 },
+ 2200,
+ 4877,
+ 43,
+ 55,
+ false,
+ "Tc",
+ 2); // Not a GT Inherited Material
public final Material NEPTUNIUM = new Material(
- "Neptunium",
- MaterialState.SOLID,
- TextureSets.NUCLEAR.get(),
- new short[] { 200, 220, 205 },
- 640,
- 3902,
- 93,
- 144,
- false,
- "Np",
- 2); // Not a GT Inherited Material
+ "Neptunium",
+ MaterialState.SOLID,
+ TextureSets.NUCLEAR.get(),
+ new short[] { 200, 220, 205 },
+ 640,
+ 3902,
+ 93,
+ 144,
+ false,
+ "Np",
+ 2); // Not a GT Inherited Material
public final Material PALLADIUM = MaterialUtils.generateMaterialFromGtENUM(Materials.Palladium);
public final Material SILVER = MaterialUtils.generateMaterialFromGtENUM(Materials.Silver);
@@ -174,39 +174,39 @@ public final class ELEMENT {
public final Material TIN = MaterialUtils.generateMaterialFromGtENUM(Materials.Tin);
public final Material ANTIMONY = MaterialUtils.generateMaterialFromGtENUM(Materials.Antimony);
public final Material TELLURIUM = new Material(
- "Tellurium",
- MaterialState.SOLID,
- new short[] { 210, 210, 210 },
- 449,
- 989,
- 52,
- 76,
- false,
- "Te",
- 0); // Not a GT Inherited Material
+ "Tellurium",
+ MaterialState.SOLID,
+ new short[] { 210, 210, 210 },
+ 449,
+ 989,
+ 52,
+ 76,
+ false,
+ "Te",
+ 0); // Not a GT Inherited Material
public final Material IODINE = new Material(
- "Iodine",
- MaterialState.SOLID,
- TextureSet.SET_SHINY,
- new short[] { 96, 96, 96 },
- 114,
- 184,
- 53,
- 74,
- false,
- "I",
- 0); // Not a GT Inherited Material
+ "Iodine",
+ MaterialState.SOLID,
+ TextureSet.SET_SHINY,
+ new short[] { 96, 96, 96 },
+ 114,
+ 184,
+ 53,
+ 74,
+ false,
+ "I",
+ 0); // Not a GT Inherited Material
public final Material XENON = new Material(
- "Xenon",
- MaterialState.PURE_GAS,
- new short[] { 5, 105, 210 },
- -111,
- -108,
- 54,
- 77,
- false,
- "Xe",
- 0); // Not a GT Inherited Material
+ "Xenon",
+ MaterialState.PURE_GAS,
+ new short[] { 5, 105, 210 },
+ -111,
+ -108,
+ 54,
+ 77,
+ false,
+ "Xe",
+ 0); // Not a GT Inherited Material
public final Material CAESIUM = MaterialUtils.generateMaterialFromGtENUM(Materials.Caesium);
public final Material BARIUM = MaterialUtils.generateMaterialFromGtENUM(Materials.Barium);
public final Material LANTHANUM = MaterialUtils.generateMaterialFromGtENUM(Materials.Lanthanum);
@@ -219,170 +219,170 @@ public final class ELEMENT {
public final Material GADOLINIUM = MaterialUtils.generateMaterialFromGtENUM(Materials.Gadolinium);
public final Material TERBIUM = MaterialUtils.generateMaterialFromGtENUM(Materials.Terbium);
public final Material DYSPROSIUM = new Material(
- "Dysprosium",
- MaterialState.SOLID,
- new short[] { 180, 180, 180 },
- 1412,
- 2562,
- 66,
- 97,
- false,
- "Dy",
- 0); // Not a GT Inherited Material
+ "Dysprosium",
+ MaterialState.SOLID,
+ new short[] { 180, 180, 180 },
+ 1412,
+ 2562,
+ 66,
+ 97,
+ false,
+ "Dy",
+ 0); // Not a GT Inherited Material
public final Material HOLMIUM = MaterialUtils.generateMaterialFromGtENUM(Materials.Holmium);
public final Material ERBIUM = MaterialUtils.generateMaterialFromGtENUM(Materials.Erbium);
public final Material THULIUM = MaterialUtils.generateMaterialFromGtENUM(Materials.Thulium);
public final Material YTTERBIUM = MaterialUtils.generateMaterialFromGtENUM(Materials.Ytterbium);
public final Material LUTETIUM = MaterialUtils.generateMaterialFromGtENUM(Materials.Lutetium);
public final Material HAFNIUM = new Material(
- "Hafnium",
- MaterialState.SOLID,
- new short[] { 128, 128, 128 },
- 2150,
- 5400,
- 72,
- 106,
- false,
- "Hf",
- 0); // Not a GT Inherited Material
+ "Hafnium",
+ MaterialState.SOLID,
+ new short[] { 128, 128, 128 },
+ 2150,
+ 5400,
+ 72,
+ 106,
+ false,
+ "Hf",
+ 0); // Not a GT Inherited Material
// Second 50 elements
public final Material TANTALUM = MaterialUtils.generateMaterialFromGtENUM(Materials.Tantalum);
public final Material TUNGSTEN = MaterialUtils.generateMaterialFromGtENUM(Materials.Tungsten);
public final Material RHENIUM = new Material(
- "Rhenium",
- MaterialState.SOLID,
- new short[] { 150, 150, 150 },
- 3180,
- 3627,
- 75,
- 111,
- false,
- "Re",
- 0); // Not a GT Inherited Material
+ "Rhenium",
+ MaterialState.SOLID,
+ new short[] { 150, 150, 150 },
+ 3180,
+ 3627,
+ 75,
+ 111,
+ false,
+ "Re",
+ 0); // Not a GT Inherited Material
public final Material OSMIUM = MaterialUtils.generateMaterialFromGtENUM(Materials.Osmium);
public final Material IRIDIUM = MaterialUtils.generateMaterialFromGtENUM(Materials.Iridium);
public final Material PLATINUM = MaterialUtils.generateMaterialFromGtENUM(Materials.Platinum);
public final Material GOLD = MaterialUtils.generateMaterialFromGtENUM(Materials.Gold);
public final Material MERCURY = MaterialUtils.generateMaterialFromGtENUM(Materials.Mercury); // Mercury
public final Material THALLIUM = new Material(
- "Thallium",
- MaterialState.SOLID,
- new short[] { 175, 175, 175 },
- 304,
- 1457,
- 81,
- 123,
- false,
- "Tl",
- 0); // Not a GT Inherited Material
+ "Thallium",
+ MaterialState.SOLID,
+ new short[] { 175, 175, 175 },
+ 304,
+ 1457,
+ 81,
+ 123,
+ false,
+ "Tl",
+ 0); // Not a GT Inherited Material
public final Material LEAD = MaterialUtils.generateMaterialFromGtENUM(Materials.Lead);
public final Material BISMUTH = MaterialUtils.generateMaterialFromGtENUM(Materials.Bismuth);
public final Material POLONIUM = new Material(
- "Polonium",
- MaterialState.SOLID,
- TextureSets.NUCLEAR.get(),
- new short[] { 180, 170, 180 },
- 254,
- 962,
- 84,
- 125,
- false,
- "Po",
- 1); // Not a GT Inherited Material
+ "Polonium",
+ MaterialState.SOLID,
+ TextureSets.NUCLEAR.get(),
+ new short[] { 180, 170, 180 },
+ 254,
+ 962,
+ 84,
+ 125,
+ false,
+ "Po",
+ 1); // Not a GT Inherited Material
public final Material RADON = MaterialUtils.generateMaterialFromGtENUM(Materials.Radon);
public final Material RADIUM = new Material(
- "Radium",
- MaterialState.SOLID,
- TextureSets.NUCLEAR.get(),
- new short[] { 165, 165, 165 },
- 700,
- 1737,
- 88,
- 138,
- false,
- "Ra",
- 1); // Not a GT Inherited Material
+ "Radium",
+ MaterialState.SOLID,
+ TextureSets.NUCLEAR.get(),
+ new short[] { 165, 165, 165 },
+ 700,
+ 1737,
+ 88,
+ 138,
+ false,
+ "Ra",
+ 1); // Not a GT Inherited Material
public final Material THORIUM = new Material(
- "Thorium",
- MaterialState.SOLID,
- Materials.Thorium.mRGBa,
- Materials.Thorium.mMeltingPoint,
- Materials.Thorium.mBlastFurnaceTemp,
- 90,
- 142,
- false,
- StringUtils.superscript("Th"),
- 1);
+ "Thorium",
+ MaterialState.SOLID,
+ Materials.Thorium.mRGBa,
+ Materials.Thorium.mMeltingPoint,
+ Materials.Thorium.mBlastFurnaceTemp,
+ 90,
+ 142,
+ false,
+ StringUtils.superscript("Th"),
+ 1);
public final Material PROTACTINIUM = new Material(
- "Protactinium",
- MaterialState.SOLID,
- TextureSets.NUCLEAR.get(),
- new short[] { 190, 150, 170 },
- 1568,
- 4027,
- 91,
- 140,
- false,
- "Pa",
- 1); // Not a GT Inherited Material
+ "Protactinium",
+ MaterialState.SOLID,
+ TextureSets.NUCLEAR.get(),
+ new short[] { 190, 150, 170 },
+ 1568,
+ 4027,
+ 91,
+ 140,
+ false,
+ "Pa",
+ 1); // Not a GT Inherited Material
public final Material URANIUM238 = MaterialUtils.generateMaterialFromGtENUM(Materials.Uranium);
public final Material URANIUM235 = MaterialUtils.generateMaterialFromGtENUM(Materials.Uranium235);
public final Material PLUTONIUM241 = MaterialUtils.generateMaterialFromGtENUM(Materials.Plutonium241);
public final Material CURIUM = new Material(
- "Curium",
- MaterialState.SOLID,
- TextureSets.NUCLEAR.get(),
- new short[] { 175, 85, 110 },
- 1340,
- 3110,
- 96,
- 151,
- false,
- "Cm",
- 3); // Not a GT Inherited Material
+ "Curium",
+ MaterialState.SOLID,
+ TextureSets.NUCLEAR.get(),
+ new short[] { 175, 85, 110 },
+ 1340,
+ 3110,
+ 96,
+ 151,
+ false,
+ "Cm",
+ 3); // Not a GT Inherited Material
public final Material CALIFORNIUM = new Material(
- "Californium",
- MaterialState.SOLID,
- TextureSets.NUCLEAR.get(),
- new short[] { 85, 110, 205 },
- 899,
- 1472,
- 98,
- 153,
- false,
- "Cf",
- 4); // Not a GT Inherited Material
+ "Californium",
+ MaterialState.SOLID,
+ TextureSets.NUCLEAR.get(),
+ new short[] { 85, 110, 205 },
+ 899,
+ 1472,
+ 98,
+ 153,
+ false,
+ "Cf",
+ 4); // Not a GT Inherited Material
public final Material FERMIUM = new Material(
- "Fermium",
- MaterialState.LIQUID,
- TextureSets.NUCLEAR.get(),
- new short[] { 75, 90, 25 },
- 1527,
- 3850,
- 100,
- 157,
- false,
- "Fm",
- 5); // Not a GT Inherited Material //Boiling Point is made up
+ "Fermium",
+ MaterialState.LIQUID,
+ TextureSets.NUCLEAR.get(),
+ new short[] { 75, 90, 25 },
+ 1527,
+ 3850,
+ 100,
+ 157,
+ false,
+ "Fm",
+ 5); // Not a GT Inherited Material //Boiling Point is made up
// Misc
public final Material AER = MaterialUtils.generateMaterialFromGtENUM(Materials.InfusedAir, TextureSets.GEM_A.get());
public final Material IGNIS = MaterialUtils
- .generateMaterialFromGtENUM(Materials.InfusedFire, TextureSets.GEM_A.get());
+ .generateMaterialFromGtENUM(Materials.InfusedFire, TextureSets.GEM_A.get());
public final Material TERRA = MaterialUtils
- .generateMaterialFromGtENUM(Materials.InfusedEarth, TextureSets.GEM_A.get());
+ .generateMaterialFromGtENUM(Materials.InfusedEarth, TextureSets.GEM_A.get());
public final Material AQUA = MaterialUtils
- .generateMaterialFromGtENUM(Materials.InfusedWater, TextureSets.GEM_A.get());
+ .generateMaterialFromGtENUM(Materials.InfusedWater, TextureSets.GEM_A.get());
public final Material PERDITIO = MaterialUtils
- .generateMaterialFromGtENUM(Materials.InfusedEntropy, TextureSets.GEM_A.get());
+ .generateMaterialFromGtENUM(Materials.InfusedEntropy, TextureSets.GEM_A.get());
public final Material ORDO = MaterialUtils
- .generateMaterialFromGtENUM(Materials.InfusedOrder, TextureSets.GEM_A.get());
+ .generateMaterialFromGtENUM(Materials.InfusedOrder, TextureSets.GEM_A.get());
public final Material NAQUADAH = MaterialUtils.generateMaterialFromGtENUM(Materials.Naquadah);
public final Material NAQUADAH_ENRICHED = MaterialUtils.generateMaterialFromGtENUM(Materials.NaquadahEnriched);
@@ -393,74 +393,74 @@ public final class ELEMENT {
// Custom Isotopes
public final Material LITHIUM7 = new Material(
- "Lithium 7",
- MaterialState.SOLID,
- TextureSet.SET_SHINY,
- Materials.Lithium.mRGBa,
- Materials.Lithium.mMeltingPoint,
- Materials.Lithium.mBlastFurnaceTemp,
- Materials.Lithium.getProtons(),
- Materials.Lithium.getNeutrons(),
- Materials.Lithium.mBlastFurnaceRequired,
- StringUtils.superscript("7Li"),
- 0,
- false); // Not a GT Inherited Material
+ "Lithium 7",
+ MaterialState.SOLID,
+ TextureSet.SET_SHINY,
+ Materials.Lithium.mRGBa,
+ Materials.Lithium.mMeltingPoint,
+ Materials.Lithium.mBlastFurnaceTemp,
+ Materials.Lithium.getProtons(),
+ Materials.Lithium.getNeutrons(),
+ Materials.Lithium.mBlastFurnaceRequired,
+ StringUtils.superscript("7Li"),
+ 0,
+ false); // Not a GT Inherited Material
public final Material URANIUM232 = new Material(
- "Uranium 232",
- MaterialState.SOLID,
- TextureSets.NUCLEAR.get(),
- new short[] { 88, 220, 103, 0 },
- 1132,
- 4131,
- 92,
- 140,
- false,
- StringUtils.superscript("232U"),
- 4); // Not a GT Inherited Material
+ "Uranium 232",
+ MaterialState.SOLID,
+ TextureSets.NUCLEAR.get(),
+ new short[] { 88, 220, 103, 0 },
+ 1132,
+ 4131,
+ 92,
+ 140,
+ false,
+ StringUtils.superscript("232U"),
+ 4); // Not a GT Inherited Material
public final Material URANIUM233 = new Material(
- "Uranium 233",
- MaterialState.SOLID,
- TextureSets.NUCLEAR.get(),
- new short[] { 73, 220, 83, 0 },
- 1132,
- 4131,
- 92,
- 141,
- false,
- StringUtils.superscript("233U"),
- 2); // Not a GT Inherited Material
+ "Uranium 233",
+ MaterialState.SOLID,
+ TextureSets.NUCLEAR.get(),
+ new short[] { 73, 220, 83, 0 },
+ 1132,
+ 4131,
+ 92,
+ 141,
+ false,
+ StringUtils.superscript("233U"),
+ 2); // Not a GT Inherited Material
public final Material THORIUM232 = new Material(
- "Thorium 232",
- MaterialState.SOLID,
- TextureSets.NUCLEAR.get(),
- new short[] { 15, 60, 15, 0 },
- Materials.Thorium.mMeltingPoint,
- Materials.Thorium.mBlastFurnaceTemp,
- 90,
- 142,
- false,
- StringUtils.superscript("232Th"),
- 1,
- true); // Not a GT Inherited Material
+ "Thorium 232",
+ MaterialState.SOLID,
+ TextureSets.NUCLEAR.get(),
+ new short[] { 15, 60, 15, 0 },
+ Materials.Thorium.mMeltingPoint,
+ Materials.Thorium.mBlastFurnaceTemp,
+ 90,
+ 142,
+ false,
+ StringUtils.superscript("232Th"),
+ 1,
+ true); // Not a GT Inherited Material
// RTG Fuels
public final Material PLUTONIUM238 = new Material(
- "Plutonium-238",
- MaterialState.SOLID,
- TextureSets.NUCLEAR.get(),
- Materials.Plutonium241.mDurability,
- Materials.Plutonium241.mRGBa,
- Materials.Plutonium241.mMeltingPoint,
- Materials.Plutonium241.mBlastFurnaceTemp,
- 94,
- 144,
- false,
- StringUtils.superscript("238Pu"),
- 2,
- false); // Not a GT Inherited Material
+ "Plutonium-238",
+ MaterialState.SOLID,
+ TextureSets.NUCLEAR.get(),
+ Materials.Plutonium241.mDurability,
+ Materials.Plutonium241.mRGBa,
+ Materials.Plutonium241.mMeltingPoint,
+ Materials.Plutonium241.mBlastFurnaceTemp,
+ 94,
+ 144,
+ false,
+ StringUtils.superscript("238Pu"),
+ 2,
+ false); // Not a GT Inherited Material
public final Material MAGIC = MaterialUtils
- .generateMaterialFromGtENUM(Materials.Magic, new short[] { 10, 185, 140 });
+ .generateMaterialFromGtENUM(Materials.Magic, new short[] { 10, 185, 140 });
public final Material THAUMIUM = MaterialUtils.generateMaterialFromGtENUM(Materials.Thaumium);
static {
@@ -482,170 +482,170 @@ public final class ELEMENT {
public static class STANDALONE {
public static final Material CELESTIAL_TUNGSTEN = new Material(
- "Celestial Tungsten",
- MaterialState.SOLID,
- TextureSets.REFINED.get(),
- new short[] { 50, 50, 50, 2 },
- INSTANCE.TUNGSTEN.getMeltingPointC() + 6500,
- INSTANCE.TUNGSTEN.getBoilingPointC() + 7500,
- 160,
- 101,
- true,
- "✦◆✦",
- 0); // Not a GT Inherited Material
+ "Celestial Tungsten",
+ MaterialState.SOLID,
+ TextureSets.REFINED.get(),
+ new short[] { 50, 50, 50, 2 },
+ INSTANCE.TUNGSTEN.getMeltingPointC() + 6500,
+ INSTANCE.TUNGSTEN.getBoilingPointC() + 7500,
+ 160,
+ 101,
+ true,
+ "✦◆✦",
+ 0); // Not a GT Inherited Material
public static final Material ASTRAL_TITANIUM = new Material(
- "Astral Titanium",
- MaterialState.SOLID,
- TextureSets.REFINED.get(),
- new short[] { 220, 160, 240, 2 },
- INSTANCE.TITANIUM.getMeltingPointC() + 7500,
- INSTANCE.TITANIUM.getBoilingPointC() + 7500,
- 145,
- 133,
- true,
- "✧◇✧",
- 0); // Not a GT Inherited Material
+ "Astral Titanium",
+ MaterialState.SOLID,
+ TextureSets.REFINED.get(),
+ new short[] { 220, 160, 240, 2 },
+ INSTANCE.TITANIUM.getMeltingPointC() + 7500,
+ INSTANCE.TITANIUM.getBoilingPointC() + 7500,
+ 145,
+ 133,
+ true,
+ "✧◇✧",
+ 0); // Not a GT Inherited Material
public static final Material CHRONOMATIC_GLASS = new Material(
- "Chromatic Glass",
- MaterialState.SOLID,
- new short[] { 255, 255, 255, 3 },
- 9200,
- 17550,
- 40,
- 51,
- false,
- "⌘☯𓍰 𓍱 𓍲 𓍳 𓍴 𓍵 𓍶 𓍷 𓍸 ☯⌘ ",
- 0); // Not a GT Inherited Material
+ "Chromatic Glass",
+ MaterialState.SOLID,
+ new short[] { 255, 255, 255, 3 },
+ 9200,
+ 17550,
+ 40,
+ 51,
+ false,
+ "⌘☯𓍰 𓍱 𓍲 𓍳 𓍴 𓍵 𓍶 𓍷 𓍸 ☯⌘ ",
+ 0); // Not a GT Inherited Material
public static final Material ADVANCED_NITINOL = new Material(
- "Advanced Nitinol",
- MaterialState.SOLID,
- TextureSets.ENRICHED.get(),
- ALLOY.NITINOL_60.getRGB(),
- 8400,
- 14377,
- 40,
- 51,
- true,
- StringUtils.subscript("⚷⚙⚷ Ni4Ti6"),
- 0); // Not a GT Inherited Material
+ "Advanced Nitinol",
+ MaterialState.SOLID,
+ TextureSets.ENRICHED.get(),
+ ALLOY.NITINOL_60.getRGB(),
+ 8400,
+ 14377,
+ 40,
+ 51,
+ true,
+ StringUtils.subscript("⚷⚙⚷ Ni4Ti6"),
+ 0); // Not a GT Inherited Material
public static final Material HYPOGEN = new Material(
- "Hypogen",
- MaterialState.SOLID,
- TextureSets.NUCLEAR.get(),
- new short[] { 220, 120, 75, 2 },
- 11255,
- 19377,
- 240,
- 251,
- true,
- "Hy⚶",
- 0); // Not a GT Inherited Material
+ "Hypogen",
+ MaterialState.SOLID,
+ TextureSets.NUCLEAR.get(),
+ new short[] { 220, 120, 75, 2 },
+ 11255,
+ 19377,
+ 240,
+ 251,
+ true,
+ "Hy⚶",
+ 0); // Not a GT Inherited Material
public static final Material RHUGNOR = new Material(
- "Rhugnor",
- MaterialState.SOLID,
- TextureSets.ENRICHED.get(),
- new short[] { 190, 0, 255, 0 },
- 8750,
- 14757,
- 184,
- 142,
- true,
- "Fs⚶",
- 0); // Not a GT Inherited Material //funeris
+ "Rhugnor",
+ MaterialState.SOLID,
+ TextureSets.ENRICHED.get(),
+ new short[] { 190, 0, 255, 0 },
+ 8750,
+ 14757,
+ 184,
+ 142,
+ true,
+ "Fs⚶",
+ 0); // Not a GT Inherited Material //funeris
public static final Material FORCE = new Material(
- "Force",
- MaterialState.SOLID,
- TextureSets.ENRICHED.get(),
- new short[] { 250, 250, 20, 0 },
- 4550,
- 6830,
- 63,
- 81,
- true,
- "Fc⚙",
- 0); // Not a GT Inherited Material
+ "Force",
+ MaterialState.SOLID,
+ TextureSets.ENRICHED.get(),
+ new short[] { 250, 250, 20, 0 },
+ 4550,
+ 6830,
+ 63,
+ 81,
+ true,
+ "Fc⚙",
+ 0); // Not a GT Inherited Material
// Runescape materials
public static final Material BLACK_METAL = new Material(
- "Black Metal",
- MaterialState.SOLID,
- TextureSet.SET_METALLIC,
- new short[] { 5, 5, 5 },
- 2350,
- 4650,
- 24,
- 17,
- false,
- "҈",
- 0,
- new MaterialStack[] { new MaterialStack(getInstance().LEAD, 15),
- new MaterialStack(getInstance().MANGANESE, 25), new MaterialStack(getInstance().CARBON, 60) }); // Not
- // a
- // GT
- // Inherited
- // Material
+ "Black Metal",
+ MaterialState.SOLID,
+ TextureSet.SET_METALLIC,
+ new short[] { 5, 5, 5 },
+ 2350,
+ 4650,
+ 24,
+ 17,
+ false,
+ "҈",
+ 0,
+ new MaterialStack[] { new MaterialStack(getInstance().LEAD, 15),
+ new MaterialStack(getInstance().MANGANESE, 25), new MaterialStack(getInstance().CARBON, 60) }); // Not
+ // a
+ // GT
+ // Inherited
+ // Material
public static final Material WHITE_METAL = new Material(
- "White Metal",
- MaterialState.SOLID,
- TextureSet.SET_METALLIC,
- new short[] { 255, 255, 255 },
- 4560,
- 7580,
- 35,
- 41,
- false,
- "҉",
- 0,
- new MaterialStack[] { new MaterialStack(getInstance().COPPER, 5),
- new MaterialStack(getInstance().ANTIMONY, 10), new MaterialStack(getInstance().PLATINUM, 10),
- new MaterialStack(getInstance().TIN, 75) }); // Not a GT Inherited Material
+ "White Metal",
+ MaterialState.SOLID,
+ TextureSet.SET_METALLIC,
+ new short[] { 255, 255, 255 },
+ 4560,
+ 7580,
+ 35,
+ 41,
+ false,
+ "҉",
+ 0,
+ new MaterialStack[] { new MaterialStack(getInstance().COPPER, 5),
+ new MaterialStack(getInstance().ANTIMONY, 10), new MaterialStack(getInstance().PLATINUM, 10),
+ new MaterialStack(getInstance().TIN, 75) }); // Not a GT Inherited Material
public static final Material GRANITE = new Material(
- "Ancient Granite",
- MaterialState.SOLID,
- TextureSet.SET_SAND,
- new short[] { 107, 107, 107 },
- 500,
- 2000,
- 16,
- 12,
- false,
- "«»",
- 0,
- false,
- new MaterialStack[] { new MaterialStack(getInstance().OXYGEN, 16),
- new MaterialStack(getInstance().IRON, 10), new MaterialStack(getInstance().SILICONDIOXIDE, 10),
- new MaterialStack(getInstance().ALUMINIUMOXIDE, 6),
- new MaterialStack(getInstance().POTASSIUM, 6), new MaterialStack(getInstance().CALCIUM, 4),
- new MaterialStack(getInstance().SODIUM, 4), new MaterialStack(getInstance().YTTERBIUM, 2) }); // Not
- // a
- // GT
- // Inherited
- // Material
+ "Ancient Granite",
+ MaterialState.SOLID,
+ TextureSet.SET_SAND,
+ new short[] { 107, 107, 107 },
+ 500,
+ 2000,
+ 16,
+ 12,
+ false,
+ "«»",
+ 0,
+ false,
+ new MaterialStack[] { new MaterialStack(getInstance().OXYGEN, 16),
+ new MaterialStack(getInstance().IRON, 10), new MaterialStack(getInstance().SILICONDIOXIDE, 10),
+ new MaterialStack(getInstance().ALUMINIUMOXIDE, 6), new MaterialStack(getInstance().POTASSIUM, 6),
+ new MaterialStack(getInstance().CALCIUM, 4), new MaterialStack(getInstance().SODIUM, 4),
+ new MaterialStack(getInstance().YTTERBIUM, 2) }); // Not
+ // a
+ // GT
+ // Inherited
+ // Material
public static final Material RUNITE = new Material(
- "Runite",
- MaterialState.SOLID,
- TextureSet.SET_FINE,
- new short[] { 60, 200, 190 },
- 6750,
- 11550,
- 73,
- 87,
- true,
- "Rt*",
- 0); // Not a GT Inherited Material
+ "Runite",
+ MaterialState.SOLID,
+ TextureSet.SET_FINE,
+ new short[] { 60, 200, 190 },
+ 6750,
+ 11550,
+ 73,
+ 87,
+ true,
+ "Rt*",
+ 0); // Not a GT Inherited Material
public static final Material DRAGON_METAL = new Material(
- "Dragonblood",
- MaterialState.SOLID,
- TextureSet.SET_SHINY,
- new short[] { 220, 40, 20, 2 },
- 10160,
- 17850,
- 96,
- 105,
- true,
- "۞",
- 0); // Not a GT Inherited Material
+ "Dragonblood",
+ MaterialState.SOLID,
+ TextureSet.SET_SHINY,
+ new short[] { 220, 40, 20, 2 },
+ 10160,
+ 17850,
+ 96,
+ 105,
+ true,
+ "۞",
+ 0); // Not a GT Inherited Material
}
}
diff --git a/src/main/java/gtPlusPlus/core/material/MISC_MATERIALS.java b/src/main/java/gtPlusPlus/core/material/MISC_MATERIALS.java
index a4bf4fbd87..c46b05fbb8 100644
--- a/src/main/java/gtPlusPlus/core/material/MISC_MATERIALS.java
+++ b/src/main/java/gtPlusPlus/core/material/MISC_MATERIALS.java
@@ -28,566 +28,565 @@ public final class MISC_MATERIALS {
}
public static final Material POTASSIUM_NITRATE = new Material(
- "Potassium Nitrate",
- MaterialState.SOLID, // State
- null,
- null,
- -1,
- -1,
- -1,
- -1,
- false,
- "KNO3",
- 0,
- false,
- new MaterialStack(ELEMENT.getInstance().POTASSIUM, 1),
- new MaterialStack(ELEMENT.getInstance().NITROGEN, 1),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 3));
+ "Potassium Nitrate",
+ MaterialState.SOLID, // State
+ null,
+ null,
+ -1,
+ -1,
+ -1,
+ -1,
+ false,
+ "KNO3",
+ 0,
+ false,
+ new MaterialStack(ELEMENT.getInstance().POTASSIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().NITROGEN, 1),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 3));
public static final Material SODIUM_NITRATE = new Material(
- "Sodium Nitrate",
- MaterialState.SOLID, // State
- null,
- null,
- -1,
- -1,
- -1,
- -1,
- false,
- "NaNO3",
- 0,
- false,
- new MaterialStack(ELEMENT.getInstance().SODIUM, 1),
- new MaterialStack(ELEMENT.getInstance().NITROGEN, 1),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 3));
+ "Sodium Nitrate",
+ MaterialState.SOLID, // State
+ null,
+ null,
+ -1,
+ -1,
+ -1,
+ -1,
+ false,
+ "NaNO3",
+ 0,
+ false,
+ new MaterialStack(ELEMENT.getInstance().SODIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().NITROGEN, 1),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 3));
public static final Material SOLAR_SALT_COLD = new Material(
- "Solar Salt (Cold)",
- MaterialState.PURE_LIQUID, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1,
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack(POTASSIUM_NITRATE, 4),
- new MaterialStack(SODIUM_NITRATE, 6));
+ "Solar Salt (Cold)",
+ MaterialState.PURE_LIQUID, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1,
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack(POTASSIUM_NITRATE, 4),
+ new MaterialStack(SODIUM_NITRATE, 6));
public static final Material SOLAR_SALT_HOT = new Material(
- "Solar Salt (Hot)",
- MaterialState.PURE_LIQUID, // State
- new short[] { 200, 25, 25 }, // Material Colour
- 1200, // Melting Point in C
- 3300, // Boiling Point in C
- -1, // Protons
- -1,
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack(POTASSIUM_NITRATE, 4),
- new MaterialStack(SODIUM_NITRATE, 6));
+ "Solar Salt (Hot)",
+ MaterialState.PURE_LIQUID, // State
+ new short[] { 200, 25, 25 }, // Material Colour
+ 1200, // Melting Point in C
+ 3300, // Boiling Point in C
+ -1, // Protons
+ -1,
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack(POTASSIUM_NITRATE, 4),
+ new MaterialStack(SODIUM_NITRATE, 6));
public static final Material STRONTIUM_OXIDE = new Material(
- "Strontium Oxide",
- MaterialState.SOLID,
- TextureSet.SET_METALLIC,
- null,
- -1,
- -1,
- -1,
- -1,
- false,
- "SrO",
- 0,
- false,
- new MaterialStack(ELEMENT.getInstance().STRONTIUM, 1),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 1));
+ "Strontium Oxide",
+ MaterialState.SOLID,
+ TextureSet.SET_METALLIC,
+ null,
+ -1,
+ -1,
+ -1,
+ -1,
+ false,
+ "SrO",
+ 0,
+ false,
+ new MaterialStack(ELEMENT.getInstance().STRONTIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 1));
public static final Material SELENIUM_DIOXIDE = new Material(
- "Selenium Dioxide",
- MaterialState.PURE_LIQUID, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1,
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack(ELEMENT.getInstance().SELENIUM, 1),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 2));
+ "Selenium Dioxide",
+ MaterialState.PURE_LIQUID, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1,
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack(ELEMENT.getInstance().SELENIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 2));
public static final Material SELENIOUS_ACID = new Material(
- "Selenious Acid",
- MaterialState.PURE_LIQUID, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1,
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack(SELENIUM_DIOXIDE, 1),
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 8),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 4));
+ "Selenious Acid",
+ MaterialState.PURE_LIQUID, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1,
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack(SELENIUM_DIOXIDE, 1),
+ new MaterialStack(ELEMENT.getInstance().HYDROGEN, 8),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 4));
public static final Material HYDROGEN_CYANIDE = new Material(
- "Hydrogen Cyanide",
- MaterialState.PURE_GAS, // State
- null, // Material Colour
- 4, // Melting Point in C
- 26, // Boiling Point in C
- -1, // Protons
- -1,
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 1),
- new MaterialStack(ELEMENT.getInstance().CARBON, 1),
- new MaterialStack(ELEMENT.getInstance().NITROGEN, 1));
+ "Hydrogen Cyanide",
+ MaterialState.PURE_GAS, // State
+ null, // Material Colour
+ 4, // Melting Point in C
+ 26, // Boiling Point in C
+ -1, // Protons
+ -1,
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack(ELEMENT.getInstance().HYDROGEN, 1),
+ new MaterialStack(ELEMENT.getInstance().CARBON, 1),
+ new MaterialStack(ELEMENT.getInstance().NITROGEN, 1));
public static final Material CARBON_MONOXIDE = new Material(
- "Carbon Monoxide",
- MaterialState.PURE_GAS, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1,
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack(ELEMENT.getInstance().CARBON, 1),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 1));
+ "Carbon Monoxide",
+ MaterialState.PURE_GAS, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1,
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack(ELEMENT.getInstance().CARBON, 1),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 1));
public static final Material CARBON_DIOXIDE = new Material(
- "Carbon Dioxide",
- MaterialState.PURE_GAS, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1,
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack(ELEMENT.getInstance().CARBON, 1),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 2));
+ "Carbon Dioxide",
+ MaterialState.PURE_GAS, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1,
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack(ELEMENT.getInstance().CARBON, 1),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 2));
public static final Material WOODS_GLASS = new Material(
- "Wood's Glass", // Material Name
- MaterialState.SOLID, // State
- TextureSets.GEM_A.get(), // Texture Set
- new short[] { 220, 60, 255 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- false,
- "Si4Ba3Na2Ni",
- 0,
- false,
- new MaterialStack(ELEMENT.getInstance().SILICON, 40),
- new MaterialStack(ELEMENT.getInstance().BARIUM, 30),
- new MaterialStack(ELEMENT.getInstance().SODIUM, 20),
- new MaterialStack(ELEMENT.getInstance().NICKEL, 10));
+ "Wood's Glass", // Material Name
+ MaterialState.SOLID, // State
+ TextureSets.GEM_A.get(), // Texture Set
+ new short[] { 220, 60, 255 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ false,
+ "Si4Ba3Na2Ni",
+ 0,
+ false,
+ new MaterialStack(ELEMENT.getInstance().SILICON, 40),
+ new MaterialStack(ELEMENT.getInstance().BARIUM, 30),
+ new MaterialStack(ELEMENT.getInstance().SODIUM, 20),
+ new MaterialStack(ELEMENT.getInstance().NICKEL, 10));
/*
* Rare Earth Materials
*/
public static final Material RARE_EARTH_LOW = new Material(
- "Rare Earth (I)", // Material Name
- MaterialState.ORE, // State
- TextureSets.GEM_A.get(), // Texture Set
- null, // Material Colour
- 1200,
- 2500,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { new MaterialStack(ORES.GREENOCKITE, 1), new MaterialStack(ORES.LANTHANITE_CE, 1),
- new MaterialStack(ORES.AGARDITE_CD, 1), new MaterialStack(ORES.YTTRIALITE, 1),
- new MaterialStack(MaterialUtils.generateMaterialFromGtENUM(Materials.NetherQuartz), 1),
- new MaterialStack(MaterialUtils.generateMaterialFromGtENUM(Materials.Galena), 1),
- new MaterialStack(MaterialUtils.generateMaterialFromGtENUM(Materials.Chalcopyrite), 1),
- new MaterialStack(ORES.CRYOLITE, 1), new MaterialStack(ELEMENT.getInstance().YTTRIUM, 1) });
+ "Rare Earth (I)", // Material Name
+ MaterialState.ORE, // State
+ TextureSets.GEM_A.get(), // Texture Set
+ null, // Material Colour
+ 1200,
+ 2500,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { new MaterialStack(ORES.GREENOCKITE, 1), new MaterialStack(ORES.LANTHANITE_CE, 1),
+ new MaterialStack(ORES.AGARDITE_CD, 1), new MaterialStack(ORES.YTTRIALITE, 1),
+ new MaterialStack(MaterialUtils.generateMaterialFromGtENUM(Materials.NetherQuartz), 1),
+ new MaterialStack(MaterialUtils.generateMaterialFromGtENUM(Materials.Galena), 1),
+ new MaterialStack(MaterialUtils.generateMaterialFromGtENUM(Materials.Chalcopyrite), 1),
+ new MaterialStack(ORES.CRYOLITE, 1), new MaterialStack(ELEMENT.getInstance().YTTRIUM, 1) });
public static final Material RARE_EARTH_MID = new Material(
- "Rare Earth (II)", // Material Name
- MaterialState.ORE, // State
- TextureSets.ENRICHED.get(), // Texture Set
- null, // Material Colour
- 3500,
- 5000,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { new MaterialStack(ORES.LANTHANITE_ND, 1), new MaterialStack(ORES.AGARDITE_ND, 1),
- new MaterialStack(ORES.YTTRIAITE, 1), new MaterialStack(ORES.CROCROITE, 1),
- new MaterialStack(ORES.NICHROMITE, 1), new MaterialStack(ORES.ZIRCON, 1),
- new MaterialStack(ELEMENT.STANDALONE.GRANITE, 1),
- new MaterialStack(ELEMENT.STANDALONE.BLACK_METAL, 1),
- new MaterialStack(ELEMENT.STANDALONE.RUNITE, 1) });
+ "Rare Earth (II)", // Material Name
+ MaterialState.ORE, // State
+ TextureSets.ENRICHED.get(), // Texture Set
+ null, // Material Colour
+ 3500,
+ 5000,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { new MaterialStack(ORES.LANTHANITE_ND, 1), new MaterialStack(ORES.AGARDITE_ND, 1),
+ new MaterialStack(ORES.YTTRIAITE, 1), new MaterialStack(ORES.CROCROITE, 1),
+ new MaterialStack(ORES.NICHROMITE, 1), new MaterialStack(ORES.ZIRCON, 1),
+ new MaterialStack(ELEMENT.STANDALONE.GRANITE, 1), new MaterialStack(ELEMENT.STANDALONE.BLACK_METAL, 1),
+ new MaterialStack(ELEMENT.STANDALONE.RUNITE, 1) });
public static final Material RARE_EARTH_HIGH = new Material(
- "Rare Earth (III)", // Material Name
- MaterialState.ORE, // State
- TextureSets.REFINED.get(), // Texture Set
- null, // Material Colour
- 5200,
- 7500,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { new MaterialStack(ORES.GADOLINITE_Y, 1), new MaterialStack(ORES.LEPERSONNITE, 1),
- new MaterialStack(ORES.FLORENCITE, 1), new MaterialStack(ORES.FLUORCAPHITE, 1),
- new MaterialStack(ORES.LAUTARITE, 1), new MaterialStack(ORES.DEMICHELEITE_BR, 1),
- new MaterialStack(ORES.ALBURNITE, 1), new MaterialStack(ORES.SAMARSKITE_Y, 1),
- new MaterialStack(ORES.AGARDITE_LA, 1), });
+ "Rare Earth (III)", // Material Name
+ MaterialState.ORE, // State
+ TextureSets.REFINED.get(), // Texture Set
+ null, // Material Colour
+ 5200,
+ 7500,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { new MaterialStack(ORES.GADOLINITE_Y, 1), new MaterialStack(ORES.LEPERSONNITE, 1),
+ new MaterialStack(ORES.FLORENCITE, 1), new MaterialStack(ORES.FLUORCAPHITE, 1),
+ new MaterialStack(ORES.LAUTARITE, 1), new MaterialStack(ORES.DEMICHELEITE_BR, 1),
+ new MaterialStack(ORES.ALBURNITE, 1), new MaterialStack(ORES.SAMARSKITE_Y, 1),
+ new MaterialStack(ORES.AGARDITE_LA, 1), });
public static final Material WATER = new Material(
- "Water",
- MaterialState.PURE_LIQUID,
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 2),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 1));
+ "Water",
+ MaterialState.PURE_LIQUID,
+ new MaterialStack(ELEMENT.getInstance().HYDROGEN, 2),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 1));
// OH
public static final Material HYDROXIDE = new Material(
- "Hydroxide", // Material Name
- MaterialState.PURE_LIQUID, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1,
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 1),
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 1));
+ "Hydroxide", // Material Name
+ MaterialState.PURE_LIQUID, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1,
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 1),
+ new MaterialStack(ELEMENT.getInstance().HYDROGEN, 1));
// NH3
public static final Material AMMONIA = new Material(
- "Ammonia", // Material Name
- MaterialState.PURE_LIQUID, // State
- null, // Material Colour
- -77, // Melting Point in C
- -33, // Boiling Point in C
- -1, // Protons
- -1,
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack(ELEMENT.getInstance().NITROGEN, 1),
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 3));
+ "Ammonia", // Material Name
+ MaterialState.PURE_LIQUID, // State
+ null, // Material Colour
+ -77, // Melting Point in C
+ -33, // Boiling Point in C
+ -1, // Protons
+ -1,
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack(ELEMENT.getInstance().NITROGEN, 1),
+ new MaterialStack(ELEMENT.getInstance().HYDROGEN, 3));
// NH4
public static final Material AMMONIUM = new Material(
- "Ammonium", // Material Name
- MaterialState.PURE_LIQUID, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1,
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack(ELEMENT.getInstance().NITROGEN, 1),
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 4));
+ "Ammonium", // Material Name
+ MaterialState.PURE_LIQUID, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1,
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack(ELEMENT.getInstance().NITROGEN, 1),
+ new MaterialStack(ELEMENT.getInstance().HYDROGEN, 4));
public static final Material HYDROGEN_CHLORIDE = new Material(
- "Hydrogen Chloride",
- MaterialState.PURE_GAS,
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 1),
- new MaterialStack(ELEMENT.getInstance().CHLORINE, 1));
+ "Hydrogen Chloride",
+ MaterialState.PURE_GAS,
+ new MaterialStack(ELEMENT.getInstance().HYDROGEN, 1),
+ new MaterialStack(ELEMENT.getInstance().CHLORINE, 1));
public static final Material HYDROGEN_CHLORIDE_MIX = new Material(
- "Hydrogen Chloride Mix",
- MaterialState.PURE_LIQUID, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1,
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 1),
- new MaterialStack(ELEMENT.getInstance().CHLORINE, 1));
+ "Hydrogen Chloride Mix",
+ MaterialState.PURE_LIQUID, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1,
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack(ELEMENT.getInstance().HYDROGEN, 1),
+ new MaterialStack(ELEMENT.getInstance().CHLORINE, 1));
public static final Material SODIUM_CHLORIDE = new Material(
- "Sodium Chloride",
- MaterialState.PURE_GAS,
- new MaterialStack(ELEMENT.getInstance().SODIUM, 1),
- new MaterialStack(ELEMENT.getInstance().CHLORINE, 1));
+ "Sodium Chloride",
+ MaterialState.PURE_GAS,
+ new MaterialStack(ELEMENT.getInstance().SODIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().CHLORINE, 1));
public static final Material SALT_WATER = new Material(
- "Salt Water",
- MaterialState.PURE_LIQUID,
- new MaterialStack(WATER, 3),
- new MaterialStack(SODIUM_CHLORIDE, 1));
+ "Salt Water",
+ MaterialState.PURE_LIQUID,
+ new MaterialStack(WATER, 3),
+ new MaterialStack(SODIUM_CHLORIDE, 1));
public static final Material BRINE = new Material(
- "Brine",
- MaterialState.PURE_LIQUID,
- new MaterialStack(SALT_WATER, 1),
- new MaterialStack(SODIUM_CHLORIDE, 2));
+ "Brine",
+ MaterialState.PURE_LIQUID,
+ new MaterialStack(SALT_WATER, 1),
+ new MaterialStack(SODIUM_CHLORIDE, 2));
public static final Material STRONTIUM_HYDROXIDE = new Material(
- "Strontium Hydroxide",
- MaterialState.SOLID,
- TextureSet.SET_METALLIC,
- null,
- -1,
- -1,
- -1,
- -1,
- false,
- "Sr(OH)2",
- 0,
- false,
- new MaterialStack(ELEMENT.getInstance().STRONTIUM, 1),
- new MaterialStack(MISC_MATERIALS.HYDROXIDE, 2));
+ "Strontium Hydroxide",
+ MaterialState.SOLID,
+ TextureSet.SET_METALLIC,
+ null,
+ -1,
+ -1,
+ -1,
+ -1,
+ false,
+ "Sr(OH)2",
+ 0,
+ false,
+ new MaterialStack(ELEMENT.getInstance().STRONTIUM, 1),
+ new MaterialStack(MISC_MATERIALS.HYDROXIDE, 2));
// Glue Chemicals
public static final Material ACETIC_ANHYDRIDE = new Material(
- "Acetic Anhydride",
- MaterialState.PURE_LIQUID, // State
- new short[] { 250, 240, 110 }, // Material Colour
- -73, // Melting Point in C
- 139, // Boiling Point in C
- -1, // Protons
- -1,
- false, // Uses Blast furnace?
- "(CH3CO)2O",
- 0,
- true,
- new MaterialStack(ELEMENT.getInstance().CARBON, 4),
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 6),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 3));
+ "Acetic Anhydride",
+ MaterialState.PURE_LIQUID, // State
+ new short[] { 250, 240, 110 }, // Material Colour
+ -73, // Melting Point in C
+ 139, // Boiling Point in C
+ -1, // Protons
+ -1,
+ false, // Uses Blast furnace?
+ "(CH3CO)2O",
+ 0,
+ true,
+ new MaterialStack(ELEMENT.getInstance().CARBON, 4),
+ new MaterialStack(ELEMENT.getInstance().HYDROGEN, 6),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 3));
public static final Material CHLOROACETIC_ACID = new Material(
- "Chloroacetic Acid",
- MaterialState.PURE_LIQUID, // State
- new short[] { 230, 200, 90 }, // Material Colour
- 63, // Melting Point in C
- 189, // Boiling Point in C
- -1, // Protons
- -1,
- false, // Uses Blast furnace?
- "ClCH2-COOH",
- 0,
- true,
- new MaterialStack(ELEMENT.getInstance().CARBON, 2),
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 3),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 2),
- new MaterialStack(ELEMENT.getInstance().CHLORINE, 1));
+ "Chloroacetic Acid",
+ MaterialState.PURE_LIQUID, // State
+ new short[] { 230, 200, 90 }, // Material Colour
+ 63, // Melting Point in C
+ 189, // Boiling Point in C
+ -1, // Protons
+ -1,
+ false, // Uses Blast furnace?
+ "ClCH2-COOH",
+ 0,
+ true,
+ new MaterialStack(ELEMENT.getInstance().CARBON, 2),
+ new MaterialStack(ELEMENT.getInstance().HYDROGEN, 3),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 2),
+ new MaterialStack(ELEMENT.getInstance().CHLORINE, 1));
public static final Material DICHLOROACETIC_ACID = new Material(
- "Dichloroacetic Acid",
- MaterialState.PURE_LIQUID, // State
- new short[] { 190, 160, 60 }, // Material Colour
- 13, // Melting Point in C
- 194, // Boiling Point in C
- -1, // Protons
- -1,
- false, // Uses Blast furnace?
- "Cl2CH-COOH",
- 0,
- true,
- new MaterialStack(ELEMENT.getInstance().CARBON, 2),
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 2),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 2),
- new MaterialStack(ELEMENT.getInstance().CHLORINE, 2));
+ "Dichloroacetic Acid",
+ MaterialState.PURE_LIQUID, // State
+ new short[] { 190, 160, 60 }, // Material Colour
+ 13, // Melting Point in C
+ 194, // Boiling Point in C
+ -1, // Protons
+ -1,
+ false, // Uses Blast furnace?
+ "Cl2CH-COOH",
+ 0,
+ true,
+ new MaterialStack(ELEMENT.getInstance().CARBON, 2),
+ new MaterialStack(ELEMENT.getInstance().HYDROGEN, 2),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 2),
+ new MaterialStack(ELEMENT.getInstance().CHLORINE, 2));
public static final Material TRICHLOROACETIC_ACID = new Material(
- "Trichloroacetic Acid",
- MaterialState.PURE_LIQUID, // State
- new short[] { 120, 100, 30 }, // Material Colour
- 57, // Melting Point in C
- 196, // Boiling Point in C
- -1, // Protons
- -1,
- false, // Uses Blast furnace?
- "Cl3C-COOH",
- 0,
- true,
- new MaterialStack(ELEMENT.getInstance().CARBON, 2),
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 1),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 2),
- new MaterialStack(ELEMENT.getInstance().CHLORINE, 3));
+ "Trichloroacetic Acid",
+ MaterialState.PURE_LIQUID, // State
+ new short[] { 120, 100, 30 }, // Material Colour
+ 57, // Melting Point in C
+ 196, // Boiling Point in C
+ -1, // Protons
+ -1,
+ false, // Uses Blast furnace?
+ "Cl3C-COOH",
+ 0,
+ true,
+ new MaterialStack(ELEMENT.getInstance().CARBON, 2),
+ new MaterialStack(ELEMENT.getInstance().HYDROGEN, 1),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 2),
+ new MaterialStack(ELEMENT.getInstance().CHLORINE, 3));
public static final Material CHLOROACETIC_MIXTURE = new Material(
- "Chloroacetic Mixture",
- MaterialState.LIQUID, // State
- null,
- new short[] { 210, 160, 10 },
- 40,
- 192,
- -1,
- -1,
- false,
- "Cl?H?C-COOH",
- 0,
- true,
- new MaterialStack(ELEMENT.getInstance().CARBON, 6),
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 6),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 6),
- new MaterialStack(ELEMENT.getInstance().CHLORINE, 6));
+ "Chloroacetic Mixture",
+ MaterialState.LIQUID, // State
+ null,
+ new short[] { 210, 160, 10 },
+ 40,
+ 192,
+ -1,
+ -1,
+ false,
+ "Cl?H?C-COOH",
+ 0,
+ true,
+ new MaterialStack(ELEMENT.getInstance().CARBON, 6),
+ new MaterialStack(ELEMENT.getInstance().HYDROGEN, 6),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 6),
+ new MaterialStack(ELEMENT.getInstance().CHLORINE, 6));
public static final Material SODIUM_CYANIDE = new Material(
- "Sodium Cyanide",
- MaterialState.SOLID, // State
- new short[] { 180, 190, 255 }, // Material Colour
- 563, // Melting Point in C
- 1496, // Boiling Point in C
- -1, // Protons
- -1,
- false, // Uses Blast furnace?
- "NaCN",
- 0,
- false,
- new MaterialStack(ELEMENT.getInstance().SODIUM, 1),
- new MaterialStack(ELEMENT.getInstance().CARBON, 1),
- new MaterialStack(ELEMENT.getInstance().NITROGEN, 1));
+ "Sodium Cyanide",
+ MaterialState.SOLID, // State
+ new short[] { 180, 190, 255 }, // Material Colour
+ 563, // Melting Point in C
+ 1496, // Boiling Point in C
+ -1, // Protons
+ -1,
+ false, // Uses Blast furnace?
+ "NaCN",
+ 0,
+ false,
+ new MaterialStack(ELEMENT.getInstance().SODIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().CARBON, 1),
+ new MaterialStack(ELEMENT.getInstance().NITROGEN, 1));
public static final Material CALCIUM_CHLORIDE = new Material(
- "Calcium Chloride",
- MaterialState.SOLID, // State
- new short[] { 180, 190, 255 }, // Material Colour
- 563, // Melting Point in C
- 1496, // Boiling Point in C
- -1, // Protons
- -1,
- false, // Uses Blast furnace?
- "CaCl2",
- 0,
- false,
- new MaterialStack(ELEMENT.getInstance().CALCIUM, 1),
- new MaterialStack(ELEMENT.getInstance().CHLORINE, 2));
+ "Calcium Chloride",
+ MaterialState.SOLID, // State
+ new short[] { 180, 190, 255 }, // Material Colour
+ 563, // Melting Point in C
+ 1496, // Boiling Point in C
+ -1, // Protons
+ -1,
+ false, // Uses Blast furnace?
+ "CaCl2",
+ 0,
+ false,
+ new MaterialStack(ELEMENT.getInstance().CALCIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().CHLORINE, 2));
public static final Material CYANOACETIC_ACID = new Material(
- "Cyanoacetic Acid",
- MaterialState.SOLID, // State
- new short[] { 130, 130, 40 }, // Material Colour
- 66, // Melting Point in C
- 108, // Boiling Point in C
- -1, // Protons
- -1,
- false, // Uses Blast furnace?
- "C3H3NO2",
- 0,
- false,
- new MaterialStack(ELEMENT.getInstance().CARBON, 3),
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 3),
- new MaterialStack(ELEMENT.getInstance().NITROGEN, 1),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 2));
+ "Cyanoacetic Acid",
+ MaterialState.SOLID, // State
+ new short[] { 130, 130, 40 }, // Material Colour
+ 66, // Melting Point in C
+ 108, // Boiling Point in C
+ -1, // Protons
+ -1,
+ false, // Uses Blast furnace?
+ "C3H3NO2",
+ 0,
+ false,
+ new MaterialStack(ELEMENT.getInstance().CARBON, 3),
+ new MaterialStack(ELEMENT.getInstance().HYDROGEN, 3),
+ new MaterialStack(ELEMENT.getInstance().NITROGEN, 1),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 2));
public static final Material SOLID_ACID_MIXTURE = new Material(
- "Solid Acid Catalyst Mixture",
- MaterialState.LIQUID, // State
- new short[] { 80, 40, 0 }, // Material Colour
- -10, // Melting Point in C
- 337, // Boiling Point in C
- -1, // Protons
- -1,
- false, // Uses Blast furnace?
- "?H2SO4?",
- 0,
- true,
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 2),
- new MaterialStack(ELEMENT.getInstance().SULFUR, 1),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 4));
+ "Solid Acid Catalyst Mixture",
+ MaterialState.LIQUID, // State
+ new short[] { 80, 40, 0 }, // Material Colour
+ -10, // Melting Point in C
+ 337, // Boiling Point in C
+ -1, // Protons
+ -1,
+ false, // Uses Blast furnace?
+ "?H2SO4?",
+ 0,
+ true,
+ new MaterialStack(ELEMENT.getInstance().HYDROGEN, 2),
+ new MaterialStack(ELEMENT.getInstance().SULFUR, 1),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 4));
public static final Material COPPER_SULFATE = new Material(
- "Copper(II) Sulfate",
- MaterialState.SOLID, // State
- new short[] { 200, 200, 200 }, // Material Colour
- 590, // Melting Point in C
- 650, // Boiling Point in C
- -1, // Protons
- -1,
- false, // Uses Blast furnace?
- "CuSO4",
- 0,
- false,
- new MaterialStack(ELEMENT.getInstance().COPPER, 1),
- new MaterialStack(ELEMENT.getInstance().SULFUR, 1),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 4));
+ "Copper(II) Sulfate",
+ MaterialState.SOLID, // State
+ new short[] { 200, 200, 200 }, // Material Colour
+ 590, // Melting Point in C
+ 650, // Boiling Point in C
+ -1, // Protons
+ -1,
+ false, // Uses Blast furnace?
+ "CuSO4",
+ 0,
+ false,
+ new MaterialStack(ELEMENT.getInstance().COPPER, 1),
+ new MaterialStack(ELEMENT.getInstance().SULFUR, 1),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 4));
public static final Material COPPER_SULFATE_HYDRATED = new Material(
- "Copper(II) Sulfate Pentahydrate",
- MaterialState.SOLID, // State
- new short[] { 90, 170, 255 }, // Material Colour
- 590, // Melting Point in C
- 650, // Boiling Point in C
- -1, // Protons
- -1,
- false, // Uses Blast furnace?
- "CuSO4∙(H2O)5",
- 0,
- false,
- new MaterialStack(ELEMENT.getInstance().COPPER, 1),
- new MaterialStack(ELEMENT.getInstance().SULFUR, 1),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 4));
+ "Copper(II) Sulfate Pentahydrate",
+ MaterialState.SOLID, // State
+ new short[] { 90, 170, 255 }, // Material Colour
+ 590, // Melting Point in C
+ 650, // Boiling Point in C
+ -1, // Protons
+ -1,
+ false, // Uses Blast furnace?
+ "CuSO4∙(H2O)5",
+ 0,
+ false,
+ new MaterialStack(ELEMENT.getInstance().COPPER, 1),
+ new MaterialStack(ELEMENT.getInstance().SULFUR, 1),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 4));
public static final Material ETHYL_CYANOACETATE = new Material(
- "Ethyl Cyanoacetate",
- MaterialState.PURE_LIQUID, // State
- new short[] { 0, 75, 160 }, // Material Colour
- -22, // Melting Point in C
- 210, // Boiling Point in C
- -1, // Protons
- -1,
- false, // Uses Blast furnace?
- "C5H7NO2",
- 0,
- true,
- new MaterialStack(ELEMENT.getInstance().CARBON, 2),
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 1),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 2),
- new MaterialStack(ELEMENT.getInstance().CHLORINE, 3));
+ "Ethyl Cyanoacetate",
+ MaterialState.PURE_LIQUID, // State
+ new short[] { 0, 75, 160 }, // Material Colour
+ -22, // Melting Point in C
+ 210, // Boiling Point in C
+ -1, // Protons
+ -1,
+ false, // Uses Blast furnace?
+ "C5H7NO2",
+ 0,
+ true,
+ new MaterialStack(ELEMENT.getInstance().CARBON, 2),
+ new MaterialStack(ELEMENT.getInstance().HYDROGEN, 1),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 2),
+ new MaterialStack(ELEMENT.getInstance().CHLORINE, 3));
public static final Material CYANOACRYLATE_POLYMER = new Material(
- "Cyanoacrylate Polymer",
- MaterialState.LIQUID, // State
- new short[] { 140, 150, 160 }, // Material Colour
- -25, // Melting Point in C
- 55, // Boiling Point in C
- -1, // Protons
- -1,
- false, // Uses Blast furnace?
- "(-C6H7NO2-)n",
- 0,
- true,
- new MaterialStack(ELEMENT.getInstance().CARBON, 2),
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 1),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 2),
- new MaterialStack(ELEMENT.getInstance().CHLORINE, 3));
+ "Cyanoacrylate Polymer",
+ MaterialState.LIQUID, // State
+ new short[] { 140, 150, 160 }, // Material Colour
+ -25, // Melting Point in C
+ 55, // Boiling Point in C
+ -1, // Protons
+ -1,
+ false, // Uses Blast furnace?
+ "(-C6H7NO2-)n",
+ 0,
+ true,
+ new MaterialStack(ELEMENT.getInstance().CARBON, 2),
+ new MaterialStack(ELEMENT.getInstance().HYDROGEN, 1),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 2),
+ new MaterialStack(ELEMENT.getInstance().CHLORINE, 3));
public static final Material ETHYL_CYANOACRYLATE = new Material(
- "Ethyl Cyanoacrylate (Super Glue)",
- MaterialState.PURE_LIQUID, // State
- new short[] { 170, 190, 200 }, // Material Colour
- -25, // Melting Point in C
- 55, // Boiling Point in C
- -1, // Protons
- -1,
- false, // Uses Blast furnace?
- "C6H7NO2",
- 0,
- true,
- new MaterialStack(ELEMENT.getInstance().CARBON, 2),
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 1),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 2),
- new MaterialStack(ELEMENT.getInstance().CHLORINE, 3));
+ "Ethyl Cyanoacrylate (Super Glue)",
+ MaterialState.PURE_LIQUID, // State
+ new short[] { 170, 190, 200 }, // Material Colour
+ -25, // Melting Point in C
+ 55, // Boiling Point in C
+ -1, // Protons
+ -1,
+ false, // Uses Blast furnace?
+ "C6H7NO2",
+ 0,
+ true,
+ new MaterialStack(ELEMENT.getInstance().CARBON, 2),
+ new MaterialStack(ELEMENT.getInstance().HYDROGEN, 1),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 2),
+ new MaterialStack(ELEMENT.getInstance().CHLORINE, 3));
public static final Material MUTATED_LIVING_SOLDER = new Material(
- "Mutated Living Solder",
- MaterialState.PURE_LIQUID, // State
- new short[] { 147, 109, 155 }, // Material Colour
- -200, // Melting Point in C
- 500, // Boiling Point in C
- -1, // Protons
- -1,
- false, // Uses Blast furnace?
- "?Sn?Bi?",
- 0,
- true,
- new MaterialStack(ELEMENT.getInstance().TIN, 1),
- new MaterialStack(ELEMENT.getInstance().BISMUTH, 1));
+ "Mutated Living Solder",
+ MaterialState.PURE_LIQUID, // State
+ new short[] { 147, 109, 155 }, // Material Colour
+ -200, // Melting Point in C
+ 500, // Boiling Point in C
+ -1, // Protons
+ -1,
+ false, // Uses Blast furnace?
+ "?Sn?Bi?",
+ 0,
+ true,
+ new MaterialStack(ELEMENT.getInstance().TIN, 1),
+ new MaterialStack(ELEMENT.getInstance().BISMUTH, 1));
}
diff --git a/src/main/java/gtPlusPlus/core/material/Material.java b/src/main/java/gtPlusPlus/core/material/Material.java
index d6598d4d29..fec80060ac 100644
--- a/src/main/java/gtPlusPlus/core/material/Material.java
+++ b/src/main/java/gtPlusPlus/core/material/Material.java
@@ -95,280 +95,280 @@ public class Material {
}
public Material(final String materialName, final MaterialState defaultState, final short[] rgba,
- final MaterialStack... inputs) {
+ final MaterialStack... inputs) {
this(materialName, defaultState, null, 0, rgba, -1, -1, -1, -1, false, "", 0, false, false, inputs);
}
public Material(final String materialName, final MaterialState defaultState, final short[] rgba, int radiationLevel,
- MaterialStack... materialStacks) {
+ MaterialStack... materialStacks) {
this(
- materialName,
- defaultState,
- null,
- 0,
- rgba,
- -1,
- -1,
- -1,
- -1,
- false,
- "",
- radiationLevel,
- false,
- materialStacks);
+ materialName,
+ defaultState,
+ null,
+ 0,
+ rgba,
+ -1,
+ -1,
+ -1,
+ -1,
+ false,
+ "",
+ radiationLevel,
+ false,
+ materialStacks);
}
public Material(String materialName, MaterialState defaultState, short[] rgba, int j, int k, int l, int m,
- int radiationLevel, MaterialStack[] materialStacks) {
+ int radiationLevel, MaterialStack[] materialStacks) {
this(materialName, defaultState, null, 0, rgba, j, k, l, m, false, "", radiationLevel, false, materialStacks);
}
public Material(String materialName, MaterialState defaultState, final TextureSet set, short[] rgba,
- int meltingPoint, int boilingPoint, int protons, int neutrons, int radiationLevel,
- MaterialStack[] materialStacks) {
+ int meltingPoint, int boilingPoint, int protons, int neutrons, int radiationLevel,
+ MaterialStack[] materialStacks) {
this(
- materialName,
- defaultState,
- set,
- 0,
- rgba,
- meltingPoint,
- boilingPoint,
- protons,
- neutrons,
- false,
- "",
- radiationLevel,
- false,
- materialStacks);
+ materialName,
+ defaultState,
+ set,
+ 0,
+ rgba,
+ meltingPoint,
+ boilingPoint,
+ protons,
+ neutrons,
+ false,
+ "",
+ radiationLevel,
+ false,
+ materialStacks);
}
public Material(final String materialName, final MaterialState defaultState, final short[] rgba,
- final int meltingPoint, final int boilingPoint, final long protons, final long neutrons,
- final boolean blastFurnace, final MaterialStack... inputs) {
+ final int meltingPoint, final int boilingPoint, final long protons, final long neutrons,
+ final boolean blastFurnace, final MaterialStack... inputs) {
this(
- materialName,
- defaultState,
- 0,
- rgba,
- meltingPoint,
- boilingPoint,
- protons,
- neutrons,
- blastFurnace,
- "",
- 0,
- inputs);
+ materialName,
+ defaultState,
+ 0,
+ rgba,
+ meltingPoint,
+ boilingPoint,
+ protons,
+ neutrons,
+ blastFurnace,
+ "",
+ 0,
+ inputs);
}
public Material(final String materialName, final MaterialState defaultState, final short[] rgba,
- final int meltingPoint, final int boilingPoint, final long protons, final long neutrons,
- final boolean blastFurnace, final String chemSymbol, final MaterialStack... inputs) {
+ final int meltingPoint, final int boilingPoint, final long protons, final long neutrons,
+ final boolean blastFurnace, final String chemSymbol, final MaterialStack... inputs) {
this(
- materialName,
- defaultState,
- 0,
- rgba,
- meltingPoint,
- boilingPoint,
- protons,
- neutrons,
- blastFurnace,
- chemSymbol,
- 0,
- inputs);
+ materialName,
+ defaultState,
+ 0,
+ rgba,
+ meltingPoint,
+ boilingPoint,
+ protons,
+ neutrons,
+ blastFurnace,
+ chemSymbol,
+ 0,
+ inputs);
}
public Material(final String materialName, final MaterialState defaultState, final short[] rgba,
- final int meltingPoint, final int boilingPoint, final long protons, final long neutrons,
- final boolean blastFurnace, boolean generateCells, final MaterialStack... inputs) {
+ final int meltingPoint, final int boilingPoint, final long protons, final long neutrons,
+ final boolean blastFurnace, boolean generateCells, final MaterialStack... inputs) {
this(
- materialName,
- defaultState,
- null,
- 0,
- rgba,
- meltingPoint,
- boilingPoint,
- protons,
- neutrons,
- blastFurnace,
- "",
- 0,
- generateCells,
- true,
- inputs);
+ materialName,
+ defaultState,
+ null,
+ 0,
+ rgba,
+ meltingPoint,
+ boilingPoint,
+ protons,
+ neutrons,
+ blastFurnace,
+ "",
+ 0,
+ generateCells,
+ true,
+ inputs);
}
public Material(final String materialName, final MaterialState defaultState, final short[] rgba,
- final int meltingPoint, final int boilingPoint, final long protons, final long neutrons,
- final boolean blastFurnace, final int radiationLevel, final MaterialStack... inputs) {
+ final int meltingPoint, final int boilingPoint, final long protons, final long neutrons,
+ final boolean blastFurnace, final int radiationLevel, final MaterialStack... inputs) {
this(
- materialName,
- defaultState,
- 0,
- rgba,
- meltingPoint,
- boilingPoint,
- protons,
- neutrons,
- blastFurnace,
- "",
- radiationLevel,
- inputs);
+ materialName,
+ defaultState,
+ 0,
+ rgba,
+ meltingPoint,
+ boilingPoint,
+ protons,
+ neutrons,
+ blastFurnace,
+ "",
+ radiationLevel,
+ inputs);
}
public Material(final String materialName, final MaterialState defaultState, final long durability,
- final short[] rgba, final int meltingPoint, final int boilingPoint, final long protons, final long neutrons,
- final boolean blastFurnace, final int radiationLevel, final MaterialStack... inputs) {
+ final short[] rgba, final int meltingPoint, final int boilingPoint, final long protons, final long neutrons,
+ final boolean blastFurnace, final int radiationLevel, final MaterialStack... inputs) {
this(
- materialName,
- defaultState,
- durability,
- rgba,
- meltingPoint,
- boilingPoint,
- protons,
- neutrons,
- blastFurnace,
- "",
- radiationLevel,
- inputs);
+ materialName,
+ defaultState,
+ durability,
+ rgba,
+ meltingPoint,
+ boilingPoint,
+ protons,
+ neutrons,
+ blastFurnace,
+ "",
+ radiationLevel,
+ inputs);
}
public Material(final String materialName, final MaterialState defaultState, final short[] rgba,
- final int meltingPoint, final int boilingPoint, final long protons, final long neutrons,
- final boolean blastFurnace, final String chemicalSymbol, final int radiationLevel,
- final MaterialStack... inputs) {
+ final int meltingPoint, final int boilingPoint, final long protons, final long neutrons,
+ final boolean blastFurnace, final String chemicalSymbol, final int radiationLevel,
+ final MaterialStack... inputs) {
this(
- materialName,
- defaultState,
- 0,
- rgba,
- meltingPoint,
- boilingPoint,
- protons,
- neutrons,
- blastFurnace,
- chemicalSymbol,
- radiationLevel,
- inputs);
+ materialName,
+ defaultState,
+ 0,
+ rgba,
+ meltingPoint,
+ boilingPoint,
+ protons,
+ neutrons,
+ blastFurnace,
+ chemicalSymbol,
+ radiationLevel,
+ inputs);
}
public Material(final String materialName, final MaterialState defaultState, final short[] rgba,
- final int meltingPoint, final int boilingPoint, final long protons, final long neutrons,
- final boolean blastFurnace, final String chemicalSymbol, final int radiationLevel, boolean addCells,
- final MaterialStack... inputs) {
+ final int meltingPoint, final int boilingPoint, final long protons, final long neutrons,
+ final boolean blastFurnace, final String chemicalSymbol, final int radiationLevel, boolean addCells,
+ final MaterialStack... inputs) {
this(
- materialName,
- defaultState,
- null,
- 0,
- rgba,
- meltingPoint,
- boilingPoint,
- protons,
- neutrons,
- blastFurnace,
- chemicalSymbol,
- radiationLevel,
- addCells,
- true,
- inputs);
+ materialName,
+ defaultState,
+ null,
+ 0,
+ rgba,
+ meltingPoint,
+ boilingPoint,
+ protons,
+ neutrons,
+ blastFurnace,
+ chemicalSymbol,
+ radiationLevel,
+ addCells,
+ true,
+ inputs);
}
public Material(final String materialName, final MaterialState defaultState, TextureSet textureSet,
- final short[] rgba, final int meltingPoint, final int boilingPoint, final long protons, final long neutrons,
- final boolean blastFurnace, final String chemicalSymbol, final int radiationLevel,
- final MaterialStack... inputs) {
+ final short[] rgba, final int meltingPoint, final int boilingPoint, final long protons, final long neutrons,
+ final boolean blastFurnace, final String chemicalSymbol, final int radiationLevel,
+ final MaterialStack... inputs) {
this(
- materialName,
- defaultState,
- textureSet,
- 0,
- rgba,
- meltingPoint,
- boilingPoint,
- protons,
- neutrons,
- blastFurnace,
- chemicalSymbol,
- radiationLevel,
- true,
- true,
- inputs);
+ materialName,
+ defaultState,
+ textureSet,
+ 0,
+ rgba,
+ meltingPoint,
+ boilingPoint,
+ protons,
+ neutrons,
+ blastFurnace,
+ chemicalSymbol,
+ radiationLevel,
+ true,
+ true,
+ inputs);
}
public Material(final String materialName, final MaterialState defaultState, TextureSet textureSet,
- final short[] rgba, final int meltingPoint, final int boilingPoint, final long protons, final long neutrons,
- final boolean blastFurnace, final String chemicalSymbol, final int radiationLevel, boolean addCells,
- final MaterialStack... inputs) {
+ final short[] rgba, final int meltingPoint, final int boilingPoint, final long protons, final long neutrons,
+ final boolean blastFurnace, final String chemicalSymbol, final int radiationLevel, boolean addCells,
+ final MaterialStack... inputs) {
this(
- materialName,
- defaultState,
- textureSet,
- 0,
- rgba,
- meltingPoint,
- boilingPoint,
- protons,
- neutrons,
- blastFurnace,
- chemicalSymbol,
- radiationLevel,
- addCells,
- true,
- inputs);
+ materialName,
+ defaultState,
+ textureSet,
+ 0,
+ rgba,
+ meltingPoint,
+ boilingPoint,
+ protons,
+ neutrons,
+ blastFurnace,
+ chemicalSymbol,
+ radiationLevel,
+ addCells,
+ true,
+ inputs);
}
private Material(final String materialName, final MaterialState defaultState, final long durability,
- final short[] rgba, final int meltingPoint, final int boilingPoint, final long protons, final long neutrons,
- final boolean blastFurnace, final String chemicalSymbol, final int radiationLevel,
- final MaterialStack... inputs) {
+ final short[] rgba, final int meltingPoint, final int boilingPoint, final long protons, final long neutrons,
+ final boolean blastFurnace, final String chemicalSymbol, final int radiationLevel,
+ final MaterialStack... inputs) {
this(
- materialName,
- defaultState,
- null,
- durability,
- rgba,
- meltingPoint,
- boilingPoint,
- protons,
- neutrons,
- blastFurnace,
- chemicalSymbol,
- radiationLevel,
- true,
- true,
- inputs);
+ materialName,
+ defaultState,
+ null,
+ durability,
+ rgba,
+ meltingPoint,
+ boilingPoint,
+ protons,
+ neutrons,
+ blastFurnace,
+ chemicalSymbol,
+ radiationLevel,
+ true,
+ true,
+ inputs);
}
public Material(final String materialName, final MaterialState defaultState, final TextureSet set,
- final long durability, final short[] rgba, final int meltingPoint, final int boilingPoint,
- final long protons, final long neutrons, final boolean blastFurnace, final String chemicalSymbol,
- final int radiationLevel, boolean generateCells, final MaterialStack... inputs) {
+ final long durability, final short[] rgba, final int meltingPoint, final int boilingPoint, final long protons,
+ final long neutrons, final boolean blastFurnace, final String chemicalSymbol, final int radiationLevel,
+ boolean generateCells, final MaterialStack... inputs) {
this(
- materialName,
- defaultState,
- set,
- durability,
- rgba,
- meltingPoint,
- boilingPoint,
- protons,
- neutrons,
- blastFurnace,
- chemicalSymbol,
- radiationLevel,
- true,
- true,
- inputs);
+ materialName,
+ defaultState,
+ set,
+ durability,
+ rgba,
+ meltingPoint,
+ boilingPoint,
+ protons,
+ neutrons,
+ blastFurnace,
+ chemicalSymbol,
+ radiationLevel,
+ true,
+ true,
+ inputs);
}
public Material(final String materialName, final MaterialState defaultState, final TextureSet set,
- final long durability, short[] rgba, final int meltingPoint, final int boilingPoint, final long protons,
- final long neutrons, final boolean blastFurnace, String chemicalSymbol, final int radiationLevel,
- boolean generateCells, boolean generateFluid, final MaterialStack... inputs) {
+ final long durability, short[] rgba, final int meltingPoint, final int boilingPoint, final long protons,
+ final long neutrons, final boolean blastFurnace, String chemicalSymbol, final int radiationLevel,
+ boolean generateCells, boolean generateFluid, final MaterialStack... inputs) {
if (mMaterialMap.add(this)) {}
@@ -382,7 +382,7 @@ public class Material {
this.unlocalizedName = Utils.sanitizeString(materialName);
this.localizedName = materialName;
this.translatedName = GT_LanguageManager
- .addStringLocalization("gtplusplus.material." + unlocalizedName, localizedName);
+ .addStringLocalization("gtplusplus.material." + unlocalizedName, localizedName);
mMaterialCache.put(getLocalizedName().toLowerCase(), this);
Logger.INFO("Stored " + getLocalizedName() + " to cache with key: " + getLocalizedName().toLowerCase());
@@ -426,8 +426,8 @@ public class Material {
Short aAverage = MathUtils.getShortAverage(aDataSet);
if (aAverage > Short.MAX_VALUE || aAverage < Short.MIN_VALUE
- || aAverage < 0
- || aAverage > 255) {
+ || aAverage < 0
+ || aAverage > 255) {
if (aAverage > 255) {
while (aAverage > 255) {
aAverage = (short) (aAverage / 2);
@@ -450,7 +450,8 @@ public class Material {
} else {
// Boring Grey Material
- int aValueForGen = this.getUnlocalizedName().hashCode();
+ int aValueForGen = this.getUnlocalizedName()
+ .hashCode();
int hashSize = MathUtils.howManyPlaces(aValueForGen);
String a = String.valueOf(aValueForGen);
@@ -537,11 +538,16 @@ public class Material {
long aTempDura = 0;
for (MaterialStack g : this.getComposites()) {
if (g != null) {
- aTempDura += safeCast_LongToInt(g.getStackMaterial().getMass() * 2000);
+ aTempDura += safeCast_LongToInt(
+ g.getStackMaterial()
+ .getMass() * 2000);
}
}
this.vDurability = aTempDura > 0 ? aTempDura
- : (this.getComposites().isEmpty() ? 51200 : 32000 * this.getComposites().size());
+ : (this.getComposites()
+ .isEmpty() ? 51200
+ : 32000 * this.getComposites()
+ .size());
}
if ((this.vDurability >= 0) && (this.vDurability < 64000)) {
@@ -578,9 +584,9 @@ public class Material {
byte aAverage = MathUtils.getByteAverage(aDataSet);
if (aAverage > 0) {
Logger.MATERIALS(
- this.getLocalizedName() + " is radioactive due to trace elements. Level: "
- + aAverage
- + ".");
+ this.getLocalizedName() + " is radioactive due to trace elements. Level: "
+ + aAverage
+ + ".");
this.isRadioactive = true;
this.vRadiationLevel = aAverage;
} else {
@@ -661,7 +667,8 @@ public class Material {
}
}
// Don't generate plasma for composites
- if (this.getComposites().isEmpty()) {
+ if (this.getComposites()
+ .isEmpty()) {
this.mPlasma = this.generatePlasma();
}
} else {
@@ -682,7 +689,8 @@ public class Material {
this.textureSet = setTextureSet(set, vTier);
if (TinkerConstruct.isModLoaded() && this.materialState == MaterialState.SOLID) {
- if (this.getProtons() >= 98 || this.getComposites().size() > 1 || this.getMeltingPointC() >= 3600) {
+ if (this.getProtons() >= 98 || this.getComposites()
+ .size() > 1 || this.getMeltingPointC() >= 3600) {
this.vTiConHandler = new BaseTinkersMaterial(this);
}
}
@@ -690,11 +698,11 @@ public class Material {
sChemicalFormula.put(materialName.toLowerCase(), this.vChemicalFormula);
Logger.MATERIALS("Creating a Material instance for " + materialName);
Logger.MATERIALS(
- "Formula: " + this.vChemicalFormula
- + " Smallest Stack: "
- + this.smallestStackSizeWhenProcessing
- + " Smallest Ratio:"
- + ratio);
+ "Formula: " + this.vChemicalFormula
+ + " Smallest Stack: "
+ + this.smallestStackSizeWhenProcessing
+ + " Smallest Ratio:"
+ + ratio);
Logger.MATERIALS("Protons: " + this.vProtons);
Logger.MATERIALS("Neutrons: " + this.vNeutrons);
Logger.MATERIALS("Mass: " + this.vMass + "/units");
@@ -746,10 +754,10 @@ public class Material {
public TextureSet setTextureSet(TextureSet set, int aTier) {
if (set != null) {
Logger.MATERIALS(
- "Set textureset for " + this.localizedName
- + " to be "
- + set.mSetName
- + ". This textureSet was supplied.");
+ "Set textureset for " + this.localizedName
+ + " to be "
+ + set.mSetName
+ + ". This textureSet was supplied.");
return set;
}
@@ -797,29 +805,31 @@ public class Material {
}
if (aSet == null) {
- if (aGem >= this.getComposites().size() / 2) {
+ if (aGem >= this.getComposites()
+ .size() / 2) {
if (MathUtils.isNumberEven(aGem)) {
Logger.MATERIALS(
- "Set textureset for " + this.localizedName
- + " to be "
- + TextureSet.SET_GEM_HORIZONTAL.mSetName
- + ".");
+ "Set textureset for " + this.localizedName
+ + " to be "
+ + TextureSet.SET_GEM_HORIZONTAL.mSetName
+ + ".");
return TextureSet.SET_GEM_HORIZONTAL;
} else {
Logger.MATERIALS(
- "Set textureset for " + this.localizedName
- + " to be "
- + TextureSet.SET_GEM_VERTICAL.mSetName
- + ".");
+ "Set textureset for " + this.localizedName
+ + " to be "
+ + TextureSet.SET_GEM_VERTICAL.mSetName
+ + ".");
return TextureSet.SET_GEM_VERTICAL;
}
}
}
if (aSet == null) {
- if (aShiny >= this.getComposites().size() / 3) {
+ if (aShiny >= this.getComposites()
+ .size() / 3) {
Logger.MATERIALS(
- "Set textureset for " + this.localizedName + " to be " + TextureSet.SET_SHINY.mSetName + ".");
+ "Set textureset for " + this.localizedName + " to be " + TextureSet.SET_SHINY.mSetName + ".");
return TextureSet.SET_SHINY;
}
}
@@ -828,7 +838,9 @@ public class Material {
AutoMap<Material> sets = new AutoMap<>();
if (this.vMaterialInput != null) {
for (MaterialStack r : this.vMaterialInput) {
- if (r.getStackMaterial().getTextureSet().mSetName.toLowerCase().contains("fluid")) {
+ if (r.getStackMaterial()
+ .getTextureSet().mSetName.toLowerCase()
+ .contains("fluid")) {
sets.put(ELEMENT.getInstance().GOLD);
} else {
sets.put(r.getStackMaterial());
@@ -837,15 +849,12 @@ public class Material {
TextureSet mostUsedTypeTextureSet = MaterialUtils.getMostCommonTextureSet(new ArrayList<>(sets.values()));
if (mostUsedTypeTextureSet != null && mostUsedTypeTextureSet instanceof TextureSet) {
Logger.MATERIALS(
- "Set textureset for " + this.localizedName + " to be " + mostUsedTypeTextureSet.mSetName + ".");
+ "Set textureset for " + this.localizedName + " to be " + mostUsedTypeTextureSet.mSetName + ".");
return mostUsedTypeTextureSet;
}
}
Logger.MATERIALS(
- "Set textureset for " + this.localizedName
- + " to be "
- + Materials.Iron.mIconSet.mSetName
- + ". [Fallback]");
+ "Set textureset for " + this.localizedName + " to be " + Materials.Iron.mIconSet.mSetName + ". [Fallback]");
return Materials.Gold.mIconSet;
}
@@ -960,9 +969,9 @@ public class Material {
Erg = ItemUtils.getOrePrefixStack(OrePrefixes.cellMolten, Erf, stacksize);
if (Erg != null && ItemUtils.checkForInvalidItems(Erg)) {
Logger.MATERIALS(
- "Found \"" + OrePrefixes.cellMolten.name()
- + this.unlocalizedName
- + "\" using backup GT Materials option.");
+ "Found \"" + OrePrefixes.cellMolten.name()
+ + this.unlocalizedName
+ + "\" using backup GT Materials option.");
g.put(aKey, Erg);
mComponentMap.put(unlocalizedName, g);
return Erg;
@@ -986,8 +995,8 @@ public class Material {
Block b = Block.getBlockFromItem(getBlock(1).getItem());
if (b == null) {
Logger.INFO(
- "[ERROR] Tried to get invalid block for " + this.getLocalizedName()
- + ", returning debug block instead.");
+ "[ERROR] Tried to get invalid block for " + this.getLocalizedName()
+ + ", returning debug block instead.");
}
return b != null ? b : Blocks.lit_furnace;
}
@@ -995,7 +1004,7 @@ public class Material {
public final ItemStack getBlock(final int stacksize) {
ItemStack i = getComponentByPrefix(OrePrefixes.block, stacksize);
return i != null ? i
- : ItemUtils.getItemStackOfAmountFromOreDictNoBroken("block" + this.unlocalizedName, stacksize);
+ : ItemUtils.getItemStackOfAmountFromOreDictNoBroken("block" + this.unlocalizedName, stacksize);
}
public final ItemStack getDust(final int stacksize) {
@@ -1138,8 +1147,8 @@ public class Material {
*/
public final ItemStack getOre(final int stacksize) {
return ItemUtils.getItemStackOfAmountFromOreDictNoBroken(
- "ore" + Utils.sanitizeString(this.getUnlocalizedName()),
- stacksize);
+ "ore" + Utils.sanitizeString(this.getUnlocalizedName()),
+ stacksize);
}
public final Block getOreBlock(final int stacksize) {
@@ -1154,9 +1163,11 @@ public class Material {
}
Block x = Block.getBlockFromItem(
- ItemUtils.getItemStackOfAmountFromOreDictNoBroken(
- "ore" + Utils.sanitizeString(this.unlocalizedName),
- stacksize).getItem());
+ ItemUtils
+ .getItemStackOfAmountFromOreDictNoBroken(
+ "ore" + Utils.sanitizeString(this.unlocalizedName),
+ stacksize)
+ .getItem());
if (x != null) {
return x;
}
@@ -1197,7 +1208,7 @@ public class Material {
public final boolean hasSolidForm() {
if (ItemUtils
- .checkForInvalidItems(new ItemStack[] { getDust(1), getBlock(1), getTinyDust(1), getSmallDust(1) })) {
+ .checkForInvalidItems(new ItemStack[] { getDust(1), getBlock(1), getTinyDust(1), getSmallDust(1) })) {
return true;
}
return false;
@@ -1210,7 +1221,8 @@ public class Material {
// Utils.LOG_MATERIALS("i:"+i);
ItemStack testNull = null;
try {
- testNull = this.vMaterialInput.get(i).getValidStack();
+ testNull = this.vMaterialInput.get(i)
+ .getValidStack();
} catch (final Throwable r) {
Logger.MATERIALS("Failed gathering material stack for " + this.localizedName + ".");
Logger.MATERIALS("What Failed: Length:" + this.vMaterialInput.size() + " current:" + i);
@@ -1218,7 +1230,8 @@ public class Material {
try {
if (testNull != null) {
// Utils.LOG_MATERIALS("not null");
- temp[i] = this.vMaterialInput.get(i).getValidStack();
+ temp[i] = this.vMaterialInput.get(i)
+ .getValidStack();
}
} catch (final Throwable r) {
Logger.MATERIALS("Failed setting slot " + i + ", using " + this.localizedName);
@@ -1238,7 +1251,8 @@ public class Material {
final int[] temp = new int[this.vMaterialInput.size()];
for (int i = 0; i < this.vMaterialInput.size(); i++) {
if (this.vMaterialInput.get(i) != null) {
- temp[i] = this.vMaterialInput.get(i).getDustStack().stackSize;
+ temp[i] = this.vMaterialInput.get(i)
+ .getDustStack().stackSize;
} else {
temp[i] = 0;
}
@@ -1275,7 +1289,8 @@ public class Material {
final long[] tempRatio = new long[tempInput.size()];
for (int x = 0; x < tempInput.size(); x++) {
if (tempInput.get(x) != null) {
- tempRatio[x] = tempInput.get(x).getPartsPerOneHundred();
+ tempRatio[x] = tempInput.get(x)
+ .getPartsPerOneHundred();
}
}
@@ -1337,17 +1352,17 @@ public class Material {
if (dummyFormulaArray[e] > 1) {
if (aChemFormula.length() > 3
- || StringUtils.uppercaseCount(aChemFormula) > 1) {
+ || StringUtils.uppercaseCount(aChemFormula) > 1) {
dummyFormula = dummyFormula + "("
- + aChemFormula
- + ")"
- + dummyFormulaArray[e];
+ + aChemFormula
+ + ")"
+ + dummyFormulaArray[e];
} else {
dummyFormula = dummyFormula + aChemFormula + dummyFormulaArray[e];
}
} else if (dummyFormulaArray[e] == 1) {
if (aChemFormula.length() > 3
- || StringUtils.uppercaseCount(aChemFormula) > 1) {
+ || StringUtils.uppercaseCount(aChemFormula) > 1) {
dummyFormula = dummyFormula + "(" + aChemFormula + ")";
} else {
dummyFormula = dummyFormula + aChemFormula;
@@ -1398,16 +1413,16 @@ public class Material {
// Clean up Internal Fluid Generation
final Materials n1 = MaterialUtils
- .getMaterial(this.getLocalizedName(), Utils.sanitizeString(this.getLocalizedName()));
+ .getMaterial(this.getLocalizedName(), Utils.sanitizeString(this.getLocalizedName()));
final Materials n2 = MaterialUtils
- .getMaterial(this.getUnlocalizedName(), Utils.sanitizeString(this.getUnlocalizedName()));
+ .getMaterial(this.getUnlocalizedName(), Utils.sanitizeString(this.getUnlocalizedName()));
FluidStack f1 = FluidUtils.getWildcardFluidStack(n1, 1);
FluidStack f2 = FluidUtils.getWildcardFluidStack(n2, 1);
FluidStack f3 = FluidUtils
- .getWildcardFluidStack(Utils.sanitizeString(this.getUnlocalizedName(), new char[] { '-', '_' }), 1);
+ .getWildcardFluidStack(Utils.sanitizeString(this.getUnlocalizedName(), new char[] { '-', '_' }), 1);
FluidStack f4 = FluidUtils
- .getWildcardFluidStack(Utils.sanitizeString(this.getLocalizedName(), new char[] { '-', '_' }), 1);
+ .getWildcardFluidStack(Utils.sanitizeString(this.getLocalizedName(), new char[] { '-', '_' }), 1);
if (f1 != null) {
aGTBaseFluid = f1.getFluid();
@@ -1422,11 +1437,11 @@ public class Material {
ItemStack aFullCell = ItemUtils.getItemStackOfAmountFromOreDictNoBroken("cell" + this.getUnlocalizedName(), 1);
ItemStack aFullCell2 = ItemUtils.getItemStackOfAmountFromOreDictNoBroken("cell" + this.getLocalizedName(), 1);
ItemStack aFullCell3 = ItemUtils.getItemStackOfAmountFromOreDictNoBroken(
- "cell" + Utils.sanitizeString(this.getUnlocalizedName(), new char[] { '-', '_' }),
- 1);
+ "cell" + Utils.sanitizeString(this.getUnlocalizedName(), new char[] { '-', '_' }),
+ 1);
ItemStack aFullCell4 = ItemUtils.getItemStackOfAmountFromOreDictNoBroken(
- "cell" + Utils.sanitizeString(this.getLocalizedName(), new char[] { '-', '_' }),
- 1);
+ "cell" + Utils.sanitizeString(this.getLocalizedName(), new char[] { '-', '_' }),
+ 1);
Logger.MATERIALS("Generating our own fluid.");
// Generate a Cell if we need to, but first validate all four searches are invalid
@@ -1461,33 +1476,29 @@ public class Material {
// This fluid does not exist at all, time to generate it.
if (this.materialState == MaterialState.SOLID) {
return FluidUtils.addGTFluid(
- this.getUnlocalizedName(),
- "Molten " + this.getLocalizedName(),
- this.RGBA,
- 4,
- this.getMeltingPointK(),
- aFullCell,
- ItemUtils.getEmptyCell(),
- 1000,
- this.vGenerateCells);
+ this.getUnlocalizedName(),
+ "Molten " + this.getLocalizedName(),
+ this.RGBA,
+ 4,
+ this.getMeltingPointK(),
+ aFullCell,
+ ItemUtils.getEmptyCell(),
+ 1000,
+ this.vGenerateCells);
} else if (this.materialState == MaterialState.LIQUID || this.materialState == MaterialState.PURE_LIQUID) {
return FluidUtils.addGTFluid(
- this.getUnlocalizedName(),
- this.getLocalizedName(),
- this.RGBA,
- 0,
- this.getMeltingPointK(),
- aFullCell,
- ItemUtils.getEmptyCell(),
- 1000,
- this.vGenerateCells);
+ this.getUnlocalizedName(),
+ this.getLocalizedName(),
+ this.RGBA,
+ 0,
+ this.getMeltingPointK(),
+ aFullCell,
+ ItemUtils.getEmptyCell(),
+ 1000,
+ this.vGenerateCells);
} else if (this.materialState == MaterialState.GAS || this.materialState == MaterialState.PURE_GAS) {
- return FluidUtils.generateGas(
- unlocalizedName,
- this.getLocalizedName(),
- getMeltingPointK(),
- getRGBA(),
- vGenerateCells);
+ return FluidUtils
+ .generateGas(unlocalizedName, this.getLocalizedName(), getMeltingPointK(), getRGBA(), vGenerateCells);
/*
* return FluidUtils.addGTFluid( this.getUnlocalizedName(), this.getLocalizedName()+" Gas", this.RGBA, 2,
* this.getMeltingPointK(), aFullCell, ItemUtils.getEmptyCell(), 1000, this.vGenerateCells);
@@ -1549,7 +1560,9 @@ public class Material {
try {
AutoMap<Integer> aDataSet = new AutoMap<>();
for (MaterialStack m : this.vMaterialInput) {
- aDataSet.put(m.getStackMaterial().getMeltingPointC());
+ aDataSet.put(
+ m.getStackMaterial()
+ .getMeltingPointC());
}
long aAverage = MathUtils.getIntAverage(aDataSet);
return MathUtils.safeInt(aAverage);
@@ -1564,7 +1577,9 @@ public class Material {
AutoMap<Integer> aDataSet = new AutoMap<>();
for (MaterialStack m : this.vMaterialInput) {
- aDataSet.put(m.getStackMaterial().getBoilingPointC());
+ aDataSet.put(
+ m.getStackMaterial()
+ .getBoilingPointC());
}
long aAverage = MathUtils.getIntAverage(aDataSet);
return MathUtils.safeInt(aAverage);
@@ -1579,7 +1594,9 @@ public class Material {
AutoMap<Long> aDataSet = new AutoMap<>();
for (MaterialStack m : this.vMaterialInput) {
- aDataSet.put(m.getStackMaterial().getProtons());
+ aDataSet.put(
+ m.getStackMaterial()
+ .getProtons());
}
long aAverage = MathUtils.getLongAverage(aDataSet);
return MathUtils.safeInt(aAverage);
@@ -1594,7 +1611,9 @@ public class Material {
AutoMap<Long> aDataSet = new AutoMap<>();
for (MaterialStack m : this.vMaterialInput) {
- aDataSet.put(m.getStackMaterial().getNeutrons());
+ aDataSet.put(
+ m.getStackMaterial()
+ .getNeutrons());
}
long aAverage = MathUtils.getLongAverage(aDataSet);
return MathUtils.safeInt(aAverage);
@@ -1642,12 +1661,12 @@ public class Material {
}
public static boolean registerComponentForMaterial(Material componentMaterial, ComponentTypes aPrefix,
- ItemStack aStack) {
+ ItemStack aStack) {
return registerComponentForMaterial(componentMaterial, aPrefix.getGtOrePrefix(), aStack);
}
public static boolean registerComponentForMaterial(Material componentMaterial, OrePrefixes aPrefix,
- ItemStack aStack) {
+ ItemStack aStack) {
if (componentMaterial == null) {
return false;
}
@@ -1661,10 +1680,10 @@ public class Material {
if (x == null) {
aMap.put(aKey, aStack);
Logger.MATERIALS(
- "Registering a material component. Item: [" + componentMaterial.getUnlocalizedName()
- + "] Map: ["
- + aKey
- + "]");
+ "Registering a material component. Item: [" + componentMaterial.getUnlocalizedName()
+ + "] Map: ["
+ + aKey
+ + "]");
Material.mComponentMap.put(componentMaterial.getUnlocalizedName(), aMap);
return true;
} else {
diff --git a/src/main/java/gtPlusPlus/core/material/MaterialGenerator.java b/src/main/java/gtPlusPlus/core/material/MaterialGenerator.java
index 3b7881616b..df2abd0acb 100644
--- a/src/main/java/gtPlusPlus/core/material/MaterialGenerator.java
+++ b/src/main/java/gtPlusPlus/core/material/MaterialGenerator.java
@@ -71,13 +71,13 @@ public class MaterialGenerator {
@Deprecated
public static boolean addFluidCannerRecipe(ItemStack aEmpty, ItemStack aFullContainer, FluidStack aFluidIn,
- FluidStack rFluidOut) {
+ FluidStack rFluidOut) {
return addFluidCannerRecipe(aEmpty, aFullContainer, aFluidIn, rFluidOut, null, null);
}
@Deprecated
public static boolean addFluidCannerRecipe(ItemStack aEmpty, ItemStack aFullContainer, FluidStack aFluidIn,
- FluidStack rFluidOut, Integer aTime, Integer aEu) {
+ FluidStack rFluidOut, Integer aTime, Integer aEu) {
RecipeGen_FluidCanning g = new RecipeGen_FluidCanning(false, aEmpty, aFullContainer, aFluidIn, null, null, 0);
if (g != null && g.valid()) {
@@ -95,7 +95,7 @@ public class MaterialGenerator {
}
public static boolean generate(final Material matInfo, final boolean generateEverything,
- final boolean generateBlastSmelterRecipes) {
+ final boolean generateBlastSmelterRecipes) {
try {
final String unlocalizedName = matInfo.getUnlocalizedName();
final String materialName = matInfo.getLocalizedName();
@@ -246,20 +246,20 @@ public class MaterialGenerator {
generateNuclearMaterial(matInfo, false, true, false, false, true);
if (generateDehydratorRecipe && matInfo.getFluid() != null && matInfo.getDust(0) != null) {
CORE.RA.addDehydratorRecipe(
- new ItemStack[] { CI.getNumberedCircuit(20) },
- matInfo.getFluidStack(144),
- null,
- new ItemStack[] { matInfo.getDust(1), },
- new int[] { 10000 },
- 10 * (matInfo.vVoltageMultiplier / 5), // Time in ticks
- matInfo.vVoltageMultiplier); // EU
+ new ItemStack[] { CI.getNumberedCircuit(20) },
+ matInfo.getFluidStack(144),
+ null,
+ new ItemStack[] { matInfo.getDust(1), },
+ new int[] { 10000 },
+ 10 * (matInfo.vVoltageMultiplier / 5), // Time in ticks
+ matInfo.vVoltageMultiplier); // EU
} else {
Logger.INFO(
- "Nuclear Dehydrator: Did not generate recipe for " + matInfo.getLocalizedName()
- + " | Null Fluid? "
- + (matInfo.getFluid() == null)
- + " | Null Dust? "
- + (matInfo.getDust(0) == null));
+ "Nuclear Dehydrator: Did not generate recipe for " + matInfo.getLocalizedName()
+ + " | Null Fluid? "
+ + (matInfo.getFluid() == null)
+ + " | Null Dust? "
+ + (matInfo.getDust(0) == null));
}
}
@@ -268,8 +268,8 @@ public class MaterialGenerator {
}
public static void generateNuclearMaterial(final Material matInfo, final boolean generateBlock,
- final boolean generateDusts, final boolean generateIngot, final boolean generatePlates,
- final boolean disableOptionalRecipes) {
+ final boolean generateDusts, final boolean generateIngot, final boolean generatePlates,
+ final boolean disableOptionalRecipes) {
try {
if (generateBlock) {
@@ -313,7 +313,7 @@ public class MaterialGenerator {
@SuppressWarnings("unused")
public static void generateOreMaterial(final Material matInfo, boolean generateOre, boolean generateDust,
- boolean generateSmallTinyDusts, short[] customRGB) {
+ boolean generateSmallTinyDusts, short[] customRGB) {
try {
if (matInfo == null) {
@@ -361,8 +361,8 @@ public class MaterialGenerator {
temp = new BaseItemRawOre(matInfo);
Logger.MATERIALS(
- "Generated all ore components for " + matInfo.getLocalizedName()
- + ", now generating processing recipes.");
+ "Generated all ore components for " + matInfo.getLocalizedName()
+ + ", now generating processing recipes.");
if (matInfo == FLUORIDES.FLUORITE) {
new RecipeGen_Fluorite(matInfo);
@@ -372,8 +372,7 @@ public class MaterialGenerator {
} catch (final Throwable t) {
Logger.MATERIALS(
- "[Error] " + (matInfo != null ? matInfo.getLocalizedName() : "Null Material")
- + " failed to generate.");
+ "[Error] " + (matInfo != null ? matInfo.getLocalizedName() : "Null Material") + " failed to generate.");
t.printStackTrace();
}
}
@@ -403,8 +402,8 @@ public class MaterialGenerator {
temp = new BaseItemRawOre(matInfo);
Logger.MATERIALS(
- "Generated all ore & base components for " + matInfo.getLocalizedName()
- + ", now generating processing recipes.");
+ "Generated all ore & base components for " + matInfo.getLocalizedName()
+ + ", now generating processing recipes.");
new RecipeGen_Ore(matInfo, true);
new RecipeGen_AlloySmelter(matInfo);
diff --git a/src/main/java/gtPlusPlus/core/material/MaterialStack.java b/src/main/java/gtPlusPlus/core/material/MaterialStack.java
index f0d99ef554..37070a35ec 100644
--- a/src/main/java/gtPlusPlus/core/material/MaterialStack.java
+++ b/src/main/java/gtPlusPlus/core/material/MaterialStack.java
@@ -30,7 +30,8 @@ public class MaterialStack {
final BigDecimal bd = new BigDecimal(val).setScale(2, RoundingMode.HALF_EVEN);
i = bd.doubleValue();
// Split the string into xx.xx
- final String[] arr = String.valueOf(i).split("\\.");
+ final String[] arr = String.valueOf(i)
+ .split("\\.");
final int[] intArr = new int[2];
intArr[0] = Integer.parseInt(arr[0]);
intArr[1] = Integer.parseInt(arr[1]);
@@ -58,7 +59,7 @@ public class MaterialStack {
public ItemStack getUnificatedDustStack(final int amount) {
if (this.stackMaterial.werkstoffID != 0) {
ItemStack stack = BW_Utils
- .getCorrespondingItemStack(OrePrefixes.dust, this.stackMaterial.werkstoffID, amount);
+ .getCorrespondingItemStack(OrePrefixes.dust, this.stackMaterial.werkstoffID, amount);
if (stack != null) {
return stack;
}
diff --git a/src/main/java/gtPlusPlus/core/material/NONMATERIAL.java b/src/main/java/gtPlusPlus/core/material/NONMATERIAL.java
index 4ef9303f79..5e084b84bf 100644
--- a/src/main/java/gtPlusPlus/core/material/NONMATERIAL.java
+++ b/src/main/java/gtPlusPlus/core/material/NONMATERIAL.java
@@ -29,11 +29,11 @@ public class NONMATERIAL {
// PTFE
public static final Material PTFE = MaterialUtils
- .generateMaterialFromGtENUM(MaterialUtils.getMaterial("Polytetrafluoroethylene", "Plastic"));
+ .generateMaterialFromGtENUM(MaterialUtils.getMaterial("Polytetrafluoroethylene", "Plastic"));
// Plastic
public static final Material PLASTIC = MaterialUtils
- .generateMaterialFromGtENUM(MaterialUtils.getMaterial("Plastic", "Rubber"));
+ .generateMaterialFromGtENUM(MaterialUtils.getMaterial("Plastic", "Rubber"));
static {
MEAT.setTextureSet(TextureSet.SET_ROUGH);
diff --git a/src/main/java/gtPlusPlus/core/material/ORES.java b/src/main/java/gtPlusPlus/core/material/ORES.java
index 12300af51a..5079639e38 100644
--- a/src/main/java/gtPlusPlus/core/material/ORES.java
+++ b/src/main/java/gtPlusPlus/core/material/ORES.java
@@ -7,771 +7,695 @@ import gtPlusPlus.core.material.state.MaterialState;
public final class ORES {
public static final Material AGARDITE_CD = new Material(
- "Agardite (Cd)", // Material Name
- MaterialState.ORE, // State
- TextureSet.SET_METALLIC, // Texture Set
- new short[] { 170, 188, 33, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { // (CdCa)Cu7(AsO2)4(O2H)5·3H2O
- new MaterialStack(ELEMENT.getInstance().CADMIUM, 1),
- new MaterialStack(ELEMENT.getInstance().CALCIUM, 1),
- new MaterialStack(ELEMENT.getInstance().COPPER, 7),
- new MaterialStack(ELEMENT.getInstance().ARSENIC, 4),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 21),
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 11) });
+ "Agardite (Cd)", // Material Name
+ MaterialState.ORE, // State
+ TextureSet.SET_METALLIC, // Texture Set
+ new short[] { 170, 188, 33, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { // (CdCa)Cu7(AsO2)4(O2H)5·3H2O
+ new MaterialStack(ELEMENT.getInstance().CADMIUM, 1), new MaterialStack(ELEMENT.getInstance().CALCIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().COPPER, 7), new MaterialStack(ELEMENT.getInstance().ARSENIC, 4),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 21),
+ new MaterialStack(ELEMENT.getInstance().HYDROGEN, 11) });
public static final Material AGARDITE_LA = new Material(
- "Agardite (La)", // Material Name
- MaterialState.ORE, // State
- TextureSet.SET_FINE, // Texture Set
- new short[] { 206, 232, 9, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { // (LaCa)Cu5(AsO6)2(OH)4·3H2O
- new MaterialStack(ELEMENT.getInstance().LANTHANUM, 1),
- new MaterialStack(ELEMENT.getInstance().CALCIUM, 1),
- new MaterialStack(ELEMENT.getInstance().COPPER, 5),
- new MaterialStack(ELEMENT.getInstance().ARSENIC, 2),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 19),
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 10) });
+ "Agardite (La)", // Material Name
+ MaterialState.ORE, // State
+ TextureSet.SET_FINE, // Texture Set
+ new short[] { 206, 232, 9, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { // (LaCa)Cu5(AsO6)2(OH)4·3H2O
+ new MaterialStack(ELEMENT.getInstance().LANTHANUM, 1), new MaterialStack(ELEMENT.getInstance().CALCIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().COPPER, 5), new MaterialStack(ELEMENT.getInstance().ARSENIC, 2),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 19),
+ new MaterialStack(ELEMENT.getInstance().HYDROGEN, 10) });
public static final Material AGARDITE_ND = new Material(
- "Agardite (Nd)", // Material Name
- MaterialState.ORE, // State
- TextureSet.SET_METALLIC, // Texture Set
- new short[] { 225, 244, 78, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { // (NdCa)Cu6(As3O3)2(O2H)6·3H2O
- new MaterialStack(ELEMENT.getInstance().NEODYMIUM, 1),
- new MaterialStack(ELEMENT.getInstance().CALCIUM, 1),
- new MaterialStack(ELEMENT.getInstance().COPPER, 6),
- new MaterialStack(ELEMENT.getInstance().ARSENIC, 6),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 21),
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 12) });
+ "Agardite (Nd)", // Material Name
+ MaterialState.ORE, // State
+ TextureSet.SET_METALLIC, // Texture Set
+ new short[] { 225, 244, 78, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { // (NdCa)Cu6(As3O3)2(O2H)6·3H2O
+ new MaterialStack(ELEMENT.getInstance().NEODYMIUM, 1), new MaterialStack(ELEMENT.getInstance().CALCIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().COPPER, 6), new MaterialStack(ELEMENT.getInstance().ARSENIC, 6),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 21),
+ new MaterialStack(ELEMENT.getInstance().HYDROGEN, 12) });
public static final Material AGARDITE_Y = new Material(
- "Agardite (Y)", // Material Name
- MaterialState.ORE, // State
- TextureSet.SET_METALLIC, // Texture Set
- new short[] { 210, 232, 44, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { // (YCa)Cu5(As2O4)3(OH)6·3H2O
- new MaterialStack(ELEMENT.getInstance().YTTRIUM, 1),
- new MaterialStack(ELEMENT.getInstance().CALCIUM, 1),
- new MaterialStack(ELEMENT.getInstance().COPPER, 5),
- new MaterialStack(ELEMENT.getInstance().ARSENIC, 6),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 21),
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 12) });
+ "Agardite (Y)", // Material Name
+ MaterialState.ORE, // State
+ TextureSet.SET_METALLIC, // Texture Set
+ new short[] { 210, 232, 44, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { // (YCa)Cu5(As2O4)3(OH)6·3H2O
+ new MaterialStack(ELEMENT.getInstance().YTTRIUM, 1), new MaterialStack(ELEMENT.getInstance().CALCIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().COPPER, 5), new MaterialStack(ELEMENT.getInstance().ARSENIC, 6),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 21),
+ new MaterialStack(ELEMENT.getInstance().HYDROGEN, 12) });
// Alburnite
// Ag8GeTe2S4
public static final Material ALBURNITE = new Material(
- "Alburnite", // Material Name
- MaterialState.ORE, // State
- TextureSet.SET_METALLIC, // Texture Set
- new short[] { 16, 5, 105, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- 0, // Radiation
- new MaterialStack[] { // Na3AlF6
- new MaterialStack(ELEMENT.getInstance().GOLD, 8),
- new MaterialStack(ELEMENT.getInstance().GERMANIUM, 1),
- new MaterialStack(ELEMENT.getInstance().TELLURIUM, 2),
- new MaterialStack(ELEMENT.getInstance().SULFUR, 4) });
+ "Alburnite", // Material Name
+ MaterialState.ORE, // State
+ TextureSet.SET_METALLIC, // Texture Set
+ new short[] { 16, 5, 105, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ 0, // Radiation
+ new MaterialStack[] { // Na3AlF6
+ new MaterialStack(ELEMENT.getInstance().GOLD, 8), new MaterialStack(ELEMENT.getInstance().GERMANIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().TELLURIUM, 2),
+ new MaterialStack(ELEMENT.getInstance().SULFUR, 4) });
public static final Material CERITE = new Material(
- "Cerite", // Material Name
- MaterialState.ORE, // State
- TextureSets.REFINED.get(), // Texture Set
- new short[] { 68, 13, 0, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { // (Ce,La,Ca)9(Mg,Fe+3)(SiO4)6(SiO3OH)(OH)3
- new MaterialStack(ELEMENT.getInstance().CERIUM, 9),
- new MaterialStack(ELEMENT.getInstance().LANTHANUM, 9),
- new MaterialStack(ELEMENT.getInstance().CALCIUM, 9),
- new MaterialStack(ELEMENT.getInstance().MAGNESIUM, 3),
- new MaterialStack(ELEMENT.getInstance().IRON, 3),
- new MaterialStack(ELEMENT.getInstance().SILICON, 7),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 20),
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 4) });
+ "Cerite", // Material Name
+ MaterialState.ORE, // State
+ TextureSets.REFINED.get(), // Texture Set
+ new short[] { 68, 13, 0, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { // (Ce,La,Ca)9(Mg,Fe+3)(SiO4)6(SiO3OH)(OH)3
+ new MaterialStack(ELEMENT.getInstance().CERIUM, 9), new MaterialStack(ELEMENT.getInstance().LANTHANUM, 9),
+ new MaterialStack(ELEMENT.getInstance().CALCIUM, 9), new MaterialStack(ELEMENT.getInstance().MAGNESIUM, 3),
+ new MaterialStack(ELEMENT.getInstance().IRON, 3), new MaterialStack(ELEMENT.getInstance().SILICON, 7),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 20),
+ new MaterialStack(ELEMENT.getInstance().HYDROGEN, 4) });
// Comancheite
// Hg55N24(NH2,OH)4(Cl,Br)34
public static final Material COMANCHEITE = new Material(
- "Comancheite", // Material Name
- MaterialState.ORE, // State
- TextureSets.REFINED.get(), // Texture Set
- new short[] { 65, 205, 105, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- 0, // Radiation
- new MaterialStack[] { // Na3AlF6
- new MaterialStack(ELEMENT.getInstance().MERCURY, 54 / 4),
- new MaterialStack(ELEMENT.getInstance().NITROGEN, 28 / 4),
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 12 / 4),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 8 / 4),
- new MaterialStack(ELEMENT.getInstance().CHLORINE, 34 / 4),
- new MaterialStack(ELEMENT.getInstance().BROMINE, 34 / 4) });
+ "Comancheite", // Material Name
+ MaterialState.ORE, // State
+ TextureSets.REFINED.get(), // Texture Set
+ new short[] { 65, 205, 105, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ 0, // Radiation
+ new MaterialStack[] { // Na3AlF6
+ new MaterialStack(ELEMENT.getInstance().MERCURY, 54 / 4),
+ new MaterialStack(ELEMENT.getInstance().NITROGEN, 28 / 4),
+ new MaterialStack(ELEMENT.getInstance().HYDROGEN, 12 / 4),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 8 / 4),
+ new MaterialStack(ELEMENT.getInstance().CHLORINE, 34 / 4),
+ new MaterialStack(ELEMENT.getInstance().BROMINE, 34 / 4) });
public static final Material CROCROITE = new Material(
- "Crocoite", // Material Name
- MaterialState.ORE, // State
- TextureSet.SET_GEM_VERTICAL, // Texture Set
- new short[] { 255, 143, 84, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().LEAD, 2),
- new MaterialStack(ELEMENT.getInstance().CHROMIUM, 2),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 3),
- new MaterialStack(ELEMENT.getInstance().CAESIUM, 1), });
+ "Crocoite", // Material Name
+ MaterialState.ORE, // State
+ TextureSet.SET_GEM_VERTICAL, // Texture Set
+ new short[] { 255, 143, 84, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().LEAD, 2),
+ new MaterialStack(ELEMENT.getInstance().CHROMIUM, 2), new MaterialStack(ELEMENT.getInstance().OXYGEN, 3),
+ new MaterialStack(ELEMENT.getInstance().CAESIUM, 1), });
public static final Material CRYOLITE = new Material(
- "Cryolite (F)", // Material Name
- MaterialState.ORE, // State
- TextureSet.SET_SHINY, // Texture Set
- new short[] { 205, 205, 255, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { // Na3AlF6
- new MaterialStack(ELEMENT.getInstance().SODIUM, 3),
- new MaterialStack(ELEMENT.getInstance().ALUMINIUM, 1),
- new MaterialStack(ELEMENT.getInstance().FLUORINE, 6) });
+ "Cryolite (F)", // Material Name
+ MaterialState.ORE, // State
+ TextureSet.SET_SHINY, // Texture Set
+ new short[] { 205, 205, 255, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { // Na3AlF6
+ new MaterialStack(ELEMENT.getInstance().SODIUM, 3), new MaterialStack(ELEMENT.getInstance().ALUMINIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().FLUORINE, 6) });
// Demicheleite-(Br)
// BiSBr
public static final Material DEMICHELEITE_BR = new Material(
- "Demicheleite (Br)", // Material Name
- MaterialState.ORE, // State
- TextureSet.SET_SHINY, // Texture Set
- new short[] { 165, 75, 75, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { // Na3AlF6
- new MaterialStack(ELEMENT.getInstance().BISMUTH, 13),
- new MaterialStack(ELEMENT.getInstance().SULFUR, 11),
- new MaterialStack(ELEMENT.getInstance().BROMINE, 1) });
+ "Demicheleite (Br)", // Material Name
+ MaterialState.ORE, // State
+ TextureSet.SET_SHINY, // Texture Set
+ new short[] { 165, 75, 75, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { // Na3AlF6
+ new MaterialStack(ELEMENT.getInstance().BISMUTH, 13), new MaterialStack(ELEMENT.getInstance().SULFUR, 11),
+ new MaterialStack(ELEMENT.getInstance().BROMINE, 1) });
public static final Material FLORENCITE = new Material(
- "Florencite", // Material Name
- MaterialState.ORE, // State
- TextureSet.SET_METALLIC, // Texture Set
- new short[] { 249, 249, 124, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { // SmAl3(PO4)2(OH)6
- new MaterialStack(ELEMENT.getInstance().SAMARIUM, 1),
- new MaterialStack(ELEMENT.getInstance().ALUMINIUM, 3),
- new MaterialStack(ELEMENT.getInstance().PHOSPHORUS, 1),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 10),
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 6) });
+ "Florencite", // Material Name
+ MaterialState.ORE, // State
+ TextureSet.SET_METALLIC, // Texture Set
+ new short[] { 249, 249, 124, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { // SmAl3(PO4)2(OH)6
+ new MaterialStack(ELEMENT.getInstance().SAMARIUM, 1), new MaterialStack(ELEMENT.getInstance().ALUMINIUM, 3),
+ new MaterialStack(ELEMENT.getInstance().PHOSPHORUS, 1), new MaterialStack(ELEMENT.getInstance().OXYGEN, 10),
+ new MaterialStack(ELEMENT.getInstance().HYDROGEN, 6) });
public static final Material FLUORCAPHITE = new Material(
- "Fluorcaphite", // Material Name
- MaterialState.ORE, // State
- TextureSet.SET_FINE, // Texture Set
- new short[] { 255, 255, 30, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { // (Ca,Sr,Ce,Na)5(PO4)3F
- new MaterialStack(ELEMENT.getInstance().CALCIUM, 5),
- new MaterialStack(MISC_MATERIALS.STRONTIUM_OXIDE, 5),
- new MaterialStack(ELEMENT.getInstance().CERIUM, 5),
- new MaterialStack(ELEMENT.getInstance().SODIUM, 5),
- new MaterialStack(ELEMENT.getInstance().PHOSPHORUS, 3),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 12),
- new MaterialStack(ELEMENT.getInstance().FLUORINE, 6), });
+ "Fluorcaphite", // Material Name
+ MaterialState.ORE, // State
+ TextureSet.SET_FINE, // Texture Set
+ new short[] { 255, 255, 30, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { // (Ca,Sr,Ce,Na)5(PO4)3F
+ new MaterialStack(ELEMENT.getInstance().CALCIUM, 5), new MaterialStack(MISC_MATERIALS.STRONTIUM_OXIDE, 5),
+ new MaterialStack(ELEMENT.getInstance().CERIUM, 5), new MaterialStack(ELEMENT.getInstance().SODIUM, 5),
+ new MaterialStack(ELEMENT.getInstance().PHOSPHORUS, 3), new MaterialStack(ELEMENT.getInstance().OXYGEN, 12),
+ new MaterialStack(ELEMENT.getInstance().FLUORINE, 6), });
// Gadolinite_Ce
public static final Material GADOLINITE_CE = new Material(
- "Gadolinite (Ce)", // Material Name
- MaterialState.ORE, // State
- TextureSets.REFINED.get(), // Texture Set
- new short[] { 15, 159, 59, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().CERIUM, 4),
- new MaterialStack(ELEMENT.getInstance().ERBIUM, 2),
- new MaterialStack(ELEMENT.getInstance().LANTHANUM, 2),
- new MaterialStack(ELEMENT.getInstance().NEODYMIUM, 2),
- new MaterialStack(ELEMENT.getInstance().YTTRIUM, 2),
- new MaterialStack(ELEMENT.getInstance().GADOLINIUM, 1),
- new MaterialStack(ELEMENT.getInstance().BERYLLIUM, 2),
- new MaterialStack(ELEMENT.getInstance().SILICON, 7),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 14), });
+ "Gadolinite (Ce)", // Material Name
+ MaterialState.ORE, // State
+ TextureSets.REFINED.get(), // Texture Set
+ new short[] { 15, 159, 59, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().CERIUM, 4),
+ new MaterialStack(ELEMENT.getInstance().ERBIUM, 2), new MaterialStack(ELEMENT.getInstance().LANTHANUM, 2),
+ new MaterialStack(ELEMENT.getInstance().NEODYMIUM, 2), new MaterialStack(ELEMENT.getInstance().YTTRIUM, 2),
+ new MaterialStack(ELEMENT.getInstance().GADOLINIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().BERYLLIUM, 2), new MaterialStack(ELEMENT.getInstance().SILICON, 7),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 14), });
// Gadolinite_Y
public static final Material GADOLINITE_Y = new Material(
- "Gadolinite (Y)", // Material Name
- MaterialState.ORE, // State
- TextureSets.REFINED.get(), // Texture Set
- new short[] { 35, 189, 99, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().CERIUM, 2),
- new MaterialStack(ELEMENT.getInstance().ERBIUM, 2),
- new MaterialStack(ELEMENT.getInstance().LANTHANUM, 2),
- new MaterialStack(ELEMENT.getInstance().NEODYMIUM, 2),
- new MaterialStack(ELEMENT.getInstance().YTTRIUM, 4),
- new MaterialStack(ELEMENT.getInstance().GADOLINIUM, 2),
- new MaterialStack(ELEMENT.getInstance().BERYLLIUM, 3),
- new MaterialStack(ELEMENT.getInstance().SILICON, 4),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 9), });
+ "Gadolinite (Y)", // Material Name
+ MaterialState.ORE, // State
+ TextureSets.REFINED.get(), // Texture Set
+ new short[] { 35, 189, 99, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().CERIUM, 2),
+ new MaterialStack(ELEMENT.getInstance().ERBIUM, 2), new MaterialStack(ELEMENT.getInstance().LANTHANUM, 2),
+ new MaterialStack(ELEMENT.getInstance().NEODYMIUM, 2), new MaterialStack(ELEMENT.getInstance().YTTRIUM, 4),
+ new MaterialStack(ELEMENT.getInstance().GADOLINIUM, 2),
+ new MaterialStack(ELEMENT.getInstance().BERYLLIUM, 3), new MaterialStack(ELEMENT.getInstance().SILICON, 4),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 9), });
public static final Material GEIKIELITE = new Material(
- "Geikielite", // Material Name
- MaterialState.ORE, // State
- TextureSets.GEM_A.get(), // Texture Set
- new short[] { 187, 193, 204, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().MAGNESIUM, 1),
- new MaterialStack(ELEMENT.getInstance().TITANIUM, 1),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 3) });
+ "Geikielite", // Material Name
+ MaterialState.ORE, // State
+ TextureSets.GEM_A.get(), // Texture Set
+ new short[] { 187, 193, 204, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().MAGNESIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().TITANIUM, 1), new MaterialStack(ELEMENT.getInstance().OXYGEN, 3) });
public static final Material GREENOCKITE = new Material(
- "Greenockite", // Material Name
- MaterialState.ORE, // State
- TextureSets.GEM_A.get(), // Texture Set
- new short[] { 110, 193, 25, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().CADMIUM, 1),
- new MaterialStack(ELEMENT.getInstance().SULFUR, 1), });
+ "Greenockite", // Material Name
+ MaterialState.ORE, // State
+ TextureSets.GEM_A.get(), // Texture Set
+ new short[] { 110, 193, 25, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().CADMIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().SULFUR, 1), });
public static final Material HIBONITE = new Material(
- "Hibonite", // Material Name
- MaterialState.ORE, // State
- TextureSet.SET_METALLIC, // Texture Set
- new short[] { 58, 31, 0, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { // ((Ca,Ce)(Al,Ti,Mg)12O19)
- new MaterialStack(ELEMENT.getInstance().CALCIUM, 1),
- new MaterialStack(ELEMENT.getInstance().CERIUM, 1),
- new MaterialStack(ELEMENT.getInstance().ALUMINIUM, 12),
- new MaterialStack(ELEMENT.getInstance().TITANIUM, 12),
- new MaterialStack(ELEMENT.getInstance().MAGNESIUM, 12),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 19), });
+ "Hibonite", // Material Name
+ MaterialState.ORE, // State
+ TextureSet.SET_METALLIC, // Texture Set
+ new short[] { 58, 31, 0, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { // ((Ca,Ce)(Al,Ti,Mg)12O19)
+ new MaterialStack(ELEMENT.getInstance().CALCIUM, 1), new MaterialStack(ELEMENT.getInstance().CERIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().ALUMINIUM, 12),
+ new MaterialStack(ELEMENT.getInstance().TITANIUM, 12),
+ new MaterialStack(ELEMENT.getInstance().MAGNESIUM, 12),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 19), });
// Honeaite
// Au3TlTe2
public static final Material HONEAITE = new Material(
- "Honeaite", // Material Name
- MaterialState.ORE, // State
- TextureSet.SET_FINE, // Texture Set
- new short[] { 165, 165, 5, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- 0, // Radiation
- new MaterialStack[] { // Na3AlF6
- new MaterialStack(ELEMENT.getInstance().GOLD, 3),
- new MaterialStack(ELEMENT.getInstance().THALLIUM, 1),
- new MaterialStack(ELEMENT.getInstance().TELLURIUM, 2) });
+ "Honeaite", // Material Name
+ MaterialState.ORE, // State
+ TextureSet.SET_FINE, // Texture Set
+ new short[] { 165, 165, 5, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ 0, // Radiation
+ new MaterialStack[] { // Na3AlF6
+ new MaterialStack(ELEMENT.getInstance().GOLD, 3), new MaterialStack(ELEMENT.getInstance().THALLIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().TELLURIUM, 2) });
// Irarsite
// (Ir,Ru,Rh,Pt)AsS
public static final Material IRARSITE = new Material(
- "Irarsite", // Material Name
- MaterialState.ORE, // State
- TextureSets.ENRICHED.get(), // Texture Set
- new short[] { 125, 105, 105, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- 0, // Radiation
- new MaterialStack[] { // Na3AlF6
- new MaterialStack(ELEMENT.getInstance().IRIDIUM, 1),
- new MaterialStack(ELEMENT.getInstance().RUTHENIUM, 1),
- new MaterialStack(ELEMENT.getInstance().RHODIUM, 1),
- new MaterialStack(ELEMENT.getInstance().PLATINUM, 1),
- new MaterialStack(ELEMENT.getInstance().ARSENIC, 1),
- new MaterialStack(ELEMENT.getInstance().SULFUR, 1),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 1) });
+ "Irarsite", // Material Name
+ MaterialState.ORE, // State
+ TextureSets.ENRICHED.get(), // Texture Set
+ new short[] { 125, 105, 105, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ 0, // Radiation
+ new MaterialStack[] { // Na3AlF6
+ new MaterialStack(ELEMENT.getInstance().IRIDIUM, 1), new MaterialStack(ELEMENT.getInstance().RUTHENIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().RHODIUM, 1), new MaterialStack(ELEMENT.getInstance().PLATINUM, 1),
+ new MaterialStack(ELEMENT.getInstance().ARSENIC, 1), new MaterialStack(ELEMENT.getInstance().SULFUR, 1),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 1) });
// Kashinite
// (Ir,Rh)2S3
public static final Material KASHINITE = new Material(
- "Kashinite", // Material Name
- MaterialState.ORE, // State
- TextureSet.SET_SHINY, // Texture Set
- new short[] { 75, 105, 75, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- 0, // Radiation
- new MaterialStack[] { // Na3AlF6
- new MaterialStack(ELEMENT.getInstance().IRIDIUM, 2),
- new MaterialStack(ELEMENT.getInstance().RHODIUM, 2),
- new MaterialStack(ELEMENT.getInstance().SULFUR, 3) });
+ "Kashinite", // Material Name
+ MaterialState.ORE, // State
+ TextureSet.SET_SHINY, // Texture Set
+ new short[] { 75, 105, 75, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ 0, // Radiation
+ new MaterialStack[] { // Na3AlF6
+ new MaterialStack(ELEMENT.getInstance().IRIDIUM, 2), new MaterialStack(ELEMENT.getInstance().RHODIUM, 2),
+ new MaterialStack(ELEMENT.getInstance().SULFUR, 3) });
// Tl(Cl,Br)
public static final Material LAFOSSAITE = new Material(
- "Lafossaite", // Material Name
- MaterialState.ORE, // State
- TextureSets.REFINED.get(), // Texture Set
- new short[] { 165, 105, 205, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { // Na3AlF6
- new MaterialStack(ELEMENT.getInstance().CHLORINE, 1),
- new MaterialStack(ELEMENT.getInstance().BROMINE, 1),
- new MaterialStack(ELEMENT.getInstance().THALLIUM, 1) });
+ "Lafossaite", // Material Name
+ MaterialState.ORE, // State
+ TextureSets.REFINED.get(), // Texture Set
+ new short[] { 165, 105, 205, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { // Na3AlF6
+ new MaterialStack(ELEMENT.getInstance().CHLORINE, 1), new MaterialStack(ELEMENT.getInstance().BROMINE, 1),
+ new MaterialStack(ELEMENT.getInstance().THALLIUM, 1) });
public static final Material LANTHANITE_CE = new Material(
- "Lanthanite (Ce)", // Material Name
- MaterialState.ORE, // State
- TextureSet.SET_METALLIC, // Texture Set
- new short[] { 186, 113, 179, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { // (Ce)2(CO3)3·8(H2O)
- new MaterialStack(ELEMENT.getInstance().CERIUM, 2),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 3),
- new MaterialStack(ELEMENT.getInstance().CALCIUM, 3),
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 2),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 1), });
+ "Lanthanite (Ce)", // Material Name
+ MaterialState.ORE, // State
+ TextureSet.SET_METALLIC, // Texture Set
+ new short[] { 186, 113, 179, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { // (Ce)2(CO3)3·8(H2O)
+ new MaterialStack(ELEMENT.getInstance().CERIUM, 2), new MaterialStack(ELEMENT.getInstance().OXYGEN, 3),
+ new MaterialStack(ELEMENT.getInstance().CALCIUM, 3), new MaterialStack(ELEMENT.getInstance().HYDROGEN, 2),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 1), });
public static final Material LANTHANITE_LA = new Material(
- "Lanthanite (La)", // Material Name
- MaterialState.ORE, // State
- TextureSets.REFINED.get(), // Texture Set
- new short[] { 219, 160, 214, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { // (La)2(CO3)3·8(H2O)
- new MaterialStack(ELEMENT.getInstance().LANTHANUM, 2),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 3),
- new MaterialStack(ELEMENT.getInstance().CALCIUM, 3),
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 2),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 1), });
+ "Lanthanite (La)", // Material Name
+ MaterialState.ORE, // State
+ TextureSets.REFINED.get(), // Texture Set
+ new short[] { 219, 160, 214, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { // (La)2(CO3)3·8(H2O)
+ new MaterialStack(ELEMENT.getInstance().LANTHANUM, 2), new MaterialStack(ELEMENT.getInstance().OXYGEN, 3),
+ new MaterialStack(ELEMENT.getInstance().CALCIUM, 3), new MaterialStack(ELEMENT.getInstance().HYDROGEN, 2),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 1), });
public static final Material LANTHANITE_ND = new Material(
- "Lanthanite (Nd)", // Material Name
- MaterialState.ORE, // State
- TextureSet.SET_METALLIC, // Texture Set
- new short[] { 153, 76, 145, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { // (Nd)2(CO3)3·8(H2O)
- new MaterialStack(ELEMENT.getInstance().NEODYMIUM, 2),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 3),
- new MaterialStack(ELEMENT.getInstance().CALCIUM, 3),
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 2),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 1), });
+ "Lanthanite (Nd)", // Material Name
+ MaterialState.ORE, // State
+ TextureSet.SET_METALLIC, // Texture Set
+ new short[] { 153, 76, 145, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { // (Nd)2(CO3)3·8(H2O)
+ new MaterialStack(ELEMENT.getInstance().NEODYMIUM, 2), new MaterialStack(ELEMENT.getInstance().OXYGEN, 3),
+ new MaterialStack(ELEMENT.getInstance().CALCIUM, 3), new MaterialStack(ELEMENT.getInstance().HYDROGEN, 2),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 1), });
// Iodine Source
public static final Material LAUTARITE = new Material(
- "Lautarite", // Material Name
- MaterialState.ORE, // State
- TextureSet.SET_FINE, // Texture Set
- new short[] { 165, 105, 205, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { // Na3AlF6
- new MaterialStack(ELEMENT.getInstance().CALCIUM, 1),
- new MaterialStack(ELEMENT.getInstance().IODINE, 2),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 6) });
+ "Lautarite", // Material Name
+ MaterialState.ORE, // State
+ TextureSet.SET_FINE, // Texture Set
+ new short[] { 165, 105, 205, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { // Na3AlF6
+ new MaterialStack(ELEMENT.getInstance().CALCIUM, 1), new MaterialStack(ELEMENT.getInstance().IODINE, 2),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 6) });
public static final Material LEPERSONNITE = new Material(
- "Lepersonnite", // Material Name
- MaterialState.ORE, // State
- TextureSet.SET_EMERALD, // Texture Set
- new short[] { 175, 175, 20, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().CALCIUM, 1),
- new MaterialStack(ELEMENT.getInstance().YTTERBIUM, 3),
- new MaterialStack(ELEMENT.getInstance().GADOLINIUM, 2),
- new MaterialStack(ELEMENT.getInstance().DYSPROSIUM, 2),
- new MaterialStack(ELEMENT.getInstance().URANIUM235, 2),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 29),
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 24) });
+ "Lepersonnite", // Material Name
+ MaterialState.ORE, // State
+ TextureSet.SET_EMERALD, // Texture Set
+ new short[] { 175, 175, 20, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().CALCIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().YTTERBIUM, 3),
+ new MaterialStack(ELEMENT.getInstance().GADOLINIUM, 2),
+ new MaterialStack(ELEMENT.getInstance().DYSPROSIUM, 2),
+ new MaterialStack(ELEMENT.getInstance().URANIUM235, 2), new MaterialStack(ELEMENT.getInstance().OXYGEN, 29),
+ new MaterialStack(ELEMENT.getInstance().HYDROGEN, 24) });
// Miessiite
// Pd11Te2Se2
public static final Material MIESSIITE = new Material(
- "Miessiite", // Material Name
- MaterialState.ORE, // State
- TextureSet.SET_FINE, // Texture Set
- new short[] { 75, 75, 75, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- 0, // Radiation
- new MaterialStack[] { // Na3AlF6
- new MaterialStack(ELEMENT.getInstance().PALLADIUM, 11),
- new MaterialStack(ELEMENT.getInstance().TELLURIUM, 2),
- new MaterialStack(ELEMENT.getInstance().SELENIUM, 2) });
+ "Miessiite", // Material Name
+ MaterialState.ORE, // State
+ TextureSet.SET_FINE, // Texture Set
+ new short[] { 75, 75, 75, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ 0, // Radiation
+ new MaterialStack[] { // Na3AlF6
+ new MaterialStack(ELEMENT.getInstance().PALLADIUM, 11),
+ new MaterialStack(ELEMENT.getInstance().TELLURIUM, 2),
+ new MaterialStack(ELEMENT.getInstance().SELENIUM, 2) });
public static final Material NICHROMITE = new Material(
- "Nichromite", // Material Name
- MaterialState.ORE, // State
- TextureSet.SET_METALLIC, // Texture Set
- new short[] { 22, 19, 19, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().NICKEL, 1),
- new MaterialStack(ELEMENT.getInstance().COBALT, 1),
- new MaterialStack(ELEMENT.getInstance().IRON, 3),
- new MaterialStack(ELEMENT.getInstance().ALUMINIUM, 2),
- new MaterialStack(ELEMENT.getInstance().CHROMIUM, 2),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 8) });
+ "Nichromite", // Material Name
+ MaterialState.ORE, // State
+ TextureSet.SET_METALLIC, // Texture Set
+ new short[] { 22, 19, 19, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().NICKEL, 1),
+ new MaterialStack(ELEMENT.getInstance().COBALT, 1), new MaterialStack(ELEMENT.getInstance().IRON, 3),
+ new MaterialStack(ELEMENT.getInstance().ALUMINIUM, 2), new MaterialStack(ELEMENT.getInstance().CHROMIUM, 2),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 8) });
// Perroudite
// Hg5Ag4S5(I,Br)2Cl2
public static final Material PERROUDITE = new Material(
- "Perroudite", // Material Name
- MaterialState.ORE, // State
- TextureSet.SET_METALLIC, // Texture Set
- new short[] { 77, 165, 174, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- 0, // Radiation
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().SULFUR, 5),
- new MaterialStack(ELEMENT.getInstance().SILVER, 4),
- new MaterialStack(ELEMENT.getInstance().IODINE, 2),
- new MaterialStack(ELEMENT.getInstance().MERCURY, 5),
- new MaterialStack(ELEMENT.getInstance().BROMINE, 2),
- new MaterialStack(ELEMENT.getInstance().CHLORINE, 2) });
+ "Perroudite", // Material Name
+ MaterialState.ORE, // State
+ TextureSet.SET_METALLIC, // Texture Set
+ new short[] { 77, 165, 174, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ 0, // Radiation
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().SULFUR, 5),
+ new MaterialStack(ELEMENT.getInstance().SILVER, 4), new MaterialStack(ELEMENT.getInstance().IODINE, 2),
+ new MaterialStack(ELEMENT.getInstance().MERCURY, 5), new MaterialStack(ELEMENT.getInstance().BROMINE, 2),
+ new MaterialStack(ELEMENT.getInstance().CHLORINE, 2) });
public static final Material POLYCRASE = new Material(
- "Polycrase", // Material Name
- MaterialState.ORE, // State
- TextureSet.SET_ROUGH, // Texture Set
- new short[] { 51, 0, 11, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().YTTRIUM, 1),
- new MaterialStack(ELEMENT.getInstance().CALCIUM, 1),
- new MaterialStack(ELEMENT.getInstance().CERIUM, 1),
- new MaterialStack(ELEMENT.getInstance().URANIUM235, 1),
- new MaterialStack(ELEMENT.getInstance().THORIUM, 1),
- new MaterialStack(ELEMENT.getInstance().TITANIUM, 2),
- new MaterialStack(ELEMENT.getInstance().NIOBIUM, 2),
- new MaterialStack(ELEMENT.getInstance().TANTALUM, 2),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 6) });
+ "Polycrase", // Material Name
+ MaterialState.ORE, // State
+ TextureSet.SET_ROUGH, // Texture Set
+ new short[] { 51, 0, 11, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().YTTRIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().CALCIUM, 1), new MaterialStack(ELEMENT.getInstance().CERIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().URANIUM235, 1), new MaterialStack(ELEMENT.getInstance().THORIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().TITANIUM, 2), new MaterialStack(ELEMENT.getInstance().NIOBIUM, 2),
+ new MaterialStack(ELEMENT.getInstance().TANTALUM, 2), new MaterialStack(ELEMENT.getInstance().OXYGEN, 6) });
// Radiobarite
// Radium, Barium, Barite?
public static final Material RADIOBARITE = new Material(
- "Barite (Rd)", // Material Name
- MaterialState.ORE, // State
- TextureSet.SET_FLINT, // Texture Set
- new short[] { 205, 205, 205, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- 0, // Radiation
- new MaterialStack[] { // Na3AlF6
- new MaterialStack(ELEMENT.getInstance().BARIUM, 32),
- new MaterialStack(ELEMENT.getInstance().RADIUM, 1),
- new MaterialStack(ELEMENT.getInstance().SULFUR, 16),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 15) });
+ "Barite (Rd)", // Material Name
+ MaterialState.ORE, // State
+ TextureSet.SET_FLINT, // Texture Set
+ new short[] { 205, 205, 205, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ 0, // Radiation
+ new MaterialStack[] { // Na3AlF6
+ new MaterialStack(ELEMENT.getInstance().BARIUM, 32), new MaterialStack(ELEMENT.getInstance().RADIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().SULFUR, 16), new MaterialStack(ELEMENT.getInstance().OXYGEN, 15) });
// Samarskite_Y
public static final Material SAMARSKITE_Y = new Material(
- "Samarskite (Y)", // Material Name
- MaterialState.ORE, // State
- TextureSets.ENRICHED.get(), // Texture Set
- new short[] { 65, 163, 164, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().YTTRIUM, 2), // Y not YT/YB
- new MaterialStack(ELEMENT.getInstance().IRON, 10),
- new MaterialStack(ELEMENT.getInstance().URANIUM235, 2),
- new MaterialStack(ELEMENT.getInstance().THORIUM, 3),
- new MaterialStack(ELEMENT.getInstance().NIOBIUM, 2),
- new MaterialStack(ELEMENT.getInstance().TANTALUM, 3) });
+ "Samarskite (Y)", // Material Name
+ MaterialState.ORE, // State
+ TextureSets.ENRICHED.get(), // Texture Set
+ new short[] { 65, 163, 164, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().YTTRIUM, 2), // Y not YT/YB
+ new MaterialStack(ELEMENT.getInstance().IRON, 10), new MaterialStack(ELEMENT.getInstance().URANIUM235, 2),
+ new MaterialStack(ELEMENT.getInstance().THORIUM, 3), new MaterialStack(ELEMENT.getInstance().NIOBIUM, 2),
+ new MaterialStack(ELEMENT.getInstance().TANTALUM, 3) });
// Samarskite_YB
public static final Material SAMARSKITE_YB = new Material(
- "Samarskite (Yb)", // Material Name
- MaterialState.ORE, // State
- TextureSets.ENRICHED.get(), // Texture Set
- new short[] { 95, 193, 194, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().YTTERBIUM, 2), // Y not YT/YB
- new MaterialStack(ELEMENT.getInstance().IRON, 9),
- new MaterialStack(ELEMENT.getInstance().URANIUM235, 3),
- new MaterialStack(ELEMENT.getInstance().THORIUM, 2),
- new MaterialStack(ELEMENT.getInstance().NIOBIUM, 3),
- new MaterialStack(ELEMENT.getInstance().TANTALUM, 2) });
+ "Samarskite (Yb)", // Material Name
+ MaterialState.ORE, // State
+ TextureSets.ENRICHED.get(), // Texture Set
+ new short[] { 95, 193, 194, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().YTTERBIUM, 2), // Y not YT/YB
+ new MaterialStack(ELEMENT.getInstance().IRON, 9), new MaterialStack(ELEMENT.getInstance().URANIUM235, 3),
+ new MaterialStack(ELEMENT.getInstance().THORIUM, 2), new MaterialStack(ELEMENT.getInstance().NIOBIUM, 3),
+ new MaterialStack(ELEMENT.getInstance().TANTALUM, 2) });
public static final Material TITANITE = new Material(
- "Titanite", // Material Name
- MaterialState.ORE, // State
- TextureSet.SET_METALLIC, // Texture Set
- new short[] { 184, 198, 105, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().CALCIUM, 2),
- new MaterialStack(ELEMENT.getInstance().TITANIUM, 2),
- new MaterialStack(ELEMENT.getInstance().SILICON, 2),
- new MaterialStack(ELEMENT.getInstance().THORIUM, 1),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 10) });
+ "Titanite", // Material Name
+ MaterialState.ORE, // State
+ TextureSet.SET_METALLIC, // Texture Set
+ new short[] { 184, 198, 105, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().CALCIUM, 2),
+ new MaterialStack(ELEMENT.getInstance().TITANIUM, 2), new MaterialStack(ELEMENT.getInstance().SILICON, 2),
+ new MaterialStack(ELEMENT.getInstance().THORIUM, 1), new MaterialStack(ELEMENT.getInstance().OXYGEN, 10) });
public static final Material XENOTIME = new Material(
- "Xenotime", // Material Name
- MaterialState.ORE, // State
- TextureSet.SET_OPAL, // Texture Set
- new short[] { 235, 89, 199, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().YTTRIUM, 2),
- new MaterialStack(ELEMENT.getInstance().YTTERBIUM, 2),
- new MaterialStack(ELEMENT.getInstance().ERBIUM, 2),
- new MaterialStack(ELEMENT.getInstance().EUROPIUM, 1),
- new MaterialStack(ELEMENT.getInstance().PHOSPHORUS, 2),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 8) });
+ "Xenotime", // Material Name
+ MaterialState.ORE, // State
+ TextureSet.SET_OPAL, // Texture Set
+ new short[] { 235, 89, 199, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().YTTRIUM, 2),
+ new MaterialStack(ELEMENT.getInstance().YTTERBIUM, 2), new MaterialStack(ELEMENT.getInstance().ERBIUM, 2),
+ new MaterialStack(ELEMENT.getInstance().EUROPIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().PHOSPHORUS, 2),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 8) });
public static final Material YTTRIAITE = new Material( // TODO
- "Yttriaite", // Material Name
- MaterialState.ORE, // State
- TextureSet.SET_METALLIC, // Texture Set
- new short[] { 255, 143, 84, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().YTTRIUM, 1), // Y not YT/YB
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 3),
- new MaterialStack(ELEMENT.getInstance().IRON, 4), new MaterialStack(ELEMENT.getInstance().TIN, 1),
- new MaterialStack(ELEMENT.getInstance().NITROGEN, 2) });
+ "Yttriaite", // Material Name
+ MaterialState.ORE, // State
+ TextureSet.SET_METALLIC, // Texture Set
+ new short[] { 255, 143, 84, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().YTTRIUM, 1), // Y not YT/YB
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 3), new MaterialStack(ELEMENT.getInstance().IRON, 4),
+ new MaterialStack(ELEMENT.getInstance().TIN, 1), new MaterialStack(ELEMENT.getInstance().NITROGEN, 2) });
public static final Material YTTRIALITE = new Material(
- "Yttrialite", // Material Name
- MaterialState.ORE, // State
- TextureSet.SET_RUBY, // Texture Set
- new short[] { 35, 189, 99, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().YTTRIUM, 2),
- new MaterialStack(ELEMENT.getInstance().THORIUM, 2),
- new MaterialStack(ELEMENT.getInstance().SILICON, 2),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 7), });
+ "Yttrialite", // Material Name
+ MaterialState.ORE, // State
+ TextureSet.SET_RUBY, // Texture Set
+ new short[] { 35, 189, 99, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().YTTRIUM, 2),
+ new MaterialStack(ELEMENT.getInstance().THORIUM, 2), new MaterialStack(ELEMENT.getInstance().SILICON, 2),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 7), });
public static final Material YTTROCERITE = new Material(
- "Yttrocerite", // Material Name
- MaterialState.ORE, // State
- TextureSet.SET_DIAMOND, // Texture Set
- new short[] { 35, 19, 199, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().CERIUM, 1),
- new MaterialStack(ELEMENT.getInstance().CALCIUM, 1),
- new MaterialStack(ELEMENT.getInstance().FLUORINE, 5),
- new MaterialStack(ELEMENT.getInstance().YTTRIUM, 1), });
+ "Yttrocerite", // Material Name
+ MaterialState.ORE, // State
+ TextureSet.SET_DIAMOND, // Texture Set
+ new short[] { 35, 19, 199, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().CERIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().CALCIUM, 1), new MaterialStack(ELEMENT.getInstance().FLUORINE, 5),
+ new MaterialStack(ELEMENT.getInstance().YTTRIUM, 1), });
public static final Material ZIMBABWEITE = new Material(
- "Zimbabweite", // Material Name
- MaterialState.ORE, // State
- TextureSet.SET_FINE, // Texture Set
- new short[] { 193, 187, 131, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().CALCIUM, 2),
- new MaterialStack(ELEMENT.getInstance().POTASSIUM, 2),
- new MaterialStack(ELEMENT.getInstance().LEAD, 1),
- new MaterialStack(ELEMENT.getInstance().ARSENIC, 4),
- new MaterialStack(ELEMENT.getInstance().NIOBIUM, 4),
- new MaterialStack(ELEMENT.getInstance().TANTALUM, 4),
- new MaterialStack(ELEMENT.getInstance().TITANIUM, 4),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 18) });
+ "Zimbabweite", // Material Name
+ MaterialState.ORE, // State
+ TextureSet.SET_FINE, // Texture Set
+ new short[] { 193, 187, 131, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().CALCIUM, 2),
+ new MaterialStack(ELEMENT.getInstance().POTASSIUM, 2), new MaterialStack(ELEMENT.getInstance().LEAD, 1),
+ new MaterialStack(ELEMENT.getInstance().ARSENIC, 4), new MaterialStack(ELEMENT.getInstance().NIOBIUM, 4),
+ new MaterialStack(ELEMENT.getInstance().TANTALUM, 4), new MaterialStack(ELEMENT.getInstance().TITANIUM, 4),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 18) });
public static final Material ZIRCON = new Material(
- "Zircon", // Material Name
- MaterialState.ORE, // State
- TextureSets.GEM_A.get(), // Texture Set
- new short[] { 195, 19, 19, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().ZIRCONIUM, 1),
- new MaterialStack(ELEMENT.getInstance().SILICON, 1),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 4), });
+ "Zircon", // Material Name
+ MaterialState.ORE, // State
+ TextureSets.GEM_A.get(), // Texture Set
+ new short[] { 195, 19, 19, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().ZIRCONIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().SILICON, 1), new MaterialStack(ELEMENT.getInstance().OXYGEN, 4), });
public static final Material ZIRCONILITE = new Material(
- "Zirconolite", // Material Name
- MaterialState.ORE, // State
- TextureSet.SET_FINE, // Texture Set
- new short[] { 45, 26, 0, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().CALCIUM, 2),
- new MaterialStack(ELEMENT.getInstance().ZIRCONIUM, 2),
- new MaterialStack(ELEMENT.getInstance().TITANIUM, 4),
- new MaterialStack(ELEMENT.getInstance().CERIUM, 1),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 14) });
+ "Zirconolite", // Material Name
+ MaterialState.ORE, // State
+ TextureSet.SET_FINE, // Texture Set
+ new short[] { 45, 26, 0, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().CALCIUM, 2),
+ new MaterialStack(ELEMENT.getInstance().ZIRCONIUM, 2), new MaterialStack(ELEMENT.getInstance().TITANIUM, 4),
+ new MaterialStack(ELEMENT.getInstance().CERIUM, 1), new MaterialStack(ELEMENT.getInstance().OXYGEN, 14) });
public static final Material ZIRCOPHYLLITE = new Material(
- "Zircophyllite", // Material Name
- MaterialState.ORE, // State
- TextureSets.REFINED.get(), // Texture Set
- new short[] { 30, 0, 6, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().POTASSIUM, 3),
- new MaterialStack(ELEMENT.getInstance().SODIUM, 3),
- new MaterialStack(ELEMENT.getInstance().MANGANESE, 7),
- new MaterialStack(ELEMENT.getInstance().IRON, 7),
- new MaterialStack(ELEMENT.getInstance().ZIRCONIUM, 2),
- new MaterialStack(ELEMENT.getInstance().TITANIUM, 2),
- new MaterialStack(ELEMENT.getInstance().NIOBIUM, 2),
- new MaterialStack(ELEMENT.getInstance().SILICON, 8),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 13),
- new MaterialStack(ELEMENT.getInstance().FLUORINE, 7), });
+ "Zircophyllite", // Material Name
+ MaterialState.ORE, // State
+ TextureSets.REFINED.get(), // Texture Set
+ new short[] { 30, 0, 6, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().POTASSIUM, 3),
+ new MaterialStack(ELEMENT.getInstance().SODIUM, 3), new MaterialStack(ELEMENT.getInstance().MANGANESE, 7),
+ new MaterialStack(ELEMENT.getInstance().IRON, 7), new MaterialStack(ELEMENT.getInstance().ZIRCONIUM, 2),
+ new MaterialStack(ELEMENT.getInstance().TITANIUM, 2), new MaterialStack(ELEMENT.getInstance().NIOBIUM, 2),
+ new MaterialStack(ELEMENT.getInstance().SILICON, 8), new MaterialStack(ELEMENT.getInstance().OXYGEN, 13),
+ new MaterialStack(ELEMENT.getInstance().FLUORINE, 7), });
public static final Material ZIRKELITE = new Material(
- "Zirkelite", // Material Name
- MaterialState.ORE, // State
- TextureSets.GEM_A.get(), // Texture Set
- new short[] { 229, 208, 48, 0 }, // Material Colour
- -1,
- -1,
- -1,
- -1,
- -1, // Radiation
- new MaterialStack[] { // (Ca,Th,Ce)Zr(Ti,Nb)2O7
- new MaterialStack(ELEMENT.getInstance().CALCIUM, 1),
- new MaterialStack(ELEMENT.getInstance().THORIUM, 1),
- new MaterialStack(ELEMENT.getInstance().CERIUM, 1),
- new MaterialStack(ELEMENT.getInstance().ZIRCONIUM, 1),
- new MaterialStack(ELEMENT.getInstance().TITANIUM, 2),
- new MaterialStack(ELEMENT.getInstance().NIOBIUM, 2),
- new MaterialStack(ELEMENT.getInstance().OXYGEN, 7) });
+ "Zirkelite", // Material Name
+ MaterialState.ORE, // State
+ TextureSets.GEM_A.get(), // Texture Set
+ new short[] { 229, 208, 48, 0 }, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ -1, // Radiation
+ new MaterialStack[] { // (Ca,Th,Ce)Zr(Ti,Nb)2O7
+ new MaterialStack(ELEMENT.getInstance().CALCIUM, 1), new MaterialStack(ELEMENT.getInstance().THORIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().CERIUM, 1), new MaterialStack(ELEMENT.getInstance().ZIRCONIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().TITANIUM, 2), new MaterialStack(ELEMENT.getInstance().NIOBIUM, 2),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN, 7) });
public static final Material DEEP_EARTH_REACTOR_FUEL_DEPOSIT = new Material(
- "Radioactive Mineral Mix", // Material Name
- MaterialState.ORE, // State
- TextureSets.NUCLEAR.get(), // Texture Set
- null, // Material Colour
- -1,
- -1,
- -1,
- -1,
- 4, // Radiation
- new MaterialStack[] { // Na3AlF6
- new MaterialStack(ELEMENT.getInstance().RADON, 2),
- new MaterialStack(ELEMENT.getInstance().RADIUM, 1),
- new MaterialStack(ELEMENT.getInstance().URANIUM235, 1),
- new MaterialStack(ELEMENT.getInstance().URANIUM238, 10),
- new MaterialStack(ELEMENT.getInstance().THORIUM, 25),
- new MaterialStack(ELEMENT.getInstance().THORIUM232, 4), new MaterialStack(FLUORCAPHITE, 6),
- new MaterialStack(SAMARSKITE_Y, 8), new MaterialStack(TITANITE, 4) });
+ "Radioactive Mineral Mix", // Material Name
+ MaterialState.ORE, // State
+ TextureSets.NUCLEAR.get(), // Texture Set
+ null, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ 4, // Radiation
+ new MaterialStack[] { // Na3AlF6
+ new MaterialStack(ELEMENT.getInstance().RADON, 2), new MaterialStack(ELEMENT.getInstance().RADIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().URANIUM235, 1),
+ new MaterialStack(ELEMENT.getInstance().URANIUM238, 10),
+ new MaterialStack(ELEMENT.getInstance().THORIUM, 25),
+ new MaterialStack(ELEMENT.getInstance().THORIUM232, 4), new MaterialStack(FLUORCAPHITE, 6),
+ new MaterialStack(SAMARSKITE_Y, 8), new MaterialStack(TITANITE, 4) });
}
diff --git a/src/main/java/gtPlusPlus/core/material/Particle.java b/src/main/java/gtPlusPlus/core/material/Particle.java
index 099c03297f..b5cd30184e 100644
--- a/src/main/java/gtPlusPlus/core/material/Particle.java
+++ b/src/main/java/gtPlusPlus/core/material/Particle.java
@@ -120,9 +120,10 @@ public class Particle {
public static ItemStack getIon(String aElementName, int aCharge) {
for (String g : gtPlusPlus.core.item.chemistry.IonParticles.NameToMetaMap.keySet()) {
- if (g.toLowerCase().equals(Utils.sanitizeString(aElementName.toLowerCase()))) {
+ if (g.toLowerCase()
+ .equals(Utils.sanitizeString(aElementName.toLowerCase()))) {
Integer meta = gtPlusPlus.core.item.chemistry.IonParticles.NameToMetaMap
- .get(Utils.sanitizeString(aElementName.toLowerCase()));
+ .get(Utils.sanitizeString(aElementName.toLowerCase()));
if (meta == null) {
meta = 0;
}
@@ -139,7 +140,8 @@ public class Particle {
public static ItemStack getBaseParticle(Particle aParticle) {
String aPartName = Utils.sanitizeString(aParticle.mParticleName.toLowerCase());
for (String g : gtPlusPlus.core.item.chemistry.StandardBaseParticles.NameToMetaMap.keySet()) {
- if (g.toLowerCase().equals(aPartName)) {
+ if (g.toLowerCase()
+ .equals(aPartName)) {
Integer meta = gtPlusPlus.core.item.chemistry.StandardBaseParticles.NameToMetaMap.get(aPartName);
if (meta == null) {
meta = 0;
diff --git a/src/main/java/gtPlusPlus/core/material/nuclear/FLUORIDES.java b/src/main/java/gtPlusPlus/core/material/nuclear/FLUORIDES.java
index 0e2e0b7e76..5a50a604da 100644
--- a/src/main/java/gtPlusPlus/core/material/nuclear/FLUORIDES.java
+++ b/src/main/java/gtPlusPlus/core/material/nuclear/FLUORIDES.java
@@ -10,97 +10,96 @@ import gtPlusPlus.core.material.state.MaterialState;
public class FLUORIDES {
public static final Material FLUORITE = new Material(
- "Fluorite (F)", // Material Name
- MaterialState.ORE, // State
- null, // Material Colour
- Materials.Fluorine.mMeltingPoint, // Melting Point in C
- Materials.Fluorine.mBlastFurnaceTemp, // Boiling Point in C
- -1, // Protons
- -1, // Neutrons
- false, // Uses Blast furnace?
- false, // Generate cells
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().CALCIUM, 16),
- new MaterialStack(ELEMENT.getInstance().FLUORINE, 32),
- new MaterialStack(ELEMENT.getInstance().IRON, 4),
- new MaterialStack(ELEMENT.getInstance().CARBON, 2) });
+ "Fluorite (F)", // Material Name
+ MaterialState.ORE, // State
+ null, // Material Colour
+ Materials.Fluorine.mMeltingPoint, // Melting Point in C
+ Materials.Fluorine.mBlastFurnaceTemp, // Boiling Point in C
+ -1, // Protons
+ -1, // Neutrons
+ false, // Uses Blast furnace?
+ false, // Generate cells
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().CALCIUM, 16),
+ new MaterialStack(ELEMENT.getInstance().FLUORINE, 32), new MaterialStack(ELEMENT.getInstance().IRON, 4),
+ new MaterialStack(ELEMENT.getInstance().CARBON, 2) });
// ThF4
public static final Material THORIUM_TETRAFLUORIDE = new Material(
- "Thorium Tetrafluoride", // Material Name
- MaterialState.LIQUID, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1, // Neutrons
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().THORIUM232, 1),
- new MaterialStack(ELEMENT.getInstance().FLUORINE, 4) });
+ "Thorium Tetrafluoride", // Material Name
+ MaterialState.LIQUID, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1, // Neutrons
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().THORIUM232, 1),
+ new MaterialStack(ELEMENT.getInstance().FLUORINE, 4) });
// ThF6
public static final Material THORIUM_HEXAFLUORIDE = new Material(
- "Thorium Hexafluoride", // Material Name
- MaterialState.LIQUID, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1, // Neutrons
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().THORIUM232, 1),
- new MaterialStack(ELEMENT.getInstance().THORIUM, 1),
- new MaterialStack(ELEMENT.getInstance().FLUORINE, 12) });
+ "Thorium Hexafluoride", // Material Name
+ MaterialState.LIQUID, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1, // Neutrons
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().THORIUM232, 1),
+ new MaterialStack(ELEMENT.getInstance().THORIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().FLUORINE, 12) });
// UF4
public static final Material URANIUM_TETRAFLUORIDE = new Material(
- "Uranium Tetrafluoride", // Material Name
- MaterialState.LIQUID, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1, // Neutrons
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().URANIUM233, 1),
- new MaterialStack(ELEMENT.getInstance().FLUORINE, 4) });
+ "Uranium Tetrafluoride", // Material Name
+ MaterialState.LIQUID, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1, // Neutrons
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().URANIUM233, 1),
+ new MaterialStack(ELEMENT.getInstance().FLUORINE, 4) });
// UF6
public static final Material URANIUM_HEXAFLUORIDE = new Material(
- "Uranium Hexafluoride", // Material Name
- MaterialState.LIQUID, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1, // Neutrons
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(FLUORIDES.URANIUM_TETRAFLUORIDE, 1),
- new MaterialStack(ELEMENT.getInstance().FLUORINE, 2) });
+ "Uranium Hexafluoride", // Material Name
+ MaterialState.LIQUID, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1, // Neutrons
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(FLUORIDES.URANIUM_TETRAFLUORIDE, 1),
+ new MaterialStack(ELEMENT.getInstance().FLUORINE, 2) });
// ZrF4
public static final Material ZIRCONIUM_TETRAFLUORIDE = new Material(
- "Zirconium Tetrafluoride", // Material Name
- MaterialState.LIQUID, // State
- null, // Texture Set (Autogenerated)
- 0,
- null, // Material Colour
- -1,
- -1,
- -1,
- -1,
- false,
- "ZrF\u2084",
- -1,
- true,
- false,
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().ZIRCONIUM, 1),
- new MaterialStack(ELEMENT.getInstance().FLUORINE, 4) });
+ "Zirconium Tetrafluoride", // Material Name
+ MaterialState.LIQUID, // State
+ null, // Texture Set (Autogenerated)
+ 0,
+ null, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ false,
+ "ZrF\u2084",
+ -1,
+ true,
+ false,
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().ZIRCONIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().FLUORINE, 4) });
/*
* public static final Material ZIRCONIUM_TETRAFLUORIDE = new Material( "Zirconium Tetrafluoride", //Material Name
@@ -112,130 +111,130 @@ public class FLUORIDES {
// BeF2
public static final Material BERYLLIUM_FLUORIDE = new Material(
- "Beryllium Fluoride", // Material Name
- MaterialState.LIQUID, // State
- null, // Material Colour
- -1,
- -1,
- -1,
- -1,
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().BERYLLIUM, 1),
- new MaterialStack(ELEMENT.getInstance().FLUORINE, 2) });
+ "Beryllium Fluoride", // Material Name
+ MaterialState.LIQUID, // State
+ null, // Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().BERYLLIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().FLUORINE, 2) });
// LiF
public static final Material LITHIUM_FLUORIDE = new Material(
- "Lithium Fluoride", // Material Name
- MaterialState.LIQUID, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1, // Neutrons
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().LITHIUM7, 1),
- new MaterialStack(ELEMENT.getInstance().FLUORINE, 1) });
+ "Lithium Fluoride", // Material Name
+ MaterialState.LIQUID, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1, // Neutrons
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().LITHIUM7, 1),
+ new MaterialStack(ELEMENT.getInstance().FLUORINE, 1) });
// LFTR sub components
// (NH4)HF2
public static final Material AMMONIUM_BIFLUORIDE = new Material(
- "Ammonium Bifluoride", // Material Name
- MaterialState.PURE_LIQUID, // State
- null, // Material Colour
- 126, // Melting Point in C
- 240, // Boiling Point in C
- -1, // Protons
- -1,
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(MISC_MATERIALS.AMMONIUM, 1),
- new MaterialStack(ELEMENT.getInstance().HYDROGEN, 1),
- new MaterialStack(ELEMENT.getInstance().FLUORINE, 2) });
+ "Ammonium Bifluoride", // Material Name
+ MaterialState.PURE_LIQUID, // State
+ null, // Material Colour
+ 126, // Melting Point in C
+ 240, // Boiling Point in C
+ -1, // Protons
+ -1,
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(MISC_MATERIALS.AMMONIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().HYDROGEN, 1),
+ new MaterialStack(ELEMENT.getInstance().FLUORINE, 2) });
// Be(OH)2
public static final Material BERYLLIUM_HYDROXIDE = new Material(
- "Beryllium Hydroxide", // Material Name
- MaterialState.PURE_LIQUID, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1, // Neutrons
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().BERYLLIUM, 1),
- new MaterialStack(MISC_MATERIALS.HYDROXIDE, 2) });
+ "Beryllium Hydroxide", // Material Name
+ MaterialState.PURE_LIQUID, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1, // Neutrons
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().BERYLLIUM, 1),
+ new MaterialStack(MISC_MATERIALS.HYDROXIDE, 2) });
// (NH4)2BeF4
public static final Material AMMONIUM_TETRAFLUOROBERYLLATE = new Material(
- "Ammonium Tetrafluoroberyllate", // Material Name
- MaterialState.PURE_LIQUID, // State
- null, // Material Colour
- 280, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1,
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(MISC_MATERIALS.AMMONIUM, 2),
- new MaterialStack(ELEMENT.getInstance().BERYLLIUM, 1),
- new MaterialStack(ELEMENT.getInstance().FLUORINE, 4) });
+ "Ammonium Tetrafluoroberyllate", // Material Name
+ MaterialState.PURE_LIQUID, // State
+ null, // Material Colour
+ 280, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1,
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(MISC_MATERIALS.AMMONIUM, 2),
+ new MaterialStack(ELEMENT.getInstance().BERYLLIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().FLUORINE, 4) });
// LFTR Output
public static final Material NEPTUNIUM_HEXAFLUORIDE = new Material(
- "Neptunium Hexafluoride", // Material Name
- MaterialState.GAS, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1, // Neutrons
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().NEPTUNIUM, 1),
- new MaterialStack(ELEMENT.getInstance().FLUORINE, 6) });
+ "Neptunium Hexafluoride", // Material Name
+ MaterialState.GAS, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1, // Neutrons
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().NEPTUNIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().FLUORINE, 6) });
public static final Material TECHNETIUM_HEXAFLUORIDE = new Material(
- "Technetium Hexafluoride", // Material Name
- MaterialState.GAS, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1, // Neutrons
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().TECHNETIUM, 1),
- new MaterialStack(ELEMENT.getInstance().FLUORINE, 6) });
+ "Technetium Hexafluoride", // Material Name
+ MaterialState.GAS, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1, // Neutrons
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().TECHNETIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().FLUORINE, 6) });
public static final Material SELENIUM_HEXAFLUORIDE = new Material(
- "Selenium Hexafluoride", // Material Name
- MaterialState.GAS, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1, // Neutrons
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().SELENIUM, 1),
- new MaterialStack(ELEMENT.getInstance().FLUORINE, 6) });
+ "Selenium Hexafluoride", // Material Name
+ MaterialState.GAS, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1, // Neutrons
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().SELENIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().FLUORINE, 6) });
public static final Material SODIUM_FLUORIDE = new Material(
- "Sodium Fluoride", // Material Name
- MaterialState.PURE_LIQUID, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1, // Neutrons
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().SODIUM, 1),
- new MaterialStack(ELEMENT.getInstance().FLUORINE, 1) });
+ "Sodium Fluoride", // Material Name
+ MaterialState.PURE_LIQUID, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1, // Neutrons
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().SODIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().FLUORINE, 1) });
private static final FLUORIDES INSTANCE = new FLUORIDES();
diff --git a/src/main/java/gtPlusPlus/core/material/nuclear/NUCLIDE.java b/src/main/java/gtPlusPlus/core/material/nuclear/NUCLIDE.java
index e22d56f9f5..ebd24bad07 100644
--- a/src/main/java/gtPlusPlus/core/material/nuclear/NUCLIDE.java
+++ b/src/main/java/gtPlusPlus/core/material/nuclear/NUCLIDE.java
@@ -10,304 +10,298 @@ import gtPlusPlus.core.util.data.StringUtils;
public final class NUCLIDE {
public static final Material Li2BeF4 = new Material(
- "Lithium Tetrafluoroberyllate (LFTB)", // Material Name
- MaterialState.LIQUID, // State
- TextureSets.NUCLEAR.get(),
- null, // Material Colour
- 566, // Melting Point in C
- 870, // Boiling Point in C
- -1, // Protons
- -1, // Neutrons
- false, // Uses Blast furnace?
- StringUtils.subscript(StringUtils.superscript("7") + "Li2BeF4"), // Chemical Formula
- 4, // Radioactivity Level
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(FLUORIDES.LITHIUM_FLUORIDE, 2),
- new MaterialStack(FLUORIDES.BERYLLIUM_FLUORIDE, 1) });
+ "Lithium Tetrafluoroberyllate (LFTB)", // Material Name
+ MaterialState.LIQUID, // State
+ TextureSets.NUCLEAR.get(),
+ null, // Material Colour
+ 566, // Melting Point in C
+ 870, // Boiling Point in C
+ -1, // Protons
+ -1, // Neutrons
+ false, // Uses Blast furnace?
+ StringUtils.subscript(StringUtils.superscript("7") + "Li2BeF4"), // Chemical Formula
+ 4, // Radioactivity Level
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(FLUORIDES.LITHIUM_FLUORIDE, 2),
+ new MaterialStack(FLUORIDES.BERYLLIUM_FLUORIDE, 1) });
public static final Material LiFBeF2ThF4UF4 = new Material(
- "LFTR Fuel 3", // Material Name
- MaterialState.LIQUID, // State
- TextureSets.NUCLEAR.get(),
- null, // Material Colour
- 566, // Melting Point in C
- 870, // Boiling Point in C
- -1, // Protons
- -1, // Neutrons
- false, // Uses Blast furnace?
- StringUtils.subscript(StringUtils.superscript("7") + "LiFBeF2ThF4UF4"), // Chemical Formula
- 5, // Radioactivity Level
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(FLUORIDES.LITHIUM_FLUORIDE, 65),
- new MaterialStack(FLUORIDES.BERYLLIUM_FLUORIDE, 28),
- new MaterialStack(FLUORIDES.THORIUM_TETRAFLUORIDE, 1),
- new MaterialStack(FLUORIDES.URANIUM_TETRAFLUORIDE, 1) });
+ "LFTR Fuel 3", // Material Name
+ MaterialState.LIQUID, // State
+ TextureSets.NUCLEAR.get(),
+ null, // Material Colour
+ 566, // Melting Point in C
+ 870, // Boiling Point in C
+ -1, // Protons
+ -1, // Neutrons
+ false, // Uses Blast furnace?
+ StringUtils.subscript(StringUtils.superscript("7") + "LiFBeF2ThF4UF4"), // Chemical Formula
+ 5, // Radioactivity Level
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(FLUORIDES.LITHIUM_FLUORIDE, 65),
+ new MaterialStack(FLUORIDES.BERYLLIUM_FLUORIDE, 28), new MaterialStack(FLUORIDES.THORIUM_TETRAFLUORIDE, 1),
+ new MaterialStack(FLUORIDES.URANIUM_TETRAFLUORIDE, 1) });
public static final Material LiFBeF2ZrF4UF4 = new Material(
- "LFTR Fuel 2", // Material Name
- MaterialState.LIQUID, // State
- TextureSets.NUCLEAR.get(),
- null, // Material Colour
- 650, // Melting Point in C
- 940, // Boiling Point in C
- -1, // Protons
- -1, // Neutrons
- false, // Uses Blast furnace?
- StringUtils.subscript(StringUtils.superscript("7") + "LiFBeF2ZrF4UF4"), // Chemical Formula
- 5, // Radioactivity Level
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(FLUORIDES.LITHIUM_FLUORIDE, 65),
- new MaterialStack(FLUORIDES.BERYLLIUM_FLUORIDE, 28),
- new MaterialStack(FLUORIDES.ZIRCONIUM_TETRAFLUORIDE, 5),
- new MaterialStack(FLUORIDES.URANIUM_TETRAFLUORIDE, 2) });
+ "LFTR Fuel 2", // Material Name
+ MaterialState.LIQUID, // State
+ TextureSets.NUCLEAR.get(),
+ null, // Material Colour
+ 650, // Melting Point in C
+ 940, // Boiling Point in C
+ -1, // Protons
+ -1, // Neutrons
+ false, // Uses Blast furnace?
+ StringUtils.subscript(StringUtils.superscript("7") + "LiFBeF2ZrF4UF4"), // Chemical Formula
+ 5, // Radioactivity Level
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(FLUORIDES.LITHIUM_FLUORIDE, 65),
+ new MaterialStack(FLUORIDES.BERYLLIUM_FLUORIDE, 28),
+ new MaterialStack(FLUORIDES.ZIRCONIUM_TETRAFLUORIDE, 5),
+ new MaterialStack(FLUORIDES.URANIUM_TETRAFLUORIDE, 2) });
public static final Material LiFBeF2ZrF4U235 = new Material(
- "LFTR Fuel 1", // Material Name
- MaterialState.LIQUID, // State
- TextureSets.NUCLEAR.get(),
- null, // Material Colour
- 590, // Melting Point in C
- 890, // Boiling Point in C
- -1, // Protons
- -1, // Neutrons
- false, // Uses Blast furnace?
- StringUtils.subscript(StringUtils.superscript("7") + "LiFBeF2ZrF4") + StringUtils.superscript("235U"), // Chemical
- // Formula
- 5, // Radioactivity Level
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(FLUORIDES.LITHIUM_FLUORIDE, 55),
- new MaterialStack(FLUORIDES.BERYLLIUM_FLUORIDE, 25),
- new MaterialStack(FLUORIDES.ZIRCONIUM_TETRAFLUORIDE, 6),
- new MaterialStack(ELEMENT.getInstance().URANIUM235, 14) });
+ "LFTR Fuel 1", // Material Name
+ MaterialState.LIQUID, // State
+ TextureSets.NUCLEAR.get(),
+ null, // Material Colour
+ 590, // Melting Point in C
+ 890, // Boiling Point in C
+ -1, // Protons
+ -1, // Neutrons
+ false, // Uses Blast furnace?
+ StringUtils.subscript(StringUtils.superscript("7") + "LiFBeF2ZrF4") + StringUtils.superscript("235U"), // Chemical
+ // Formula
+ 5, // Radioactivity Level
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(FLUORIDES.LITHIUM_FLUORIDE, 55),
+ new MaterialStack(FLUORIDES.BERYLLIUM_FLUORIDE, 25),
+ new MaterialStack(FLUORIDES.ZIRCONIUM_TETRAFLUORIDE, 6),
+ new MaterialStack(ELEMENT.getInstance().URANIUM235, 14) });
// Misc
public static final Material BurntLftrFuel_MK1 = new Material(
- "Burnt Reactor Fuel I", // Material Name
- MaterialState.PURE_LIQUID, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1, // Neutrons
- false, // Uses Blast furnace?
- StringUtils.subscript(StringUtils.superscript("7") + "LiBeF2UF4FP"), // Chemical Formula
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().LITHIUM, 1),
- new MaterialStack(FLUORIDES.BERYLLIUM_FLUORIDE, 1),
- new MaterialStack(FLUORIDES.URANIUM_TETRAFLUORIDE, 1),
- new MaterialStack(ELEMENT.getInstance().PROTACTINIUM, 1) });
+ "Burnt Reactor Fuel I", // Material Name
+ MaterialState.PURE_LIQUID, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1, // Neutrons
+ false, // Uses Blast furnace?
+ StringUtils.subscript(StringUtils.superscript("7") + "LiBeF2UF4FP"), // Chemical Formula
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().LITHIUM, 1),
+ new MaterialStack(FLUORIDES.BERYLLIUM_FLUORIDE, 1), new MaterialStack(FLUORIDES.URANIUM_TETRAFLUORIDE, 1),
+ new MaterialStack(ELEMENT.getInstance().PROTACTINIUM, 1) });
public static final Material BurntLftrFuel_MK2 = new Material(
- "Burnt Reactor Fuel II", // Material Name
- MaterialState.PURE_LIQUID, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1, // Neutrons
- false, // Uses Blast furnace?
- StringUtils.subscript(StringUtils.superscript("7") + "LiBeF2UF4FP"), // Chemical Formula
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().LITHIUM, 1),
- new MaterialStack(FLUORIDES.BERYLLIUM_FLUORIDE, 1),
- new MaterialStack(FLUORIDES.URANIUM_TETRAFLUORIDE, 1),
- new MaterialStack(ELEMENT.getInstance().PROTACTINIUM, 1) });
+ "Burnt Reactor Fuel II", // Material Name
+ MaterialState.PURE_LIQUID, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1, // Neutrons
+ false, // Uses Blast furnace?
+ StringUtils.subscript(StringUtils.superscript("7") + "LiBeF2UF4FP"), // Chemical Formula
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().LITHIUM, 1),
+ new MaterialStack(FLUORIDES.BERYLLIUM_FLUORIDE, 1), new MaterialStack(FLUORIDES.URANIUM_TETRAFLUORIDE, 1),
+ new MaterialStack(ELEMENT.getInstance().PROTACTINIUM, 1) });
// LFTR Core Fluids
public static final Material LiFBeF2UF4FP = new Material(
- "Uranium Depleted Molten Salt (U Salt)", // Material Name
- MaterialState.PURE_LIQUID, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1, // Neutrons
- false, // Uses Blast furnace?
- StringUtils.subscript(StringUtils.superscript("7") + "LiFBeF2UF4FP"), // Chemical Formula
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(FLUORIDES.LITHIUM_FLUORIDE, 1),
- new MaterialStack(FLUORIDES.BERYLLIUM_FLUORIDE, 1),
- new MaterialStack(FLUORIDES.URANIUM_TETRAFLUORIDE, 1),
- new MaterialStack(ELEMENT.getInstance().PROTACTINIUM, 1) });
+ "Uranium Depleted Molten Salt (U Salt)", // Material Name
+ MaterialState.PURE_LIQUID, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1, // Neutrons
+ false, // Uses Blast furnace?
+ StringUtils.subscript(StringUtils.superscript("7") + "LiFBeF2UF4FP"), // Chemical Formula
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(FLUORIDES.LITHIUM_FLUORIDE, 1),
+ new MaterialStack(FLUORIDES.BERYLLIUM_FLUORIDE, 1), new MaterialStack(FLUORIDES.URANIUM_TETRAFLUORIDE, 1),
+ new MaterialStack(ELEMENT.getInstance().PROTACTINIUM, 1) });
public static final Material Sparged_LiFBeF2UF4FP = new Material(
- "Helium Sparged U Salt", // Material Name
- MaterialState.PURE_LIQUID, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1, // Neutrons
- false, // Uses Blast furnace?
- StringUtils.subscript(StringUtils.superscript("7") + "LiFBeF2UF4FP"), // Chemical Formula
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(FLUORIDES.LITHIUM_FLUORIDE, 1),
- new MaterialStack(FLUORIDES.BERYLLIUM_FLUORIDE, 1),
- new MaterialStack(FLUORIDES.URANIUM_TETRAFLUORIDE, 1),
- new MaterialStack(ELEMENT.getInstance().PROTACTINIUM, 1) });
+ "Helium Sparged U Salt", // Material Name
+ MaterialState.PURE_LIQUID, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1, // Neutrons
+ false, // Uses Blast furnace?
+ StringUtils.subscript(StringUtils.superscript("7") + "LiFBeF2UF4FP"), // Chemical Formula
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(FLUORIDES.LITHIUM_FLUORIDE, 1),
+ new MaterialStack(FLUORIDES.BERYLLIUM_FLUORIDE, 1), new MaterialStack(FLUORIDES.URANIUM_TETRAFLUORIDE, 1),
+ new MaterialStack(ELEMENT.getInstance().PROTACTINIUM, 1) });
public static final Material UF6F2FP = new Material(
- "Phosphorous Uranium Hexafluoride (P-UF6)", // Material Name
- MaterialState.PURE_LIQUID, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1, // Neutrons
- false, // Uses Blast furnace?
- StringUtils.subscript("UF6F2FP"), // Chemical Formula
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(FLUORIDES.URANIUM_HEXAFLUORIDE, 1),
- new MaterialStack(ELEMENT.getInstance().FLUORINE, 3),
- new MaterialStack(ELEMENT.getInstance().PHOSPHORUS, 1) });
+ "Phosphorous Uranium Hexafluoride (P-UF6)", // Material Name
+ MaterialState.PURE_LIQUID, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1, // Neutrons
+ false, // Uses Blast furnace?
+ StringUtils.subscript("UF6F2FP"), // Chemical Formula
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(FLUORIDES.URANIUM_HEXAFLUORIDE, 1),
+ new MaterialStack(ELEMENT.getInstance().FLUORINE, 3),
+ new MaterialStack(ELEMENT.getInstance().PHOSPHORUS, 1) });
public static final Material LiFBeF2 = new Material(
- "Stable Molten Salt Base", // Material Name
- MaterialState.PURE_LIQUID, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1, // Neutrons
- false, // Uses Blast furnace?
- StringUtils.subscript(StringUtils.superscript("7") + "LiFBeF2"), // Chemical Formula
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(FLUORIDES.LITHIUM_FLUORIDE, 1),
- new MaterialStack(FLUORIDES.BERYLLIUM_FLUORIDE, 1) });
+ "Stable Molten Salt Base", // Material Name
+ MaterialState.PURE_LIQUID, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1, // Neutrons
+ false, // Uses Blast furnace?
+ StringUtils.subscript(StringUtils.superscript("7") + "LiFBeF2"), // Chemical Formula
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(FLUORIDES.LITHIUM_FLUORIDE, 1),
+ new MaterialStack(FLUORIDES.BERYLLIUM_FLUORIDE, 1) });
public static final Material LiFBeF2UF4 = new Material(
- "LFTR Fuel Base", // Material Name
- MaterialState.PURE_LIQUID, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1, // Neutrons
- false, // Uses Blast furnace?
- StringUtils.subscript(StringUtils.superscript("7") + "LiFBeF2UF4"), // Chemical Formula
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(LiFBeF2, 1),
- new MaterialStack(FLUORIDES.URANIUM_TETRAFLUORIDE, 1) });
+ "LFTR Fuel Base", // Material Name
+ MaterialState.PURE_LIQUID, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1, // Neutrons
+ false, // Uses Blast furnace?
+ StringUtils.subscript(StringUtils.superscript("7") + "LiFBeF2UF4"), // Chemical Formula
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(LiFBeF2, 1), new MaterialStack(FLUORIDES.URANIUM_TETRAFLUORIDE, 1) });
// LFTR Blanket Fluids
// Tier 1 Fuel blanket output
public static final Material LiFThF4 = new Material(
- "Thorium Depleted Molten Salt (T Salt)", // Material Name
- MaterialState.PURE_LIQUID, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1, // Neutrons
- false, // Uses Blast furnace?
- StringUtils.subscript(StringUtils.superscript("7") + "LiFThF4"), // Chemical Formula
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(FLUORIDES.LITHIUM_FLUORIDE, 1),
- new MaterialStack(FLUORIDES.THORIUM_TETRAFLUORIDE, 1) });
+ "Thorium Depleted Molten Salt (T Salt)", // Material Name
+ MaterialState.PURE_LIQUID, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1, // Neutrons
+ false, // Uses Blast furnace?
+ StringUtils.subscript(StringUtils.superscript("7") + "LiFThF4"), // Chemical Formula
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(FLUORIDES.LITHIUM_FLUORIDE, 1),
+ new MaterialStack(FLUORIDES.THORIUM_TETRAFLUORIDE, 1) });
// Tier 2 Fuel blanket output
public static final Material LiFBeF2ThF4 = new Material(
- "Thorium-Beryllium Depleted Molten Salt (TB Salt)", // Material Name
- MaterialState.PURE_LIQUID, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1, // Neutrons
- false, // Uses Blast furnace?
- StringUtils.subscript(StringUtils.superscript("7") + "LiFBeF2ThF4"), // Chemical Formula
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(FLUORIDES.LITHIUM_FLUORIDE, 1),
- new MaterialStack(FLUORIDES.BERYLLIUM_FLUORIDE, 1),
- new MaterialStack(FLUORIDES.THORIUM_TETRAFLUORIDE, 1) });
+ "Thorium-Beryllium Depleted Molten Salt (TB Salt)", // Material Name
+ MaterialState.PURE_LIQUID, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1, // Neutrons
+ false, // Uses Blast furnace?
+ StringUtils.subscript(StringUtils.superscript("7") + "LiFBeF2ThF4"), // Chemical Formula
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(FLUORIDES.LITHIUM_FLUORIDE, 1),
+ new MaterialStack(FLUORIDES.BERYLLIUM_FLUORIDE, 1),
+ new MaterialStack(FLUORIDES.THORIUM_TETRAFLUORIDE, 1) });
// Tier 1 Fuel blanket output
public static final Material Sparged_LiFThF4 = new Material(
- "Fluorine Sparged T Salt", // Material Name
- MaterialState.PURE_LIQUID, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1, // Neutrons
- false, // Uses Blast furnace?
- StringUtils.subscript(StringUtils.superscript("7") + "LiFThF4"), // Chemical Formula
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(FLUORIDES.LITHIUM_FLUORIDE, 1),
- new MaterialStack(FLUORIDES.THORIUM_TETRAFLUORIDE, 1) });
+ "Fluorine Sparged T Salt", // Material Name
+ MaterialState.PURE_LIQUID, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1, // Neutrons
+ false, // Uses Blast furnace?
+ StringUtils.subscript(StringUtils.superscript("7") + "LiFThF4"), // Chemical Formula
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(FLUORIDES.LITHIUM_FLUORIDE, 1),
+ new MaterialStack(FLUORIDES.THORIUM_TETRAFLUORIDE, 1) });
// Tier 2 Fuel blanket output
public static final Material Sparged_LiFBeF2ThF4 = new Material(
- "Fluorine Sparged TB Salt", // Material Name
- MaterialState.PURE_LIQUID, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1, // Neutrons
- false, // Uses Blast furnace?
- StringUtils.subscript(StringUtils.superscript("7") + "LiFBeF2ThF4"), // Chemical Formula
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(FLUORIDES.LITHIUM_FLUORIDE, 1),
- new MaterialStack(FLUORIDES.BERYLLIUM_FLUORIDE, 1),
- new MaterialStack(FLUORIDES.THORIUM_TETRAFLUORIDE, 1) });
+ "Fluorine Sparged TB Salt", // Material Name
+ MaterialState.PURE_LIQUID, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1, // Neutrons
+ false, // Uses Blast furnace?
+ StringUtils.subscript(StringUtils.superscript("7") + "LiFBeF2ThF4"), // Chemical Formula
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(FLUORIDES.LITHIUM_FLUORIDE, 1),
+ new MaterialStack(FLUORIDES.BERYLLIUM_FLUORIDE, 1),
+ new MaterialStack(FLUORIDES.THORIUM_TETRAFLUORIDE, 1) });
public static final Material UF6F2 = new Material(
- "Fluorinated Uranium Hexafluoride (F-UF6)", // Material Name
- MaterialState.PURE_LIQUID, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1, // Neutrons
- false, // Uses Blast furnace?
- StringUtils.subscript("UF6F2"), // Chemical Formula
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(FLUORIDES.URANIUM_HEXAFLUORIDE, 1),
- new MaterialStack(ELEMENT.getInstance().FLUORINE, 2) });
+ "Fluorinated Uranium Hexafluoride (F-UF6)", // Material Name
+ MaterialState.PURE_LIQUID, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1, // Neutrons
+ false, // Uses Blast furnace?
+ StringUtils.subscript("UF6F2"), // Chemical Formula
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(FLUORIDES.URANIUM_HEXAFLUORIDE, 1),
+ new MaterialStack(ELEMENT.getInstance().FLUORINE, 2) });
// Secondary material is molten metal
public static final Material NAQ_FUEL_T1 = new Material(
- "Naquadah Fuel",
- MaterialState.PURE_LIQUID, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1,
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().NAQUADAH, 2),
- new MaterialStack(ELEMENT.getInstance().TANTALUM, 3) });
+ "Naquadah Fuel",
+ MaterialState.PURE_LIQUID, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1,
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().NAQUADAH, 2),
+ new MaterialStack(ELEMENT.getInstance().TANTALUM, 3) });
// Secondary material is a plasma
public static final Material NAQ_FUEL_T2 = new Material(
- "Enriched Naquadah Fuel",
- MaterialState.PURE_LIQUID, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1,
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().NAQUADAH_ENRICHED, 2),
- new MaterialStack(ELEMENT.getInstance().TITANIUM, 3) });
+ "Enriched Naquadah Fuel",
+ MaterialState.PURE_LIQUID, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1,
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().NAQUADAH_ENRICHED, 2),
+ new MaterialStack(ELEMENT.getInstance().TITANIUM, 3) });
// Secondary material is a plasma
public static final Material NAQ_FUEL_T3 = new Material(
- "Naquadria Fuel",
- MaterialState.PURE_LIQUID, // State
- null, // Material Colour
- -1, // Melting Point in C
- -1, // Boiling Point in C
- -1, // Protons
- -1,
- false, // Uses Blast furnace?
- // Material Stacks with Percentage of required elements.
- new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().NAQUADRIA, 2),
- new MaterialStack(ELEMENT.getInstance().AMERICIUM, 3) });
+ "Naquadria Fuel",
+ MaterialState.PURE_LIQUID, // State
+ null, // Material Colour
+ -1, // Melting Point in C
+ -1, // Boiling Point in C
+ -1, // Protons
+ -1,
+ false, // Uses Blast furnace?
+ // Material Stacks with Percentage of required elements.
+ new MaterialStack[] { new MaterialStack(ELEMENT.getInstance().NAQUADRIA, 2),
+ new MaterialStack(ELEMENT.getInstance().AMERICIUM, 3) });
private static final NUCLIDE INSTANCE = new NUCLIDE();
diff --git a/src/main/java/gtPlusPlus/core/network/packet/Packet_VolumetricFlaskGui.java b/src/main/java/gtPlusPlus/core/network/packet/Packet_VolumetricFlaskGui.java
index 668d7952d1..9dfa1dbad5 100644
--- a/src/main/java/gtPlusPlus/core/network/packet/Packet_VolumetricFlaskGui.java
+++ b/src/main/java/gtPlusPlus/core/network/packet/Packet_VolumetricFlaskGui.java
@@ -14,7 +14,7 @@ import gtPlusPlus.core.tileentities.general.TileEntityVolumetricFlaskSetter;
import io.netty.buffer.ByteBuf;
public class Packet_VolumetricFlaskGui extends AbstractServerMessageHandler<Packet_VolumetricFlaskGui>
- implements AbstractPacket {
+ implements AbstractPacket {
private int x;
private int y;
diff --git a/src/main/java/gtPlusPlus/core/network/packet/Packet_VolumetricFlaskGui2.java b/src/main/java/gtPlusPlus/core/network/packet/Packet_VolumetricFlaskGui2.java
index f66eeb64a6..599469191b 100644
--- a/src/main/java/gtPlusPlus/core/network/packet/Packet_VolumetricFlaskGui2.java
+++ b/src/main/java/gtPlusPlus/core/network/packet/Packet_VolumetricFlaskGui2.java
@@ -14,7 +14,7 @@ import gtPlusPlus.core.tileentities.general.TileEntityVolumetricFlaskSetter;
import io.netty.buffer.ByteBuf;
public class Packet_VolumetricFlaskGui2 extends AbstractClientMessageHandler<Packet_VolumetricFlaskGui2>
- implements AbstractPacket {
+ implements AbstractPacket {
private int x;
private int y;
diff --git a/src/main/java/gtPlusPlus/core/proxy/ClientProxy.java b/src/main/java/gtPlusPlus/core/proxy/ClientProxy.java
index bc746e3de8..5f6f93542e 100644
--- a/src/main/java/gtPlusPlus/core/proxy/ClientProxy.java
+++ b/src/main/java/gtPlusPlus/core/proxy/ClientProxy.java
@@ -116,10 +116,10 @@ public class ClientProxy extends CommonProxy implements Runnable {
* Entities
*/
RenderingRegistry
- .registerEntityRenderingHandler(EntityPrimedMiningExplosive.class, new RenderMiningExplosivesPrimed());
+ .registerEntityRenderingHandler(EntityPrimedMiningExplosive.class, new RenderMiningExplosivesPrimed());
RenderingRegistry.registerEntityRenderingHandler(EntitySickBlaze.class, new RenderSickBlaze());
RenderingRegistry
- .registerEntityRenderingHandler(EntityStaballoyConstruct.class, new RenderStaballoyConstruct());
+ .registerEntityRenderingHandler(EntityStaballoyConstruct.class, new RenderStaballoyConstruct());
RenderingRegistry.registerEntityRenderingHandler(EntityToxinballSmall.class, new RenderToxinball(1F));
RenderingRegistry.registerEntityRenderingHandler(EntityLightningAttack.class, new RenderFireball(1F));
@@ -165,7 +165,8 @@ public class ClientProxy extends CommonProxy implements Runnable {
public void hideUniversalCells() {
ArrayList<ItemStack> itemList = new ArrayList<>();
- for (Fluid fluid : FluidRegistry.getRegisteredFluids().values()) {
+ for (Fluid fluid : FluidRegistry.getRegisteredFluids()
+ .values()) {
if (fluid == null) {
continue;
}
@@ -178,7 +179,8 @@ public class ClientProxy extends CommonProxy implements Runnable {
@Override
public World getClientWorld() {
- return FMLClientHandler.instance().getClient().theWorld;
+ return FMLClientHandler.instance()
+ .getClient().theWorld;
}
@Override
diff --git a/src/main/java/gtPlusPlus/core/recipe/RECIPES_GREGTECH.java b/src/main/java/gtPlusPlus/core/recipe/RECIPES_GREGTECH.java
index a9b6e860e4..0900bbb4fa 100644
--- a/src/main/java/gtPlusPlus/core/recipe/RECIPES_GREGTECH.java
+++ b/src/main/java/gtPlusPlus/core/recipe/RECIPES_GREGTECH.java
@@ -121,9 +121,12 @@ public class RECIPES_GREGTECH {
private static void alloySmelterRecipes() {
// Wood's Glass Laser Lens
- GT_Values.RA.stdBuilder().itemInputs(MISC_MATERIALS.WOODS_GLASS.getDust(5), ItemList.Shape_Mold_Ball.get(0))
- .itemOutputs(GregtechItemList.Laser_Lens_WoodsGlass.get(1)).duration(5 * MINUTES).eut(TierEU.RECIPE_HV)
- .addTo(alloySmelterRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(MISC_MATERIALS.WOODS_GLASS.getDust(5), ItemList.Shape_Mold_Ball.get(0))
+ .itemOutputs(GregtechItemList.Laser_Lens_WoodsGlass.get(1))
+ .duration(5 * MINUTES)
+ .eut(TierEU.RECIPE_HV)
+ .addTo(alloySmelterRecipes);
}
private static void chemplantRecipes() {
@@ -135,239 +138,256 @@ public class RECIPES_GREGTECH {
// Advanced method for Nitric Acid Production
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(17), CI.getPinkCatalyst(0), },
- new FluidStack[] { Materials.NitrogenDioxide.getGas(4000L), FluidUtils.getAir(4000),
- FluidUtils.getWater(2000), },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack("nitricacid", 4000), },
- 10 * 20,
- 480,
- 3);
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(17), CI.getPinkCatalyst(0), },
+ new FluidStack[] { Materials.NitrogenDioxide.getGas(4000L), FluidUtils.getAir(4000),
+ FluidUtils.getWater(2000), },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack("nitricacid", 4000), },
+ 10 * 20,
+ 480,
+ 3);
// Advanced recipe for Fluorine Production
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(17), CI.getPurpleCatalyst(0),
- ItemUtils.getSimpleStack(Blocks.sandstone, 64),
- ItemUtils.getSimpleStack(Blocks.sandstone, 64) },
- new FluidStack[] { FluidUtils.getFluidStack("nitricacid", 4000), FluidUtils.getAir(8000) },
- new ItemStack[] { FLUORIDES.FLUORITE.getOre(8), FLUORIDES.FLUORITE.getOre(4),
- FLUORIDES.FLUORITE.getOre(4), FLUORIDES.FLUORITE.getOre(4), },
- new FluidStack[] {},
- new int[] { 0, 2500, 2000, 1500 },
- 10 * 20,
- 1024,
- 5);
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(17), CI.getPurpleCatalyst(0),
+ ItemUtils.getSimpleStack(Blocks.sandstone, 64), ItemUtils.getSimpleStack(Blocks.sandstone, 64) },
+ new FluidStack[] { FluidUtils.getFluidStack("nitricacid", 4000), FluidUtils.getAir(8000) },
+ new ItemStack[] { FLUORIDES.FLUORITE.getOre(8), FLUORIDES.FLUORITE.getOre(4), FLUORIDES.FLUORITE.getOre(4),
+ FLUORIDES.FLUORITE.getOre(4), },
+ new FluidStack[] {},
+ new int[] { 0, 2500, 2000, 1500 },
+ 10 * 20,
+ 1024,
+ 5);
// Advanced recipe for Fluorine Production
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(17), CI.getPurpleCatalyst(0),
- ItemUtils.getSimpleStack(Blocks.sand, 64), ItemUtils.getSimpleStack(Blocks.sand, 64) },
- new FluidStack[] { FluidUtils.getFluidStack("nitricacid", 5000), FluidUtils.getAir(12000) },
- new ItemStack[] { FLUORIDES.FLUORITE.getOre(4), FLUORIDES.FLUORITE.getOre(2),
- FLUORIDES.FLUORITE.getOre(2), FLUORIDES.FLUORITE.getOre(2), },
- new FluidStack[] {},
- new int[] { 7500, 1500, 1000, 500 },
- 10 * 20,
- 1024,
- 5);
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(17), CI.getPurpleCatalyst(0),
+ ItemUtils.getSimpleStack(Blocks.sand, 64), ItemUtils.getSimpleStack(Blocks.sand, 64) },
+ new FluidStack[] { FluidUtils.getFluidStack("nitricacid", 5000), FluidUtils.getAir(12000) },
+ new ItemStack[] { FLUORIDES.FLUORITE.getOre(4), FLUORIDES.FLUORITE.getOre(2), FLUORIDES.FLUORITE.getOre(2),
+ FLUORIDES.FLUORITE.getOre(2), },
+ new FluidStack[] {},
+ new int[] { 7500, 1500, 1000, 500 },
+ 10 * 20,
+ 1024,
+ 5);
// 3NO2 + H2O = 2HNO3 + NO
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(16), CI.getPinkCatalyst(0), },
- new FluidStack[] { Materials.NitrogenDioxide.getGas(3000L), FluidUtils.getDistilledWater(1000) },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack("nitricacid", 2000), Materials.NitricOxide.getGas(1000L), },
- 10 * 20,
- 480,
- 2);
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(16), CI.getPinkCatalyst(0), },
+ new FluidStack[] { Materials.NitrogenDioxide.getGas(3000L), FluidUtils.getDistilledWater(1000) },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack("nitricacid", 2000), Materials.NitricOxide.getGas(1000L), },
+ 10 * 20,
+ 480,
+ 2);
// Produce Boric Acid
// Na2B4O7·10H2O + 2HCl = 4B(OH)3 + 2NaCl + 5H2O
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(21),
- ItemUtils.getItemStackOfAmountFromOreDict("dustBorax", 23), },
- new FluidStack[] { FluidUtils.getFluidStack(GenericChem.HydrochloricAcid, 2000) },
- new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustSalt", 4), },
- new FluidStack[] { FluidUtils.getFluidStack("boricacid", 4000), FluidUtils.getWater(5000) },
- 20 * 30,
- MaterialUtils.getVoltageForTier(3),
- 3);
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(21),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustBorax", 23), },
+ new FluidStack[] { FluidUtils.getFluidStack(GenericChem.HydrochloricAcid, 2000) },
+ new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustSalt", 4), },
+ new FluidStack[] { FluidUtils.getFluidStack("boricacid", 4000), FluidUtils.getWater(5000) },
+ 20 * 30,
+ MaterialUtils.getVoltageForTier(3),
+ 3);
// Produce Th232
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(22), ELEMENT.getInstance().THORIUM.getDust(16) },
- new FluidStack[] { FluidUtils.getDistilledWater(2000), FluidUtils.getFluidStack("boricacid", 1500) },
- new ItemStack[] { ELEMENT.getInstance().THORIUM.getSmallDust(32),
- ELEMENT.getInstance().THORIUM232.getDust(2), ELEMENT.getInstance().THORIUM232.getSmallDust(2),
- ELEMENT.getInstance().URANIUM232.getDust(1), },
- new FluidStack[] {},
- new int[] { 0, 0, 1000, 250 },
- 20 * 300,
- MaterialUtils.getVoltageForTier(4),
- 4);
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(22), ELEMENT.getInstance().THORIUM.getDust(16) },
+ new FluidStack[] { FluidUtils.getDistilledWater(2000), FluidUtils.getFluidStack("boricacid", 1500) },
+ new ItemStack[] { ELEMENT.getInstance().THORIUM.getSmallDust(32),
+ ELEMENT.getInstance().THORIUM232.getDust(2), ELEMENT.getInstance().THORIUM232.getSmallDust(2),
+ ELEMENT.getInstance().URANIUM232.getDust(1), },
+ new FluidStack[] {},
+ new int[] { 0, 0, 1000, 250 },
+ 20 * 300,
+ MaterialUtils.getVoltageForTier(4),
+ 4);
// Modify Sapling into Pine Sapling
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedBioCircuit(6), ItemUtils.getSimpleStack(Blocks.sapling, 32) },
- new FluidStack[] { FluidUtils.getFluidStack("fluid.geneticmutagen", 2000),
- FluidUtils.getDistilledWater(8000) },
- new ItemStack[] { ItemUtils.getSimpleStack(BOP_Block_Registrator.sapling_Pine, 16) },
- new FluidStack[] {},
- 120 * 20,
- 64,
- 2);
+ new ItemStack[] { CI.getNumberedBioCircuit(6), ItemUtils.getSimpleStack(Blocks.sapling, 32) },
+ new FluidStack[] { FluidUtils.getFluidStack("fluid.geneticmutagen", 2000),
+ FluidUtils.getDistilledWater(8000) },
+ new ItemStack[] { ItemUtils.getSimpleStack(BOP_Block_Registrator.sapling_Pine, 16) },
+ new FluidStack[] {},
+ 120 * 20,
+ 64,
+ 2);
int aLaureniumTier = ALLOY.LAURENIUM.vTier;
// Adding Recipes for Casings
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(12), CI.getTieredMachineCasing(aLaureniumTier - 1),
- ALLOY.LAURENIUM.getPlate(8), CI.getGear(aLaureniumTier, 2) },
- new FluidStack[] { CI.getTieredFluid(aLaureniumTier, 2 * 144),
- CI.getAlternativeTieredFluid(aLaureniumTier - 1, 4 * 144),
- CI.getTertiaryTieredFluid(aLaureniumTier - 2, 6 * 144) },
- new ItemStack[] { GregtechItemList.Casing_Machine_Custom_3.get(1) },
- new FluidStack[] {},
- 20 * 20,
- MaterialUtils.getVoltageForTier(aLaureniumTier - 2),
- 5);
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(12), CI.getTieredMachineCasing(aLaureniumTier - 1),
+ ALLOY.LAURENIUM.getPlate(8), CI.getGear(aLaureniumTier, 2) },
+ new FluidStack[] { CI.getTieredFluid(aLaureniumTier, 2 * 144),
+ CI.getAlternativeTieredFluid(aLaureniumTier - 1, 4 * 144),
+ CI.getTertiaryTieredFluid(aLaureniumTier - 2, 6 * 144) },
+ new ItemStack[] { GregtechItemList.Casing_Machine_Custom_3.get(1) },
+ new FluidStack[] {},
+ 20 * 20,
+ MaterialUtils.getVoltageForTier(aLaureniumTier - 2),
+ 5);
int aBotmiumTier = ALLOY.BOTMIUM.vTier;
// Adding Recipes for Casings
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(12), CI.getTieredMachineCasing(aBotmiumTier - 1),
- ALLOY.BOTMIUM.getPlate(8), CI.getGear(aBotmiumTier, 2) },
- new FluidStack[] { CI.getTieredFluid(aBotmiumTier, 2 * 144),
- CI.getAlternativeTieredFluid(aBotmiumTier - 1, 4 * 144),
- CI.getTertiaryTieredFluid(aBotmiumTier - 2, 6 * 144) },
- new ItemStack[] { GregtechItemList.Casing_Machine_Custom_4.get(1) },
- new FluidStack[] {},
- 20 * 20,
- MaterialUtils.getVoltageForTier(aBotmiumTier - 2),
- 6);
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(12), CI.getTieredMachineCasing(aBotmiumTier - 1),
+ ALLOY.BOTMIUM.getPlate(8), CI.getGear(aBotmiumTier, 2) },
+ new FluidStack[] { CI.getTieredFluid(aBotmiumTier, 2 * 144),
+ CI.getAlternativeTieredFluid(aBotmiumTier - 1, 4 * 144),
+ CI.getTertiaryTieredFluid(aBotmiumTier - 2, 6 * 144) },
+ new ItemStack[] { GregtechItemList.Casing_Machine_Custom_4.get(1) },
+ new FluidStack[] {},
+ 20 * 20,
+ MaterialUtils.getVoltageForTier(aBotmiumTier - 2),
+ 6);
// Refine GT HF into GT++ HF
if (FluidUtils.doesHydrofluoricAcidGtExist()) {
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(22), },
- new FluidStack[] { FluidUtils.getHydrofluoricAcid(2000), FluidUtils.getHydrofluoricAcidGT(5000) },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getHydrofluoricAcid(4500) },
- 30 * 20,
- 480,
- 3);
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(22), },
+ new FluidStack[] { FluidUtils.getHydrofluoricAcid(2000), FluidUtils.getHydrofluoricAcidGT(5000) },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getHydrofluoricAcid(4500) },
+ 30 * 20,
+ 480,
+ 3);
}
}
private static void fluidHeaterRecipes() {
- GT_Values.RA.stdBuilder().itemInputs(GT_Utility.getIntegratedCircuit(20))
- .fluidInputs(Materials.Water.getFluid(1000)).fluidOutputs(FluidUtils.getHotWater(1000))
- .duration(1 * SECONDS + 10 * TICKS).eut(TierEU.RECIPE_LV).addTo(fluidHeaterRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(GT_Utility.getIntegratedCircuit(20))
+ .fluidInputs(Materials.Water.getFluid(1000))
+ .fluidOutputs(FluidUtils.getHotWater(1000))
+ .duration(1 * SECONDS + 10 * TICKS)
+ .eut(TierEU.RECIPE_LV)
+ .addTo(fluidHeaterRecipes);
}
private static void fusionRecipes() {
// Hypogen
GT_Values.RA.stdBuilder()
- .fluidInputs(
- ELEMENT.STANDALONE.DRAGON_METAL.getFluidStack(144),
- ELEMENT.STANDALONE.RHUGNOR.getFluidStack(288))
- .fluidOutputs(ELEMENT.STANDALONE.HYPOGEN.getFluidStack(36))
- .duration(6 * MINUTES + 49 * SECONDS + 12 * TICKS).eut(TierEU.RECIPE_UHV)
- .metadata(FUSION_THRESHOLD, 1_200_000_000).addTo(fusionRecipes);
+ .fluidInputs(
+ ELEMENT.STANDALONE.DRAGON_METAL.getFluidStack(144),
+ ELEMENT.STANDALONE.RHUGNOR.getFluidStack(288))
+ .fluidOutputs(ELEMENT.STANDALONE.HYPOGEN.getFluidStack(36))
+ .duration(6 * MINUTES + 49 * SECONDS + 12 * TICKS)
+ .eut(TierEU.RECIPE_UHV)
+ .metadata(FUSION_THRESHOLD, 1_200_000_000)
+ .addTo(fusionRecipes);
// Rhugnor
GT_Values.RA.stdBuilder()
- .fluidInputs(
- MaterialUtils.getMaterial("Infinity", "Neutronium").getMolten(144),
- ALLOY.QUANTUM.getFluidStack(288))
- .fluidOutputs(ELEMENT.STANDALONE.RHUGNOR.getFluidStack(144)).duration(25 * SECONDS + 12 * TICKS)
- .eut(TierEU.RECIPE_UV).metadata(FUSION_THRESHOLD, 2_000_000_000).addTo(fusionRecipes);
+ .fluidInputs(
+ MaterialUtils.getMaterial("Infinity", "Neutronium")
+ .getMolten(144),
+ ALLOY.QUANTUM.getFluidStack(288))
+ .fluidOutputs(ELEMENT.STANDALONE.RHUGNOR.getFluidStack(144))
+ .duration(25 * SECONDS + 12 * TICKS)
+ .eut(TierEU.RECIPE_UV)
+ .metadata(FUSION_THRESHOLD, 2_000_000_000)
+ .addTo(fusionRecipes);
}
private static void assemblyLineRecipes() {
// Containment Casings
GT_Values.RA.stdBuilder()
- .metadata(
- RESEARCH_ITEM,
- ItemDummyResearch.getResearchStack(ASSEMBLY_LINE_RESEARCH.RESEARCH_1_CONTAINMENT, 1))
- .metadata(RESEARCH_TIME, 30 * MINUTES)
- .itemInputs(
- ItemList.Field_Generator_IV.get(32),
- ItemList.Electric_Motor_EV.get(64),
- ItemList.Energy_LapotronicOrb.get(32),
- CI.getTieredComponent(OrePrefixes.cableGt12, 7, 32),
- CI.getTieredComponent(OrePrefixes.wireGt16, 6, 64),
- GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Naquadria, 64L),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gadolinium, 32L),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Samarium, 16L),
- ALLOY.ARCANITE.getGear(8),
- new Object[] { CI.getTieredCircuitOreDictName(5), 64 },
- new Object[] { CI.getTieredCircuitOreDictName(6), 32 },
- new Object[] { CI.getTieredCircuitOreDictName(7), 16 },
- GregtechItemList.Laser_Lens_Special.get(1),
- ItemUtils.simpleMetaStack("miscutils:itemDehydratorCoilWire", 3, 64))
- .fluidInputs(
- ALLOY.NITINOL_60.getFluidStack(144 * 9 * 4),
- ALLOY.ENERGYCRYSTAL.getFluidStack(144 * 9 * 8),
- ALLOY.TUMBAGA.getFluidStack(144 * 9 * 32),
- Materials.Nichrome.getMolten(16 * INGOTS))
- .itemOutputs(ItemUtils.getSimpleStack(ModBlocks.blockCasings3Misc, 15, 32)).eut(TierEU.RECIPE_LuV)
- .duration(20 * MINUTES).addTo(AssemblyLine);
+ .metadata(
+ RESEARCH_ITEM,
+ ItemDummyResearch.getResearchStack(ASSEMBLY_LINE_RESEARCH.RESEARCH_1_CONTAINMENT, 1))
+ .metadata(RESEARCH_TIME, 30 * MINUTES)
+ .itemInputs(
+ ItemList.Field_Generator_IV.get(32),
+ ItemList.Electric_Motor_EV.get(64),
+ ItemList.Energy_LapotronicOrb.get(32),
+ CI.getTieredComponent(OrePrefixes.cableGt12, 7, 32),
+ CI.getTieredComponent(OrePrefixes.wireGt16, 6, 64),
+ GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Naquadria, 64L),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gadolinium, 32L),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Samarium, 16L),
+ ALLOY.ARCANITE.getGear(8),
+ new Object[] { CI.getTieredCircuitOreDictName(5), 64 },
+ new Object[] { CI.getTieredCircuitOreDictName(6), 32 },
+ new Object[] { CI.getTieredCircuitOreDictName(7), 16 },
+ GregtechItemList.Laser_Lens_Special.get(1),
+ ItemUtils.simpleMetaStack("miscutils:itemDehydratorCoilWire", 3, 64))
+ .fluidInputs(
+ ALLOY.NITINOL_60.getFluidStack(144 * 9 * 4),
+ ALLOY.ENERGYCRYSTAL.getFluidStack(144 * 9 * 8),
+ ALLOY.TUMBAGA.getFluidStack(144 * 9 * 32),
+ Materials.Nichrome.getMolten(16 * INGOTS))
+ .itemOutputs(ItemUtils.getSimpleStack(ModBlocks.blockCasings3Misc, 15, 32))
+ .eut(TierEU.RECIPE_LuV)
+ .duration(20 * MINUTES)
+ .addTo(AssemblyLine);
// Turbine Automation Port
GT_Values.RA.stdBuilder()
- .metadata(
- RESEARCH_ITEM,
- ItemDummyResearch.getResearchStack(ASSEMBLY_LINE_RESEARCH.RESEARCH_8_TURBINE_AUTOMATION, 1))
- .metadata(RESEARCH_TIME, 24 * HOURS)
- .itemInputs(
- CI.getTieredMachineHull(8, 4),
- CI.getConveyor(8, 24),
- CI.getElectricMotor(7, 32),
- CI.getElectricPiston(7, 16),
- CI.getEnergyCore(6, 8),
- CI.getPlate(8, 24),
- CI.getTieredComponent(OrePrefixes.screw, 8, 48),
- CI.getTieredComponent(OrePrefixes.bolt, 7, 32),
- CI.getTieredComponent(OrePrefixes.rod, 6, 12),
- new Object[] { CI.getTieredCircuitOreDictName(7), 20 },
- CI.getTieredComponent(OrePrefixes.rotor, 6, 16))
- .fluidInputs(
- CI.getTieredFluid(8, 144 * 32),
- CI.getAlternativeTieredFluid(7, 144 * 16),
- CI.getTertiaryTieredFluid(7, 144 * 16),
- ALLOY.BABBIT_ALLOY.getFluidStack(128 * 144))
- .itemOutputs(GregtechItemList.Hatch_Input_TurbineHousing.get(4)).eut(TierEU.RECIPE_UV)
- .duration(2 * HOURS).addTo(AssemblyLine);
+ .metadata(
+ RESEARCH_ITEM,
+ ItemDummyResearch.getResearchStack(ASSEMBLY_LINE_RESEARCH.RESEARCH_8_TURBINE_AUTOMATION, 1))
+ .metadata(RESEARCH_TIME, 24 * HOURS)
+ .itemInputs(
+ CI.getTieredMachineHull(8, 4),
+ CI.getConveyor(8, 24),
+ CI.getElectricMotor(7, 32),
+ CI.getElectricPiston(7, 16),
+ CI.getEnergyCore(6, 8),
+ CI.getPlate(8, 24),
+ CI.getTieredComponent(OrePrefixes.screw, 8, 48),
+ CI.getTieredComponent(OrePrefixes.bolt, 7, 32),
+ CI.getTieredComponent(OrePrefixes.rod, 6, 12),
+ new Object[] { CI.getTieredCircuitOreDictName(7), 20 },
+ CI.getTieredComponent(OrePrefixes.rotor, 6, 16))
+ .fluidInputs(
+ CI.getTieredFluid(8, 144 * 32),
+ CI.getAlternativeTieredFluid(7, 144 * 16),
+ CI.getTertiaryTieredFluid(7, 144 * 16),
+ ALLOY.BABBIT_ALLOY.getFluidStack(128 * 144))
+ .itemOutputs(GregtechItemList.Hatch_Input_TurbineHousing.get(4))
+ .eut(TierEU.RECIPE_UV)
+ .duration(2 * HOURS)
+ .addTo(AssemblyLine);
/*
* Containment casings
*/
ItemStack[] aCoilWire = new ItemStack[] { ItemUtils.simpleMetaStack("miscutils:itemDehydratorCoilWire", 0, 64),
- ItemUtils.simpleMetaStack("miscutils:itemDehydratorCoilWire", 1, 64),
- ItemUtils.simpleMetaStack("miscutils:itemDehydratorCoilWire", 2, 64),
- ItemUtils.simpleMetaStack("miscutils:itemDehydratorCoilWire", 3, 64), };
+ ItemUtils.simpleMetaStack("miscutils:itemDehydratorCoilWire", 1, 64),
+ ItemUtils.simpleMetaStack("miscutils:itemDehydratorCoilWire", 2, 64),
+ ItemUtils.simpleMetaStack("miscutils:itemDehydratorCoilWire", 3, 64), };
ItemStack[] aGemCasings = new ItemStack[] { GregtechItemList.Battery_Casing_Gem_1.get(1),
- GregtechItemList.Battery_Casing_Gem_2.get(1), GregtechItemList.Battery_Casing_Gem_3.get(1),
- GregtechItemList.Battery_Casing_Gem_4.get(1), };
+ GregtechItemList.Battery_Casing_Gem_2.get(1), GregtechItemList.Battery_Casing_Gem_3.get(1),
+ GregtechItemList.Battery_Casing_Gem_4.get(1), };
ItemStack[] aResearch = new ItemStack[] { Particle.getBaseParticle(Particle.UNKNOWN),
- GregtechItemList.Battery_Casing_Gem_1.get(1), GregtechItemList.Battery_Casing_Gem_2.get(1),
- GregtechItemList.Battery_Casing_Gem_3.get(1), };
+ GregtechItemList.Battery_Casing_Gem_1.get(1), GregtechItemList.Battery_Casing_Gem_2.get(1),
+ GregtechItemList.Battery_Casing_Gem_3.get(1), };
int aCasingSlot = 0;
for (int j = 6; j < 10; j++) {
- GT_Values.RA.stdBuilder().metadata(RESEARCH_ITEM, aResearch[aCasingSlot]).metadata(RESEARCH_TIME, 1 * HOURS)
- .itemInputs(
- CI.getTieredComponent(OrePrefixes.plate, j - 1, 16),
- CI.getTieredComponent(OrePrefixes.cableGt08, j + 1, 32),
- CI.getTieredComponent(OrePrefixes.gearGt, j - 1, 4),
- aCoilWire[aCasingSlot])
- .fluidInputs(
- CI.getTieredFluid(j, 144 * 8),
- CI.getTertiaryTieredFluid(j - 2, 144 * 16),
- CI.getAlternativeTieredFluid(j, 144 * 16))
- .itemOutputs(aGemCasings[aCasingSlot++]).eut(GT_Values.V[j]).duration(2 * MINUTES)
- .addTo(AssemblyLine);
+ GT_Values.RA.stdBuilder()
+ .metadata(RESEARCH_ITEM, aResearch[aCasingSlot])
+ .metadata(RESEARCH_TIME, 1 * HOURS)
+ .itemInputs(
+ CI.getTieredComponent(OrePrefixes.plate, j - 1, 16),
+ CI.getTieredComponent(OrePrefixes.cableGt08, j + 1, 32),
+ CI.getTieredComponent(OrePrefixes.gearGt, j - 1, 4),
+ aCoilWire[aCasingSlot])
+ .fluidInputs(
+ CI.getTieredFluid(j, 144 * 8),
+ CI.getTertiaryTieredFluid(j - 2, 144 * 16),
+ CI.getAlternativeTieredFluid(j, 144 * 16))
+ .itemOutputs(aGemCasings[aCasingSlot++])
+ .eut(GT_Values.V[j])
+ .duration(2 * MINUTES)
+ .addTo(AssemblyLine);
}
/*
@@ -375,379 +395,429 @@ public class RECIPES_GREGTECH {
*/
ItemStack[] aGemBatteries = new ItemStack[] { GregtechItemList.Battery_Gem_1.get(1),
- GregtechItemList.Battery_Gem_2.get(1), GregtechItemList.Battery_Gem_3.get(1),
- GregtechItemList.Battery_Gem_4.get(1), };
+ GregtechItemList.Battery_Gem_2.get(1), GregtechItemList.Battery_Gem_3.get(1),
+ GregtechItemList.Battery_Gem_4.get(1), };
ItemStack[] aExoticInputs = new ItemStack[] { Particle.getBaseParticle(Particle.PROTON),
- Particle.getBaseParticle(Particle.ELECTRON), Particle.getBaseParticle(Particle.CHARM),
- Particle.getBaseParticle(Particle.GRAVITON) };
+ Particle.getBaseParticle(Particle.ELECTRON), Particle.getBaseParticle(Particle.CHARM),
+ Particle.getBaseParticle(Particle.GRAVITON) };
aCasingSlot = 0;
for (int j = 6; j < 10; j++) {
- GT_Values.RA.stdBuilder().metadata(RESEARCH_ITEM, aExoticInputs[aCasingSlot])
- .metadata(RESEARCH_TIME, 5 * HOURS)
- .itemInputs(
- aGemCasings[aCasingSlot],
- ItemUtils.getSimpleStack(aExoticInputs[aCasingSlot], 16),
- CI.getTieredComponent(OrePrefixes.plate, j, 16),
- new Object[] { CI.getTieredCircuitOreDictName(j), 8 },
- CI.getTieredComponent(OrePrefixes.wireGt16, j + 1, 32),
- CI.getTieredComponent(OrePrefixes.bolt, j, 8),
- CI.getTieredComponent(OrePrefixes.screw, j - 1, 8))
- .fluidInputs(
- CI.getTieredFluid(j, 144 * 1 * 16),
- CI.getTertiaryTieredFluid(j - 2, 144 * 2 * 16),
- CI.getAlternativeTieredFluid(j, 144 * 16),
- CI.getTertiaryTieredFluid(j - 1, 144 * 16))
- .itemOutputs(aGemBatteries[aCasingSlot++]).eut(GT_Values.V[j]).duration(2 * MINUTES)
- .addTo(AssemblyLine);
+ GT_Values.RA.stdBuilder()
+ .metadata(RESEARCH_ITEM, aExoticInputs[aCasingSlot])
+ .metadata(RESEARCH_TIME, 5 * HOURS)
+ .itemInputs(
+ aGemCasings[aCasingSlot],
+ ItemUtils.getSimpleStack(aExoticInputs[aCasingSlot], 16),
+ CI.getTieredComponent(OrePrefixes.plate, j, 16),
+ new Object[] { CI.getTieredCircuitOreDictName(j), 8 },
+ CI.getTieredComponent(OrePrefixes.wireGt16, j + 1, 32),
+ CI.getTieredComponent(OrePrefixes.bolt, j, 8),
+ CI.getTieredComponent(OrePrefixes.screw, j - 1, 8))
+ .fluidInputs(
+ CI.getTieredFluid(j, 144 * 1 * 16),
+ CI.getTertiaryTieredFluid(j - 2, 144 * 2 * 16),
+ CI.getAlternativeTieredFluid(j, 144 * 16),
+ CI.getTertiaryTieredFluid(j - 1, 144 * 16))
+ .itemOutputs(aGemBatteries[aCasingSlot++])
+ .eut(GT_Values.V[j])
+ .duration(2 * MINUTES)
+ .addTo(AssemblyLine);
}
if (Baubles.isModLoaded()) {
// Nano Healer
- GT_Values.RA.stdBuilder().metadata(RESEARCH_ITEM, ItemUtils.simpleMetaStack(Items.golden_apple, 1, 1))
- .metadata(RESEARCH_TIME, 10 * MINUTES)
- .itemInputs(
- ItemUtils.getSimpleStack(aGemCasings[2], 4),
- CI.getTieredComponent(OrePrefixes.plate, 8, 32),
- new Object[] { CI.getTieredCircuitOreDictName(7), 16 },
- CI.getTieredComponent(OrePrefixes.cableGt02, 7, 16),
- CI.getTieredComponent(OrePrefixes.gearGt, 6, 6),
- CI.getTieredComponent(OrePrefixes.screw, 7, 16),
- CI.getTieredComponent(OrePrefixes.bolt, 5, 24),
- CI.getTieredComponent(OrePrefixes.frameGt, 4, 12),
- ItemUtils.simpleMetaStack("miscutils:itemDehydratorCoilWire", 3, 64))
- .fluidInputs(
- CI.getTieredFluid(7, 144 * 18 * 16),
- CI.getTertiaryTieredFluid(7, 144 * 18 * 16),
- CI.getAlternativeTieredFluid(6, 144 * 18 * 16),
- CI.getAlternativeTieredFluid(7, 144 * 18 * 16))
- .itemOutputs(ItemUtils.getItemStackFromFQRN("miscutils:personalHealingDevice", 1))
- .eut(TierEU.RECIPE_ZPM).duration(1 * HOURS).addTo(AssemblyLine);
+ GT_Values.RA.stdBuilder()
+ .metadata(RESEARCH_ITEM, ItemUtils.simpleMetaStack(Items.golden_apple, 1, 1))
+ .metadata(RESEARCH_TIME, 10 * MINUTES)
+ .itemInputs(
+ ItemUtils.getSimpleStack(aGemCasings[2], 4),
+ CI.getTieredComponent(OrePrefixes.plate, 8, 32),
+ new Object[] { CI.getTieredCircuitOreDictName(7), 16 },
+ CI.getTieredComponent(OrePrefixes.cableGt02, 7, 16),
+ CI.getTieredComponent(OrePrefixes.gearGt, 6, 6),
+ CI.getTieredComponent(OrePrefixes.screw, 7, 16),
+ CI.getTieredComponent(OrePrefixes.bolt, 5, 24),
+ CI.getTieredComponent(OrePrefixes.frameGt, 4, 12),
+ ItemUtils.simpleMetaStack("miscutils:itemDehydratorCoilWire", 3, 64))
+ .fluidInputs(
+ CI.getTieredFluid(7, 144 * 18 * 16),
+ CI.getTertiaryTieredFluid(7, 144 * 18 * 16),
+ CI.getAlternativeTieredFluid(6, 144 * 18 * 16),
+ CI.getAlternativeTieredFluid(7, 144 * 18 * 16))
+ .itemOutputs(ItemUtils.getItemStackFromFQRN("miscutils:personalHealingDevice", 1))
+ .eut(TierEU.RECIPE_ZPM)
+ .duration(1 * HOURS)
+ .addTo(AssemblyLine);
// Charge Pack LuV-UV
ItemStack[] aChargeResearch = new ItemStack[] {
- ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore7", 1),
- ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore8", 1),
- ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore9", 1),
- ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore10", 1), };
+ ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore7", 1),
+ ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore8", 1),
+ ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore9", 1),
+ ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore10", 1), };
ItemStack[] aChargeOutputs = new ItemStack[] { ItemUtils.getSimpleStack(ModItems.itemChargePack_High_1, 1),
- ItemUtils.getSimpleStack(ModItems.itemChargePack_High_2, 1),
- ItemUtils.getSimpleStack(ModItems.itemChargePack_High_3, 1),
- ItemUtils.getSimpleStack(ModItems.itemChargePack_High_4, 1), };
+ ItemUtils.getSimpleStack(ModItems.itemChargePack_High_2, 1),
+ ItemUtils.getSimpleStack(ModItems.itemChargePack_High_3, 1),
+ ItemUtils.getSimpleStack(ModItems.itemChargePack_High_4, 1), };
int aCurrSlot = 0;
for (int h = 6; h < 10; h++) {
- GT_Values.RA.stdBuilder().metadata(RESEARCH_ITEM, aChargeResearch[aCurrSlot])
- .metadata(RESEARCH_TIME, 10 * (aCurrSlot + 1) * MINUTES)
- .itemInputs(
- ItemUtils.getSimpleStack(aGemBatteries[aCurrSlot], 2),
- aCoilWire[aCurrSlot],
- CI.getTieredComponent(OrePrefixes.plate, h, 8),
- new Object[] { CI.getTieredCircuitOreDictName(h), 4 },
- new Object[] { CI.getTieredCircuitOreDictName(h - 1), 8 },
- CI.getTieredComponent(OrePrefixes.cableGt12, h - 1, 16),
- CI.getTieredComponent(OrePrefixes.screw, h, 16),
- CI.getTieredComponent(OrePrefixes.bolt, h - 2, 32),
- CI.getFieldGenerator(h - 1, 1))
- .fluidInputs(
- CI.getTieredFluid(h, 144 * 4 * 8),
- CI.getTertiaryTieredFluid(h - 1, 144 * 4 * 8),
- CI.getAlternativeTieredFluid(h - 1, 144 * 4 * 8),
- CI.getAlternativeTieredFluid(h - 2, 144 * 4 * 8))
- .itemOutputs(aChargeOutputs[aCurrSlot]).eut(GT_Values.V[h]).duration((aCurrSlot + 1) * HOURS)
- .addTo(AssemblyLine);
+ GT_Values.RA.stdBuilder()
+ .metadata(RESEARCH_ITEM, aChargeResearch[aCurrSlot])
+ .metadata(RESEARCH_TIME, 10 * (aCurrSlot + 1) * MINUTES)
+ .itemInputs(
+ ItemUtils.getSimpleStack(aGemBatteries[aCurrSlot], 2),
+ aCoilWire[aCurrSlot],
+ CI.getTieredComponent(OrePrefixes.plate, h, 8),
+ new Object[] { CI.getTieredCircuitOreDictName(h), 4 },
+ new Object[] { CI.getTieredCircuitOreDictName(h - 1), 8 },
+ CI.getTieredComponent(OrePrefixes.cableGt12, h - 1, 16),
+ CI.getTieredComponent(OrePrefixes.screw, h, 16),
+ CI.getTieredComponent(OrePrefixes.bolt, h - 2, 32),
+ CI.getFieldGenerator(h - 1, 1))
+ .fluidInputs(
+ CI.getTieredFluid(h, 144 * 4 * 8),
+ CI.getTertiaryTieredFluid(h - 1, 144 * 4 * 8),
+ CI.getAlternativeTieredFluid(h - 1, 144 * 4 * 8),
+ CI.getAlternativeTieredFluid(h - 2, 144 * 4 * 8))
+ .itemOutputs(aChargeOutputs[aCurrSlot])
+ .eut(GT_Values.V[h])
+ .duration((aCurrSlot + 1) * HOURS)
+ .addTo(AssemblyLine);
aCurrSlot++;
}
// Cloaking device
GT_Values.RA.stdBuilder()
- .metadata(
- RESEARCH_ITEM,
- ItemDummyResearch.getResearchStack(ASSEMBLY_LINE_RESEARCH.RESEARCH_9_CLOAKING, 1))
- .metadata(RESEARCH_TIME, 10 * MINUTES)
- .itemInputs(
- ItemUtils.getSimpleStack(aGemCasings[3], 4),
- CI.getTieredComponent(OrePrefixes.plate, 8, 32),
- new Object[] { CI.getTieredCircuitOreDictName(7), 16 },
- CI.getTieredComponent(OrePrefixes.cableGt04, 8, 16),
- CI.getTieredComponent(OrePrefixes.gearGt, 7, 6),
- CI.getTieredComponent(OrePrefixes.screw, 8, 16),
- CI.getTieredComponent(OrePrefixes.bolt, 7, 24),
- CI.getTieredComponent(OrePrefixes.frameGt, 5, 12),
- ItemUtils.simpleMetaStack("miscutils:itemDehydratorCoilWire", 3, 64))
- .fluidInputs(
- CI.getTieredFluid(8, 144 * 18 * 16),
- CI.getTertiaryTieredFluid(8, 144 * 18 * 16),
- CI.getAlternativeTieredFluid(7, 144 * 18 * 16),
- CI.getAlternativeTieredFluid(8, 144 * 18 * 16))
- .itemOutputs(ItemUtils.getItemStackFromFQRN("miscutils:personalCloakingDevice-0.0", 1))
- .eut(TierEU.RECIPE_UV).duration(1 * HOURS).addTo(AssemblyLine);
+ .metadata(
+ RESEARCH_ITEM,
+ ItemDummyResearch.getResearchStack(ASSEMBLY_LINE_RESEARCH.RESEARCH_9_CLOAKING, 1))
+ .metadata(RESEARCH_TIME, 10 * MINUTES)
+ .itemInputs(
+ ItemUtils.getSimpleStack(aGemCasings[3], 4),
+ CI.getTieredComponent(OrePrefixes.plate, 8, 32),
+ new Object[] { CI.getTieredCircuitOreDictName(7), 16 },
+ CI.getTieredComponent(OrePrefixes.cableGt04, 8, 16),
+ CI.getTieredComponent(OrePrefixes.gearGt, 7, 6),
+ CI.getTieredComponent(OrePrefixes.screw, 8, 16),
+ CI.getTieredComponent(OrePrefixes.bolt, 7, 24),
+ CI.getTieredComponent(OrePrefixes.frameGt, 5, 12),
+ ItemUtils.simpleMetaStack("miscutils:itemDehydratorCoilWire", 3, 64))
+ .fluidInputs(
+ CI.getTieredFluid(8, 144 * 18 * 16),
+ CI.getTertiaryTieredFluid(8, 144 * 18 * 16),
+ CI.getAlternativeTieredFluid(7, 144 * 18 * 16),
+ CI.getAlternativeTieredFluid(8, 144 * 18 * 16))
+ .itemOutputs(ItemUtils.getItemStackFromFQRN("miscutils:personalCloakingDevice-0.0", 1))
+ .eut(TierEU.RECIPE_UV)
+ .duration(1 * HOURS)
+ .addTo(AssemblyLine);
}
GT_Values.RA.stdBuilder()
- .metadata(RESEARCH_ITEM, GregtechItemList.Industrial_AlloyBlastSmelter.get(1, new Object() {}))
- .metadata(RESEARCH_TIME, 30 * MINUTES)
- .itemInputs(
- GregtechItemList.Industrial_AlloyBlastSmelter.get(64L, new Object() {}),
- GregtechItemList.Industrial_AlloyBlastSmelter.get(64L, new Object() {}),
- GregtechItemList.Industrial_AlloyBlastSmelter.get(64L, new Object() {}),
- GregtechItemList.Industrial_AlloyBlastSmelter.get(64L, new Object() {}),
- ItemList.UV_Coil.get(16L, new Object() {}),
- ItemList.Conveyor_Module_UV.get(4L, new Object() {}),
- new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 8 },
- new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 16 },
- ItemList.Circuit_Chip_PPIC.get(16, new Object() {}),
- ALLOY.PIKYONIUM.getPlate(16),
- ALLOY.CINOBITE.getScrew(32))
- .fluidInputs(
- ALLOY.PIKYONIUM.getFluidStack(144 * 8),
- ALLOY.INDALLOY_140.getFluidStack(144 * 9),
- Materials.SolderingAlloy.getMolten(144 * 10))
- .itemOutputs(GregtechItemList.Mega_AlloyBlastSmelter.get(1L)).eut(TierEU.RECIPE_UHV / 2)
- .duration(1 * MINUTES).addTo(AssemblyLine);
+ .metadata(RESEARCH_ITEM, GregtechItemList.Industrial_AlloyBlastSmelter.get(1, new Object() {}))
+ .metadata(RESEARCH_TIME, 30 * MINUTES)
+ .itemInputs(
+ GregtechItemList.Industrial_AlloyBlastSmelter.get(64L, new Object() {}),
+ GregtechItemList.Industrial_AlloyBlastSmelter.get(64L, new Object() {}),
+ GregtechItemList.Industrial_AlloyBlastSmelter.get(64L, new Object() {}),
+ GregtechItemList.Industrial_AlloyBlastSmelter.get(64L, new Object() {}),
+ ItemList.UV_Coil.get(16L, new Object() {}),
+ ItemList.Conveyor_Module_UV.get(4L, new Object() {}),
+ new Object[] { OrePrefixes.circuit.get(Materials.SuperconductorUHV), 8 },
+ new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), 16 },
+ ItemList.Circuit_Chip_PPIC.get(16, new Object() {}),
+ ALLOY.PIKYONIUM.getPlate(16),
+ ALLOY.CINOBITE.getScrew(32))
+ .fluidInputs(
+ ALLOY.PIKYONIUM.getFluidStack(144 * 8),
+ ALLOY.INDALLOY_140.getFluidStack(144 * 9),
+ Materials.SolderingAlloy.getMolten(144 * 10))
+ .itemOutputs(GregtechItemList.Mega_AlloyBlastSmelter.get(1L))
+ .eut(TierEU.RECIPE_UHV / 2)
+ .duration(1 * MINUTES)
+ .addTo(AssemblyLine);
}
private static void laserEngraverRecipes() {
// Laser Sensors and Emitters together
GregtechItemList[] aTransParts = new GregtechItemList[] { GregtechItemList.TransmissionComponent_LV,
- GregtechItemList.TransmissionComponent_MV, GregtechItemList.TransmissionComponent_HV,
- GregtechItemList.TransmissionComponent_EV, GregtechItemList.TransmissionComponent_IV,
- GregtechItemList.TransmissionComponent_LuV, GregtechItemList.TransmissionComponent_ZPM,
- GregtechItemList.TransmissionComponent_UV, GregtechItemList.TransmissionComponent_UHV, };
+ GregtechItemList.TransmissionComponent_MV, GregtechItemList.TransmissionComponent_HV,
+ GregtechItemList.TransmissionComponent_EV, GregtechItemList.TransmissionComponent_IV,
+ GregtechItemList.TransmissionComponent_LuV, GregtechItemList.TransmissionComponent_ZPM,
+ GregtechItemList.TransmissionComponent_UV, GregtechItemList.TransmissionComponent_UHV, };
for (int i = 1; i < aTransParts.length; i++) {
- GT_Values.RA.stdBuilder().itemInputs(CI.getEmitter(i, 2), CI.getSensor(i, 2))
- .itemOutputs(aTransParts[i - 1].get(1)).duration(5 * SECONDS).eut(GT_Values.VP[i])
- .addTo(laserEngraverRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(CI.getEmitter(i, 2), CI.getSensor(i, 2))
+ .itemOutputs(aTransParts[i - 1].get(1))
+ .duration(5 * SECONDS)
+ .eut(GT_Values.VP[i])
+ .addTo(laserEngraverRecipes);
}
GT_Values.RA.stdBuilder()
- .itemInputs(
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Tungsten, 6L),
- GregtechItemList.Laser_Lens_Special.get(0))
- .itemOutputs(ELEMENT.STANDALONE.CELESTIAL_TUNGSTEN.getDust(1)).duration(3 * MINUTES)
- .eut(MaterialUtils.getVoltageForTier(ELEMENT.STANDALONE.CELESTIAL_TUNGSTEN.vTier))
- .addTo(laserEngraverRecipes);
+ .itemInputs(
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Tungsten, 6L),
+ GregtechItemList.Laser_Lens_Special.get(0))
+ .itemOutputs(ELEMENT.STANDALONE.CELESTIAL_TUNGSTEN.getDust(1))
+ .duration(3 * MINUTES)
+ .eut(MaterialUtils.getVoltageForTier(ELEMENT.STANDALONE.CELESTIAL_TUNGSTEN.vTier))
+ .addTo(laserEngraverRecipes);
GT_Values.RA.stdBuilder()
- .itemInputs(
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Titanium, 8L),
- GregtechItemList.Laser_Lens_Special.get(0))
- .itemOutputs(ELEMENT.STANDALONE.ASTRAL_TITANIUM.getDust(1)).duration(2 * MINUTES)
- .eut(MaterialUtils.getVoltageForTier(ELEMENT.STANDALONE.ASTRAL_TITANIUM.vTier))
- .addTo(laserEngraverRecipes);
+ .itemInputs(
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Titanium, 8L),
+ GregtechItemList.Laser_Lens_Special.get(0))
+ .itemOutputs(ELEMENT.STANDALONE.ASTRAL_TITANIUM.getDust(1))
+ .duration(2 * MINUTES)
+ .eut(MaterialUtils.getVoltageForTier(ELEMENT.STANDALONE.ASTRAL_TITANIUM.vTier))
+ .addTo(laserEngraverRecipes);
- GT_Values.RA.stdBuilder().itemInputs(ALLOY.NITINOL_60.getBlock(2), GregtechItemList.Laser_Lens_Special.get(0))
- .itemOutputs(ELEMENT.STANDALONE.ADVANCED_NITINOL.getBlock(1)).duration(1 * MINUTES)
- .eut(MaterialUtils.getVoltageForTier(ELEMENT.STANDALONE.ADVANCED_NITINOL.vTier))
- .addTo(laserEngraverRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ALLOY.NITINOL_60.getBlock(2), GregtechItemList.Laser_Lens_Special.get(0))
+ .itemOutputs(ELEMENT.STANDALONE.ADVANCED_NITINOL.getBlock(1))
+ .duration(1 * MINUTES)
+ .eut(MaterialUtils.getVoltageForTier(ELEMENT.STANDALONE.ADVANCED_NITINOL.vTier))
+ .addTo(laserEngraverRecipes);
GT_Values.RA.stdBuilder()
- .itemInputs(
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glass, 64L),
- GregtechItemList.Laser_Lens_Special.get(0))
- .itemOutputs(ELEMENT.STANDALONE.CHRONOMATIC_GLASS.getDust(1)).duration(5 * MINUTES)
- .eut(MaterialUtils.getVoltageForTier(ELEMENT.STANDALONE.CHRONOMATIC_GLASS.vTier))
- .addTo(laserEngraverRecipes);
+ .itemInputs(
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glass, 64L),
+ GregtechItemList.Laser_Lens_Special.get(0))
+ .itemOutputs(ELEMENT.STANDALONE.CHRONOMATIC_GLASS.getDust(1))
+ .duration(5 * MINUTES)
+ .eut(MaterialUtils.getVoltageForTier(ELEMENT.STANDALONE.CHRONOMATIC_GLASS.vTier))
+ .addTo(laserEngraverRecipes);
- GT_Values.RA.stdBuilder().itemInputs(CI.getFieldGenerator(6, 1), CI.getEmitter(7, 2))
- .itemOutputs(ItemDummyResearch.getResearchStack(ASSEMBLY_LINE_RESEARCH.RESEARCH_1_CONTAINMENT, 1))
- .duration(5 * MINUTES).eut(TierEU.RECIPE_IV).addTo(laserEngraverRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(CI.getFieldGenerator(6, 1), CI.getEmitter(7, 2))
+ .itemOutputs(ItemDummyResearch.getResearchStack(ASSEMBLY_LINE_RESEARCH.RESEARCH_1_CONTAINMENT, 1))
+ .duration(5 * MINUTES)
+ .eut(TierEU.RECIPE_IV)
+ .addTo(laserEngraverRecipes);
// Distillus Upgrade Chip
GT_Values.RA.stdBuilder()
- .itemInputs(
- GregtechItemList.Laser_Lens_WoodsGlass.get(0),
- ItemUtils.simpleMetaStack(AgriculturalChem.mBioCircuit, 20, 1))
- .itemOutputs(GregtechItemList.Distillus_Upgrade_Chip.get(1)).duration(5 * MINUTES).eut(TierEU.RECIPE_IV)
- .addTo(laserEngraverRecipes);
+ .itemInputs(
+ GregtechItemList.Laser_Lens_WoodsGlass.get(0),
+ ItemUtils.simpleMetaStack(AgriculturalChem.mBioCircuit, 20, 1))
+ .itemOutputs(GregtechItemList.Distillus_Upgrade_Chip.get(1))
+ .duration(5 * MINUTES)
+ .eut(TierEU.RECIPE_IV)
+ .addTo(laserEngraverRecipes);
}
private static void breweryRecipes() {
if (Loader.isModLoaded("OpenBlocks")) {
- GT_Values.RA.stdBuilder().itemInputs(GT_Utility.getIntegratedCircuit(14))
- .fluidInputs(FluidRegistry.getFluidStack("mobessence", 100))
- .fluidOutputs(FluidRegistry.getFluidStack("liquidxp", 1332)).duration(5 * SECONDS)
- .eut(TierEU.RECIPE_MV).addTo(brewingRecipes);
- GT_Values.RA.stdBuilder().itemInputs(GT_Utility.getIntegratedCircuit(14))
- .fluidInputs(FluidRegistry.getFluidStack("liquidxp", 1332))
- .fluidOutputs(FluidRegistry.getFluidStack("mobessence", 100)).duration(5 * SECONDS)
- .eut(TierEU.RECIPE_MV).addTo(brewingRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(GT_Utility.getIntegratedCircuit(14))
+ .fluidInputs(FluidRegistry.getFluidStack("mobessence", 100))
+ .fluidOutputs(FluidRegistry.getFluidStack("liquidxp", 1332))
+ .duration(5 * SECONDS)
+ .eut(TierEU.RECIPE_MV)
+ .addTo(brewingRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(GT_Utility.getIntegratedCircuit(14))
+ .fluidInputs(FluidRegistry.getFluidStack("liquidxp", 1332))
+ .fluidOutputs(FluidRegistry.getFluidStack("mobessence", 100))
+ .duration(5 * SECONDS)
+ .eut(TierEU.RECIPE_MV)
+ .addTo(brewingRecipes);
}
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getSimpleStack(BOP_Block_Registrator.sapling_Rainforest))
- .fluidInputs(Materials.Water.getFluid(100L)).fluidOutputs(Materials.Biomass.getFluid(100L))
- .duration(1 * MINUTES).eut(3).addTo(brewingRecipes);
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getSimpleStack(BOP_Block_Registrator.sapling_Rainforest))
- .fluidInputs(Materials.Honey.getFluid(100L)).fluidOutputs(Materials.Biomass.getFluid(100L))
- .duration(1 * MINUTES).eut(3).addTo(brewingRecipes);
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getSimpleStack(BOP_Block_Registrator.sapling_Rainforest))
- .fluidInputs(FluidUtils.getFluidStack("juice", 100)).fluidOutputs(Materials.Biomass.getFluid(100L))
- .duration(1 * MINUTES).eut(3).addTo(brewingRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getSimpleStack(BOP_Block_Registrator.sapling_Rainforest))
+ .fluidInputs(Materials.Water.getFluid(100L))
+ .fluidOutputs(Materials.Biomass.getFluid(100L))
+ .duration(1 * MINUTES)
+ .eut(3)
+ .addTo(brewingRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getSimpleStack(BOP_Block_Registrator.sapling_Rainforest))
+ .fluidInputs(Materials.Honey.getFluid(100L))
+ .fluidOutputs(Materials.Biomass.getFluid(100L))
+ .duration(1 * MINUTES)
+ .eut(3)
+ .addTo(brewingRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getSimpleStack(BOP_Block_Registrator.sapling_Rainforest))
+ .fluidInputs(FluidUtils.getFluidStack("juice", 100))
+ .fluidOutputs(Materials.Biomass.getFluid(100L))
+ .duration(1 * MINUTES)
+ .eut(3)
+ .addTo(brewingRecipes);
}
private static void cuttingSawRecipes() {
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getItemStackOfAmountFromOreDict("blockMeatRaw", 1))
- .itemOutputs(ItemUtils.getItemStackOfAmountFromOreDict("plateMeatRaw", 9)).duration(16 * TICKS)
- .eut(TierEU.RECIPE_ULV).addTo(cutterRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getItemStackOfAmountFromOreDict("blockMeatRaw", 1))
+ .itemOutputs(ItemUtils.getItemStackOfAmountFromOreDict("plateMeatRaw", 9))
+ .duration(16 * TICKS)
+ .eut(TierEU.RECIPE_ULV)
+ .addTo(cutterRecipes);
}
private static void electrolyzerRecipes() {
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getSimpleStack(ModItems.dustDecayedRadium226, 1))
- .fluidOutputs(FluidUtils.getFluidStack("radon", 144)).duration(1 * MINUTES + 30 * SECONDS)
- .eut(TierEU.RECIPE_HV / 2).addTo(electrolyzerRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getSimpleStack(ModItems.dustDecayedRadium226, 1))
+ .fluidOutputs(FluidUtils.getFluidStack("radon", 144))
+ .duration(1 * MINUTES + 30 * SECONDS)
+ .eut(TierEU.RECIPE_HV / 2)
+ .addTo(electrolyzerRecipes);
}
private static void extruderRecipes() {
// Osmium Credits
GT_Values.RA.stdBuilder()
- .itemInputs(
- ItemUtils.getItemStackOfAmountFromOreDict("blockOsmium", 1),
- ItemList.Shape_Mold_Credit.get(0))
- .itemOutputs(ItemList.Credit_Greg_Osmium.get(1)).duration(6 * MINUTES + 20 * SECONDS)
- .eut(TierEU.RECIPE_EV / 2).addTo(extruderRecipes);
+ .itemInputs(ItemUtils.getItemStackOfAmountFromOreDict("blockOsmium", 1), ItemList.Shape_Mold_Credit.get(0))
+ .itemOutputs(ItemList.Credit_Greg_Osmium.get(1))
+ .duration(6 * MINUTES + 20 * SECONDS)
+ .eut(TierEU.RECIPE_EV / 2)
+ .addTo(extruderRecipes);
}
private static void blastSmelterRecipes() {
// Eglin Steel
CORE.RA.addBlastSmelterRecipe(
- new ItemStack[] { ItemUtils.getGregtechCircuit(6), ELEMENT.getInstance().IRON.getDust(4),
- ALLOY.KANTHAL.getDust(1), ALLOY.INVAR.getDust(5), ELEMENT.getInstance().SULFUR.getDust(1),
- ELEMENT.getInstance().CARBON.getDust(1), ELEMENT.getInstance().SILICON.getDust(4) },
- ALLOY.EGLIN_STEEL.getFluidStack(16 * 144),
- 0,
- 20 * 45,
- 120);
+ new ItemStack[] { ItemUtils.getGregtechCircuit(6), ELEMENT.getInstance().IRON.getDust(4),
+ ALLOY.KANTHAL.getDust(1), ALLOY.INVAR.getDust(5), ELEMENT.getInstance().SULFUR.getDust(1),
+ ELEMENT.getInstance().CARBON.getDust(1), ELEMENT.getInstance().SILICON.getDust(4) },
+ ALLOY.EGLIN_STEEL.getFluidStack(16 * 144),
+ 0,
+ 20 * 45,
+ 120);
// HG1223
CORE.RA.addBlastSmelterRecipe(
- new ItemStack[] { ItemUtils.getGregtechCircuit(5), ELEMENT.getInstance().BARIUM.getDust(2),
- ELEMENT.getInstance().CALCIUM.getDust(2), ELEMENT.getInstance().COPPER.getDust(3), },
- new FluidStack[] { ELEMENT.getInstance().OXYGEN.getFluidStack(8000),
- ELEMENT.getInstance().MERCURY.getFluidStack(1000), },
- ALLOY.HG1223.getFluidStack(16 * 144),
- null,
- new int[] { 10000 }, // Output Chance
- 20 * 120,
- 30720);
+ new ItemStack[] { ItemUtils.getGregtechCircuit(5), ELEMENT.getInstance().BARIUM.getDust(2),
+ ELEMENT.getInstance().CALCIUM.getDust(2), ELEMENT.getInstance().COPPER.getDust(3), },
+ new FluidStack[] { ELEMENT.getInstance().OXYGEN.getFluidStack(8000),
+ ELEMENT.getInstance().MERCURY.getFluidStack(1000), },
+ ALLOY.HG1223.getFluidStack(16 * 144),
+ null,
+ new int[] { 10000 }, // Output Chance
+ 20 * 120,
+ 30720);
// NITINOL_60
CORE.RA.addBlastSmelterRecipe(
- new ItemStack[] { ItemUtils.getGregtechCircuit(2), ELEMENT.getInstance().TITANIUM.getDust(3),
- ELEMENT.getInstance().NICKEL.getDust(2) },
- ALLOY.NITINOL_60.getFluidStack(5 * 144),
- 0,
- 20 * 75,
- 7680);
+ new ItemStack[] { ItemUtils.getGregtechCircuit(2), ELEMENT.getInstance().TITANIUM.getDust(3),
+ ELEMENT.getInstance().NICKEL.getDust(2) },
+ ALLOY.NITINOL_60.getFluidStack(5 * 144),
+ 0,
+ 20 * 75,
+ 7680);
// INDALLOY_140
CORE.RA.addBlastSmelterRecipe(
- new ItemStack[] { ItemUtils.getGregtechCircuit(5), ELEMENT.getInstance().BISMUTH.getDust(47),
- ELEMENT.getInstance().LEAD.getDust(25), ELEMENT.getInstance().TIN.getDust(13),
- ELEMENT.getInstance().CADMIUM.getDust(10), ELEMENT.getInstance().INDIUM.getDust(5) },
- ALLOY.INDALLOY_140.getFluidStack(100 * 144),
- 0,
- 20 * 40,
- 7680);
+ new ItemStack[] { ItemUtils.getGregtechCircuit(5), ELEMENT.getInstance().BISMUTH.getDust(47),
+ ELEMENT.getInstance().LEAD.getDust(25), ELEMENT.getInstance().TIN.getDust(13),
+ ELEMENT.getInstance().CADMIUM.getDust(10), ELEMENT.getInstance().INDIUM.getDust(5) },
+ ALLOY.INDALLOY_140.getFluidStack(100 * 144),
+ 0,
+ 20 * 40,
+ 7680);
// Germanium Roasting
CORE.RA.addBlastSmelterRecipe(
- new ItemStack[] { ItemUtils.getGregtechCircuit(15),
- ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedSphalerite", 8),
- ELEMENT.getInstance().CARBON.getDust(32), },
- Materials.SulfuricAcid.getFluid(2000),
- ELEMENT.getInstance().GERMANIUM.getFluidStack(288),
- 0,
- 20 * 300,
- 4000);
+ new ItemStack[] { ItemUtils.getGregtechCircuit(15),
+ ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedSphalerite", 8),
+ ELEMENT.getInstance().CARBON.getDust(32), },
+ Materials.SulfuricAcid.getFluid(2000),
+ ELEMENT.getInstance().GERMANIUM.getFluidStack(288),
+ 0,
+ 20 * 300,
+ 4000);
// Rhenium Roasting
CORE.RA.addBlastSmelterRecipe(
- new ItemStack[] { ItemUtils.getGregtechCircuit(20),
- ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedScheelite", 8),
- ELEMENT.getInstance().CARBON.getDust(32), },
- Materials.SulfuricAcid.getFluid(10000),
- ELEMENT.getInstance().RHENIUM.getFluidStack(144),
- 0,
- 20 * 300,
- 4000);
+ new ItemStack[] { ItemUtils.getGregtechCircuit(20),
+ ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedScheelite", 8),
+ ELEMENT.getInstance().CARBON.getDust(32), },
+ Materials.SulfuricAcid.getFluid(10000),
+ ELEMENT.getInstance().RHENIUM.getFluidStack(144),
+ 0,
+ 20 * 300,
+ 4000);
CORE.RA.addBlastSmelterRecipe(
- new ItemStack[] { ItemUtils.getGregtechCircuit(20),
- ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedMolybdenite", 8),
- ELEMENT.getInstance().CARBON.getDust(32), },
- Materials.SulfuricAcid.getFluid(7500),
- ELEMENT.getInstance().RHENIUM.getFluidStack(144),
- 0,
- 20 * 300,
- 4000);
+ new ItemStack[] { ItemUtils.getGregtechCircuit(20),
+ ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedMolybdenite", 8),
+ ELEMENT.getInstance().CARBON.getDust(32), },
+ Materials.SulfuricAcid.getFluid(7500),
+ ELEMENT.getInstance().RHENIUM.getFluidStack(144),
+ 0,
+ 20 * 300,
+ 4000);
CORE.RA.addBlastSmelterRecipe(
- new ItemStack[] { ItemUtils.getGregtechCircuit(20),
- ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedMolybdenum", 8),
- ELEMENT.getInstance().CARBON.getDust(32), },
- Materials.SulfuricAcid.getFluid(5000),
- ELEMENT.getInstance().RHENIUM.getFluidStack(288),
- 0,
- 20 * 300,
- 4000);
+ new ItemStack[] { ItemUtils.getGregtechCircuit(20),
+ ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedMolybdenum", 8),
+ ELEMENT.getInstance().CARBON.getDust(32), },
+ Materials.SulfuricAcid.getFluid(5000),
+ ELEMENT.getInstance().RHENIUM.getFluidStack(288),
+ 0,
+ 20 * 300,
+ 4000);
// Thallium Roasting
CORE.RA.addBlastSmelterRecipe(
- new ItemStack[] { ItemUtils.getGregtechCircuit(21),
- ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedZinc", 3),
- ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedPyrite", 4),
- ELEMENT.getInstance().CARBON.getDust(16), },
- Materials.SulfuricAcid.getFluid(1250),
- ELEMENT.getInstance().THALLIUM.getFluidStack(288),
- new ItemStack[] {},
- new int[] { 0 },
- 20 * 75,
- 8000,
- 3700,
- false);
+ new ItemStack[] { ItemUtils.getGregtechCircuit(21),
+ ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedZinc", 3),
+ ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedPyrite", 4),
+ ELEMENT.getInstance().CARBON.getDust(16), },
+ Materials.SulfuricAcid.getFluid(1250),
+ ELEMENT.getInstance().THALLIUM.getFluidStack(288),
+ new ItemStack[] {},
+ new int[] { 0 },
+ 20 * 75,
+ 8000,
+ 3700,
+ false);
// Strontium processing
CORE.RA.addBlastSmelterRecipe(
- new ItemStack[] { ItemUtils.getGregtechCircuit(21), MISC_MATERIALS.STRONTIUM_OXIDE.getDust(8),
- ELEMENT.getInstance().ALUMINIUM.getDust(8), },
- (FluidStack) null,
- ELEMENT.getInstance().OXYGEN.getFluidStack(8000),
- new ItemStack[] { ELEMENT.getInstance().ALUMINIUM.getIngot(8),
- ELEMENT.getInstance().STRONTIUM.getIngot(8) },
- new int[] { 10000, 10000 }, // Output Chance
- 20 * 120,
- 480 * 4);
+ new ItemStack[] { ItemUtils.getGregtechCircuit(21), MISC_MATERIALS.STRONTIUM_OXIDE.getDust(8),
+ ELEMENT.getInstance().ALUMINIUM.getDust(8), },
+ (FluidStack) null,
+ ELEMENT.getInstance().OXYGEN.getFluidStack(8000),
+ new ItemStack[] { ELEMENT.getInstance().ALUMINIUM.getIngot(8),
+ ELEMENT.getInstance().STRONTIUM.getIngot(8) },
+ new int[] { 10000, 10000 }, // Output Chance
+ 20 * 120,
+ 480 * 4);
// molten botmium
CORE.RA.addBlastSmelterRecipe(
- new ItemStack[] { ItemUtils.getGregtechCircuit(4),
- ItemUtils.getItemStackOfAmountFromOreDict("dustNitinol60", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustOsmium", 6),
- ItemUtils.getItemStackOfAmountFromOreDict("dustRuthenium", 6),
- ItemUtils.getItemStackOfAmountFromOreDict("dustThallium", 3) },
- GT_Values.NF,
- ALLOY.BOTMIUM.getFluidStack(2304),
- 0,
- 20 * 120,
- 491520);
+ new ItemStack[] { ItemUtils.getGregtechCircuit(4),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustNitinol60", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustOsmium", 6),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustRuthenium", 6),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustThallium", 3) },
+ GT_Values.NF,
+ ALLOY.BOTMIUM.getFluidStack(2304),
+ 0,
+ 20 * 120,
+ 491520);
// molten precious metals alloy
CORE.RA.addBlastSmelterRecipe(
- new ItemStack[] { ItemUtils.getGregtechCircuit(6),
- ItemUtils.getItemStackOfAmountFromOreDict("dustRuthenium", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustRhodium", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustPalladium", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustPlatinum", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustOsmium", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustIridium", 1) },
- GT_Values.NF,
- FluidUtils.getFluidStack("molten.precious metals alloy", 864),
- 0,
- 20 * 540,
- 7864320);
+ new ItemStack[] { ItemUtils.getGregtechCircuit(6),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustRuthenium", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustRhodium", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustPalladium", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustPlatinum", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustOsmium", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustIridium", 1) },
+ GT_Values.NF,
+ FluidUtils.getFluidStack("molten.precious metals alloy", 864),
+ 0,
+ 20 * 540,
+ 7864320);
}
private static void dehydratorRecipes() {
@@ -757,354 +827,411 @@ public class RECIPES_GREGTECH {
ItemStack foodRaisins = ItemUtils.getItemStackOfAmountFromOreDictNoBroken("foodRaisins", 1);
if (cropGrape != null && foodRaisins != null) CORE.RA.addDehydratorRecipe(
- new ItemStack[] { CI.getNumberedBioCircuit(20), cropGrape }, // Item
- null, // Fluid input (slot 1)
- null, // Fluid output (slot 2)
- new ItemStack[] { foodRaisins }, // Output
- new int[] { 10000 },
- 10, // Time in ticks
- 2); // EU
+ new ItemStack[] { CI.getNumberedBioCircuit(20), cropGrape }, // Item
+ null, // Fluid input (slot 1)
+ null, // Fluid output (slot 2)
+ new ItemStack[] { foodRaisins }, // Output
+ new int[] { 10000 },
+ 10, // Time in ticks
+ 2); // EU
// Process Waste Water
CORE.RA.addDehydratorRecipe(
- new ItemStack[] { CI.getNumberedBioCircuit(21) },
- FluidUtils.getFluidStack("fluid.sludge", 1000),
- FluidUtils.getFluidStack("nitricacid", 10),
- new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustTinyIron", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustTinyCopper", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustTinyTin", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustTinyNickel", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustTinyCobalt", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustTinyAluminium", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustTinySilver", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustTinyGold", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustTinyIridium", 1) },
- new int[] { 10, 5, 5, 4, 4, 3, 2, 2, 1 },
- 2 * 20,
- 500); // EU
+ new ItemStack[] { CI.getNumberedBioCircuit(21) },
+ FluidUtils.getFluidStack("fluid.sludge", 1000),
+ FluidUtils.getFluidStack("nitricacid", 10),
+ new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustTinyIron", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustTinyCopper", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustTinyTin", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustTinyNickel", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustTinyCobalt", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustTinyAluminium", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustTinySilver", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustTinyGold", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustTinyIridium", 1) },
+ new int[] { 10, 5, 5, 4, 4, 3, 2, 2, 1 },
+ 2 * 20,
+ 500); // EU
// C8H10 = C8H8 + 2H
CORE.RA.addDehydratorRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(18), CI.emptyCells(3) },
- FluidUtils.getFluidStack("fluid.ethylbenzene", 1000),
- null,
- new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("cellStyrene", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("cellHydrogen", 2) },
- new int[] { 10000, 10000 },
- 3 * 20,
- 30);
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(18), CI.emptyCells(3) },
+ FluidUtils.getFluidStack("fluid.ethylbenzene", 1000),
+ null,
+ new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("cellStyrene", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("cellHydrogen", 2) },
+ new int[] { 10000, 10000 },
+ 3 * 20,
+ 30);
/*
* Add custom recipes for drying leather
*/
if (Backpack.isModLoaded()) {
CORE.RA.addDehydratorRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(18), new ItemStack(Items.leather, 2) },
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(18), new ItemStack(Items.leather, 2) },
+ FluidUtils.getFluidStack("fluid.ethylbenzene", 1000),
+ null,
+ new ItemStack[] { ItemUtils.getCorrectStacktype("Backpack:tannedLeather", 1) },
+ new int[] { 10000 },
+ 5 * 20,
+ 180);
+ if (NewHorizonsCoreMod.isModLoaded()) {
+ CORE.RA.addDehydratorRecipe(
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(18),
+ GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.ArtificialLeather", 2L, 0) },
FluidUtils.getFluidStack("fluid.ethylbenzene", 1000),
null,
new ItemStack[] { ItemUtils.getCorrectStacktype("Backpack:tannedLeather", 1) },
new int[] { 10000 },
5 * 20,
180);
- if (NewHorizonsCoreMod.isModLoaded()) {
- CORE.RA.addDehydratorRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(18),
- GT_ModHandler.getModItem(NewHorizonsCoreMod.ID, "item.ArtificialLeather", 2L, 0) },
- FluidUtils.getFluidStack("fluid.ethylbenzene", 1000),
- null,
- new ItemStack[] { ItemUtils.getCorrectStacktype("Backpack:tannedLeather", 1) },
- new int[] { 10000 },
- 5 * 20,
- 180);
}
}
// Alternative ACETIC ANHYDRIDE recipe for Kevlar Line
// 2C2H4O2 = C4H6O3 + H2O
CORE.RA.addDehydratorRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(18), CI.emptyCells(1) },
- FluidUtils.getFluidStack("aceticacid", 2000),
- MISC_MATERIALS.ACETIC_ANHYDRIDE.getFluidStack(1000),
- new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("cellWater", 1), },
- new int[] { 10000 },
- 30 * 20,
- 480);
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(18), CI.emptyCells(1) },
+ FluidUtils.getFluidStack("aceticacid", 2000),
+ MISC_MATERIALS.ACETIC_ANHYDRIDE.getFluidStack(1000),
+ new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("cellWater", 1), },
+ new int[] { 10000 },
+ 30 * 20,
+ 480);
}
private static void largeChemReactorRecipes() {
// Styrene
// C8H10 = C8H8 + 2H
- GT_Values.RA.stdBuilder().itemInputs(GT_Utility.getIntegratedCircuit(24)).itemOutputs()
- .fluidInputs(FluidUtils.getFluidStack("fluid.ethylbenzene", 1000))
- .fluidOutputs(Materials.Styrene.getFluid(1000L), Materials.Hydrogen.getGas(2000))
- .duration(1 * SECONDS + 10 * TICKS).eut(TierEU.RECIPE_LV).addTo(multiblockChemicalReactorRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(GT_Utility.getIntegratedCircuit(24))
+ .itemOutputs()
+ .fluidInputs(FluidUtils.getFluidStack("fluid.ethylbenzene", 1000))
+ .fluidOutputs(Materials.Styrene.getFluid(1000L), Materials.Hydrogen.getGas(2000))
+ .duration(1 * SECONDS + 10 * TICKS)
+ .eut(TierEU.RECIPE_LV)
+ .addTo(multiblockChemicalReactorRecipes);
// Short-cut Styrene
// C6H6 + C2H4 = C8H8 + 2H
- GT_Values.RA.stdBuilder().itemInputs(GT_Utility.getIntegratedCircuit(24)).itemOutputs()
- .fluidInputs(Materials.Ethylene.getGas(500L), Materials.Benzene.getFluid(500L))
- .fluidOutputs(Materials.Styrene.getFluid(500L), Materials.Hydrogen.getGas(1000)).duration(12 * SECONDS)
- .eut(TierEU.RECIPE_MV).addTo(multiblockChemicalReactorRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(GT_Utility.getIntegratedCircuit(24))
+ .itemOutputs()
+ .fluidInputs(Materials.Ethylene.getGas(500L), Materials.Benzene.getFluid(500L))
+ .fluidOutputs(Materials.Styrene.getFluid(500L), Materials.Hydrogen.getGas(1000))
+ .duration(12 * SECONDS)
+ .eut(TierEU.RECIPE_MV)
+ .addTo(multiblockChemicalReactorRecipes);
}
private static void assemblerRecipes() {
GT_Values.RA.stdBuilder()
- .itemInputs(
- GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Vanadium, 32L),
- GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.VanadiumSteel, 8L))
- .itemOutputs(ItemUtils.simpleMetaStack(ModItems.itemHalfCompleteCasings, 0, 4))
- .fluidInputs(Materials.Oxygen.getGas(8000L)).duration(16 * SECONDS).eut(TierEU.RECIPE_MV / 2)
- .addTo(assemblerRecipes);
+ .itemInputs(
+ GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Vanadium, 32L),
+ GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.VanadiumSteel, 8L))
+ .itemOutputs(ItemUtils.simpleMetaStack(ModItems.itemHalfCompleteCasings, 0, 4))
+ .fluidInputs(Materials.Oxygen.getGas(8000L))
+ .duration(16 * SECONDS)
+ .eut(TierEU.RECIPE_MV / 2)
+ .addTo(assemblerRecipes);
GT_Values.RA.stdBuilder()
- .itemInputs(
- ItemUtils.simpleMetaStack(ModItems.itemHalfCompleteCasings, 0, 2),
- GT_OreDictUnificator.get(OrePrefixes.plate, Materials.VanadiumGallium, 8L))
- .itemOutputs(ItemUtils.simpleMetaStack(ModItems.itemHalfCompleteCasings, 1, 8))
- .fluidInputs(Materials.Tantalum.getMolten(4 * INGOTS)).duration(32 * SECONDS).eut(TierEU.RECIPE_MV)
- .addTo(assemblerRecipes);
+ .itemInputs(
+ ItemUtils.simpleMetaStack(ModItems.itemHalfCompleteCasings, 0, 2),
+ GT_OreDictUnificator.get(OrePrefixes.plate, Materials.VanadiumGallium, 8L))
+ .itemOutputs(ItemUtils.simpleMetaStack(ModItems.itemHalfCompleteCasings, 1, 8))
+ .fluidInputs(Materials.Tantalum.getMolten(4 * INGOTS))
+ .duration(32 * SECONDS)
+ .eut(TierEU.RECIPE_MV)
+ .addTo(assemblerRecipes);
GT_Values.RA.stdBuilder()
- .itemInputs(
- ItemUtils.simpleMetaStack(ModItems.itemHalfCompleteCasings, 1, 1),
- GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Lead, 4L),
- ItemUtils.getItemStackOfAmountFromOreDict(CI.getTieredCircuitOreDictName(3), 4),
- GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorHV, 2L))
- .itemOutputs(ItemUtils.getSimpleStack(GregtechItemList.Casing_Vanadium_Redox.get(1), 1))
- .fluidInputs(Materials.Oxygen.getGas(16 * BUCKETS)).duration(3 * SECONDS + 4 * TICKS)
- .eut(TierEU.RECIPE_HV / 2).addTo(assemblerRecipes);
+ .itemInputs(
+ ItemUtils.simpleMetaStack(ModItems.itemHalfCompleteCasings, 1, 1),
+ GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Lead, 4L),
+ ItemUtils.getItemStackOfAmountFromOreDict(CI.getTieredCircuitOreDictName(3), 4),
+ GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorHV, 2L))
+ .itemOutputs(ItemUtils.getSimpleStack(GregtechItemList.Casing_Vanadium_Redox.get(1), 1))
+ .fluidInputs(Materials.Oxygen.getGas(16 * BUCKETS))
+ .duration(3 * SECONDS + 4 * TICKS)
+ .eut(TierEU.RECIPE_HV / 2)
+ .addTo(assemblerRecipes);
GT_Values.RA.stdBuilder()
- .itemInputs(
- GregtechItemList.Casing_Vanadium_Redox.get(1),
- GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Titanium, 4L),
- ItemUtils.getItemStackOfAmountFromOreDict(CI.getTieredCircuitOreDictName(4), 4),
- GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorEV, 2L))
- .itemOutputs(GregtechItemList.Casing_Vanadium_Redox_IV.get(1))
- .fluidInputs(Materials.Nitrogen.getGas(16 * BUCKETS)).duration(6 * SECONDS).eut(TierEU.RECIPE_EV)
- .addTo(assemblerRecipes);
+ .itemInputs(
+ GregtechItemList.Casing_Vanadium_Redox.get(1),
+ GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Titanium, 4L),
+ ItemUtils.getItemStackOfAmountFromOreDict(CI.getTieredCircuitOreDictName(4), 4),
+ GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorEV, 2L))
+ .itemOutputs(GregtechItemList.Casing_Vanadium_Redox_IV.get(1))
+ .fluidInputs(Materials.Nitrogen.getGas(16 * BUCKETS))
+ .duration(6 * SECONDS)
+ .eut(TierEU.RECIPE_EV)
+ .addTo(assemblerRecipes);
GT_Values.RA.stdBuilder()
- .itemInputs(
- GregtechItemList.Casing_Vanadium_Redox_IV.get(1),
- GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.TungstenSteel, 4L),
- ItemUtils.getItemStackOfAmountFromOreDict(CI.getTieredCircuitOreDictName(5), 4),
- GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorIV, 2L))
- .itemOutputs(GregtechItemList.Casing_Vanadium_Redox_LuV.get(1))
- .fluidInputs(Materials.Helium.getGas(8 * BUCKETS)).duration(12 * SECONDS + 10 * TICKS)
- .eut(TierEU.RECIPE_IV).addTo(assemblerRecipes);
+ .itemInputs(
+ GregtechItemList.Casing_Vanadium_Redox_IV.get(1),
+ GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.TungstenSteel, 4L),
+ ItemUtils.getItemStackOfAmountFromOreDict(CI.getTieredCircuitOreDictName(5), 4),
+ GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorIV, 2L))
+ .itemOutputs(GregtechItemList.Casing_Vanadium_Redox_LuV.get(1))
+ .fluidInputs(Materials.Helium.getGas(8 * BUCKETS))
+ .duration(12 * SECONDS + 10 * TICKS)
+ .eut(TierEU.RECIPE_IV)
+ .addTo(assemblerRecipes);
GT_Values.RA.stdBuilder()
- .itemInputs(
- GregtechItemList.Casing_Vanadium_Redox_LuV.get(1),
- ItemUtils.getItemStackOfAmountFromOreDict("plateAlloyIridium", 16),
- ItemUtils.getItemStackOfAmountFromOreDict(CI.getTieredCircuitOreDictName(6), 4),
- GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorLuV, 2L))
- .itemOutputs(GregtechItemList.Casing_Vanadium_Redox_ZPM.get(1))
- .fluidInputs(Materials.Argon.getGas(4 * BUCKETS)).duration(25 * SECONDS).eut(TierEU.RECIPE_LuV)
- .addTo(assemblerRecipes);
+ .itemInputs(
+ GregtechItemList.Casing_Vanadium_Redox_LuV.get(1),
+ ItemUtils.getItemStackOfAmountFromOreDict("plateAlloyIridium", 16),
+ ItemUtils.getItemStackOfAmountFromOreDict(CI.getTieredCircuitOreDictName(6), 4),
+ GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorLuV, 2L))
+ .itemOutputs(GregtechItemList.Casing_Vanadium_Redox_ZPM.get(1))
+ .fluidInputs(Materials.Argon.getGas(4 * BUCKETS))
+ .duration(25 * SECONDS)
+ .eut(TierEU.RECIPE_LuV)
+ .addTo(assemblerRecipes);
GT_Values.RA.stdBuilder()
- .itemInputs(
- GregtechItemList.Casing_Vanadium_Redox_ZPM.get(1),
- GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Naquadah, 4L),
- ItemUtils.getItemStackOfAmountFromOreDict(CI.getTieredCircuitOreDictName(7), 4),
- GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorZPM, 2L))
- .itemOutputs(GregtechItemList.Casing_Vanadium_Redox_UV.get(1))
- .fluidInputs(Materials.Radon.getGas(4 * BUCKETS)).duration(50 * SECONDS).eut(TierEU.RECIPE_ZPM)
- .addTo(assemblerRecipes);
+ .itemInputs(
+ GregtechItemList.Casing_Vanadium_Redox_ZPM.get(1),
+ GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Naquadah, 4L),
+ ItemUtils.getItemStackOfAmountFromOreDict(CI.getTieredCircuitOreDictName(7), 4),
+ GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorZPM, 2L))
+ .itemOutputs(GregtechItemList.Casing_Vanadium_Redox_UV.get(1))
+ .fluidInputs(Materials.Radon.getGas(4 * BUCKETS))
+ .duration(50 * SECONDS)
+ .eut(TierEU.RECIPE_ZPM)
+ .addTo(assemblerRecipes);
GT_Values.RA.stdBuilder()
- .itemInputs(
- GregtechItemList.Casing_Vanadium_Redox_UV.get(1),
- GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Americium, 4L),
- ItemUtils.getItemStackOfAmountFromOreDict(CI.getTieredCircuitOreDictName(8), 4),
- GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorUV, 2L))
- .itemOutputs(GregtechItemList.Casing_Vanadium_Redox_MAX.get(1))
- .fluidInputs(FluidUtils.getFluidStack("krypton", 500)).duration(1 * MINUTES + 40 * SECONDS)
- .eut(TierEU.RECIPE_UV).addTo(assemblerRecipes);
+ .itemInputs(
+ GregtechItemList.Casing_Vanadium_Redox_UV.get(1),
+ GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Americium, 4L),
+ ItemUtils.getItemStackOfAmountFromOreDict(CI.getTieredCircuitOreDictName(8), 4),
+ GT_OreDictUnificator.get(OrePrefixes.wireGt01, Materials.SuperconductorUV, 2L))
+ .itemOutputs(GregtechItemList.Casing_Vanadium_Redox_MAX.get(1))
+ .fluidInputs(FluidUtils.getFluidStack("krypton", 500))
+ .duration(1 * MINUTES + 40 * SECONDS)
+ .eut(TierEU.RECIPE_UV)
+ .addTo(assemblerRecipes);
GT_Values.RA.stdBuilder()
- .itemInputs(
- ItemUtils.getSimpleStack(CI.explosiveITNT, 2),
- ItemUtils.getSimpleStack(CI.explosiveTNT, 4),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 2L),
- GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Iron, 1L))
- .itemOutputs(ItemUtils.getSimpleStack(ModBlocks.blockMiningExplosive, 3)).duration(5 * SECONDS)
- .eut(TierEU.RECIPE_MV / 2).addTo(assemblerRecipes);
+ .itemInputs(
+ ItemUtils.getSimpleStack(CI.explosiveITNT, 2),
+ ItemUtils.getSimpleStack(CI.explosiveTNT, 4),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 2L),
+ GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.Iron, 1L))
+ .itemOutputs(ItemUtils.getSimpleStack(ModBlocks.blockMiningExplosive, 3))
+ .duration(5 * SECONDS)
+ .eut(TierEU.RECIPE_MV / 2)
+ .addTo(assemblerRecipes);
GT_Values.RA.stdBuilder()
- .itemInputs(
- GT_OreDictUnificator.get(OrePrefixes.gem, Materials.NetherStar, 1L),
- GT_OreDictUnificator.get(OrePrefixes.plate, Materials.TungstenSteel, 8L),
- GT_OreDictUnificator.get(OrePrefixes.stick, Materials.BlackSteel, 8L))
- .itemOutputs(ItemUtils.getSimpleStack(ModBlocks.blockWitherGuard, 64)).duration(30 * SECONDS)
- .eut(TierEU.RECIPE_HV).addTo(assemblerRecipes);
+ .itemInputs(
+ GT_OreDictUnificator.get(OrePrefixes.gem, Materials.NetherStar, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.plate, Materials.TungstenSteel, 8L),
+ GT_OreDictUnificator.get(OrePrefixes.stick, Materials.BlackSteel, 8L))
+ .itemOutputs(ItemUtils.getSimpleStack(ModBlocks.blockWitherGuard, 64))
+ .duration(30 * SECONDS)
+ .eut(TierEU.RECIPE_HV)
+ .addTo(assemblerRecipes);
GT_Values.RA.stdBuilder()
- .itemInputs(
- CI.fluidRegulator_LV,
- CI.electricMotor_LV,
- CI.getTieredComponent(OrePrefixes.bolt, 1, 8),
- GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Brass, 1L),
- GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Brass, 1L),
- GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 2L))
- .itemOutputs(ItemUtils.simpleMetaStack(ModItems.itemGenericToken, 1, 1)).duration(10 * SECONDS)
- .eut(TierEU.RECIPE_LV).addTo(assemblerRecipes);
+ .itemInputs(
+ CI.fluidRegulator_LV,
+ CI.electricMotor_LV,
+ CI.getTieredComponent(OrePrefixes.bolt, 1, 8),
+ GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Brass, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Brass, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 2L))
+ .itemOutputs(ItemUtils.simpleMetaStack(ModItems.itemGenericToken, 1, 1))
+ .duration(10 * SECONDS)
+ .eut(TierEU.RECIPE_LV)
+ .addTo(assemblerRecipes);
GT_Values.RA.stdBuilder()
- .itemInputs(
- CI.fluidRegulator_MV,
- CI.electricMotor_MV,
- CI.getTieredComponent(OrePrefixes.bolt, 2, 8),
- GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Invar, 1L),
- GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Invar, 1L),
- GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 2L))
- .itemOutputs(ItemUtils.simpleMetaStack(ModItems.itemGenericToken, 2, 1)).duration(20 * SECONDS)
- .eut(TierEU.RECIPE_MV).addTo(assemblerRecipes);
+ .itemInputs(
+ CI.fluidRegulator_MV,
+ CI.electricMotor_MV,
+ CI.getTieredComponent(OrePrefixes.bolt, 2, 8),
+ GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Invar, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Invar, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 2L))
+ .itemOutputs(ItemUtils.simpleMetaStack(ModItems.itemGenericToken, 2, 1))
+ .duration(20 * SECONDS)
+ .eut(TierEU.RECIPE_MV)
+ .addTo(assemblerRecipes);
GT_Values.RA.stdBuilder()
- .itemInputs(
- CI.fluidRegulator_HV,
- CI.electricMotor_HV,
- CI.getTieredComponent(OrePrefixes.bolt, 3, 8),
- GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Chrome, 1L),
- GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Chrome, 1L),
- GT_OreDictUnificator.get(OrePrefixes.plate, Materials.StainlessSteel, 2L))
- .itemOutputs(ItemUtils.simpleMetaStack(ModItems.itemGenericToken, 3, 1)).duration(30 * SECONDS)
- .eut(TierEU.RECIPE_HV).addTo(assemblerRecipes);
+ .itemInputs(
+ CI.fluidRegulator_HV,
+ CI.electricMotor_HV,
+ CI.getTieredComponent(OrePrefixes.bolt, 3, 8),
+ GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Chrome, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Chrome, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.plate, Materials.StainlessSteel, 2L))
+ .itemOutputs(ItemUtils.simpleMetaStack(ModItems.itemGenericToken, 3, 1))
+ .duration(30 * SECONDS)
+ .eut(TierEU.RECIPE_HV)
+ .addTo(assemblerRecipes);
GT_Values.RA.stdBuilder()
- .itemInputs(
- CI.fluidRegulator_EV,
- CI.electricMotor_EV,
- CI.getTieredComponent(OrePrefixes.bolt, 4, 8),
- GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Titanium, 1L),
- GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Titanium, 1L),
- GT_OreDictUnificator.get(OrePrefixes.plate, Materials.TungstenSteel, 2L))
- .itemOutputs(ItemUtils.simpleMetaStack(ModItems.itemGenericToken, 4, 1)).duration(40 * SECONDS)
- .eut(TierEU.RECIPE_EV).addTo(assemblerRecipes);
+ .itemInputs(
+ CI.fluidRegulator_EV,
+ CI.electricMotor_EV,
+ CI.getTieredComponent(OrePrefixes.bolt, 4, 8),
+ GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Titanium, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Titanium, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.plate, Materials.TungstenSteel, 2L))
+ .itemOutputs(ItemUtils.simpleMetaStack(ModItems.itemGenericToken, 4, 1))
+ .duration(40 * SECONDS)
+ .eut(TierEU.RECIPE_EV)
+ .addTo(assemblerRecipes);
GT_Values.RA.stdBuilder()
- .itemInputs(
- ItemUtils.simpleMetaStack(ModItems.itemGenericToken, 1, 1),
- GT_Utility.getIntegratedCircuit(20))
- .itemOutputs(ItemUtils.simpleMetaStack(ModItems.toolGregtechPump, 1000, 1))
- .duration(1 * SECONDS + 10 * TICKS).eut(TierEU.RECIPE_LV).addTo(assemblerRecipes);
+ .itemInputs(ItemUtils.simpleMetaStack(ModItems.itemGenericToken, 1, 1), GT_Utility.getIntegratedCircuit(20))
+ .itemOutputs(ItemUtils.simpleMetaStack(ModItems.toolGregtechPump, 1000, 1))
+ .duration(1 * SECONDS + 10 * TICKS)
+ .eut(TierEU.RECIPE_LV)
+ .addTo(assemblerRecipes);
GT_Values.RA.stdBuilder()
- .itemInputs(
- ItemUtils.simpleMetaStack(ModItems.itemGenericToken, 2, 1),
- GT_Utility.getIntegratedCircuit(20))
- .itemOutputs(ItemUtils.simpleMetaStack(ModItems.toolGregtechPump, 1001, 1)).duration(6 * SECONDS)
- .eut(TierEU.RECIPE_MV).addTo(assemblerRecipes);
+ .itemInputs(ItemUtils.simpleMetaStack(ModItems.itemGenericToken, 2, 1), GT_Utility.getIntegratedCircuit(20))
+ .itemOutputs(ItemUtils.simpleMetaStack(ModItems.toolGregtechPump, 1001, 1))
+ .duration(6 * SECONDS)
+ .eut(TierEU.RECIPE_MV)
+ .addTo(assemblerRecipes);
GT_Values.RA.stdBuilder()
- .itemInputs(
- ItemUtils.simpleMetaStack(ModItems.itemGenericToken, 3, 1),
- GT_Utility.getIntegratedCircuit(20))
- .itemOutputs(ItemUtils.simpleMetaStack(ModItems.toolGregtechPump, 1002, 1)).duration(24 * SECONDS)
- .eut(TierEU.RECIPE_HV).addTo(assemblerRecipes);
+ .itemInputs(ItemUtils.simpleMetaStack(ModItems.itemGenericToken, 3, 1), GT_Utility.getIntegratedCircuit(20))
+ .itemOutputs(ItemUtils.simpleMetaStack(ModItems.toolGregtechPump, 1002, 1))
+ .duration(24 * SECONDS)
+ .eut(TierEU.RECIPE_HV)
+ .addTo(assemblerRecipes);
GT_Values.RA.stdBuilder()
- .itemInputs(
- ItemUtils.simpleMetaStack(ModItems.itemGenericToken, 4, 1),
- GT_Utility.getIntegratedCircuit(20))
- .itemOutputs(ItemUtils.simpleMetaStack(ModItems.toolGregtechPump, 1003, 1))
- .duration(1 * MINUTES + 36 * SECONDS).eut(TierEU.RECIPE_EV).addTo(assemblerRecipes);
+ .itemInputs(ItemUtils.simpleMetaStack(ModItems.itemGenericToken, 4, 1), GT_Utility.getIntegratedCircuit(20))
+ .itemOutputs(ItemUtils.simpleMetaStack(ModItems.toolGregtechPump, 1003, 1))
+ .duration(1 * MINUTES + 36 * SECONDS)
+ .eut(TierEU.RECIPE_EV)
+ .addTo(assemblerRecipes);
// Low tier Charge Packs
final ItemStack[] aPackBatteries = new ItemStack[] { ItemList.Battery_RE_LV_Lithium.get(4),
- ItemList.Battery_RE_MV_Lithium.get(4), ItemList.Battery_RE_HV_Lithium.get(4),
- GregtechItemList.Battery_RE_EV_Lithium.get(4), ItemList.Energy_LapotronicOrb.get(4), };
+ ItemList.Battery_RE_MV_Lithium.get(4), ItemList.Battery_RE_HV_Lithium.get(4),
+ GregtechItemList.Battery_RE_EV_Lithium.get(4), ItemList.Energy_LapotronicOrb.get(4), };
final ItemStack[] aPackPlates = new ItemStack[] { CI.getPlate(1, 8), CI.getPlate(2, 8), CI.getPlate(3, 8),
- CI.getPlate(4, 8), CI.getPlate(5, 8), };
+ CI.getPlate(4, 8), CI.getPlate(5, 8), };
final ItemStack[] aPackWire = new ItemStack[] { CI.getTieredComponent(OrePrefixes.wireGt02, 1, 6),
- CI.getTieredComponent(OrePrefixes.wireGt04, 2, 6), CI.getTieredComponent(OrePrefixes.wireGt08, 3, 6),
- CI.getTieredComponent(OrePrefixes.wireGt12, 4, 6), CI.getTieredComponent(OrePrefixes.wireGt16, 5, 6), };
+ CI.getTieredComponent(OrePrefixes.wireGt04, 2, 6), CI.getTieredComponent(OrePrefixes.wireGt08, 3, 6),
+ CI.getTieredComponent(OrePrefixes.wireGt12, 4, 6), CI.getTieredComponent(OrePrefixes.wireGt16, 5, 6), };
final ItemStack[] aPackCircuit = new ItemStack[] { CI.getTieredComponent(OrePrefixes.circuit, 1, 4),
- CI.getTieredComponent(OrePrefixes.circuit, 2, 4), CI.getTieredComponent(OrePrefixes.circuit, 3, 4),
- CI.getTieredComponent(OrePrefixes.circuit, 4, 4), CI.getTieredComponent(OrePrefixes.circuit, 5, 4), };
+ CI.getTieredComponent(OrePrefixes.circuit, 2, 4), CI.getTieredComponent(OrePrefixes.circuit, 3, 4),
+ CI.getTieredComponent(OrePrefixes.circuit, 4, 4), CI.getTieredComponent(OrePrefixes.circuit, 5, 4), };
final ItemStack[] aPackRing = new ItemStack[] { CI.getTieredComponent(OrePrefixes.ring, 1, 12),
- CI.getTieredComponent(OrePrefixes.ring, 2, 12), CI.getTieredComponent(OrePrefixes.ring, 3, 12),
- CI.getTieredComponent(OrePrefixes.ring, 4, 12), CI.getTieredComponent(OrePrefixes.ring, 5, 12), };
+ CI.getTieredComponent(OrePrefixes.ring, 2, 12), CI.getTieredComponent(OrePrefixes.ring, 3, 12),
+ CI.getTieredComponent(OrePrefixes.ring, 4, 12), CI.getTieredComponent(OrePrefixes.ring, 5, 12), };
final ItemStack[] aPackOutput = new ItemStack[] { ItemUtils.getSimpleStack(ModItems.itemChargePack_Low_1),
- ItemUtils.getSimpleStack(ModItems.itemChargePack_Low_2),
- ItemUtils.getSimpleStack(ModItems.itemChargePack_Low_3),
- ItemUtils.getSimpleStack(ModItems.itemChargePack_Low_4),
- ItemUtils.getSimpleStack(ModItems.itemChargePack_Low_5) };
+ ItemUtils.getSimpleStack(ModItems.itemChargePack_Low_2),
+ ItemUtils.getSimpleStack(ModItems.itemChargePack_Low_3),
+ ItemUtils.getSimpleStack(ModItems.itemChargePack_Low_4),
+ ItemUtils.getSimpleStack(ModItems.itemChargePack_Low_5) };
for (int i = 1; i < 6; i++) {
int aAS = i - 1;
GT_Values.RA.stdBuilder()
- .itemInputs(
- aPackPlates[aAS],
- aPackRing[aAS],
- aPackWire[aAS],
- aPackCircuit[aAS],
- aPackBatteries[aAS],
- CI.getSensor(i, 4))
- .itemOutputs(aPackOutput[aAS]).fluidInputs(CI.getTieredFluid(i, (144 * 4)))
- .duration(30 * i * SECONDS).eut(GT_Values.V[i]).addTo(assemblerRecipes);
+ .itemInputs(
+ aPackPlates[aAS],
+ aPackRing[aAS],
+ aPackWire[aAS],
+ aPackCircuit[aAS],
+ aPackBatteries[aAS],
+ CI.getSensor(i, 4))
+ .itemOutputs(aPackOutput[aAS])
+ .fluidInputs(CI.getTieredFluid(i, (144 * 4)))
+ .duration(30 * i * SECONDS)
+ .eut(GT_Values.V[i])
+ .addTo(assemblerRecipes);
}
if (Baubles.isModLoaded()) {
// Turbine Housing Research Page
GT_Values.RA.stdBuilder()
- .itemInputs(
- GT_Utility.getIntegratedCircuit(17),
- GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Trinium, 64L),
- CI.getSensor(6, 6),
- CI.getBolt(7, 64),
- GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Platinum, 64L),
- ItemUtils.getItemStackOfAmountFromOreDict(CI.getTieredCircuitOreDictName(7), 12))
- .itemOutputs(
- ItemDummyResearch.getResearchStack(ASSEMBLY_LINE_RESEARCH.RESEARCH_8_TURBINE_AUTOMATION, 1))
- .fluidInputs(CI.getAlternativeTieredFluid(7, 144 * 32)).duration(5 * MINUTES).eut(TierEU.RECIPE_LuV)
- .addTo(assemblerRecipes);
+ .itemInputs(
+ GT_Utility.getIntegratedCircuit(17),
+ GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Trinium, 64L),
+ CI.getSensor(6, 6),
+ CI.getBolt(7, 64),
+ GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Platinum, 64L),
+ ItemUtils.getItemStackOfAmountFromOreDict(CI.getTieredCircuitOreDictName(7), 12))
+ .itemOutputs(
+ ItemDummyResearch.getResearchStack(ASSEMBLY_LINE_RESEARCH.RESEARCH_8_TURBINE_AUTOMATION, 1))
+ .fluidInputs(CI.getAlternativeTieredFluid(7, 144 * 32))
+ .duration(5 * MINUTES)
+ .eut(TierEU.RECIPE_LuV)
+ .addTo(assemblerRecipes);
// Cloaking Device Research Page
GT_Values.RA.stdBuilder()
- .itemInputs(
- GT_Utility.getIntegratedCircuit(17),
- ItemUtils.getSimpleStack(ModItems.itemCircuitLFTR, 4),
- CI.getFieldGenerator(6, 16),
- GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Palladium, 32L),
- ItemUtils.getItemStackOfAmountFromOreDict(CI.getTieredCircuitOreDictName(6), 12))
- .itemOutputs(ItemDummyResearch.getResearchStack(ASSEMBLY_LINE_RESEARCH.RESEARCH_9_CLOAKING, 1))
- .fluidInputs(CI.getAlternativeTieredFluid(7, 144 * 32)).duration(10 * MINUTES)
- .eut(TierEU.RECIPE_ZPM).addTo(assemblerRecipes);
+ .itemInputs(
+ GT_Utility.getIntegratedCircuit(17),
+ ItemUtils.getSimpleStack(ModItems.itemCircuitLFTR, 4),
+ CI.getFieldGenerator(6, 16),
+ GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Palladium, 32L),
+ ItemUtils.getItemStackOfAmountFromOreDict(CI.getTieredCircuitOreDictName(6), 12))
+ .itemOutputs(ItemDummyResearch.getResearchStack(ASSEMBLY_LINE_RESEARCH.RESEARCH_9_CLOAKING, 1))
+ .fluidInputs(CI.getAlternativeTieredFluid(7, 144 * 32))
+ .duration(10 * MINUTES)
+ .eut(TierEU.RECIPE_ZPM)
+ .addTo(assemblerRecipes);
}
}
private static void distilleryRecipes() {
Logger.INFO("Registering Distillery/Distillation Tower Recipes.");
- GT_Values.RA.stdBuilder().itemInputs(GT_Utility.getIntegratedCircuit(4))
- .fluidInputs(Materials.Air.getGas(1000L)).fluidOutputs(Materials.Helium.getGas(1L))
- .duration(20 * SECONDS).eut(TierEU.RECIPE_LV).addTo(distilleryRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(GT_Utility.getIntegratedCircuit(4))
+ .fluidInputs(Materials.Air.getGas(1000L))
+ .fluidOutputs(Materials.Helium.getGas(1L))
+ .duration(20 * SECONDS)
+ .eut(TierEU.RECIPE_LV)
+ .addTo(distilleryRecipes);
- GT_Values.RA.stdBuilder().fluidInputs(Materials.Air.getGas(20000L)).fluidOutputs(Materials.Helium.getGas(25L))
- .duration(10 * SECONDS).eut(TierEU.RECIPE_MV / 2).addTo(distillationTowerRecipes);
+ GT_Values.RA.stdBuilder()
+ .fluidInputs(Materials.Air.getGas(20000L))
+ .fluidOutputs(Materials.Helium.getGas(25L))
+ .duration(10 * SECONDS)
+ .eut(TierEU.RECIPE_MV / 2)
+ .addTo(distillationTowerRecipes);
// Apatite Distillation
/*
* so if you dissolve aparite in sulphuric acid you'll get a mixture of SO2, H2O, HF and HCl
*/
- GT_Values.RA.stdBuilder().fluidInputs(FluidUtils.getFluidStack("sulfuricapatite", 5200))
- .fluidOutputs(
- FluidUtils.getFluidStack("sulfurousacid", 3800),
- FluidUtils.getFluidStack("hydrogenchloride", 1000),
- FluidUtils.getFluidStack("hydrofluoricacid", 400))
- .duration(45 * SECONDS).eut(TierEU.RECIPE_MV).addTo(distillationTowerRecipes);
+ GT_Values.RA.stdBuilder()
+ .fluidInputs(FluidUtils.getFluidStack("sulfuricapatite", 5200))
+ .fluidOutputs(
+ FluidUtils.getFluidStack("sulfurousacid", 3800),
+ FluidUtils.getFluidStack("hydrogenchloride", 1000),
+ FluidUtils.getFluidStack("hydrofluoricacid", 400))
+ .duration(45 * SECONDS)
+ .eut(TierEU.RECIPE_MV)
+ .addTo(distillationTowerRecipes);
- GT_Values.RA.stdBuilder().fluidInputs(FluidUtils.getFluidStack("sulfurousacid", 1000))
- .fluidOutputs(Materials.SulfurDioxide.getGas(500), Materials.Water.getFluid(500)).duration(10 * SECONDS)
- .eut(TierEU.RECIPE_MV / 2).addTo(distillationTowerRecipes);
+ GT_Values.RA.stdBuilder()
+ .fluidInputs(FluidUtils.getFluidStack("sulfurousacid", 1000))
+ .fluidOutputs(Materials.SulfurDioxide.getGas(500), Materials.Water.getFluid(500))
+ .duration(10 * SECONDS)
+ .eut(TierEU.RECIPE_MV / 2)
+ .addTo(distillationTowerRecipes);
}
private static void thermalBoilerRecipes() {
@@ -1115,205 +1242,272 @@ public class RECIPES_GREGTECH {
// Lava
GT_Values.RA.stdBuilder()
- .fluidInputs(FluidUtils.getLava(1000), FluidUtils.getWater(16_000 / GT_Values.STEAM_PER_WATER))
- .fluidOutputs(FluidUtils.getPahoehoeLava(1000), FluidUtils.getSteam(16_000))
- .itemOutputs(
- GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Copper, 1),
- GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tin, 1),
- GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Gold, 1),
- GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Silver, 1),
- GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tantalum, 1),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Tungstate, 1),
- new ItemStack(Blocks.obsidian, 1, 0))
- .outputChances(444, 222, 56, 56, 56, 125, 1000).specialValue(-1).duration(1 * SECONDS).eut(0)
- .addTo(thermalBoilerRecipes);
+ .fluidInputs(FluidUtils.getLava(1000), FluidUtils.getWater(16_000 / GT_Values.STEAM_PER_WATER))
+ .fluidOutputs(FluidUtils.getPahoehoeLava(1000), FluidUtils.getSteam(16_000))
+ .itemOutputs(
+ GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Copper, 1),
+ GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tin, 1),
+ GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Gold, 1),
+ GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Silver, 1),
+ GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tantalum, 1),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Tungstate, 1),
+ new ItemStack(Blocks.obsidian, 1, 0))
+ .outputChances(444, 222, 56, 56, 56, 125, 1000)
+ .specialValue(-1)
+ .duration(1 * SECONDS)
+ .eut(0)
+ .addTo(thermalBoilerRecipes);
// Pahoehoe Lava
GT_Values.RA.stdBuilder()
- .fluidInputs(FluidUtils.getPahoehoeLava(1000), FluidUtils.getWater(16_000 / GT_Values.STEAM_PER_WATER))
- .fluidOutputs(FluidUtils.getSteam(16_000))
- .itemOutputs(
- GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Bronze, 1),
- GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Electrum, 1),
- GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tantalum, 1),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Tungstate, 1),
- new ItemStack(Blocks.obsidian, 1, 0))
- .outputChances(167, 56, 56, 125, 3700).specialValue(-1).duration(1 * SECONDS).eut(0)
- .addTo(thermalBoilerRecipes);
+ .fluidInputs(FluidUtils.getPahoehoeLava(1000), FluidUtils.getWater(16_000 / GT_Values.STEAM_PER_WATER))
+ .fluidOutputs(FluidUtils.getSteam(16_000))
+ .itemOutputs(
+ GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Bronze, 1),
+ GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Electrum, 1),
+ GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tantalum, 1),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Tungstate, 1),
+ new ItemStack(Blocks.obsidian, 1, 0))
+ .outputChances(167, 56, 56, 125, 3700)
+ .specialValue(-1)
+ .duration(1 * SECONDS)
+ .eut(0)
+ .addTo(thermalBoilerRecipes);
// Hot Coolant
GT_Values.RA.stdBuilder()
- .fluidInputs(
- FluidUtils.getFluidStack("ic2hotcoolant", 500),
- FluidUtils.getWater(100_000 / GT_Values.STEAM_PER_WATER))
- .fluidOutputs(FluidUtils.getFluidStack("ic2coolant", 500), FluidUtils.getSuperHeatedSteam(100_000))
- .duration(1 * SECONDS).eut(0).addTo(thermalBoilerRecipes);
+ .fluidInputs(
+ FluidUtils.getFluidStack("ic2hotcoolant", 500),
+ FluidUtils.getWater(100_000 / GT_Values.STEAM_PER_WATER))
+ .fluidOutputs(FluidUtils.getFluidStack("ic2coolant", 500), FluidUtils.getSuperHeatedSteam(100_000))
+ .duration(1 * SECONDS)
+ .eut(0)
+ .addTo(thermalBoilerRecipes);
// Solar Salt (Hot)
GT_Values.RA.stdBuilder()
- .fluidInputs(
- MISC_MATERIALS.SOLAR_SALT_HOT.getFluidStack(100),
- FluidUtils.getWater(100_000 / GT_Values.STEAM_PER_WATER))
- .fluidOutputs(
- MISC_MATERIALS.SOLAR_SALT_COLD.getFluidStack(100),
- FluidUtils.getSuperHeatedSteam(100_000))
- .duration(1 * SECONDS).eut(0).addTo(thermalBoilerRecipes);
+ .fluidInputs(
+ MISC_MATERIALS.SOLAR_SALT_HOT.getFluidStack(100),
+ FluidUtils.getWater(100_000 / GT_Values.STEAM_PER_WATER))
+ .fluidOutputs(MISC_MATERIALS.SOLAR_SALT_COLD.getFluidStack(100), FluidUtils.getSuperHeatedSteam(100_000))
+ .duration(1 * SECONDS)
+ .eut(0)
+ .addTo(thermalBoilerRecipes);
}
private static void addFuels() {
Logger.INFO("Registering New Fuels.");
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getSimpleStack(Items.lava_bucket)).metadata(FUEL_VALUE, 32)
- .metadata(FUEL_TYPE, 2).duration(0).eut(0).addTo(GT_RecipeConstants.Fuel);
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getIC2Cell(2)).metadata(FUEL_VALUE, 32).metadata(FUEL_TYPE, 2)
- .duration(0).eut(0).addTo(GT_RecipeConstants.Fuel);
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getIC2Cell(11)).metadata(FUEL_VALUE, 24).metadata(FUEL_TYPE, 2)
- .duration(0).eut(0).addTo(GT_RecipeConstants.Fuel);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getSimpleStack(Items.lava_bucket))
+ .metadata(FUEL_VALUE, 32)
+ .metadata(FUEL_TYPE, 2)
+ .duration(0)
+ .eut(0)
+ .addTo(GT_RecipeConstants.Fuel);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getIC2Cell(2))
+ .metadata(FUEL_VALUE, 32)
+ .metadata(FUEL_TYPE, 2)
+ .duration(0)
+ .eut(0)
+ .addTo(GT_RecipeConstants.Fuel);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getIC2Cell(11))
+ .metadata(FUEL_VALUE, 24)
+ .metadata(FUEL_TYPE, 2)
+ .duration(0)
+ .eut(0)
+ .addTo(GT_RecipeConstants.Fuel);
}
private static void extractorRecipes() {
Logger.INFO("Registering Extractor Recipes.");
GT_ModHandler.addExtractionRecipe(
- GregtechItemList.Battery_RE_EV_Sodium.get(1L, new Object[0]),
- ItemList.Battery_Hull_HV.get(4L, new Object[0]));
+ GregtechItemList.Battery_RE_EV_Sodium.get(1L, new Object[0]),
+ ItemList.Battery_Hull_HV.get(4L, new Object[0]));
GT_ModHandler.addExtractionRecipe(
- GregtechItemList.Battery_RE_EV_Cadmium.get(1L, new Object[0]),
- ItemList.Battery_Hull_HV.get(4L, new Object[0]));
+ GregtechItemList.Battery_RE_EV_Cadmium.get(1L, new Object[0]),
+ ItemList.Battery_Hull_HV.get(4L, new Object[0]));
GT_ModHandler.addExtractionRecipe(
- GregtechItemList.Battery_RE_EV_Lithium.get(1L, new Object[0]),
- ItemList.Battery_Hull_HV.get(4L, new Object[0]));
+ GregtechItemList.Battery_RE_EV_Lithium.get(1L, new Object[0]),
+ ItemList.Battery_Hull_HV.get(4L, new Object[0]));
}
private static void fluidExtractorRecipes() {
// Gelid Cryotheum
- GT_Values.RA.stdBuilder().itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cryotheum, 1L))
- .fluidOutputs(FluidUtils.getFluidStack("cryotheum", 250)).duration(10 * SECONDS)
- .eut(TierEU.RECIPE_HV / 2).addTo(fluidExtractionRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cryotheum, 1L))
+ .fluidOutputs(FluidUtils.getFluidStack("cryotheum", 250))
+ .duration(10 * SECONDS)
+ .eut(TierEU.RECIPE_HV / 2)
+ .addTo(fluidExtractionRecipes);
// Ender Fluid
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getSimpleStack(Items.ender_pearl))
- .fluidOutputs(FluidUtils.getFluidStack("ender", 250)).duration(5 * SECONDS).eut(TierEU.RECIPE_LV)
- .addTo(fluidExtractionRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getSimpleStack(Items.ender_pearl))
+ .fluidOutputs(FluidUtils.getFluidStack("ender", 250))
+ .duration(5 * SECONDS)
+ .eut(TierEU.RECIPE_LV)
+ .addTo(fluidExtractionRecipes);
// Blazing Pyrotheum
- GT_Values.RA.stdBuilder().itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Pyrotheum, 1L))
- .fluidOutputs(FluidUtils.getFluidStack("pyrotheum", 250)).duration(10 * SECONDS)
- .eut(TierEU.RECIPE_HV / 2).addTo(fluidExtractionRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Pyrotheum, 1L))
+ .fluidOutputs(FluidUtils.getFluidStack("pyrotheum", 250))
+ .duration(10 * SECONDS)
+ .eut(TierEU.RECIPE_HV / 2)
+ .addTo(fluidExtractionRecipes);
}
private static void centrifugeRecipes() {
GT_Values.RA.stdBuilder()
- .itemInputs(CI.getNumberedAdvancedCircuit(2), MISC_MATERIALS.SOLAR_SALT_COLD.getCell(1))
- .itemOutputs(
- MISC_MATERIALS.SODIUM_NITRATE.getDust(3),
- MISC_MATERIALS.POTASSIUM_NITRATE.getDust(2),
- CI.emptyCells(1))
- .duration(6 * SECONDS).eut(TierEU.RECIPE_MV).addTo(centrifugeRecipes);
+ .itemInputs(CI.getNumberedAdvancedCircuit(2), MISC_MATERIALS.SOLAR_SALT_COLD.getCell(1))
+ .itemOutputs(
+ MISC_MATERIALS.SODIUM_NITRATE.getDust(3),
+ MISC_MATERIALS.POTASSIUM_NITRATE.getDust(2),
+ CI.emptyCells(1))
+ .duration(6 * SECONDS)
+ .eut(TierEU.RECIPE_MV)
+ .addTo(centrifugeRecipes);
}
private static void mixerRecipes() {
GT_Values.RA.stdBuilder()
- .itemInputs(
- CI.getNumberedAdvancedCircuit(2),
- CI.emptyCells(1),
- MISC_MATERIALS.SODIUM_NITRATE.getDust(3),
- MISC_MATERIALS.POTASSIUM_NITRATE.getDust(2))
- .itemOutputs(MISC_MATERIALS.SOLAR_SALT_COLD.getCell(1)).duration(2 * SECONDS).eut(TierEU.RECIPE_MV)
- .addTo(mixerRecipes);
+ .itemInputs(
+ CI.getNumberedAdvancedCircuit(2),
+ CI.emptyCells(1),
+ MISC_MATERIALS.SODIUM_NITRATE.getDust(3),
+ MISC_MATERIALS.POTASSIUM_NITRATE.getDust(2))
+ .itemOutputs(MISC_MATERIALS.SOLAR_SALT_COLD.getCell(1))
+ .duration(2 * SECONDS)
+ .eut(TierEU.RECIPE_MV)
+ .addTo(mixerRecipes);
GT_Values.RA.stdBuilder()
- .itemInputs(
- CI.getNumberedAdvancedCircuit(2),
- Materials.Titanium.getDust(9),
- Materials.Carbon.getDust(9),
- Materials.Potassium.getDust(9),
- Materials.Lithium.getDust(9),
- Materials.Sulfur.getDust(9))
- .itemOutputs(ALLOY.LEAGRISIUM.getDust(50)).fluidInputs(Materials.Hydrogen.getGas(5000))
- .duration(1 * MINUTES).eut(TierEU.RECIPE_EV).addTo(mixerRecipes);
+ .itemInputs(
+ CI.getNumberedAdvancedCircuit(2),
+ Materials.Titanium.getDust(9),
+ Materials.Carbon.getDust(9),
+ Materials.Potassium.getDust(9),
+ Materials.Lithium.getDust(9),
+ Materials.Sulfur.getDust(9))
+ .itemOutputs(ALLOY.LEAGRISIUM.getDust(50))
+ .fluidInputs(Materials.Hydrogen.getGas(5000))
+ .duration(1 * MINUTES)
+ .eut(TierEU.RECIPE_EV)
+ .addTo(mixerRecipes);
GT_Values.RA.stdBuilder()
- .itemInputs(
- CI.getNumberedAdvancedCircuit(2),
- Materials.Steel.getDust(16),
- Materials.Molybdenum.getDust(1),
- Materials.Titanium.getDust(1),
- Materials.Nickel.getDust(4),
- Materials.Cobalt.getDust(2))
- .itemOutputs(ALLOY.MARAGING250.getDust(24)).duration(1 * MINUTES).eut(TierEU.RECIPE_EV)
- .addTo(mixerRecipes);
+ .itemInputs(
+ CI.getNumberedAdvancedCircuit(2),
+ Materials.Steel.getDust(16),
+ Materials.Molybdenum.getDust(1),
+ Materials.Titanium.getDust(1),
+ Materials.Nickel.getDust(4),
+ Materials.Cobalt.getDust(2))
+ .itemOutputs(ALLOY.MARAGING250.getDust(24))
+ .duration(1 * MINUTES)
+ .eut(TierEU.RECIPE_EV)
+ .addTo(mixerRecipes);
}
private static void chemicalReactorRecipes() {
GT_Values.RA.stdBuilder()
- .itemInputs(
- CI.getNumberedAdvancedCircuit(21),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Apatite, 32L))
- .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Sulfur, 8L))
- .fluidInputs(FluidUtils.getFluidStack("sulfuricacid", 4000))
- .fluidOutputs(FluidUtils.getFluidStack("sulfuricapatite", 8000)).duration(20 * SECONDS)
- .eut(TierEU.RECIPE_LV).addTo(UniversalChemical);
+ .itemInputs(
+ CI.getNumberedAdvancedCircuit(21),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Apatite, 32L))
+ .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Sulfur, 8L))
+ .fluidInputs(FluidUtils.getFluidStack("sulfuricacid", 4000))
+ .fluidOutputs(FluidUtils.getFluidStack("sulfuricapatite", 8000))
+ .duration(20 * SECONDS)
+ .eut(TierEU.RECIPE_LV)
+ .addTo(UniversalChemical);
// KOH + HNO3 = KNO3 + H2O
GT_Values.RA.stdBuilder()
- .itemInputs(
- ItemUtils.getSimpleStack(GenericChem.mPotassiumHydroxide, 3),
- CI.getNumberedAdvancedCircuit(1))
- .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.PotassiumNitrade, 5L))
- .fluidInputs(Materials.NitricAcid.getFluid(1000)).fluidOutputs(Materials.Water.getFluid(1000))
- .duration(5 * SECONDS).eut(TierEU.RECIPE_LV).addTo(UniversalChemical);
+ .itemInputs(ItemUtils.getSimpleStack(GenericChem.mPotassiumHydroxide, 3), CI.getNumberedAdvancedCircuit(1))
+ .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.PotassiumNitrade, 5L))
+ .fluidInputs(Materials.NitricAcid.getFluid(1000))
+ .fluidOutputs(Materials.Water.getFluid(1000))
+ .duration(5 * SECONDS)
+ .eut(TierEU.RECIPE_LV)
+ .addTo(UniversalChemical);
// Na2CO3 + 2HNO3 = 2NaNO3 + CO2 + H2O
GT_Values.RA.stdBuilder()
- .itemInputs(
- ItemUtils.getSimpleStack(AgriculturalChem.mSodiumCarbonate, 6),
- CI.getNumberedAdvancedCircuit(1))
- .itemOutputs(MISC_MATERIALS.SODIUM_NITRATE.getDust(10)).fluidInputs(Materials.NitricAcid.getFluid(2000))
- .fluidOutputs(Materials.CarbonDioxide.getGas(1000)).duration(5 * SECONDS).eut(TierEU.RECIPE_LV)
- .addTo(UniversalChemical);
+ .itemInputs(
+ ItemUtils.getSimpleStack(AgriculturalChem.mSodiumCarbonate, 6),
+ CI.getNumberedAdvancedCircuit(1))
+ .itemOutputs(MISC_MATERIALS.SODIUM_NITRATE.getDust(10))
+ .fluidInputs(Materials.NitricAcid.getFluid(2000))
+ .fluidOutputs(Materials.CarbonDioxide.getGas(1000))
+ .duration(5 * SECONDS)
+ .eut(TierEU.RECIPE_LV)
+ .addTo(UniversalChemical);
}
private static void blastFurnaceRecipes() {
// Synthetic Graphite
- GT_Values.RA.stdBuilder().itemInputs(ALLOY.SILICON_CARBIDE.getDust(16), GT_Utility.getIntegratedCircuit(22))
- .itemOutputs(
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Graphite, 8L),
- GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Silicon, 8L))
- .fluidInputs(Materials.Nitrogen.getGas(4000)).fluidOutputs().duration(1 * MINUTES).eut(TierEU.RECIPE_IV)
- .metadata(COIL_HEAT, 4500).addTo(blastFurnaceRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ALLOY.SILICON_CARBIDE.getDust(16), GT_Utility.getIntegratedCircuit(22))
+ .itemOutputs(
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Graphite, 8L),
+ GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Silicon, 8L))
+ .fluidInputs(Materials.Nitrogen.getGas(4000))
+ .fluidOutputs()
+ .duration(1 * MINUTES)
+ .eut(TierEU.RECIPE_IV)
+ .metadata(COIL_HEAT, 4500)
+ .addTo(blastFurnaceRecipes);
}
private static void compressorRecipes() {
- GT_Values.RA.stdBuilder().itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Clay, 1L))
- .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Clay, 1L)).duration(15 * SECONDS)
- .eut(2).addTo(compressorRecipes);
- GT_Values.RA.stdBuilder().itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.MeatRaw, 9L))
- .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.block, Materials.MeatRaw, 1L)).duration(15 * SECONDS)
- .eut(2).addTo(compressorRecipes);
-
- GT_Values.RA.stdBuilder().itemInputs(ItemList.FusionComputer_UV.get(9))
- .itemOutputs(GregtechItemList.Compressed_Fusion_Reactor.get(1)).duration(1 * HOURS + 50 * MINUTES)
- .eut(TierEU.RECIPE_UV).addTo(compressorRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Clay, 1L))
+ .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Clay, 1L))
+ .duration(15 * SECONDS)
+ .eut(2)
+ .addTo(compressorRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.MeatRaw, 9L))
+ .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.block, Materials.MeatRaw, 1L))
+ .duration(15 * SECONDS)
+ .eut(2)
+ .addTo(compressorRecipes);
+
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemList.FusionComputer_UV.get(9))
+ .itemOutputs(GregtechItemList.Compressed_Fusion_Reactor.get(1))
+ .duration(1 * HOURS + 50 * MINUTES)
+ .eut(TierEU.RECIPE_UV)
+ .addTo(compressorRecipes);
}
private static void macerationRecipes() {
- GT_Values.RA.stdBuilder().itemInputs(GT_OreDictUnificator.get(OrePrefixes.block, Materials.MeatRaw, 1L))
- .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.MeatRaw, 9L)).duration(44 * SECONDS)
- .eut(4).addTo(maceratorRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(GT_OreDictUnificator.get(OrePrefixes.block, Materials.MeatRaw, 1L))
+ .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.MeatRaw, 9L))
+ .duration(44 * SECONDS)
+ .eut(4)
+ .addTo(maceratorRecipes);
if (ItemUtils.simpleMetaStack("chisel:limestone", 0, 1) != null) {
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getItemStackOfAmountFromOreDict("limestone", 1))
- .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcite, 4L))
- .duration(20 * SECONDS).eut(2).addTo(maceratorRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getItemStackOfAmountFromOreDict("limestone", 1))
+ .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcite, 4L))
+ .duration(20 * SECONDS)
+ .eut(2)
+ .addTo(maceratorRecipes);
}
}
@@ -1321,80 +1515,80 @@ public class RECIPES_GREGTECH {
// Polonium
CORE.RA.addCyclotronRecipe(
- CI.getNumberedCircuit(1),
- FluidUtils.getFluidStack("molten.bismuth", 1),
- new ItemStack[] { GregtechItemList.Pellet_RTG_PO210.get(1) },
- null,
- new int[] { 100 },
- 20 * 300 * 100,
- 2040 * 4,
- 500 * 20);
+ CI.getNumberedCircuit(1),
+ FluidUtils.getFluidStack("molten.bismuth", 1),
+ new ItemStack[] { GregtechItemList.Pellet_RTG_PO210.get(1) },
+ null,
+ new int[] { 100 },
+ 20 * 300 * 100,
+ 2040 * 4,
+ 500 * 20);
// Americium
CORE.RA.addCyclotronRecipe(
- CI.getNumberedCircuit(1),
- FluidUtils.getFluidStack("molten.americium", 1),
- new ItemStack[] { GregtechItemList.Pellet_RTG_AM241.get(4) },
- null,
- new int[] { 2500 },
- 20 * 300 * 100,
- 1020 * 4,
- 500 * 20); // PO Special Value
+ CI.getNumberedCircuit(1),
+ FluidUtils.getFluidStack("molten.americium", 1),
+ new ItemStack[] { GregtechItemList.Pellet_RTG_AM241.get(4) },
+ null,
+ new int[] { 2500 },
+ 20 * 300 * 100,
+ 1020 * 4,
+ 500 * 20); // PO Special Value
// Strontium u235
CORE.RA.addCyclotronRecipe(
- CI.getNumberedCircuit(1),
- FluidUtils.getFluidStack("molten.uranium235", 10),
- new ItemStack[] { GregtechItemList.Pellet_RTG_SR90.get(1) },
- null,
- new int[] { 570 },
- 20 * 300 * 100,
- 1020 * 4,
- 500 * 20); // PO Special Value
+ CI.getNumberedCircuit(1),
+ FluidUtils.getFluidStack("molten.uranium235", 10),
+ new ItemStack[] { GregtechItemList.Pellet_RTG_SR90.get(1) },
+ null,
+ new int[] { 570 },
+ 20 * 300 * 100,
+ 1020 * 4,
+ 500 * 20); // PO Special Value
// Strontium u233
CORE.RA.addCyclotronRecipe(
- CI.getNumberedCircuit(1),
- FluidUtils.getFluidStack("molten.uranium233", 10),
- new ItemStack[] { GregtechItemList.Pellet_RTG_SR90.get(1) },
- null,
- new int[] { 660 },
- 20 * 300 * 100,
- 1020 * 4,
- 500 * 20); // PO Special Value
+ CI.getNumberedCircuit(1),
+ FluidUtils.getFluidStack("molten.uranium233", 10),
+ new ItemStack[] { GregtechItemList.Pellet_RTG_SR90.get(1) },
+ null,
+ new int[] { 660 },
+ 20 * 300 * 100,
+ 1020 * 4,
+ 500 * 20); // PO Special Value
// Strontium pu239
CORE.RA.addCyclotronRecipe(
- CI.getNumberedCircuit(1),
- FluidUtils.getFluidStack("molten.plutonium", 10),
- new ItemStack[] { GregtechItemList.Pellet_RTG_SR90.get(1) },
- null,
- new int[] { 220 },
- 20 * 300 * 100,
- 1020 * 4,
- 500 * 20); // PO Special Value
+ CI.getNumberedCircuit(1),
+ FluidUtils.getFluidStack("molten.plutonium", 10),
+ new ItemStack[] { GregtechItemList.Pellet_RTG_SR90.get(1) },
+ null,
+ new int[] { 220 },
+ 20 * 300 * 100,
+ 1020 * 4,
+ 500 * 20); // PO Special Value
// Plutonium
CORE.RA.addCyclotronRecipe(
- CI.getNumberedCircuit(1),
- FluidUtils.getFluidStack("molten.plutonium238", 1),
- new ItemStack[] { GregtechItemList.Pellet_RTG_PU238.get(2) },
- null,
- new int[] { 780 },
- 20 * 300 * 100,
- 1020 * 4,
- 500 * 20); // PO Special Value
+ CI.getNumberedCircuit(1),
+ FluidUtils.getFluidStack("molten.plutonium238", 1),
+ new ItemStack[] { GregtechItemList.Pellet_RTG_PU238.get(2) },
+ null,
+ new int[] { 780 },
+ 20 * 300 * 100,
+ 1020 * 4,
+ 500 * 20); // PO Special Value
// Neptunium
CORE.RA.addCyclotronRecipe(
- new ItemStack[] { ELEMENT.getInstance().URANIUM238.getDust(1) },
- FluidUtils.getFluidStack("deuterium", 400),
- new ItemStack[] { ItemUtils.getSimpleStack(ModItems.dustNeptunium238) },
- null,
- new int[] { 500 },
- 20 * 5,
- 500 * 4,
- 500 * 20); // PO Special Value
+ new ItemStack[] { ELEMENT.getInstance().URANIUM238.getDust(1) },
+ FluidUtils.getFluidStack("deuterium", 400),
+ new ItemStack[] { ItemUtils.getSimpleStack(ModItems.dustNeptunium238) },
+ null,
+ new int[] { 500 },
+ 20 * 5,
+ 500 * 4,
+ 500 * 20); // PO Special Value
/*
* Particle Science
@@ -1402,85 +1596,81 @@ public class RECIPES_GREGTECH {
// Quark Smash
CORE.RA.addCyclotronRecipe(
- CI.getNumberedCircuit(3),
- FluidUtils.getFluidStack("plasma.hydrogen", 100),
- new ItemStack[] { Particle.getBaseParticle(Particle.UP), Particle.getBaseParticle(Particle.DOWN),
- Particle.getBaseParticle(Particle.CHARM), Particle.getBaseParticle(Particle.STRANGE),
- Particle.getBaseParticle(Particle.TOP), Particle.getBaseParticle(Particle.BOTTOM), },
- null,
- new int[] { 50, 50, 50, 50, 50, 50 },
- 20 * 300 * 9,
- (int) MaterialUtils.getVoltageForTier(7),
- 750 * 20);
+ CI.getNumberedCircuit(3),
+ FluidUtils.getFluidStack("plasma.hydrogen", 100),
+ new ItemStack[] { Particle.getBaseParticle(Particle.UP), Particle.getBaseParticle(Particle.DOWN),
+ Particle.getBaseParticle(Particle.CHARM), Particle.getBaseParticle(Particle.STRANGE),
+ Particle.getBaseParticle(Particle.TOP), Particle.getBaseParticle(Particle.BOTTOM), },
+ null,
+ new int[] { 50, 50, 50, 50, 50, 50 },
+ 20 * 300 * 9,
+ (int) MaterialUtils.getVoltageForTier(7),
+ 750 * 20);
// Lepton Smash
CORE.RA.addCyclotronRecipe(
- CI.getNumberedCircuit(6),
- FluidUtils.getFluidStack("plasma.helium", 1500),
- new ItemStack[] { Particle.getBaseParticle(Particle.ELECTRON), Particle.getBaseParticle(Particle.MUON),
- Particle.getBaseParticle(Particle.TAU), Particle.getBaseParticle(Particle.ELECTRON_NEUTRINO),
- Particle.getBaseParticle(Particle.MUON_NEUTRINO),
- Particle.getBaseParticle(Particle.TAU_NEUTRINO), },
- null,
- new int[] { 600, 40, 20, 15, 10, 5 },
- 20 * 300 * 8,
- (int) MaterialUtils.getVoltageForTier(7),
- 750 * 20);
+ CI.getNumberedCircuit(6),
+ FluidUtils.getFluidStack("plasma.helium", 1500),
+ new ItemStack[] { Particle.getBaseParticle(Particle.ELECTRON), Particle.getBaseParticle(Particle.MUON),
+ Particle.getBaseParticle(Particle.TAU), Particle.getBaseParticle(Particle.ELECTRON_NEUTRINO),
+ Particle.getBaseParticle(Particle.MUON_NEUTRINO), Particle.getBaseParticle(Particle.TAU_NEUTRINO), },
+ null,
+ new int[] { 600, 40, 20, 15, 10, 5 },
+ 20 * 300 * 8,
+ (int) MaterialUtils.getVoltageForTier(7),
+ 750 * 20);
// Boson Smash
CORE.RA.addCyclotronRecipe(
- CI.getNumberedCircuit(9),
- FluidUtils.getFluidStack("plasma.helium", 1500),
- new ItemStack[] { Particle.getBaseParticle(Particle.GLUON), Particle.getBaseParticle(Particle.PHOTON),
- Particle.getBaseParticle(Particle.Z_BOSON), Particle.getBaseParticle(Particle.W_BOSON),
- Particle.getBaseParticle(Particle.HIGGS_BOSON), },
- null,
- new int[] { 160, 260, 150, 150, 1 },
- 20 * 300 * 6,
- (int) MaterialUtils.getVoltageForTier(7),
- 750 * 20);
+ CI.getNumberedCircuit(9),
+ FluidUtils.getFluidStack("plasma.helium", 1500),
+ new ItemStack[] { Particle.getBaseParticle(Particle.GLUON), Particle.getBaseParticle(Particle.PHOTON),
+ Particle.getBaseParticle(Particle.Z_BOSON), Particle.getBaseParticle(Particle.W_BOSON),
+ Particle.getBaseParticle(Particle.HIGGS_BOSON), },
+ null,
+ new int[] { 160, 260, 150, 150, 1 },
+ 20 * 300 * 6,
+ (int) MaterialUtils.getVoltageForTier(7),
+ 750 * 20);
// Mixed Smash 1
CORE.RA.addCyclotronRecipe(
- CI.getNumberedCircuit(12),
- Materials.Americium.getPlasma(2500),
- new ItemStack[] { Particle.getBaseParticle(Particle.GRAVITON),
- Particle.getBaseParticle(Particle.ETA_MESON), Particle.getBaseParticle(Particle.PION),
- Particle.getBaseParticle(Particle.PROTON), Particle.getBaseParticle(Particle.NEUTRON),
- Particle.getBaseParticle(Particle.LAMBDA), Particle.getBaseParticle(Particle.OMEGA),
- Particle.getBaseParticle(Particle.HIGGS_BOSON), },
- null,
- new int[] { 50, 50, 50, 40, 30, 20, 20, 10 },
- 1000 * 20,
- (int) MaterialUtils.getVoltageForTier(8),
- 750 * 20);
+ CI.getNumberedCircuit(12),
+ Materials.Americium.getPlasma(2500),
+ new ItemStack[] { Particle.getBaseParticle(Particle.GRAVITON), Particle.getBaseParticle(Particle.ETA_MESON),
+ Particle.getBaseParticle(Particle.PION), Particle.getBaseParticle(Particle.PROTON),
+ Particle.getBaseParticle(Particle.NEUTRON), Particle.getBaseParticle(Particle.LAMBDA),
+ Particle.getBaseParticle(Particle.OMEGA), Particle.getBaseParticle(Particle.HIGGS_BOSON), },
+ null,
+ new int[] { 50, 50, 50, 40, 30, 20, 20, 10 },
+ 1000 * 20,
+ (int) MaterialUtils.getVoltageForTier(8),
+ 750 * 20);
// Mixed Smash 1
CORE.RA.addCyclotronRecipe(
- CI.getNumberedCircuit(12),
- new FluidStack(ELEMENT.STANDALONE.CELESTIAL_TUNGSTEN.getPlasma(), 2500),
- new ItemStack[] { Particle.getBaseParticle(Particle.GRAVITON),
- Particle.getBaseParticle(Particle.ETA_MESON), Particle.getBaseParticle(Particle.PION),
- Particle.getBaseParticle(Particle.PROTON), Particle.getBaseParticle(Particle.NEUTRON),
- Particle.getBaseParticle(Particle.LAMBDA), Particle.getBaseParticle(Particle.OMEGA),
- Particle.getBaseParticle(Particle.HIGGS_BOSON), },
- null,
- new int[] { 5000, 200, 200, 100, 80, 60, 40, 30 },
- 100 * 20,
- (int) MaterialUtils.getVoltageForTier(8),
- 750 * 20);
+ CI.getNumberedCircuit(12),
+ new FluidStack(ELEMENT.STANDALONE.CELESTIAL_TUNGSTEN.getPlasma(), 2500),
+ new ItemStack[] { Particle.getBaseParticle(Particle.GRAVITON), Particle.getBaseParticle(Particle.ETA_MESON),
+ Particle.getBaseParticle(Particle.PION), Particle.getBaseParticle(Particle.PROTON),
+ Particle.getBaseParticle(Particle.NEUTRON), Particle.getBaseParticle(Particle.LAMBDA),
+ Particle.getBaseParticle(Particle.OMEGA), Particle.getBaseParticle(Particle.HIGGS_BOSON), },
+ null,
+ new int[] { 5000, 200, 200, 100, 80, 60, 40, 30 },
+ 100 * 20,
+ (int) MaterialUtils.getVoltageForTier(8),
+ 750 * 20);
// Graviton Smash
CORE.RA.addCyclotronRecipe(
- CI.getNumberedCircuit(15),
- FluidUtils.getFluidStack("plasma.hydrogen", 100),
- new ItemStack[] { Particle.getBaseParticle(Particle.GRAVITON),
- Particle.getBaseParticle(Particle.UNKNOWN) },
- null,
- new int[] { 1000, 100 },
- 20 * (90),
- (int) MaterialUtils.getVoltageForTier(6),
- 1000 * 20);
+ CI.getNumberedCircuit(15),
+ FluidUtils.getFluidStack("plasma.hydrogen", 100),
+ new ItemStack[] { Particle.getBaseParticle(Particle.GRAVITON), Particle.getBaseParticle(Particle.UNKNOWN) },
+ null,
+ new int[] { 1000, 100 },
+ 20 * (90),
+ (int) MaterialUtils.getVoltageForTier(6),
+ 1000 * 20);
FluidStack aPlasma = Materials.Duranium.getMolten(40);
FluidStack aPlasma_NULL = Materials._NULL.getPlasma(1);
@@ -1491,14 +1681,14 @@ public class RECIPES_GREGTECH {
// Quantum Anomaly
CORE.RA.addCyclotronRecipe(
- new ItemStack[] { CI.getNumberedCircuit(24), Particle.getBaseParticle(Particle.UNKNOWN), },
- aPlasma,
- new ItemStack[] { GregtechItemList.Laser_Lens_Special.get(1) },
- null,
- new int[] { 100 },
- 20 * (25),
- (int) MaterialUtils.getVoltageForTier(8),
- 500 * 20);
+ new ItemStack[] { CI.getNumberedCircuit(24), Particle.getBaseParticle(Particle.UNKNOWN), },
+ aPlasma,
+ new ItemStack[] { GregtechItemList.Laser_Lens_Special.get(1) },
+ null,
+ new int[] { 100 },
+ 20 * (25),
+ (int) MaterialUtils.getVoltageForTier(8),
+ 500 * 20);
/*
* Ions
@@ -1508,7 +1698,8 @@ public class RECIPES_GREGTECH {
int tenCountA = 2;
int tenCountB = 0;
for (String y : IonParticles.MetaToNameMap.values()) {
- if (y.toLowerCase().contains("hydrogen")) {
+ if (y.toLowerCase()
+ .contains("hydrogen")) {
continue;
}
FluidStack aPlasma2 = FluidUtils.getFluidStack("plasma." + y.toLowerCase(), 2);
@@ -1517,18 +1708,18 @@ public class RECIPES_GREGTECH {
// Ionize Plasma
if ((aPlasma2 != null && !aPlasma2.isFluidEqual(aPlasma_NULL))
- || (aPlasma3 != null && !aPlasma3.isFluidEqual(aPlasma_NULL))) {
+ || (aPlasma3 != null && !aPlasma3.isFluidEqual(aPlasma_NULL))) {
CORE.RA.addCyclotronRecipe(
- CI.getNumberedCircuit(1 + (tenCountA - 1)),
- aPlasma2 != null ? aPlasma2 : aPlasma3,
- new ItemStack[] { Particle.getIon(y, 1), Particle.getIon(y, 2), Particle.getIon(y, 3),
- Particle.getIon(y, -1), Particle.getIon(y, -2), Particle.getIon(y, -3),
- Particle.getIon(y, 1), Particle.getIon(y, 2), Particle.getIon(y, -1), },
- null,
- new int[] { 275, 250, 225, 275, 250, 225, 275, 250, 275 },
- 20 * 20 * (IonCount++) * tenCountA,
- (int) MaterialUtils.getVoltageForTier(7),
- 1500 * 20 * tenCountA);
+ CI.getNumberedCircuit(1 + (tenCountA - 1)),
+ aPlasma2 != null ? aPlasma2 : aPlasma3,
+ new ItemStack[] { Particle.getIon(y, 1), Particle.getIon(y, 2), Particle.getIon(y, 3),
+ Particle.getIon(y, -1), Particle.getIon(y, -2), Particle.getIon(y, -3), Particle.getIon(y, 1),
+ Particle.getIon(y, 2), Particle.getIon(y, -1), },
+ null,
+ new int[] { 275, 250, 225, 275, 250, 225, 275, 250, 275 },
+ 20 * 20 * (IonCount++) * tenCountA,
+ (int) MaterialUtils.getVoltageForTier(7),
+ 1500 * 20 * tenCountA);
} else {
Logger.INFO("Plasma for " + y + " does not exist, please report this to Alkalus.");
}
@@ -1543,73 +1734,73 @@ public class RECIPES_GREGTECH {
// Generate Hydrogen Ion Recipe
CORE.RA.addCyclotronRecipe(
- CI.getNumberedCircuit(24),
- FluidUtils.getWildcardFluidStack("hydrogen", 1000),
- new ItemStack[] { Particle.getIon("Hydrogen", 1), Particle.getIon("Hydrogen", 2),
- Particle.getIon("Hydrogen", 3), Particle.getIon("Hydrogen", 1), Particle.getIon("Hydrogen", 2),
- Particle.getIon("Hydrogen", 3), Particle.getIon("Hydrogen", -1),
- Particle.getIon("Hydrogen", -2), Particle.getIon("Hydrogen", -3) },
- null,
- new int[] { 500, 500, 500, 500, 500, 500, 500, 500, 500 },
- 20 * 20,
- (int) MaterialUtils.getVoltageForTier(6),
- 2500);
+ CI.getNumberedCircuit(24),
+ FluidUtils.getWildcardFluidStack("hydrogen", 1000),
+ new ItemStack[] { Particle.getIon("Hydrogen", 1), Particle.getIon("Hydrogen", 2),
+ Particle.getIon("Hydrogen", 3), Particle.getIon("Hydrogen", 1), Particle.getIon("Hydrogen", 2),
+ Particle.getIon("Hydrogen", 3), Particle.getIon("Hydrogen", -1), Particle.getIon("Hydrogen", -2),
+ Particle.getIon("Hydrogen", -3) },
+ null,
+ new int[] { 500, 500, 500, 500, 500, 500, 500, 500, 500 },
+ 20 * 20,
+ (int) MaterialUtils.getVoltageForTier(6),
+ 2500);
// Generate Hydrogen Plasma Recipe
CORE.RA.addCyclotronRecipe(
- new ItemStack[] { CI.getNumberedCircuit(21), Particle.getIon("Hydrogen", 0), },
- FluidUtils.getFluidStack("hydrogen", 1000),
- new ItemStack[] { Particle.getBaseParticle(Particle.PROTON), Particle.getBaseParticle(Particle.NEUTRON),
- Particle.getBaseParticle(Particle.ELECTRON), Particle.getBaseParticle(Particle.UNKNOWN),
- Particle.getBaseParticle(Particle.UNKNOWN), Particle.getBaseParticle(Particle.UNKNOWN), },
- FluidUtils.getFluidStack("plasma.hydrogen", 100),
- new int[] { 1250, 1250, 1250, 750, 750, 750 },
- 20 * 60 * 2,
- (int) MaterialUtils.getVoltageForTier(6),
- 750 * 20);
+ new ItemStack[] { CI.getNumberedCircuit(21), Particle.getIon("Hydrogen", 0), },
+ FluidUtils.getFluidStack("hydrogen", 1000),
+ new ItemStack[] { Particle.getBaseParticle(Particle.PROTON), Particle.getBaseParticle(Particle.NEUTRON),
+ Particle.getBaseParticle(Particle.ELECTRON), Particle.getBaseParticle(Particle.UNKNOWN),
+ Particle.getBaseParticle(Particle.UNKNOWN), Particle.getBaseParticle(Particle.UNKNOWN), },
+ FluidUtils.getFluidStack("plasma.hydrogen", 100),
+ new int[] { 1250, 1250, 1250, 750, 750, 750 },
+ 20 * 60 * 2,
+ (int) MaterialUtils.getVoltageForTier(6),
+ 750 * 20);
// Generate Protons Easily
CORE.RA.addCyclotronRecipe(
- new ItemStack[] { CI.getNumberedCircuit(20), Particle.getIon("Hydrogen", 0) },
- FluidUtils.getWildcardFluidStack("hydrogen", 100),
- new ItemStack[] { Particle.getBaseParticle(Particle.PROTON), Particle.getBaseParticle(Particle.PROTON),
- Particle.getBaseParticle(Particle.PROTON), Particle.getBaseParticle(Particle.PROTON),
- Particle.getBaseParticle(Particle.PROTON), Particle.getBaseParticle(Particle.PROTON),
- Particle.getBaseParticle(Particle.PROTON), Particle.getBaseParticle(Particle.PROTON),
- Particle.getBaseParticle(Particle.PROTON), },
- null,
- new int[] { 750, 750, 750, 750, 750, 750, 750, 750, 750 },
- 20 * 20,
- (int) MaterialUtils.getVoltageForTier(6),
- 1500);
+ new ItemStack[] { CI.getNumberedCircuit(20), Particle.getIon("Hydrogen", 0) },
+ FluidUtils.getWildcardFluidStack("hydrogen", 100),
+ new ItemStack[] { Particle.getBaseParticle(Particle.PROTON), Particle.getBaseParticle(Particle.PROTON),
+ Particle.getBaseParticle(Particle.PROTON), Particle.getBaseParticle(Particle.PROTON),
+ Particle.getBaseParticle(Particle.PROTON), Particle.getBaseParticle(Particle.PROTON),
+ Particle.getBaseParticle(Particle.PROTON), Particle.getBaseParticle(Particle.PROTON),
+ Particle.getBaseParticle(Particle.PROTON), },
+ null,
+ new int[] { 750, 750, 750, 750, 750, 750, 750, 750, 750 },
+ 20 * 20,
+ (int) MaterialUtils.getVoltageForTier(6),
+ 1500);
CORE.RA.addCyclotronRecipe(
- new ItemStack[] { CI.getNumberedCircuit(22), Particle.getBaseParticle(Particle.UNKNOWN), },
- FluidUtils.getWildcardFluidStack("hydrogen", 100),
- new ItemStack[] { Particle.getBaseParticle(Particle.PROTON), Particle.getBaseParticle(Particle.PROTON),
- Particle.getBaseParticle(Particle.PROTON), Particle.getBaseParticle(Particle.PROTON),
- Particle.getBaseParticle(Particle.PROTON), Particle.getBaseParticle(Particle.PROTON),
- Particle.getBaseParticle(Particle.PROTON), Particle.getBaseParticle(Particle.PROTON),
- Particle.getBaseParticle(Particle.PROTON), },
- null,
- new int[] { 375, 375, 375, 375, 375, 375, 375, 375, 375 },
- 20 * 20,
- (int) MaterialUtils.getVoltageForTier(6),
- 1500);
+ new ItemStack[] { CI.getNumberedCircuit(22), Particle.getBaseParticle(Particle.UNKNOWN), },
+ FluidUtils.getWildcardFluidStack("hydrogen", 100),
+ new ItemStack[] { Particle.getBaseParticle(Particle.PROTON), Particle.getBaseParticle(Particle.PROTON),
+ Particle.getBaseParticle(Particle.PROTON), Particle.getBaseParticle(Particle.PROTON),
+ Particle.getBaseParticle(Particle.PROTON), Particle.getBaseParticle(Particle.PROTON),
+ Particle.getBaseParticle(Particle.PROTON), Particle.getBaseParticle(Particle.PROTON),
+ Particle.getBaseParticle(Particle.PROTON), },
+ null,
+ new int[] { 375, 375, 375, 375, 375, 375, 375, 375, 375 },
+ 20 * 20,
+ (int) MaterialUtils.getVoltageForTier(6),
+ 1500);
// Create Strange Dust
CORE.RA.addCyclotronRecipe(
- new ItemStack[] { ELEMENT.getInstance().PLUTONIUM238.getDust(1),
- Particle.getBaseParticle(Particle.UNKNOWN), Particle.getBaseParticle(Particle.UNKNOWN),
- Particle.getBaseParticle(Particle.UNKNOWN), Particle.getBaseParticle(Particle.UNKNOWN),
- Particle.getBaseParticle(Particle.UNKNOWN), Particle.getBaseParticle(Particle.UNKNOWN),
- Particle.getBaseParticle(Particle.UNKNOWN), Particle.getBaseParticle(Particle.UNKNOWN), },
- FluidUtils.getFluidStack(FluidUtils.getWildcardFluidStack("ender", 1000), 1000),
- new ItemStack[] { ORES.DEEP_EARTH_REACTOR_FUEL_DEPOSIT.getDust(1) },
- null,
- new int[] { 2500 },
- 20 * 60 * 15,
- (int) MaterialUtils.getVoltageForTier(7),
- 250);
+ new ItemStack[] { ELEMENT.getInstance().PLUTONIUM238.getDust(1), Particle.getBaseParticle(Particle.UNKNOWN),
+ Particle.getBaseParticle(Particle.UNKNOWN), Particle.getBaseParticle(Particle.UNKNOWN),
+ Particle.getBaseParticle(Particle.UNKNOWN), Particle.getBaseParticle(Particle.UNKNOWN),
+ Particle.getBaseParticle(Particle.UNKNOWN), Particle.getBaseParticle(Particle.UNKNOWN),
+ Particle.getBaseParticle(Particle.UNKNOWN), },
+ FluidUtils.getFluidStack(FluidUtils.getWildcardFluidStack("ender", 1000), 1000),
+ new ItemStack[] { ORES.DEEP_EARTH_REACTOR_FUEL_DEPOSIT.getDust(1) },
+ null,
+ new int[] { 2500 },
+ 20 * 60 * 15,
+ (int) MaterialUtils.getVoltageForTier(7),
+ 250);
}
}
diff --git a/src/main/java/gtPlusPlus/core/recipe/RECIPES_General.java b/src/main/java/gtPlusPlus/core/recipe/RECIPES_General.java
index 605a998687..5e198bfac4 100644
--- a/src/main/java/gtPlusPlus/core/recipe/RECIPES_General.java
+++ b/src/main/java/gtPlusPlus/core/recipe/RECIPES_General.java
@@ -64,29 +64,29 @@ public class RECIPES_General {
private static void run() {
// Workbench Blueprint
RecipeUtils.addShapedRecipe(
- RECIPE_Paper,
- RECIPE_LapisDust,
- NULL,
- RECIPE_Paper,
- RECIPE_LapisDust,
- NULL,
- RECIPE_LapisDust,
- RECIPE_LapisDust,
- NULL,
- OUTPUT_Blueprint);
+ RECIPE_Paper,
+ RECIPE_LapisDust,
+ NULL,
+ RECIPE_Paper,
+ RECIPE_LapisDust,
+ NULL,
+ RECIPE_LapisDust,
+ RECIPE_LapisDust,
+ NULL,
+ OUTPUT_Blueprint);
// Rainforest oak Sapling
if (RecipeUtils.addShapedRecipe(
- "stickWood",
- "stickWood",
- "stickWood",
- "stickWood",
- "treeSapling",
- "stickWood",
- "stickWood",
- "dustBone",
- "stickWood",
- ItemUtils.getSimpleStack(BOP_Block_Registrator.sapling_Rainforest))) {
+ "stickWood",
+ "stickWood",
+ "stickWood",
+ "stickWood",
+ "treeSapling",
+ "stickWood",
+ "stickWood",
+ "dustBone",
+ "stickWood",
+ ItemUtils.getSimpleStack(BOP_Block_Registrator.sapling_Rainforest))) {
Logger.INFO("Added a recipe for Rainforest oak Saplings.");
}
@@ -95,124 +95,128 @@ public class RECIPES_General {
// Fish Trap
if (RecipeUtils.addShapedRecipe(
- ironBars,
- ironBars,
- ironBars,
- ironBars,
- "frameGtWroughtIron",
- ironBars,
- ironBars,
- ironBars,
- ironBars,
- ItemUtils.getSimpleStack(ModBlocks.blockFishTrap))) {
+ ironBars,
+ ironBars,
+ ironBars,
+ ironBars,
+ "frameGtWroughtIron",
+ ironBars,
+ ironBars,
+ ironBars,
+ ironBars,
+ ItemUtils.getSimpleStack(ModBlocks.blockFishTrap))) {
Logger.INFO("Added a recipe for the Fish Trap.");
}
// Potin
if (RecipeUtils.addShapelessGregtechRecipe(
- new Object[] { "dustLead", "dustBronze", "dustTin", "dustLead", "dustBronze" },
- ALLOY.POTIN.getDust(5))) {
+ new Object[] { "dustLead", "dustBronze", "dustTin", "dustLead", "dustBronze" },
+ ALLOY.POTIN.getDust(5))) {
Logger.INFO("Added shapeless recipe for Potin Dust.");
}
// Tumbaga
if (RecipeUtils.addShapelessGregtechRecipe(
- new Object[] { "dustGold", "dustGold", "dustCopper" },
- ItemUtils.getSimpleStack(ModItems.dustTumbagaMix))) {
+ new Object[] { "dustGold", "dustGold", "dustCopper" },
+ ItemUtils.getSimpleStack(ModItems.dustTumbagaMix))) {
Logger.INFO("Added shapeless recipe for Tumbaga Mix.");
}
if (RecipeUtils.addShapelessGregtechRecipe(
- new Object[] { ItemUtils.getSimpleStack(ModItems.dustTumbagaMix),
- ItemUtils.getSimpleStack(ModItems.dustTumbagaMix),
- ItemUtils.getSimpleStack(ModItems.dustTumbagaMix), "dustGold" },
- ALLOY.TUMBAGA.getDust(10))) {
+ new Object[] { ItemUtils.getSimpleStack(ModItems.dustTumbagaMix),
+ ItemUtils.getSimpleStack(ModItems.dustTumbagaMix), ItemUtils.getSimpleStack(ModItems.dustTumbagaMix),
+ "dustGold" },
+ ALLOY.TUMBAGA.getDust(10))) {
Logger.INFO("Added shapeless recipe for Tumbaga Dust.");
}
if (CORE.ConfigSwitches.enableMachine_Pollution) {
RecipeUtils.addShapedRecipe(
- CI.craftingToolFile,
- "plateIron",
- "stickIron",
- "plateIron",
- "ringIron",
- "plateIron",
- "stickIron",
- "plateIron",
- CI.craftingToolHammer_Hard,
- ItemUtils.simpleMetaStack(ModItems.itemBasicTurbine, 0, 1));
+ CI.craftingToolFile,
+ "plateIron",
+ "stickIron",
+ "plateIron",
+ "ringIron",
+ "plateIron",
+ "stickIron",
+ "plateIron",
+ CI.craftingToolHammer_Hard,
+ ItemUtils.simpleMetaStack(ModItems.itemBasicTurbine, 0, 1));
RecipeUtils.addShapedRecipe(
- CI.craftingToolFile,
- "plateBronze",
- "stickBronze",
- "plateBronze",
- "ringBronze",
- "plateBronze",
- "stickBronze",
- "plateBronze",
- CI.craftingToolHammer_Hard,
- ItemUtils.simpleMetaStack(ModItems.itemBasicTurbine, 1, 1));
+ CI.craftingToolFile,
+ "plateBronze",
+ "stickBronze",
+ "plateBronze",
+ "ringBronze",
+ "plateBronze",
+ "stickBronze",
+ "plateBronze",
+ CI.craftingToolHammer_Hard,
+ ItemUtils.simpleMetaStack(ModItems.itemBasicTurbine, 1, 1));
RecipeUtils.addShapedRecipe(
- CI.craftingToolFile,
- "plateSteel",
- "stickSteel",
- "plateSteel",
- "ringSteel",
- "plateSteel",
- "stickSteel",
- "plateSteel",
- CI.craftingToolHammer_Hard,
- ItemUtils.simpleMetaStack(ModItems.itemBasicTurbine, 2, 1));
+ CI.craftingToolFile,
+ "plateSteel",
+ "stickSteel",
+ "plateSteel",
+ "ringSteel",
+ "plateSteel",
+ "stickSteel",
+ "plateSteel",
+ CI.craftingToolHammer_Hard,
+ ItemUtils.simpleMetaStack(ModItems.itemBasicTurbine, 2, 1));
}
GT_Values.RA.stdBuilder()
- .itemInputs(
- ItemUtils.getSimpleStack(Blocks.glass, 16),
- ItemUtils.getSimpleStack(Blocks.glowstone, 16),
- ItemList.Large_Fluid_Cell_Steel.get(1),
- CI.getNumberedAdvancedCircuit(4))
- .itemOutputs(VolumetricFlaskHelper.getLargeVolumetricFlask(2))
- .fluidInputs(FluidUtils.getFluidStack("molten.borosilicateglass", 2000)).duration(15 * SECONDS)
- .eut(TierEU.RECIPE_HV).addTo(assemblerRecipes);
+ .itemInputs(
+ ItemUtils.getSimpleStack(Blocks.glass, 16),
+ ItemUtils.getSimpleStack(Blocks.glowstone, 16),
+ ItemList.Large_Fluid_Cell_Steel.get(1),
+ CI.getNumberedAdvancedCircuit(4))
+ .itemOutputs(VolumetricFlaskHelper.getLargeVolumetricFlask(2))
+ .fluidInputs(FluidUtils.getFluidStack("molten.borosilicateglass", 2000))
+ .duration(15 * SECONDS)
+ .eut(TierEU.RECIPE_HV)
+ .addTo(assemblerRecipes);
GT_Values.RA.stdBuilder()
- .itemInputs(
- ItemUtils.getSimpleStack(Blocks.glass, 64),
- ItemUtils.getSimpleStack(Blocks.glowstone, 64),
- ItemList.Large_Fluid_Cell_TungstenSteel.get(1),
- CI.getNumberedAdvancedCircuit(5))
- .itemOutputs(VolumetricFlaskHelper.getGiganticVolumetricFlask(2))
- .fluidInputs(FluidUtils.getFluidStack("molten.borosilicateglass", 8000)).duration(15 * SECONDS)
- .eut(TierEU.RECIPE_IV).addTo(assemblerRecipes);
+ .itemInputs(
+ ItemUtils.getSimpleStack(Blocks.glass, 64),
+ ItemUtils.getSimpleStack(Blocks.glowstone, 64),
+ ItemList.Large_Fluid_Cell_TungstenSteel.get(1),
+ CI.getNumberedAdvancedCircuit(5))
+ .itemOutputs(VolumetricFlaskHelper.getGiganticVolumetricFlask(2))
+ .fluidInputs(FluidUtils.getFluidStack("molten.borosilicateglass", 8000))
+ .duration(15 * SECONDS)
+ .eut(TierEU.RECIPE_IV)
+ .addTo(assemblerRecipes);
// Mining Explosive
Logger.RECIPE("[Inspection] Explosives");
if (RecipeUtils.addShapedRecipe(
- CI.explosiveITNT,
- CI.explosiveTNT,
- CI.explosiveITNT,
- CI.explosiveTNT,
- "frameGtIron",
- CI.explosiveTNT,
- "dustSulfur",
- CI.explosiveTNT,
- "dustSulfur",
- ItemUtils.getSimpleStack(ModBlocks.blockMiningExplosive, 3))) {
+ CI.explosiveITNT,
+ CI.explosiveTNT,
+ CI.explosiveITNT,
+ CI.explosiveTNT,
+ "frameGtIron",
+ CI.explosiveTNT,
+ "dustSulfur",
+ CI.explosiveTNT,
+ "dustSulfur",
+ ItemUtils.getSimpleStack(ModBlocks.blockMiningExplosive, 3))) {
Logger.INFO("Added a recipe for Mining Explosives.");
}
// Alkalus Coin
if (RecipeUtils.addShapedRecipe(
- "gemExquisiteRuby",
- "gemFlawlessDiamond",
- "gemExquisiteDiamond",
- "gemFlawlessRuby",
- ItemList.Credit_Greg_Osmium.get(1),
- "gemFlawlessSapphire",
- "gemExquisiteEmerald",
- "gemFlawlessEmerald",
- "gemExquisiteSapphire",
- ItemUtils.getSimpleStack(ModItems.itemAlkalusDisk))) {
+ "gemExquisiteRuby",
+ "gemFlawlessDiamond",
+ "gemExquisiteDiamond",
+ "gemFlawlessRuby",
+ ItemList.Credit_Greg_Osmium.get(1),
+ "gemFlawlessSapphire",
+ "gemExquisiteEmerald",
+ "gemFlawlessEmerald",
+ "gemExquisiteSapphire",
+ ItemUtils.getSimpleStack(ModItems.itemAlkalusDisk))) {
Logger.INFO("Added a recipe for The Alkalus Disk.");
}
@@ -228,59 +232,63 @@ public class RECIPES_General {
Logger.RECIPE("[Inspection] Wither Cage");
if (RecipeUtils.addShapedRecipe(
- "stickBlackSteel",
- "plateTungstenSteel",
- "stickBlackSteel",
- "plateTungstenSteel",
- getSimpleStack(Items.nether_star),
- "plateTungstenSteel",
- "stickBlackSteel",
- "plateTungstenSteel",
- "stickBlackSteel",
- ItemUtils.getSimpleStack(ModBlocks.blockWitherGuard, 32))) {
+ "stickBlackSteel",
+ "plateTungstenSteel",
+ "stickBlackSteel",
+ "plateTungstenSteel",
+ getSimpleStack(Items.nether_star),
+ "plateTungstenSteel",
+ "stickBlackSteel",
+ "plateTungstenSteel",
+ "stickBlackSteel",
+ ItemUtils.getSimpleStack(ModBlocks.blockWitherGuard, 32))) {
Logger.INFO("Added a recipe for Wither Cages.");
}
// Magic Feather
GT_Values.RA.stdBuilder()
- .itemInputs(
- ItemUtils.getSimpleStack(Items.feather, 64),
- ItemUtils.getSimpleStack(Blocks.emerald_block, 32),
- ItemUtils.getSimpleStack(Blocks.diamond_block, 32),
- Materials.Ruby.getBlocks(32),
- Materials.Sapphire.getBlocks(32),
- ItemUtils.getSimpleStack(Blocks.gold_block, 32))
- .itemOutputs(ItemUtils.getSimpleStack(ModItems.itemMagicFeather, 1))
- .fluidInputs(Materials.Silver.getMolten(32 * 144)).duration(2 * MINUTES).eut(TierEU.RECIPE_EV)
- .addTo(assemblerRecipes);
+ .itemInputs(
+ ItemUtils.getSimpleStack(Items.feather, 64),
+ ItemUtils.getSimpleStack(Blocks.emerald_block, 32),
+ ItemUtils.getSimpleStack(Blocks.diamond_block, 32),
+ Materials.Ruby.getBlocks(32),
+ Materials.Sapphire.getBlocks(32),
+ ItemUtils.getSimpleStack(Blocks.gold_block, 32))
+ .itemOutputs(ItemUtils.getSimpleStack(ModItems.itemMagicFeather, 1))
+ .fluidInputs(Materials.Silver.getMolten(32 * 144))
+ .duration(2 * MINUTES)
+ .eut(TierEU.RECIPE_EV)
+ .addTo(assemblerRecipes);
// Pest Killer
GT_Values.RA.stdBuilder()
- .itemInputs(
- CI.getTieredMachineCasing(1),
- CI.getElectricPump(2, 1),
- CI.getPlate(2, 4),
- ItemUtils.getItemStackOfAmountFromOreDict(CI.getTieredCircuitOreDictName(0), 2),
- CI.getNumberedCircuit(16))
- .itemOutputs(ItemUtils.getSimpleStack(ModBlocks.blockPestKiller))
- .fluidInputs(FluidUtils.getHotWater(500)).duration(1 * MINUTES).eut(TierEU.RECIPE_LV / 2)
- .addTo(assemblerRecipes);
+ .itemInputs(
+ CI.getTieredMachineCasing(1),
+ CI.getElectricPump(2, 1),
+ CI.getPlate(2, 4),
+ ItemUtils.getItemStackOfAmountFromOreDict(CI.getTieredCircuitOreDictName(0), 2),
+ CI.getNumberedCircuit(16))
+ .itemOutputs(ItemUtils.getSimpleStack(ModBlocks.blockPestKiller))
+ .fluidInputs(FluidUtils.getHotWater(500))
+ .duration(1 * MINUTES)
+ .eut(TierEU.RECIPE_LV / 2)
+ .addTo(assemblerRecipes);
}
private static boolean addCompressedObsidian() {
// Invert Obsidian
ItemStack aInvertedObsidian = ItemUtils.simpleMetaStack(ModBlocks.blockCompressedObsidian, 5, 1);
if (RecipeUtils.addShapedRecipe(
- getSimpleStack(Items.redstone),
- getSimpleStack(Items.glowstone_dust),
- getSimpleStack(Items.redstone),
- getSimpleStack(Items.glowstone_dust),
- ItemUtils.simpleMetaStack(ModBlocks.blockCompressedObsidian, 1, 1),
- getSimpleStack(Items.glowstone_dust),
- getSimpleStack(Items.redstone),
- getSimpleStack(Items.glowstone_dust),
- getSimpleStack(Items.redstone),
- aInvertedObsidian)) {
+ getSimpleStack(Items.redstone),
+ getSimpleStack(Items.glowstone_dust),
+ getSimpleStack(Items.redstone),
+ getSimpleStack(Items.glowstone_dust),
+ ItemUtils.simpleMetaStack(ModBlocks.blockCompressedObsidian, 1, 1),
+ getSimpleStack(Items.glowstone_dust),
+ getSimpleStack(Items.redstone),
+ getSimpleStack(Items.glowstone_dust),
+ getSimpleStack(Items.redstone),
+ aInvertedObsidian)) {
Logger.INFO("Added a recipe for Inverted Obsidian.");
}
@@ -307,7 +315,7 @@ public class RECIPES_General {
}
if (RecipeUtils
- .addShapelessGregtechRecipe(new ItemStack[] { output }, ItemUtils.getSimpleStack(input, 9))) {
+ .addShapelessGregtechRecipe(new ItemStack[] { output }, ItemUtils.getSimpleStack(input, 9))) {
Logger.INFO("Added a shapeless recipe for Compressed Obsidian [" + r + "]");
}
}
@@ -319,21 +327,21 @@ public class RECIPES_General {
final ItemStack output = mItems2[r + 1];
if (RecipeUtils.addShapedRecipe(
- input,
- input,
- input,
- input,
- r == 2 ? aInvertedObsidian : input,
- input,
- input,
- input,
- input,
- output)) {
+ input,
+ input,
+ input,
+ input,
+ r == 2 ? aInvertedObsidian : input,
+ input,
+ input,
+ input,
+ input,
+ output)) {
Logger.INFO("Added a recipe for Compressed Glowstone [" + r + "]");
}
if (RecipeUtils
- .addShapelessGregtechRecipe(new ItemStack[] { output }, ItemUtils.getSimpleStack(input, 9))) {
+ .addShapelessGregtechRecipe(new ItemStack[] { output }, ItemUtils.getSimpleStack(input, 9))) {
Logger.INFO("Added a shapeless recipe for Compressed Glowstone [" + r + "]");
}
}
@@ -343,8 +351,8 @@ public class RECIPES_General {
private static void migratedRecipes() {
RecipeUtils.generateMortarRecipe(
- ItemUtils.getSimpleStack(ModItems.itemPlateRawMeat),
- ItemUtils.getItemStackOfAmountFromOreDict("dustMeatRaw", 1));
+ ItemUtils.getSimpleStack(ModItems.itemPlateRawMeat),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustMeatRaw", 1));
generateWireRecipes(ELEMENT.getInstance().ZIRCONIUM);
generateWireRecipes(ALLOY.HG1223);
@@ -359,8 +367,8 @@ public class RECIPES_General {
}
Material[] gtpp = new Material[] { ALLOY.STABALLOY, ALLOY.TANTALLOY_60, ALLOY.TANTALLOY_61, ALLOY.POTIN,
- ALLOY.MARAGING300, ALLOY.MARAGING350, ALLOY.INCONEL_690, ALLOY.INCONEL_792, ALLOY.HASTELLOY_X,
- ALLOY.TRINIUM_NAQUADAH_CARBON };
+ ALLOY.MARAGING300, ALLOY.MARAGING350, ALLOY.INCONEL_690, ALLOY.INCONEL_792, ALLOY.HASTELLOY_X,
+ ALLOY.TRINIUM_NAQUADAH_CARBON };
for (Material mat : gtpp) {
// generatePipeRecipes multiplies the voltage multiplier by 8 because ??! reasons.
@@ -368,7 +376,7 @@ public class RECIPES_General {
}
Materials[] h = new Materials[] { Materials.Europium, Materials.Tungsten, Materials.DarkSteel, Materials.Clay,
- Materials.Lead, };
+ Materials.Lead, };
for (Materials e : h) {
if (e == Materials.DarkSteel) {
@@ -381,87 +389,87 @@ public class RECIPES_General {
}
RecipeUtils.addShapedGregtechRecipe(
- CI.component_Plate[6],
- ALLOY.MARAGING250.getGear(1),
- CI.component_Plate[6],
- CI.getTieredCircuitOreDictName(4),
- GregtechItemList.Casing_AdvancedVacuum.get(1),
- CI.getTieredCircuitOreDictName(4),
- CI.component_Plate[5],
- ItemList.Hatch_Input_IV.get(1),
- CI.component_Plate[5],
- GregtechItemList.Hatch_Input_Cryotheum.get(1L));
+ CI.component_Plate[6],
+ ALLOY.MARAGING250.getGear(1),
+ CI.component_Plate[6],
+ CI.getTieredCircuitOreDictName(4),
+ GregtechItemList.Casing_AdvancedVacuum.get(1),
+ CI.getTieredCircuitOreDictName(4),
+ CI.component_Plate[5],
+ ItemList.Hatch_Input_IV.get(1),
+ CI.component_Plate[5],
+ GregtechItemList.Hatch_Input_Cryotheum.get(1L));
RecipeUtils.addShapedGregtechRecipe(
- CI.component_Plate[6],
- ALLOY.MARAGING300.getGear(1),
- CI.component_Plate[6],
- CI.getTieredCircuitOreDictName(5),
- GregtechItemList.Casing_Adv_BlastFurnace.get(1),
- CI.getTieredCircuitOreDictName(5),
- CI.component_Plate[6],
- ItemList.Hatch_Input_IV.get(1),
- CI.component_Plate[6],
- GregtechItemList.Hatch_Input_Pyrotheum.get(1L));
+ CI.component_Plate[6],
+ ALLOY.MARAGING300.getGear(1),
+ CI.component_Plate[6],
+ CI.getTieredCircuitOreDictName(5),
+ GregtechItemList.Casing_Adv_BlastFurnace.get(1),
+ CI.getTieredCircuitOreDictName(5),
+ CI.component_Plate[6],
+ ItemList.Hatch_Input_IV.get(1),
+ CI.component_Plate[6],
+ GregtechItemList.Hatch_Input_Pyrotheum.get(1L));
RecipeUtils.addShapedGregtechRecipe(
- CI.component_Plate[8],
- ALLOY.PIKYONIUM.getGear(1),
- CI.component_Plate[9],
- CI.getTieredCircuitOreDictName(7),
- GregtechItemList.Casing_Naq_Reactor_A.get(1),
- CI.getTieredCircuitOreDictName(7),
- CI.component_Plate[9],
- ItemList.Hatch_Input_ZPM.get(1),
- CI.component_Plate[8],
- GregtechItemList.Hatch_Input_Naquadah.get(1L, new Object[0]));
+ CI.component_Plate[8],
+ ALLOY.PIKYONIUM.getGear(1),
+ CI.component_Plate[9],
+ CI.getTieredCircuitOreDictName(7),
+ GregtechItemList.Casing_Naq_Reactor_A.get(1),
+ CI.getTieredCircuitOreDictName(7),
+ CI.component_Plate[9],
+ ItemList.Hatch_Input_ZPM.get(1),
+ CI.component_Plate[8],
+ GregtechItemList.Hatch_Input_Naquadah.get(1L, new Object[0]));
if (PollutionUtils.isPollutionEnabled()) {
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Hatch_Muffler_Adv_LV.get(1L, new Object[0]),
- bitsd,
- new Object[] { "M", "P", Character.valueOf('M'), ItemList.Hatch_Muffler_LV.get(1),
- Character.valueOf('P'), GregtechItemList.Pollution_Cleaner_LV.get(1) });
+ GregtechItemList.Hatch_Muffler_Adv_LV.get(1L, new Object[0]),
+ bitsd,
+ new Object[] { "M", "P", Character.valueOf('M'), ItemList.Hatch_Muffler_LV.get(1),
+ Character.valueOf('P'), GregtechItemList.Pollution_Cleaner_LV.get(1) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Hatch_Muffler_Adv_MV.get(1L, new Object[0]),
- bitsd,
- new Object[] { "M", "P", Character.valueOf('M'), ItemList.Hatch_Muffler_MV.get(1),
- Character.valueOf('P'), GregtechItemList.Pollution_Cleaner_MV.get(1) });
+ GregtechItemList.Hatch_Muffler_Adv_MV.get(1L, new Object[0]),
+ bitsd,
+ new Object[] { "M", "P", Character.valueOf('M'), ItemList.Hatch_Muffler_MV.get(1),
+ Character.valueOf('P'), GregtechItemList.Pollution_Cleaner_MV.get(1) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Hatch_Muffler_Adv_HV.get(1L, new Object[0]),
- bitsd,
- new Object[] { "M", "P", Character.valueOf('M'), ItemList.Hatch_Muffler_HV.get(1),
- Character.valueOf('P'), GregtechItemList.Pollution_Cleaner_HV.get(1) });
+ GregtechItemList.Hatch_Muffler_Adv_HV.get(1L, new Object[0]),
+ bitsd,
+ new Object[] { "M", "P", Character.valueOf('M'), ItemList.Hatch_Muffler_HV.get(1),
+ Character.valueOf('P'), GregtechItemList.Pollution_Cleaner_HV.get(1) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Hatch_Muffler_Adv_EV.get(1L, new Object[0]),
- bitsd,
- new Object[] { "M", "P", Character.valueOf('M'), ItemList.Hatch_Muffler_EV.get(1),
- Character.valueOf('P'), GregtechItemList.Pollution_Cleaner_EV.get(1) });
+ GregtechItemList.Hatch_Muffler_Adv_EV.get(1L, new Object[0]),
+ bitsd,
+ new Object[] { "M", "P", Character.valueOf('M'), ItemList.Hatch_Muffler_EV.get(1),
+ Character.valueOf('P'), GregtechItemList.Pollution_Cleaner_EV.get(1) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Hatch_Muffler_Adv_IV.get(1L, new Object[0]),
- bitsd,
- new Object[] { "M", "P", Character.valueOf('M'), ItemList.Hatch_Muffler_IV.get(1),
- Character.valueOf('P'), GregtechItemList.Pollution_Cleaner_IV.get(1) });
+ GregtechItemList.Hatch_Muffler_Adv_IV.get(1L, new Object[0]),
+ bitsd,
+ new Object[] { "M", "P", Character.valueOf('M'), ItemList.Hatch_Muffler_IV.get(1),
+ Character.valueOf('P'), GregtechItemList.Pollution_Cleaner_IV.get(1) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Hatch_Muffler_Adv_LuV.get(1L, new Object[0]),
- bitsd,
- new Object[] { "M", "P", Character.valueOf('M'), ItemList.Hatch_Muffler_LuV.get(1),
- Character.valueOf('P'), GregtechItemList.Pollution_Cleaner_LuV.get(1) });
+ GregtechItemList.Hatch_Muffler_Adv_LuV.get(1L, new Object[0]),
+ bitsd,
+ new Object[] { "M", "P", Character.valueOf('M'), ItemList.Hatch_Muffler_LuV.get(1),
+ Character.valueOf('P'), GregtechItemList.Pollution_Cleaner_LuV.get(1) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Hatch_Muffler_Adv_ZPM.get(1L, new Object[0]),
- bitsd,
- new Object[] { "M", "P", Character.valueOf('M'), ItemList.Hatch_Muffler_ZPM.get(1),
- Character.valueOf('P'), GregtechItemList.Pollution_Cleaner_ZPM.get(1) });
+ GregtechItemList.Hatch_Muffler_Adv_ZPM.get(1L, new Object[0]),
+ bitsd,
+ new Object[] { "M", "P", Character.valueOf('M'), ItemList.Hatch_Muffler_ZPM.get(1),
+ Character.valueOf('P'), GregtechItemList.Pollution_Cleaner_ZPM.get(1) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Hatch_Muffler_Adv_UV.get(1L, new Object[0]),
- bitsd,
- new Object[] { "M", "P", Character.valueOf('M'), ItemList.Hatch_Muffler_UV.get(1),
- Character.valueOf('P'), GregtechItemList.Pollution_Cleaner_UV.get(1) });
+ GregtechItemList.Hatch_Muffler_Adv_UV.get(1L, new Object[0]),
+ bitsd,
+ new Object[] { "M", "P", Character.valueOf('M'), ItemList.Hatch_Muffler_UV.get(1),
+ Character.valueOf('P'), GregtechItemList.Pollution_Cleaner_UV.get(1) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Hatch_Muffler_Adv_MAX.get(1L, new Object[0]),
- bitsd,
- new Object[] { "M", "P", Character.valueOf('M'), ItemList.Hatch_Muffler_MAX.get(1),
- Character.valueOf('P'), GregtechItemList.Pollution_Cleaner_MAX.get(1) });
+ GregtechItemList.Hatch_Muffler_Adv_MAX.get(1L, new Object[0]),
+ bitsd,
+ new Object[] { "M", "P", Character.valueOf('M'), ItemList.Hatch_Muffler_MAX.get(1),
+ Character.valueOf('P'), GregtechItemList.Pollution_Cleaner_MAX.get(1) });
}
}
}
diff --git a/src/main/java/gtPlusPlus/core/recipe/RECIPES_LaserEngraver.java b/src/main/java/gtPlusPlus/core/recipe/RECIPES_LaserEngraver.java
index a9061b997d..1f8d5d9a8e 100644
--- a/src/main/java/gtPlusPlus/core/recipe/RECIPES_LaserEngraver.java
+++ b/src/main/java/gtPlusPlus/core/recipe/RECIPES_LaserEngraver.java
@@ -27,31 +27,35 @@ public class RECIPES_LaserEngraver implements IOreRecipeRegistrator {
@Override
public void registerOre(final OrePrefixes aPrefix, final Materials aMaterial, final String aOreDictName,
- final String aModName, final ItemStack aStack) {
+ final String aModName, final ItemStack aStack) {
if (aOreDictName.equals(OreDictNames.craftingLensWhite.toString())) {
GT_Values.RA.stdBuilder()
- .itemInputs(
- GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Lithium, 2L),
- GT_Utility.copyAmount(0L, aStack))
- .itemOutputs(ItemUtils.getItemStackOfAmountFromOreDict("plateDoubleLithium7", 1))
- .duration(4 * MINUTES).eut(TierEU.RECIPE_EV).addTo(laserEngraverRecipes);
+ .itemInputs(
+ GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Lithium, 2L),
+ GT_Utility.copyAmount(0L, aStack))
+ .itemOutputs(ItemUtils.getItemStackOfAmountFromOreDict("plateDoubleLithium7", 1))
+ .duration(4 * MINUTES)
+ .eut(TierEU.RECIPE_EV)
+ .addTo(laserEngraverRecipes);
GT_Values.RA.stdBuilder()
- .itemInputs(
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lithium, 3L),
- GT_Utility.copyAmount(0L, aStack))
- .itemOutputs(ItemUtils.getItemStackOfAmountFromOreDict("dustLithium7", 1)).duration(2 * MINUTES)
- .eut(TierEU.RECIPE_EV).addTo(laserEngraverRecipes);
+ .itemInputs(
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lithium, 3L),
+ GT_Utility.copyAmount(0L, aStack))
+ .itemOutputs(ItemUtils.getItemStackOfAmountFromOreDict("dustLithium7", 1))
+ .duration(2 * MINUTES)
+ .eut(TierEU.RECIPE_EV)
+ .addTo(laserEngraverRecipes);
} else if (aOreDictName.equals(OreDictNames.craftingLensLime.toString())) {
// Coil Wires
ItemStack coilWire1 = ItemUtils
- .getItemStackWithMeta(true, "miscutils:itemDehydratorCoilWire", "coilWire1", 0, 1);
+ .getItemStackWithMeta(true, "miscutils:itemDehydratorCoilWire", "coilWire1", 0, 1);
ItemStack coilWire2 = ItemUtils
- .getItemStackWithMeta(true, "miscutils:itemDehydratorCoilWire:1", "coilWire2", 1, 1);
+ .getItemStackWithMeta(true, "miscutils:itemDehydratorCoilWire:1", "coilWire2", 1, 1);
ItemStack coilWire3 = ItemUtils
- .getItemStackWithMeta(true, "miscutils:itemDehydratorCoilWire:2", "coilWire3", 2, 1);
+ .getItemStackWithMeta(true, "miscutils:itemDehydratorCoilWire:2", "coilWire3", 2, 1);
ItemStack coilWire4 = ItemUtils
- .getItemStackWithMeta(true, "miscutils:itemDehydratorCoilWire:3", "coilWire4", 3, 1);
+ .getItemStackWithMeta(true, "miscutils:itemDehydratorCoilWire:3", "coilWire4", 3, 1);
// Simple Life
String wire = "wireGt02";
@@ -67,31 +71,65 @@ public class RECIPES_LaserEngraver implements IOreRecipeRegistrator {
ItemStack wireT4a = ItemUtils.getItemStackOfAmountFromOreDict(wire + "Naquadah", 1);
// T1
- GT_Values.RA.stdBuilder().itemInputs(wireT1a, GT_Utility.copyAmount(0L, aStack)).itemOutputs(coilWire1)
- .duration(10 * SECONDS).eut(TierEU.RECIPE_HV).addTo(laserEngraverRecipes);
- GT_Values.RA.stdBuilder().itemInputs(wireT1b, GT_Utility.copyAmount(0L, aStack)).itemOutputs(coilWire1)
- .duration(10 * SECONDS).eut(TierEU.RECIPE_HV).addTo(laserEngraverRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(wireT1a, GT_Utility.copyAmount(0L, aStack))
+ .itemOutputs(coilWire1)
+ .duration(10 * SECONDS)
+ .eut(TierEU.RECIPE_HV)
+ .addTo(laserEngraverRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(wireT1b, GT_Utility.copyAmount(0L, aStack))
+ .itemOutputs(coilWire1)
+ .duration(10 * SECONDS)
+ .eut(TierEU.RECIPE_HV)
+ .addTo(laserEngraverRecipes);
// T2
- GT_Values.RA.stdBuilder().itemInputs(wireT2a, GT_Utility.copyAmount(0L, aStack)).itemOutputs(coilWire2)
- .duration(20 * SECONDS).eut(TierEU.RECIPE_EV).addTo(laserEngraverRecipes);
- GT_Values.RA.stdBuilder().itemInputs(wireT2b, GT_Utility.copyAmount(0L, aStack)).itemOutputs(coilWire2)
- .duration(20 * SECONDS).eut(TierEU.RECIPE_EV).addTo(laserEngraverRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(wireT2a, GT_Utility.copyAmount(0L, aStack))
+ .itemOutputs(coilWire2)
+ .duration(20 * SECONDS)
+ .eut(TierEU.RECIPE_EV)
+ .addTo(laserEngraverRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(wireT2b, GT_Utility.copyAmount(0L, aStack))
+ .itemOutputs(coilWire2)
+ .duration(20 * SECONDS)
+ .eut(TierEU.RECIPE_EV)
+ .addTo(laserEngraverRecipes);
// T3
- GT_Values.RA.stdBuilder().itemInputs(wireT3a, GT_Utility.copyAmount(0L, aStack)).itemOutputs(coilWire3)
- .duration(30 * SECONDS).eut(TierEU.RECIPE_IV).addTo(laserEngraverRecipes);
- GT_Values.RA.stdBuilder().itemInputs(wireT3b, GT_Utility.copyAmount(0L, aStack)).itemOutputs(coilWire3)
- .duration(30 * SECONDS).eut(TierEU.RECIPE_IV).addTo(laserEngraverRecipes);
- GT_Values.RA.stdBuilder().itemInputs(wireT3c, GT_Utility.copyAmount(0L, aStack)).itemOutputs(coilWire3)
- .duration(30 * SECONDS).eut(TierEU.RECIPE_IV).addTo(laserEngraverRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(wireT3a, GT_Utility.copyAmount(0L, aStack))
+ .itemOutputs(coilWire3)
+ .duration(30 * SECONDS)
+ .eut(TierEU.RECIPE_IV)
+ .addTo(laserEngraverRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(wireT3b, GT_Utility.copyAmount(0L, aStack))
+ .itemOutputs(coilWire3)
+ .duration(30 * SECONDS)
+ .eut(TierEU.RECIPE_IV)
+ .addTo(laserEngraverRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(wireT3c, GT_Utility.copyAmount(0L, aStack))
+ .itemOutputs(coilWire3)
+ .duration(30 * SECONDS)
+ .eut(TierEU.RECIPE_IV)
+ .addTo(laserEngraverRecipes);
// T4
- GT_Values.RA.stdBuilder().itemInputs(wireT4a, GT_Utility.copyAmount(0L, aStack)).itemOutputs(coilWire4)
- .duration(40 * SECONDS).eut(TierEU.RECIPE_LuV).addTo(laserEngraverRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(wireT4a, GT_Utility.copyAmount(0L, aStack))
+ .itemOutputs(coilWire4)
+ .duration(40 * SECONDS)
+ .eut(TierEU.RECIPE_LuV)
+ .addTo(laserEngraverRecipes);
} else if (aOreDictName.equals(OreDictNames.craftingLensOrange.toString())) {
GT_Values.RA.stdBuilder()
- .itemInputs(ItemUtils.getSimpleStack(ModItems.itemAlkalusDisk), GT_Utility.copyAmount(0L, aStack))
- .itemOutputs(ItemUtils.getSimpleStack(Dimension_Everglades.portalItem)).duration(3 * HOURS)
- .eut(TierEU.RECIPE_IV).addTo(laserEngraverRecipes);
+ .itemInputs(ItemUtils.getSimpleStack(ModItems.itemAlkalusDisk), GT_Utility.copyAmount(0L, aStack))
+ .itemOutputs(ItemUtils.getSimpleStack(Dimension_Everglades.portalItem))
+ .duration(3 * HOURS)
+ .eut(TierEU.RECIPE_IV)
+ .addTo(laserEngraverRecipes);
}
}
}
diff --git a/src/main/java/gtPlusPlus/core/recipe/RECIPES_Machines.java b/src/main/java/gtPlusPlus/core/recipe/RECIPES_Machines.java
index 9df69577e2..2f9e347b52 100644
--- a/src/main/java/gtPlusPlus/core/recipe/RECIPES_Machines.java
+++ b/src/main/java/gtPlusPlus/core/recipe/RECIPES_Machines.java
@@ -205,60 +205,60 @@ public class RECIPES_Machines {
private static void thermicFluidHeater() {
RecipeUtils.addShapedGregtechRecipe(
- CI.getPlate(5, 1),
- CI.circuitTier5,
- CI.getPlate(5, 1),
- pipeTier7,
- ItemList.Machine_IV_FluidHeater.get(1),
- pipeTier7,
- CI.getPlate(5, 1),
- CI.circuitTier4,
- CI.getPlate(5, 1),
- GregtechItemList.Controller_IndustrialFluidHeater.get(1));
+ CI.getPlate(5, 1),
+ CI.circuitTier5,
+ CI.getPlate(5, 1),
+ pipeTier7,
+ ItemList.Machine_IV_FluidHeater.get(1),
+ pipeTier7,
+ CI.getPlate(5, 1),
+ CI.circuitTier4,
+ CI.getPlate(5, 1),
+ GregtechItemList.Controller_IndustrialFluidHeater.get(1));
}
private static void advHeatExchanger() {
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(18), ItemList.Machine_Multi_HeatExchanger.get(1),
- CI.getDoublePlate(6, 8), CI.getScrew(6, 16), CI.getCircuit(5, 8) },
- CI.tieredMaterials[5].getMolten(144 * 8),
- GregtechItemList.XL_HeatExchanger.get(1),
- 20 * 60,
- MaterialUtils.getVoltageForTier(6));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(18), ItemList.Machine_Multi_HeatExchanger.get(1),
+ CI.getDoublePlate(6, 8), CI.getScrew(6, 16), CI.getCircuit(5, 8) },
+ CI.tieredMaterials[5].getMolten(144 * 8),
+ GregtechItemList.XL_HeatExchanger.get(1),
+ 20 * 60,
+ MaterialUtils.getVoltageForTier(6));
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(18), ItemList.Casing_StableTitanium.get(1),
- CI.getPlate(5, 4), CI.getScrew(5, 8), },
- CI.tieredMaterials[5].getMolten(144 * 2),
- GregtechItemList.Casing_XL_HeatExchanger.get(1),
- 20 * 5,
- MaterialUtils.getVoltageForTier(6));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(18), ItemList.Casing_StableTitanium.get(1),
+ CI.getPlate(5, 4), CI.getScrew(5, 8), },
+ CI.tieredMaterials[5].getMolten(144 * 2),
+ GregtechItemList.Casing_XL_HeatExchanger.get(1),
+ 20 * 5,
+ MaterialUtils.getVoltageForTier(6));
}
private static void gt4FarmManager() {
ItemList[] aInputHatches = new ItemList[] { ItemList.Hatch_Input_LV, ItemList.Hatch_Input_MV,
- ItemList.Hatch_Input_HV, ItemList.Hatch_Input_EV, ItemList.Hatch_Input_IV, ItemList.Hatch_Input_LuV,
- ItemList.Hatch_Input_ZPM, ItemList.Hatch_Input_UV };
+ ItemList.Hatch_Input_HV, ItemList.Hatch_Input_EV, ItemList.Hatch_Input_IV, ItemList.Hatch_Input_LuV,
+ ItemList.Hatch_Input_ZPM, ItemList.Hatch_Input_UV };
GregtechItemList[] aOutputMachines = new GregtechItemList[] { GregtechItemList.GT4_Crop_Harvester_LV,
- GregtechItemList.GT4_Crop_Harvester_MV, GregtechItemList.GT4_Crop_Harvester_HV,
- GregtechItemList.GT4_Crop_Harvester_EV, GregtechItemList.GT4_Crop_Harvester_IV,
- GregtechItemList.GT4_Crop_Harvester_LuV, GregtechItemList.GT4_Crop_Harvester_ZPM,
- GregtechItemList.GT4_Crop_Harvester_UV };
+ GregtechItemList.GT4_Crop_Harvester_MV, GregtechItemList.GT4_Crop_Harvester_HV,
+ GregtechItemList.GT4_Crop_Harvester_EV, GregtechItemList.GT4_Crop_Harvester_IV,
+ GregtechItemList.GT4_Crop_Harvester_LuV, GregtechItemList.GT4_Crop_Harvester_ZPM,
+ GregtechItemList.GT4_Crop_Harvester_UV };
int aTier = 1;
for (int i = 0; i < 8; i++) {
RecipeUtils.addShapedRecipe(
- CI.getRobotArm(aTier, 1),
- CI.getSensor(aTier, 1),
- CI.getRobotArm(aTier, 1),
- ItemUtils.getOrePrefixStack(OrePrefixes.toolHeadSense, CI.tieredMaterials[aTier], 1),
- CI.getTieredMachineHull(aTier, 1),
- ItemUtils.getOrePrefixStack(OrePrefixes.toolHeadSense, CI.tieredMaterials[aTier], 1),
- CI.getTieredCircuitOreDictName(aTier),
- aInputHatches[i].get(1),
- CI.getTieredCircuitOreDictName(aTier),
- aOutputMachines[i].get(1));
+ CI.getRobotArm(aTier, 1),
+ CI.getSensor(aTier, 1),
+ CI.getRobotArm(aTier, 1),
+ ItemUtils.getOrePrefixStack(OrePrefixes.toolHeadSense, CI.tieredMaterials[aTier], 1),
+ CI.getTieredMachineHull(aTier, 1),
+ ItemUtils.getOrePrefixStack(OrePrefixes.toolHeadSense, CI.tieredMaterials[aTier], 1),
+ CI.getTieredCircuitOreDictName(aTier),
+ aInputHatches[i].get(1),
+ CI.getTieredCircuitOreDictName(aTier),
+ aOutputMachines[i].get(1));
aTier++;
}
}
@@ -266,24 +266,24 @@ public class RECIPES_Machines {
private static void gt4Inventory() {
GregtechItemList[] aOutputElectricCraftingTable = new GregtechItemList[] {
- GregtechItemList.GT4_Electric_Auto_Workbench_LV, GregtechItemList.GT4_Electric_Auto_Workbench_MV,
- GregtechItemList.GT4_Electric_Auto_Workbench_HV, GregtechItemList.GT4_Electric_Auto_Workbench_EV,
- GregtechItemList.GT4_Electric_Auto_Workbench_IV, GregtechItemList.GT4_Electric_Auto_Workbench_LuV,
- GregtechItemList.GT4_Electric_Auto_Workbench_ZPM, GregtechItemList.GT4_Electric_Auto_Workbench_UV };
+ GregtechItemList.GT4_Electric_Auto_Workbench_LV, GregtechItemList.GT4_Electric_Auto_Workbench_MV,
+ GregtechItemList.GT4_Electric_Auto_Workbench_HV, GregtechItemList.GT4_Electric_Auto_Workbench_EV,
+ GregtechItemList.GT4_Electric_Auto_Workbench_IV, GregtechItemList.GT4_Electric_Auto_Workbench_LuV,
+ GregtechItemList.GT4_Electric_Auto_Workbench_ZPM, GregtechItemList.GT4_Electric_Auto_Workbench_UV };
int aTier = 1;
for (int i = 0; i < 8; i++) {
RecipeUtils.addShapedRecipe(
- ItemUtils.getOrePrefixStack(OrePrefixes.plate, CI.tieredMaterials[aTier], 1),
- ItemUtils.getSimpleStack(Blocks.crafting_table),
- ItemUtils.getOrePrefixStack(OrePrefixes.plate, CI.tieredMaterials[aTier], 1),
- CI.getTieredCircuitOreDictName(aTier),
- CI.getTieredMachineHull(aTier),
- CI.getTieredCircuitOreDictName(aTier),
- ItemUtils.getOrePrefixStack(OrePrefixes.plate, CI.tieredMaterials[aTier], 1),
- CI.getRobotArm(aTier, 1),
- ItemUtils.getOrePrefixStack(OrePrefixes.plate, CI.tieredMaterials[aTier], 1),
- aOutputElectricCraftingTable[i].get(1));
+ ItemUtils.getOrePrefixStack(OrePrefixes.plate, CI.tieredMaterials[aTier], 1),
+ ItemUtils.getSimpleStack(Blocks.crafting_table),
+ ItemUtils.getOrePrefixStack(OrePrefixes.plate, CI.tieredMaterials[aTier], 1),
+ CI.getTieredCircuitOreDictName(aTier),
+ CI.getTieredMachineHull(aTier),
+ CI.getTieredCircuitOreDictName(aTier),
+ ItemUtils.getOrePrefixStack(OrePrefixes.plate, CI.tieredMaterials[aTier], 1),
+ CI.getRobotArm(aTier, 1),
+ ItemUtils.getOrePrefixStack(OrePrefixes.plate, CI.tieredMaterials[aTier], 1),
+ aOutputElectricCraftingTable[i].get(1));
aTier++;
}
}
@@ -291,273 +291,270 @@ public class RECIPES_Machines {
private static void multiForgeHammer() {
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { ItemUtils.getSimpleStack(CI.machineHull_IV, 2), ItemList.Machine_IV_Hammer.get(1),
- CI.getPlate(4, 8), CI.getBolt(5, 32), ELEMENT.getInstance().ZIRCONIUM.getFineWire(32),
- ItemUtils.getItemStackOfAmountFromOreDict("circuitElite", 4) },
- CI.getTieredFluid(4, 144 * 12),
- GregtechItemList.Controller_IndustrialForgeHammer.get(1),
- 20 * 30,
- MaterialUtils.getVoltageForTier(5));
+ new ItemStack[] { ItemUtils.getSimpleStack(CI.machineHull_IV, 2), ItemList.Machine_IV_Hammer.get(1),
+ CI.getPlate(4, 8), CI.getBolt(5, 32), ELEMENT.getInstance().ZIRCONIUM.getFineWire(32),
+ ItemUtils.getItemStackOfAmountFromOreDict("circuitElite", 4) },
+ CI.getTieredFluid(4, 144 * 12),
+ GregtechItemList.Controller_IndustrialForgeHammer.get(1),
+ 20 * 30,
+ MaterialUtils.getVoltageForTier(5));
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Casing_IndustrialForgeHammer.get(1),
- CI.bitsd,
- new Object[] { "IBI", "HCH", "IHI", 'I', CI.getPlate(4, 1), 'B', ALLOY.BABBIT_ALLOY.getPlate(1), 'C',
- ItemList.Casing_HeatProof.get(1), 'H', ALLOY.HASTELLOY_X.getRod(1) });
+ GregtechItemList.Casing_IndustrialForgeHammer.get(1),
+ CI.bitsd,
+ new Object[] { "IBI", "HCH", "IHI", 'I', CI.getPlate(4, 1), 'B', ALLOY.BABBIT_ALLOY.getPlate(1), 'C',
+ ItemList.Casing_HeatProof.get(1), 'H', ALLOY.HASTELLOY_X.getRod(1) });
}
private static void multiMolecularTransformer() {
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getTieredGTPPMachineCasing(6, 1), CI.getPlate(5, 16), CI.getBolt(5, 32),
- ALLOY.HG1223.getFineWire(64), CI.getEmitter(4, 8),
- ItemUtils.getItemStackOfAmountFromOreDict("circuitMaster", 10) },
- CI.getTieredFluid(5, 144 * 16),
- ItemDummyResearch.getResearchStack(ASSEMBLY_LINE_RESEARCH.RESEARCH_11_MOLECULAR_TRANSFORMER, 1),
- 20 * 60,
- MaterialUtils.getVoltageForTier(5));
+ new ItemStack[] { CI.getTieredGTPPMachineCasing(6, 1), CI.getPlate(5, 16), CI.getBolt(5, 32),
+ ALLOY.HG1223.getFineWire(64), CI.getEmitter(4, 8),
+ ItemUtils.getItemStackOfAmountFromOreDict("circuitMaster", 10) },
+ CI.getTieredFluid(5, 144 * 16),
+ ItemDummyResearch.getResearchStack(ASSEMBLY_LINE_RESEARCH.RESEARCH_11_MOLECULAR_TRANSFORMER, 1),
+ 20 * 60,
+ MaterialUtils.getVoltageForTier(5));
CORE.RA.addAssemblylineRecipe(
- ItemDummyResearch.getResearchStack(ASSEMBLY_LINE_RESEARCH.RESEARCH_11_MOLECULAR_TRANSFORMER, 1),
- 20 * 60 * 30,
- new Object[] { ALLOY.HG1223.getFineWire(64), ALLOY.HG1223.getFineWire(64),
- ItemList.Electric_Motor_IV.get(16), ItemList.Energy_LapotronicOrb.get(16),
- CI.getTieredComponent(OrePrefixes.cableGt12, 6, 16),
- CI.getTieredComponent(OrePrefixes.wireGt16, 5, 32), ALLOY.ZERON_100.getFrameBox(4),
- ALLOY.ZIRCONIUM_CARBIDE.getPlateDouble(32), ALLOY.BABBIT_ALLOY.getPlate(64),
- ALLOY.LEAGRISIUM.getGear(8), new Object[] { CI.getTieredCircuitOreDictName(4), 64 },
- new Object[] { CI.getTieredCircuitOreDictName(5), 32 },
- new Object[] { CI.getTieredCircuitOreDictName(6), 16 },
- GregtechItemList.Laser_Lens_WoodsGlass.get(1), },
- new FluidStack[] { ALLOY.NITINOL_60.getFluidStack(144 * 9 * (2)),
- ALLOY.INCOLOY_MA956.getFluidStack(144 * 9 * (8)), ALLOY.KANTHAL.getFluidStack(144 * 1 * (4)), },
- GregtechItemList.Controller_MolecularTransformer.get(1),
- 20 * 60 * 10 * (1),
- MaterialUtils.getVoltageForTier(6));
+ ItemDummyResearch.getResearchStack(ASSEMBLY_LINE_RESEARCH.RESEARCH_11_MOLECULAR_TRANSFORMER, 1),
+ 20 * 60 * 30,
+ new Object[] { ALLOY.HG1223.getFineWire(64), ALLOY.HG1223.getFineWire(64),
+ ItemList.Electric_Motor_IV.get(16), ItemList.Energy_LapotronicOrb.get(16),
+ CI.getTieredComponent(OrePrefixes.cableGt12, 6, 16), CI.getTieredComponent(OrePrefixes.wireGt16, 5, 32),
+ ALLOY.ZERON_100.getFrameBox(4), ALLOY.ZIRCONIUM_CARBIDE.getPlateDouble(32),
+ ALLOY.BABBIT_ALLOY.getPlate(64), ALLOY.LEAGRISIUM.getGear(8),
+ new Object[] { CI.getTieredCircuitOreDictName(4), 64 },
+ new Object[] { CI.getTieredCircuitOreDictName(5), 32 },
+ new Object[] { CI.getTieredCircuitOreDictName(6), 16 },
+ GregtechItemList.Laser_Lens_WoodsGlass.get(1), },
+ new FluidStack[] { ALLOY.NITINOL_60.getFluidStack(144 * 9 * (2)),
+ ALLOY.INCOLOY_MA956.getFluidStack(144 * 9 * (8)), ALLOY.KANTHAL.getFluidStack(144 * 1 * (4)), },
+ GregtechItemList.Controller_MolecularTransformer.get(1),
+ 20 * 60 * 10 * (1),
+ MaterialUtils.getVoltageForTier(6));
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(16), CI.getPlate(6, 4), CI.getScrew(6, 8),
- ELEMENT.getInstance().PALLADIUM.getFineWire(16), CI.getSensor(5, 2),
- ItemUtils.getItemStackOfAmountFromOreDict("circuitElite", 4) },
- CI.getTieredFluid(5, 144 * 4),
- GregtechItemList.Casing_Molecular_Transformer_1.get(1),
- 20 * 20,
- MaterialUtils.getVoltageForTier(5));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(16), CI.getPlate(6, 4), CI.getScrew(6, 8),
+ ELEMENT.getInstance().PALLADIUM.getFineWire(16), CI.getSensor(5, 2),
+ ItemUtils.getItemStackOfAmountFromOreDict("circuitElite", 4) },
+ CI.getTieredFluid(5, 144 * 4),
+ GregtechItemList.Casing_Molecular_Transformer_1.get(1),
+ 20 * 20,
+ MaterialUtils.getVoltageForTier(5));
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(16), CI.getPlate(5, 4), CI.getScrew(5, 8),
- ItemList.Casing_Coil_Nichrome.get(2), CI.getFieldGenerator(3, 2),
- ItemUtils.getItemStackOfAmountFromOreDict("circuitData", 8) },
- CI.getTieredFluid(5, 144 * 4),
- GregtechItemList.Casing_Molecular_Transformer_2.get(1),
- 20 * 20,
- MaterialUtils.getVoltageForTier(5));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(16), CI.getPlate(5, 4), CI.getScrew(5, 8),
+ ItemList.Casing_Coil_Nichrome.get(2), CI.getFieldGenerator(3, 2),
+ ItemUtils.getItemStackOfAmountFromOreDict("circuitData", 8) },
+ CI.getTieredFluid(5, 144 * 4),
+ GregtechItemList.Casing_Molecular_Transformer_2.get(1),
+ 20 * 20,
+ MaterialUtils.getVoltageForTier(5));
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(16), ItemUtils.getSimpleStack(Blocks.glowstone, 16),
- CI.getGear(5, 8), ELEMENT.getInstance().TITANIUM.getWire04(4), CI.getFieldGenerator(4, 2),
- ItemUtils.getItemStackOfAmountFromOreDict("circuitData", 8) },
- CI.getTieredFluid(5, 144 * 4),
- GregtechItemList.Casing_Molecular_Transformer_3.get(1),
- 20 * 60,
- MaterialUtils.getVoltageForTier(5));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(16), ItemUtils.getSimpleStack(Blocks.glowstone, 16),
+ CI.getGear(5, 8), ELEMENT.getInstance().TITANIUM.getWire04(4), CI.getFieldGenerator(4, 2),
+ ItemUtils.getItemStackOfAmountFromOreDict("circuitData", 8) },
+ CI.getTieredFluid(5, 144 * 4),
+ GregtechItemList.Casing_Molecular_Transformer_3.get(1),
+ 20 * 60,
+ MaterialUtils.getVoltageForTier(5));
}
private static void multiXlTurbines() {
RecipeUtils.addShapedRecipe(
- CI.getDoublePlate(4, 1),
- CI.getElectricMotor(3, 1),
- CI.getDoublePlate(4, 1),
- ItemUtils.getItemStackOfAmountFromOreDict("cellLubricant", 1),
- ItemList.Casing_Gearbox_Titanium.get(1),
- ItemUtils.getItemStackOfAmountFromOreDict("cellLubricant", 1),
- CI.getDoublePlate(4, 1),
- CI.getElectricMotor(3, 1),
- CI.getDoublePlate(4, 1),
- GregtechItemList.Casing_Turbine_Shaft.get(1));
+ CI.getDoublePlate(4, 1),
+ CI.getElectricMotor(3, 1),
+ CI.getDoublePlate(4, 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("cellLubricant", 1),
+ ItemList.Casing_Gearbox_Titanium.get(1),
+ ItemUtils.getItemStackOfAmountFromOreDict("cellLubricant", 1),
+ CI.getDoublePlate(4, 1),
+ CI.getElectricMotor(3, 1),
+ CI.getDoublePlate(4, 1),
+ GregtechItemList.Casing_Turbine_Shaft.get(1));
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(18), ItemList.Casing_Turbine.get(1), CI.getPlate(4, 4),
- CI.getScrew(4, 8), CI.getCircuit(4, 4), CI.getGear(3, 8) },
- CI.tieredMaterials[3].getMolten(144 * 8),
- GregtechItemList.Hatch_Turbine_Rotor.get(1),
- 20 * 60,
- MaterialUtils.getVoltageForTier(4));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(18), ItemList.Casing_Turbine.get(1), CI.getPlate(4, 4),
+ CI.getScrew(4, 8), CI.getCircuit(4, 4), CI.getGear(3, 8) },
+ CI.tieredMaterials[3].getMolten(144 * 8),
+ GregtechItemList.Hatch_Turbine_Rotor.get(1),
+ 20 * 60,
+ MaterialUtils.getVoltageForTier(4));
// Steam
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(18), ItemList.Casing_Turbine.get(1), CI.getPlate(3, 4),
- CI.getScrew(3, 8), },
- CI.tieredMaterials[2].getMolten(144 * 2),
- GregtechItemList.Casing_Turbine_LP.get(1),
- 20 * 5,
- MaterialUtils.getVoltageForTier(3));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(18), ItemList.Casing_Turbine.get(1), CI.getPlate(3, 4),
+ CI.getScrew(3, 8), },
+ CI.tieredMaterials[2].getMolten(144 * 2),
+ GregtechItemList.Casing_Turbine_LP.get(1),
+ 20 * 5,
+ MaterialUtils.getVoltageForTier(3));
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(18), ItemList.LargeSteamTurbine.get(1),
- CI.getPlate(4, 8), CI.getScrew(4, 16), CI.getGear(4, 4), CI.getCircuit(4, 8) },
- CI.tieredMaterials[4].getMolten(144 * 8),
- GregtechItemList.Large_Steam_Turbine.get(1),
- 20 * 60,
- MaterialUtils.getVoltageForTier(4));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(18), ItemList.LargeSteamTurbine.get(1), CI.getPlate(4, 8),
+ CI.getScrew(4, 16), CI.getGear(4, 4), CI.getCircuit(4, 8) },
+ CI.tieredMaterials[4].getMolten(144 * 8),
+ GregtechItemList.Large_Steam_Turbine.get(1),
+ 20 * 60,
+ MaterialUtils.getVoltageForTier(4));
// Gas
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(18), ItemList.Casing_Turbine1.get(1), CI.getPlate(4, 4),
- CI.getScrew(4, 8), },
- CI.tieredMaterials[3].getMolten(144 * 2),
- GregtechItemList.Casing_Turbine_Gas.get(1),
- 20 * 5,
- MaterialUtils.getVoltageForTier(4));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(18), ItemList.Casing_Turbine1.get(1), CI.getPlate(4, 4),
+ CI.getScrew(4, 8), },
+ CI.tieredMaterials[3].getMolten(144 * 2),
+ GregtechItemList.Casing_Turbine_Gas.get(1),
+ 20 * 5,
+ MaterialUtils.getVoltageForTier(4));
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(18), ItemList.LargeGasTurbine.get(1), CI.getPlate(5, 8),
- CI.getScrew(5, 16), CI.getGear(5, 4), CI.getCircuit(5, 8) },
- CI.tieredMaterials[5].getMolten(144 * 8),
- GregtechItemList.Large_Gas_Turbine.get(1),
- 20 * 60,
- MaterialUtils.getVoltageForTier(5));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(18), ItemList.LargeGasTurbine.get(1), CI.getPlate(5, 8),
+ CI.getScrew(5, 16), CI.getGear(5, 4), CI.getCircuit(5, 8) },
+ CI.tieredMaterials[5].getMolten(144 * 8),
+ GregtechItemList.Large_Gas_Turbine.get(1),
+ 20 * 60,
+ MaterialUtils.getVoltageForTier(5));
// HP Steam
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(18), ItemList.Casing_Turbine2.get(1), CI.getPlate(5, 4),
- CI.getScrew(5, 8), },
- CI.tieredMaterials[4].getMolten(144 * 2),
- GregtechItemList.Casing_Turbine_HP.get(1),
- 20 * 5,
- MaterialUtils.getVoltageForTier(5));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(18), ItemList.Casing_Turbine2.get(1), CI.getPlate(5, 4),
+ CI.getScrew(5, 8), },
+ CI.tieredMaterials[4].getMolten(144 * 2),
+ GregtechItemList.Casing_Turbine_HP.get(1),
+ 20 * 5,
+ MaterialUtils.getVoltageForTier(5));
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(18), ItemList.LargeHPSteamTurbine.get(1),
- CI.getPlate(6, 8), CI.getScrew(6, 16), CI.getGear(6, 4), CI.getCircuit(6, 8) },
- CI.tieredMaterials[6].getMolten(144 * 8),
- GregtechItemList.Large_HPSteam_Turbine.get(1),
- 20 * 60,
- MaterialUtils.getVoltageForTier(6));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(18), ItemList.LargeHPSteamTurbine.get(1), CI.getPlate(6, 8),
+ CI.getScrew(6, 16), CI.getGear(6, 4), CI.getCircuit(6, 8) },
+ CI.tieredMaterials[6].getMolten(144 * 8),
+ GregtechItemList.Large_HPSteam_Turbine.get(1),
+ 20 * 60,
+ MaterialUtils.getVoltageForTier(6));
// Plasma
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(18), ItemList.Casing_Turbine3.get(1), CI.getPlate(6, 4),
- CI.getScrew(6, 8), },
- CI.tieredMaterials[5].getMolten(144 * 2),
- GregtechItemList.Casing_Turbine_Plasma.get(1),
- 20 * 5,
- MaterialUtils.getVoltageForTier(6));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(18), ItemList.Casing_Turbine3.get(1), CI.getPlate(6, 4),
+ CI.getScrew(6, 8), },
+ CI.tieredMaterials[5].getMolten(144 * 2),
+ GregtechItemList.Casing_Turbine_Plasma.get(1),
+ 20 * 5,
+ MaterialUtils.getVoltageForTier(6));
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(18), ItemList.LargePlasmaTurbine.get(1),
- CI.getPlate(7, 8), CI.getScrew(7, 16), CI.getGear(7, 4), CI.getCircuit(7, 8) },
- CI.tieredMaterials[7].getMolten(144 * 8),
- GregtechItemList.Large_Plasma_Turbine.get(1),
- 20 * 60,
- MaterialUtils.getVoltageForTier(7));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(18), ItemList.LargePlasmaTurbine.get(1), CI.getPlate(7, 8),
+ CI.getScrew(7, 16), CI.getGear(7, 4), CI.getCircuit(7, 8) },
+ CI.tieredMaterials[7].getMolten(144 * 8),
+ GregtechItemList.Large_Plasma_Turbine.get(1),
+ 20 * 60,
+ MaterialUtils.getVoltageForTier(7));
if (GoodGenerator.isModLoaded()) {
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(18),
- GT_ModHandler.getModItem(GoodGenerator.ID, "supercriticalFluidTurbineCasing", 1),
- GT_ModHandler.getModItem(BartWorks.ID, "gt.bwMetaGeneratedplate", 4, 10101),
- GT_ModHandler.getModItem(BartWorks.ID, "gt.bwMetaGeneratedscrew", 8, 10101) },
- FluidRegistry.getFluidStack("molten.adamantium alloy", 144 * 2),
- GregtechItemList.Casing_Turbine_SC.get(1),
- 20 * 5,
- MaterialUtils.getVoltageForTier(6));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(18),
+ GT_ModHandler.getModItem(GoodGenerator.ID, "supercriticalFluidTurbineCasing", 1),
+ GT_ModHandler.getModItem(BartWorks.ID, "gt.bwMetaGeneratedplate", 4, 10101),
+ GT_ModHandler.getModItem(BartWorks.ID, "gt.bwMetaGeneratedscrew", 8, 10101) },
+ FluidRegistry.getFluidStack("molten.adamantium alloy", 144 * 2),
+ GregtechItemList.Casing_Turbine_SC.get(1),
+ 20 * 5,
+ MaterialUtils.getVoltageForTier(6));
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(18),
- GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 32016),
- GT_ModHandler.getModItem(BartWorks.ID, "gt.bwMetaGeneratedplate", 8, 10104),
- GT_ModHandler.getModItem(BartWorks.ID, "gt.bwMetaGeneratedscrew", 16, 10104),
- GT_ModHandler.getModItem(BartWorks.ID, "gt.bwMetaGeneratedgearGt", 4, 10104),
- CI.getCircuit(7, 8) },
- FluidRegistry.getFluidStack("molten.hikarium", 144 * 8),
- GregtechItemList.Large_SCSteam_Turbine.get(1),
- 20 * 60,
- MaterialUtils.getVoltageForTier(7));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(18),
+ GT_ModHandler.getModItem(GregTech.ID, "gt.blockmachines", 1, 32016),
+ GT_ModHandler.getModItem(BartWorks.ID, "gt.bwMetaGeneratedplate", 8, 10104),
+ GT_ModHandler.getModItem(BartWorks.ID, "gt.bwMetaGeneratedscrew", 16, 10104),
+ GT_ModHandler.getModItem(BartWorks.ID, "gt.bwMetaGeneratedgearGt", 4, 10104), CI.getCircuit(7, 8) },
+ FluidRegistry.getFluidStack("molten.hikarium", 144 * 8),
+ GregtechItemList.Large_SCSteam_Turbine.get(1),
+ 20 * 60,
+ MaterialUtils.getVoltageForTier(7));
}
}
private static void multiSolarTower() {
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(17), CI.getTieredGTPPMachineCasing(3, 4),
- ALLOY.MARAGING250.getPlate(8), ALLOY.MARAGING250.getBolt(8), ALLOY.MARAGING250.getScrew(8),
- CI.getCircuit(5, 8) },
- CI.getTieredFluid(3, 144 * 16),
- GregtechItemList.Industrial_Solar_Tower.get(1),
- 20 * 30,
- MaterialUtils.getVoltageForTier(4));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(17), CI.getTieredGTPPMachineCasing(3, 4),
+ ALLOY.MARAGING250.getPlate(8), ALLOY.MARAGING250.getBolt(8), ALLOY.MARAGING250.getScrew(8),
+ CI.getCircuit(5, 8) },
+ CI.getTieredFluid(3, 144 * 16),
+ GregtechItemList.Industrial_Solar_Tower.get(1),
+ 20 * 30,
+ MaterialUtils.getVoltageForTier(4));
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(17), ALLOY.MARAGING350.getFrameBox(1),
- ALLOY.STAINLESS_STEEL.getPlate(4), ALLOY.MARAGING350.getScrew(8) },
- CI.getTieredFluid(3, 144 * 4),
- GregtechItemList.Casing_SolarTower_Structural.get(1),
- 20 * 30,
- MaterialUtils.getVoltageForTier(3));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(17), ALLOY.MARAGING350.getFrameBox(1),
+ ALLOY.STAINLESS_STEEL.getPlate(4), ALLOY.MARAGING350.getScrew(8) },
+ CI.getTieredFluid(3, 144 * 4),
+ GregtechItemList.Casing_SolarTower_Structural.get(1),
+ 20 * 30,
+ MaterialUtils.getVoltageForTier(3));
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(17), ALLOY.MARAGING250.getFrameBox(1),
- ALLOY.STAINLESS_STEEL.getPlate(4), ALLOY.MARAGING250.getBolt(16),
- ELEMENT.getInstance().ALUMINIUM.getScrew(8) },
- CI.getTieredFluid(3, 144 * 4),
- GregtechItemList.Casing_SolarTower_SaltContainment.get(1),
- 20 * 30,
- MaterialUtils.getVoltageForTier(3));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(17), ALLOY.MARAGING250.getFrameBox(1),
+ ALLOY.STAINLESS_STEEL.getPlate(4), ALLOY.MARAGING250.getBolt(16),
+ ELEMENT.getInstance().ALUMINIUM.getScrew(8) },
+ CI.getTieredFluid(3, 144 * 4),
+ GregtechItemList.Casing_SolarTower_SaltContainment.get(1),
+ 20 * 30,
+ MaterialUtils.getVoltageForTier(3));
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(17), ALLOY.MARAGING250.getFrameBox(1),
- ALLOY.STEEL_BLACK.getPlate(4), ALLOY.MARAGING250.getScrew(8) },
- CI.getAlternativeTieredFluid(3, 144 * 4),
- GregtechItemList.Casing_SolarTower_HeatContainment.get(1),
- 20 * 30,
- MaterialUtils.getVoltageForTier(3));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(17), ALLOY.MARAGING250.getFrameBox(1),
+ ALLOY.STEEL_BLACK.getPlate(4), ALLOY.MARAGING250.getScrew(8) },
+ CI.getAlternativeTieredFluid(3, 144 * 4),
+ GregtechItemList.Casing_SolarTower_HeatContainment.get(1),
+ 20 * 30,
+ MaterialUtils.getVoltageForTier(3));
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(17), CI.getTieredGTPPMachineCasing(2, 1),
- CI.getPlate(3, 2), CI.getGear(3, 4), CI.getElectricMotor(3, 2), CI.getCircuit(3, 4) },
- CI.getTertiaryTieredFluid(3, 144 * 4),
- GregtechItemList.Solar_Tower_Reflector.get(1),
- 20 * 60,
- MaterialUtils.getVoltageForTier(3));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(17), CI.getTieredGTPPMachineCasing(2, 1), CI.getPlate(3, 2),
+ CI.getGear(3, 4), CI.getElectricMotor(3, 2), CI.getCircuit(3, 4) },
+ CI.getTertiaryTieredFluid(3, 144 * 4),
+ GregtechItemList.Solar_Tower_Reflector.get(1),
+ 20 * 60,
+ MaterialUtils.getVoltageForTier(3));
}
private static void multiElementalDuplicator() {
CORE.RA.addAssemblylineRecipe(
- ItemList.Machine_IV_Replicator.get(1),
- 20 * 60 * 60 * 12,
- new Object[] { CI.getTieredMachineHull(7, 4), CI.getFieldGenerator(5, 16), CI.getElectricMotor(7, 16),
- CI.getElectricPiston(7, 4), CI.getEnergyCore(6, 2), CI.getPlate(7, 16), CI.getScrew(7, 32),
- CI.getBolt(6, 32), CI.getTieredComponent(OrePrefixes.rod, 6, 10),
- new Object[] { CI.getTieredCircuitOreDictName(7), 20 }, ItemList.Tool_DataOrb.get(32),
- GregtechItemList.Laser_Lens_Special.get(1) },
- new FluidStack[] { CI.getTieredFluid(7, 144 * 32), CI.getAlternativeTieredFluid(6, 144 * 16),
- CI.getTertiaryTieredFluid(6, 144 * 16), ALLOY.BABBIT_ALLOY.getFluidStack(128 * 144), },
- GregtechItemList.Controller_ElementalDuplicator.get(1),
- 20 * 60 * 60,
- (int) MaterialUtils.getVoltageForTier(7));
+ ItemList.Machine_IV_Replicator.get(1),
+ 20 * 60 * 60 * 12,
+ new Object[] { CI.getTieredMachineHull(7, 4), CI.getFieldGenerator(5, 16), CI.getElectricMotor(7, 16),
+ CI.getElectricPiston(7, 4), CI.getEnergyCore(6, 2), CI.getPlate(7, 16), CI.getScrew(7, 32),
+ CI.getBolt(6, 32), CI.getTieredComponent(OrePrefixes.rod, 6, 10),
+ new Object[] { CI.getTieredCircuitOreDictName(7), 20 }, ItemList.Tool_DataOrb.get(32),
+ GregtechItemList.Laser_Lens_Special.get(1) },
+ new FluidStack[] { CI.getTieredFluid(7, 144 * 32), CI.getAlternativeTieredFluid(6, 144 * 16),
+ CI.getTertiaryTieredFluid(6, 144 * 16), ALLOY.BABBIT_ALLOY.getFluidStack(128 * 144), },
+ GregtechItemList.Controller_ElementalDuplicator.get(1),
+ 20 * 60 * 60,
+ (int) MaterialUtils.getVoltageForTier(7));
CORE.RA.addAssemblylineRecipe(
- GregtechItemList.Modulator_III.get(1),
- 20 * 60 * 60 * 4,
- new Object[] { CI.getTieredGTPPMachineCasing(7, 2), CI.getFieldGenerator(4, 4), CI.getEnergyCore(4, 2),
- CI.getPlate(7, 8), CI.getScrew(6, 16), CI.getBolt(6, 16),
- CI.getTieredComponent(OrePrefixes.rod, 5, 16),
- new Object[] { CI.getTieredCircuitOreDictName(6), 32 }, ItemList.Tool_DataOrb.get(32), },
- new FluidStack[] { CI.getTieredFluid(6, 144 * 16), CI.getAlternativeTieredFluid(5, 144 * 8),
- CI.getTertiaryTieredFluid(5, 144 * 8), ALLOY.BABBIT_ALLOY.getFluidStack(64 * 144), },
- GregtechItemList.Hatch_Input_Elemental_Duplicator.get(1),
- 20 * 60 * 60 * (2),
- (int) MaterialUtils.getVoltageForTier(6));
+ GregtechItemList.Modulator_III.get(1),
+ 20 * 60 * 60 * 4,
+ new Object[] { CI.getTieredGTPPMachineCasing(7, 2), CI.getFieldGenerator(4, 4), CI.getEnergyCore(4, 2),
+ CI.getPlate(7, 8), CI.getScrew(6, 16), CI.getBolt(6, 16), CI.getTieredComponent(OrePrefixes.rod, 5, 16),
+ new Object[] { CI.getTieredCircuitOreDictName(6), 32 }, ItemList.Tool_DataOrb.get(32), },
+ new FluidStack[] { CI.getTieredFluid(6, 144 * 16), CI.getAlternativeTieredFluid(5, 144 * 8),
+ CI.getTertiaryTieredFluid(5, 144 * 8), ALLOY.BABBIT_ALLOY.getFluidStack(64 * 144), },
+ GregtechItemList.Hatch_Input_Elemental_Duplicator.get(1),
+ 20 * 60 * 60 * (2),
+ (int) MaterialUtils.getVoltageForTier(6));
CORE.RA.addAssemblylineRecipe(
- GregtechItemList.ResonanceChamber_III.get(1),
- 20 * 60 * 60 * 2,
- new Object[] { CI.getTieredMachineHull(6, 5), CI.getFieldGenerator(3, 16), CI.getEnergyCore(2, 2),
- CI.getPlate(7, 4), CI.getScrew(7, 4), CI.getBolt(6, 8),
- CI.getTieredComponent(OrePrefixes.rod, 5, 4),
- new Object[] { CI.getTieredCircuitOreDictName(5), 4 }, ItemList.Tool_DataStick.get(4), },
- new FluidStack[] { CI.getTieredFluid(5, 144 * 16), CI.getAlternativeTieredFluid(4, 144 * 8),
- CI.getTertiaryTieredFluid(4, 144 * 8), ALLOY.BABBIT_ALLOY.getFluidStack(16 * 144), },
- GregtechItemList.Casing_ElementalDuplicator.get(1),
- 20 * 60 * (10),
- (int) MaterialUtils.getVoltageForTier(6));
+ GregtechItemList.ResonanceChamber_III.get(1),
+ 20 * 60 * 60 * 2,
+ new Object[] { CI.getTieredMachineHull(6, 5), CI.getFieldGenerator(3, 16), CI.getEnergyCore(2, 2),
+ CI.getPlate(7, 4), CI.getScrew(7, 4), CI.getBolt(6, 8), CI.getTieredComponent(OrePrefixes.rod, 5, 4),
+ new Object[] { CI.getTieredCircuitOreDictName(5), 4 }, ItemList.Tool_DataStick.get(4), },
+ new FluidStack[] { CI.getTieredFluid(5, 144 * 16), CI.getAlternativeTieredFluid(4, 144 * 8),
+ CI.getTertiaryTieredFluid(4, 144 * 8), ALLOY.BABBIT_ALLOY.getFluidStack(16 * 144), },
+ GregtechItemList.Casing_ElementalDuplicator.get(1),
+ 20 * 60 * (10),
+ (int) MaterialUtils.getVoltageForTier(6));
}
private static void resonanceChambers() {
@@ -565,16 +562,16 @@ public class RECIPES_Machines {
int aCasingTier = 4;
for (int i = 0; i < 4; i++) {
RecipeUtils.addShapedRecipe(
- CI.getDoublePlate(aCasingTier, 1),
- CI.getFieldGenerator(aFieldTier, 1),
- CI.getDoublePlate(aCasingTier, 1),
- CI.getFieldGenerator(aFieldTier, 1),
- CI.getTieredMachineCasing(aCasingTier),
- CI.getFieldGenerator(aFieldTier, 1),
- CI.getDoublePlate(aCasingTier, 1),
- CI.getFieldGenerator(aFieldTier, 1),
- CI.getDoublePlate(aCasingTier, 1),
- ItemUtils.simpleMetaStack(ModBlocks.blockSpecialMultiCasings2, i, 1));
+ CI.getDoublePlate(aCasingTier, 1),
+ CI.getFieldGenerator(aFieldTier, 1),
+ CI.getDoublePlate(aCasingTier, 1),
+ CI.getFieldGenerator(aFieldTier, 1),
+ CI.getTieredMachineCasing(aCasingTier),
+ CI.getFieldGenerator(aFieldTier, 1),
+ CI.getDoublePlate(aCasingTier, 1),
+ CI.getFieldGenerator(aFieldTier, 1),
+ CI.getDoublePlate(aCasingTier, 1),
+ ItemUtils.simpleMetaStack(ModBlocks.blockSpecialMultiCasings2, i, 1));
aCasingTier++;
aFieldTier++;
}
@@ -584,139 +581,137 @@ public class RECIPES_Machines {
int aCasingTier = 4;
for (int i = 4; i < 8; i++) {
RecipeUtils.addShapedRecipe(
- CI.getTieredCircuitOreDictName(aCasingTier),
- CI.getPlate(aCasingTier, 1),
- CI.getTieredCircuitOreDictName(aCasingTier),
- CI.getPlate(aCasingTier, 1),
- CI.getTieredMachineCasing(aCasingTier),
- CI.getPlate(aCasingTier, 1),
- CI.getTieredCircuitOreDictName(aCasingTier),
- CI.getPlate(aCasingTier, 1),
- CI.getTieredCircuitOreDictName(aCasingTier),
- ItemUtils.simpleMetaStack(ModBlocks.blockSpecialMultiCasings2, i, 1));
+ CI.getTieredCircuitOreDictName(aCasingTier),
+ CI.getPlate(aCasingTier, 1),
+ CI.getTieredCircuitOreDictName(aCasingTier),
+ CI.getPlate(aCasingTier, 1),
+ CI.getTieredMachineCasing(aCasingTier),
+ CI.getPlate(aCasingTier, 1),
+ CI.getTieredCircuitOreDictName(aCasingTier),
+ CI.getPlate(aCasingTier, 1),
+ CI.getTieredCircuitOreDictName(aCasingTier),
+ ItemUtils.simpleMetaStack(ModBlocks.blockSpecialMultiCasings2, i, 1));
aCasingTier++;
}
}
private static void zyngen() {
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(6), CI.getTieredMachineHull(4),
- ItemList.Machine_IV_AlloySmelter.get(1), CI.getGear(3, 16), CI.getBolt(3, 64),
- CI.getPlate(4, 16) },
- CI.getAlternativeTieredFluid(4, 144 * 8),
- GregtechItemList.Industrial_AlloySmelter.get(1),
- 20 * 30,
- MaterialUtils.getVoltageForTier(4));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(6), CI.getTieredMachineHull(4),
+ ItemList.Machine_IV_AlloySmelter.get(1), CI.getGear(3, 16), CI.getBolt(3, 64), CI.getPlate(4, 16) },
+ CI.getAlternativeTieredFluid(4, 144 * 8),
+ GregtechItemList.Industrial_AlloySmelter.get(1),
+ 20 * 30,
+ MaterialUtils.getVoltageForTier(4));
}
private static void chemPlant() {
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Casing_Machine_Custom_1.get(2L, new Object[0]),
- CI.bits,
- new Object[] { "PhP", "PFP", "PwP", 'P', OrePrefixes.plate.get(Materials.Bronze), 'F',
- OrePrefixes.frameGt.get(Materials.Bronze) });
+ GregtechItemList.Casing_Machine_Custom_1.get(2L, new Object[0]),
+ CI.bits,
+ new Object[] { "PhP", "PFP", "PwP", 'P', OrePrefixes.plate.get(Materials.Bronze), 'F',
+ OrePrefixes.frameGt.get(Materials.Bronze) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Casing_Machine_Custom_2.get(2L, new Object[0]),
- CI.bits,
- new Object[] { "PPP", "hFw", "PPP", 'P', OrePrefixes.plate.get(Materials.Aluminium), 'F',
- OrePrefixes.frameGt.get(Materials.Aluminium) });
+ GregtechItemList.Casing_Machine_Custom_2.get(2L, new Object[0]),
+ CI.bits,
+ new Object[] { "PPP", "hFw", "PPP", 'P', OrePrefixes.plate.get(Materials.Aluminium), 'F',
+ OrePrefixes.frameGt.get(Materials.Aluminium) });
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedBioCircuit(19), CI.getTieredGTPPMachineCasing(2, 4),
- CI.getTieredComponentOfMaterial(Materials.Aluminium, OrePrefixes.gearGt, 4),
- CI.getTieredComponentOfMaterial(Materials.AnnealedCopper, OrePrefixes.plate, 16),
- CI.getTieredComponentOfMaterial(Materials.Plastic, OrePrefixes.pipeLarge, 4),
- CI.getTieredComponent(OrePrefixes.frameGt, 2, 4), },
- ALLOY.STEEL_BLACK.getFluidStack(2 * (144 * 4)),
- GregtechItemList.ChemicalPlant_Controller.get(1),
- 120 * 20,
- MaterialUtils.getVoltageForTier(2));
+ new ItemStack[] { CI.getNumberedBioCircuit(19), CI.getTieredGTPPMachineCasing(2, 4),
+ CI.getTieredComponentOfMaterial(Materials.Aluminium, OrePrefixes.gearGt, 4),
+ CI.getTieredComponentOfMaterial(Materials.AnnealedCopper, OrePrefixes.plate, 16),
+ CI.getTieredComponentOfMaterial(Materials.Plastic, OrePrefixes.pipeLarge, 4),
+ CI.getTieredComponent(OrePrefixes.frameGt, 2, 4), },
+ ALLOY.STEEL_BLACK.getFluidStack(2 * (144 * 4)),
+ GregtechItemList.ChemicalPlant_Controller.get(1),
+ 120 * 20,
+ MaterialUtils.getVoltageForTier(2));
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedBioCircuit(15), CI.getTieredGTPPMachineCasing(1, 2),
- ItemList.Hatch_Input_Bus_MV.get(1),
- CI.getTieredComponentOfMaterial(Materials.Bronze, OrePrefixes.gearGt, 8),
- CI.getTieredComponentOfMaterial(Materials.Lead, OrePrefixes.plate, 48),
- CI.getTieredComponentOfMaterial(Materials.SolderingAlloy, OrePrefixes.wireFine, 16), },
- ALLOY.BRONZE.getFluidStack(2 * (144 * 4)),
- GregtechItemList.Bus_Catalysts.get(1),
- 60 * 20,
- MaterialUtils.getVoltageForTier(2));
+ new ItemStack[] { CI.getNumberedBioCircuit(15), CI.getTieredGTPPMachineCasing(1, 2),
+ ItemList.Hatch_Input_Bus_MV.get(1),
+ CI.getTieredComponentOfMaterial(Materials.Bronze, OrePrefixes.gearGt, 8),
+ CI.getTieredComponentOfMaterial(Materials.Lead, OrePrefixes.plate, 48),
+ CI.getTieredComponentOfMaterial(Materials.SolderingAlloy, OrePrefixes.wireFine, 16), },
+ ALLOY.BRONZE.getFluidStack(2 * (144 * 4)),
+ GregtechItemList.Bus_Catalysts.get(1),
+ 60 * 20,
+ MaterialUtils.getVoltageForTier(2));
}
private static void algaeFarm() {
// Give the bad algae a use.
CORE.RA.addDistilleryRecipe(
- ItemUtils.getSimpleStack(AgriculturalChem.mAlgaeBiosmass, 32),
- null,
- null,
- ItemUtils.getSimpleStack(AgriculturalChem.mGreenAlgaeBiosmass, 4),
- 20 * 15,
- 16,
- false);
+ ItemUtils.getSimpleStack(AgriculturalChem.mAlgaeBiosmass, 32),
+ null,
+ null,
+ ItemUtils.getSimpleStack(AgriculturalChem.mGreenAlgaeBiosmass, 4),
+ 20 * 15,
+ 16,
+ false);
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedBioCircuit(21), CI.getTieredGTPPMachineCasing(0, 4),
- CI.getTieredComponentOfMaterial(Materials.Aluminium, OrePrefixes.rod, 12),
- CI.getTieredComponentOfMaterial(Materials.Wood, OrePrefixes.plate, 32),
- CI.getTieredComponentOfMaterial(Materials.Steel, OrePrefixes.bolt, 16),
- CI.getTieredComponentOfMaterial(Materials.Redstone, OrePrefixes.dust, 32), },
- ALLOY.POTIN.getFluidStack(2 * (144 * 4)),
- GregtechItemList.AlgaeFarm_Controller.get(1),
- 60 * 20,
- MaterialUtils.getVoltageForTier(2));
+ new ItemStack[] { CI.getNumberedBioCircuit(21), CI.getTieredGTPPMachineCasing(0, 4),
+ CI.getTieredComponentOfMaterial(Materials.Aluminium, OrePrefixes.rod, 12),
+ CI.getTieredComponentOfMaterial(Materials.Wood, OrePrefixes.plate, 32),
+ CI.getTieredComponentOfMaterial(Materials.Steel, OrePrefixes.bolt, 16),
+ CI.getTieredComponentOfMaterial(Materials.Redstone, OrePrefixes.dust, 32), },
+ ALLOY.POTIN.getFluidStack(2 * (144 * 4)),
+ GregtechItemList.AlgaeFarm_Controller.get(1),
+ 60 * 20,
+ MaterialUtils.getVoltageForTier(2));
}
private static void distillus() {
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(19), ItemList.Distillation_Tower.get(2),
- GregtechItemList.GTPP_Casing_IV.get(16), CI.getTieredComponent(OrePrefixes.circuit, 6, 8) },
- new FluidStack[] { ALLOY.AQUATIC_STEEL.getFluidStack(144 * 32),
- ALLOY.BABBIT_ALLOY.getFluidStack(144 * 16), ALLOY.BRONZE.getFluidStack(144 * 64),
- ALLOY.KANTHAL.getFluidStack(144 * 16), },
- new ItemStack[] { GregtechItemList.Machine_Adv_DistillationTower.get(1) },
- new FluidStack[] {},
- 20 * 600,
- MaterialUtils.getVoltageForTier(6),
- 5);
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(19), ItemList.Distillation_Tower.get(2),
+ GregtechItemList.GTPP_Casing_IV.get(16), CI.getTieredComponent(OrePrefixes.circuit, 6, 8) },
+ new FluidStack[] { ALLOY.AQUATIC_STEEL.getFluidStack(144 * 32), ALLOY.BABBIT_ALLOY.getFluidStack(144 * 16),
+ ALLOY.BRONZE.getFluidStack(144 * 64), ALLOY.KANTHAL.getFluidStack(144 * 16), },
+ new ItemStack[] { GregtechItemList.Machine_Adv_DistillationTower.get(1) },
+ new FluidStack[] {},
+ 20 * 600,
+ MaterialUtils.getVoltageForTier(6),
+ 5);
}
private static void overflowValveCovers() {
ItemStack aOutputs[] = new ItemStack[] { GregtechItemList.Cover_Overflow_LV.get(1L),
- GregtechItemList.Cover_Overflow_MV.get(1L), GregtechItemList.Cover_Overflow_HV.get(1L),
- GregtechItemList.Cover_Overflow_EV.get(1L), GregtechItemList.Cover_Overflow_IV.get(1L), };
+ GregtechItemList.Cover_Overflow_MV.get(1L), GregtechItemList.Cover_Overflow_HV.get(1L),
+ GregtechItemList.Cover_Overflow_EV.get(1L), GregtechItemList.Cover_Overflow_IV.get(1L), };
for (int tier = 1; tier < aOutputs.length + 1; tier++) {
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedBioCircuit(19), CI.getElectricPump(tier, 2),
- CI.getElectricMotor(tier, 2), CI.getPlate(tier, 4) },
- Materials.SolderingAlloy.getFluid(tier * (144)),
- aOutputs[tier - 1].copy(),
- 20 * 20,
- MaterialUtils.getVoltageForTier(tier));
+ new ItemStack[] { CI.getNumberedBioCircuit(19), CI.getElectricPump(tier, 2),
+ CI.getElectricMotor(tier, 2), CI.getPlate(tier, 4) },
+ Materials.SolderingAlloy.getFluid(tier * (144)),
+ aOutputs[tier - 1].copy(),
+ 20 * 20,
+ MaterialUtils.getVoltageForTier(tier));
}
}
private static void tieredMachineHulls() {
GregtechItemList[] aHulls = new GregtechItemList[] { GregtechItemList.GTPP_Casing_ULV,
- GregtechItemList.GTPP_Casing_LV, GregtechItemList.GTPP_Casing_MV, GregtechItemList.GTPP_Casing_HV,
- GregtechItemList.GTPP_Casing_EV, GregtechItemList.GTPP_Casing_IV, GregtechItemList.GTPP_Casing_LuV,
- GregtechItemList.GTPP_Casing_ZPM, GregtechItemList.GTPP_Casing_UV, GregtechItemList.GTPP_Casing_UHV };
+ GregtechItemList.GTPP_Casing_LV, GregtechItemList.GTPP_Casing_MV, GregtechItemList.GTPP_Casing_HV,
+ GregtechItemList.GTPP_Casing_EV, GregtechItemList.GTPP_Casing_IV, GregtechItemList.GTPP_Casing_LuV,
+ GregtechItemList.GTPP_Casing_ZPM, GregtechItemList.GTPP_Casing_UV, GregtechItemList.GTPP_Casing_UHV };
for (int i = 0; i < 10; i++) {
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedBioCircuit(20), CI.getTieredMachineCasing(i), CI.getPlate(i, 8),
- CI.getGear(i, 2), CI.getTieredComponent(OrePrefixes.cableGt02, i, 4),
- CI.getTieredComponent(OrePrefixes.circuit, i, 2) },
- CI.getAlternativeTieredFluid(i, 144 * (i + 1) * 2),
- aHulls[i].get(1),
- 20 * 20,
- MaterialUtils.getVoltageForTier(i));
+ new ItemStack[] { CI.getNumberedBioCircuit(20), CI.getTieredMachineCasing(i), CI.getPlate(i, 8),
+ CI.getGear(i, 2), CI.getTieredComponent(OrePrefixes.cableGt02, i, 4),
+ CI.getTieredComponent(OrePrefixes.circuit, i, 2) },
+ CI.getAlternativeTieredFluid(i, 144 * (i + 1) * 2),
+ aHulls[i].get(1),
+ 20 * 20,
+ MaterialUtils.getVoltageForTier(i));
}
}
@@ -746,7 +741,7 @@ public class RECIPES_Machines {
if (Railcraft.isModLoaded()) {
// Misc
INPUT_RCCokeOvenBlock = ItemUtils
- .getItemStackWithMeta(Railcraft.isModLoaded(), "Railcraft:machine.alpha", "Coke_Oven_RC", 7, 1);
+ .getItemStackWithMeta(Railcraft.isModLoaded(), "Railcraft:machine.alpha", "Coke_Oven_RC", 7, 1);
}
}
runModRecipes();
@@ -755,152 +750,150 @@ public class RECIPES_Machines {
private static void runModRecipes() {
// Computer Cube
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { ItemUtils.getSimpleStack(CI.getDataOrb(), 4 * (1)), ItemList.Cover_Screen.get(4),
- CI.machineHull_IV,
- ItemUtils.getItemStackOfAmountFromOreDict(CI.getTieredCircuitOreDictName(7), 2) },
- ELEMENT.getInstance().TANTALUM.getFluidStack(144 * 16),
- GregtechItemList.Gregtech_Computer_Cube.get(1),
- 60 * 20 * 3,
- 8000);
+ new ItemStack[] { ItemUtils.getSimpleStack(CI.getDataOrb(), 4 * (1)), ItemList.Cover_Screen.get(4),
+ CI.machineHull_IV, ItemUtils.getItemStackOfAmountFromOreDict(CI.getTieredCircuitOreDictName(7), 2) },
+ ELEMENT.getInstance().TANTALUM.getFluidStack(144 * 16),
+ GregtechItemList.Gregtech_Computer_Cube.get(1),
+ 60 * 20 * 3,
+ 8000);
// Circuit programmer
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { ItemUtils.getSimpleStack(CI.robotArm_LV, 4 * (1)),
- ItemList.Cover_Controller.get(1, CI.electricMotor_MV), CI.machineHull_MV,
- ItemUtils.getItemStackOfAmountFromOreDict(CI.getTieredCircuitOreDictName(1), 2),
- ItemUtils.getItemStackOfAmountFromOreDict(CI.getTieredCircuitOreDictName(2), 2) },
- ELEMENT.getInstance().IRON.getFluidStack(144 * 4),
- ItemUtils.getSimpleStack(ModBlocks.blockCircuitProgrammer),
- 60 * 10 * 1,
- 30);
+ new ItemStack[] { ItemUtils.getSimpleStack(CI.robotArm_LV, 4 * (1)),
+ ItemList.Cover_Controller.get(1, CI.electricMotor_MV), CI.machineHull_MV,
+ ItemUtils.getItemStackOfAmountFromOreDict(CI.getTieredCircuitOreDictName(1), 2),
+ ItemUtils.getItemStackOfAmountFromOreDict(CI.getTieredCircuitOreDictName(2), 2) },
+ ELEMENT.getInstance().IRON.getFluidStack(144 * 4),
+ ItemUtils.getSimpleStack(ModBlocks.blockCircuitProgrammer),
+ 60 * 10 * 1,
+ 30);
// Lead Lined Chest
for (ItemStack plateRubber : OreDictionary.getOres("plateAnyRubber")) CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.machineHull_LV, GT_Utility.copyAmount(32, plateRubber),
- ItemUtils.getItemStackOfAmountFromOreDict("plateDenseLead", 9),
- ItemUtils.getSimpleStack(Blocks.chest) },
- ELEMENT.getInstance().LEAD.getFluidStack(144 * 16),
- ItemUtils.getSimpleStack(ModBlocks.blockDecayablesChest),
- 60 * 10 * 3,
- 60);
+ new ItemStack[] { CI.machineHull_LV, GT_Utility.copyAmount(32, plateRubber),
+ ItemUtils.getItemStackOfAmountFromOreDict("plateDenseLead", 9),
+ ItemUtils.getSimpleStack(Blocks.chest) },
+ ELEMENT.getInstance().LEAD.getFluidStack(144 * 16),
+ ItemUtils.getSimpleStack(ModBlocks.blockDecayablesChest),
+ 60 * 10 * 3,
+ 60);
// RTG
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { ItemUtils.getItemStackWithMeta(true, "IC2:blockGenerator:6", "IC2-RTG", 6, 1),
- ALLOY.NITINOL_60.getPlate(8), ALLOY.MARAGING350.getGear(4),
- ItemUtils.getSimpleStack(CI.fieldGenerator_EV, 8),
- ItemUtils.getItemStackOfAmountFromOreDict("wireFinePlatinum", 32),
- ItemUtils.getItemStackOfAmountFromOreDict(CI.getTieredCircuitOreDictName(6), 4) },
- ALLOY.NIOBIUM_CARBIDE.getFluidStack(144 * 16),
- GregtechItemList.RTG.get(1),
- 60 * 20 * 10,
- 8000);
+ new ItemStack[] { ItemUtils.getItemStackWithMeta(true, "IC2:blockGenerator:6", "IC2-RTG", 6, 1),
+ ALLOY.NITINOL_60.getPlate(8), ALLOY.MARAGING350.getGear(4),
+ ItemUtils.getSimpleStack(CI.fieldGenerator_EV, 8),
+ ItemUtils.getItemStackOfAmountFromOreDict("wireFinePlatinum", 32),
+ ItemUtils.getItemStackOfAmountFromOreDict(CI.getTieredCircuitOreDictName(6), 4) },
+ ALLOY.NIOBIUM_CARBIDE.getFluidStack(144 * 16),
+ GregtechItemList.RTG.get(1),
+ 60 * 20 * 10,
+ 8000);
// Super Jukebox
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.machineHull_LV, ItemUtils.getItemStackOfAmountFromOreDict("circuitBasic", 4),
- ItemUtils.getItemStackOfAmountFromOreDict("plateTumbaga", 8),
- ItemUtils.getSimpleStack(Blocks.jukebox) },
- ELEMENT.getInstance().COPPER.getFluidStack(144 * 2),
- ItemUtils.getSimpleStack(ModBlocks.blockCustomJukebox),
- 20 * 30,
- 30);
+ new ItemStack[] { CI.machineHull_LV, ItemUtils.getItemStackOfAmountFromOreDict("circuitBasic", 4),
+ ItemUtils.getItemStackOfAmountFromOreDict("plateTumbaga", 8),
+ ItemUtils.getSimpleStack(Blocks.jukebox) },
+ ELEMENT.getInstance().COPPER.getFluidStack(144 * 2),
+ ItemUtils.getSimpleStack(ModBlocks.blockCustomJukebox),
+ 20 * 30,
+ 30);
// Poo Collector
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.machineHull_MV, ItemList.FluidRegulator_MV.get(2),
- CI.getTieredComponent(OrePrefixes.pipeMedium, 2, 2), ALLOY.EGLIN_STEEL.getPlate(4),
- ALLOY.POTIN.getScrew(6) },
- ALLOY.TUMBAGA.getFluidStack(144 * 4),
- ItemUtils.getSimpleStack(ModBlocks.blockPooCollector),
- 20 * 60,
- 30);
+ new ItemStack[] { CI.machineHull_MV, ItemList.FluidRegulator_MV.get(2),
+ CI.getTieredComponent(OrePrefixes.pipeMedium, 2, 2), ALLOY.EGLIN_STEEL.getPlate(4),
+ ALLOY.POTIN.getScrew(6) },
+ ALLOY.TUMBAGA.getFluidStack(144 * 4),
+ ItemUtils.getSimpleStack(ModBlocks.blockPooCollector),
+ 20 * 60,
+ 30);
// Adv. Poo Collector
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getTieredMachineHull(-1), ItemUtils.getSimpleStack(ModBlocks.blockPooCollector),
- ItemList.FluidRegulator_IV.get(2), CI.getTieredComponent(OrePrefixes.pipeHuge, 6, 4),
- CI.getTieredComponent(OrePrefixes.screw, 6, 16) },
- CI.getAlternativeTieredFluid(5, 144 * 9),
- ItemUtils.getSimpleStack(ModBlocks.blockPooCollector, 8, 1),
- 20 * 60 * 5,
- 500);
+ new ItemStack[] { CI.getTieredMachineHull(-1), ItemUtils.getSimpleStack(ModBlocks.blockPooCollector),
+ ItemList.FluidRegulator_IV.get(2), CI.getTieredComponent(OrePrefixes.pipeHuge, 6, 4),
+ CI.getTieredComponent(OrePrefixes.screw, 6, 16) },
+ CI.getAlternativeTieredFluid(5, 144 * 9),
+ ItemUtils.getSimpleStack(ModBlocks.blockPooCollector, 8, 1),
+ 20 * 60 * 5,
+ 500);
ItemStack aBronzeBricks = ItemUtils.simpleMetaStack(GregTech_API.sBlockCasings1, 10, 1);
// Steam Macerator Multi
RecipeUtils.addShapedGregtechRecipe(
- aBronzeBricks,
- "gemDiamond",
- aBronzeBricks,
- "craftingPiston",
- ALLOY.TUMBAGA.getFrameBox(1),
- "craftingPiston",
- aBronzeBricks,
- "gemDiamond",
- aBronzeBricks,
- GregtechItemList.Controller_SteamMaceratorMulti.get(1));
+ aBronzeBricks,
+ "gemDiamond",
+ aBronzeBricks,
+ "craftingPiston",
+ ALLOY.TUMBAGA.getFrameBox(1),
+ "craftingPiston",
+ aBronzeBricks,
+ "gemDiamond",
+ aBronzeBricks,
+ GregtechItemList.Controller_SteamMaceratorMulti.get(1));
// Steam Compressor Multi
RecipeUtils.addShapedGregtechRecipe(
- aBronzeBricks,
- "craftingPiston",
- aBronzeBricks,
- ALLOY.TUMBAGA.getGear(1),
- ALLOY.TUMBAGA.getFrameBox(1),
- ALLOY.TUMBAGA.getGear(1),
- aBronzeBricks,
- "craftingPiston",
- aBronzeBricks,
- GregtechItemList.Controller_SteamCompressorMulti.get(1));
+ aBronzeBricks,
+ "craftingPiston",
+ aBronzeBricks,
+ ALLOY.TUMBAGA.getGear(1),
+ ALLOY.TUMBAGA.getFrameBox(1),
+ ALLOY.TUMBAGA.getGear(1),
+ aBronzeBricks,
+ "craftingPiston",
+ aBronzeBricks,
+ GregtechItemList.Controller_SteamCompressorMulti.get(1));
// Steam Hatch
RecipeUtils.addShapedGregtechRecipe(
- "plateBronze",
- "pipeMediumBronze",
- "plateBronze",
- "plateBronze",
- GregtechItemList.GT_FluidTank_ULV.get(1),
- "plateBronze",
- "plateBronze",
- "pipeMediumBronze",
- "plateBronze",
- GregtechItemList.Hatch_Input_Steam.get(1));
+ "plateBronze",
+ "pipeMediumBronze",
+ "plateBronze",
+ "plateBronze",
+ GregtechItemList.GT_FluidTank_ULV.get(1),
+ "plateBronze",
+ "plateBronze",
+ "pipeMediumBronze",
+ "plateBronze",
+ GregtechItemList.Hatch_Input_Steam.get(1));
// Steam Input Bus
RecipeUtils.addShapedGregtechRecipe(
- "plateBronze",
- ALLOY.TUMBAGA.getPlate(1),
- "plateBronze",
- "plateTin",
- ItemUtils.getSimpleStack(Blocks.hopper),
- "plateTin",
- "plateBronze",
- ALLOY.TUMBAGA.getPlate(1),
- "plateBronze",
- GregtechItemList.Hatch_Input_Bus_Steam.get(1));
+ "plateBronze",
+ ALLOY.TUMBAGA.getPlate(1),
+ "plateBronze",
+ "plateTin",
+ ItemUtils.getSimpleStack(Blocks.hopper),
+ "plateTin",
+ "plateBronze",
+ ALLOY.TUMBAGA.getPlate(1),
+ "plateBronze",
+ GregtechItemList.Hatch_Input_Bus_Steam.get(1));
// Steam Output Bus
RecipeUtils.addShapedGregtechRecipe(
- "plateBronze",
- "plateTin",
- "plateBronze",
- ALLOY.TUMBAGA.getPlate(1),
- ItemUtils.getSimpleStack(Blocks.hopper),
- ALLOY.TUMBAGA.getPlate(1),
- "plateBronze",
- "plateTin",
- "plateBronze",
- GregtechItemList.Hatch_Output_Bus_Steam.get(1));
+ "plateBronze",
+ "plateTin",
+ "plateBronze",
+ ALLOY.TUMBAGA.getPlate(1),
+ ItemUtils.getSimpleStack(Blocks.hopper),
+ ALLOY.TUMBAGA.getPlate(1),
+ "plateBronze",
+ "plateTin",
+ "plateBronze",
+ GregtechItemList.Hatch_Output_Bus_Steam.get(1));
// Flask Configurator
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(8), CI.getTieredMachineHull(2),
- ItemUtils.getSimpleStack(ModBlocks.blockCircuitProgrammer),
- VolumetricFlaskHelper.getVolumetricFlask(8), CI.getTieredComponent(OrePrefixes.pipeSmall, 2, 2),
- CI.getPlate(2, 4) },
- CI.getAlternativeTieredFluid(1, 144 * 8),
- ItemUtils.getSimpleStack(ModBlocks.blockVolumetricFlaskSetter, 1),
- 20 * 60,
- 120);
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(8), CI.getTieredMachineHull(2),
+ ItemUtils.getSimpleStack(ModBlocks.blockCircuitProgrammer), VolumetricFlaskHelper.getVolumetricFlask(8),
+ CI.getTieredComponent(OrePrefixes.pipeSmall, 2, 2), CI.getPlate(2, 4) },
+ CI.getAlternativeTieredFluid(1, 144 * 8),
+ ItemUtils.getSimpleStack(ModBlocks.blockVolumetricFlaskSetter, 1),
+ 20 * 60,
+ 120);
if (CORE.ConfigSwitches.enableMultiblock_IndustrialCentrifuge) {
// Industrial Centrifuge
@@ -909,35 +902,35 @@ public class RECIPES_Machines {
// Industrial Centrifuge
RecipeUtils.addShapedGregtechRecipe(
- CI.circuitTier4,
- pipeHugeStainlessSteel,
- CI.circuitTier4,
- CI.component_Plate[6],
- EV_MACHINE_Centrifuge,
- CI.component_Plate[6],
- CI.component_Plate[8],
- CI.machineCasing_EV,
- CI.component_Plate[8],
- RECIPE_IndustrialCentrifugeController);
+ CI.circuitTier4,
+ pipeHugeStainlessSteel,
+ CI.circuitTier4,
+ CI.component_Plate[6],
+ EV_MACHINE_Centrifuge,
+ CI.component_Plate[6],
+ CI.component_Plate[8],
+ CI.machineCasing_EV,
+ CI.component_Plate[8],
+ RECIPE_IndustrialCentrifugeController);
// Centrifuge Casing
RecipeUtils.addShapedGregtechRecipe(
- CI.component_Plate[6],
- "stickTumbaga",
- CI.component_Plate[6],
- CI.component_Plate[8],
- "stickTumbaga",
- CI.component_Plate[8],
- CI.component_Plate[6],
- "stickTumbaga",
- CI.component_Plate[6],
- RECIPE_IndustrialCentrifugeCasing);
+ CI.component_Plate[6],
+ "stickTumbaga",
+ CI.component_Plate[6],
+ CI.component_Plate[8],
+ "stickTumbaga",
+ CI.component_Plate[8],
+ CI.component_Plate[6],
+ "stickTumbaga",
+ CI.component_Plate[6],
+ RECIPE_IndustrialCentrifugeCasing);
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { ALLOY.MARAGING250.getPlate(4), ALLOY.INCONEL_792.getPlate(2),
- ALLOY.TUMBAGA.getRod(3), GT_Utility.getIntegratedCircuit(1), },
- GT_Values.NF,
- RECIPE_IndustrialCentrifugeCasing,
- 50,
- 16);
+ new ItemStack[] { ALLOY.MARAGING250.getPlate(4), ALLOY.INCONEL_792.getPlate(2), ALLOY.TUMBAGA.getRod(3),
+ GT_Utility.getIntegratedCircuit(1), },
+ GT_Values.NF,
+ RECIPE_IndustrialCentrifugeCasing,
+ 50,
+ 16);
}
if (CORE.ConfigSwitches.enableMultiblock_IndustrialCokeOven) {
@@ -950,60 +943,60 @@ public class RECIPES_Machines {
if (Railcraft.isModLoaded()) {
// Industrial Coke Oven
RecipeUtils.addShapedGregtechRecipe(
- CI.component_Plate[7],
- CI.circuitTier4,
- CI.component_Plate[7],
- CI.machineCasing_EV,
- INPUT_RCCokeOvenBlock,
- CI.machineCasing_EV,
- CI.component_Plate[7],
- CI.circuitTier4,
- CI.component_Plate[7],
- RECIPE_IndustrialCokeOvenController);
- }
- // Coke Oven Frame Casing
- RecipeUtils.addShapedGregtechRecipe(
CI.component_Plate[7],
- CI.component_Rod[7],
+ CI.circuitTier4,
CI.component_Plate[7],
- CI.component_Rod[7],
- "frameGtTantalloy61",
- CI.component_Rod[7],
+ CI.machineCasing_EV,
+ INPUT_RCCokeOvenBlock,
+ CI.machineCasing_EV,
CI.component_Plate[7],
- CI.component_Rod[7],
+ CI.circuitTier4,
CI.component_Plate[7],
- RECIPE_IndustrialCokeOvenFrame);
+ RECIPE_IndustrialCokeOvenController);
+ }
+ // Coke Oven Frame Casing
+ RecipeUtils.addShapedGregtechRecipe(
+ CI.component_Plate[7],
+ CI.component_Rod[7],
+ CI.component_Plate[7],
+ CI.component_Rod[7],
+ "frameGtTantalloy61",
+ CI.component_Rod[7],
+ CI.component_Plate[7],
+ CI.component_Rod[7],
+ CI.component_Plate[7],
+ RECIPE_IndustrialCokeOvenFrame);
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { ALLOY.TANTALLOY_61.getPlate(4), ALLOY.TANTALLOY_61.getRod(4),
- ALLOY.TANTALLOY_61.getFrameBox(1), GT_Utility.getIntegratedCircuit(1), },
- GT_Values.NF,
- RECIPE_IndustrialCokeOvenFrame,
- 50,
- 16);
+ new ItemStack[] { ALLOY.TANTALLOY_61.getPlate(4), ALLOY.TANTALLOY_61.getRod(4),
+ ALLOY.TANTALLOY_61.getFrameBox(1), GT_Utility.getIntegratedCircuit(1), },
+ GT_Values.NF,
+ RECIPE_IndustrialCokeOvenFrame,
+ 50,
+ 16);
// Coke Oven Coil 1
RecipeUtils.addShapedGregtechRecipe(
- plateBronze,
- plateBronze,
- plateBronze,
- "frameGtBronze",
- CI.gearboxCasing_Tier_1,
- "frameGtBronze",
- plateBronze,
- plateBronze,
- plateBronze,
- RECIPE_IndustrialCokeOvenCasingA);
+ plateBronze,
+ plateBronze,
+ plateBronze,
+ "frameGtBronze",
+ CI.gearboxCasing_Tier_1,
+ "frameGtBronze",
+ plateBronze,
+ plateBronze,
+ plateBronze,
+ RECIPE_IndustrialCokeOvenCasingA);
// Coke Oven Coil 2
RecipeUtils.addShapedGregtechRecipe(
- plateSteel,
- plateSteel,
- plateSteel,
- "frameGtSteel",
- CI.gearboxCasing_Tier_2,
- "frameGtSteel",
- plateSteel,
- plateSteel,
- plateSteel,
- RECIPE_IndustrialCokeOvenCasingB);
+ plateSteel,
+ plateSteel,
+ plateSteel,
+ "frameGtSteel",
+ CI.gearboxCasing_Tier_2,
+ "frameGtSteel",
+ plateSteel,
+ plateSteel,
+ plateSteel,
+ RECIPE_IndustrialCokeOvenCasingB);
}
if (CORE.ConfigSwitches.enableMultiblock_IndustrialElectrolyzer) {
@@ -1013,36 +1006,36 @@ public class RECIPES_Machines {
// Electrolyzer Frame Casing
RecipeUtils.addShapedGregtechRecipe(
- "platePotin",
- "stickLongChrome",
- "platePotin",
- "stickLongPotin",
- "frameGtPotin",
- "stickLongPotin",
- "platePotin",
- "stickLongPotin",
- "platePotin",
- RECIPE_IndustrialElectrolyzerFrame);
+ "platePotin",
+ "stickLongChrome",
+ "platePotin",
+ "stickLongPotin",
+ "frameGtPotin",
+ "stickLongPotin",
+ "platePotin",
+ "stickLongPotin",
+ "platePotin",
+ RECIPE_IndustrialElectrolyzerFrame);
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { ALLOY.POTIN.getPlate(4), ALLOY.POTIN.getLongRod(3),
- GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Chrome, 1),
- ALLOY.POTIN.getFrameBox(1), GT_Utility.getIntegratedCircuit(1), },
- GT_Values.NF,
- RECIPE_IndustrialElectrolyzerFrame,
- 50,
- 16);
+ new ItemStack[] { ALLOY.POTIN.getPlate(4), ALLOY.POTIN.getLongRod(3),
+ GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Chrome, 1), ALLOY.POTIN.getFrameBox(1),
+ GT_Utility.getIntegratedCircuit(1), },
+ GT_Values.NF,
+ RECIPE_IndustrialElectrolyzerFrame,
+ 50,
+ 16);
// Industrial Electrolyzer
RecipeUtils.addShapedGregtechRecipe(
- "plateStellite",
- CI.circuitTier5,
- "plateStellite",
- CI.machineCasing_IV,
- IV_MACHINE_Electrolyzer,
- CI.machineCasing_IV,
- "plateStellite",
- "rotorStellite",
- "plateStellite",
- RECIPE_IndustrialElectrolyzerController);
+ "plateStellite",
+ CI.circuitTier5,
+ "plateStellite",
+ CI.machineCasing_IV,
+ IV_MACHINE_Electrolyzer,
+ CI.machineCasing_IV,
+ "plateStellite",
+ "rotorStellite",
+ "plateStellite",
+ RECIPE_IndustrialElectrolyzerController);
}
if (CORE.ConfigSwitches.enableMultiblock_IndustrialPlatePress) {
@@ -1052,36 +1045,36 @@ public class RECIPES_Machines {
// Material Press Frame Casing
RecipeUtils.addShapedGregtechRecipe(
- "plateTitanium",
- "stickLongTumbaga",
- "plateTitanium",
- "stickTantalloy60",
- "frameGtTumbaga",
- "stickTantalloy60",
- "plateTitanium",
- "stickLongTumbaga",
- "plateTitanium",
- RECIPE_IndustrialMaterialPressFrame);
+ "plateTitanium",
+ "stickLongTumbaga",
+ "plateTitanium",
+ "stickTantalloy60",
+ "frameGtTumbaga",
+ "stickTantalloy60",
+ "plateTitanium",
+ "stickLongTumbaga",
+ "plateTitanium",
+ RECIPE_IndustrialMaterialPressFrame);
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Titanium, 4),
- ALLOY.TANTALLOY_60.getRod(2), ALLOY.TUMBAGA.getLongRod(2), ALLOY.TUMBAGA.getFrameBox(1),
- GT_Utility.getIntegratedCircuit(1), },
- GT_Values.NF,
- RECIPE_IndustrialMaterialPressFrame,
- 50,
- 16);
+ new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Titanium, 4),
+ ALLOY.TANTALLOY_60.getRod(2), ALLOY.TUMBAGA.getLongRod(2), ALLOY.TUMBAGA.getFrameBox(1),
+ GT_Utility.getIntegratedCircuit(1), },
+ GT_Values.NF,
+ RECIPE_IndustrialMaterialPressFrame,
+ 50,
+ 16);
// Industrial Material Press
RecipeUtils.addShapedGregtechRecipe(
- "plateTitanium",
- CI.circuitTier4,
- "plateTitanium",
- CI.machineCasing_EV,
- EV_MACHINE_BendingMachine,
- CI.machineCasing_EV,
- "plateTitanium",
- CI.circuitTier4,
- "plateTitanium",
- RECIPE_IndustrialMaterialPressController);
+ "plateTitanium",
+ CI.circuitTier4,
+ "plateTitanium",
+ CI.machineCasing_EV,
+ EV_MACHINE_BendingMachine,
+ CI.machineCasing_EV,
+ "plateTitanium",
+ CI.circuitTier4,
+ "plateTitanium",
+ RECIPE_IndustrialMaterialPressController);
}
if (CORE.ConfigSwitches.enableMultiblock_IndustrialMacerationStack) {
@@ -1091,49 +1084,49 @@ public class RECIPES_Machines {
// Maceration Frame Casing
RecipeUtils.addShapedGregtechRecipe(
- "platePalladium",
- "platePalladium",
- "platePalladium",
- "stickPlatinum",
- "frameGtInconel625",
- "stickPlatinum",
- "platePalladium",
- "stickLongPalladium",
- "platePalladium",
- RECIPE_IndustrialMacerationStackFrame);
+ "platePalladium",
+ "platePalladium",
+ "platePalladium",
+ "stickPlatinum",
+ "frameGtInconel625",
+ "stickPlatinum",
+ "platePalladium",
+ "stickLongPalladium",
+ "platePalladium",
+ RECIPE_IndustrialMacerationStackFrame);
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Palladium, 5),
- GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Platinum, 2),
- GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Palladium, 1),
- ALLOY.INCONEL_625.getFrameBox(1), GT_Utility.getIntegratedCircuit(1), },
- GT_Values.NF,
- RECIPE_IndustrialMacerationStackFrame,
- 50,
- 16);
+ new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Palladium, 5),
+ GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Platinum, 2),
+ GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Palladium, 1),
+ ALLOY.INCONEL_625.getFrameBox(1), GT_Utility.getIntegratedCircuit(1), },
+ GT_Values.NF,
+ RECIPE_IndustrialMacerationStackFrame,
+ 50,
+ 16);
// Industrial Maceration stack
RecipeUtils.addShapedGregtechRecipe(
- "plateTitanium",
- EV_MACHINE_Macerator,
- "plateTitanium",
- EV_MACHINE_Macerator,
- CI.circuitTier4,
- EV_MACHINE_Macerator,
- "plateTitanium",
- EV_MACHINE_Macerator,
- "plateTitanium",
- RECIPE_IndustrialMacerationStackController);
+ "plateTitanium",
+ EV_MACHINE_Macerator,
+ "plateTitanium",
+ EV_MACHINE_Macerator,
+ CI.circuitTier4,
+ EV_MACHINE_Macerator,
+ "plateTitanium",
+ EV_MACHINE_Macerator,
+ "plateTitanium",
+ RECIPE_IndustrialMacerationStackController);
// T2-Upgrade Card
RecipeUtils.addShapedGregtechRecipe(
- "plateTungstenCarbide",
- IV_MACHINE_Macerator,
- "plateTungstenCarbide",
- IV_MACHINE_Macerator,
- CI.circuitTier7,
- IV_MACHINE_Macerator,
- "plateTungstenCarbide",
- IV_MACHINE_Macerator,
- "plateTungstenCarbide",
- GregtechItemList.Maceration_Upgrade_Chip.get(1));
+ "plateTungstenCarbide",
+ IV_MACHINE_Macerator,
+ "plateTungstenCarbide",
+ IV_MACHINE_Macerator,
+ CI.circuitTier7,
+ IV_MACHINE_Macerator,
+ "plateTungstenCarbide",
+ IV_MACHINE_Macerator,
+ "plateTungstenCarbide",
+ GregtechItemList.Maceration_Upgrade_Chip.get(1));
}
if (CORE.ConfigSwitches.enableMultiblock_IndustrialWireMill) {
@@ -1143,37 +1136,37 @@ public class RECIPES_Machines {
// Wire Factory Frame Casing
RecipeUtils.addShapedGregtechRecipe(
- "plateBlueSteel",
- "stickBlueSteel",
- "plateBlueSteel",
- "stickBlueSteel",
- "frameGtBlueSteel",
- "stickBlueSteel",
- "plateBlueSteel",
- "stickBlueSteel",
- "plateBlueSteel",
- RECIPE_IndustrialWireFactoryFrame);
+ "plateBlueSteel",
+ "stickBlueSteel",
+ "plateBlueSteel",
+ "stickBlueSteel",
+ "frameGtBlueSteel",
+ "stickBlueSteel",
+ "plateBlueSteel",
+ "stickBlueSteel",
+ "plateBlueSteel",
+ RECIPE_IndustrialWireFactoryFrame);
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.BlueSteel, 4),
- GT_OreDictUnificator.get(OrePrefixes.stick, Materials.BlueSteel, 4),
- GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.BlueSteel, 1),
- GT_Utility.getIntegratedCircuit(1), },
- GT_Values.NF,
- RECIPE_IndustrialWireFactoryFrame,
- 50,
- 16);
+ new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.BlueSteel, 4),
+ GT_OreDictUnificator.get(OrePrefixes.stick, Materials.BlueSteel, 4),
+ GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.BlueSteel, 1),
+ GT_Utility.getIntegratedCircuit(1), },
+ GT_Values.NF,
+ RECIPE_IndustrialWireFactoryFrame,
+ 50,
+ 16);
// Industrial Wire Factory
RecipeUtils.addShapedGregtechRecipe(
- "plateZeron100",
- CI.machineCasing_IV,
- "plateZeron100",
- CI.circuitTier5,
- IV_MACHINE_Wiremill,
- CI.circuitTier5,
- "plateZeron100",
- CI.machineCasing_IV,
- "plateZeron100",
- RECIPE_IndustrialWireFactoryController);
+ "plateZeron100",
+ CI.machineCasing_IV,
+ "plateZeron100",
+ CI.circuitTier5,
+ IV_MACHINE_Wiremill,
+ CI.circuitTier5,
+ "plateZeron100",
+ CI.machineCasing_IV,
+ "plateZeron100",
+ RECIPE_IndustrialWireFactoryController);
}
// Tiered Tanks
@@ -1195,56 +1188,55 @@ public class RECIPES_Machines {
// Allows clearing stored fluids.
GregtechItemList[] aTanks = new GregtechItemList[] { GregtechItemList.GT_FluidTank_ULV,
- GregtechItemList.GT_FluidTank_LV, GregtechItemList.GT_FluidTank_MV,
- GregtechItemList.GT_FluidTank_HV };
+ GregtechItemList.GT_FluidTank_LV, GregtechItemList.GT_FluidTank_MV, GregtechItemList.GT_FluidTank_HV };
for (GregtechItemList aTank : aTanks) {
RecipeUtils.addShapelessGregtechRecipe(new Object[] { aTank.get(1) }, aTank.get(1));
}
RecipeUtils.addShapedGregtechRecipe(
- CI.component_Plate[1],
- CI.component_Plate[5],
- CI.component_Plate[1],
- CI.component_Plate[4],
- pipeTier1,
- CI.component_Plate[4],
- CI.component_Plate[4],
- waterBucket,
- CI.component_Plate[4],
- GregtechItemList.GT_FluidTank_ULV.get(1));
+ CI.component_Plate[1],
+ CI.component_Plate[5],
+ CI.component_Plate[1],
+ CI.component_Plate[4],
+ pipeTier1,
+ CI.component_Plate[4],
+ CI.component_Plate[4],
+ waterBucket,
+ CI.component_Plate[4],
+ GregtechItemList.GT_FluidTank_ULV.get(1));
RecipeUtils.addShapedGregtechRecipe(
- CI.component_Plate[5],
- CI.component_Plate[4],
- CI.component_Plate[5],
- CI.component_Plate[3],
- pipeTier2,
- CI.component_Plate[3],
- CI.component_Plate[3],
- CI.electricPump_LV,
- CI.component_Plate[3],
- GregtechItemList.GT_FluidTank_LV.get(1));
+ CI.component_Plate[5],
+ CI.component_Plate[4],
+ CI.component_Plate[5],
+ CI.component_Plate[3],
+ pipeTier2,
+ CI.component_Plate[3],
+ CI.component_Plate[3],
+ CI.electricPump_LV,
+ CI.component_Plate[3],
+ GregtechItemList.GT_FluidTank_LV.get(1));
RecipeUtils.addShapedGregtechRecipe(
- CI.component_Plate[8],
- CI.component_Plate[3],
- CI.component_Plate[8],
- CI.component_Plate[5],
- pipeTier3,
- CI.component_Plate[5],
- CI.component_Plate[5],
- CI.electricPump_LV,
- CI.component_Plate[5],
- GregtechItemList.GT_FluidTank_MV.get(1));
+ CI.component_Plate[8],
+ CI.component_Plate[3],
+ CI.component_Plate[8],
+ CI.component_Plate[5],
+ pipeTier3,
+ CI.component_Plate[5],
+ CI.component_Plate[5],
+ CI.electricPump_LV,
+ CI.component_Plate[5],
+ GregtechItemList.GT_FluidTank_MV.get(1));
RecipeUtils.addShapedGregtechRecipe(
- CI.circuitTier1,
- CI.component_Plate[7],
- CI.circuitTier1,
- CI.component_Plate[8],
- pipeTier4,
- CI.component_Plate[8],
- CI.circuitTier1,
- CI.electricPump_MV,
- CI.circuitTier1,
- GregtechItemList.GT_FluidTank_HV.get(1));
+ CI.circuitTier1,
+ CI.component_Plate[7],
+ CI.circuitTier1,
+ CI.component_Plate[8],
+ pipeTier4,
+ CI.component_Plate[8],
+ CI.circuitTier1,
+ CI.electricPump_MV,
+ CI.circuitTier1,
+ GregtechItemList.GT_FluidTank_HV.get(1));
}
if (CORE.ConfigSwitches.enableMultiblock_MultiTank) {
@@ -1254,94 +1246,90 @@ public class RECIPES_Machines {
// Industrial Multi Tank Casing
RecipeUtils.addShapedGregtechRecipe(
- "stickGrisium",
- "plateGrisium",
- "stickGrisium",
- "plateGrisium",
- "frameGtGrisium",
- "plateGrisium",
- "plateGrisium",
- "plateGrisium",
- "plateGrisium",
- RECIPE_IndustrialMultiTankFrame);
+ "stickGrisium",
+ "plateGrisium",
+ "stickGrisium",
+ "plateGrisium",
+ "frameGtGrisium",
+ "plateGrisium",
+ "plateGrisium",
+ "plateGrisium",
+ "plateGrisium",
+ RECIPE_IndustrialMultiTankFrame);
// Industrial Multi Tank
RecipeUtils.addShapedGregtechRecipe(
- "pipeHugeTantalloy60",
- "gearGrisium",
- "pipeHugeTantalloy60",
- CI.circuitTier4,
- RECIPE_IndustrialMultiTankFrame,
- CI.circuitTier4,
- "plateDoubleGrisium",
- "rotorGrisium",
- "plateDoubleGrisium",
- RECIPE_IndustrialMultiTankController);
+ "pipeHugeTantalloy60",
+ "gearGrisium",
+ "pipeHugeTantalloy60",
+ CI.circuitTier4,
+ RECIPE_IndustrialMultiTankFrame,
+ CI.circuitTier4,
+ "plateDoubleGrisium",
+ "rotorGrisium",
+ "plateDoubleGrisium",
+ RECIPE_IndustrialMultiTankController);
}
// TODO
// Semi-Fluid Generators
ItemStack[][] aSemiFluidInputs = new ItemStack[5][10];
aSemiFluidInputs[0] = new ItemStack[] { CI.getNumberedBioCircuit(14), CI.getTieredMachineHull(1, 1),
- CI.getElectricMotor(1, 2), CI.getElectricPiston(1, 2),
- CI.getTieredComponent(OrePrefixes.cableGt01, 1, 1), CI.getTieredComponent(OrePrefixes.circuit, 1, 1),
- CI.getGear(1, 2) };
+ CI.getElectricMotor(1, 2), CI.getElectricPiston(1, 2), CI.getTieredComponent(OrePrefixes.cableGt01, 1, 1),
+ CI.getTieredComponent(OrePrefixes.circuit, 1, 1), CI.getGear(1, 2) };
aSemiFluidInputs[1] = new ItemStack[] { CI.getNumberedBioCircuit(14), CI.getTieredMachineHull(2, 1),
- CI.getElectricMotor(2, 2), CI.getElectricPiston(2, 2),
- CI.getTieredComponent(OrePrefixes.cableGt01, 2, 1), CI.getTieredComponent(OrePrefixes.circuit, 2, 1),
- CI.getGear(2, 2) };
+ CI.getElectricMotor(2, 2), CI.getElectricPiston(2, 2), CI.getTieredComponent(OrePrefixes.cableGt01, 2, 1),
+ CI.getTieredComponent(OrePrefixes.circuit, 2, 1), CI.getGear(2, 2) };
aSemiFluidInputs[2] = new ItemStack[] { CI.getNumberedBioCircuit(14), CI.getTieredMachineHull(3, 1),
- CI.getElectricMotor(3, 2), CI.getElectricPiston(3, 2),
- CI.getTieredComponent(OrePrefixes.cableGt01, 3, 1), CI.getTieredComponent(OrePrefixes.circuit, 3, 1),
- GT_OreDictUnificator.get(OrePrefixes.gearGt, Materials.Chrome, 2) };
+ CI.getElectricMotor(3, 2), CI.getElectricPiston(3, 2), CI.getTieredComponent(OrePrefixes.cableGt01, 3, 1),
+ CI.getTieredComponent(OrePrefixes.circuit, 3, 1),
+ GT_OreDictUnificator.get(OrePrefixes.gearGt, Materials.Chrome, 2) };
aSemiFluidInputs[3] = new ItemStack[] { CI.getNumberedBioCircuit(14), CI.getTieredMachineHull(4, 1),
- CI.getElectricMotor(4, 2), CI.getElectricPiston(4, 2),
- CI.getTieredComponent(OrePrefixes.cableGt01, 4, 1), CI.getTieredComponent(OrePrefixes.circuit, 4, 1),
- CI.getGear(4, 2) };
+ CI.getElectricMotor(4, 2), CI.getElectricPiston(4, 2), CI.getTieredComponent(OrePrefixes.cableGt01, 4, 1),
+ CI.getTieredComponent(OrePrefixes.circuit, 4, 1), CI.getGear(4, 2) };
aSemiFluidInputs[4] = new ItemStack[] { CI.getNumberedBioCircuit(14), CI.getTieredMachineHull(5, 1),
- CI.getElectricMotor(5, 2), CI.getElectricPiston(5, 2),
- CI.getTieredComponent(OrePrefixes.cableGt01, 5, 1), CI.getTieredComponent(OrePrefixes.circuit, 5, 1),
- CI.getGear(5, 2) };
+ CI.getElectricMotor(5, 2), CI.getElectricPiston(5, 2), CI.getTieredComponent(OrePrefixes.cableGt01, 5, 1),
+ CI.getTieredComponent(OrePrefixes.circuit, 5, 1), CI.getGear(5, 2) };
FluidStack[] aSemiFluidFluidInputs = new FluidStack[] { ALLOY.POLYETHYLENE.getFluidStack(144),
- ALLOY.POLYETHYLENE.getFluidStack(144), ALLOY.POLYETHYLENE.getFluidStack(144),
- ALLOY.POLYETHYLENE.getFluidStack(144), ALLOY.POLYTETRAFLUOROETHYLENE.getFluidStack(144) };
+ ALLOY.POLYETHYLENE.getFluidStack(144), ALLOY.POLYETHYLENE.getFluidStack(144),
+ ALLOY.POLYETHYLENE.getFluidStack(144), ALLOY.POLYTETRAFLUOROETHYLENE.getFluidStack(144) };
ItemStack[] aSemifluids = new ItemStack[] { GregtechItemList.Generator_SemiFluid_LV.get(1),
- GregtechItemList.Generator_SemiFluid_MV.get(1), GregtechItemList.Generator_SemiFluid_HV.get(1),
- GregtechItemList.Generator_SemiFluid_EV.get(1), GregtechItemList.Generator_SemiFluid_IV.get(1) };
+ GregtechItemList.Generator_SemiFluid_MV.get(1), GregtechItemList.Generator_SemiFluid_HV.get(1),
+ GregtechItemList.Generator_SemiFluid_EV.get(1), GregtechItemList.Generator_SemiFluid_IV.get(1) };
for (int o = 0; o < 5; o++) {
CORE.RA.addSixSlotAssemblingRecipe(
- aSemiFluidInputs[o],
- aSemiFluidFluidInputs[o],
- aSemifluids[o],
- 20 * 30,
- MaterialUtils.getVoltageForTier(o + 1));
+ aSemiFluidInputs[o],
+ aSemiFluidFluidInputs[o],
+ aSemifluids[o],
+ 20 * 30,
+ MaterialUtils.getVoltageForTier(o + 1));
}
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Generator_SemiFluid_LV.get(1L),
- 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', ALLOY.TUMBAGA.getGear(2) });
+ GregtechItemList.Generator_SemiFluid_LV.get(1L),
+ 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', ALLOY.TUMBAGA.getGear(2) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Generator_SemiFluid_MV.get(1L),
- 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', ALLOY.EGLIN_STEEL.getGear(2) });
+ GregtechItemList.Generator_SemiFluid_MV.get(1L),
+ 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', ALLOY.EGLIN_STEEL.getGear(2) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Generator_SemiFluid_HV.get(1L),
- 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',
- GT_OreDictUnificator.get(OrePrefixes.gearGt, Materials.Chrome, 1) });
+ GregtechItemList.Generator_SemiFluid_HV.get(1L),
+ 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',
+ GT_OreDictUnificator.get(OrePrefixes.gearGt, Materials.Chrome, 1) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Generator_SemiFluid_EV.get(1L),
- new Object[] { "PCP", "EME", "GWG", 'M', ItemList.Hull_EV, 'P', ItemList.Electric_Piston_EV, 'E',
- ItemList.Electric_Motor_EV, 'C', OrePrefixes.circuit.get(Materials.Data), 'W',
- OrePrefixes.cableGt01.get(Materials.Aluminium), 'G', ALLOY.INCOLOY_DS.getGear(1) });
+ GregtechItemList.Generator_SemiFluid_EV.get(1L),
+ new Object[] { "PCP", "EME", "GWG", 'M', ItemList.Hull_EV, 'P', ItemList.Electric_Piston_EV, 'E',
+ ItemList.Electric_Motor_EV, 'C', OrePrefixes.circuit.get(Materials.Data), 'W',
+ OrePrefixes.cableGt01.get(Materials.Aluminium), 'G', ALLOY.INCOLOY_DS.getGear(1) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Generator_SemiFluid_IV.get(1L),
- new Object[] { "PCP", "EME", "GWG", 'M', ItemList.Hull_IV, 'P', ItemList.Electric_Piston_IV, 'E',
- ItemList.Electric_Motor_IV, 'C', OrePrefixes.circuit.get(Materials.Elite), 'W',
- OrePrefixes.cableGt01.get(Materials.Tungsten), 'G', ALLOY.NITINOL_60.getGear(1) });
+ GregtechItemList.Generator_SemiFluid_IV.get(1L),
+ new Object[] { "PCP", "EME", "GWG", 'M', ItemList.Hull_IV, 'P', ItemList.Electric_Piston_IV, 'E',
+ ItemList.Electric_Motor_IV, 'C', OrePrefixes.circuit.get(Materials.Elite), 'W',
+ OrePrefixes.cableGt01.get(Materials.Tungsten), 'G', ALLOY.NITINOL_60.getGear(1) });
if (CORE.ConfigSwitches.enableMultiblock_AlloyBlastSmelter) {
// Industrial Blast Smelter
@@ -1351,79 +1339,79 @@ public class RECIPES_Machines {
// Blast Smelter
RecipeUtils.addShapedGregtechRecipe(
- "plateZirconiumCarbide",
- CI.circuitTier5,
- "plateZirconiumCarbide",
- cableTier6,
- IV_MACHINE_AlloySmelter,
- cableTier6,
- "plateZirconiumCarbide",
- CI.circuitTier5,
- "plateZirconiumCarbide",
- RECIPE_IndustrialBlastSmelterController);
+ "plateZirconiumCarbide",
+ CI.circuitTier5,
+ "plateZirconiumCarbide",
+ cableTier6,
+ IV_MACHINE_AlloySmelter,
+ cableTier6,
+ "plateZirconiumCarbide",
+ CI.circuitTier5,
+ "plateZirconiumCarbide",
+ RECIPE_IndustrialBlastSmelterController);
// Blast Smelter Frame Casing
RecipeUtils.addShapedGregtechRecipe(
- "plateZirconiumCarbide",
- CI.craftingToolHammer_Hard,
- "plateZirconiumCarbide",
- "plateZirconiumCarbide",
- "frameGtZirconiumCarbide",
- "plateZirconiumCarbide",
- "plateZirconiumCarbide",
- CI.craftingToolWrench,
- "plateZirconiumCarbide",
- RECIPE_IndustrialBlastSmelterFrame);
+ "plateZirconiumCarbide",
+ CI.craftingToolHammer_Hard,
+ "plateZirconiumCarbide",
+ "plateZirconiumCarbide",
+ "frameGtZirconiumCarbide",
+ "plateZirconiumCarbide",
+ "plateZirconiumCarbide",
+ CI.craftingToolWrench,
+ "plateZirconiumCarbide",
+ RECIPE_IndustrialBlastSmelterFrame);
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { ALLOY.ZIRCONIUM_CARBIDE.getPlate(6), ALLOY.ZIRCONIUM_CARBIDE.getFrameBox(1),
- GT_Utility.getIntegratedCircuit(1), },
- GT_Values.NF,
- RECIPE_IndustrialBlastSmelterFrame,
- 50,
- 16);
+ new ItemStack[] { ALLOY.ZIRCONIUM_CARBIDE.getPlate(6), ALLOY.ZIRCONIUM_CARBIDE.getFrameBox(1),
+ GT_Utility.getIntegratedCircuit(1), },
+ GT_Values.NF,
+ RECIPE_IndustrialBlastSmelterFrame,
+ 50,
+ 16);
// Blast Smelter Coil
RecipeUtils.addShapedGregtechRecipe(
- "plateStaballoy",
- "plateStaballoy",
- "plateStaballoy",
- "frameGtStaballoy",
- CI.gearboxCasing_Tier_3,
- "frameGtStaballoy",
- "plateStaballoy",
- "plateStaballoy",
- "plateStaballoy",
- RECIPE_IndustrialBlastSmelterCoil);
+ "plateStaballoy",
+ "plateStaballoy",
+ "plateStaballoy",
+ "frameGtStaballoy",
+ CI.gearboxCasing_Tier_3,
+ "frameGtStaballoy",
+ "plateStaballoy",
+ "plateStaballoy",
+ "plateStaballoy",
+ RECIPE_IndustrialBlastSmelterCoil);
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { ALLOY.STABALLOY.getPlate(6), ALLOY.STABALLOY.getFrameBox(2),
- CI.gearboxCasing_Tier_3, GT_Utility.getIntegratedCircuit(1), },
- GT_Values.NF,
- RECIPE_IndustrialBlastSmelterCoil,
- 50,
- 16);
+ new ItemStack[] { ALLOY.STABALLOY.getPlate(6), ALLOY.STABALLOY.getFrameBox(2), CI.gearboxCasing_Tier_3,
+ GT_Utility.getIntegratedCircuit(1), },
+ GT_Values.NF,
+ RECIPE_IndustrialBlastSmelterCoil,
+ 50,
+ 16);
}
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { ItemList.Casing_Coil_Infinity.get(1), ItemList.Reactor_Coolant_Sp_6.get(4),
- ALLOY.LAURENIUM.getPlateDouble(2), CustomItemList.eM_Coil.get(1) },
- ALLOY.QUANTUM.getFluidStack(144 * 4),
- GregtechItemList.Casing_Coil_QuantumForceTransformer.get(1),
- 60 * 30,
- MaterialUtils.getVoltageForTier(6));
+ new ItemStack[] { ItemList.Casing_Coil_Infinity.get(1), ItemList.Reactor_Coolant_Sp_6.get(4),
+ ALLOY.LAURENIUM.getPlateDouble(2), CustomItemList.eM_Coil.get(1) },
+ ALLOY.QUANTUM.getFluidStack(144 * 4),
+ GregtechItemList.Casing_Coil_QuantumForceTransformer.get(1),
+ 60 * 30,
+ MaterialUtils.getVoltageForTier(6));
TT_recipeAdder.addResearchableAssemblylineRecipe(
- GregtechItemList.Casing_Coil_QuantumForceTransformer.get(1),
- 2048 * 120 * 20,
- 2048,
- (int) GT_Values.VP[11],
- 16,
- new Object[] { GregtechItemList.Controller_MolecularTransformer.get(1),
- GT_ModHandler.getModItem(EternalSingularity.ID, "eternal_singularity", 1),
- new Object[] { OrePrefixes.circuit.get(Materials.Bio), 8 }, ItemList.Electric_Pump_UEV.get(4),
- ItemList.Field_Generator_UEV.get(4), GregtechItemList.Laser_Lens_Special.get(1) },
- new FluidStack[] { MISC_MATERIALS.MUTATED_LIVING_SOLDER.getFluidStack(144 * 10),
- ALLOY.PIKYONIUM.getFluidStack(144 * 32) },
- GregtechItemList.QuantumForceTransformer.get(1),
- 1200 * 20,
- (int) GT_Values.VP[11]);
+ GregtechItemList.Casing_Coil_QuantumForceTransformer.get(1),
+ 2048 * 120 * 20,
+ 2048,
+ (int) GT_Values.VP[11],
+ 16,
+ new Object[] { GregtechItemList.Controller_MolecularTransformer.get(1),
+ GT_ModHandler.getModItem(EternalSingularity.ID, "eternal_singularity", 1),
+ new Object[] { OrePrefixes.circuit.get(Materials.Bio), 8 }, ItemList.Electric_Pump_UEV.get(4),
+ ItemList.Field_Generator_UEV.get(4), GregtechItemList.Laser_Lens_Special.get(1) },
+ new FluidStack[] { MISC_MATERIALS.MUTATED_LIVING_SOLDER.getFluidStack(144 * 10),
+ ALLOY.PIKYONIUM.getFluidStack(144 * 32) },
+ GregtechItemList.QuantumForceTransformer.get(1),
+ 1200 * 20,
+ (int) GT_Values.VP[11]);
if (CORE.ConfigSwitches.enableMultiblock_MatterFabricator) {
// Industrial Matter Fabricator
@@ -1433,54 +1421,54 @@ public class RECIPES_Machines {
// Matter Fabricator CPU
RecipeUtils.addShapedGregtechRecipe(
- CI.getPlate(8, 1),
- CI.circuitTier8,
- CI.getPlate(8, 1),
- GT_OreDictUnificator.get(OrePrefixes.cableGt04.get(Materials.NaquadahAlloy), 1L),
- CI.machineCasing_UV,
- GT_OreDictUnificator.get(OrePrefixes.cableGt04.get(Materials.NaquadahAlloy), 1L),
- CI.getPlate(8, 1),
- CI.circuitTier8,
- CI.getPlate(8, 1),
- RECIPE_IndustrialMatterFabController);
+ CI.getPlate(8, 1),
+ CI.circuitTier8,
+ CI.getPlate(8, 1),
+ GT_OreDictUnificator.get(OrePrefixes.cableGt04.get(Materials.NaquadahAlloy), 1L),
+ CI.machineCasing_UV,
+ GT_OreDictUnificator.get(OrePrefixes.cableGt04.get(Materials.NaquadahAlloy), 1L),
+ CI.getPlate(8, 1),
+ CI.circuitTier8,
+ CI.getPlate(8, 1),
+ RECIPE_IndustrialMatterFabController);
// Matter Fabricator Frame Casing
RecipeUtils.addShapedGregtechRecipe(
- "plateNiobiumCarbide",
- CI.component_Rod[8],
- "plateNiobiumCarbide",
- CI.component_Rod[8],
- "frameGtInconel690",
- CI.component_Rod[8],
- "plateNiobiumCarbide",
- CI.component_Rod[8],
- "plateNiobiumCarbide",
- RECIPE_IndustrialMatterFabFrame);
+ "plateNiobiumCarbide",
+ CI.component_Rod[8],
+ "plateNiobiumCarbide",
+ CI.component_Rod[8],
+ "frameGtInconel690",
+ CI.component_Rod[8],
+ "plateNiobiumCarbide",
+ CI.component_Rod[8],
+ "plateNiobiumCarbide",
+ RECIPE_IndustrialMatterFabFrame);
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { ALLOY.NIOBIUM_CARBIDE.getPlate(4), ALLOY.INCONEL_792.getRod(4),
- ALLOY.INCONEL_690.getFrameBox(1), GT_Utility.getIntegratedCircuit(1), },
- GT_Values.NF,
- RECIPE_IndustrialMatterFabFrame,
- 50,
- 16);
+ new ItemStack[] { ALLOY.NIOBIUM_CARBIDE.getPlate(4), ALLOY.INCONEL_792.getRod(4),
+ ALLOY.INCONEL_690.getFrameBox(1), GT_Utility.getIntegratedCircuit(1), },
+ GT_Values.NF,
+ RECIPE_IndustrialMatterFabFrame,
+ 50,
+ 16);
// Matter Fabricator Coil
RecipeUtils.addShapedGregtechRecipe(
- CI.getPlate(6, 1),
- CI.getPlate(7, 1),
- CI.getPlate(6, 1),
- "frameGtStellite",
- CI.machineCasing_UV,
- "frameGtStellite",
- CI.getPlate(6, 1),
- CI.getPlate(7, 1),
- CI.getPlate(6, 1),
- RECIPE_IndustrialMatterFabCoil);
+ CI.getPlate(6, 1),
+ CI.getPlate(7, 1),
+ CI.getPlate(6, 1),
+ "frameGtStellite",
+ CI.machineCasing_UV,
+ "frameGtStellite",
+ CI.getPlate(6, 1),
+ CI.getPlate(7, 1),
+ CI.getPlate(6, 1),
+ RECIPE_IndustrialMatterFabCoil);
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { CI.machineCasing_UV, ALLOY.ZERON_100.getPlate(4), ALLOY.PIKYONIUM.getPlate(2),
- ALLOY.STELLITE.getFrameBox(2), GT_Utility.getIntegratedCircuit(1), },
- GT_Values.NF,
- RECIPE_IndustrialMatterFabCoil,
- 50,
- 16);
+ new ItemStack[] { CI.machineCasing_UV, ALLOY.ZERON_100.getPlate(4), ALLOY.PIKYONIUM.getPlate(2),
+ ALLOY.STELLITE.getFrameBox(2), GT_Utility.getIntegratedCircuit(1), },
+ GT_Values.NF,
+ RECIPE_IndustrialMatterFabCoil,
+ 50,
+ 16);
}
if (CORE.ConfigSwitches.enableMultiblock_IndustrialSifter) {
@@ -1491,54 +1479,54 @@ public class RECIPES_Machines {
// Industrial Sieve
RecipeUtils.addShapedGregtechRecipe(
- "plateEglinSteel",
- CI.circuitTier3,
- "plateEglinSteel",
- cableTier4,
- HV_MACHINE_Sifter,
- cableTier4,
- "plateEglinSteel",
- CI.circuitTier3,
- "plateEglinSteel",
- RECIPE_IndustrialSieveController);
+ "plateEglinSteel",
+ CI.circuitTier3,
+ "plateEglinSteel",
+ cableTier4,
+ HV_MACHINE_Sifter,
+ cableTier4,
+ "plateEglinSteel",
+ CI.circuitTier3,
+ "plateEglinSteel",
+ RECIPE_IndustrialSieveController);
// Industrial Sieve Casing
RecipeUtils.addShapedGregtechRecipe(
- "plateEglinSteel",
- "plateEglinSteel",
- "plateEglinSteel",
- "plateEglinSteel",
- "frameGtTumbaga",
- "plateEglinSteel",
- "plateEglinSteel",
- "plateEglinSteel",
- "plateEglinSteel",
- RECIPE_IndustrialSieveFrame);
+ "plateEglinSteel",
+ "plateEglinSteel",
+ "plateEglinSteel",
+ "plateEglinSteel",
+ "frameGtTumbaga",
+ "plateEglinSteel",
+ "plateEglinSteel",
+ "plateEglinSteel",
+ "plateEglinSteel",
+ RECIPE_IndustrialSieveFrame);
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { ALLOY.EGLIN_STEEL.getPlate(8), ALLOY.TUMBAGA.getFrameBox(1),
- GT_Utility.getIntegratedCircuit(1), },
- GT_Values.NF,
- RECIPE_IndustrialSieveFrame,
- 50,
- 16);
+ new ItemStack[] { ALLOY.EGLIN_STEEL.getPlate(8), ALLOY.TUMBAGA.getFrameBox(1),
+ GT_Utility.getIntegratedCircuit(1), },
+ GT_Values.NF,
+ RECIPE_IndustrialSieveFrame,
+ 50,
+ 16);
// Industrial Sieve Grate
RecipeUtils.addShapedGregtechRecipe(
- "frameGtEglinSteel",
- "wireFineSteel",
- "frameGtEglinSteel",
- "wireFineSteel",
- "wireFineSteel",
- "wireFineSteel",
- "frameGtEglinSteel",
- "wireFineSteel",
- "frameGtEglinSteel",
- RECIPE_IndustrialSieveGrate);
+ "frameGtEglinSteel",
+ "wireFineSteel",
+ "frameGtEglinSteel",
+ "wireFineSteel",
+ "wireFineSteel",
+ "wireFineSteel",
+ "frameGtEglinSteel",
+ "wireFineSteel",
+ "frameGtEglinSteel",
+ RECIPE_IndustrialSieveGrate);
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Steel, 5),
- ALLOY.EGLIN_STEEL.getFrameBox(4), GT_Utility.getIntegratedCircuit(1), },
- GT_Values.NF,
- RECIPE_IndustrialSieveGrate,
- 50,
- 16);
+ new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Steel, 5),
+ ALLOY.EGLIN_STEEL.getFrameBox(4), GT_Utility.getIntegratedCircuit(1), },
+ GT_Values.NF,
+ RECIPE_IndustrialSieveGrate,
+ 50,
+ 16);
}
if (CORE.ConfigSwitches.enableMultiblock_TreeFarmer) {
@@ -1547,26 +1535,25 @@ public class RECIPES_Machines {
RECIPE_TreeFarmFrame = GregtechItemList.Casing_PLACEHOLDER_TreeFarmer.get(1);
// Industrial Tree Farm Controller
RecipeUtils.addShapedGregtechRecipe(
- ItemList.Field_Generator_IV.get(1),
- ALLOY.INCOLOY_MA956.getRotor(1),
- ItemList.Field_Generator_IV.get(1),
- ALLOY.NITINOL_60.getPlate(1),
- GregtechItemList.GTPP_Casing_IV.get(1),
- ALLOY.NITINOL_60.getPlate(1),
- ItemList.Field_Generator_IV.get(1),
- ALLOY.INCONEL_792.getComponentByPrefix(OrePrefixes.pipeMedium, 1),
- ItemList.Field_Generator_IV.get(1),
- RECIPE_TreeFarmController);
+ ItemList.Field_Generator_IV.get(1),
+ ALLOY.INCOLOY_MA956.getRotor(1),
+ ItemList.Field_Generator_IV.get(1),
+ ALLOY.NITINOL_60.getPlate(1),
+ GregtechItemList.GTPP_Casing_IV.get(1),
+ ALLOY.NITINOL_60.getPlate(1),
+ ItemList.Field_Generator_IV.get(1),
+ ALLOY.INCONEL_792.getComponentByPrefix(OrePrefixes.pipeMedium, 1),
+ ItemList.Field_Generator_IV.get(1),
+ RECIPE_TreeFarmController);
// Industrial Tree Farm Frame
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { GT_Utility.getIntegratedCircuit(2), ALLOY.TUMBAGA.getFrameBox(1),
- ItemUtils.getItemStackOfAmountFromOreDict("pipeTinySteel", 1), ItemList.MV_Coil.get(1),
- ItemList.IC2_Plantball.get(4),
- GT_OreDictUnificator.get(OrePrefixes.plank, Materials.Wood, 8), },
- GT_ModHandler.getDistilledWater(2000),
- RECIPE_TreeFarmFrame,
- 200,
- 64);
+ new ItemStack[] { GT_Utility.getIntegratedCircuit(2), ALLOY.TUMBAGA.getFrameBox(1),
+ ItemUtils.getItemStackOfAmountFromOreDict("pipeTinySteel", 1), ItemList.MV_Coil.get(1),
+ ItemList.IC2_Plantball.get(4), GT_OreDictUnificator.get(OrePrefixes.plank, Materials.Wood, 8), },
+ GT_ModHandler.getDistilledWater(2000),
+ RECIPE_TreeFarmFrame,
+ 200,
+ 64);
}
if (CORE.ConfigSwitches.enableMachine_Tesseracts) {
@@ -1575,203 +1562,203 @@ public class RECIPES_Machines {
RECIPE_TesseractTerminal = GregtechItemList.GT4_Tesseract_Terminal.get(1);
// Tesseract Generator
RecipeUtils.addShapedGregtechRecipe(
- "plateTitanium",
- "circuitMaster",
- "plateTitanium",
- "circuitMaster",
- ItemUtils.getSimpleStack(Blocks.ender_chest),
- "circuitMaster",
- "plateTitanium",
- GregtechItemList.Gregtech_Computer_Cube.get(1),
- "plateTitanium",
- RECIPE_TesseractGenerator);
+ "plateTitanium",
+ "circuitMaster",
+ "plateTitanium",
+ "circuitMaster",
+ ItemUtils.getSimpleStack(Blocks.ender_chest),
+ "circuitMaster",
+ "plateTitanium",
+ GregtechItemList.Gregtech_Computer_Cube.get(1),
+ "plateTitanium",
+ RECIPE_TesseractGenerator);
// Tesseract Terminal
RecipeUtils.addShapedGregtechRecipe(
- "plateTitanium",
- "circuitElite",
- "plateTitanium",
- "circuitElite",
- ItemUtils.getSimpleStack(Blocks.ender_chest),
- "circuitElite",
- "plateTitanium",
- CI.machineHull_EV,
- "plateTitanium",
- RECIPE_TesseractTerminal);
+ "plateTitanium",
+ "circuitElite",
+ "plateTitanium",
+ "circuitElite",
+ ItemUtils.getSimpleStack(Blocks.ender_chest),
+ "circuitElite",
+ "plateTitanium",
+ CI.machineHull_EV,
+ "plateTitanium",
+ RECIPE_TesseractTerminal);
}
if (CORE.ConfigSwitches.enableMachine_SimpleWasher) {
final List<ItemStack> washers = ImmutableList.of(
- GregtechItemList.SimpleDustWasher_LV.get(1),
- GregtechItemList.SimpleDustWasher_MV.get(1),
- GregtechItemList.SimpleDustWasher_HV.get(1),
- GregtechItemList.SimpleDustWasher_EV.get(1),
- GregtechItemList.SimpleDustWasher_IV.get(1),
- GregtechItemList.SimpleDustWasher_LuV.get(1),
- GregtechItemList.SimpleDustWasher_ZPM.get(1),
- GregtechItemList.SimpleDustWasher_UV.get(1));
+ GregtechItemList.SimpleDustWasher_LV.get(1),
+ GregtechItemList.SimpleDustWasher_MV.get(1),
+ GregtechItemList.SimpleDustWasher_HV.get(1),
+ GregtechItemList.SimpleDustWasher_EV.get(1),
+ GregtechItemList.SimpleDustWasher_IV.get(1),
+ GregtechItemList.SimpleDustWasher_LuV.get(1),
+ GregtechItemList.SimpleDustWasher_ZPM.get(1),
+ GregtechItemList.SimpleDustWasher_UV.get(1));
for (int i = 0; i < washers.size(); i++) {
final int tier = i + 1;
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getTieredMachineHull(tier),
- CI.getTieredComponent(OrePrefixes.screw, tier, tier * 4),
- CI.getTieredComponent(OrePrefixes.plate, tier - 1, tier * 2),
- CI.getTieredComponent(OrePrefixes.rod, tier, tier),
- CI.getTieredComponent(OrePrefixes.circuit, tier, 1) },
- CI.getTieredFluid(tier, 144 * tier),
- washers.get(i),
- 20 * 5 * tier,
- (int) GT_Values.V[tier]);
+ new ItemStack[] { CI.getTieredMachineHull(tier),
+ CI.getTieredComponent(OrePrefixes.screw, tier, tier * 4),
+ CI.getTieredComponent(OrePrefixes.plate, tier - 1, tier * 2),
+ CI.getTieredComponent(OrePrefixes.rod, tier, tier),
+ CI.getTieredComponent(OrePrefixes.circuit, tier, 1) },
+ CI.getTieredFluid(tier, 144 * tier),
+ washers.get(i),
+ 20 * 5 * tier,
+ (int) GT_Values.V[tier]);
}
}
if (CORE.ConfigSwitches.enableMachine_Pollution && PollutionUtils.isPollutionEnabled()) {
RecipeUtils.addShapedGregtechRecipe(
- "plateCarbon",
- "plateCarbon",
- "plateCarbon",
- "dustCarbon",
- "dustCarbon",
- "dustCarbon",
- "plateCarbon",
- "plateCarbon",
- "plateCarbon",
- ItemUtils.simpleMetaStack(ModItems.itemAirFilter, 0, 1));
+ "plateCarbon",
+ "plateCarbon",
+ "plateCarbon",
+ "dustCarbon",
+ "dustCarbon",
+ "dustCarbon",
+ "plateCarbon",
+ "plateCarbon",
+ "plateCarbon",
+ ItemUtils.simpleMetaStack(ModItems.itemAirFilter, 0, 1));
RecipeUtils.addShapedGregtechRecipe(
- "plateCarbon",
- "plateCarbon",
- "plateCarbon",
- "cellLithiumPeroxide",
- "dustCarbon",
- "cellLithiumPeroxide",
- "plateCarbon",
- "plateCarbon",
- "plateCarbon",
- ItemUtils.simpleMetaStack(ModItems.itemAirFilter, 1, 1));
+ "plateCarbon",
+ "plateCarbon",
+ "plateCarbon",
+ "cellLithiumPeroxide",
+ "dustCarbon",
+ "cellLithiumPeroxide",
+ "plateCarbon",
+ "plateCarbon",
+ "plateCarbon",
+ ItemUtils.simpleMetaStack(ModItems.itemAirFilter, 1, 1));
// Pollution Detector
RecipeUtils.addShapedGregtechRecipe(
- "plateSteel",
- CI.sensor_LV,
- "plateSteel",
- "plateSteel",
- CI.electricMotor_LV,
- "plateSteel",
- CI.getTieredCircuit(1),
- CI.machineHull_LV,
- CI.getTieredCircuit(1),
- GregtechItemList.Pollution_Detector.get(1));
+ "plateSteel",
+ CI.sensor_LV,
+ "plateSteel",
+ "plateSteel",
+ CI.electricMotor_LV,
+ "plateSteel",
+ CI.getTieredCircuit(1),
+ CI.machineHull_LV,
+ CI.getTieredCircuit(1),
+ GregtechItemList.Pollution_Detector.get(1));
// LV
RecipeUtils.addShapedGregtechRecipe(
- CI.component_Plate[1],
- ItemUtils.simpleMetaStack(ModItems.itemAirFilter, 0, 1),
- CI.component_Plate[1],
- CI.component_Plate[1],
- CI.electricMotor_LV,
- CI.component_Plate[1],
- CI.getTieredCircuit(1),
- CI.machineHull_LV,
- CI.getTieredCircuit(1),
- GregtechItemList.Pollution_Cleaner_LV.get(1));
+ CI.component_Plate[1],
+ ItemUtils.simpleMetaStack(ModItems.itemAirFilter, 0, 1),
+ CI.component_Plate[1],
+ CI.component_Plate[1],
+ CI.electricMotor_LV,
+ CI.component_Plate[1],
+ CI.getTieredCircuit(1),
+ CI.machineHull_LV,
+ CI.getTieredCircuit(1),
+ GregtechItemList.Pollution_Cleaner_LV.get(1));
// MV
RecipeUtils.addShapedGregtechRecipe(
- CI.component_Plate[2],
- ItemUtils.simpleMetaStack(ModItems.itemAirFilter, 0, 1),
- CI.component_Plate[2],
- CI.component_Plate[2],
- CI.electricMotor_MV,
- CI.component_Plate[2],
- CI.getTieredCircuit(2),
- CI.machineHull_MV,
- CI.getTieredCircuit(2),
- GregtechItemList.Pollution_Cleaner_MV.get(1));
+ CI.component_Plate[2],
+ ItemUtils.simpleMetaStack(ModItems.itemAirFilter, 0, 1),
+ CI.component_Plate[2],
+ CI.component_Plate[2],
+ CI.electricMotor_MV,
+ CI.component_Plate[2],
+ CI.getTieredCircuit(2),
+ CI.machineHull_MV,
+ CI.getTieredCircuit(2),
+ GregtechItemList.Pollution_Cleaner_MV.get(1));
// HV
RecipeUtils.addShapedGregtechRecipe(
- CI.component_Plate[3],
- ItemUtils.simpleMetaStack(ModItems.itemAirFilter, 0, 1),
- CI.component_Plate[3],
- CI.component_Plate[3],
- CI.electricMotor_HV,
- CI.component_Plate[3],
- CI.getTieredCircuit(3),
- CI.machineHull_HV,
- CI.getTieredCircuit(3),
- GregtechItemList.Pollution_Cleaner_HV.get(1));
+ CI.component_Plate[3],
+ ItemUtils.simpleMetaStack(ModItems.itemAirFilter, 0, 1),
+ CI.component_Plate[3],
+ CI.component_Plate[3],
+ CI.electricMotor_HV,
+ CI.component_Plate[3],
+ CI.getTieredCircuit(3),
+ CI.machineHull_HV,
+ CI.getTieredCircuit(3),
+ GregtechItemList.Pollution_Cleaner_HV.get(1));
// EV
RecipeUtils.addShapedGregtechRecipe(
- CI.component_Plate[4],
- ItemUtils.simpleMetaStack(ModItems.itemAirFilter, 0, 1),
- CI.component_Plate[4],
- CI.component_Plate[4],
- CI.electricMotor_EV,
- CI.component_Plate[4],
- CI.getTieredCircuit(4),
- CI.machineHull_EV,
- CI.getTieredCircuit(4),
- GregtechItemList.Pollution_Cleaner_EV.get(1));
+ CI.component_Plate[4],
+ ItemUtils.simpleMetaStack(ModItems.itemAirFilter, 0, 1),
+ CI.component_Plate[4],
+ CI.component_Plate[4],
+ CI.electricMotor_EV,
+ CI.component_Plate[4],
+ CI.getTieredCircuit(4),
+ CI.machineHull_EV,
+ CI.getTieredCircuit(4),
+ GregtechItemList.Pollution_Cleaner_EV.get(1));
// IV
RecipeUtils.addShapedGregtechRecipe(
- CI.component_Plate[5],
- ItemUtils.simpleMetaStack(ModItems.itemAirFilter, 1, 1),
- CI.component_Plate[5],
- CI.component_Plate[5],
- CI.electricMotor_IV,
- CI.component_Plate[5],
- CI.getTieredCircuit(5),
- CI.machineHull_IV,
- CI.getTieredCircuit(5),
- GregtechItemList.Pollution_Cleaner_IV.get(1));
+ CI.component_Plate[5],
+ ItemUtils.simpleMetaStack(ModItems.itemAirFilter, 1, 1),
+ CI.component_Plate[5],
+ CI.component_Plate[5],
+ CI.electricMotor_IV,
+ CI.component_Plate[5],
+ CI.getTieredCircuit(5),
+ CI.machineHull_IV,
+ CI.getTieredCircuit(5),
+ GregtechItemList.Pollution_Cleaner_IV.get(1));
// LuV
RecipeUtils.addShapedGregtechRecipe(
- CI.component_Plate[6],
- ItemUtils.simpleMetaStack(ModItems.itemAirFilter, 1, 1),
- CI.component_Plate[6],
- CI.component_Plate[6],
- CI.electricMotor_LuV,
- CI.component_Plate[6],
- CI.getTieredCircuit(6),
- CI.machineHull_LuV,
- CI.getTieredCircuit(6),
- GregtechItemList.Pollution_Cleaner_LuV.get(1));
+ CI.component_Plate[6],
+ ItemUtils.simpleMetaStack(ModItems.itemAirFilter, 1, 1),
+ CI.component_Plate[6],
+ CI.component_Plate[6],
+ CI.electricMotor_LuV,
+ CI.component_Plate[6],
+ CI.getTieredCircuit(6),
+ CI.machineHull_LuV,
+ CI.getTieredCircuit(6),
+ GregtechItemList.Pollution_Cleaner_LuV.get(1));
// ZPM
RecipeUtils.addShapedGregtechRecipe(
- CI.component_Plate[7],
- ItemUtils.simpleMetaStack(ModItems.itemAirFilter, 1, 1),
- CI.component_Plate[7],
- CI.component_Plate[7],
- CI.electricMotor_ZPM,
- CI.component_Plate[7],
- CI.getTieredCircuit(7),
- CI.machineHull_ZPM,
- CI.getTieredCircuit(7),
- GregtechItemList.Pollution_Cleaner_ZPM.get(1));
+ CI.component_Plate[7],
+ ItemUtils.simpleMetaStack(ModItems.itemAirFilter, 1, 1),
+ CI.component_Plate[7],
+ CI.component_Plate[7],
+ CI.electricMotor_ZPM,
+ CI.component_Plate[7],
+ CI.getTieredCircuit(7),
+ CI.machineHull_ZPM,
+ CI.getTieredCircuit(7),
+ GregtechItemList.Pollution_Cleaner_ZPM.get(1));
// UV
RecipeUtils.addShapedGregtechRecipe(
- CI.component_Plate[8],
- ItemUtils.simpleMetaStack(ModItems.itemAirFilter, 1, 1),
- CI.component_Plate[8],
- CI.component_Plate[8],
- CI.electricMotor_UV,
- CI.component_Plate[8],
- CI.getTieredCircuit(8),
- CI.machineHull_UV,
- CI.getTieredCircuit(8),
- GregtechItemList.Pollution_Cleaner_UV.get(1));
+ CI.component_Plate[8],
+ ItemUtils.simpleMetaStack(ModItems.itemAirFilter, 1, 1),
+ CI.component_Plate[8],
+ CI.component_Plate[8],
+ CI.electricMotor_UV,
+ CI.component_Plate[8],
+ CI.getTieredCircuit(8),
+ CI.machineHull_UV,
+ CI.getTieredCircuit(8),
+ GregtechItemList.Pollution_Cleaner_UV.get(1));
// MAX
RecipeUtils.addShapedGregtechRecipe(
- CI.component_Plate[9],
- ItemUtils.simpleMetaStack(ModItems.itemAirFilter, 1, 1),
- CI.component_Plate[9],
- CI.component_Plate[9],
- CI.electricMotor_UHV,
- CI.component_Plate[9],
- CI.getTieredCircuit(9),
- CI.machineHull_UHV,
- CI.getTieredCircuit(9),
- GregtechItemList.Pollution_Cleaner_MAX.get(1));
+ CI.component_Plate[9],
+ ItemUtils.simpleMetaStack(ModItems.itemAirFilter, 1, 1),
+ CI.component_Plate[9],
+ CI.component_Plate[9],
+ CI.electricMotor_UHV,
+ CI.component_Plate[9],
+ CI.getTieredCircuit(9),
+ CI.machineHull_UHV,
+ CI.getTieredCircuit(9),
+ GregtechItemList.Pollution_Cleaner_MAX.get(1));
}
if (CORE.ConfigSwitches.enableMultiblock_ThermalBoiler) {
@@ -1780,79 +1767,79 @@ public class RECIPES_Machines {
ItemStack centrifugeEV = ItemList.Machine_EV_Centrifuge.get(1);
RecipeUtils.addShapedGregtechRecipe(
- "craftingGeothermalGenerator",
- centrifugeEV,
- "craftingGeothermalGenerator",
- "gearGtTitanium",
- CI.getTieredCircuitOreDictName(6),
- "gearGtTitanium",
- "craftingGeothermalGenerator",
- centrifugeEV,
- "craftingGeothermalGenerator",
- RECIPE_ThermalBoilerController);
+ "craftingGeothermalGenerator",
+ centrifugeEV,
+ "craftingGeothermalGenerator",
+ "gearGtTitanium",
+ CI.getTieredCircuitOreDictName(6),
+ "gearGtTitanium",
+ "craftingGeothermalGenerator",
+ centrifugeEV,
+ "craftingGeothermalGenerator",
+ RECIPE_ThermalBoilerController);
RecipeUtils.addShapedGregtechRecipe(
- "craftingGeothermalGenerator",
- centrifugeEV,
- "craftingGeothermalGenerator",
- "gearGtTungstenSteel",
- CI.getTieredCircuitOreDictName(5),
- "gearGtTungstenSteel",
- "craftingGeothermalGenerator",
- centrifugeEV,
- "craftingGeothermalGenerator",
- RECIPE_ThermalBoilerController);
+ "craftingGeothermalGenerator",
+ centrifugeEV,
+ "craftingGeothermalGenerator",
+ "gearGtTungstenSteel",
+ CI.getTieredCircuitOreDictName(5),
+ "gearGtTungstenSteel",
+ "craftingGeothermalGenerator",
+ centrifugeEV,
+ "craftingGeothermalGenerator",
+ RECIPE_ThermalBoilerController);
RecipeUtils.addShapedGregtechRecipe(
- ALLOY.MARAGING350.getPlate(1),
- "plateStainlessSteel",
- ALLOY.MARAGING350.getPlate(1),
- "circuitAdvanced",
- CI.machineCasing_HV,
- "circuitAdvanced",
- ALLOY.MARAGING350.getPlate(1),
- ALLOY.MARAGING350.getPlate(1),
- ALLOY.MARAGING350.getPlate(1),
- RECIPE_ThermalBoilerCasing);
+ ALLOY.MARAGING350.getPlate(1),
+ "plateStainlessSteel",
+ ALLOY.MARAGING350.getPlate(1),
+ "circuitAdvanced",
+ CI.machineCasing_HV,
+ "circuitAdvanced",
+ ALLOY.MARAGING350.getPlate(1),
+ ALLOY.MARAGING350.getPlate(1),
+ ALLOY.MARAGING350.getPlate(1),
+ RECIPE_ThermalBoilerCasing);
// Lava Filter Recipe
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedCircuit(18),
- ItemUtils.getItemStackOfAmountFromOreDict("dustCarbon", 32),
- ItemUtils.getItemStackOfAmountFromOreDict("wireFineSteel", 32),
- ItemUtils.getItemStackOfAmountFromOreDict("ringTumbaga", 16),
- ItemUtils.getItemStackOfAmountFromOreDict("foilCopper", 4),
- ItemUtils.getItemStackWithMeta(true, "IC2:itemPartCarbonMesh", "RawCarbonMesh", 0, 64), },
- CI.getTieredFluid(3, 144),
- ItemUtils.getSimpleStack(ModItems.itemLavaFilter, 16),
- 1600,
- 240);
+ new ItemStack[] { CI.getNumberedCircuit(18),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustCarbon", 32),
+ ItemUtils.getItemStackOfAmountFromOreDict("wireFineSteel", 32),
+ ItemUtils.getItemStackOfAmountFromOreDict("ringTumbaga", 16),
+ ItemUtils.getItemStackOfAmountFromOreDict("foilCopper", 4),
+ ItemUtils.getItemStackWithMeta(true, "IC2:itemPartCarbonMesh", "RawCarbonMesh", 0, 64), },
+ CI.getTieredFluid(3, 144),
+ ItemUtils.getSimpleStack(ModItems.itemLavaFilter, 16),
+ 1600,
+ 240);
}
// Air Intake Hatch
RecipeUtils.addShapedGregtechRecipe(
- CI.component_Plate[6],
- ItemList.Casing_Grate.get(1),
- CI.component_Plate[6],
- CI.component_Plate[6],
- CI.getFluidRegulator(5, 1),
- CI.component_Plate[6],
- CI.getTieredCircuit(5),
- ItemList.Hatch_Input_IV.get(1),
- CI.getTieredCircuit(5),
- GregtechItemList.Hatch_Air_Intake.get(1));
+ CI.component_Plate[6],
+ ItemList.Casing_Grate.get(1),
+ CI.component_Plate[6],
+ CI.component_Plate[6],
+ CI.getFluidRegulator(5, 1),
+ CI.component_Plate[6],
+ CI.getTieredCircuit(5),
+ ItemList.Hatch_Input_IV.get(1),
+ CI.getTieredCircuit(5),
+ GregtechItemList.Hatch_Air_Intake.get(1));
RecipeUtils.addShapedGregtechRecipe(
- CI.getPlate(7, 1),
- GregtechItemList.Hatch_Air_Intake.get(1),
- CI.getPlate(7, 1),
- CI.getPlate(7, 1),
- CI.getFluidRegulator(7, 1),
- CI.getPlate(7, 1),
- CI.getTieredCircuit(7),
- ItemList.Hatch_Input_ZPM.get(1),
- CI.getTieredCircuit(7),
- GregtechItemList.Hatch_Air_Intake_Extreme.get(1));
+ CI.getPlate(7, 1),
+ GregtechItemList.Hatch_Air_Intake.get(1),
+ CI.getPlate(7, 1),
+ CI.getPlate(7, 1),
+ CI.getFluidRegulator(7, 1),
+ CI.getPlate(7, 1),
+ CI.getTieredCircuit(7),
+ ItemList.Hatch_Input_ZPM.get(1),
+ CI.getTieredCircuit(7),
+ GregtechItemList.Hatch_Air_Intake_Extreme.get(1));
if (CORE.ConfigSwitches.enableMultiblock_LiquidFluorideThoriumReactor) {
@@ -1863,164 +1850,164 @@ public class RECIPES_Machines {
ItemStack controlCircuit = ItemUtils.getSimpleStack(ModItems.itemCircuitLFTR);
RecipeUtils.addShapedGregtechRecipe(
- controlCircuit,
- "cableGt12Naquadah",
- controlCircuit,
- "plateDoubleHastelloyN",
- GregtechItemList.Gregtech_Computer_Cube.get(1),
- "plateDoubleHastelloyN",
- "plateThorium232",
- CI.machineHull_IV,
- "plateThorium232",
- RECIPE_LFTRController);
+ controlCircuit,
+ "cableGt12Naquadah",
+ controlCircuit,
+ "plateDoubleHastelloyN",
+ GregtechItemList.Gregtech_Computer_Cube.get(1),
+ "plateDoubleHastelloyN",
+ "plateThorium232",
+ CI.machineHull_IV,
+ "plateThorium232",
+ RECIPE_LFTRController);
RecipeUtils.addShapedGregtechRecipe(
- "plateDoubleHastelloyC276",
- CI.craftingToolScrewdriver,
- "plateDoubleHastelloyC276",
- "gearGtTalonite",
- CI.fieldGenerator_LV,
- "gearGtTalonite",
- "plateDoubleHastelloyC276",
- CI.craftingToolHammer_Hard,
- "plateDoubleHastelloyC276",
- RECIPE_LFTRInnerCasing);
+ "plateDoubleHastelloyC276",
+ CI.craftingToolScrewdriver,
+ "plateDoubleHastelloyC276",
+ "gearGtTalonite",
+ CI.fieldGenerator_LV,
+ "gearGtTalonite",
+ "plateDoubleHastelloyC276",
+ CI.craftingToolHammer_Hard,
+ "plateDoubleHastelloyC276",
+ RECIPE_LFTRInnerCasing);
ItemStack IC2HeatPlate = ItemUtils.getItemStackFromFQRN("IC2:reactorPlatingHeat", 1);
RecipeUtils.addShapedGregtechRecipe(
- "plateDoubleHastelloyN",
- IC2HeatPlate,
- "plateDoubleHastelloyN",
- IC2HeatPlate,
- "frameGtHastelloyC276",
- IC2HeatPlate,
- "plateDoubleHastelloyN",
- IC2HeatPlate,
- "plateDoubleHastelloyN",
- RECIPE_LFTROuterCasing);
+ "plateDoubleHastelloyN",
+ IC2HeatPlate,
+ "plateDoubleHastelloyN",
+ IC2HeatPlate,
+ "frameGtHastelloyC276",
+ IC2HeatPlate,
+ "plateDoubleHastelloyN",
+ IC2HeatPlate,
+ "plateDoubleHastelloyN",
+ RECIPE_LFTROuterCasing);
// LFTR Control Circuit
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict(CI.getTieredCircuitOreDictName(6), 1),
- CI.fieldGenerator_HV },
- null,
- controlCircuit,
- 240 * 20,
- 500);
+ new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict(CI.getTieredCircuitOreDictName(6), 1),
+ CI.fieldGenerator_HV },
+ null,
+ controlCircuit,
+ 240 * 20,
+ 500);
// Fission Fuel Plant
RecipeUtils.addShapedGregtechRecipe(
- CI.getTieredCircuitOreDictName(5),
- CI.craftingToolSolderingIron,
- CI.getTieredCircuitOreDictName(5),
- "plateDenseTungstenSteel",
- GregtechItemList.Gregtech_Computer_Cube.get(1),
- "plateDenseTungstenSteel",
- "gearGtStellite",
- CI.machineHull_IV,
- "gearGtStellite",
- GregtechItemList.Industrial_FuelRefinery.get(1));
+ CI.getTieredCircuitOreDictName(5),
+ CI.craftingToolSolderingIron,
+ CI.getTieredCircuitOreDictName(5),
+ "plateDenseTungstenSteel",
+ GregtechItemList.Gregtech_Computer_Cube.get(1),
+ "plateDenseTungstenSteel",
+ "gearGtStellite",
+ CI.machineHull_IV,
+ "gearGtStellite",
+ GregtechItemList.Industrial_FuelRefinery.get(1));
ItemStack mInnerTank = ItemList.Super_Tank_IV.get(1);
// Incoloy Casing
RecipeUtils.addShapedGregtechRecipe(
- "plateIncoloyDS",
- "pipeHugeStaballoy",
- "plateIncoloyDS",
- "gearGtIncoloyDS",
- mInnerTank,
- "gearGtIncoloyDS",
- "plateIncoloyDS",
- "pipeHugeStaballoy",
- "plateIncoloyDS",
- GregtechItemList.Casing_Refinery_Internal.get(1));
+ "plateIncoloyDS",
+ "pipeHugeStaballoy",
+ "plateIncoloyDS",
+ "gearGtIncoloyDS",
+ mInnerTank,
+ "gearGtIncoloyDS",
+ "plateIncoloyDS",
+ "pipeHugeStaballoy",
+ "plateIncoloyDS",
+ GregtechItemList.Casing_Refinery_Internal.get(1));
// Hastelloy-N Sealant Casing
RecipeUtils.addShapedGregtechRecipe(
- "plateIncoloyMA956",
- "plateHastelloyN",
- "plateIncoloyMA956",
- "plateHastelloyN",
- "frameGtHastelloyC276",
- "plateHastelloyN",
- "plateIncoloyMA956",
- "plateHastelloyN",
- "plateIncoloyMA956",
- GregtechItemList.Casing_Refinery_External.get(1));
+ "plateIncoloyMA956",
+ "plateHastelloyN",
+ "plateIncoloyMA956",
+ "plateHastelloyN",
+ "frameGtHastelloyC276",
+ "plateHastelloyN",
+ "plateIncoloyMA956",
+ "plateHastelloyN",
+ "plateIncoloyMA956",
+ GregtechItemList.Casing_Refinery_External.get(1));
// Hastelloy-X Structural Casing
RecipeUtils.addShapedGregtechRecipe(
- "ringInconel792",
- "gearGtHastelloyX",
- CI.component_Plate[5],
- CI.craftingToolHammer_Hard,
- "frameGtHastelloyC276",
- CI.craftingToolWrench,
- CI.component_Plate[5],
- CI.getTieredMachineCasing(4),
- "ringInconel792",
- GregtechItemList.Casing_Refinery_Structural.get(1));
+ "ringInconel792",
+ "gearGtHastelloyX",
+ CI.component_Plate[5],
+ CI.craftingToolHammer_Hard,
+ "frameGtHastelloyC276",
+ CI.craftingToolWrench,
+ CI.component_Plate[5],
+ CI.getTieredMachineCasing(4),
+ "ringInconel792",
+ GregtechItemList.Casing_Refinery_Structural.get(1));
RecipeUtils.addShapedGregtechRecipe(
- CI.getPlate(5, 1),
- ALLOY.HASTELLOY_X.getPlateDouble(1),
- CI.getPlate(5, 1),
- CI.getPlate(5, 1),
- CI.getTieredMachineCasing(5),
- CI.getPlate(5, 1),
- CI.getRobotArm(5, 1),
- ItemList.Casing_FrostProof.get(1),
- CI.getRobotArm(5, 1),
- GregtechItemList.ColdTrap_IV.get(1));
+ CI.getPlate(5, 1),
+ ALLOY.HASTELLOY_X.getPlateDouble(1),
+ CI.getPlate(5, 1),
+ CI.getPlate(5, 1),
+ CI.getTieredMachineCasing(5),
+ CI.getPlate(5, 1),
+ CI.getRobotArm(5, 1),
+ ItemList.Casing_FrostProof.get(1),
+ CI.getRobotArm(5, 1),
+ GregtechItemList.ColdTrap_IV.get(1));
RecipeUtils.addShapedGregtechRecipe(
- CI.getPlate(7, 1),
- ALLOY.HS188A.getPlateDouble(1),
- CI.getPlate(7, 1),
- CI.getPlate(7, 1),
- GregtechItemList.ColdTrap_IV.get(1),
- CI.getPlate(7, 1),
- CI.getRobotArm(7, 1),
- ItemList.Casing_FrostProof.get(1),
- CI.getRobotArm(7, 1),
- GregtechItemList.ColdTrap_ZPM.get(1));
+ CI.getPlate(7, 1),
+ ALLOY.HS188A.getPlateDouble(1),
+ CI.getPlate(7, 1),
+ CI.getPlate(7, 1),
+ GregtechItemList.ColdTrap_IV.get(1),
+ CI.getPlate(7, 1),
+ CI.getRobotArm(7, 1),
+ ItemList.Casing_FrostProof.get(1),
+ CI.getRobotArm(7, 1),
+ GregtechItemList.ColdTrap_ZPM.get(1));
RecipeUtils.addShapedGregtechRecipe(
- CI.getFieldGenerator(3, 1),
- CI.getRobotArm(5, 1),
- CI.getPlate(5, 1),
- ALLOY.HASTELLOY_N.getPlateDouble(1),
- ItemList.Machine_IV_ChemicalReactor.get(1),
- ALLOY.HASTELLOY_N.getPlateDouble(1),
- CI.getPlate(5, 1),
- ALLOY.HASTELLOY_N.getPlateDouble(1),
- CI.getFieldGenerator(3, 1),
- GregtechItemList.ReactorProcessingUnit_IV.get(1));
+ CI.getFieldGenerator(3, 1),
+ CI.getRobotArm(5, 1),
+ CI.getPlate(5, 1),
+ ALLOY.HASTELLOY_N.getPlateDouble(1),
+ ItemList.Machine_IV_ChemicalReactor.get(1),
+ ALLOY.HASTELLOY_N.getPlateDouble(1),
+ CI.getPlate(5, 1),
+ ALLOY.HASTELLOY_N.getPlateDouble(1),
+ CI.getFieldGenerator(3, 1),
+ GregtechItemList.ReactorProcessingUnit_IV.get(1));
RecipeUtils.addShapedGregtechRecipe(
- CI.getFieldGenerator(5, 1),
- CI.getRobotArm(7, 1),
- CI.getPlate(7, 1),
- ALLOY.HS188A.getPlateDouble(1),
- GregtechItemList.ReactorProcessingUnit_IV.get(1),
- ALLOY.HS188A.getPlateDouble(1),
- CI.getPlate(7, 1),
- ALLOY.HS188A.getPlateDouble(1),
- CI.getFieldGenerator(5, 1),
- GregtechItemList.ReactorProcessingUnit_ZPM.get(1));
+ CI.getFieldGenerator(5, 1),
+ CI.getRobotArm(7, 1),
+ CI.getPlate(7, 1),
+ ALLOY.HS188A.getPlateDouble(1),
+ GregtechItemList.ReactorProcessingUnit_IV.get(1),
+ ALLOY.HS188A.getPlateDouble(1),
+ CI.getPlate(7, 1),
+ ALLOY.HS188A.getPlateDouble(1),
+ CI.getFieldGenerator(5, 1),
+ GregtechItemList.ReactorProcessingUnit_ZPM.get(1));
// Nuclear Salt Processing Plant Controller
RECIPE_SaltPlantController = GregtechItemList.Nuclear_Salt_Processing_Plant.get(1);
RecipeUtils.addShapedGregtechRecipe(
- "plateOsmiridium",
- GregtechItemList.ReactorProcessingUnit_IV.get(1),
- "plateOsmiridium",
- "plateRuridit",
- CI.getTieredCircuitOreDictName(7),
- "plateRuridit",
- "plateOsmiridium",
- GregtechItemList.ColdTrap_IV.get(1),
- "plateOsmiridium",
- RECIPE_SaltPlantController);
+ "plateOsmiridium",
+ GregtechItemList.ReactorProcessingUnit_IV.get(1),
+ "plateOsmiridium",
+ "plateRuridit",
+ CI.getTieredCircuitOreDictName(7),
+ "plateRuridit",
+ "plateOsmiridium",
+ GregtechItemList.ColdTrap_IV.get(1),
+ "plateOsmiridium",
+ RECIPE_SaltPlantController);
}
// Cyclotron
@@ -2031,275 +2018,270 @@ public class RECIPES_Machines {
// Outer Casing
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { ItemList.Casing_FrostProof.get(1),
- ItemUtils.simpleMetaStack("miscutils:itemDehydratorCoilWire", 0, 4),
- ALLOY.INCOLOY_DS.getPlate(8), ALLOY.INCONEL_690.getScrew(16),
- ALLOY.EGLIN_STEEL.getLongRod(4), CI.getElectricPiston(3, 2) },
- ALLOY.ZIRCONIUM_CARBIDE.getFluidStack(144 * 8), // Input Fluid
- RECIPE_CyclotronOuterCasing,
- 30 * 20 * 2,
- MaterialUtils.getVoltageForTier(4));
+ new ItemStack[] { ItemList.Casing_FrostProof.get(1),
+ ItemUtils.simpleMetaStack("miscutils:itemDehydratorCoilWire", 0, 4), ALLOY.INCOLOY_DS.getPlate(8),
+ ALLOY.INCONEL_690.getScrew(16), ALLOY.EGLIN_STEEL.getLongRod(4), CI.getElectricPiston(3, 2) },
+ ALLOY.ZIRCONIUM_CARBIDE.getFluidStack(144 * 8), // Input Fluid
+ RECIPE_CyclotronOuterCasing,
+ 30 * 20 * 2,
+ MaterialUtils.getVoltageForTier(4));
// Inner Coil
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { ItemList.Casing_Coil_Nichrome.get(1),
- ItemUtils.simpleMetaStack("miscutils:itemDehydratorCoilWire", 1, 8),
- ALLOY.INCOLOY_MA956.getPlate(8), ALLOY.TANTALLOY_61.getBolt(16),
- ALLOY.INCOLOY_020.getScrew(32), CI.getFieldGenerator(4, 1) },
- ALLOY.HG1223.getFluidStack(144 * 5), // Input Fluid
- RECIPE_CyclotronInnerCoil,
- 60 * 20 * 2,
- MaterialUtils.getVoltageForTier(5));
+ new ItemStack[] { ItemList.Casing_Coil_Nichrome.get(1),
+ ItemUtils.simpleMetaStack("miscutils:itemDehydratorCoilWire", 1, 8),
+ ALLOY.INCOLOY_MA956.getPlate(8), ALLOY.TANTALLOY_61.getBolt(16), ALLOY.INCOLOY_020.getScrew(32),
+ CI.getFieldGenerator(4, 1) },
+ ALLOY.HG1223.getFluidStack(144 * 5), // Input Fluid
+ RECIPE_CyclotronInnerCoil,
+ 60 * 20 * 2,
+ MaterialUtils.getVoltageForTier(5));
// Controller
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.machineHull_IV, ItemUtils.getSimpleStack(RECIPE_CyclotronInnerCoil, 2),
- ALLOY.INCOLOY_020.getPlate(8), ALLOY.TANTALLOY_61.getGear(2),
- ALLOY.INCOLOY_MA956.getScrew(16),
- ItemUtils.getItemStackOfAmountFromOreDict(CI.getTieredCircuitOreDictName(5), 16) },
- ALLOY.INCOLOY_020.getFluidStack(144 * 9), // Input Fluid
- RECIPE_CyclotronController,
- 60 * 20 * 5,
- MaterialUtils.getVoltageForTier(5));
+ new ItemStack[] { CI.machineHull_IV, ItemUtils.getSimpleStack(RECIPE_CyclotronInnerCoil, 2),
+ ALLOY.INCOLOY_020.getPlate(8), ALLOY.TANTALLOY_61.getGear(2), ALLOY.INCOLOY_MA956.getScrew(16),
+ ItemUtils.getItemStackOfAmountFromOreDict(CI.getTieredCircuitOreDictName(5), 16) },
+ ALLOY.INCOLOY_020.getFluidStack(144 * 9), // Input Fluid
+ RECIPE_CyclotronController,
+ 60 * 20 * 5,
+ MaterialUtils.getVoltageForTier(5));
}
// Mazut
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Controller_LargeSemifluidGenerator.get(1L),
- CI.bitsd,
- new Object[] { "PCP", "EME", "GWG", 'M', ItemList.Hull_EV, 'P', ItemList.Electric_Piston_EV, 'E',
- ItemList.Electric_Pump_EV, 'C', OrePrefixes.circuit.get(Materials.Data), 'W',
- OrePrefixes.cableGt08.get(Materials.Electrum), 'G', ALLOY.INCONEL_792.getGear(1) });
+ GregtechItemList.Controller_LargeSemifluidGenerator.get(1L),
+ CI.bitsd,
+ new Object[] { "PCP", "EME", "GWG", 'M', ItemList.Hull_EV, 'P', ItemList.Electric_Piston_EV, 'E',
+ ItemList.Electric_Pump_EV, 'C', OrePrefixes.circuit.get(Materials.Data), 'W',
+ OrePrefixes.cableGt08.get(Materials.Electrum), 'G', ALLOY.INCONEL_792.getGear(1) });
if (CORE.ConfigSwitches.enableMultiblock_PowerSubstation) {
RecipeUtils.addShapedRecipe(
- "screwTitanium",
- "plateIncoloy020",
- "screwTitanium",
- "plateIncoloy020",
- "frameGtIncoloyMA956",
- "plateIncoloy020",
- "screwTitanium",
- "plateIncoloy020",
- "screwTitanium",
- GregtechItemList.Casing_Power_SubStation.get(1));
+ "screwTitanium",
+ "plateIncoloy020",
+ "screwTitanium",
+ "plateIncoloy020",
+ "frameGtIncoloyMA956",
+ "plateIncoloy020",
+ "screwTitanium",
+ "plateIncoloy020",
+ "screwTitanium",
+ GregtechItemList.Casing_Power_SubStation.get(1));
ItemStack mBattery = ItemUtils.getSimpleStack(ModItems.itemCircuitLFTR);
RecipeUtils.addShapedRecipe(
- "plateIncoloyMA956",
- mBattery,
- "plateIncoloyMA956",
- GregtechItemList.Casing_Power_SubStation.get(1),
- GregtechItemList.Casing_Vanadium_Redox.get(1),
- GregtechItemList.Casing_Power_SubStation.get(1),
- "plateIncoloy020",
- "plateIncoloyMA956",
- "plateIncoloy020",
- GregtechItemList.PowerSubStation.get(1));
+ "plateIncoloyMA956",
+ mBattery,
+ "plateIncoloyMA956",
+ GregtechItemList.Casing_Power_SubStation.get(1),
+ GregtechItemList.Casing_Vanadium_Redox.get(1),
+ GregtechItemList.Casing_Power_SubStation.get(1),
+ "plateIncoloy020",
+ "plateIncoloyMA956",
+ "plateIncoloy020",
+ GregtechItemList.PowerSubStation.get(1));
}
if (CORE.ConfigSwitches.enableMultiblock_IndustrialThermalCentrifuge) {
RecipeUtils.addShapedRecipe(
- "plateRedSteel",
- CI.craftingToolHammer_Hard,
- "plateRedSteel",
- "plateRedSteel",
- "frameGtBlackSteel",
- "plateRedSteel",
- "plateRedSteel",
- CI.craftingToolWrench,
- "plateRedSteel",
- GregtechItemList.Casing_ThermalCentrifuge.get(1));
+ "plateRedSteel",
+ CI.craftingToolHammer_Hard,
+ "plateRedSteel",
+ "plateRedSteel",
+ "frameGtBlackSteel",
+ "plateRedSteel",
+ "plateRedSteel",
+ CI.craftingToolWrench,
+ "plateRedSteel",
+ GregtechItemList.Casing_ThermalCentrifuge.get(1));
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.RedSteel, 6),
- GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.BlackSteel, 1),
- GT_Utility.getIntegratedCircuit(1), },
- GT_Values.NF,
- GregtechItemList.Casing_ThermalCentrifuge.get(1L),
- 50,
- 16);
+ new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.RedSteel, 6),
+ GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.BlackSteel, 1),
+ GT_Utility.getIntegratedCircuit(1), },
+ GT_Values.NF,
+ GregtechItemList.Casing_ThermalCentrifuge.get(1L),
+ 50,
+ 16);
RecipeUtils.addShapedRecipe(
- "plateRedSteel",
- "circuitData",
- "plateRedSteel",
- "stickTalonite",
- EV_MACHINE_ThermalCentrifuge,
- "stickTalonite",
- "plateRedSteel",
- "gearGtTalonite",
- "plateRedSteel",
- GregtechItemList.Industrial_ThermalCentrifuge.get(1));
+ "plateRedSteel",
+ "circuitData",
+ "plateRedSteel",
+ "stickTalonite",
+ EV_MACHINE_ThermalCentrifuge,
+ "stickTalonite",
+ "plateRedSteel",
+ "gearGtTalonite",
+ "plateRedSteel",
+ GregtechItemList.Industrial_ThermalCentrifuge.get(1));
}
if (CORE.ConfigSwitches.enableMultiblock_IndustrialWashPlant) {
RecipeUtils.addShapedRecipe(
- "plateGrisium",
- CI.craftingToolHammer_Hard,
- "plateGrisium",
- "plateTalonite",
- "frameGtGrisium",
- "plateTalonite",
- "plateGrisium",
- CI.craftingToolWrench,
- "plateGrisium",
- GregtechItemList.Casing_WashPlant.get(1));
+ "plateGrisium",
+ CI.craftingToolHammer_Hard,
+ "plateGrisium",
+ "plateTalonite",
+ "frameGtGrisium",
+ "plateTalonite",
+ "plateGrisium",
+ CI.craftingToolWrench,
+ "plateGrisium",
+ GregtechItemList.Casing_WashPlant.get(1));
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { ALLOY.LEAGRISIUM.getPlate(4), ALLOY.TALONITE.getPlate(2),
- ALLOY.LEAGRISIUM.getFrameBox(1), GT_Utility.getIntegratedCircuit(1), },
- GT_Values.NF,
- GregtechItemList.Casing_WashPlant.get(1L),
- 50,
- 16);
+ new ItemStack[] { ALLOY.LEAGRISIUM.getPlate(4), ALLOY.TALONITE.getPlate(2),
+ ALLOY.LEAGRISIUM.getFrameBox(1), GT_Utility.getIntegratedCircuit(1), },
+ GT_Values.NF,
+ GregtechItemList.Casing_WashPlant.get(1L),
+ 50,
+ 16);
RecipeUtils.addShapedRecipe(
- "plateGrisium",
- EV_MACHINE_OreWasher,
- "plateGrisium",
- "plateTalonite",
- "circuitData",
- "plateTalonite",
- "plateGrisium",
- EV_MACHINE_ChemicalBath,
- "plateGrisium",
- GregtechItemList.Industrial_WashPlant.get(1));
+ "plateGrisium",
+ EV_MACHINE_OreWasher,
+ "plateGrisium",
+ "plateTalonite",
+ "circuitData",
+ "plateTalonite",
+ "plateGrisium",
+ EV_MACHINE_ChemicalBath,
+ "plateGrisium",
+ GregtechItemList.Industrial_WashPlant.get(1));
}
if (CORE.ConfigSwitches.enableMultiblock_LargeAutoCrafter) {
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { ItemUtils.getSimpleStack(GregtechItemList.Casing_Multi_Use.get(1), 1),
- ItemList.Block_IridiumTungstensteel.get(1),
- CI.getTieredComponent(OrePrefixes.circuit, 2, 16),
- CI.getTieredComponent(OrePrefixes.screw, 5, 32),
- CI.getTieredComponent(OrePrefixes.bolt, 5, 12),
- CI.getTieredComponent(OrePrefixes.plate, 6, 8), },
- CI.getTertiaryTieredFluid(6, 144 * (4)),
- GregtechItemList.Casing_Autocrafter.get(1),
- 20 * 60 * 2,
- MaterialUtils.getVoltageForTier(5));
+ new ItemStack[] { ItemUtils.getSimpleStack(GregtechItemList.Casing_Multi_Use.get(1), 1),
+ ItemList.Block_IridiumTungstensteel.get(1), CI.getTieredComponent(OrePrefixes.circuit, 2, 16),
+ CI.getTieredComponent(OrePrefixes.screw, 5, 32), CI.getTieredComponent(OrePrefixes.bolt, 5, 12),
+ CI.getTieredComponent(OrePrefixes.plate, 6, 8), },
+ CI.getTertiaryTieredFluid(6, 144 * (4)),
+ GregtechItemList.Casing_Autocrafter.get(1),
+ 20 * 60 * 2,
+ MaterialUtils.getVoltageForTier(5));
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { GregtechItemList.Casing_Refinery_Structural.get(4),
- ItemUtils.getSimpleStack(ModItems.itemCircuitLFTR, 1),
- CI.getTieredComponent(OrePrefixes.cableGt08, 6, 16), CI.getTransmissionComponent(5, 2),
- GregtechItemList.Gregtech_Computer_Cube.get(1), },
- CI.getTieredFluid(7, 144 * 8),
- GregtechItemList.GT4_Multi_Crafter.get(1),
- 20 * 60 * 5,
- MaterialUtils.getVoltageForTier(5));
+ new ItemStack[] { GregtechItemList.Casing_Refinery_Structural.get(4),
+ ItemUtils.getSimpleStack(ModItems.itemCircuitLFTR, 1),
+ CI.getTieredComponent(OrePrefixes.cableGt08, 6, 16), CI.getTransmissionComponent(5, 2),
+ GregtechItemList.Gregtech_Computer_Cube.get(1), },
+ CI.getTieredFluid(7, 144 * 8),
+ GregtechItemList.GT4_Multi_Crafter.get(1),
+ 20 * 60 * 5,
+ MaterialUtils.getVoltageForTier(5));
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { ItemUtils.getSimpleStack(GregtechItemList.Casing_Multi_Use.get(1), 1),
- CI.getEmitter(4, 2), CI.getRobotArm(4, 2), CI.getTieredComponent(OrePrefixes.circuit, 2, 8),
- CI.getTieredComponent(OrePrefixes.screw, 3, 8),
- CI.getTieredComponent(OrePrefixes.plate, 5, 4), },
- CI.getAlternativeTieredFluid(5, 144 * 4),
- ItemUtils.getSimpleStack(ModBlocks.blockProjectTable),
- 20 * 30 * 3,
- MaterialUtils.getVoltageForTier(4));
+ new ItemStack[] { ItemUtils.getSimpleStack(GregtechItemList.Casing_Multi_Use.get(1), 1),
+ CI.getEmitter(4, 2), CI.getRobotArm(4, 2), CI.getTieredComponent(OrePrefixes.circuit, 2, 8),
+ CI.getTieredComponent(OrePrefixes.screw, 3, 8), CI.getTieredComponent(OrePrefixes.plate, 5, 4), },
+ CI.getAlternativeTieredFluid(5, 144 * 4),
+ ItemUtils.getSimpleStack(ModBlocks.blockProjectTable),
+ 20 * 30 * 3,
+ MaterialUtils.getVoltageForTier(4));
}
if (CORE.ConfigSwitches.enableMultiblock_IndustrialCuttingMachine) {
ItemStack plate = ALLOY.MARAGING300.getPlate(1);
RecipeUtils.addShapedRecipe(
- plate,
- CI.craftingToolHammer_Hard,
- plate,
- "plateStellite",
- "frameGtTalonite",
- "plateStellite",
- plate,
- CI.craftingToolWrench,
- plate,
- GregtechItemList.Casing_CuttingFactoryFrame.get(1));
+ plate,
+ CI.craftingToolHammer_Hard,
+ plate,
+ "plateStellite",
+ "frameGtTalonite",
+ "plateStellite",
+ plate,
+ CI.craftingToolWrench,
+ plate,
+ GregtechItemList.Casing_CuttingFactoryFrame.get(1));
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { ALLOY.MARAGING300.getPlate(4), ALLOY.STELLITE.getPlate(2),
- ALLOY.TALONITE.getFrameBox(1), GT_Utility.getIntegratedCircuit(1), },
- GT_Values.NF,
- GregtechItemList.Casing_CuttingFactoryFrame.get(1L),
- 50,
- 16);
+ new ItemStack[] { ALLOY.MARAGING300.getPlate(4), ALLOY.STELLITE.getPlate(2),
+ ALLOY.TALONITE.getFrameBox(1), GT_Utility.getIntegratedCircuit(1), },
+ GT_Values.NF,
+ GregtechItemList.Casing_CuttingFactoryFrame.get(1L),
+ 50,
+ 16);
RecipeUtils.addShapedRecipe(
- plate,
- CI.getTieredCircuit(4),
- plate,
- "wireFinePlatinum",
- IV_MACHINE_Cutter,
- "wireFinePlatinum",
- plate,
- CI.getTieredCircuit(4),
- plate,
- GregtechItemList.Industrial_CuttingFactoryController.get(1));
+ plate,
+ CI.getTieredCircuit(4),
+ plate,
+ "wireFinePlatinum",
+ IV_MACHINE_Cutter,
+ "wireFinePlatinum",
+ plate,
+ CI.getTieredCircuit(4),
+ plate,
+ GregtechItemList.Industrial_CuttingFactoryController.get(1));
}
// IV_MACHINE_Extruder
if (CORE.ConfigSwitches.enableMultiblock_IndustrialExtrudingMachine) {
ItemStack plate = ALLOY.INCONEL_690.getPlate(1);
RecipeUtils.addShapedRecipe(
- plate,
- CI.craftingToolHammer_Hard,
- plate,
- "plateTalonite",
- "frameGtStaballoy",
- "plateTalonite",
- plate,
- CI.craftingToolWrench,
- plate,
- GregtechItemList.Casing_Extruder.get(1));
+ plate,
+ CI.craftingToolHammer_Hard,
+ plate,
+ "plateTalonite",
+ "frameGtStaballoy",
+ "plateTalonite",
+ plate,
+ CI.craftingToolWrench,
+ plate,
+ GregtechItemList.Casing_Extruder.get(1));
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { ALLOY.INCONEL_690.getPlate(4), ALLOY.TALONITE.getPlate(2),
- ALLOY.STABALLOY.getFrameBox(1), GT_Utility.getIntegratedCircuit(1), },
- GT_Values.NF,
- GregtechItemList.Casing_Extruder.get(1L),
- 50,
- 16);
+ new ItemStack[] { ALLOY.INCONEL_690.getPlate(4), ALLOY.TALONITE.getPlate(2),
+ ALLOY.STABALLOY.getFrameBox(1), GT_Utility.getIntegratedCircuit(1), },
+ GT_Values.NF,
+ GregtechItemList.Casing_Extruder.get(1L),
+ 50,
+ 16);
RecipeUtils.addShapedRecipe(
- plate,
- CI.getTieredCircuit(5),
- plate,
- CI.electricPiston_IV,
- IV_MACHINE_Extruder,
- CI.electricPiston_IV,
- plate,
- CI.getTieredCircuit(5),
- plate,
- GregtechItemList.Industrial_Extruder.get(1));
+ plate,
+ CI.getTieredCircuit(5),
+ plate,
+ CI.electricPiston_IV,
+ IV_MACHINE_Extruder,
+ CI.electricPiston_IV,
+ plate,
+ CI.getTieredCircuit(5),
+ plate,
+ GregtechItemList.Industrial_Extruder.get(1));
}
if (CORE.ConfigSwitches.enableMultiblock_IndustrialFishingPort) {
ItemStack plate = ALLOY.AQUATIC_STEEL.getPlate(1);
RecipeUtils.addShapedRecipe(
- plate,
- CI.craftingToolHammer_Hard,
- plate,
- "plateEglinSteel",
- "frameGtEglinSteel",
- "plateEglinSteel",
- plate,
- CI.craftingToolWrench,
- plate,
- GregtechItemList.Casing_FishPond.get(1));
+ plate,
+ CI.craftingToolHammer_Hard,
+ plate,
+ "plateEglinSteel",
+ "frameGtEglinSteel",
+ "plateEglinSteel",
+ plate,
+ CI.craftingToolWrench,
+ plate,
+ GregtechItemList.Casing_FishPond.get(1));
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { ALLOY.AQUATIC_STEEL.getPlate(4), ALLOY.EGLIN_STEEL.getPlate(2),
- ALLOY.EGLIN_STEEL.getFrameBox(1), GT_Utility.getIntegratedCircuit(1), },
- GT_Values.NF,
- GregtechItemList.Casing_FishPond.get(1L),
- 50,
- 16);
+ new ItemStack[] { ALLOY.AQUATIC_STEEL.getPlate(4), ALLOY.EGLIN_STEEL.getPlate(2),
+ ALLOY.EGLIN_STEEL.getFrameBox(1), GT_Utility.getIntegratedCircuit(1), },
+ GT_Values.NF,
+ GregtechItemList.Casing_FishPond.get(1L),
+ 50,
+ 16);
RecipeUtils.addShapedRecipe(
- plate,
- CI.getTieredCircuit(5),
- plate,
- "wireFineElectrum",
- ItemUtils.getSimpleStack(ModBlocks.blockFishTrap),
- "wireFineElectrum",
- plate,
- CI.getTieredCircuit(5),
- plate,
- GregtechItemList.Industrial_FishingPond.get(1));
+ plate,
+ CI.getTieredCircuit(5),
+ plate,
+ "wireFineElectrum",
+ ItemUtils.getSimpleStack(ModBlocks.blockFishTrap),
+ "wireFineElectrum",
+ plate,
+ CI.getTieredCircuit(5),
+ plate,
+ GregtechItemList.Industrial_FishingPond.get(1));
}
if (true) {
@@ -2311,27 +2293,27 @@ public class RECIPES_Machines {
ItemStack cell2 = ItemList.Reactor_Coolant_NaK_6.get(1);
RecipeUtils.addShapedRecipe(
- plate,
- gear,
- plate,
- cell1,
- frame,
- cell2,
- plate,
- gear,
- plate,
- GregtechItemList.Casing_AdvancedVacuum.get(1));
+ plate,
+ gear,
+ plate,
+ cell1,
+ frame,
+ cell2,
+ plate,
+ gear,
+ plate,
+ GregtechItemList.Casing_AdvancedVacuum.get(1));
RecipeUtils.addShapedRecipe(
- gear,
- CI.getTieredCircuit(6),
- gear,
- CI.electricPiston_IV,
- GregtechItemList.Casing_AdvancedVacuum.get(1),
- CI.electricPiston_IV,
- plate,
- GregtechItemList.Gregtech_Computer_Cube.get(1),
- plate,
- GregtechItemList.Industrial_Cryogenic_Freezer.get(1));
+ gear,
+ CI.getTieredCircuit(6),
+ gear,
+ CI.electricPiston_IV,
+ GregtechItemList.Casing_AdvancedVacuum.get(1),
+ CI.electricPiston_IV,
+ plate,
+ GregtechItemList.Gregtech_Computer_Cube.get(1),
+ plate,
+ GregtechItemList.Industrial_Cryogenic_Freezer.get(1));
// Advanced Blast Furnace
plate = ALLOY.HASTELLOY_N.getPlateDouble(1);
@@ -2342,49 +2324,48 @@ public class RECIPES_Machines {
ItemStack cell3 = ItemUtils.simpleMetaStack("IC2:reactorVentDiamond:1:1", 1, 1);
RecipeUtils.addShapedRecipe(
- plate,
- cell1,
- plate,
- cell3,
- frame,
- cell2,
- plate,
- gear,
- plate,
- GregtechItemList.Casing_Adv_BlastFurnace.get(1));
+ plate,
+ cell1,
+ plate,
+ cell3,
+ frame,
+ cell2,
+ plate,
+ gear,
+ plate,
+ GregtechItemList.Casing_Adv_BlastFurnace.get(1));
RecipeUtils.addShapedRecipe(
- gear,
- CI.getTieredCircuit(6),
- gear,
- CI.robotArm_IV,
- GregtechItemList.Casing_Adv_BlastFurnace.get(1),
- CI.robotArm_IV,
- plate,
- GregtechItemList.Gregtech_Computer_Cube.get(1),
- plate,
- GregtechItemList.Machine_Adv_BlastFurnace.get(1));
+ gear,
+ CI.getTieredCircuit(6),
+ gear,
+ CI.robotArm_IV,
+ GregtechItemList.Casing_Adv_BlastFurnace.get(1),
+ CI.robotArm_IV,
+ plate,
+ GregtechItemList.Gregtech_Computer_Cube.get(1),
+ plate,
+ GregtechItemList.Machine_Adv_BlastFurnace.get(1));
// Hatch_Input_Pyrotheum
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { ItemList.Hatch_Input_IV.get(1), GregtechItemList.Casing_Adv_BlastFurnace.get(1),
- ALLOY.MARAGING250.getPlate(4), ALLOY.MARAGING300.getGear(1),
- GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Elite, 2),
- GT_Utility.getIntegratedCircuit(1), },
- GT_Values.NF,
- GregtechItemList.Hatch_Input_Pyrotheum.get(1L),
- 50,
- 16);
+ new ItemStack[] { ItemList.Hatch_Input_IV.get(1), GregtechItemList.Casing_Adv_BlastFurnace.get(1),
+ ALLOY.MARAGING250.getPlate(4), ALLOY.MARAGING300.getGear(1),
+ GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Elite, 2),
+ GT_Utility.getIntegratedCircuit(1), },
+ GT_Values.NF,
+ GregtechItemList.Hatch_Input_Pyrotheum.get(1L),
+ 50,
+ 16);
// Casing_Adv_BlastFurnace
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { ALLOY.HASTELLOY_X.getFrameBox(1), ALLOY.HASTELLOY_N.getPlateDouble(4),
- ALLOY.HASTELLOY_W.getGear(1),
- ItemUtils.simpleMetaStack("IC2:reactorHeatSwitchDiamond:1", 1, 1),
- ItemUtils.simpleMetaStack("IC2:reactorVentGold:1", 1, 1),
- ItemUtils.simpleMetaStack("IC2:reactorVentDiamond:1:1", 1, 1),
- GT_Utility.getIntegratedCircuit(1), },
- GT_Values.NF,
- GregtechItemList.Casing_Adv_BlastFurnace.get(1L),
- 50,
- 16);
+ new ItemStack[] { ALLOY.HASTELLOY_X.getFrameBox(1), ALLOY.HASTELLOY_N.getPlateDouble(4),
+ ALLOY.HASTELLOY_W.getGear(1), ItemUtils.simpleMetaStack("IC2:reactorHeatSwitchDiamond:1", 1, 1),
+ ItemUtils.simpleMetaStack("IC2:reactorVentGold:1", 1, 1),
+ ItemUtils.simpleMetaStack("IC2:reactorVentDiamond:1:1", 1, 1),
+ GT_Utility.getIntegratedCircuit(1), },
+ GT_Values.NF,
+ GregtechItemList.Casing_Adv_BlastFurnace.get(1L),
+ 50,
+ 16);
// Advanced Implosion Compressor
plate = ItemUtils.getItemStackOfAmountFromOreDict("plateAlloyIridium", 1);
@@ -2394,16 +2375,16 @@ public class RECIPES_Machines {
cell2 = ItemUtils.simpleMetaStack("IC2:reactorVentGold:1", 1, 1);
RecipeUtils.addShapedRecipe(
- gear,
- CI.getTieredCircuit(6),
- gear,
- CI.fieldGenerator_IV,
- CI.machineHull_ZPM,
- CI.robotArm_IV,
- plate,
- GregtechItemList.Gregtech_Computer_Cube.get(1),
- plate,
- GregtechItemList.Machine_Adv_ImplosionCompressor.get(1));
+ gear,
+ CI.getTieredCircuit(6),
+ gear,
+ CI.fieldGenerator_IV,
+ CI.machineHull_ZPM,
+ CI.robotArm_IV,
+ plate,
+ GregtechItemList.Gregtech_Computer_Cube.get(1),
+ plate,
+ GregtechItemList.Machine_Adv_ImplosionCompressor.get(1));
// Supply Depot
plate = ALLOY.TUNGSTEN_CARBIDE.getPlateDouble(1);
@@ -2414,50 +2395,50 @@ public class RECIPES_Machines {
ItemStack casingAmazon = GregtechItemList.Casing_AmazonWarehouse.get(1);
RecipeUtils.addShapedRecipe(
- plate,
- ItemUtils.getItemStackOfAmountFromOreDict("cableGt12VanadiumGallium", 1),
- plate,
- cell1,
- frame,
- cell2,
- plate,
- gear,
- plate,
- GregtechItemList.Casing_AmazonWarehouse.get(1));
+ plate,
+ ItemUtils.getItemStackOfAmountFromOreDict("cableGt12VanadiumGallium", 1),
+ plate,
+ cell1,
+ frame,
+ cell2,
+ plate,
+ gear,
+ plate,
+ GregtechItemList.Casing_AmazonWarehouse.get(1));
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { ALLOY.TUNGSTEN_CARBIDE.getFrameBox(1), ALLOY.TUNGSTEN_CARBIDE.getPlateDouble(4),
- ALLOY.TRINIUM_TITANIUM.getRing(1), ItemList.Electric_Motor_LuV.get(1),
- ItemList.Conveyor_Module_LuV.get(1),
- ItemUtils.getItemStackOfAmountFromOreDict("cableGt12VanadiumGallium", 1),
- GT_Utility.getIntegratedCircuit(1), },
- GT_Values.NF,
- GregtechItemList.Casing_AmazonWarehouse.get(1L),
- 50,
- 16);
+ new ItemStack[] { ALLOY.TUNGSTEN_CARBIDE.getFrameBox(1), ALLOY.TUNGSTEN_CARBIDE.getPlateDouble(4),
+ ALLOY.TRINIUM_TITANIUM.getRing(1), ItemList.Electric_Motor_LuV.get(1),
+ ItemList.Conveyor_Module_LuV.get(1),
+ ItemUtils.getItemStackOfAmountFromOreDict("cableGt12VanadiumGallium", 1),
+ GT_Utility.getIntegratedCircuit(1), },
+ GT_Values.NF,
+ GregtechItemList.Casing_AmazonWarehouse.get(1L),
+ 50,
+ 16);
RecipeUtils.addShapedRecipe(
- casingAmazon,
- CI.getTieredCircuit(7),
- casingAmazon,
- CI.robotArm_LuV,
- ItemList.Machine_LuV_Unboxinator.get(1),
- CI.robotArm_LuV,
- CI.conveyorModule_LuV,
- GregtechItemList.Gregtech_Computer_Cube.get(1),
- CI.conveyorModule_LuV,
- GregtechItemList.Amazon_Warehouse_Controller.get(1));
+ casingAmazon,
+ CI.getTieredCircuit(7),
+ casingAmazon,
+ CI.robotArm_LuV,
+ ItemList.Machine_LuV_Unboxinator.get(1),
+ CI.robotArm_LuV,
+ CI.conveyorModule_LuV,
+ GregtechItemList.Gregtech_Computer_Cube.get(1),
+ CI.conveyorModule_LuV,
+ GregtechItemList.Amazon_Warehouse_Controller.get(1));
// Industrial Mixing Machine
RecipeUtils.addShapedRecipe(
- "plateStaballoy",
- CI.getTieredCircuit(5),
- "plateStaballoy",
- "plateZirconiumCarbide",
- IV_MACHINE_Mixer,
- "plateZirconiumCarbide",
- "plateStaballoy",
- CI.getTieredCircuit(5),
- "plateStaballoy",
- GregtechItemList.Industrial_Mixer.get(1));
+ "plateStaballoy",
+ CI.getTieredCircuit(5),
+ "plateStaballoy",
+ "plateZirconiumCarbide",
+ IV_MACHINE_Mixer,
+ "plateZirconiumCarbide",
+ "plateStaballoy",
+ CI.getTieredCircuit(5),
+ "plateStaballoy",
+ GregtechItemList.Industrial_Mixer.get(1));
}
if (CORE.ConfigSwitches.enableMultiblock_IndustrialMultiMachine) {
@@ -2471,36 +2452,36 @@ public class RECIPES_Machines {
ItemStack o_Extractor = ItemList.Machine_IV_Extractor.get(1);
RecipeUtils.addShapedRecipe(
- plate,
- CI.craftingToolHammer_Hard,
- plate,
- "plateStainlessSteel",
- "frameGtZirconiumCarbide",
- "plateStainlessSteel",
- plate,
- CI.craftingToolWrench,
- plate,
- GregtechItemList.Casing_Multi_Use.get(1));
+ plate,
+ CI.craftingToolHammer_Hard,
+ plate,
+ "plateStainlessSteel",
+ "frameGtZirconiumCarbide",
+ "plateStainlessSteel",
+ plate,
+ CI.craftingToolWrench,
+ plate,
+ GregtechItemList.Casing_Multi_Use.get(1));
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { ALLOY.STABALLOY.getPlate(4),
- GT_OreDictUnificator.get(OrePrefixes.plate, Materials.StainlessSteel, 2),
- ALLOY.ZIRCONIUM_CARBIDE.getFrameBox(1), GT_Utility.getIntegratedCircuit(1), },
- GT_Values.NF,
- GregtechItemList.Casing_Multi_Use.get(1L),
- 50,
- 16);
+ new ItemStack[] { ALLOY.STABALLOY.getPlate(4),
+ GT_OreDictUnificator.get(OrePrefixes.plate, Materials.StainlessSteel, 2),
+ ALLOY.ZIRCONIUM_CARBIDE.getFrameBox(1), GT_Utility.getIntegratedCircuit(1), },
+ GT_Values.NF,
+ GregtechItemList.Casing_Multi_Use.get(1L),
+ 50,
+ 16);
RecipeUtils.addShapedRecipe(
- o_Compressor,
- o_Lathe,
- o_Electromagnet,
- plate,
- ItemUtils.getSimpleStack(ModBlocks.blockProjectTable),
- plate,
- o_Fermenter,
- o_Distillery,
- o_Extractor,
- GregtechItemList.Industrial_MultiMachine.get(1));
+ o_Compressor,
+ o_Lathe,
+ o_Electromagnet,
+ plate,
+ ItemUtils.getSimpleStack(ModBlocks.blockProjectTable),
+ plate,
+ o_Fermenter,
+ o_Distillery,
+ o_Extractor,
+ GregtechItemList.Industrial_MultiMachine.get(1));
}
/*
@@ -2509,61 +2490,61 @@ public class RECIPES_Machines {
// Drilling Platform Casings
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("frameGtTriniumNaquadahCarbonite", 4),
- ItemUtils.getItemStackOfAmountFromOreDict("plateDoubleTriniumTitaniumAlloy", 1 * (1)),
- ItemUtils.getItemStackOfAmountFromOreDict("gearGtPikyonium64B", 2 * (1)),
- ALLOY.TRINIUM_REINFORCED_STEEL.getPlateDouble(4 * 1),
- ItemUtils.getSimpleStack((CI.machineHull_LuV), 1 * 1), },
- ALLOY.MARAGING350.getFluidStack(144 * 16 * 1),
- GregtechItemList.Casing_BedrockMiner.get(1),
- (int) GT_Values.V[4],
- (int) GT_Values.V[6]);
+ new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("frameGtTriniumNaquadahCarbonite", 4),
+ ItemUtils.getItemStackOfAmountFromOreDict("plateDoubleTriniumTitaniumAlloy", 1 * (1)),
+ ItemUtils.getItemStackOfAmountFromOreDict("gearGtPikyonium64B", 2 * (1)),
+ ALLOY.TRINIUM_REINFORCED_STEEL.getPlateDouble(4 * 1),
+ ItemUtils.getSimpleStack((CI.machineHull_LuV), 1 * 1), },
+ ALLOY.MARAGING350.getFluidStack(144 * 16 * 1),
+ GregtechItemList.Casing_BedrockMiner.get(1),
+ (int) GT_Values.V[4],
+ (int) GT_Values.V[6]);
int aCostMultiplier = 1;
// Reservoir Hatch
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { ItemList.Hatch_Input_EV.get(1),
- GT_ModHandler.getModItem(RemoteIO.ID, "tile.machine", 1), ItemList.Electric_Pump_EV.get(1) },
- GT_Values.NF,
- GregtechItemList.Hatch_Reservoir.get(1),
- 100,
- 1920);
+ new ItemStack[] { ItemList.Hatch_Input_EV.get(1), GT_ModHandler.getModItem(RemoteIO.ID, "tile.machine", 1),
+ ItemList.Electric_Pump_EV.get(1) },
+ GT_Values.NF,
+ GregtechItemList.Hatch_Reservoir.get(1),
+ 100,
+ 1920);
// Mystic Frame
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { GregtechItemList.Casing_Multi_Use.get(1),
- ItemList.Field_Generator_MV.get(1, CI.circuitTier7),
- ItemList.Field_Generator_HV.get(1, CI.circuitTier7),
- ItemList.Emitter_HV.get(1, CI.circuitTier7), ItemList.Sensor_HV.get(1, CI.circuitTier7),
- CI.getTieredComponent(OrePrefixes.plate, 7, 8 * aCostMultiplier),
- CI.getTieredComponent(OrePrefixes.wireGt08, 8, 4 * aCostMultiplier), },
- CI.getTieredFluid(6, (144 * 8)), // Input Fluid
- ItemUtils.getSimpleStack(Dimension_Everglades.blockPortalFrame, 2),
- 45 * 20 * 1 * (6),
- MaterialUtils.getVoltageForTier(6));
+ new ItemStack[] { GregtechItemList.Casing_Multi_Use.get(1),
+ ItemList.Field_Generator_MV.get(1, CI.circuitTier7),
+ ItemList.Field_Generator_HV.get(1, CI.circuitTier7), ItemList.Emitter_HV.get(1, CI.circuitTier7),
+ ItemList.Sensor_HV.get(1, CI.circuitTier7),
+ CI.getTieredComponent(OrePrefixes.plate, 7, 8 * aCostMultiplier),
+ CI.getTieredComponent(OrePrefixes.wireGt08, 8, 4 * aCostMultiplier), },
+ CI.getTieredFluid(6, (144 * 8)), // Input Fluid
+ ItemUtils.getSimpleStack(Dimension_Everglades.blockPortalFrame, 2),
+ 45 * 20 * 1 * (6),
+ MaterialUtils.getVoltageForTier(6));
// Player Doors
ItemStack[] aDoorInputs = new ItemStack[] { ItemUtils.getSimpleStack(Blocks.log2),
- ItemUtils.getSimpleStack(Blocks.iron_block), ItemUtils.getSimpleStack(Blocks.glass),
- ItemUtils.getSimpleStack(Blocks.packed_ice), ItemUtils.getSimpleStack(Blocks.cactus), };
+ ItemUtils.getSimpleStack(Blocks.iron_block), ItemUtils.getSimpleStack(Blocks.glass),
+ ItemUtils.getSimpleStack(Blocks.packed_ice), ItemUtils.getSimpleStack(Blocks.cactus), };
ItemStack[] aDoorOutputs = new ItemStack[] { ItemUtils.getSimpleStack(ModBlocks.blockPlayerDoorWooden),
- ItemUtils.getSimpleStack(ModBlocks.blockPlayerDoorIron),
- ItemUtils.getSimpleStack(ModBlocks.blockPlayerDoorCustom_Glass),
- ItemUtils.getSimpleStack(ModBlocks.blockPlayerDoorCustom_Ice),
- ItemUtils.getSimpleStack(ModBlocks.blockPlayerDoorCustom_Cactus), };
+ ItemUtils.getSimpleStack(ModBlocks.blockPlayerDoorIron),
+ ItemUtils.getSimpleStack(ModBlocks.blockPlayerDoorCustom_Glass),
+ ItemUtils.getSimpleStack(ModBlocks.blockPlayerDoorCustom_Ice),
+ ItemUtils.getSimpleStack(ModBlocks.blockPlayerDoorCustom_Cactus), };
for (int y = 0; y < aDoorInputs.length; y++) {
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { ItemUtils.getSimpleStack(Items.iron_door), aDoorInputs[y],
- ItemList.Sensor_LV.get(1, CI.circuitTier7),
- CI.getTieredComponent(OrePrefixes.plate, 1, 2 * aCostMultiplier),
- CI.getTieredComponent(OrePrefixes.wireGt02, 1, 2 * aCostMultiplier),
- ItemUtils.getSimpleStack(Items.redstone, 16) },
- CI.getTieredFluid(1, (144 * 2)), // Input Fluid
- aDoorOutputs[y],
- 100,
- MaterialUtils.getVoltageForTier(1));
+ new ItemStack[] { ItemUtils.getSimpleStack(Items.iron_door), aDoorInputs[y],
+ ItemList.Sensor_LV.get(1, CI.circuitTier7),
+ CI.getTieredComponent(OrePrefixes.plate, 1, 2 * aCostMultiplier),
+ CI.getTieredComponent(OrePrefixes.wireGt02, 1, 2 * aCostMultiplier),
+ ItemUtils.getSimpleStack(Items.redstone, 16) },
+ CI.getTieredFluid(1, (144 * 2)), // Input Fluid
+ aDoorOutputs[y],
+ 100,
+ MaterialUtils.getVoltageForTier(1));
}
Logger.INFO("Done loading recipes for the Various machine blocks.");
@@ -2572,20 +2553,20 @@ public class RECIPES_Machines {
private static void energyCores() {
ItemStack[] aBufferOutput = new ItemStack[] { RECIPE_Buffer_ULV, RECIPE_Buffer_LV, RECIPE_Buffer_MV,
- RECIPE_Buffer_HV, RECIPE_Buffer_EV, RECIPE_Buffer_IV, RECIPE_Buffer_LuV, RECIPE_Buffer_ZPM,
- RECIPE_Buffer_UV, RECIPE_Buffer_MAX };
+ RECIPE_Buffer_HV, RECIPE_Buffer_EV, RECIPE_Buffer_IV, RECIPE_Buffer_LuV, RECIPE_Buffer_ZPM,
+ RECIPE_Buffer_UV, RECIPE_Buffer_MAX };
ItemStack[] aOutput = new ItemStack[] {
- ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "1", 1),
- ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "2", 1),
- ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "3", 1),
- ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "4", 1),
- ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "5", 1),
- ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "6", 1),
- ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "7", 1),
- ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "8", 1),
- ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "9", 1),
- ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "10", 1) };
+ ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "1", 1),
+ ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "2", 1),
+ ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "3", 1),
+ ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "4", 1),
+ ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "5", 1),
+ ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "6", 1),
+ ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "7", 1),
+ ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "8", 1),
+ ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "9", 1),
+ ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "10", 1) };
for (int i = 0; i < 10; i++) {
@@ -2593,100 +2574,96 @@ public class RECIPES_Machines {
aPrevTier.stackSize = 1;
int aTier = (i + 1);
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { aPrevTier, CI.getTieredComponent(OrePrefixes.plate, aTier, 4),
- CI.getTieredComponent(OrePrefixes.cableGt04, i, 2),
- CI.getTieredComponent(OrePrefixes.circuit, aTier, 2),
- CI.getTieredComponent(OrePrefixes.screw, aTier, 6),
- CI.getTieredComponent(OrePrefixes.bolt, i, 12), },
- CI.getTieredFluid(i, (144 * 4 * aTier)), // Input Fluid
- aOutput[i],
- 45 * 10 * 1 * (aTier),
- MaterialUtils.getVoltageForTier(i));
+ new ItemStack[] { aPrevTier, CI.getTieredComponent(OrePrefixes.plate, aTier, 4),
+ CI.getTieredComponent(OrePrefixes.cableGt04, i, 2),
+ CI.getTieredComponent(OrePrefixes.circuit, aTier, 2),
+ CI.getTieredComponent(OrePrefixes.screw, aTier, 6),
+ CI.getTieredComponent(OrePrefixes.bolt, i, 12), },
+ CI.getTieredFluid(i, (144 * 4 * aTier)), // Input Fluid
+ aOutput[i],
+ 45 * 10 * 1 * (aTier),
+ MaterialUtils.getVoltageForTier(i));
// Energy Buffer
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { ItemUtils.getSimpleStack(aOutput[i], 4),
- CI.getTieredComponent(OrePrefixes.plate, aTier, 8),
- CI.getTieredComponent(OrePrefixes.wireGt08, i, 4),
- CI.getTieredComponent(OrePrefixes.circuit, i, 4),
- CI.getTieredComponent(OrePrefixes.stickLong, aTier, 4),
- CI.getTieredComponent(OrePrefixes.gearGt, i, 5), },
- CI.getTieredFluid(aTier, (144 * 16 * aTier)), // Input Fluid
- aBufferOutput[i],
- 45 * 20 * 1 * (aTier),
- MaterialUtils.getVoltageForTier(i));
+ new ItemStack[] { ItemUtils.getSimpleStack(aOutput[i], 4),
+ CI.getTieredComponent(OrePrefixes.plate, aTier, 8),
+ CI.getTieredComponent(OrePrefixes.wireGt08, i, 4), CI.getTieredComponent(OrePrefixes.circuit, i, 4),
+ CI.getTieredComponent(OrePrefixes.stickLong, aTier, 4),
+ CI.getTieredComponent(OrePrefixes.gearGt, i, 5), },
+ CI.getTieredFluid(aTier, (144 * 16 * aTier)), // Input Fluid
+ aBufferOutput[i],
+ 45 * 20 * 1 * (aTier),
+ MaterialUtils.getVoltageForTier(i));
}
}
private static void wirelessChargers() {
ItemStack[] aChargers = new ItemStack[] { GregtechItemList.Charger_LV.get(1),
- GregtechItemList.Charger_MV.get(1), GregtechItemList.Charger_HV.get(1),
- GregtechItemList.Charger_EV.get(1), GregtechItemList.Charger_IV.get(1),
- GregtechItemList.Charger_LuV.get(1), GregtechItemList.Charger_ZPM.get(1),
- GregtechItemList.Charger_UV.get(1), GregtechItemList.Charger_UHV.get(1) };
+ GregtechItemList.Charger_MV.get(1), GregtechItemList.Charger_HV.get(1), GregtechItemList.Charger_EV.get(1),
+ GregtechItemList.Charger_IV.get(1), GregtechItemList.Charger_LuV.get(1),
+ GregtechItemList.Charger_ZPM.get(1), GregtechItemList.Charger_UV.get(1),
+ GregtechItemList.Charger_UHV.get(1) };
for (int tier = 1; tier < aChargers.length + 1; tier++) {
ItemStack[] aInputs = new ItemStack[] { CI.getTieredMachineHull(tier, 1),
- CI.getTransmissionComponent(tier, 2), CI.getFieldGenerator(tier, 1),
- CI.getTieredComponent(OrePrefixes.plate, tier + 1, 4),
- CI.getTieredComponent(OrePrefixes.circuit, tier + 1, 2), };
+ CI.getTransmissionComponent(tier, 2), CI.getFieldGenerator(tier, 1),
+ CI.getTieredComponent(OrePrefixes.plate, tier + 1, 4),
+ CI.getTieredComponent(OrePrefixes.circuit, tier + 1, 2), };
CORE.RA.addSixSlotAssemblingRecipe(
- aInputs,
- CI.getAlternativeTieredFluid(tier, (144 * 2 * (tier + 1))), // Input Fluid
- aChargers[tier - 1],
- 45 * 10 * (tier + 1),
- MaterialUtils.getVoltageForTier(tier));
+ aInputs,
+ CI.getAlternativeTieredFluid(tier, (144 * 2 * (tier + 1))), // Input Fluid
+ aChargers[tier - 1],
+ 45 * 10 * (tier + 1),
+ MaterialUtils.getVoltageForTier(tier));
}
}
private static void largeArcFurnace() {
int aCostMultiplier = 1;
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { GregtechItemList.Casing_Multi_Use.get(aCostMultiplier),
- CI.getTransmissionComponent(2, 2 * aCostMultiplier),
- CI.getElectricPiston(4, 2 * aCostMultiplier),
- CI.getTieredComponent(OrePrefixes.plate, 5, 4 * aCostMultiplier),
- CI.getTieredComponent(OrePrefixes.pipeSmall, 4, 1 * aCostMultiplier), },
- CI.getAlternativeTieredFluid(5, (144 * 2 * 4)), // Input Fluid
- GregtechItemList.Casing_Industrial_Arc_Furnace.get(1),
- 20 * 10 * 1 * (6),
- MaterialUtils.getVoltageForTier(5));
+ new ItemStack[] { GregtechItemList.Casing_Multi_Use.get(aCostMultiplier),
+ CI.getTransmissionComponent(2, 2 * aCostMultiplier), CI.getElectricPiston(4, 2 * aCostMultiplier),
+ CI.getTieredComponent(OrePrefixes.plate, 5, 4 * aCostMultiplier),
+ CI.getTieredComponent(OrePrefixes.pipeSmall, 4, 1 * aCostMultiplier), },
+ CI.getAlternativeTieredFluid(5, (144 * 2 * 4)), // Input Fluid
+ GregtechItemList.Casing_Industrial_Arc_Furnace.get(1),
+ 20 * 10 * 1 * (6),
+ MaterialUtils.getVoltageForTier(5));
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { GregtechItemList.Casing_Industrial_Arc_Furnace.get(1),
- CI.getFieldGenerator(4, 2 * aCostMultiplier), CI.getRobotArm(5, 4 * aCostMultiplier),
- CI.getEnergyCore(4, 2 * aCostMultiplier),
- CI.getTieredComponent(OrePrefixes.plate, 6, 8 * aCostMultiplier),
- CI.getTieredComponent(OrePrefixes.circuit, 5, 8 * aCostMultiplier), },
- CI.getAlternativeTieredFluid(6, (144 * 4 * 5)), // Input Fluid
- GregtechItemList.Industrial_Arc_Furnace.get(1),
- 60 * 20 * 8,
- MaterialUtils.getVoltageForTier(6));
+ new ItemStack[] { GregtechItemList.Casing_Industrial_Arc_Furnace.get(1),
+ CI.getFieldGenerator(4, 2 * aCostMultiplier), CI.getRobotArm(5, 4 * aCostMultiplier),
+ CI.getEnergyCore(4, 2 * aCostMultiplier),
+ CI.getTieredComponent(OrePrefixes.plate, 6, 8 * aCostMultiplier),
+ CI.getTieredComponent(OrePrefixes.circuit, 5, 8 * aCostMultiplier), },
+ CI.getAlternativeTieredFluid(6, (144 * 4 * 5)), // Input Fluid
+ GregtechItemList.Industrial_Arc_Furnace.get(1),
+ 60 * 20 * 8,
+ MaterialUtils.getVoltageForTier(6));
}
private static void industrialVacuumFurnace() {
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { GregtechItemList.Casing_Multi_Use.get(1), CI.getHeatCoil(2),
- CI.getElectricPiston(3, 2), CI.getTieredComponent(OrePrefixes.plate, 6, 4),
- CI.getTieredComponent(OrePrefixes.gearGt, 6, 2), },
- CI.getTertiaryTieredFluid(5, (144 * 2 * 4)), // Input Fluid
- GregtechItemList.Casing_Vacuum_Furnace.get(1),
- 20 * 10 * 6,
- MaterialUtils.getVoltageForTier(6));
+ new ItemStack[] { GregtechItemList.Casing_Multi_Use.get(1), CI.getHeatCoil(2), CI.getElectricPiston(3, 2),
+ CI.getTieredComponent(OrePrefixes.plate, 6, 4), CI.getTieredComponent(OrePrefixes.gearGt, 6, 2), },
+ CI.getTertiaryTieredFluid(5, (144 * 2 * 4)), // Input Fluid
+ GregtechItemList.Casing_Vacuum_Furnace.get(1),
+ 20 * 10 * 6,
+ MaterialUtils.getVoltageForTier(6));
;
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { GregtechItemList.Casing_Vacuum_Furnace.get(1),
- CI.getTieredComponent(OrePrefixes.wireGt16, 7, 4), CI.getEnergyCore(5, 1), CI.getRobotArm(4, 4),
- CI.getTieredComponent(OrePrefixes.plate, 6, 8),
- CI.getTieredComponent(OrePrefixes.circuit, 6, 8), },
- CI.getTieredFluid(6, (144 * 4 * 5)), // Input Fluid
- GregtechItemList.Controller_Vacuum_Furnace.get(1),
- 60 * 20 * 12,
- MaterialUtils.getVoltageForTier(6));
+ new ItemStack[] { GregtechItemList.Casing_Vacuum_Furnace.get(1),
+ CI.getTieredComponent(OrePrefixes.wireGt16, 7, 4), CI.getEnergyCore(5, 1), CI.getRobotArm(4, 4),
+ CI.getTieredComponent(OrePrefixes.plate, 6, 8), CI.getTieredComponent(OrePrefixes.circuit, 6, 8), },
+ CI.getTieredFluid(6, (144 * 4 * 5)), // Input Fluid
+ GregtechItemList.Controller_Vacuum_Furnace.get(1),
+ 60 * 20 * 12,
+ MaterialUtils.getVoltageForTier(6));
}
private static void milling() {
@@ -2699,183 +2676,181 @@ public class RECIPES_Machines {
// Isa Mill Controller
CORE.RA.addAssemblylineRecipe(
- ItemList.Machine_IV_Macerator.get(1),
- 20 * 60 * 20,
- new Object[] { GregtechItemList.Casing_IsaMill_Gearbox.get(4), CI.getTieredGTPPMachineCasing(6, 4),
- ItemList.Component_Grinder_Tungsten.get(16),
- new Object[] { CI.getTieredCircuitOreDictName(6), 8 }, ALLOY.INCONEL_625.getGear(8),
- ALLOY.INCONEL_625.getPlate(32), ALLOY.ZERON_100.getPlateDouble(8),
- ALLOY.ZERON_100.getPlateDouble(8), ALLOY.ZERON_100.getScrew(64),
- CI.getTieredComponentOfMaterial(Materials.NiobiumTitanium, OrePrefixes.wireFine, 32),
- CI.getTieredComponentOfMaterial(Materials.NiobiumTitanium, OrePrefixes.wireFine, 32),
- CI.getTieredComponentOfMaterial(Materials.Titanium, OrePrefixes.foil, 16),
- CI.getTieredComponentOfMaterial(Materials.Titanium, OrePrefixes.foil, 16), },
- new FluidStack[] { CI.getTieredFluid(6, 16 * 144), CI.getAlternativeTieredFluid(6, 32 * 144),
- CI.getTertiaryTieredFluid(6, 32 * 144) },
- GregtechItemList.Controller_IsaMill.get(1),
- 20 * 60 * 10,
- MaterialUtils.getVoltageForTier(6));
+ ItemList.Machine_IV_Macerator.get(1),
+ 20 * 60 * 20,
+ new Object[] { GregtechItemList.Casing_IsaMill_Gearbox.get(4), CI.getTieredGTPPMachineCasing(6, 4),
+ ItemList.Component_Grinder_Tungsten.get(16), new Object[] { CI.getTieredCircuitOreDictName(6), 8 },
+ ALLOY.INCONEL_625.getGear(8), ALLOY.INCONEL_625.getPlate(32), ALLOY.ZERON_100.getPlateDouble(8),
+ ALLOY.ZERON_100.getPlateDouble(8), ALLOY.ZERON_100.getScrew(64),
+ CI.getTieredComponentOfMaterial(Materials.NiobiumTitanium, OrePrefixes.wireFine, 32),
+ CI.getTieredComponentOfMaterial(Materials.NiobiumTitanium, OrePrefixes.wireFine, 32),
+ CI.getTieredComponentOfMaterial(Materials.Titanium, OrePrefixes.foil, 16),
+ CI.getTieredComponentOfMaterial(Materials.Titanium, OrePrefixes.foil, 16), },
+ new FluidStack[] { CI.getTieredFluid(6, 16 * 144), CI.getAlternativeTieredFluid(6, 32 * 144),
+ CI.getTertiaryTieredFluid(6, 32 * 144) },
+ GregtechItemList.Controller_IsaMill.get(1),
+ 20 * 60 * 10,
+ MaterialUtils.getVoltageForTier(6));
// Isa Mill Gearbox
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(7), ItemList.Casing_Gearbox_Titanium.get(2),
- ALLOY.INCONEL_625.getGear(4),
- CI.getTieredComponentOfMaterial(Materials.HSSE, OrePrefixes.gearGtSmall, 8),
- ALLOY.INCONEL_625.getPlate(16), ALLOY.ZERON_100.getBolt(16), },
- ALLOY.TUNGSTENSTEEL.getFluidStack(8 * 144),
- GregtechItemList.Casing_IsaMill_Gearbox.get(1),
- 60 * 20 * 2,
- MaterialUtils.getVoltageForTier(6));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(7), ItemList.Casing_Gearbox_Titanium.get(2),
+ ALLOY.INCONEL_625.getGear(4),
+ CI.getTieredComponentOfMaterial(Materials.HSSE, OrePrefixes.gearGtSmall, 8),
+ ALLOY.INCONEL_625.getPlate(16), ALLOY.ZERON_100.getBolt(16), },
+ ALLOY.TUNGSTENSTEEL.getFluidStack(8 * 144),
+ GregtechItemList.Casing_IsaMill_Gearbox.get(1),
+ 60 * 20 * 2,
+ MaterialUtils.getVoltageForTier(6));
// Isa Mill Casing
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(7), CI.getTieredGTPPMachineCasing(5, 1),
- ALLOY.INCONEL_625.getPlate(8), ALLOY.ZERON_100.getRod(4),
- CI.getTieredComponentOfMaterial(Materials.HSSG, OrePrefixes.gearGtSmall, 4),
- ALLOY.ZERON_100.getScrew(8), },
- ELEMENT.getInstance().TITANIUM.getFluidStack(4 * 144),
- GregtechItemList.Casing_IsaMill_Casing.get(1),
- 60 * 20 * 2,
- MaterialUtils.getVoltageForTier(6));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(7), CI.getTieredGTPPMachineCasing(5, 1),
+ ALLOY.INCONEL_625.getPlate(8), ALLOY.ZERON_100.getRod(4),
+ CI.getTieredComponentOfMaterial(Materials.HSSG, OrePrefixes.gearGtSmall, 4),
+ ALLOY.ZERON_100.getScrew(8), },
+ ELEMENT.getInstance().TITANIUM.getFluidStack(4 * 144),
+ GregtechItemList.Casing_IsaMill_Casing.get(1),
+ 60 * 20 * 2,
+ MaterialUtils.getVoltageForTier(6));
// Isa Mill Pipe
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(7), CI.getTieredGTPPMachineCasing(4, 2),
- ALLOY.INCONEL_625.getPlateDouble(4), ALLOY.INCOLOY_MA956.getRing(8),
- CI.getTieredComponentOfMaterial(Materials.HSSE, OrePrefixes.plate, 8),
- ALLOY.INCOLOY_MA956.getBolt(16), },
- ELEMENT.getInstance().ALUMINIUM.getFluidStack(8 * 144),
- GregtechItemList.Casing_IsaMill_Pipe.get(1),
- 60 * 20 * 8,
- MaterialUtils.getVoltageForTier(4));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(7), CI.getTieredGTPPMachineCasing(4, 2),
+ ALLOY.INCONEL_625.getPlateDouble(4), ALLOY.INCOLOY_MA956.getRing(8),
+ CI.getTieredComponentOfMaterial(Materials.HSSE, OrePrefixes.plate, 8),
+ ALLOY.INCOLOY_MA956.getBolt(16), },
+ ELEMENT.getInstance().ALUMINIUM.getFluidStack(8 * 144),
+ GregtechItemList.Casing_IsaMill_Pipe.get(1),
+ 60 * 20 * 8,
+ MaterialUtils.getVoltageForTier(4));
// Flotation Cell Controller
CORE.RA.addAssemblylineRecipe(
- ItemList.Distillation_Tower.get(1),
- 20 * 60 * 20,
- new Object[] { GregtechItemList.Casing_Flotation_Cell.get(4), CI.getTieredGTPPMachineCasing(5, 4),
- ItemList.Machine_IV_Distillery.get(1), new Object[] { CI.getTieredCircuitOreDictName(6), 8 },
- ALLOY.STELLITE.getGear(8), ALLOY.STELLITE.getPlate(32), ALLOY.HASTELLOY_N.getPlateDouble(8),
- ALLOY.HASTELLOY_N.getPlateDouble(8), ALLOY.HASTELLOY_N.getScrew(64),
- CI.getTieredComponentOfMaterial(Materials.YttriumBariumCuprate, OrePrefixes.wireFine, 64),
- CI.getTieredComponentOfMaterial(Materials.YttriumBariumCuprate, OrePrefixes.wireFine, 64),
- CI.getTieredComponentOfMaterial(Materials.Platinum, OrePrefixes.foil, 32),
- CI.getTieredComponentOfMaterial(Materials.Platinum, OrePrefixes.foil, 32), },
- new FluidStack[] { CI.getTieredFluid(5, 16 * 144), CI.getAlternativeTieredFluid(4, 32 * 144),
- CI.getTertiaryTieredFluid(4, 32 * 144) },
- GregtechItemList.Controller_Flotation_Cell.get(1),
- 20 * 60 * 10,
- MaterialUtils.getVoltageForTier(6));
+ ItemList.Distillation_Tower.get(1),
+ 20 * 60 * 20,
+ new Object[] { GregtechItemList.Casing_Flotation_Cell.get(4), CI.getTieredGTPPMachineCasing(5, 4),
+ ItemList.Machine_IV_Distillery.get(1), new Object[] { CI.getTieredCircuitOreDictName(6), 8 },
+ ALLOY.STELLITE.getGear(8), ALLOY.STELLITE.getPlate(32), ALLOY.HASTELLOY_N.getPlateDouble(8),
+ ALLOY.HASTELLOY_N.getPlateDouble(8), ALLOY.HASTELLOY_N.getScrew(64),
+ CI.getTieredComponentOfMaterial(Materials.YttriumBariumCuprate, OrePrefixes.wireFine, 64),
+ CI.getTieredComponentOfMaterial(Materials.YttriumBariumCuprate, OrePrefixes.wireFine, 64),
+ CI.getTieredComponentOfMaterial(Materials.Platinum, OrePrefixes.foil, 32),
+ CI.getTieredComponentOfMaterial(Materials.Platinum, OrePrefixes.foil, 32), },
+ new FluidStack[] { CI.getTieredFluid(5, 16 * 144), CI.getAlternativeTieredFluid(4, 32 * 144),
+ CI.getTertiaryTieredFluid(4, 32 * 144) },
+ GregtechItemList.Controller_Flotation_Cell.get(1),
+ 20 * 60 * 10,
+ MaterialUtils.getVoltageForTier(6));
// Flotation Cell Casing
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(7), CI.getTieredGTPPMachineCasing(4, 1),
- ALLOY.AQUATIC_STEEL.getPlate(8), ALLOY.STELLITE.getRing(8),
- CI.getTieredComponentOfMaterial(Materials.HSSG, OrePrefixes.plateDouble, 4),
- ALLOY.HASTELLOY_N.getScrew(8), },
- ALLOY.STAINLESS_STEEL.getFluidStack(8 * 144),
- GregtechItemList.Casing_Flotation_Cell.get(1),
- 60 * 20 * 2,
- MaterialUtils.getVoltageForTier(6));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(7), CI.getTieredGTPPMachineCasing(4, 1),
+ ALLOY.AQUATIC_STEEL.getPlate(8), ALLOY.STELLITE.getRing(8),
+ CI.getTieredComponentOfMaterial(Materials.HSSG, OrePrefixes.plateDouble, 4),
+ ALLOY.HASTELLOY_N.getScrew(8), },
+ ALLOY.STAINLESS_STEEL.getFluidStack(8 * 144),
+ GregtechItemList.Casing_Flotation_Cell.get(1),
+ 60 * 20 * 2,
+ MaterialUtils.getVoltageForTier(6));
// Milling Bus
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(7), CI.getTieredGTPPMachineCasing(5, 1),
- ItemList.Hatch_Input_Bus_EV.get(1),
- CI.getTieredComponentOfMaterial(Materials.Titanium, OrePrefixes.gearGt, 8),
- CI.getTieredComponentOfMaterial(Materials.TungstenSteel, OrePrefixes.plate, 32),
- CI.getTieredComponentOfMaterial(Materials.SolderingAlloy, OrePrefixes.wireFine, 16), },
- ELEMENT.getInstance().TUNGSTEN.getFluidStack(8 * 144),
- GregtechItemList.Bus_Milling_Balls.get(1),
- 60 * 20 * 4,
- MaterialUtils.getVoltageForTier(5));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(7), CI.getTieredGTPPMachineCasing(5, 1),
+ ItemList.Hatch_Input_Bus_EV.get(1),
+ CI.getTieredComponentOfMaterial(Materials.Titanium, OrePrefixes.gearGt, 8),
+ CI.getTieredComponentOfMaterial(Materials.TungstenSteel, OrePrefixes.plate, 32),
+ CI.getTieredComponentOfMaterial(Materials.SolderingAlloy, OrePrefixes.wireFine, 16), },
+ ELEMENT.getInstance().TUNGSTEN.getFluidStack(8 * 144),
+ GregtechItemList.Bus_Milling_Balls.get(1),
+ 60 * 20 * 4,
+ MaterialUtils.getVoltageForTier(5));
}
private static void sparging() {
// Sparge Tower Research
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(8), ELEMENT.getInstance().HELIUM.getCell(8),
- ELEMENT.getInstance().FLUORINE.getCell(8), ALLOY.HS188A.getIngot(8),
- ItemList.Distillation_Tower.get(1) },
- null,
- ItemDummyResearch.getResearchStack(ASSEMBLY_LINE_RESEARCH.RESEARCH_10_SPARGING, 1),
- 60 * 20 * 5,
- MaterialUtils.getVoltageForTier(5));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(8), ELEMENT.getInstance().HELIUM.getCell(8),
+ ELEMENT.getInstance().FLUORINE.getCell(8), ALLOY.HS188A.getIngot(8),
+ ItemList.Distillation_Tower.get(1) },
+ null,
+ ItemDummyResearch.getResearchStack(ASSEMBLY_LINE_RESEARCH.RESEARCH_10_SPARGING, 1),
+ 60 * 20 * 5,
+ MaterialUtils.getVoltageForTier(5));
// Sparge Tower Controller
CORE.RA.addAssemblylineRecipe(
- ItemDummyResearch.getResearchStack(ASSEMBLY_LINE_RESEARCH.RESEARCH_10_SPARGING, 1),
- 20 * 60 * 20,
- new Object[] { GregtechItemList.Casing_Sparge_Tower_Exterior.get(4),
- CI.getTieredGTPPMachineCasing(4, 4), ItemList.Machine_IV_Distillery.get(1),
- new Object[] { CI.getTieredCircuitOreDictName(5), 8 }, ALLOY.HS188A.getGear(8),
- ALLOY.HS188A.getPlate(32), ALLOY.HASTELLOY_N.getPlateDouble(8),
- ALLOY.HASTELLOY_N.getPlateDouble(8), ALLOY.HASTELLOY_N.getScrew(64),
- CI.getTieredComponentOfMaterial(Materials.YttriumBariumCuprate, OrePrefixes.wireFine, 64),
- CI.getTieredComponentOfMaterial(Materials.YttriumBariumCuprate, OrePrefixes.wireFine, 64),
- CI.getTieredComponentOfMaterial(Materials.Platinum, OrePrefixes.foil, 32),
- CI.getTieredComponentOfMaterial(Materials.Platinum, OrePrefixes.foil, 32), },
- new FluidStack[] { CI.getTieredFluid(4, 16 * 144), CI.getAlternativeTieredFluid(3, 32 * 144),
- CI.getTertiaryTieredFluid(3, 32 * 144) },
- GregtechItemList.Controller_Sparge_Tower.get(1),
- 20 * 60 * 10,
- MaterialUtils.getVoltageForTier(6));
+ ItemDummyResearch.getResearchStack(ASSEMBLY_LINE_RESEARCH.RESEARCH_10_SPARGING, 1),
+ 20 * 60 * 20,
+ new Object[] { GregtechItemList.Casing_Sparge_Tower_Exterior.get(4), CI.getTieredGTPPMachineCasing(4, 4),
+ ItemList.Machine_IV_Distillery.get(1), new Object[] { CI.getTieredCircuitOreDictName(5), 8 },
+ ALLOY.HS188A.getGear(8), ALLOY.HS188A.getPlate(32), ALLOY.HASTELLOY_N.getPlateDouble(8),
+ ALLOY.HASTELLOY_N.getPlateDouble(8), ALLOY.HASTELLOY_N.getScrew(64),
+ CI.getTieredComponentOfMaterial(Materials.YttriumBariumCuprate, OrePrefixes.wireFine, 64),
+ CI.getTieredComponentOfMaterial(Materials.YttriumBariumCuprate, OrePrefixes.wireFine, 64),
+ CI.getTieredComponentOfMaterial(Materials.Platinum, OrePrefixes.foil, 32),
+ CI.getTieredComponentOfMaterial(Materials.Platinum, OrePrefixes.foil, 32), },
+ new FluidStack[] { CI.getTieredFluid(4, 16 * 144), CI.getAlternativeTieredFluid(3, 32 * 144),
+ CI.getTertiaryTieredFluid(3, 32 * 144) },
+ GregtechItemList.Controller_Sparge_Tower.get(1),
+ 20 * 60 * 10,
+ MaterialUtils.getVoltageForTier(6));
// Sparge Tower Casing
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(8), CI.getTieredGTPPMachineCasing(3, 1),
- ALLOY.HS188A.getPlate(2), ALLOY.HASTELLOY_N.getRing(4),
- CI.getTieredComponentOfMaterial(Materials.TungstenSteel, OrePrefixes.plateDouble, 4),
- ALLOY.HASTELLOY_N.getScrew(4), },
- ALLOY.STAINLESS_STEEL.getFluidStack(8 * 144),
- GregtechItemList.Casing_Sparge_Tower_Exterior.get(1),
- 60 * 20 * 2,
- MaterialUtils.getVoltageForTier(5));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(8), CI.getTieredGTPPMachineCasing(3, 1),
+ ALLOY.HS188A.getPlate(2), ALLOY.HASTELLOY_N.getRing(4),
+ CI.getTieredComponentOfMaterial(Materials.TungstenSteel, OrePrefixes.plateDouble, 4),
+ ALLOY.HASTELLOY_N.getScrew(4), },
+ ALLOY.STAINLESS_STEEL.getFluidStack(8 * 144),
+ GregtechItemList.Casing_Sparge_Tower_Exterior.get(1),
+ 60 * 20 * 2,
+ MaterialUtils.getVoltageForTier(5));
}
private static void chisels() {
ItemStack[] aChisels = new ItemStack[] { GregtechItemList.GT_Chisel_LV.get(1),
- GregtechItemList.GT_Chisel_MV.get(1), GregtechItemList.GT_Chisel_HV.get(1), };
+ GregtechItemList.GT_Chisel_MV.get(1), GregtechItemList.GT_Chisel_HV.get(1), };
for (int i = 1; i < 4; i++) {
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedBioCircuit(10 + i), CI.getTieredMachineCasing(i), CI.getPlate(i, 4),
- CI.getElectricMotor(i, 2), CI.getConveyor(i, 2), CI.getRobotArm(i, 1) },
- CI.getTieredFluid(i, 144 * 4),
- aChisels[i - 1],
- 20 * 20,
- MaterialUtils.getVoltageForTier(i));
+ new ItemStack[] { CI.getNumberedBioCircuit(10 + i), CI.getTieredMachineCasing(i), CI.getPlate(i, 4),
+ CI.getElectricMotor(i, 2), CI.getConveyor(i, 2), CI.getRobotArm(i, 1) },
+ CI.getTieredFluid(i, 144 * 4),
+ aChisels[i - 1],
+ 20 * 20,
+ MaterialUtils.getVoltageForTier(i));
}
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedBioCircuit(14), aChisels[2], CI.getPlate(4, 8),
- CI.getElectricMotor(4, 8), CI.getConveyor(4, 8), CI.getRobotArm(4, 4) },
- CI.getTieredFluid(4, 144 * 8),
- GregtechItemList.Controller_IndustrialAutoChisel.get(1),
- 20 * 20,
- MaterialUtils.getVoltageForTier(4));
+ new ItemStack[] { CI.getNumberedBioCircuit(14), aChisels[2], CI.getPlate(4, 8), CI.getElectricMotor(4, 8),
+ CI.getConveyor(4, 8), CI.getRobotArm(4, 4) },
+ CI.getTieredFluid(4, 144 * 8),
+ GregtechItemList.Controller_IndustrialAutoChisel.get(1),
+ 20 * 20,
+ MaterialUtils.getVoltageForTier(4));
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedBioCircuit(14), ItemList.Casing_SolidSteel.get(2), CI.getPlate(4, 2),
- CI.getTieredComponent(OrePrefixes.plate, 3, 4), CI.getTieredComponent(OrePrefixes.ring, 3, 8),
- CI.getTieredComponent(OrePrefixes.rod, 2, 4), },
- CI.getTieredFluid(2, 144 * 2),
- GregtechItemList.Casing_IndustrialAutoChisel.get(1),
- 20 * 20,
- MaterialUtils.getVoltageForTier(3));
+ new ItemStack[] { CI.getNumberedBioCircuit(14), ItemList.Casing_SolidSteel.get(2), CI.getPlate(4, 2),
+ CI.getTieredComponent(OrePrefixes.plate, 3, 4), CI.getTieredComponent(OrePrefixes.ring, 3, 8),
+ CI.getTieredComponent(OrePrefixes.rod, 2, 4), },
+ CI.getTieredFluid(2, 144 * 2),
+ GregtechItemList.Casing_IndustrialAutoChisel.get(1),
+ 20 * 20,
+ MaterialUtils.getVoltageForTier(3));
}
private static void rockBreaker() {
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(12), ItemList.Machine_EV_RockBreaker.get(1),
- ALLOY.STAINLESS_STEEL.getPlate(8), ALLOY.STAINLESS_STEEL.getRing(4),
- CI.getTieredComponentOfMaterial(Materials.Aluminium, OrePrefixes.plateDouble, 8),
- ALLOY.EGLIN_STEEL.getScrew(8), },
- ELEMENT.getInstance().ALUMINIUM.getFluidStack(144 * 8),
- GregtechItemList.Controller_IndustrialRockBreaker.get(1),
- 60 * 20 * 2,
- MaterialUtils.getVoltageForTier(4));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(12), ItemList.Machine_EV_RockBreaker.get(1),
+ ALLOY.STAINLESS_STEEL.getPlate(8), ALLOY.STAINLESS_STEEL.getRing(4),
+ CI.getTieredComponentOfMaterial(Materials.Aluminium, OrePrefixes.plateDouble, 8),
+ ALLOY.EGLIN_STEEL.getScrew(8), },
+ ELEMENT.getInstance().ALUMINIUM.getFluidStack(144 * 8),
+ GregtechItemList.Controller_IndustrialRockBreaker.get(1),
+ 60 * 20 * 2,
+ MaterialUtils.getVoltageForTier(4));
}
private static void fakeMachineCasingCovers() {
@@ -2887,100 +2862,99 @@ public class RECIPES_Machines {
// Add recipes for new ones
for (int i = 0; i < aMaxTier; i++) {
GT_Values.RA
- .addCutterRecipe(CI.getTieredMachineCasing(i), aTier[i], null, 20 * 5 * i, (int) GT_Values.V[i]);
+ .addCutterRecipe(CI.getTieredMachineCasing(i), aTier[i], null, 20 * 5 * i, (int) GT_Values.V[i]);
}
}
private static void superBuses() {
GregtechItemList[] mSuperBusesInput = new GregtechItemList[] { GregtechItemList.Hatch_SuperBus_Input_LV,
- GregtechItemList.Hatch_SuperBus_Input_MV, GregtechItemList.Hatch_SuperBus_Input_HV,
- GregtechItemList.Hatch_SuperBus_Input_EV, GregtechItemList.Hatch_SuperBus_Input_IV,
- GregtechItemList.Hatch_SuperBus_Input_LuV, GregtechItemList.Hatch_SuperBus_Input_ZPM,
- GregtechItemList.Hatch_SuperBus_Input_UV, GregtechItemList.Hatch_SuperBus_Input_MAX, };
+ GregtechItemList.Hatch_SuperBus_Input_MV, GregtechItemList.Hatch_SuperBus_Input_HV,
+ GregtechItemList.Hatch_SuperBus_Input_EV, GregtechItemList.Hatch_SuperBus_Input_IV,
+ GregtechItemList.Hatch_SuperBus_Input_LuV, GregtechItemList.Hatch_SuperBus_Input_ZPM,
+ GregtechItemList.Hatch_SuperBus_Input_UV, GregtechItemList.Hatch_SuperBus_Input_MAX, };
GregtechItemList[] mSuperBusesOutput = new GregtechItemList[] { GregtechItemList.Hatch_SuperBus_Output_LV,
- GregtechItemList.Hatch_SuperBus_Output_MV, GregtechItemList.Hatch_SuperBus_Output_HV,
- GregtechItemList.Hatch_SuperBus_Output_EV, GregtechItemList.Hatch_SuperBus_Output_IV,
- GregtechItemList.Hatch_SuperBus_Output_LuV, GregtechItemList.Hatch_SuperBus_Output_ZPM,
- GregtechItemList.Hatch_SuperBus_Output_UV, GregtechItemList.Hatch_SuperBus_Output_MAX, };
+ GregtechItemList.Hatch_SuperBus_Output_MV, GregtechItemList.Hatch_SuperBus_Output_HV,
+ GregtechItemList.Hatch_SuperBus_Output_EV, GregtechItemList.Hatch_SuperBus_Output_IV,
+ GregtechItemList.Hatch_SuperBus_Output_LuV, GregtechItemList.Hatch_SuperBus_Output_ZPM,
+ GregtechItemList.Hatch_SuperBus_Output_UV, GregtechItemList.Hatch_SuperBus_Output_MAX, };
ItemStack[] mInputHatch = new ItemStack[] { ItemList.Hatch_Input_Bus_EV.get(1),
- ItemList.Hatch_Input_Bus_IV.get(1), ItemList.Hatch_Input_Bus_LuV.get(1),
- ItemList.Hatch_Input_Bus_ZPM.get(1), ItemList.Hatch_Input_Bus_UV.get(1),
- ItemList.Hatch_Input_Bus_MAX.get(1), GregtechItemList.Hatch_SuperBus_Input_LV.get(1),
- GregtechItemList.Hatch_SuperBus_Input_MV.get(1), GregtechItemList.Hatch_SuperBus_Input_HV.get(1),
- GregtechItemList.Hatch_SuperBus_Input_EV.get(1), };
+ ItemList.Hatch_Input_Bus_IV.get(1), ItemList.Hatch_Input_Bus_LuV.get(1),
+ ItemList.Hatch_Input_Bus_ZPM.get(1), ItemList.Hatch_Input_Bus_UV.get(1),
+ ItemList.Hatch_Input_Bus_MAX.get(1), GregtechItemList.Hatch_SuperBus_Input_LV.get(1),
+ GregtechItemList.Hatch_SuperBus_Input_MV.get(1), GregtechItemList.Hatch_SuperBus_Input_HV.get(1),
+ GregtechItemList.Hatch_SuperBus_Input_EV.get(1), };
ItemStack[] mOutputHatch = new ItemStack[] { ItemList.Hatch_Output_Bus_EV.get(1),
- ItemList.Hatch_Output_Bus_IV.get(1), ItemList.Hatch_Output_Bus_LuV.get(1),
- ItemList.Hatch_Output_Bus_ZPM.get(1), ItemList.Hatch_Output_Bus_UV.get(1),
- ItemList.Hatch_Output_Bus_MAX.get(1), GregtechItemList.Hatch_SuperBus_Output_LV.get(1),
- GregtechItemList.Hatch_SuperBus_Output_MV.get(1), GregtechItemList.Hatch_SuperBus_Output_HV.get(1),
- GregtechItemList.Hatch_SuperBus_Output_EV.get(1), };
+ ItemList.Hatch_Output_Bus_IV.get(1), ItemList.Hatch_Output_Bus_LuV.get(1),
+ ItemList.Hatch_Output_Bus_ZPM.get(1), ItemList.Hatch_Output_Bus_UV.get(1),
+ ItemList.Hatch_Output_Bus_MAX.get(1), GregtechItemList.Hatch_SuperBus_Output_LV.get(1),
+ GregtechItemList.Hatch_SuperBus_Output_MV.get(1), GregtechItemList.Hatch_SuperBus_Output_HV.get(1),
+ GregtechItemList.Hatch_SuperBus_Output_EV.get(1), };
// Input Buses
for (int tier = 1; tier < mSuperBusesInput.length + 1; tier++) {
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedCircuit(17), mInputHatch[tier - 1], CI.getElectricMotor(tier, 2),
- CI.getConveyor(tier, 5), CI.getBolt(tier, 16),
- CI.getTieredComponent(OrePrefixes.circuit, tier, 2) },
- CI.getAlternativeTieredFluid(tier, 144 * 8),
- mSuperBusesInput[tier - 1].get(1),
- 20 * 30 * 2,
- (int) GT_Values.V[tier]);
+ new ItemStack[] { CI.getNumberedCircuit(17), mInputHatch[tier - 1], CI.getElectricMotor(tier, 2),
+ CI.getConveyor(tier, 5), CI.getBolt(tier, 16),
+ CI.getTieredComponent(OrePrefixes.circuit, tier, 2) },
+ CI.getAlternativeTieredFluid(tier, 144 * 8),
+ mSuperBusesInput[tier - 1].get(1),
+ 20 * 30 * 2,
+ (int) GT_Values.V[tier]);
}
// Output Buses
for (int tier = 1; tier < mSuperBusesOutput.length + 1; tier++) {
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedCircuit(18), mOutputHatch[tier - 1], CI.getElectricPiston(tier, 2),
- CI.getConveyor(tier, 5), CI.getGear(tier, 3),
- CI.getTieredComponent(OrePrefixes.circuit, tier, 2) },
- CI.getTertiaryTieredFluid(tier, 144 * 8),
- mSuperBusesOutput[tier - 1].get(1),
- 20 * 30 * 2,
- (int) GT_Values.V[tier]);
+ new ItemStack[] { CI.getNumberedCircuit(18), mOutputHatch[tier - 1], CI.getElectricPiston(tier, 2),
+ CI.getConveyor(tier, 5), CI.getGear(tier, 3), CI.getTieredComponent(OrePrefixes.circuit, tier, 2) },
+ CI.getTertiaryTieredFluid(tier, 144 * 8),
+ mSuperBusesOutput[tier - 1].get(1),
+ 20 * 30 * 2,
+ (int) GT_Values.V[tier]);
}
}
private static void chiselBuses() {
ItemStack[] mSuperBusesInput = new ItemStack[] { GregtechItemList.Hatch_SuperBus_Input_LV.get(1),
- GregtechItemList.Hatch_SuperBus_Input_MV.get(1), GregtechItemList.Hatch_SuperBus_Input_HV.get(1), };
+ GregtechItemList.Hatch_SuperBus_Input_MV.get(1), GregtechItemList.Hatch_SuperBus_Input_HV.get(1), };
ItemStack[] mChiselBuses = new ItemStack[] { GregtechItemList.GT_MetaTileEntity_ChiselBus_LV.get(1),
- GregtechItemList.GT_MetaTileEntity_ChiselBus_MV.get(1),
- GregtechItemList.GT_MetaTileEntity_ChiselBus_HV.get(1), };
+ GregtechItemList.GT_MetaTileEntity_ChiselBus_MV.get(1),
+ GregtechItemList.GT_MetaTileEntity_ChiselBus_HV.get(1), };
for (int tier = 1; tier < mChiselBuses.length + 1; tier++) {
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedCircuit(17), mSuperBusesInput[tier - 1], CI.getSensor(tier, 1),
- CI.getRobotArm(tier, 2), CI.getBolt(tier, 16), ItemUtils.getSimpleStack(Blocks.chest) },
- CI.getAlternativeTieredFluid(tier, 144 * 2),
- mChiselBuses[tier - 1],
- 20 * 30 * 2,
- (int) GT_Values.VP[tier + 1]);
+ new ItemStack[] { CI.getNumberedCircuit(17), mSuperBusesInput[tier - 1], CI.getSensor(tier, 1),
+ CI.getRobotArm(tier, 2), CI.getBolt(tier, 16), ItemUtils.getSimpleStack(Blocks.chest) },
+ CI.getAlternativeTieredFluid(tier, 144 * 2),
+ mChiselBuses[tier - 1],
+ 20 * 30 * 2,
+ (int) GT_Values.VP[tier + 1]);
}
}
private static void solidifierHatches() {
ItemStack[] mSuperBusesInput = new ItemStack[] { ItemList.Hatch_Input_IV.get(1),
- ItemList.Hatch_Input_LuV.get(1), ItemList.Hatch_Input_ZPM.get(1), ItemList.Hatch_Input_UV.get(1), };
+ ItemList.Hatch_Input_LuV.get(1), ItemList.Hatch_Input_ZPM.get(1), ItemList.Hatch_Input_UV.get(1), };
ItemStack[] mSolidifierHatches = new ItemStack[] { GregtechItemList.GT_MetaTileEntity_Solidifier_I.get(1),
- GregtechItemList.GT_MetaTileEntity_Solidifier_II.get(1),
- GregtechItemList.GT_MetaTileEntity_Solidifier_III.get(1),
- GregtechItemList.GT_MetaTileEntity_Solidifier_IV.get(1), };
+ GregtechItemList.GT_MetaTileEntity_Solidifier_II.get(1),
+ GregtechItemList.GT_MetaTileEntity_Solidifier_III.get(1),
+ GregtechItemList.GT_MetaTileEntity_Solidifier_IV.get(1), };
for (int i = 0; i < 4; i++) {
int componentTier = i + 5;
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedCircuit(17), mSuperBusesInput[i], CI.getSensor(componentTier, 1),
- CI.getFluidRegulator(componentTier, 1),
- CI.getTieredComponent(OrePrefixes.circuit, componentTier + 1, 4),
- ItemUtils.getSimpleStack(Blocks.chest) },
- CI.getTieredFluid(componentTier, 144 * 2),
- mSolidifierHatches[i],
- 20 * 30,
- (int) GT_Values.VP[componentTier]);
+ new ItemStack[] { CI.getNumberedCircuit(17), mSuperBusesInput[i], CI.getSensor(componentTier, 1),
+ CI.getFluidRegulator(componentTier, 1),
+ CI.getTieredComponent(OrePrefixes.circuit, componentTier + 1, 4),
+ ItemUtils.getSimpleStack(Blocks.chest) },
+ CI.getTieredFluid(componentTier, 144 * 2),
+ mSolidifierHatches[i],
+ 20 * 30,
+ (int) GT_Values.VP[componentTier]);
}
}
}
diff --git a/src/main/java/gtPlusPlus/core/recipe/RECIPES_RareEarthProcessing.java b/src/main/java/gtPlusPlus/core/recipe/RECIPES_RareEarthProcessing.java
index ace004653a..0cf0152c53 100644
--- a/src/main/java/gtPlusPlus/core/recipe/RECIPES_RareEarthProcessing.java
+++ b/src/main/java/gtPlusPlus/core/recipe/RECIPES_RareEarthProcessing.java
@@ -55,32 +55,45 @@ public class RECIPES_RareEarthProcessing {
}
// Add Process for creating Brine
- GT_Values.RA.stdBuilder().itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Salt, 16L))
- .fluidInputs(Materials.SaltWater.getFluid(2000L)).fluidOutputs(FluidUtils.getFluidStack(mBrine, 4000))
- .duration(20 * SECONDS).eut(TierEU.RECIPE_MV).addTo(brewingRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Salt, 16L))
+ .fluidInputs(Materials.SaltWater.getFluid(2000L))
+ .fluidOutputs(FluidUtils.getFluidStack(mBrine, 4000))
+ .duration(20 * SECONDS)
+ .eut(TierEU.RECIPE_MV)
+ .addTo(brewingRecipes);
// Chloralkali process
- GT_Values.RA.stdBuilder().itemInputs(GT_Utility.getIntegratedCircuit(1), ItemList.Cell_Empty.get(2L))
- .itemOutputs(
- GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Chlorine, 1L),
- GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 1L),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SodiumHydroxide, 1L))
- .fluidInputs(FluidUtils.getFluidStack(mBrine, 2000)).duration(30 * SECONDS).eut(TierEU.RECIPE_MV)
- .addTo(electrolyzerRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(GT_Utility.getIntegratedCircuit(1), ItemList.Cell_Empty.get(2L))
+ .itemOutputs(
+ GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Chlorine, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SodiumHydroxide, 1L))
+ .fluidInputs(FluidUtils.getFluidStack(mBrine, 2000))
+ .duration(30 * SECONDS)
+ .eut(TierEU.RECIPE_MV)
+ .addTo(electrolyzerRecipes);
// Generate Special Laser Recipe
GT_Values.RA.stdBuilder()
- .itemInputs(
- GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Chlorine, 1L),
- GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 1L),
- CI.getNumberedBioCircuit(2))
- .itemOutputs(ItemUtils.getSimpleStack(ModItems.cellHydrogenChlorideMix, 2)).duration(10 * SECONDS)
- .eut(TierEU.RECIPE_HV).addTo(mixerRecipes);
-
- GT_Values.RA.stdBuilder().itemInputs(GregtechItemList.Laser_Lens_WoodsGlass.get(0))
- .fluidInputs(HYDROGEN_CHLORIDE_MIX.getFluidStack(4000))
- .fluidOutputs(HYDROGEN_CHLORIDE.getFluidStack(4000)).duration(30 * SECONDS).eut(TierEU.RECIPE_HV)
- .noOptimize().addTo(laserEngraverRecipes);
+ .itemInputs(
+ GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Chlorine, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 1L),
+ CI.getNumberedBioCircuit(2))
+ .itemOutputs(ItemUtils.getSimpleStack(ModItems.cellHydrogenChlorideMix, 2))
+ .duration(10 * SECONDS)
+ .eut(TierEU.RECIPE_HV)
+ .addTo(mixerRecipes);
+
+ GT_Values.RA.stdBuilder()
+ .itemInputs(GregtechItemList.Laser_Lens_WoodsGlass.get(0))
+ .fluidInputs(HYDROGEN_CHLORIDE_MIX.getFluidStack(4000))
+ .fluidOutputs(HYDROGEN_CHLORIDE.getFluidStack(4000))
+ .duration(30 * SECONDS)
+ .eut(TierEU.RECIPE_HV)
+ .noOptimize()
+ .addTo(laserEngraverRecipes);
// Set Material Tiers correctly
ORES.GREENOCKITE.vTier = 1;
@@ -110,36 +123,46 @@ public class RECIPES_RareEarthProcessing {
MaterialGenerator.generateOreMaterial(RARE_EARTH_HIGH);
// industrial strength HCl
- Fluid aHydrochloric = FluidUtils.getFluidStack("hydrogenchloride", 1).getFluid();
+ Fluid aHydrochloric = FluidUtils.getFluidStack("hydrogenchloride", 1)
+ .getFluid();
// LV Rare Earth
- GT_Values.RA.stdBuilder().itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RareEarth, 3L))
- .itemOutputs(RARE_EARTH_LOW.getCrushed(2), RARE_EARTH_LOW.getCrushed(2), RARE_EARTH_LOW.getCrushed(2))
- .fluidInputs(Materials.SulfuricAcid.getFluid(1000L)).duration(30 * SECONDS).eut(TierEU.RECIPE_LV)
- .addTo(chemicalBathRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RareEarth, 3L))
+ .itemOutputs(RARE_EARTH_LOW.getCrushed(2), RARE_EARTH_LOW.getCrushed(2), RARE_EARTH_LOW.getCrushed(2))
+ .fluidInputs(Materials.SulfuricAcid.getFluid(1000L))
+ .duration(30 * SECONDS)
+ .eut(TierEU.RECIPE_LV)
+ .addTo(chemicalBathRecipes);
// HV Rare Earth
- GT_Values.RA.stdBuilder().itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RareEarth, 3L))
- .itemOutputs(RARE_EARTH_MID.getCrushed(2), RARE_EARTH_MID.getCrushed(2), RARE_EARTH_MID.getCrushed(2))
- .outputChances(10000, 9000, 8000).fluidInputs(FluidUtils.getFluidStack(aHydrochloric, 1000))
- .duration(15 * SECONDS).eut(TierEU.RECIPE_HV).addTo(chemicalBathRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RareEarth, 3L))
+ .itemOutputs(RARE_EARTH_MID.getCrushed(2), RARE_EARTH_MID.getCrushed(2), RARE_EARTH_MID.getCrushed(2))
+ .outputChances(10000, 9000, 8000)
+ .fluidInputs(FluidUtils.getFluidStack(aHydrochloric, 1000))
+ .duration(15 * SECONDS)
+ .eut(TierEU.RECIPE_HV)
+ .addTo(chemicalBathRecipes);
// IV Rare Earth
- GT_Values.RA.stdBuilder().itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RareEarth, 3L))
- .itemOutputs(
- RARE_EARTH_HIGH.getCrushed(2),
- RARE_EARTH_HIGH.getCrushed(2),
- RARE_EARTH_HIGH.getCrushed(2))
- .outputChances(10000, 9000, 8000).fluidInputs(FluidUtils.getHydrofluoricAcid(1000))
- .duration(10 * SECONDS).eut(TierEU.RECIPE_IV).addTo(chemicalBathRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RareEarth, 3L))
+ .itemOutputs(RARE_EARTH_HIGH.getCrushed(2), RARE_EARTH_HIGH.getCrushed(2), RARE_EARTH_HIGH.getCrushed(2))
+ .outputChances(10000, 9000, 8000)
+ .fluidInputs(FluidUtils.getHydrofluoricAcid(1000))
+ .duration(10 * SECONDS)
+ .eut(TierEU.RECIPE_IV)
+ .addTo(chemicalBathRecipes);
// IV Rare Earth
- GT_Values.RA.stdBuilder().itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RareEarth, 3L))
- .itemOutputs(
- RARE_EARTH_HIGH.getCrushed(2),
- RARE_EARTH_HIGH.getCrushed(2),
- RARE_EARTH_HIGH.getCrushed(2))
- .outputChances(9000, 8000, 7000).fluidInputs(Materials.HydrofluoricAcid.getFluid(2000L))
- .duration(10 * SECONDS).eut(TierEU.RECIPE_IV).addTo(chemicalBathRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RareEarth, 3L))
+ .itemOutputs(RARE_EARTH_HIGH.getCrushed(2), RARE_EARTH_HIGH.getCrushed(2), RARE_EARTH_HIGH.getCrushed(2))
+ .outputChances(9000, 8000, 7000)
+ .fluidInputs(Materials.HydrofluoricAcid.getFluid(2000L))
+ .duration(10 * SECONDS)
+ .eut(TierEU.RECIPE_IV)
+ .addTo(chemicalBathRecipes);
}
}
diff --git a/src/main/java/gtPlusPlus/core/recipe/RECIPES_SeleniumProcessing.java b/src/main/java/gtPlusPlus/core/recipe/RECIPES_SeleniumProcessing.java
index f08ded35c0..b7a7b43549 100644
--- a/src/main/java/gtPlusPlus/core/recipe/RECIPES_SeleniumProcessing.java
+++ b/src/main/java/gtPlusPlus/core/recipe/RECIPES_SeleniumProcessing.java
@@ -26,35 +26,34 @@ public class RECIPES_SeleniumProcessing {
// Liquify the Dried Dioxide
AddGregtechRecipe.addCokeAndPyrolyseRecipes(
- MISC_MATERIALS.SELENIUM_DIOXIDE.getDust(1),
- 13,
- FluidUtils.getSteam(500),
- null,
- MISC_MATERIALS.SELENIUM_DIOXIDE.getFluidStack(1000),
- 20,
- 1024);
+ MISC_MATERIALS.SELENIUM_DIOXIDE.getDust(1),
+ 13,
+ FluidUtils.getSteam(500),
+ null,
+ MISC_MATERIALS.SELENIUM_DIOXIDE.getFluidStack(1000),
+ 20,
+ 1024);
// Produce Selenious Acid
AddGregtechRecipe.addCokeAndPyrolyseRecipes(
- MISC_MATERIALS.SELENIUM_DIOXIDE.getCell(1),
- 14,
- FluidUtils.getHotWater(4000),
- CI.emptyCells(1),
- MISC_MATERIALS.SELENIOUS_ACID.getFluidStack(1000),
- 20,
- 2048);
+ MISC_MATERIALS.SELENIUM_DIOXIDE.getCell(1),
+ 14,
+ FluidUtils.getHotWater(4000),
+ CI.emptyCells(1),
+ MISC_MATERIALS.SELENIOUS_ACID.getFluidStack(1000),
+ 20,
+ 2048);
// Make Selenium
CORE.RA.addBlastSmelterRecipe(
- new ItemStack[] { ItemUtils.getGregtechCircuit(14), ELEMENT.getInstance().CARBON.getDust(16), },
- new FluidStack[] { MISC_MATERIALS.SELENIOUS_ACID.getFluidStack(750),
- Materials.SulfuricAcid.getFluid(8000), },
- ELEMENT.getInstance().SELENIUM.getFluidStack(144 * 1),
- new ItemStack[] { ELEMENT.getInstance().SELENIUM.getIngot(1),
- ELEMENT.getInstance().SELENIUM.getIngot(1), },
- new int[] { 10000, 2000, 2000 },
- 20 * 300,
- 7200);
+ new ItemStack[] { ItemUtils.getGregtechCircuit(14), ELEMENT.getInstance().CARBON.getDust(16), },
+ new FluidStack[] { MISC_MATERIALS.SELENIOUS_ACID.getFluidStack(750),
+ Materials.SulfuricAcid.getFluid(8000), },
+ ELEMENT.getInstance().SELENIUM.getFluidStack(144 * 1),
+ new ItemStack[] { ELEMENT.getInstance().SELENIUM.getIngot(1), ELEMENT.getInstance().SELENIUM.getIngot(1), },
+ new int[] { 10000, 2000, 2000 },
+ 20 * 300,
+ 7200);
/*
* // Old recipes for Selenium Roasting CORE.RA.addBlastSmelterRecipe( new ItemStack[] {
@@ -76,78 +75,68 @@ public class RECIPES_SeleniumProcessing {
// Copper
CORE.RA.addDehydratorRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(23),
- ItemUtils.getOrePrefixStack(OrePrefixes.crushedPurified, Materials.Copper, 1), // Item Input
- },
- FluidUtils.getHotWater(1000), // Fluid
- MISC_MATERIALS.SELENIUM_DIOXIDE.getFluidStack(20), // Fluid
- new ItemStack[] { ItemUtils.getOrePrefixStack(OrePrefixes.crushedCentrifuged, Materials.Copper, 1),
- MISC_MATERIALS.SELENIUM_DIOXIDE.getDust(1), MISC_MATERIALS.SELENIUM_DIOXIDE.getDust(1),
- MISC_MATERIALS.SELENIUM_DIOXIDE.getSmallDust(1),
- MISC_MATERIALS.SELENIUM_DIOXIDE.getSmallDust(1),
- MISC_MATERIALS.SELENIUM_DIOXIDE.getSmallDust(1), MISC_MATERIALS.SELENIUM_DIOXIDE.getTinyDust(1),
- MISC_MATERIALS.SELENIUM_DIOXIDE.getTinyDust(1),
- MISC_MATERIALS.SELENIUM_DIOXIDE.getTinyDust(1), }, // Output
- new int[] { 10000, 100, 100, 500, 500, 500, 1000, 1000, 1000 },
- 40 * 20, // Time in ticks
- 1024); // EU
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(23),
+ ItemUtils.getOrePrefixStack(OrePrefixes.crushedPurified, Materials.Copper, 1), // Item Input
+ },
+ FluidUtils.getHotWater(1000), // Fluid
+ MISC_MATERIALS.SELENIUM_DIOXIDE.getFluidStack(20), // Fluid
+ new ItemStack[] { ItemUtils.getOrePrefixStack(OrePrefixes.crushedCentrifuged, Materials.Copper, 1),
+ MISC_MATERIALS.SELENIUM_DIOXIDE.getDust(1), MISC_MATERIALS.SELENIUM_DIOXIDE.getDust(1),
+ MISC_MATERIALS.SELENIUM_DIOXIDE.getSmallDust(1), MISC_MATERIALS.SELENIUM_DIOXIDE.getSmallDust(1),
+ MISC_MATERIALS.SELENIUM_DIOXIDE.getSmallDust(1), MISC_MATERIALS.SELENIUM_DIOXIDE.getTinyDust(1),
+ MISC_MATERIALS.SELENIUM_DIOXIDE.getTinyDust(1), MISC_MATERIALS.SELENIUM_DIOXIDE.getTinyDust(1), }, // Output
+ new int[] { 10000, 100, 100, 500, 500, 500, 1000, 1000, 1000 },
+ 40 * 20, // Time in ticks
+ 1024); // EU
// Tetra
CORE.RA.addDehydratorRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(23),
- ItemUtils.getOrePrefixStack(OrePrefixes.crushedPurified, Materials.Tetrahedrite, 1), // Item
- // Input
- },
- FluidUtils.getHotWater(1000), // Fluid
- MISC_MATERIALS.SELENIUM_DIOXIDE.getFluidStack(10), // Fluid
- new ItemStack[] {
- ItemUtils.getOrePrefixStack(OrePrefixes.crushedCentrifuged, Materials.Tetrahedrite, 1),
- MISC_MATERIALS.SELENIUM_DIOXIDE.getDust(1), MISC_MATERIALS.SELENIUM_DIOXIDE.getDust(1),
- MISC_MATERIALS.SELENIUM_DIOXIDE.getSmallDust(1),
- MISC_MATERIALS.SELENIUM_DIOXIDE.getSmallDust(1),
- MISC_MATERIALS.SELENIUM_DIOXIDE.getSmallDust(1), MISC_MATERIALS.SELENIUM_DIOXIDE.getTinyDust(1),
- MISC_MATERIALS.SELENIUM_DIOXIDE.getTinyDust(1),
- MISC_MATERIALS.SELENIUM_DIOXIDE.getTinyDust(1), }, // Output
- new int[] { 10000, 100, 100, 300, 300, 300, 800, 800, 800 },
- 40 * 20, // Time in ticks
- 1024); // EU
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(23),
+ ItemUtils.getOrePrefixStack(OrePrefixes.crushedPurified, Materials.Tetrahedrite, 1), // Item
+ // Input
+ },
+ FluidUtils.getHotWater(1000), // Fluid
+ MISC_MATERIALS.SELENIUM_DIOXIDE.getFluidStack(10), // Fluid
+ new ItemStack[] { ItemUtils.getOrePrefixStack(OrePrefixes.crushedCentrifuged, Materials.Tetrahedrite, 1),
+ MISC_MATERIALS.SELENIUM_DIOXIDE.getDust(1), MISC_MATERIALS.SELENIUM_DIOXIDE.getDust(1),
+ MISC_MATERIALS.SELENIUM_DIOXIDE.getSmallDust(1), MISC_MATERIALS.SELENIUM_DIOXIDE.getSmallDust(1),
+ MISC_MATERIALS.SELENIUM_DIOXIDE.getSmallDust(1), MISC_MATERIALS.SELENIUM_DIOXIDE.getTinyDust(1),
+ MISC_MATERIALS.SELENIUM_DIOXIDE.getTinyDust(1), MISC_MATERIALS.SELENIUM_DIOXIDE.getTinyDust(1), }, // Output
+ new int[] { 10000, 100, 100, 300, 300, 300, 800, 800, 800 },
+ 40 * 20, // Time in ticks
+ 1024); // EU
// Chalco
CORE.RA.addDehydratorRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(23),
- ItemUtils.getOrePrefixStack(OrePrefixes.crushedPurified, Materials.Chalcopyrite, 1), // Item
- // Input
- },
- FluidUtils.getHotWater(1000), // Fluid
- MISC_MATERIALS.SELENIUM_DIOXIDE.getFluidStack(10), // Fluid
- new ItemStack[] {
- ItemUtils.getOrePrefixStack(OrePrefixes.crushedCentrifuged, Materials.Chalcopyrite, 1),
- MISC_MATERIALS.SELENIUM_DIOXIDE.getDust(1), MISC_MATERIALS.SELENIUM_DIOXIDE.getDust(1),
- MISC_MATERIALS.SELENIUM_DIOXIDE.getSmallDust(1),
- MISC_MATERIALS.SELENIUM_DIOXIDE.getSmallDust(1),
- MISC_MATERIALS.SELENIUM_DIOXIDE.getSmallDust(1), MISC_MATERIALS.SELENIUM_DIOXIDE.getTinyDust(1),
- MISC_MATERIALS.SELENIUM_DIOXIDE.getTinyDust(1),
- MISC_MATERIALS.SELENIUM_DIOXIDE.getTinyDust(1), }, // Output
- new int[] { 10000, 100, 100, 300, 300, 300, 800, 800, 800 },
- 40 * 20, // Time in ticks
- 1024); // EU
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(23),
+ ItemUtils.getOrePrefixStack(OrePrefixes.crushedPurified, Materials.Chalcopyrite, 1), // Item
+ // Input
+ },
+ FluidUtils.getHotWater(1000), // Fluid
+ MISC_MATERIALS.SELENIUM_DIOXIDE.getFluidStack(10), // Fluid
+ new ItemStack[] { ItemUtils.getOrePrefixStack(OrePrefixes.crushedCentrifuged, Materials.Chalcopyrite, 1),
+ MISC_MATERIALS.SELENIUM_DIOXIDE.getDust(1), MISC_MATERIALS.SELENIUM_DIOXIDE.getDust(1),
+ MISC_MATERIALS.SELENIUM_DIOXIDE.getSmallDust(1), MISC_MATERIALS.SELENIUM_DIOXIDE.getSmallDust(1),
+ MISC_MATERIALS.SELENIUM_DIOXIDE.getSmallDust(1), MISC_MATERIALS.SELENIUM_DIOXIDE.getTinyDust(1),
+ MISC_MATERIALS.SELENIUM_DIOXIDE.getTinyDust(1), MISC_MATERIALS.SELENIUM_DIOXIDE.getTinyDust(1), }, // Output
+ new int[] { 10000, 100, 100, 300, 300, 300, 800, 800, 800 },
+ 40 * 20, // Time in ticks
+ 1024); // EU
// Malachite
CORE.RA.addDehydratorRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(23),
- ItemUtils.getOrePrefixStack(OrePrefixes.crushedPurified, Materials.Malachite, 1), // Item Input
- },
- FluidUtils.getHotWater(1000), // Fluid
- MISC_MATERIALS.SELENIUM_DIOXIDE.getFluidStack(10), // Fluid
- new ItemStack[] { ItemUtils.getOrePrefixStack(OrePrefixes.crushedCentrifuged, Materials.Malachite, 1),
- MISC_MATERIALS.SELENIUM_DIOXIDE.getDust(1), MISC_MATERIALS.SELENIUM_DIOXIDE.getDust(1),
- MISC_MATERIALS.SELENIUM_DIOXIDE.getSmallDust(1),
- MISC_MATERIALS.SELENIUM_DIOXIDE.getSmallDust(1),
- MISC_MATERIALS.SELENIUM_DIOXIDE.getSmallDust(1), MISC_MATERIALS.SELENIUM_DIOXIDE.getTinyDust(1),
- MISC_MATERIALS.SELENIUM_DIOXIDE.getTinyDust(1),
- MISC_MATERIALS.SELENIUM_DIOXIDE.getTinyDust(1), }, // Output
- new int[] { 10000, 100, 100, 300, 300, 300, 800, 800, 800 },
- 40 * 20, // Time in ticks
- 1024); // EU
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(23),
+ ItemUtils.getOrePrefixStack(OrePrefixes.crushedPurified, Materials.Malachite, 1), // Item Input
+ },
+ FluidUtils.getHotWater(1000), // Fluid
+ MISC_MATERIALS.SELENIUM_DIOXIDE.getFluidStack(10), // Fluid
+ new ItemStack[] { ItemUtils.getOrePrefixStack(OrePrefixes.crushedCentrifuged, Materials.Malachite, 1),
+ MISC_MATERIALS.SELENIUM_DIOXIDE.getDust(1), MISC_MATERIALS.SELENIUM_DIOXIDE.getDust(1),
+ MISC_MATERIALS.SELENIUM_DIOXIDE.getSmallDust(1), MISC_MATERIALS.SELENIUM_DIOXIDE.getSmallDust(1),
+ MISC_MATERIALS.SELENIUM_DIOXIDE.getSmallDust(1), MISC_MATERIALS.SELENIUM_DIOXIDE.getTinyDust(1),
+ MISC_MATERIALS.SELENIUM_DIOXIDE.getTinyDust(1), MISC_MATERIALS.SELENIUM_DIOXIDE.getTinyDust(1), }, // Output
+ new int[] { 10000, 100, 100, 300, 300, 300, 800, 800, 800 },
+ 40 * 20, // Time in ticks
+ 1024); // EU
}
}
diff --git a/src/main/java/gtPlusPlus/core/recipe/RECIPE_Batteries.java b/src/main/java/gtPlusPlus/core/recipe/RECIPE_Batteries.java
index 26b695804c..4369fdbfa3 100644
--- a/src/main/java/gtPlusPlus/core/recipe/RECIPE_Batteries.java
+++ b/src/main/java/gtPlusPlus/core/recipe/RECIPE_Batteries.java
@@ -26,37 +26,37 @@ public class RECIPE_Batteries {
private static void run() {
RecipeUtils.addShapedGregtechRecipe(
- GT_Battery_Sodium,
- RECIPES_Machines.cableTier4,
- GT_Battery_Sodium,
- CI.circuitTier3,
- machineTransformer_EV,
- CI.circuitTier3,
- GT_Battery_Sodium,
- RECIPES_Machines.cableTier4,
- GT_Battery_Sodium,
- RECIPE_Battery_Sodium);
+ GT_Battery_Sodium,
+ RECIPES_Machines.cableTier4,
+ GT_Battery_Sodium,
+ CI.circuitTier3,
+ machineTransformer_EV,
+ CI.circuitTier3,
+ GT_Battery_Sodium,
+ RECIPES_Machines.cableTier4,
+ GT_Battery_Sodium,
+ RECIPE_Battery_Sodium);
RecipeUtils.addShapedGregtechRecipe(
- GT_Battery_Cadmium,
- RECIPES_Machines.cableTier4,
- GT_Battery_Cadmium,
- CI.circuitTier3,
- machineTransformer_EV,
- CI.circuitTier3,
- GT_Battery_Cadmium,
- RECIPES_Machines.cableTier4,
- GT_Battery_Cadmium,
- RECIPE_Battery_Cadmium);
+ GT_Battery_Cadmium,
+ RECIPES_Machines.cableTier4,
+ GT_Battery_Cadmium,
+ CI.circuitTier3,
+ machineTransformer_EV,
+ CI.circuitTier3,
+ GT_Battery_Cadmium,
+ RECIPES_Machines.cableTier4,
+ GT_Battery_Cadmium,
+ RECIPE_Battery_Cadmium);
RecipeUtils.addShapedGregtechRecipe(
- GT_Battery_Lithium,
- RECIPES_Machines.cableTier4,
- GT_Battery_Lithium,
- CI.circuitTier3,
- machineTransformer_EV,
- CI.circuitTier3,
- GT_Battery_Lithium,
- RECIPES_Machines.cableTier4,
- GT_Battery_Lithium,
- RECIPE_Battery_Lithium);
+ GT_Battery_Lithium,
+ RECIPES_Machines.cableTier4,
+ GT_Battery_Lithium,
+ CI.circuitTier3,
+ machineTransformer_EV,
+ CI.circuitTier3,
+ GT_Battery_Lithium,
+ RECIPES_Machines.cableTier4,
+ GT_Battery_Lithium,
+ RECIPE_Battery_Lithium);
}
}
diff --git a/src/main/java/gtPlusPlus/core/recipe/ShapedRecipeObject.java b/src/main/java/gtPlusPlus/core/recipe/ShapedRecipeObject.java
index e805e97a64..18c1c2c70c 100644
--- a/src/main/java/gtPlusPlus/core/recipe/ShapedRecipeObject.java
+++ b/src/main/java/gtPlusPlus/core/recipe/ShapedRecipeObject.java
@@ -19,8 +19,8 @@ public class ShapedRecipeObject {
public ItemStack object_OUTPUT;
public ShapedRecipeObject(final Object input_A, final Object input_B, final Object input_C, final Object input_D,
- final Object input_E, final Object input_F, final Object input_G, final Object input_H,
- final Object input_I, final ItemStack input_Output) {
+ final Object input_E, final Object input_F, final Object input_G, final Object input_H, final Object input_I,
+ final ItemStack input_Output) {
this.object_A = input_A;
this.object_B = input_B;
this.object_C = input_C;
@@ -36,15 +36,15 @@ public class ShapedRecipeObject {
public void buildRecipe() {
RecipeUtils.recipeBuilder(
- this.object_A,
- this.object_B,
- this.object_C,
- this.object_D,
- this.object_E,
- this.object_F,
- this.object_G,
- this.object_H,
- this.object_I,
- this.object_OUTPUT);
+ this.object_A,
+ this.object_B,
+ this.object_C,
+ this.object_D,
+ this.object_E,
+ this.object_F,
+ this.object_G,
+ this.object_H,
+ this.object_I,
+ this.object_OUTPUT);
}
}
diff --git a/src/main/java/gtPlusPlus/core/recipe/common/CI.java b/src/main/java/gtPlusPlus/core/recipe/common/CI.java
index 54c7046e13..5c1620160d 100644
--- a/src/main/java/gtPlusPlus/core/recipe/common/CI.java
+++ b/src/main/java/gtPlusPlus/core/recipe/common/CI.java
@@ -30,10 +30,10 @@ public class CI {
// bits
public static long bits = GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE
- | GT_ModHandler.RecipeBits.BUFFERED;
+ | GT_ModHandler.RecipeBits.BUFFERED;
public static long bitsd = 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;
// Circuits
public static Object circuitPrimitive;
@@ -180,33 +180,33 @@ public class CI {
public static ItemStack explosiveITNT;
public static Materials[] tieredMaterials = new Materials[] { Materials.Iron, Materials.Steel, Materials.Aluminium,
- Materials.StainlessSteel, Materials.Titanium, Materials.TungstenSteel, Materials.Chrome, Materials.Iridium,
- Materials.Osmium, Materials.Neutronium };
+ Materials.StainlessSteel, Materials.Titanium, Materials.TungstenSteel, Materials.Chrome, Materials.Iridium,
+ Materials.Osmium, Materials.Neutronium };
public static void preInit() {
// Tiered Components
component_Plate = new String[] { getTieredComponent(OrePrefixes.plate, 0),
- getTieredComponent(OrePrefixes.plate, 1), getTieredComponent(OrePrefixes.plate, 2),
- getTieredComponent(OrePrefixes.plate, 3), getTieredComponent(OrePrefixes.plate, 4),
- getTieredComponent(OrePrefixes.plate, 5), getTieredComponent(OrePrefixes.plate, 6),
- getTieredComponent(OrePrefixes.plate, 7), getTieredComponent(OrePrefixes.plate, 8),
- getTieredComponent(OrePrefixes.plate, 9), getTieredComponent(OrePrefixes.plate, 10),
- getTieredComponent(OrePrefixes.plate, 11) };
+ getTieredComponent(OrePrefixes.plate, 1), getTieredComponent(OrePrefixes.plate, 2),
+ getTieredComponent(OrePrefixes.plate, 3), getTieredComponent(OrePrefixes.plate, 4),
+ getTieredComponent(OrePrefixes.plate, 5), getTieredComponent(OrePrefixes.plate, 6),
+ getTieredComponent(OrePrefixes.plate, 7), getTieredComponent(OrePrefixes.plate, 8),
+ getTieredComponent(OrePrefixes.plate, 9), getTieredComponent(OrePrefixes.plate, 10),
+ getTieredComponent(OrePrefixes.plate, 11) };
component_Rod = new String[] { getTieredComponent(OrePrefixes.stick, 0),
- getTieredComponent(OrePrefixes.stick, 1), getTieredComponent(OrePrefixes.stick, 2),
- getTieredComponent(OrePrefixes.stick, 3), getTieredComponent(OrePrefixes.stick, 4),
- getTieredComponent(OrePrefixes.stick, 5), getTieredComponent(OrePrefixes.stick, 6),
- getTieredComponent(OrePrefixes.stick, 7), getTieredComponent(OrePrefixes.stick, 8),
- getTieredComponent(OrePrefixes.stick, 9), getTieredComponent(OrePrefixes.stick, 10),
- getTieredComponent(OrePrefixes.stick, 11) };
+ getTieredComponent(OrePrefixes.stick, 1), getTieredComponent(OrePrefixes.stick, 2),
+ getTieredComponent(OrePrefixes.stick, 3), getTieredComponent(OrePrefixes.stick, 4),
+ getTieredComponent(OrePrefixes.stick, 5), getTieredComponent(OrePrefixes.stick, 6),
+ getTieredComponent(OrePrefixes.stick, 7), getTieredComponent(OrePrefixes.stick, 8),
+ getTieredComponent(OrePrefixes.stick, 9), getTieredComponent(OrePrefixes.stick, 10),
+ getTieredComponent(OrePrefixes.stick, 11) };
component_Ingot = new String[] { getTieredComponent(OrePrefixes.ingot, 0),
- getTieredComponent(OrePrefixes.ingot, 1), getTieredComponent(OrePrefixes.ingot, 2),
- getTieredComponent(OrePrefixes.ingot, 3), getTieredComponent(OrePrefixes.ingot, 4),
- getTieredComponent(OrePrefixes.ingot, 5), getTieredComponent(OrePrefixes.ingot, 6),
- getTieredComponent(OrePrefixes.ingot, 7), getTieredComponent(OrePrefixes.ingot, 8),
- getTieredComponent(OrePrefixes.ingot, 9), getTieredComponent(OrePrefixes.ingot, 10),
- getTieredComponent(OrePrefixes.ingot, 11) };
+ getTieredComponent(OrePrefixes.ingot, 1), getTieredComponent(OrePrefixes.ingot, 2),
+ getTieredComponent(OrePrefixes.ingot, 3), getTieredComponent(OrePrefixes.ingot, 4),
+ getTieredComponent(OrePrefixes.ingot, 5), getTieredComponent(OrePrefixes.ingot, 6),
+ getTieredComponent(OrePrefixes.ingot, 7), getTieredComponent(OrePrefixes.ingot, 8),
+ getTieredComponent(OrePrefixes.ingot, 9), getTieredComponent(OrePrefixes.ingot, 10),
+ getTieredComponent(OrePrefixes.ingot, 11) };
// Circuits
circuitPrimitive = getTieredCircuit(0);
@@ -372,7 +372,8 @@ public class CI {
public static void init() {
// Set Explosives
explosivePowderKeg = ItemList.Block_Powderbarrel.get(1);
- explosiveTNT = ItemUtils.getSimpleStack(Blocks.tnt).copy();
+ explosiveTNT = ItemUtils.getSimpleStack(Blocks.tnt)
+ .copy();
explosiveITNT = Ic2Items.industrialTnt.copy();
// Machine Casings
@@ -414,29 +415,29 @@ public class CI {
}
private static final Material[] aMaterial_Main = new Material[] { ALLOY.POTIN, ALLOY.TUMBAGA, ALLOY.EGLIN_STEEL,
- ALLOY.INCONEL_625, ALLOY.INCOLOY_DS, ALLOY.NITINOL_60, ALLOY.ZERON_100, ALLOY.PIKYONIUM,
- ELEMENT.STANDALONE.ADVANCED_NITINOL, ALLOY.ABYSSAL, ALLOY.QUANTUM, ELEMENT.STANDALONE.HYPOGEN };
+ ALLOY.INCONEL_625, ALLOY.INCOLOY_DS, ALLOY.NITINOL_60, ALLOY.ZERON_100, ALLOY.PIKYONIUM,
+ ELEMENT.STANDALONE.ADVANCED_NITINOL, ALLOY.ABYSSAL, ALLOY.QUANTUM, ELEMENT.STANDALONE.HYPOGEN };
private static final Material[] aMaterial_Secondary = new Material[] { ALLOY.STEEL, ALLOY.SILICON_CARBIDE,
- ALLOY.BLOODSTEEL, ALLOY.TANTALUM_CARBIDE, ALLOY.INCONEL_792, ALLOY.ARCANITE, ALLOY.LAFIUM, ALLOY.CINOBITE,
- ALLOY.TITANSTEEL, ALLOY.OCTIRON, ELEMENT.STANDALONE.CELESTIAL_TUNGSTEN, ELEMENT.STANDALONE.HYPOGEN };
+ ALLOY.BLOODSTEEL, ALLOY.TANTALUM_CARBIDE, ALLOY.INCONEL_792, ALLOY.ARCANITE, ALLOY.LAFIUM, ALLOY.CINOBITE,
+ ALLOY.TITANSTEEL, ALLOY.OCTIRON, ELEMENT.STANDALONE.CELESTIAL_TUNGSTEN, ELEMENT.STANDALONE.HYPOGEN };
private static final Material[] aMaterial_Tertiary = new Material[] { ELEMENT.getInstance().LEAD,
- ELEMENT.getInstance().ALUMINIUM, ELEMENT.STANDALONE.BLACK_METAL, ELEMENT.getInstance().TITANIUM,
- ALLOY.HASTELLOY_N, ALLOY.ENERGYCRYSTAL, ALLOY.TRINIUM_NAQUADAH_CARBON, ALLOY.TRINIUM_REINFORCED_STEEL, // Arceus
- ALLOY.TITANSTEEL, ELEMENT.STANDALONE.ASTRAL_TITANIUM, ELEMENT.STANDALONE.CELESTIAL_TUNGSTEN,
- ELEMENT.STANDALONE.HYPOGEN };
+ ELEMENT.getInstance().ALUMINIUM, ELEMENT.STANDALONE.BLACK_METAL, ELEMENT.getInstance().TITANIUM,
+ ALLOY.HASTELLOY_N, ALLOY.ENERGYCRYSTAL, ALLOY.TRINIUM_NAQUADAH_CARBON, ALLOY.TRINIUM_REINFORCED_STEEL, // Arceus
+ ALLOY.TITANSTEEL, ELEMENT.STANDALONE.ASTRAL_TITANIUM, ELEMENT.STANDALONE.CELESTIAL_TUNGSTEN,
+ ELEMENT.STANDALONE.HYPOGEN };
private static final Materials[] aMaterial_Cables = new Materials[] { Materials.Tin, Materials.Cobalt,
- Materials.AnnealedCopper, Materials.Gold, Materials.Titanium, Materials.Nichrome, Materials.Platinum,
- Materials.YttriumBariumCuprate, Materials.Naquadah, Materials.Duranium, Materials.SuperconductorUHV, };
+ Materials.AnnealedCopper, Materials.Gold, Materials.Titanium, Materials.Nichrome, Materials.Platinum,
+ Materials.YttriumBariumCuprate, Materials.Naquadah, Materials.Duranium, Materials.SuperconductorUHV, };
private static final Materials[] aMaterial_Circuits = new Materials[] { Materials.Primitive, Materials.Basic,
- Materials.Good, Materials.Advanced, Materials.Data, Materials.Data, Materials.Elite, Materials.Master,
- Materials.Ultimate, Materials.SuperconductorUHV, Materials.Infinite, };
+ Materials.Good, Materials.Advanced, Materials.Data, Materials.Data, Materials.Elite, Materials.Master,
+ Materials.Ultimate, Materials.SuperconductorUHV, Materials.Infinite, };
private static final Material[][] aMaster = new Material[][] { aMaterial_Main, aMaterial_Secondary,
- aMaterial_Tertiary };
+ aMaterial_Tertiary };
public static FluidStack getTieredFluid(int aTier, int aAmount) {
return getTieredFluid(aTier, aAmount, 0);
@@ -472,16 +473,16 @@ public class CI {
public static ItemStack getEnergyCore(int aTier, int aAmount) {
ItemStack[] aOutput = new ItemStack[] {
- ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "1", 1),
- ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "2", 1),
- ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "3", 1),
- ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "4", 1),
- ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "5", 1),
- ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "6", 1),
- ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "7", 1),
- ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "8", 1),
- ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "9", 1),
- ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "10", 1) };
+ ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "1", 1),
+ ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "2", 1),
+ ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "3", 1),
+ ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "4", 1),
+ ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "5", 1),
+ ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "6", 1),
+ ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "7", 1),
+ ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "8", 1),
+ ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "9", 1),
+ ItemUtils.getItemStackFromFQRN("miscutils:item.itemBufferCore" + "10", 1) };
return ItemUtils.getSimpleStack(aOutput[MathUtils.balance(aTier, 0, 9)], aAmount);
}
@@ -520,7 +521,7 @@ public class CI {
if (aPrefix == OrePrefixes.liquid) {
int aMatID = (aTier == 0 || aTier == 2 || aTier == 5 || aTier == 8 ? 0
- : (aTier == 1 || aTier == 3 || aTier == 6 || aTier == 9 ? 1 : 2));
+ : (aTier == 1 || aTier == 3 || aTier == 6 || aTier == 9 ? 1 : 2));
ItemStack aCell = aMaster[aMatID][aTier].getCell(aAmount);
return aCell;
}
@@ -535,9 +536,9 @@ public class CI {
// Check for Cables first, catch SuperConductor case and swap to wire.
if (aPrefix == OrePrefixes.cableGt01 || aPrefix == OrePrefixes.cableGt02
- || aPrefix == OrePrefixes.cableGt04
- || aPrefix == OrePrefixes.cableGt08
- || aPrefix == OrePrefixes.cableGt12) {
+ || aPrefix == OrePrefixes.cableGt04
+ || aPrefix == OrePrefixes.cableGt08
+ || aPrefix == OrePrefixes.cableGt12) {
// Special Handler
if (aTier == 10) {
if (aPrefix == OrePrefixes.cableGt01) {
@@ -556,18 +557,18 @@ public class CI {
}
}
if (aPrefix == OrePrefixes.wireGt01 || aPrefix == OrePrefixes.wireGt02
- || aPrefix == OrePrefixes.wireGt04
- || aPrefix == OrePrefixes.wireGt08
- || aPrefix == OrePrefixes.wireGt12
- || aPrefix == OrePrefixes.wireGt16) {
+ || aPrefix == OrePrefixes.wireGt04
+ || aPrefix == OrePrefixes.wireGt08
+ || aPrefix == OrePrefixes.wireGt12
+ || aPrefix == OrePrefixes.wireGt16) {
return ItemUtils.getOrePrefixStack(aPrefix, aMaterial_Cables[aTier], aAmount);
}
if (aPrefix == OrePrefixes.pipeTiny || aPrefix == OrePrefixes.pipeSmall
- || aPrefix == OrePrefixes.pipe
- || aPrefix == OrePrefixes.pipeMedium
- || aPrefix == OrePrefixes.pipeLarge
- || aPrefix == OrePrefixes.pipeHuge) {
+ || aPrefix == OrePrefixes.pipe
+ || aPrefix == OrePrefixes.pipeMedium
+ || aPrefix == OrePrefixes.pipeLarge
+ || aPrefix == OrePrefixes.pipeHuge) {
if (aPrefix == OrePrefixes.pipe) {
aPrefix = OrePrefixes.pipeMedium;
@@ -952,9 +953,9 @@ public class CI {
public static ItemStack getTieredGTPPMachineCasing(int aTier, int aAmount) {
GregtechItemList[] aHulls = new GregtechItemList[] { GregtechItemList.GTPP_Casing_ULV,
- GregtechItemList.GTPP_Casing_LV, GregtechItemList.GTPP_Casing_MV, GregtechItemList.GTPP_Casing_HV,
- GregtechItemList.GTPP_Casing_EV, GregtechItemList.GTPP_Casing_IV, GregtechItemList.GTPP_Casing_LuV,
- GregtechItemList.GTPP_Casing_ZPM, GregtechItemList.GTPP_Casing_UV, GregtechItemList.GTPP_Casing_UHV };
+ GregtechItemList.GTPP_Casing_LV, GregtechItemList.GTPP_Casing_MV, GregtechItemList.GTPP_Casing_HV,
+ GregtechItemList.GTPP_Casing_EV, GregtechItemList.GTPP_Casing_IV, GregtechItemList.GTPP_Casing_LuV,
+ GregtechItemList.GTPP_Casing_ZPM, GregtechItemList.GTPP_Casing_UV, GregtechItemList.GTPP_Casing_UHV };
return aHulls[aTier].get(aAmount);
}
@@ -964,10 +965,10 @@ public class CI {
public static ItemStack getTransmissionComponent(int aTier, int aAmount) {
GregtechItemList[] aTransParts = new GregtechItemList[] { null, GregtechItemList.TransmissionComponent_LV,
- GregtechItemList.TransmissionComponent_MV, GregtechItemList.TransmissionComponent_HV,
- GregtechItemList.TransmissionComponent_EV, GregtechItemList.TransmissionComponent_IV,
- GregtechItemList.TransmissionComponent_LuV, GregtechItemList.TransmissionComponent_ZPM,
- GregtechItemList.TransmissionComponent_UV, GregtechItemList.TransmissionComponent_UHV, };
+ GregtechItemList.TransmissionComponent_MV, GregtechItemList.TransmissionComponent_HV,
+ GregtechItemList.TransmissionComponent_EV, GregtechItemList.TransmissionComponent_IV,
+ GregtechItemList.TransmissionComponent_LuV, GregtechItemList.TransmissionComponent_ZPM,
+ GregtechItemList.TransmissionComponent_UV, GregtechItemList.TransmissionComponent_UHV, };
return aTransParts[aTier].get(aAmount);
}
diff --git a/src/main/java/gtPlusPlus/core/slots/SlotCrafting.java b/src/main/java/gtPlusPlus/core/slots/SlotCrafting.java
index 8899cff513..323943b950 100644
--- a/src/main/java/gtPlusPlus/core/slots/SlotCrafting.java
+++ b/src/main/java/gtPlusPlus/core/slots/SlotCrafting.java
@@ -28,7 +28,7 @@ public class SlotCrafting extends Slot {
private int amountCrafted;
public SlotCrafting(final EntityPlayer p_i1823_1_, final IInventory p_i1823_2_, final IInventory p_i1823_3_,
- final int p_i1823_4_, final int p_i1823_5_, final int p_i1823_6_) {
+ final int p_i1823_4_, final int p_i1823_5_, final int p_i1823_6_) {
super(p_i1823_3_, p_i1823_4_, p_i1823_5_, p_i1823_6_);
this.thePlayer = p_i1823_1_;
this.craftMatrix = p_i1823_2_;
@@ -98,7 +98,7 @@ public class SlotCrafting extends Slot {
}
if ((p_75208_1_.getItem() instanceof ItemPickaxe)
- && (((ItemPickaxe) p_75208_1_.getItem()).func_150913_i() != Item.ToolMaterial.WOOD)) {
+ && (((ItemPickaxe) p_75208_1_.getItem()).func_150913_i() != Item.ToolMaterial.WOOD)) {
this.thePlayer.addStat(AchievementList.buildBetterPickaxe, 1);
}
@@ -117,7 +117,8 @@ public class SlotCrafting extends Slot {
@Override
public void onPickupFromSlot(final EntityPlayer p_82870_1_, final ItemStack p_82870_2_) {
- FMLCommonHandler.instance().firePlayerCraftingEvent(p_82870_1_, p_82870_2_, this.craftMatrix);
+ FMLCommonHandler.instance()
+ .firePlayerCraftingEvent(p_82870_1_, p_82870_2_, this.craftMatrix);
this.onCrafting(p_82870_2_);
for (int i = 0; i < this.craftMatrix.getSizeInventory(); ++i) {
@@ -126,17 +127,20 @@ public class SlotCrafting extends Slot {
if (itemstack1 != null) {
this.craftMatrix.decrStackSize(i, 1);
- if (itemstack1.getItem().hasContainerItem(itemstack1)) {
- final ItemStack itemstack2 = itemstack1.getItem().getContainerItem(itemstack1);
+ if (itemstack1.getItem()
+ .hasContainerItem(itemstack1)) {
+ final ItemStack itemstack2 = itemstack1.getItem()
+ .getContainerItem(itemstack1);
if ((itemstack2 != null) && itemstack2.isItemStackDamageable()
- && (itemstack2.getItemDamage() > itemstack2.getMaxDamage())) {
+ && (itemstack2.getItemDamage() > itemstack2.getMaxDamage())) {
MinecraftForge.EVENT_BUS.post(new PlayerDestroyItemEvent(this.thePlayer, itemstack2));
continue;
}
- if (!itemstack1.getItem().doesContainerItemLeaveCraftingGrid(itemstack1)
- || !this.thePlayer.inventory.addItemStackToInventory(itemstack2)) {
+ if (!itemstack1.getItem()
+ .doesContainerItemLeaveCraftingGrid(itemstack1)
+ || !this.thePlayer.inventory.addItemStackToInventory(itemstack2)) {
if (this.craftMatrix.getStackInSlot(i) == null) {
this.craftMatrix.setInventorySlotContents(i, itemstack2);
} else {
diff --git a/src/main/java/gtPlusPlus/core/slots/SlotCraftingNoCollect.java b/src/main/java/gtPlusPlus/core/slots/SlotCraftingNoCollect.java
index b3d249aed9..03581ef705 100644
--- a/src/main/java/gtPlusPlus/core/slots/SlotCraftingNoCollect.java
+++ b/src/main/java/gtPlusPlus/core/slots/SlotCraftingNoCollect.java
@@ -25,7 +25,7 @@ public class SlotCraftingNoCollect extends SlotCrafting {
private int amountCrafted;
public SlotCraftingNoCollect(EntityPlayer player, IInventory inventory, IInventory inventory2, int x, int y,
- int z) {
+ int z) {
super(player, inventory, inventory2, x, y, z);
this.thePlayer = player;
this.craftMatrix = inventory;
@@ -95,7 +95,7 @@ public class SlotCraftingNoCollect extends SlotCrafting {
}
if (output.getItem() instanceof ItemPickaxe
- && ((ItemPickaxe) output.getItem()).func_150913_i() != Item.ToolMaterial.WOOD) {
+ && ((ItemPickaxe) output.getItem()).func_150913_i() != Item.ToolMaterial.WOOD) {
this.thePlayer.addStat(AchievementList.buildBetterPickaxe, 1);
}
@@ -114,7 +114,8 @@ public class SlotCraftingNoCollect extends SlotCrafting {
@Override
public void onPickupFromSlot(EntityPlayer player, ItemStack output) {
- FMLCommonHandler.instance().firePlayerCraftingEvent(player, output, craftMatrix);
+ FMLCommonHandler.instance()
+ .firePlayerCraftingEvent(player, output, craftMatrix);
this.onCrafting(output);
/*
diff --git a/src/main/java/gtPlusPlus/core/slots/SlotDataStick.java b/src/main/java/gtPlusPlus/core/slots/SlotDataStick.java
index 9de2622253..3b39da877a 100644
--- a/src/main/java/gtPlusPlus/core/slots/SlotDataStick.java
+++ b/src/main/java/gtPlusPlus/core/slots/SlotDataStick.java
@@ -27,7 +27,7 @@ public class SlotDataStick extends Slot {
}
if (mDataItems[0] != null && mDataItems[1] != null) {
if (GT_Utility.areStacksEqual(itemstack, mDataItems[0], true)
- || GT_Utility.areStacksEqual(itemstack, mDataItems[1], true)) {
+ || GT_Utility.areStacksEqual(itemstack, mDataItems[1], true)) {
isValid = true;
}
}
diff --git a/src/main/java/gtPlusPlus/core/slots/SlotIntegratedCircuit.java b/src/main/java/gtPlusPlus/core/slots/SlotIntegratedCircuit.java
index 99e59380dc..dc75c88369 100644
--- a/src/main/java/gtPlusPlus/core/slots/SlotIntegratedCircuit.java
+++ b/src/main/java/gtPlusPlus/core/slots/SlotIntegratedCircuit.java
@@ -39,18 +39,21 @@ public class SlotIntegratedCircuit extends Slot {
public static synchronized boolean isItemValidForSlot(int aLockedCircuitNumber, final ItemStack itemstack) {
boolean isValid = false;
if (mCircuitItem == null) {
- mCircuitItem = CI.getNumberedCircuit(0).getItem();
+ mCircuitItem = CI.getNumberedCircuit(0)
+ .getItem();
}
if (mCircuitItem2 == null) {
- mCircuitItem2 = CI.getNumberedBioCircuit(0).getItem();
+ mCircuitItem2 = CI.getNumberedBioCircuit(0)
+ .getItem();
}
if (mCircuitItem3 == null) {
- mCircuitItem3 = CI.getNumberedAdvancedCircuit(0).getItem();
+ mCircuitItem3 = CI.getNumberedAdvancedCircuit(0)
+ .getItem();
}
if (mCircuitItem != null && mCircuitItem2 != null && mCircuitItem3 != null) {
if (itemstack != null) {
if (itemstack.getItem() == mCircuitItem || itemstack.getItem() == mCircuitItem2
- || itemstack.getItem() == mCircuitItem3) {
+ || itemstack.getItem() == mCircuitItem3) {
if (aLockedCircuitNumber == -1) {
isValid = true;
} else {
@@ -72,18 +75,21 @@ public class SlotIntegratedCircuit extends Slot {
*/
public static synchronized int isRegularProgrammableCircuit(final ItemStack itemstack) {
if (mCircuitItem == null) {
- mCircuitItem = CI.getNumberedCircuit(0).getItem();
+ mCircuitItem = CI.getNumberedCircuit(0)
+ .getItem();
}
if (mCircuitItem2 == null) {
- mCircuitItem2 = CI.getNumberedBioCircuit(0).getItem();
+ mCircuitItem2 = CI.getNumberedBioCircuit(0)
+ .getItem();
}
if (mCircuitItem3 == null) {
- mCircuitItem3 = CI.getNumberedAdvancedCircuit(0).getItem();
+ mCircuitItem3 = CI.getNumberedAdvancedCircuit(0)
+ .getItem();
}
if (mCircuitItem != null && mCircuitItem2 != null && mCircuitItem3 != null) {
if (itemstack != null) {
if (itemstack.getItem() == mCircuitItem || itemstack.getItem() == mCircuitItem2
- || itemstack.getItem() == mCircuitItem3) {
+ || itemstack.getItem() == mCircuitItem3) {
if (itemstack.getItem() == mCircuitItem) {
return 0;
} else if (itemstack.getItem() == mCircuitItem2) {
diff --git a/src/main/java/gtPlusPlus/core/tileentities/base/TileEntityBase.java b/src/main/java/gtPlusPlus/core/tileentities/base/TileEntityBase.java
index 56197098c6..98f1d67439 100644
--- a/src/main/java/gtPlusPlus/core/tileentities/base/TileEntityBase.java
+++ b/src/main/java/gtPlusPlus/core/tileentities/base/TileEntityBase.java
@@ -158,8 +158,8 @@ public class TileEntityBase extends TileEntity implements ILazyCoverable, IGregT
public void setOwnerInformation(String mName, String mUUID, boolean mOP) {
if (isServerSide()) {
if (this.mOwnerName == null || this.mOwnerUUID == null
- || this.mOwnerName.equals("null")
- || this.mOwnerUUID.equals("null")) {
+ || this.mOwnerName.equals("null")
+ || this.mOwnerUUID.equals("null")) {
this.mOwnerName = mName;
this.mOwnerUUID = mUUID;
this.mIsOwnerOP = mOP;
@@ -277,8 +277,8 @@ public class TileEntityBase extends TileEntity implements ILazyCoverable, IGregT
public boolean canInsertItem(int aIndex, ItemStack aStack, int ordinalSide) {
final ForgeDirection side = ForgeDirection.getOrientation(ordinalSide);
return canAccessData() && (mRunningThroughTick || !mInputDisabled)
- && getCoverInfoAtSide(side).letsItemsIn(aIndex)
- && mInventory.canInsertItem(aIndex, aStack, ordinalSide);
+ && getCoverInfoAtSide(side).letsItemsIn(aIndex)
+ && mInventory.canInsertItem(aIndex, aStack, ordinalSide);
}
/**
@@ -288,8 +288,8 @@ public class TileEntityBase extends TileEntity implements ILazyCoverable, IGregT
public boolean canExtractItem(int aIndex, ItemStack aStack, int ordinalSide) {
final ForgeDirection side = ForgeDirection.getOrientation(ordinalSide);
return canAccessData() && (mRunningThroughTick || !mOutputDisabled)
- && getCoverInfoAtSide(side).letsItemsOut(aIndex)
- && mInventory.canExtractItem(aIndex, aStack, ordinalSide);
+ && getCoverInfoAtSide(side).letsItemsOut(aIndex)
+ && mInventory.canExtractItem(aIndex, aStack, ordinalSide);
}
@Override
@@ -298,18 +298,18 @@ public class TileEntityBase extends TileEntity implements ILazyCoverable, IGregT
}
private final GT_CoverBehavior[] mCoverBehaviors = new GT_CoverBehavior[] { 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 };
protected TileEntityBase mMetaTileEntity;
protected long mStoredEnergy = 0;
protected int mAverageEUInputIndex = 0, mAverageEUOutputIndex = 0;
protected boolean mReleaseEnergy = false;
protected int[] mAverageEUInput = new int[11], mAverageEUOutput = new int[11];
private boolean[] mActiveEUInputs = new boolean[] { false, false, false, false, false, false },
- mActiveEUOutputs = new boolean[] { false, false, false, false, false, false };
+ mActiveEUOutputs = new boolean[] { false, false, false, false, false, false };
private byte[] mSidedRedstone = new byte[] { 15, 15, 15, 15, 15, 15 };
private int[] mCoverSides = new int[] { 0, 0, 0, 0, 0, 0 }, mCoverData = new int[] { 0, 0, 0, 0, 0, 0 },
- mTimeStatistics = new int[GregTech_API.TICKS_FOR_LAG_AVERAGING];
+ mTimeStatistics = new int[GregTech_API.TICKS_FOR_LAG_AVERAGING];
private boolean mHasEnoughEnergy = true;
protected boolean mRunningThroughTick = false;
protected boolean mInputDisabled = false;
@@ -328,8 +328,8 @@ public class TileEntityBase extends TileEntity implements ILazyCoverable, IGregT
private boolean oRedstone = false;
private boolean mEnergyStateReady = false;
private byte mColor = 0, oColor = 0, mStrongRedstone = 0, oRedstoneData = 63, oTextureData = 0, oUpdateData = 0,
- oTexturePage = 0, oLightValueClient = -1, oLightValue = -1, mLightValue = 0, mOtherUpgrades = 0,
- mFacing = 0, oFacing = 0, mWorkData = 0;
+ oTexturePage = 0, oLightValueClient = -1, oLightValue = -1, mLightValue = 0, mOtherUpgrades = 0, mFacing = 0,
+ oFacing = 0, mWorkData = 0;
private int mDisplayErrorCode = 0, oX = 0, oY = 0, oZ = 0, mTimeStatisticsIndex = 0, mLagWarningCount = 0;
private short mID = 0;
protected long mTickTimer = 0;
@@ -376,8 +376,8 @@ public class TileEntityBase extends TileEntity implements ILazyCoverable, IGregT
@Override
public long getOutputVoltage() {
return this.canAccessData() && this.mMetaTileEntity.isElectric() && this.mMetaTileEntity.isEnetOutput()
- ? this.mMetaTileEntity.maxEUOutput()
- : 0L;
+ ? this.mMetaTileEntity.maxEUOutput()
+ : 0L;
}
@Override
@@ -388,13 +388,13 @@ public class TileEntityBase extends TileEntity implements ILazyCoverable, IGregT
@Override
public long getInputVoltage() {
return this.canAccessData() && this.mMetaTileEntity.isElectric() ? this.mMetaTileEntity.maxEUInput()
- : 2147483647L;
+ : 2147483647L;
}
@Override
public boolean decreaseStoredEnergyUnits(long aEnergy, boolean aIgnoreTooLessEnergy) {
return !this.canAccessData() ? false
- : (this.mHasEnoughEnergy = this.decreaseStoredEU(aEnergy, aIgnoreTooLessEnergy));
+ : (this.mHasEnoughEnergy = this.decreaseStoredEU(aEnergy, aIgnoreTooLessEnergy));
}
@Override
@@ -412,22 +412,21 @@ public class TileEntityBase extends TileEntity implements ILazyCoverable, IGregT
@Override
public boolean inputEnergyFrom(ForgeDirection side) {
return side == ForgeDirection.UNKNOWN ? true
- : (!this.isServerSide() ? this.isEnergyInputSide(side)
- : side != ForgeDirection.UNKNOWN && this.mActiveEUInputs[side.ordinal()]
- && !this.mReleaseEnergy);
+ : (!this.isServerSide() ? this.isEnergyInputSide(side)
+ : side != ForgeDirection.UNKNOWN && this.mActiveEUInputs[side.ordinal()] && !this.mReleaseEnergy);
}
@Override
public boolean outputsEnergyTo(ForgeDirection side) {
return side == ForgeDirection.UNKNOWN ? true
- : (!this.isServerSide() ? this.isEnergyOutputSide(side)
- : side != ForgeDirection.UNKNOWN && this.mActiveEUOutputs[side.ordinal()]
- || this.mReleaseEnergy);
+ : (!this.isServerSide() ? this.isEnergyOutputSide(side)
+ : side != ForgeDirection.UNKNOWN && this.mActiveEUOutputs[side.ordinal()] || this.mReleaseEnergy);
}
private boolean isEnergyInputSide(ForgeDirection side) {
if (side != ForgeDirection.UNKNOWN) {
- if (!this.getCoverInfoAtSide(side).letsEnergyIn()) {
+ if (!this.getCoverInfoAtSide(side)
+ .letsEnergyIn()) {
return false;
}
@@ -445,7 +444,8 @@ public class TileEntityBase extends TileEntity implements ILazyCoverable, IGregT
private boolean isEnergyOutputSide(ForgeDirection side) {
if (side != ForgeDirection.UNKNOWN) {
- if (!this.getCoverInfoAtSide(side).letsEnergyOut()) {
+ if (!this.getCoverInfoAtSide(side)
+ .letsEnergyOut()) {
return false;
}
@@ -550,9 +550,9 @@ public class TileEntityBase extends TileEntity implements ILazyCoverable, IGregT
@Override
public final Block getBlockAtSideAndDistance(ForgeDirection side, int aDistance) {
return this.getBlock(
- this.getOffsetX(side, aDistance),
- this.getOffsetY(side, aDistance),
- this.getOffsetZ(side, aDistance));
+ this.getOffsetX(side, aDistance),
+ this.getOffsetY(side, aDistance),
+ this.getOffsetZ(side, aDistance));
}
@Override
@@ -568,9 +568,9 @@ public class TileEntityBase extends TileEntity implements ILazyCoverable, IGregT
@Override
public final byte getMetaIDAtSideAndDistance(ForgeDirection side, int aDistance) {
return this.getMetaID(
- this.getOffsetX(side, aDistance),
- this.getOffsetY(side, aDistance),
- this.getOffsetZ(side, aDistance));
+ this.getOffsetX(side, aDistance),
+ this.getOffsetY(side, aDistance),
+ this.getOffsetZ(side, aDistance));
}
@Override
@@ -586,9 +586,9 @@ public class TileEntityBase extends TileEntity implements ILazyCoverable, IGregT
@Override
public final byte getLightLevelAtSideAndDistance(ForgeDirection side, int aDistance) {
return this.getLightLevel(
- this.getOffsetX(side, aDistance),
- this.getOffsetY(side, aDistance),
- this.getOffsetZ(side, aDistance));
+ this.getOffsetX(side, aDistance),
+ this.getOffsetY(side, aDistance),
+ this.getOffsetZ(side, aDistance));
}
@Override
@@ -604,9 +604,9 @@ public class TileEntityBase extends TileEntity implements ILazyCoverable, IGregT
@Override
public final boolean getOpacityAtSideAndDistance(ForgeDirection side, int aDistance) {
return this.getOpacity(
- this.getOffsetX(side, aDistance),
- this.getOffsetY(side, aDistance),
- this.getOffsetZ(side, aDistance));
+ this.getOffsetX(side, aDistance),
+ this.getOffsetY(side, aDistance),
+ this.getOffsetZ(side, aDistance));
}
@Override
@@ -622,9 +622,9 @@ public class TileEntityBase extends TileEntity implements ILazyCoverable, IGregT
@Override
public final boolean getSkyAtSideAndDistance(ForgeDirection side, int aDistance) {
return this.getSky(
- this.getOffsetX(side, aDistance),
- this.getOffsetY(side, aDistance),
- this.getOffsetZ(side, aDistance));
+ this.getOffsetX(side, aDistance),
+ this.getOffsetY(side, aDistance),
+ this.getOffsetZ(side, aDistance));
}
@Override
@@ -640,9 +640,9 @@ public class TileEntityBase extends TileEntity implements ILazyCoverable, IGregT
@Override
public final boolean getAirAtSideAndDistance(ForgeDirection side, int aDistance) {
return this.getAir(
- this.getOffsetX(side, aDistance),
- this.getOffsetY(side, aDistance),
- this.getOffsetZ(side, aDistance));
+ this.getOffsetX(side, aDistance),
+ this.getOffsetY(side, aDistance),
+ this.getOffsetZ(side, aDistance));
}
@Override
@@ -653,10 +653,10 @@ public class TileEntityBase extends TileEntity implements ILazyCoverable, IGregT
@Override
public final TileEntity getTileEntityAtSideAndDistance(ForgeDirection side, int aDistance) {
return aDistance == 1 ? this.getTileEntityAtSide(side)
- : this.getTileEntity(
- this.getOffsetX(side, aDistance),
- this.getOffsetY(side, aDistance),
- this.getOffsetZ(side, aDistance));
+ : this.getTileEntity(
+ this.getOffsetX(side, aDistance),
+ this.getOffsetY(side, aDistance),
+ this.getOffsetZ(side, aDistance));
}
@Override
@@ -734,50 +734,50 @@ public class TileEntityBase extends TileEntity implements ILazyCoverable, IGregT
@Override
public final Block getBlock(int aX, int aY, int aZ) {
return this.ignoreUnloadedChunks && this.crossedChunkBorder(aX, aZ) && !this.worldObj.blockExists(aX, aY, aZ)
- ? Blocks.air
- : this.worldObj.getBlock(aX, aY, aZ);
+ ? Blocks.air
+ : this.worldObj.getBlock(aX, aY, aZ);
}
@Override
public final byte getMetaID(int aX, int aY, int aZ) {
return this.ignoreUnloadedChunks && this.crossedChunkBorder(aX, aZ) && !this.worldObj.blockExists(aX, aY, aZ)
- ? 0
- : (byte) this.worldObj.getBlockMetadata(aX, aY, aZ);
+ ? 0
+ : (byte) this.worldObj.getBlockMetadata(aX, aY, aZ);
}
@Override
public final byte getLightLevel(int aX, int aY, int aZ) {
return this.ignoreUnloadedChunks && this.crossedChunkBorder(aX, aZ) && !this.worldObj.blockExists(aX, aY, aZ)
- ? 0
- : (byte) ((int) (this.worldObj.getLightBrightness(aX, aY, aZ) * 15.0F));
+ ? 0
+ : (byte) ((int) (this.worldObj.getLightBrightness(aX, aY, aZ) * 15.0F));
}
@Override
public final boolean getSky(int aX, int aY, int aZ) {
return this.ignoreUnloadedChunks && this.crossedChunkBorder(aX, aZ) && !this.worldObj.blockExists(aX, aY, aZ)
- ? true
- : this.worldObj.canBlockSeeTheSky(aX, aY, aZ);
+ ? true
+ : this.worldObj.canBlockSeeTheSky(aX, aY, aZ);
}
@Override
public final boolean getOpacity(int aX, int aY, int aZ) {
return this.ignoreUnloadedChunks && this.crossedChunkBorder(aX, aZ) && !this.worldObj.blockExists(aX, aY, aZ)
- ? false
- : GT_Utility.isOpaqueBlock(this.worldObj, aX, aY, aZ);
+ ? false
+ : GT_Utility.isOpaqueBlock(this.worldObj, aX, aY, aZ);
}
@Override
public final boolean getAir(int aX, int aY, int aZ) {
return this.ignoreUnloadedChunks && this.crossedChunkBorder(aX, aZ) && !this.worldObj.blockExists(aX, aY, aZ)
- ? true
- : GT_Utility.isBlockAir(this.worldObj, aX, aY, aZ);
+ ? true
+ : GT_Utility.isBlockAir(this.worldObj, aX, aY, aZ);
}
@Override
public final TileEntity getTileEntity(int aX, int aY, int aZ) {
return this.ignoreUnloadedChunks && this.crossedChunkBorder(aX, aZ) && !this.worldObj.blockExists(aX, aY, aZ)
- ? null
- : this.worldObj.getTileEntity(aX, aY, aZ);
+ ? null
+ : this.worldObj.getTileEntity(aX, aY, aZ);
}
@Override
@@ -807,10 +807,9 @@ public class TileEntityBase extends TileEntity implements ILazyCoverable, IGregT
return this.getTileEntityAtSide(side);
} else {
return this.mBufferedTileEntities[ordinalSide].xCoord == tX
- && this.mBufferedTileEntities[ordinalSide].yCoord == tY
- && this.mBufferedTileEntities[ordinalSide].zCoord == tZ
- ? this.mBufferedTileEntities[ordinalSide]
- : null;
+ && this.mBufferedTileEntities[ordinalSide].yCoord == tY
+ && this.mBufferedTileEntities[ordinalSide].zCoord == tZ ? this.mBufferedTileEntities[ordinalSide]
+ : null;
}
} else {
return null;
@@ -848,10 +847,10 @@ public class TileEntityBase extends TileEntity implements ILazyCoverable, IGregT
@Override
public final void sendBlockEvent(byte aID, byte aValue) {
GT_Values.NW.sendPacketToAllPlayersInRange(
- this.worldObj,
- new GT_Packet_Block_Event(this.xCoord, (short) this.yCoord, this.zCoord, aID, aValue),
- this.xCoord,
- this.zCoord);
+ this.worldObj,
+ new GT_Packet_Block_Event(this.xCoord, (short) this.yCoord, this.zCoord, aID, aValue),
+ this.xCoord,
+ this.zCoord);
}
private boolean crossedChunkBorder(int aX, int aZ) {
@@ -869,26 +868,26 @@ public class TileEntityBase extends TileEntity implements ILazyCoverable, IGregT
@Override
public byte getInternalInputRedstoneSignal(ForgeDirection side) {
return (byte) (getCoverBehaviorAtSide(side).getRedstoneInput(
- side,
- getInputRedstoneSignal(side),
- getCoverIDAtSide(side),
- getCoverDataAtSide(side),
- this) & 15);
+ side,
+ getInputRedstoneSignal(side),
+ getCoverIDAtSide(side),
+ getCoverDataAtSide(side),
+ this) & 15);
}
@Override
public byte getInputRedstoneSignal(ForgeDirection side) {
return (byte) (worldObj
- .getIndirectPowerLevelTo(getOffsetX(side, 1), getOffsetY(side, 1), getOffsetZ(side, 1), side.ordinal())
- & 15);
+ .getIndirectPowerLevelTo(getOffsetX(side, 1), getOffsetY(side, 1), getOffsetZ(side, 1), side.ordinal())
+ & 15);
}
@Override
public byte getOutputRedstoneSignal(ForgeDirection side) {
return getCoverBehaviorAtSide(side)
- .manipulatesSidedRedstoneOutput(side, getCoverIDAtSide(side), getCoverDataAtSide(side), this)
- ? mSidedRedstone[side.ordinal()]
- : getGeneralRS(side);
+ .manipulatesSidedRedstoneOutput(side, getCoverIDAtSide(side), getCoverDataAtSide(side), this)
+ ? mSidedRedstone[side.ordinal()]
+ : getGeneralRS(side);
}
public boolean allowGeneralRedstoneOutput() {
@@ -903,7 +902,7 @@ public class TileEntityBase extends TileEntity implements ILazyCoverable, IGregT
@Override
public void setInternalOutputRedstoneSignal(ForgeDirection side, byte aStrength) {
if (!getCoverBehaviorAtSide(side)
- .manipulatesSidedRedstoneOutput(side, getCoverIDAtSide(side), getCoverDataAtSide(side), this))
+ .manipulatesSidedRedstoneOutput(side, getCoverIDAtSide(side), getCoverDataAtSide(side), this))
setOutputRedstoneSignal(side, aStrength);
}
@@ -959,7 +958,8 @@ public class TileEntityBase extends TileEntity implements ILazyCoverable, IGregT
@Override
public void setCoverItemAtSide(ForgeDirection side, ItemStack aCover) {
- GregTech_API.getCoverBehaviorNew(aCover).placeCover(side, aCover, this);
+ GregTech_API.getCoverBehaviorNew(aCover)
+ .placeCover(side, aCover, this);
}
@Override
@@ -1028,17 +1028,17 @@ public class TileEntityBase extends TileEntity implements ILazyCoverable, IGregT
@Override
public boolean dropCover(ForgeDirection side, ForgeDirection droppedSide, boolean aForced) {
if (getCoverBehaviorAtSide(side)
- .onCoverRemoval(side, getCoverIDAtSide(side), mCoverData[side.ordinal()], this, aForced) || aForced) {
+ .onCoverRemoval(side, getCoverIDAtSide(side), mCoverData[side.ordinal()], this, aForced) || aForced) {
ItemStack tStack = getCoverBehaviorAtSide(side)
- .getDrop(side, getCoverIDAtSide(side), getCoverDataAtSide(side), this);
+ .getDrop(side, getCoverIDAtSide(side), getCoverDataAtSide(side), this);
if (tStack != null) {
tStack.setTagCompound(null);
EntityItem tEntity = new EntityItem(
- worldObj,
- getOffsetX(droppedSide, 1) + 0.5,
- getOffsetY(droppedSide, 1) + 0.5,
- getOffsetZ(droppedSide, 1) + 0.5,
- tStack);
+ worldObj,
+ getOffsetX(droppedSide, 1) + 0.5,
+ getOffsetY(droppedSide, 1) + 0.5,
+ getOffsetZ(droppedSide, 1) + 0.5,
+ tStack);
tEntity.motionX = 0;
tEntity.motionY = 0;
tEntity.motionZ = 0;
@@ -1074,8 +1074,8 @@ public class TileEntityBase extends TileEntity implements ILazyCoverable, IGregT
public byte getStrongOutputRedstoneSignal(ForgeDirection side) {
final int ordinalSide = side.ordinal();
return side != ForgeDirection.UNKNOWN && (mStrongRedstone & (1 << ordinalSide)) != 0
- ? (byte) (mSidedRedstone[ordinalSide] & 15)
- : 0;
+ ? (byte) (mSidedRedstone[ordinalSide] & 15)
+ : 0;
}
@Override
@@ -1087,23 +1087,22 @@ public class TileEntityBase extends TileEntity implements ILazyCoverable, IGregT
@Override
public long injectEnergyUnits(ForgeDirection side, long aVoltage, long aAmperage) {
if (!canAccessData() || !mMetaTileEntity.isElectric()
- || !inputEnergyFrom(side)
- || aAmperage <= 0
- || aVoltage <= 0
- || getStoredEU() >= getEUCapacity()
- || mMetaTileEntity.maxAmperesIn() <= mAcceptedAmperes)
- return 0;
+ || !inputEnergyFrom(side)
+ || aAmperage <= 0
+ || aVoltage <= 0
+ || getStoredEU() >= getEUCapacity()
+ || mMetaTileEntity.maxAmperesIn() <= mAcceptedAmperes) return 0;
if (aVoltage > getInputVoltage()) {
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;
@@ -1114,9 +1113,8 @@ public class TileEntityBase extends TileEntity implements ILazyCoverable, IGregT
@Override
public boolean drainEnergyUnits(ForgeDirection side, long aVoltage, long aAmperage) {
if (!canAccessData() || !mMetaTileEntity.isElectric()
- || !outputsEnergyTo(side)
- || getStoredEU() - (aVoltage * aAmperage) < mMetaTileEntity.getMinimumStoredEU())
- return false;
+ || !outputsEnergyTo(side)
+ || getStoredEU() - (aVoltage * aAmperage) < mMetaTileEntity.getMinimumStoredEU()) return false;
if (decreaseStoredEU(aVoltage * aAmperage, false)) {
mAverageEUOutput[mAverageEUOutputIndex] += aVoltage * aAmperage;
return true;
@@ -1151,8 +1149,8 @@ public class TileEntityBase extends TileEntity implements ILazyCoverable, IGregT
public double getOfferedEnergy() {
return (canAccessData() && getStoredEU() - mMetaTileEntity.getMinimumStoredEU() >= oOutput)
- ? Math.max(0, oOutput)
- : 0;
+ ? Math.max(0, oOutput)
+ : 0;
}
public void drawEnergy(double amount) {
@@ -1232,8 +1230,8 @@ public class TileEntityBase extends TileEntity implements ILazyCoverable, IGregT
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;
return true;
}
@@ -1288,13 +1286,15 @@ public class TileEntityBase extends TileEntity implements ILazyCoverable, IGregT
public void doEnergyExplosion() {
if (this.getUniversalEnergyCapacity() > 0L
- && this.getUniversalEnergyStored() >= this.getUniversalEnergyCapacity() / 5L) {
+ && this.getUniversalEnergyStored() >= this.getUniversalEnergyCapacity() / 5L) {
this.doExplosion(
- this.oOutput * (long) (this.getUniversalEnergyStored() >= this.getUniversalEnergyCapacity() ? 4
- : (this.getUniversalEnergyStored() >= this.getUniversalEnergyCapacity() / 2L ? 2 : 1)));
+ this.oOutput * (long) (this.getUniversalEnergyStored() >= this.getUniversalEnergyCapacity() ? 4
+ : (this.getUniversalEnergyStored() >= this.getUniversalEnergyCapacity() / 2L ? 2 : 1)));
GT_Mod arg9999 = GT_Mod.instance;
- GT_Mod.achievements
- .issueAchievement(this.getWorldObj().getPlayerEntityByName(this.mOwnerName), "electricproblems");
+ GT_Mod.achievements.issueAchievement(
+ this.getWorldObj()
+ .getPlayerEntityByName(this.mOwnerName),
+ "electricproblems");
}
}
diff --git a/src/main/java/gtPlusPlus/core/tileentities/general/TileEntityCircuitProgrammer.java b/src/main/java/gtPlusPlus/core/tileentities/general/TileEntityCircuitProgrammer.java
index 895c68029d..0be6959b8f 100644
--- a/src/main/java/gtPlusPlus/core/tileentities/general/TileEntityCircuitProgrammer.java
+++ b/src/main/java/gtPlusPlus/core/tileentities/general/TileEntityCircuitProgrammer.java
@@ -44,7 +44,8 @@ public class TileEntityCircuitProgrammer extends TileEntity implements ISidedInv
// Rename to hasCircuitToConfigure
public final boolean hasCircuitToConfigure() {
- for (ItemStack i : this.getInventory().getInventory()) {
+ for (ItemStack i : this.getInventory()
+ .getInventory()) {
if (i == null) {
continue;
} else {
@@ -59,7 +60,9 @@ public class TileEntityCircuitProgrammer extends TileEntity implements ISidedInv
}
public boolean addOutput() {
- ItemStack[] aInputs = this.getInventory().getInventory().clone();
+ ItemStack[] aInputs = this.getInventory()
+ .getInventory()
+ .clone();
// Check if there is output in slot.
Boolean hasOutput = false;
if (aInputs[25] != null) {
@@ -179,37 +182,44 @@ public class TileEntityCircuitProgrammer extends TileEntity implements ISidedInv
@Override
public int getSizeInventory() {
- return this.getInventory().getSizeInventory();
+ return this.getInventory()
+ .getSizeInventory();
}
@Override
public ItemStack getStackInSlot(final int slot) {
- return this.getInventory().getStackInSlot(slot);
+ return this.getInventory()
+ .getStackInSlot(slot);
}
@Override
public ItemStack decrStackSize(final int slot, final int count) {
- return this.getInventory().decrStackSize(slot, count);
+ return this.getInventory()
+ .decrStackSize(slot, count);
}
@Override
public ItemStack getStackInSlotOnClosing(final int slot) {
- return this.getInventory().getStackInSlotOnClosing(slot);
+ return this.getInventory()
+ .getStackInSlotOnClosing(slot);
}
@Override
public void setInventorySlotContents(final int slot, final ItemStack stack) {
- this.getInventory().setInventorySlotContents(slot, stack);
+ this.getInventory()
+ .setInventorySlotContents(slot, stack);
}
@Override
public int getInventoryStackLimit() {
- return this.getInventory().getInventoryStackLimit();
+ return this.getInventory()
+ .getInventoryStackLimit();
}
@Override
public boolean isUseableByPlayer(final EntityPlayer entityplayer) {
- return this.getInventory().isUseableByPlayer(entityplayer);
+ return this.getInventory()
+ .isUseableByPlayer(entityplayer);
}
@Override
@@ -217,7 +227,8 @@ public class TileEntityCircuitProgrammer extends TileEntity implements ISidedInv
this.worldObj.addBlockEvent(this.xCoord, this.yCoord, this.zCoord, this.getBlockType(), 1, 1);
this.worldObj.notifyBlocksOfNeighborChange(this.xCoord, this.yCoord, this.zCoord, this.getBlockType());
this.worldObj.notifyBlocksOfNeighborChange(this.xCoord, this.yCoord - 1, this.zCoord, this.getBlockType());
- this.getInventory().openInventory();
+ this.getInventory()
+ .openInventory();
}
@Override
@@ -225,18 +236,21 @@ public class TileEntityCircuitProgrammer extends TileEntity implements ISidedInv
this.worldObj.addBlockEvent(this.xCoord, this.yCoord, this.zCoord, this.getBlockType(), 1, 1);
this.worldObj.notifyBlocksOfNeighborChange(this.xCoord, this.yCoord, this.zCoord, this.getBlockType());
this.worldObj.notifyBlocksOfNeighborChange(this.xCoord, this.yCoord - 1, this.zCoord, this.getBlockType());
- this.getInventory().closeInventory();
+ this.getInventory()
+ .closeInventory();
}
@Override
public boolean isItemValidForSlot(final int slot, final ItemStack itemstack) {
- return this.getInventory().isItemValidForSlot(slot, itemstack);
+ return this.getInventory()
+ .isItemValidForSlot(slot, itemstack);
}
@Override
public int[] getAccessibleSlotsFromSide(final int p_94128_1_) {
final int[] accessibleSides = new int[this.getSizeInventory()];
- for (int r = 0; r < this.getInventory().getSizeInventory(); r++) {
+ for (int r = 0; r < this.getInventory()
+ .getSizeInventory(); r++) {
accessibleSides[r] = r;
}
return accessibleSides;
diff --git a/src/main/java/gtPlusPlus/core/tileentities/general/TileEntityDecayablesChest.java b/src/main/java/gtPlusPlus/core/tileentities/general/TileEntityDecayablesChest.java
index 36df996eb0..b641f2e99e 100644
--- a/src/main/java/gtPlusPlus/core/tileentities/general/TileEntityDecayablesChest.java
+++ b/src/main/java/gtPlusPlus/core/tileentities/general/TileEntityDecayablesChest.java
@@ -64,7 +64,8 @@ public class TileEntityDecayablesChest extends TileEntity implements ISidedInven
}
if ((this.tickCount % 20) == 0) {
- for (ItemStack inv : this.getInventory().getInventory()) {
+ for (ItemStack inv : this.getInventory()
+ .getInventory()) {
if (inv == null) {
continue;
}
@@ -151,37 +152,44 @@ public class TileEntityDecayablesChest extends TileEntity implements ISidedInven
@Override
public int getSizeInventory() {
- return this.getInventory().getSizeInventory();
+ return this.getInventory()
+ .getSizeInventory();
}
@Override
public ItemStack getStackInSlot(final int slot) {
- return this.getInventory().getStackInSlot(slot);
+ return this.getInventory()
+ .getStackInSlot(slot);
}
@Override
public ItemStack decrStackSize(final int slot, final int count) {
- return this.getInventory().decrStackSize(slot, count);
+ return this.getInventory()
+ .decrStackSize(slot, count);
}
@Override
public ItemStack getStackInSlotOnClosing(final int slot) {
- return this.getInventory().getStackInSlotOnClosing(slot);
+ return this.getInventory()
+ .getStackInSlotOnClosing(slot);
}
@Override
public void setInventorySlotContents(final int slot, final ItemStack stack) {
- this.getInventory().setInventorySlotContents(slot, stack);
+ this.getInventory()
+ .setInventorySlotContents(slot, stack);
}
@Override
public int getInventoryStackLimit() {
- return this.getInventory().getInventoryStackLimit();
+ return this.getInventory()
+ .getInventoryStackLimit();
}
@Override
public boolean isUseableByPlayer(final EntityPlayer entityplayer) {
- return this.getInventory().isUseableByPlayer(entityplayer);
+ return this.getInventory()
+ .isUseableByPlayer(entityplayer);
}
@Override
@@ -194,10 +202,11 @@ public class TileEntityDecayablesChest extends TileEntity implements ISidedInven
cachedChestType = 1;
}
this.worldObj
- .addBlockEvent(this.xCoord, this.yCoord, this.zCoord, this.getBlockType(), 1, this.numPlayersUsing);
+ .addBlockEvent(this.xCoord, this.yCoord, this.zCoord, this.getBlockType(), 1, this.numPlayersUsing);
this.worldObj.notifyBlocksOfNeighborChange(this.xCoord, this.yCoord, this.zCoord, this.getBlockType());
this.worldObj.notifyBlocksOfNeighborChange(this.xCoord, this.yCoord - 1, this.zCoord, this.getBlockType());
- this.getInventory().openInventory();
+ this.getInventory()
+ .openInventory();
}
@Override
@@ -207,21 +216,24 @@ public class TileEntityDecayablesChest extends TileEntity implements ISidedInven
cachedChestType = 1;
}
this.worldObj
- .addBlockEvent(this.xCoord, this.yCoord, this.zCoord, this.getBlockType(), 1, this.numPlayersUsing);
+ .addBlockEvent(this.xCoord, this.yCoord, this.zCoord, this.getBlockType(), 1, this.numPlayersUsing);
this.worldObj.notifyBlocksOfNeighborChange(this.xCoord, this.yCoord, this.zCoord, this.getBlockType());
this.worldObj.notifyBlocksOfNeighborChange(this.xCoord, this.yCoord - 1, this.zCoord, this.getBlockType());
- this.getInventory().closeInventory();
+ this.getInventory()
+ .closeInventory();
}
@Override
public boolean isItemValidForSlot(final int slot, final ItemStack itemstack) {
- return this.getInventory().isItemValidForSlot(slot, itemstack);
+ return this.getInventory()
+ .isItemValidForSlot(slot, itemstack);
}
@Override
public int[] getAccessibleSlotsFromSide(final int p_94128_1_) {
final int[] accessibleSides = new int[this.getSizeInventory()];
- for (int r = 0; r < this.getInventory().getSizeInventory(); r++) {
+ for (int r = 0; r < this.getInventory()
+ .getSizeInventory(); r++) {
accessibleSides[r] = r;
}
return accessibleSides;
@@ -229,12 +241,14 @@ public class TileEntityDecayablesChest extends TileEntity implements ISidedInven
@Override
public boolean canInsertItem(final int p_102007_1_, final ItemStack p_102007_2_, final int p_102007_3_) {
- return this.getInventory().isItemValidForSlot(0, p_102007_2_);
+ return this.getInventory()
+ .isItemValidForSlot(0, p_102007_2_);
}
@Override
public boolean canExtractItem(final int p_102008_1_, final ItemStack p_102008_2_, final int p_102008_3_) {
- return this.getInventory().isItemValidForSlot(0, p_102008_2_);
+ return this.getInventory()
+ .isItemValidForSlot(0, p_102008_2_);
}
public String getCustomName() {
@@ -284,17 +298,17 @@ public class TileEntityDecayablesChest extends TileEntity implements ISidedInven
f = 0.04F;
double d2;
if (this.numPlayersUsing > 0 && this.lidAngle == 0.0F
- && this.adjacentChestZNeg == null
- && this.adjacentChestXNeg == null) {
+ && this.adjacentChestZNeg == null
+ && this.adjacentChestXNeg == null) {
double d1 = (double) this.xCoord + 0.5D;
d2 = (double) this.zCoord + 0.5D;
this.worldObj.playSoundEffect(
- d1,
- (double) this.yCoord + 0.5D,
- d2,
- "random.chestopen",
- 0.5F,
- this.worldObj.rand.nextFloat() * 0.1F + 0.9F);
+ d1,
+ (double) this.yCoord + 0.5D,
+ d2,
+ "random.chestopen",
+ 0.5F,
+ this.worldObj.rand.nextFloat() * 0.1F + 0.9F);
}
if (this.numPlayersUsing == 0 && this.lidAngle > 0.0F || this.numPlayersUsing > 0 && this.lidAngle < 1.0F) {
@@ -314,12 +328,12 @@ public class TileEntityDecayablesChest extends TileEntity implements ISidedInven
d2 = (double) this.xCoord + 0.5D;
double d0 = (double) this.zCoord + 0.5D;
this.worldObj.playSoundEffect(
- d2,
- (double) this.yCoord + 0.5D,
- d0,
- "random.chestclosed",
- 0.5F,
- this.worldObj.rand.nextFloat() * 0.1F + 0.9F);
+ d2,
+ (double) this.yCoord + 0.5D,
+ d0,
+ "random.chestclosed",
+ 0.5F,
+ this.worldObj.rand.nextFloat() * 0.1F + 0.9F);
}
if (this.lidAngle < 0.0F) {
diff --git a/src/main/java/gtPlusPlus/core/tileentities/general/TileEntityFishTrap.java b/src/main/java/gtPlusPlus/core/tileentities/general/TileEntityFishTrap.java
index ba958fafad..1a09b6b423 100644
--- a/src/main/java/gtPlusPlus/core/tileentities/general/TileEntityFishTrap.java
+++ b/src/main/java/gtPlusPlus/core/tileentities/general/TileEntityFishTrap.java
@@ -74,7 +74,8 @@ public class TileEntityFishTrap extends TileEntity implements ISidedInventory {
if (loot == null) {
return;
}
- for (final ItemStack contents : this.getInventory().getInventory()) {
+ for (final ItemStack contents : this.getInventory()
+ .getInventory()) {
if (GT_Utility.areStacksEqual(loot, contents)) {
if (contents.stackSize < contents.getMaxStackSize()) {
contents.stackSize++;
@@ -84,9 +85,11 @@ public class TileEntityFishTrap extends TileEntity implements ISidedInventory {
}
}
int checkingSlot = 0;
- for (final ItemStack contents : this.getInventory().getInventory()) {
+ for (final ItemStack contents : this.getInventory()
+ .getInventory()) {
if (contents == null) {
- this.getInventory().setInventorySlotContents(checkingSlot, loot);
+ this.getInventory()
+ .setInventorySlotContents(checkingSlot, loot);
this.markDirty();
return;
}
@@ -150,7 +153,7 @@ public class TileEntityFishTrap extends TileEntity implements ISidedInventory {
}
if ((waterBlocksToTickRate[this.surroundingWaterBlocks] != 0)
- && this.tickCount > waterBlocksToTickRate[this.surroundingWaterBlocks]) {
+ && this.tickCount > waterBlocksToTickRate[this.surroundingWaterBlocks]) {
int aExtraLootChance = MathUtils.randInt(1, 1000);
if (aExtraLootChance >= 999) {
this.tryAddLoot();
@@ -187,37 +190,44 @@ public class TileEntityFishTrap extends TileEntity implements ISidedInventory {
@Override
public int getSizeInventory() {
- return this.getInventory().getSizeInventory();
+ return this.getInventory()
+ .getSizeInventory();
}
@Override
public ItemStack getStackInSlot(final int slot) {
- return this.getInventory().getStackInSlot(slot);
+ return this.getInventory()
+ .getStackInSlot(slot);
}
@Override
public ItemStack decrStackSize(final int slot, final int count) {
- return this.getInventory().decrStackSize(slot, count);
+ return this.getInventory()
+ .decrStackSize(slot, count);
}
@Override
public ItemStack getStackInSlotOnClosing(final int slot) {
- return this.getInventory().getStackInSlotOnClosing(slot);
+ return this.getInventory()
+ .getStackInSlotOnClosing(slot);
}
@Override
public void setInventorySlotContents(final int slot, final ItemStack stack) {
- this.getInventory().setInventorySlotContents(slot, stack);
+ this.getInventory()
+ .setInventorySlotContents(slot, stack);
}
@Override
public int getInventoryStackLimit() {
- return this.getInventory().getInventoryStackLimit();
+ return this.getInventory()
+ .getInventoryStackLimit();
}
@Override
public boolean isUseableByPlayer(final EntityPlayer entityplayer) {
- return this.getInventory().isUseableByPlayer(entityplayer);
+ return this.getInventory()
+ .isUseableByPlayer(entityplayer);
}
@Override
@@ -225,7 +235,8 @@ public class TileEntityFishTrap extends TileEntity implements ISidedInventory {
this.worldObj.addBlockEvent(this.xCoord, this.yCoord, this.zCoord, this.getBlockType(), 1, 1);
this.worldObj.notifyBlocksOfNeighborChange(this.xCoord, this.yCoord, this.zCoord, this.getBlockType());
this.worldObj.notifyBlocksOfNeighborChange(this.xCoord, this.yCoord - 1, this.zCoord, this.getBlockType());
- this.getInventory().openInventory();
+ this.getInventory()
+ .openInventory();
}
@Override
@@ -233,18 +244,21 @@ public class TileEntityFishTrap extends TileEntity implements ISidedInventory {
this.worldObj.addBlockEvent(this.xCoord, this.yCoord, this.zCoord, this.getBlockType(), 1, 1);
this.worldObj.notifyBlocksOfNeighborChange(this.xCoord, this.yCoord, this.zCoord, this.getBlockType());
this.worldObj.notifyBlocksOfNeighborChange(this.xCoord, this.yCoord - 1, this.zCoord, this.getBlockType());
- this.getInventory().closeInventory();
+ this.getInventory()
+ .closeInventory();
}
@Override
public boolean isItemValidForSlot(final int slot, final ItemStack itemstack) {
- return this.getInventory().isItemValidForSlot(slot, itemstack);
+ return this.getInventory()
+ .isItemValidForSlot(slot, itemstack);
}
@Override
public int[] getAccessibleSlotsFromSide(final int p_94128_1_) {
final int[] accessibleSides = new int[this.getSizeInventory()];
- for (int r = 0; r < this.getInventory().getSizeInventory(); r++) {
+ for (int r = 0; r < this.getInventory()
+ .getSizeInventory(); r++) {
accessibleSides[r] = r;
}
return accessibleSides;
diff --git a/src/main/java/gtPlusPlus/core/tileentities/general/TileEntityInfiniteFluid.java b/src/main/java/gtPlusPlus/core/tileentities/general/TileEntityInfiniteFluid.java
index 6add141015..fd528c589d 100644
--- a/src/main/java/gtPlusPlus/core/tileentities/general/TileEntityInfiniteFluid.java
+++ b/src/main/java/gtPlusPlus/core/tileentities/general/TileEntityInfiniteFluid.java
@@ -56,14 +56,14 @@ public class TileEntityInfiniteFluid extends TileEntity implements IFluidHandler
if (this != null) {
FluidEvent.fireEvent(
- new FluidEvent.FluidDrainingEvent(
- fluid,
- this.getWorldObj(),
- this.xCoord,
- this.yCoord,
- this.zCoord,
- this.tank,
- 0));
+ new FluidEvent.FluidDrainingEvent(
+ fluid,
+ this.getWorldObj(),
+ this.xCoord,
+ this.yCoord,
+ this.zCoord,
+ this.tank,
+ 0));
}
}
return stack;
diff --git a/src/main/java/gtPlusPlus/core/tileentities/general/TileEntityVolumetricFlaskSetter.java b/src/main/java/gtPlusPlus/core/tileentities/general/TileEntityVolumetricFlaskSetter.java
index a7fb226411..a9bc2b0049 100644
--- a/src/main/java/gtPlusPlus/core/tileentities/general/TileEntityVolumetricFlaskSetter.java
+++ b/src/main/java/gtPlusPlus/core/tileentities/general/TileEntityVolumetricFlaskSetter.java
@@ -60,11 +60,13 @@ public class TileEntityVolumetricFlaskSetter extends TileEntity implements ISide
// Rename to hasCircuitToConfigure
public final boolean hasFlask() {
- for (int i = 0; i < this.getInventory().getInventory().length - 1; i++) {
+ for (int i = 0; i < this.getInventory()
+ .getInventory().length - 1; i++) {
if (i == Container_VolumetricFlaskSetter.SLOT_OUTPUT) {
continue;
}
- if (this.getInventory().getInventory()[i] != null) {
+ if (this.getInventory()
+ .getInventory()[i] != null) {
return true;
}
}
@@ -116,7 +118,9 @@ public class TileEntityVolumetricFlaskSetter extends TileEntity implements ISide
return false;
}
- ItemStack[] aInputs = this.getInventory().getInventory().clone();
+ ItemStack[] aInputs = this.getInventory()
+ .getInventory()
+ .clone();
// Check if there is output in slot.
Boolean hasOutput = false;
@@ -165,17 +169,15 @@ public class TileEntityVolumetricFlaskSetter extends TileEntity implements ISide
// Check that the Circuit in the Output slot is not null and the same type as the circuit input.
if (aTypeInCheckedSlot > 0 && (aTypeInSlot == aTypeInCheckedSlot) && f != null) {
if (g.getItem() == f.getItem()
- && VolumetricFlaskHelper.getFlaskCapacity(f) == getCapacityForSlot(e)
- && ((aInputFluidStack == null && aFluidInCheckedSlot == null)
- || aInputFluidStack.isFluidEqual(aFluidInCheckedSlot))) {
+ && VolumetricFlaskHelper.getFlaskCapacity(f) == getCapacityForSlot(e)
+ && ((aInputFluidStack == null && aFluidInCheckedSlot == null)
+ || aInputFluidStack.isFluidEqual(aFluidInCheckedSlot))) {
log(
- "Input Slot Flask Contains: "
- + (aInputFluidStack != null ? aInputFluidStack.getLocalizedName()
- : "Empty"));
+ "Input Slot Flask Contains: "
+ + (aInputFluidStack != null ? aInputFluidStack.getLocalizedName() : "Empty"));
log(
- "Output Slot Flask Contains: "
- + (aFluidInCheckedSlot != null ? aFluidInCheckedSlot.getLocalizedName()
- : "Empty"));
+ "Output Slot Flask Contains: "
+ + (aFluidInCheckedSlot != null ? aFluidInCheckedSlot.getLocalizedName() : "Empty"));
aSize = f.stackSize + g.stackSize;
if (aSize > 16) {
aInputStack = g.copy();
@@ -276,37 +278,44 @@ public class TileEntityVolumetricFlaskSetter extends TileEntity implements ISide
@Override
public int getSizeInventory() {
- return this.getInventory().getSizeInventory();
+ return this.getInventory()
+ .getSizeInventory();
}
@Override
public ItemStack getStackInSlot(final int slot) {
- return this.getInventory().getStackInSlot(slot);
+ return this.getInventory()
+ .getStackInSlot(slot);
}
@Override
public ItemStack decrStackSize(final int slot, final int count) {
- return this.getInventory().decrStackSize(slot, count);
+ return this.getInventory()
+ .decrStackSize(slot, count);
}
@Override
public ItemStack getStackInSlotOnClosing(final int slot) {
- return this.getInventory().getStackInSlotOnClosing(slot);
+ return this.getInventory()
+ .getStackInSlotOnClosing(slot);
}
@Override
public void setInventorySlotContents(final int slot, final ItemStack stack) {
- this.getInventory().setInventorySlotContents(slot, stack);
+ this.getInventory()
+ .setInventorySlotContents(slot, stack);
}
@Override
public int getInventoryStackLimit() {
- return this.getInventory().getInventoryStackLimit();
+ return this.getInventory()
+ .getInventoryStackLimit();
}
@Override
public boolean isUseableByPlayer(final EntityPlayer entityplayer) {
- return this.getInventory().isUseableByPlayer(entityplayer);
+ return this.getInventory()
+ .isUseableByPlayer(entityplayer);
}
@Override
@@ -314,7 +323,8 @@ public class TileEntityVolumetricFlaskSetter extends TileEntity implements ISide
this.worldObj.addBlockEvent(this.xCoord, this.yCoord, this.zCoord, this.getBlockType(), 1, 1);
this.worldObj.notifyBlocksOfNeighborChange(this.xCoord, this.yCoord, this.zCoord, this.getBlockType());
this.worldObj.notifyBlocksOfNeighborChange(this.xCoord, this.yCoord - 1, this.zCoord, this.getBlockType());
- this.getInventory().openInventory();
+ this.getInventory()
+ .openInventory();
}
@Override
@@ -322,18 +332,21 @@ public class TileEntityVolumetricFlaskSetter extends TileEntity implements ISide
this.worldObj.addBlockEvent(this.xCoord, this.yCoord, this.zCoord, this.getBlockType(), 1, 1);
this.worldObj.notifyBlocksOfNeighborChange(this.xCoord, this.yCoord, this.zCoord, this.getBlockType());
this.worldObj.notifyBlocksOfNeighborChange(this.xCoord, this.yCoord - 1, this.zCoord, this.getBlockType());
- this.getInventory().closeInventory();
+ this.getInventory()
+ .closeInventory();
}
@Override
public boolean isItemValidForSlot(final int slot, final ItemStack itemstack) {
- return this.getInventory().isItemValidForSlot(slot, itemstack);
+ return this.getInventory()
+ .isItemValidForSlot(slot, itemstack);
}
@Override
public int[] getAccessibleSlotsFromSide(final int p_94128_1_) {
final int[] accessibleSides = new int[this.getSizeInventory()];
- for (int r = 0; r < this.getInventory().getSizeInventory(); r++) {
+ for (int r = 0; r < this.getInventory()
+ .getSizeInventory(); r++) {
accessibleSides[r] = r;
}
return accessibleSides;
diff --git a/src/main/java/gtPlusPlus/core/tileentities/machines/TileEntityAdvPooCollector.java b/src/main/java/gtPlusPlus/core/tileentities/machines/TileEntityAdvPooCollector.java
index d3add73de7..5e0aaf8370 100644
--- a/src/main/java/gtPlusPlus/core/tileentities/machines/TileEntityAdvPooCollector.java
+++ b/src/main/java/gtPlusPlus/core/tileentities/machines/TileEntityAdvPooCollector.java
@@ -103,13 +103,12 @@ public class TileEntityAdvPooCollector extends TileEntityBaseFluidCollector {
}
}
aPooAmount = Math.max(Math.min(this.tank.getCapacity() - this.tank.getFluidAmount(), aPooAmount), 1);
- return Math
- .max(
- 1,
- (aPooAmount
- * MathUtils.getRandomFromArray(
- new int[] { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4 })
- / 10));
+ return Math.max(
+ 1,
+ (aPooAmount
+ * MathUtils
+ .getRandomFromArray(new int[] { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4 })
+ / 10));
} else {
return 0;
}
diff --git a/src/main/java/gtPlusPlus/core/tileentities/machines/TileEntityBaseFluidCollector.java b/src/main/java/gtPlusPlus/core/tileentities/machines/TileEntityBaseFluidCollector.java
index 487d3d90eb..6340415e82 100644
--- a/src/main/java/gtPlusPlus/core/tileentities/machines/TileEntityBaseFluidCollector.java
+++ b/src/main/java/gtPlusPlus/core/tileentities/machines/TileEntityBaseFluidCollector.java
@@ -75,14 +75,14 @@ public abstract class TileEntityBaseFluidCollector extends TileEntityBase implem
if (this != null) {
FluidEvent.fireEvent(
- new FluidEvent.FluidDrainingEvent(
- fluid,
- this.getWorldObj(),
- this.xCoord,
- this.yCoord,
- this.zCoord,
- this.tank,
- 0));
+ new FluidEvent.FluidDrainingEvent(
+ fluid,
+ this.getWorldObj(),
+ this.xCoord,
+ this.yCoord,
+ this.zCoord,
+ this.tank,
+ 0));
}
}
return stack;
@@ -210,7 +210,7 @@ public abstract class TileEntityBaseFluidCollector extends TileEntityBase implem
if (this.tank.getFluidAmount() < this.tank.getCapacity()) {
int aFluidAmount = onPostTick(aEntity);
aFluidAmount = Math
- .max(Math.min(this.tank.getCapacity() - this.tank.getFluidAmount(), aFluidAmount), 1);
+ .max(Math.min(this.tank.getCapacity() - this.tank.getFluidAmount(), aFluidAmount), 1);
this.tank.fill(FluidUtils.getFluidStack(fluidToProvide(), aFluidAmount), true);
} else {
ItemStack aDirtStack = ItemUtils.getSimpleStack(itemToSpawnInWorldIfTankIsFull(), 1);
diff --git a/src/main/java/gtPlusPlus/core/tileentities/machines/TileEntityPestKiller.java b/src/main/java/gtPlusPlus/core/tileentities/machines/TileEntityPestKiller.java
index ac78658403..dfdb7104b0 100644
--- a/src/main/java/gtPlusPlus/core/tileentities/machines/TileEntityPestKiller.java
+++ b/src/main/java/gtPlusPlus/core/tileentities/machines/TileEntityPestKiller.java
@@ -116,7 +116,8 @@ public class TileEntityPestKiller extends TileEntity implements ISidedInventory,
for (Object e : o) {
if (e instanceof Entity) {
for (Class<?> C : mEntityMap) {
- if (e.getClass().equals(C) || C.isAssignableFrom(e.getClass())) {
+ if (e.getClass()
+ .equals(C) || C.isAssignableFrom(e.getClass())) {
entities.put((Entity) e);
}
}
@@ -136,7 +137,8 @@ public class TileEntityPestKiller extends TileEntity implements ISidedInventory,
for (Object e : o) {
if (e instanceof Entity) {
for (Class<?> C : mEntityMap) {
- if (e.getClass().equals(C) || C.isAssignableFrom(e.getClass())) {
+ if (e.getClass()
+ .equals(C) || C.isAssignableFrom(e.getClass())) {
entities.put((Entity) e);
}
}
@@ -249,37 +251,44 @@ public class TileEntityPestKiller extends TileEntity implements ISidedInventory,
@Override
public int getSizeInventory() {
- return this.getInventory().getSizeInventory();
+ return this.getInventory()
+ .getSizeInventory();
}
@Override
public ItemStack getStackInSlot(final int slot) {
- return this.getInventory().getStackInSlot(slot);
+ return this.getInventory()
+ .getStackInSlot(slot);
}
@Override
public ItemStack decrStackSize(final int slot, final int count) {
- return this.getInventory().decrStackSize(slot, count);
+ return this.getInventory()
+ .decrStackSize(slot, count);
}
@Override
public ItemStack getStackInSlotOnClosing(final int slot) {
- return this.getInventory().getStackInSlotOnClosing(slot);
+ return this.getInventory()
+ .getStackInSlotOnClosing(slot);
}
@Override
public void setInventorySlotContents(final int slot, final ItemStack stack) {
- this.getInventory().setInventorySlotContents(slot, stack);
+ this.getInventory()
+ .setInventorySlotContents(slot, stack);
}
@Override
public int getInventoryStackLimit() {
- return this.getInventory().getInventoryStackLimit();
+ return this.getInventory()
+ .getInventoryStackLimit();
}
@Override
public boolean isUseableByPlayer(final EntityPlayer entityplayer) {
- return this.getInventory().isUseableByPlayer(entityplayer);
+ return this.getInventory()
+ .isUseableByPlayer(entityplayer);
}
@Override
@@ -287,7 +296,8 @@ public class TileEntityPestKiller extends TileEntity implements ISidedInventory,
this.worldObj.addBlockEvent(this.xCoord, this.yCoord, this.zCoord, this.getBlockType(), 1, 1);
this.worldObj.notifyBlocksOfNeighborChange(this.xCoord, this.yCoord, this.zCoord, this.getBlockType());
this.worldObj.notifyBlocksOfNeighborChange(this.xCoord, this.yCoord - 1, this.zCoord, this.getBlockType());
- this.getInventory().openInventory();
+ this.getInventory()
+ .openInventory();
}
@Override
@@ -295,18 +305,21 @@ public class TileEntityPestKiller extends TileEntity implements ISidedInventory,
this.worldObj.addBlockEvent(this.xCoord, this.yCoord, this.zCoord, this.getBlockType(), 1, 1);
this.worldObj.notifyBlocksOfNeighborChange(this.xCoord, this.yCoord, this.zCoord, this.getBlockType());
this.worldObj.notifyBlocksOfNeighborChange(this.xCoord, this.yCoord - 1, this.zCoord, this.getBlockType());
- this.getInventory().closeInventory();
+ this.getInventory()
+ .closeInventory();
}
@Override
public boolean isItemValidForSlot(final int slot, final ItemStack itemstack) {
- return this.getInventory().isItemValidForSlot(slot, itemstack);
+ return this.getInventory()
+ .isItemValidForSlot(slot, itemstack);
}
@Override
public int[] getAccessibleSlotsFromSide(final int p_94128_1_) {
final int[] accessibleSides = new int[this.getSizeInventory()];
- for (int r = 0; r < this.getInventory().getSizeInventory(); r++) {
+ for (int r = 0; r < this.getInventory()
+ .getSizeInventory(); r++) {
accessibleSides[r] = r;
}
return accessibleSides;
@@ -314,22 +327,29 @@ public class TileEntityPestKiller extends TileEntity implements ISidedInventory,
@Override
public boolean canInsertItem(final int aSlot, final ItemStack aStack, final int p_102007_3_) {
- if (this.getInventory().getInventory()[0] == null) {
+ if (this.getInventory()
+ .getInventory()[0] == null) {
return true;
- } else if (GT_Utility.areStacksEqual(aStack, this.getInventory().getInventory()[0])) {
- if (this.getInventory().getInventory()[0].stackSize < 64) {
- int diff = 64 - this.getInventory().getInventory()[0].stackSize;
- if (aStack.stackSize <= diff) {
- return true;
+ } else if (GT_Utility.areStacksEqual(
+ aStack,
+ this.getInventory()
+ .getInventory()[0])) {
+ if (this.getInventory()
+ .getInventory()[0].stackSize < 64) {
+ int diff = 64 - this.getInventory()
+ .getInventory()[0].stackSize;
+ if (aStack.stackSize <= diff) {
+ return true;
+ }
+ }
}
- }
- }
return false;
}
@Override
public boolean canExtractItem(final int aSlot, final ItemStack aStack, final int p_102008_3_) {
- if (this.getInventory().getInventory()[1] == null) {
+ if (this.getInventory()
+ .getInventory()[1] == null) {
return false;
} else {
return true;
@@ -388,14 +408,14 @@ public class TileEntityPestKiller extends TileEntity implements ISidedInventory,
if (this != null) {
FluidEvent.fireEvent(
- new FluidEvent.FluidDrainingEvent(
- fluid,
- this.getWorldObj(),
- this.xCoord,
- this.yCoord,
- this.zCoord,
- this.mTank,
- 0));
+ new FluidEvent.FluidDrainingEvent(
+ fluid,
+ this.getWorldObj(),
+ this.xCoord,
+ this.yCoord,
+ this.zCoord,
+ this.mTank,
+ 0));
}
}
updateTileEntity();
@@ -404,7 +424,9 @@ public class TileEntityPestKiller extends TileEntity implements ISidedInventory,
@Override
public boolean canFill(ForgeDirection from, Fluid fluid) {
- return mTank.getFluid() == null || mTank.getFluid().getFluid().equals(fluid);
+ return mTank.getFluid() == null || mTank.getFluid()
+ .getFluid()
+ .equals(fluid);
}
@Override
@@ -474,7 +496,8 @@ public class TileEntityPestKiller extends TileEntity implements ISidedInventory,
public boolean addFluid(ArrayList<ItemStack> inputs, ItemStack aInput, FluidStack aFluidForInput) {
for (ItemStack a : inputs) {
if (GT_Utility.areStacksEqual(a, aInput)) {
- if (mTank.getFluid() == null || mTank.getFluid().isFluidEqual(aFluidForInput)) {
+ if (mTank.getFluid() == null || mTank.getFluid()
+ .isFluidEqual(aFluidForInput)) {
boolean didFill = fill(ForgeDirection.UNKNOWN, aFluidForInput, true) > 0;
return didFill;
}
@@ -486,7 +509,8 @@ public class TileEntityPestKiller extends TileEntity implements ISidedInventory,
}
public void updateTileEntity() {
- this.getInventory().markDirty();
+ this.getInventory()
+ .markDirty();
this.markDirty();
this.mNeedsUpdate = true;
}
diff --git a/src/main/java/gtPlusPlus/core/tileentities/machines/TileEntityProjectTable.java b/src/main/java/gtPlusPlus/core/tileentities/machines/TileEntityProjectTable.java
index a287d8c33a..7c90ddc1c2 100644
--- a/src/main/java/gtPlusPlus/core/tileentities/machines/TileEntityProjectTable.java
+++ b/src/main/java/gtPlusPlus/core/tileentities/machines/TileEntityProjectTable.java
@@ -23,7 +23,7 @@ import ic2.api.tile.IWrenchable;
import ic2.core.IC2;
public class TileEntityProjectTable extends TileEntity
- implements INetworkDataProvider, INetworkUpdateListener, IWrenchable {
+ implements INetworkDataProvider, INetworkUpdateListener, IWrenchable {
public InventoryProjectMain inventoryGrid;
public InventoryProjectOutput inventoryOutputs;
@@ -82,7 +82,8 @@ public class TileEntityProjectTable extends TileEntity
public void setFacing(final short facing1) {
this.facing = facing1;
if (this.prevFacing != facing1) {
- IC2.network.get().updateTileEntityField(this, "facing");
+ IC2.network.get()
+ .updateTileEntityField(this, "facing");
}
this.prevFacing = facing1;
}
@@ -105,9 +106,9 @@ public class TileEntityProjectTable extends TileEntity
@Override
public ItemStack getWrenchDrop(final EntityPlayer entityPlayer) {
return new ItemStack(
- this.worldObj.getBlock(this.xCoord, this.yCoord, this.zCoord),
- 1,
- this.worldObj.getBlockMetadata(this.xCoord, this.yCoord, this.zCoord));
+ this.worldObj.getBlock(this.xCoord, this.yCoord, this.zCoord),
+ 1,
+ this.worldObj.getBlockMetadata(this.xCoord, this.yCoord, this.zCoord));
}
@Override
@@ -122,10 +123,10 @@ public class TileEntityProjectTable extends TileEntity
ItemStack dataStick = this.inventoryOutputs.getStackInSlot(0);
if (dataStick != null && this.container != null && container.getOutputContent() != null) {
if ((dataStick.getItem() instanceof GT_MetaGenerated_Item_01 && dataStick.getItemDamage() == 32708)
- || (dataStick == ItemList.Tool_DataStick.get(1))
- || (dataStick == GregtechItemList.Old_Tool_DataStick.get(1))
- || (dataStick.getItem() instanceof MetaGeneratedGregtechItems
- && dataStick.getItemDamage() == 32208)) {
+ || (dataStick == ItemList.Tool_DataStick.get(1))
+ || (dataStick == GregtechItemList.Old_Tool_DataStick.get(1))
+ || (dataStick.getItem() instanceof MetaGeneratedGregtechItems
+ && dataStick.getItemDamage() == 32208)) {
Logger.INFO("Found Data Stick and valid container.");
@@ -133,7 +134,7 @@ public class TileEntityProjectTable extends TileEntity
ItemStack[] craftInputComponent = container.getInputComponents();
ItemStack newStick = NBTUtils
- .writeItemsToNBT(dataStick, new ItemStack[] { outputComponent }, "Output");
+ .writeItemsToNBT(dataStick, new ItemStack[] { outputComponent }, "Output");
newStick = NBTUtils.writeItemsToNBT(newStick, craftInputComponent);
NBTUtils.setBookTitle(newStick, "Encrypted Project Data");
NBTUtils.setBoolean(newStick, "mEncrypted", true);
diff --git a/src/main/java/gtPlusPlus/core/util/MovingAverageLong.java b/src/main/java/gtPlusPlus/core/util/MovingAverageLong.java
index 202f10072a..7111fbd5e1 100644
--- a/src/main/java/gtPlusPlus/core/util/MovingAverageLong.java
+++ b/src/main/java/gtPlusPlus/core/util/MovingAverageLong.java
@@ -30,12 +30,15 @@ public class MovingAverageLong {
for (long l : storage) {
result = result.add(BigInteger.valueOf(l));
}
- return result.divide(BigInteger.valueOf(storage.length)).longValue();
+ return result.divide(BigInteger.valueOf(storage.length))
+ .longValue();
}
public void write(NBTTagCompound tagCompound, String key) {
- ByteBuffer buf = ByteBuffer.allocate(storage.length * Long.BYTES).order(ByteOrder.nativeOrder());
- buf.asLongBuffer().put(storage);
+ ByteBuffer buf = ByteBuffer.allocate(storage.length * Long.BYTES)
+ .order(ByteOrder.nativeOrder());
+ buf.asLongBuffer()
+ .put(storage);
tagCompound.setByteArray(key, buf.array());
}
@@ -49,7 +52,8 @@ public class MovingAverageLong {
if (buf.remaining() != storage.length * Long.BYTES)
// not very good...
return false;
- buf.asLongBuffer().get(storage);
+ buf.asLongBuffer()
+ .get(storage);
return true;
}
}
diff --git a/src/main/java/gtPlusPlus/core/util/Utils.java b/src/main/java/gtPlusPlus/core/util/Utils.java
index df37479533..610cc4f8fa 100644
--- a/src/main/java/gtPlusPlus/core/util/Utils.java
+++ b/src/main/java/gtPlusPlus/core/util/Utils.java
@@ -45,11 +45,15 @@ import ic2.core.item.resources.ItemCell;
public class Utils {
public static boolean isServer() {
- return FMLCommonHandler.instance().getEffectiveSide().isServer();
+ return FMLCommonHandler.instance()
+ .getEffectiveSide()
+ .isServer();
}
public static boolean isClient() {
- return FMLCommonHandler.instance().getEffectiveSide().isClient();
+ return FMLCommonHandler.instance()
+ .getEffectiveSide()
+ .isClient();
}
public static TC_AspectStack getTcAspectStack(final TC_Aspects aspect, final long size) {
@@ -76,8 +80,8 @@ public class Utils {
returnValue = new TC_AspectStack(TC_Aspects.valueOf("COGNITIO"), size);
} else {
Logger.INFO(
- "Fallback TC Aspect found - " + aspect
- + " - PLEASE UPDATE GREGTECH TO A NEWER VERSION TO REMOVE THIS MESSAGE - THIS IS NOT AN ERROR");
+ "Fallback TC Aspect found - " + aspect
+ + " - PLEASE UPDATE GREGTECH TO A NEWER VERSION TO REMOVE THIS MESSAGE - THIS IS NOT AN ERROR");
returnValue = new TC_AspectStack(TC_Aspects.valueOf("COGNITO"), size);
}
} catch (final NoSuchFieldError r) {
@@ -91,8 +95,8 @@ public class Utils {
returnValue = new TC_AspectStack(TC_Aspects.valueOf("EXANIMUS"), size);
} else {
Logger.INFO(
- "Fallback TC Aspect found - " + aspect
- + " - PLEASE UPDATE GREGTECH TO A NEWER VERSION TO REMOVE THIS MESSAGE - THIS IS NOT AN ERROR");
+ "Fallback TC Aspect found - " + aspect
+ + " - PLEASE UPDATE GREGTECH TO A NEWER VERSION TO REMOVE THIS MESSAGE - THIS IS NOT AN ERROR");
returnValue = new TC_AspectStack(TC_Aspects.valueOf("EXAMINIS"), size);
}
} catch (final NoSuchFieldError r) {
@@ -107,8 +111,8 @@ public class Utils {
returnValue = new TC_AspectStack(TC_Aspects.valueOf("PRAECANTATIO"), size);
} else {
Logger.INFO(
- "Fallback TC Aspect found - " + aspect
- + " - PLEASE UPDATE GREGTECH TO A NEWER VERSION TO REMOVE THIS MESSAGE - THIS IS NOT AN ERROR");
+ "Fallback TC Aspect found - " + aspect
+ + " - PLEASE UPDATE GREGTECH TO A NEWER VERSION TO REMOVE THIS MESSAGE - THIS IS NOT AN ERROR");
returnValue = new TC_AspectStack(TC_Aspects.valueOf("PRAECANTIO"), size);
}
} catch (final NoSuchFieldError r) {
@@ -125,7 +129,9 @@ public class Utils {
// Register an event to both busses.
public static void registerEvent(Object o) {
MinecraftForge.EVENT_BUS.register(o);
- FMLCommonHandler.instance().bus().register(o);
+ FMLCommonHandler.instance()
+ .bus()
+ .register(o);
}
// Send a message to all players on the server
@@ -135,7 +141,9 @@ public class Utils {
// Send a message to all players on the server
public static void sendServerMessage(final IChatComponent chatComponent) {
- MinecraftServer.getServer().getConfigurationManager().sendChatMsg(chatComponent);
+ MinecraftServer.getServer()
+ .getConfigurationManager()
+ .sendChatMsg(chatComponent);
}
/**
@@ -160,7 +168,8 @@ public class Utils {
return 0;
}
final Color c = new Color(r, g, b);
- String temp = Integer.toHexString(c.getRGB() & 0xFFFFFF).toUpperCase();
+ String temp = Integer.toHexString(c.getRGB() & 0xFFFFFF)
+ .toUpperCase();
temp = Utils.appenedHexNotationToString(temp);
return Integer.decode(temp);
}
@@ -187,8 +196,15 @@ public class Utils {
String code = "" + (int) (Math.random() * 256);
code = code + code + code;
final int i = Integer.parseInt(code);
- hexColorMap.put(a, Integer.toHexString(0x1000000 | i).substring(1).toUpperCase());
- Logger.WARNING("" + Integer.toHexString(0x1000000 | i).substring(1).toUpperCase());
+ hexColorMap.put(
+ a,
+ Integer.toHexString(0x1000000 | i)
+ .substring(1)
+ .toUpperCase());
+ Logger.WARNING(
+ "" + Integer.toHexString(0x1000000 | i)
+ .substring(1)
+ .toUpperCase());
}
return hexColorMap;
}
@@ -244,9 +260,9 @@ public class Utils {
final ItemStack temp = (ItemStack) methode.invoke(item, cellID++, yourName, new Block[0]);
Logger.WARNING("Successfully created " + temp.getDisplayName() + "s.");
FluidContainerRegistry.registerFluidContainer(
- FluidUtils.getFluidStack(s.toLowerCase(), 1000),
- temp.copy(),
- Ic2Items.cell.copy());
+ FluidUtils.getFluidStack(s.toLowerCase(), 1000),
+ temp.copy(),
+ Ic2Items.cell.copy());
ItemUtils.addItemToOreDictionary(temp.copy(), "cell" + s);
return temp;
} catch (final Exception e) {
@@ -260,26 +276,26 @@ public class Utils {
// List of characters to remove
final HashSet<Character> toRemoveSet = new HashSet<>();
Collections.addAll(
- toRemoveSet,
- ' ',
- '-',
- '_',
- '~',
- '?',
- '!',
- '@',
- '#',
- '$',
- '%',
- '^',
- '&',
- '*',
- '(',
- ')',
- '{',
- '}',
- '[',
- ']');
+ toRemoveSet,
+ ' ',
+ '-',
+ '_',
+ '~',
+ '?',
+ '!',
+ '@',
+ '#',
+ '$',
+ '%',
+ '^',
+ '&',
+ '*',
+ '(',
+ ')',
+ '{',
+ '}',
+ '[',
+ ']');
// Remove characters from the toRemoveSet if they are in dontRemove
for (char e : dontRemove) {
@@ -337,22 +353,22 @@ public class Utils {
public static String addBookTitleLocalization(final String aTitle) {
return GT_LanguageManager
- .addStringLocalization("Book." + aTitle + ".Name", aTitle, !GregTech_API.sPostloadFinished);
+ .addStringLocalization("Book." + aTitle + ".Name", aTitle, !GregTech_API.sPostloadFinished);
}
public static String[] addBookPagesLocalization(final String aTitle, final String[] aPages) {
String[] aLocalizationPages = new String[aPages.length];
for (byte i = 0; i < aPages.length; i = (byte) (i + 1)) {
aLocalizationPages[i] = GT_LanguageManager.addStringLocalization(
- "Book." + aTitle + ".Page" + ((i < 10) ? "0" + i : Byte.valueOf(i)),
- aPages[i],
- !GregTech_API.sPostloadFinished);
+ "Book." + aTitle + ".Page" + ((i < 10) ? "0" + i : Byte.valueOf(i)),
+ aPages[i],
+ !GregTech_API.sPostloadFinished);
}
return aLocalizationPages;
}
public static ItemStack getWrittenBook(ItemStack book, int ID, String mapping, String title, String author,
- String[] pages) {
+ String[] pages) {
if (GT_Utility.isStringInvalid(mapping)) {
return null;
@@ -394,19 +410,19 @@ public class Utils {
}
String credits = String.format(
- "Credits to %s for writing this Book. This was Book Nr. %d at its creation. Gotta get 'em all!",
- author,
- ID);
+ "Credits to %s for writing this Book. This was Book Nr. %d at its creation. Gotta get 'em all!",
+ author,
+ ID);
NBTList.appendTag(new NBTTagString(credits));
NBT.setTag("pages", NBTList);
stack.setTagCompound(NBT);
String logMessage = String.format(
- "GT++_Mod: Added Book to Book++ List - Mapping: '%s' - Name: '%s' - Author: '%s'",
- mapping,
- title,
- author);
+ "GT++_Mod: Added Book to Book++ List - Mapping: '%s' - Name: '%s' - Author: '%s'",
+ mapping,
+ title,
+ author);
GT_Log.out.println(logMessage);
NBTUtils.createIntegerTagCompound(stack, "stats", "mMeta", ID);
diff --git a/src/main/java/gtPlusPlus/core/util/data/AES.java b/src/main/java/gtPlusPlus/core/util/data/AES.java
index aeafea7606..85f20a3367 100644
--- a/src/main/java/gtPlusPlus/core/util/data/AES.java
+++ b/src/main/java/gtPlusPlus/core/util/data/AES.java
@@ -121,7 +121,10 @@ public class AES {
cipher.init(Cipher.DECRYPT_MODE, secretKey);
- return new String(cipher.doFinal(Base64.getDecoder().decode(strToDecrypt)));
+ return new String(
+ cipher.doFinal(
+ Base64.getDecoder()
+ .decode(strToDecrypt)));
} catch (Exception ignored) {
diff --git a/src/main/java/gtPlusPlus/core/util/data/LocaleUtils.java b/src/main/java/gtPlusPlus/core/util/data/LocaleUtils.java
index 237b97e5b0..f72e5c6a51 100644
--- a/src/main/java/gtPlusPlus/core/util/data/LocaleUtils.java
+++ b/src/main/java/gtPlusPlus/core/util/data/LocaleUtils.java
@@ -21,8 +21,11 @@ import gtPlusPlus.core.util.minecraft.ItemUtils;
public class LocaleUtils {
public static void generateFakeLocaleFile() {
- for (ModContainer modcontainer : Loader.instance().getModList()) {
- if (modcontainer.getModId().toLowerCase().equals(GTPlusPlus.ID)) {
+ for (ModContainer modcontainer : Loader.instance()
+ .getModList()) {
+ if (modcontainer.getModId()
+ .toLowerCase()
+ .equals(GTPlusPlus.ID)) {
String S = "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~";
writeToFile(S);
dumpItemsAndBlocksForModContainer(modcontainer);
diff --git a/src/main/java/gtPlusPlus/core/util/data/StringUtils.java b/src/main/java/gtPlusPlus/core/util/data/StringUtils.java
index 91bbdc2eda..77efadbc9a 100644
--- a/src/main/java/gtPlusPlus/core/util/data/StringUtils.java
+++ b/src/main/java/gtPlusPlus/core/util/data/StringUtils.java
@@ -81,8 +81,10 @@ public class StringUtils {
}
public static String firstLetterCaps(String data) {
- String firstLetter = data.substring(0, 1).toUpperCase();
- String restLetters = data.substring(1).toLowerCase();
+ String firstLetter = data.substring(0, 1)
+ .toUpperCase();
+ String restLetters = data.substring(1)
+ .toLowerCase();
return firstLetter + restLetters;
}
@@ -93,7 +95,8 @@ public class StringUtils {
StringBuilder aData = new StringBuilder();
for (V y : parameterTypes) {
if (y != null) {
- aData.append(", ").append(y);
+ aData.append(", ")
+ .append(y);
}
}
return aData.toString();
@@ -108,19 +111,19 @@ public class StringUtils {
*/
public static boolean isSpecialCharacter(char aChar) {
return aChar == '"' || aChar == '.'
- || aChar == '$'
- || aChar == '|'
- || aChar == '('
- || aChar == ')'
- || aChar == '['
- || aChar == ']'
- || aChar == '{'
- || aChar == '}'
- || aChar == '^'
- || aChar == '?'
- || aChar == '*'
- || aChar == '+'
- || aChar == '\\';
+ || aChar == '$'
+ || aChar == '|'
+ || aChar == '('
+ || aChar == ')'
+ || aChar == '['
+ || aChar == ']'
+ || aChar == '{'
+ || aChar == '}'
+ || aChar == '^'
+ || aChar == '?'
+ || aChar == '*'
+ || aChar == '+'
+ || aChar == '\\';
}
public static boolean isEscaped(String aString) {
@@ -167,6 +170,8 @@ public class StringUtils {
}
public static long uppercaseCount(String aString) {
- return aString.chars().filter(Character::isUpperCase).count();
+ return aString.chars()
+ .filter(Character::isUpperCase)
+ .count();
}
}
diff --git a/src/main/java/gtPlusPlus/core/util/math/MathUtils.java b/src/main/java/gtPlusPlus/core/util/math/MathUtils.java
index f73a1e3384..ac3ef2e947 100644
--- a/src/main/java/gtPlusPlus/core/util/math/MathUtils.java
+++ b/src/main/java/gtPlusPlus/core/util/math/MathUtils.java
@@ -274,7 +274,7 @@ public class MathUtils {
public static int safeInt(long number) {
return number > GT_Values.V[GT_Values.V.length - 1] ? safeInt(GT_Values.V[GT_Values.V.length - 1], 1)
- : number < Integer.MIN_VALUE ? Integer.MIN_VALUE : (int) number;
+ : number < Integer.MIN_VALUE ? Integer.MIN_VALUE : (int) number;
}
public static int getRandomFromArray(int[] mValues) {
diff --git a/src/main/java/gtPlusPlus/core/util/minecraft/EntityUtils.java b/src/main/java/gtPlusPlus/core/util/minecraft/EntityUtils.java
index d236b8fbd7..87bd0e60c6 100644
--- a/src/main/java/gtPlusPlus/core/util/minecraft/EntityUtils.java
+++ b/src/main/java/gtPlusPlus/core/util/minecraft/EntityUtils.java
@@ -62,58 +62,57 @@ public class EntityUtils {
public static void applyRadioactivity(EntityLivingBase aEntity, int aLevel, int aAmountOfItems) {
if (aLevel > 0 && aEntity != null
- && aEntity.getCreatureAttribute() != EnumCreatureAttribute.UNDEAD
- && aEntity.getCreatureAttribute() != EnumCreatureAttribute.ARTHROPOD
- && !ItemArmorHazmat.hasCompleteHazmat(aEntity)) {
+ && aEntity.getCreatureAttribute() != EnumCreatureAttribute.UNDEAD
+ && aEntity.getCreatureAttribute() != EnumCreatureAttribute.ARTHROPOD
+ && !ItemArmorHazmat.hasCompleteHazmat(aEntity)) {
PotionEffect tEffect;
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(
- IC2Potion.radiation.id,
- aLevel * 180 * aAmountOfItems + Math.max(
- 0,
- ((tEffect = aEntity.getActivePotionEffect(Potion.potionTypes[24])) == null ? 0
- : tEffect.getDuration())),
- Math.max(0, (5 * aLevel) / 7)));
+ new PotionEffect(
+ IC2Potion.radiation.id,
+ aLevel * 180 * aAmountOfItems + Math.max(
+ 0,
+ ((tEffect = aEntity.getActivePotionEffect(Potion.potionTypes[24])) == null ? 0
+ : tEffect.getDuration())),
+ Math.max(0, (5 * aLevel) / 7)));
}
}
diff --git a/src/main/java/gtPlusPlus/core/util/minecraft/FluidUtils.java b/src/main/java/gtPlusPlus/core/util/minecraft/FluidUtils.java
index b29296e0e2..2b6e96541d 100644
--- a/src/main/java/gtPlusPlus/core/util/minecraft/FluidUtils.java
+++ b/src/main/java/gtPlusPlus/core/util/minecraft/FluidUtils.java
@@ -118,34 +118,34 @@ public class FluidUtils {
}
public static Fluid addGtFluid(final String aName, final String aLocalized, final GT_Materials aMaterial,
- final int aState, final long aTemperatureK, final ItemStack aFullContainer, final ItemStack aEmptyContainer,
- final int aFluidAmount) {
+ final int aState, final long aTemperatureK, final ItemStack aFullContainer, final ItemStack aEmptyContainer,
+ final int aFluidAmount) {
return addGtFluid(
- aName,
- aLocalized,
- aMaterial,
- aState,
- aTemperatureK,
- aFullContainer,
- aEmptyContainer,
- aFluidAmount,
- true);
+ aName,
+ aLocalized,
+ aMaterial,
+ aState,
+ aTemperatureK,
+ aFullContainer,
+ aEmptyContainer,
+ aFluidAmount,
+ true);
}
public static Fluid addGtFluid(final String aName, final String aLocalized, final GT_Materials aMaterial,
- final int aState, final long aTemperatureK, final ItemStack aFullContainer, final ItemStack aEmptyContainer,
- final int aFluidAmount, final boolean aGenerateCell) {
+ final int aState, final long aTemperatureK, final ItemStack aFullContainer, final ItemStack aEmptyContainer,
+ final int aFluidAmount, final boolean aGenerateCell) {
Fluid g = addGTFluid(
- aName,
- "fluid.autogenerated",
- aLocalized,
- aMaterial != null ? aMaterial.mRGBa : new short[] { 255, 255, 255, 0 },
- aState,
- aTemperatureK,
- aFullContainer,
- aEmptyContainer,
- aFluidAmount,
- aGenerateCell);
+ aName,
+ "fluid.autogenerated",
+ aLocalized,
+ aMaterial != null ? aMaterial.mRGBa : new short[] { 255, 255, 255, 0 },
+ aState,
+ aTemperatureK,
+ aFullContainer,
+ aEmptyContainer,
+ aFluidAmount,
+ aGenerateCell);
if (aMaterial != null) {
switch (aState) {
case 1 -> {
@@ -163,80 +163,88 @@ public class FluidUtils {
}
public static Fluid addGTFluid(final String aName, final String aLocalized, final short[] aRGBa, final int aState,
- final long aTemperatureK, final ItemStack aFullContainer, final ItemStack aEmptyContainer,
- final int aFluidAmount, final boolean aGenerateCell) {
+ final long aTemperatureK, final ItemStack aFullContainer, final ItemStack aEmptyContainer,
+ final int aFluidAmount, final boolean aGenerateCell) {
return addGTFluid(
- "molten." + aName,
- "molten.autogenerated",
- aLocalized,
- aRGBa,
- aState,
- aTemperatureK,
- aFullContainer,
- aEmptyContainer,
- aFluidAmount,
- aGenerateCell);
+ "molten." + aName,
+ "molten.autogenerated",
+ aLocalized,
+ aRGBa,
+ aState,
+ aTemperatureK,
+ aFullContainer,
+ aEmptyContainer,
+ aFluidAmount,
+ aGenerateCell);
}
public static Fluid addGTFluidNonMolten(final String aName, final String aLocalized, final short[] aRGBa,
- final int aState, final long aTemperatureK, final ItemStack aFullContainer, final ItemStack aEmptyContainer,
- final int aFluidAmount, final boolean aGenerateCell) {
+ final int aState, final long aTemperatureK, final ItemStack aFullContainer, final ItemStack aEmptyContainer,
+ final int aFluidAmount, final boolean aGenerateCell) {
return addGTFluid(
- "fluid." + aName,
- "fluid.autogenerated",
- aLocalized,
- aRGBa,
- aState,
- aTemperatureK,
- aFullContainer,
- aEmptyContainer,
- aFluidAmount,
- aGenerateCell);
+ "fluid." + aName,
+ "fluid.autogenerated",
+ aLocalized,
+ aRGBa,
+ aState,
+ aTemperatureK,
+ aFullContainer,
+ aEmptyContainer,
+ aFluidAmount,
+ aGenerateCell);
}
public static Fluid addGTFluidNoPrefix(final String aName, final String aLocalized, final short[] aRGBa,
- final int aState, final long aTemperatureK, final ItemStack aFullContainer, final ItemStack aEmptyContainer,
- final int aFluidAmount, final boolean aGenerateCell) {
+ final int aState, final long aTemperatureK, final ItemStack aFullContainer, final ItemStack aEmptyContainer,
+ final int aFluidAmount, final boolean aGenerateCell) {
return addGTFluid(
- aName,
- "fluid.autogenerated",
- aLocalized,
- aRGBa,
- aState,
- aTemperatureK,
- aFullContainer,
- aEmptyContainer,
- aFluidAmount,
- aGenerateCell);
+ aName,
+ "fluid.autogenerated",
+ aLocalized,
+ aRGBa,
+ aState,
+ aTemperatureK,
+ aFullContainer,
+ aEmptyContainer,
+ aFluidAmount,
+ aGenerateCell);
}
// Gas
public static Fluid addGtGas(final String aName, final String aLocalized, final short[] aRGBa, final int aState,
- final long aTemperatureK, final ItemStack aFullContainer, final ItemStack aEmptyContainer,
- final int aFluidAmount, final boolean aGenerateCell) {
+ final long aTemperatureK, final ItemStack aFullContainer, final ItemStack aEmptyContainer,
+ final int aFluidAmount, final boolean aGenerateCell) {
return addGTFluid(
- aName,
- "fluid.autogenerated",
- aLocalized,
- aRGBa,
- aState,
- aTemperatureK,
- aFullContainer,
- aEmptyContainer,
- aFluidAmount,
- aGenerateCell);
+ aName,
+ "fluid.autogenerated",
+ aLocalized,
+ aRGBa,
+ aState,
+ aTemperatureK,
+ aFullContainer,
+ aEmptyContainer,
+ aFluidAmount,
+ aGenerateCell);
}
public static Fluid addGTPlasma(final Material aMaterial) {
- if (aMaterial.getLocalizedName().toLowerCase().contains("clay") || (aMaterial.getComposites().size() > 1)
- || aMaterial.getLocalizedName().toLowerCase().contains("wrought")) {
+ if (aMaterial.getLocalizedName()
+ .toLowerCase()
+ .contains("clay")
+ || (aMaterial.getComposites()
+ .size() > 1)
+ || aMaterial.getLocalizedName()
+ .toLowerCase()
+ .contains("wrought")) {
return null;
}
Logger.INFO("Generating a " + aMaterial.getLocalizedName() + " Plasma Cell");
if (aMaterial.vComponentCount != 1) {
Logger.INFO("Compound made from: ");
for (final MaterialStack x : aMaterial.getComposites()) {
- Logger.INFO(x.getStackMaterial().getLocalizedName());
+ Logger.INFO(
+ x.getStackMaterial()
+ .getLocalizedName());
}
Logger.INFO("Material is a composite, not generating plasma.");
return null;
@@ -245,7 +253,7 @@ public class FluidUtils {
ItemStack temp = null;
// Generate a Cell if we need to
if (ItemUtils.getItemStackOfAmountFromOreDictNoBroken("cellPlasma" + aMaterial.getUnlocalizedName(), 1)
- == null) {
+ == null) {
new BaseItemPlasmaCell(aMaterial);
temp = aMaterial.getPlasmaCell(1);
} else {
@@ -253,23 +261,25 @@ public class FluidUtils {
}
if (temp != null) {
return addGTFluid(
- "plasma." + Utils.sanitizeString(aMaterial.getLocalizedName().toLowerCase()),
- "plasma.autogenerated",
- aMaterial.getLocalizedName() + " Plasma",
- aMaterial.getRGBA(),
- 3,
- 10000,
- temp,
- ItemUtils.getEmptyCell(),
- 1000,
- false);
+ "plasma." + Utils.sanitizeString(
+ aMaterial.getLocalizedName()
+ .toLowerCase()),
+ "plasma.autogenerated",
+ aMaterial.getLocalizedName() + " Plasma",
+ aMaterial.getRGBA(),
+ 3,
+ 10000,
+ temp,
+ ItemUtils.getEmptyCell(),
+ 1000,
+ false);
}
return null;
}
public static Fluid addGTFluid(String aName, final String aTexture, final String aLocalized, final short[] aRGBa,
- final int aState, final long aTemperatureK, ItemStack aFullContainer, final ItemStack aEmptyContainer,
- final int aFluidAmount, final boolean aGenerateFilledCell) {
+ final int aState, final long aTemperatureK, ItemStack aFullContainer, final ItemStack aEmptyContainer,
+ final int aFluidAmount, final boolean aGenerateFilledCell) {
String aNameOriginal = aName;
Logger.INFO("Generating Fluid for " + aName);
@@ -346,11 +356,13 @@ public class FluidUtils {
String aMatName = aNameOriginal;
if (aMatName.contains("molten.")) {
aMatName = aMatName.replace("molten.", "");
- aMatName = aMatName.substring(0, 1).toUpperCase() + aMatName.substring(1);
+ aMatName = aMatName.substring(0, 1)
+ .toUpperCase() + aMatName.substring(1);
}
if (aMatName.contains("fluid.")) {
aMatName = aMatName.replace("fluid.", "");
- aMatName = aMatName.substring(0, 1).toUpperCase() + aMatName.substring(1);
+ aMatName = aMatName.substring(0, 1)
+ .toUpperCase() + aMatName.substring(1);
}
Logger.INFO("Generating cell for " + aMatName + ", " + aLocalName);
tempCell = new BaseItemComponent(aMatName, aLocalName, aRGBa);
@@ -361,24 +373,27 @@ public class FluidUtils {
rFluid.setTemperature((int) (aTemperatureK));
}
if ((aFullContainer != null) && (aEmptyContainer != null)
- && !FluidContainerRegistry.registerFluidContainer(
- new FluidStack(rFluid, aFluidAmount),
- aFullContainer,
- aEmptyContainer)) {
- GT_Values.RA.stdBuilder().itemInputs(ItemList.Cell_Empty.get(1L)).itemOutputs(aFullContainer)
- .fluidInputs(new FluidStack(rFluid, aFluidAmount)).duration(4).eut(1).addTo(fluidCannerRecipes);
+ && !FluidContainerRegistry
+ .registerFluidContainer(new FluidStack(rFluid, aFluidAmount), aFullContainer, aEmptyContainer)) {
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemList.Cell_Empty.get(1L))
+ .itemOutputs(aFullContainer)
+ .fluidInputs(new FluidStack(rFluid, aFluidAmount))
+ .duration(4)
+ .eut(1)
+ .addTo(fluidCannerRecipes);
}
return rFluid;
}
public static boolean valid(final Object aStack) {
return (aStack instanceof ItemStack) && (((ItemStack) aStack).getItem() != null)
- && (((ItemStack) aStack).stackSize >= 0);
+ && (((ItemStack) aStack).stackSize >= 0);
}
public static boolean invalid(final Object aStack) {
return !(aStack instanceof ItemStack) || (((ItemStack) aStack).getItem() == null)
- || (((ItemStack) aStack).stackSize < 0);
+ || (((ItemStack) aStack).stackSize < 0);
}
public static boolean equal(final ItemStack aStack1, final ItemStack aStack2) {
@@ -391,10 +406,10 @@ public class FluidUtils {
public static boolean equal_(final ItemStack aStack1, final ItemStack aStack2, final boolean aIgnoreNBT) {
return (aStack1.getItem() == aStack2.getItem())
- && (aIgnoreNBT || ((aStack1.getTagCompound() == null == (aStack2.getTagCompound() == null))
- && ((aStack1.getTagCompound() == null)
- || aStack1.getTagCompound().equals(aStack2.getTagCompound()))))
- && ((meta(aStack1) == meta(aStack2)) || (meta(aStack1) == 32767) || (meta(aStack2) == 32767));
+ && (aIgnoreNBT || ((aStack1.getTagCompound() == null == (aStack2.getTagCompound() == null))
+ && ((aStack1.getTagCompound() == null) || aStack1.getTagCompound()
+ .equals(aStack2.getTagCompound()))))
+ && ((meta(aStack1) == meta(aStack2)) || (meta(aStack1) == 32767) || (meta(aStack2) == 32767));
}
public static ItemStack copy(final Object... aStacks) {
@@ -436,14 +451,16 @@ public class FluidUtils {
if (invalid(aStack)) {
return null;
}
- if (aStack.getItem().hasContainerItem(aStack)) {
- return aStack.getItem().getContainerItem(aStack);
+ if (aStack.getItem()
+ .hasContainerItem(aStack)) {
+ return aStack.getItem()
+ .getContainerItem(aStack);
}
if (equal(aStack, ItemUtils.getEmptyCell(), true)) {
return null;
}
if (aCheckIFluidContainerItems && (aStack.getItem() instanceof IFluidContainerItem)
- && (((IFluidContainerItem) aStack.getItem()).getCapacity(aStack) > 0)) {
+ && (((IFluidContainerItem) aStack.getItem()).getCapacity(aStack) > 0)) {
final ItemStack tStack = amount(1L, aStack);
((IFluidContainerItem) aStack.getItem()).drain(tStack, Integer.MAX_VALUE, true);
if (!equal(aStack, tStack)) {
@@ -458,68 +475,74 @@ public class FluidUtils {
}
public static ItemStack container(final ItemStack aStack, final boolean aCheckIFluidContainerItems,
- final int aStacksize) {
+ final int aStacksize) {
return amount(aStacksize, container(aStack, aCheckIFluidContainerItems));
}
public static Fluid generateFluidNonMolten(final String unlocalizedName, final String localizedName,
- final int MeltingPoint, final short[] RGBA, final ItemStack dustStack, final ItemStack dustStack2) {
+ final int MeltingPoint, final short[] RGBA, final ItemStack dustStack, final ItemStack dustStack2) {
return generateFluidNonMolten(
- unlocalizedName,
- localizedName,
- MeltingPoint,
- RGBA,
- dustStack,
- dustStack2,
- 144,
- true);
+ unlocalizedName,
+ localizedName,
+ MeltingPoint,
+ RGBA,
+ dustStack,
+ dustStack2,
+ 144,
+ true);
}
public static Fluid generateFluidNonMolten(final String unlocalizedName, final String localizedName,
- final int MeltingPoint, final short[] RGBA, final ItemStack dustStack, final ItemStack dustStack2,
- final boolean aGenerateCell) {
+ final int MeltingPoint, final short[] RGBA, final ItemStack dustStack, final ItemStack dustStack2,
+ final boolean aGenerateCell) {
return generateFluidNonMolten(
- unlocalizedName,
- localizedName,
- MeltingPoint,
- RGBA,
- dustStack,
- dustStack2,
- 144,
- aGenerateCell);
+ unlocalizedName,
+ localizedName,
+ MeltingPoint,
+ RGBA,
+ dustStack,
+ dustStack2,
+ 144,
+ aGenerateCell);
}
public static final Fluid generateFluidNonMolten(final String unlocalizedName, final String localizedName,
- final int MeltingPoint, final short[] RGBA, ItemStack dustStack, final ItemStack dustStack2,
- final int amountPerItem, final boolean aGenerateCell) {
+ final int MeltingPoint, final short[] RGBA, ItemStack dustStack, final ItemStack dustStack2,
+ final int amountPerItem, final boolean aGenerateCell) {
if (dustStack == null) {
dustStack = ItemUtils
- .getItemStackOfAmountFromOreDictNoBroken("dust" + Utils.sanitizeString(localizedName), 1);
+ .getItemStackOfAmountFromOreDictNoBroken("dust" + Utils.sanitizeString(localizedName), 1);
}
FluidStack aFStack = (FluidUtils.getFluidStack(unlocalizedName.toLowerCase(), 1));
if (aFStack == null) {
Logger.WARNING("Generating our own fluid.");
final Fluid gtFluid = FluidUtils.addGTFluidNonMolten(
- unlocalizedName,
- localizedName,
- RGBA,
- 4,
- MeltingPoint,
- null,
- ItemUtils.getEmptyCell(),
- 1000,
- aGenerateCell);
+ unlocalizedName,
+ localizedName,
+ RGBA,
+ 4,
+ MeltingPoint,
+ null,
+ ItemUtils.getEmptyCell(),
+ 1000,
+ aGenerateCell);
if (dustStack != null) {
- GT_Values.RA.stdBuilder().itemInputs(dustStack)
- .fluidOutputs(FluidUtils.getFluidStack(gtFluid, amountPerItem)).duration(1 * SECONDS).eut(16)
- .addTo(fluidExtractionRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(dustStack)
+ .fluidOutputs(FluidUtils.getFluidStack(gtFluid, amountPerItem))
+ .duration(1 * SECONDS)
+ .eut(16)
+ .addTo(fluidExtractionRecipes);
}
if (dustStack2 != null) {
- GT_Values.RA.stdBuilder().itemInputs(dustStack2)
- .fluidOutputs(FluidUtils.getFluidStack(gtFluid, amountPerItem)).duration(1 * SECONDS).eut(16)
- .addTo(fluidExtractionRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(dustStack2)
+ .fluidOutputs(FluidUtils.getFluidStack(gtFluid, amountPerItem))
+ .duration(1 * SECONDS)
+ .eut(16)
+ .addTo(fluidExtractionRecipes);
}
return gtFluid;
@@ -530,48 +553,50 @@ public class FluidUtils {
}
public static Fluid generateFluidNoPrefix(final String unlocalizedName, final String localizedName,
- final int MeltingPoint, final short[] RGBA) {
+ final int MeltingPoint, final short[] RGBA) {
return generateFluidNoPrefix(unlocalizedName, localizedName, MeltingPoint, RGBA, true);
}
public static Fluid generateFluidNoPrefix(final String unlocalizedName, final String localizedName,
- final int MeltingPoint, final short[] RGBA, final boolean aGenerateCell) {
+ final int MeltingPoint, final short[] RGBA, final boolean aGenerateCell) {
Fluid gtFluid;
if (FluidUtils.getFluidStack(unlocalizedName.toLowerCase(), 1) == null) {
Logger.WARNING("Generating our own fluid.");
gtFluid = FluidUtils.addGTFluidNoPrefix(
- unlocalizedName,
- localizedName,
- RGBA,
- 4,
- MeltingPoint,
- null,
- ItemUtils.getEmptyCell(),
- 1000,
- aGenerateCell);
+ unlocalizedName,
+ localizedName,
+ RGBA,
+ 4,
+ MeltingPoint,
+ null,
+ ItemUtils.getEmptyCell(),
+ 1000,
+ aGenerateCell);
} else {
- gtFluid = FluidUtils.getFluidStack(unlocalizedName.toLowerCase(), 1).getFluid();
+ gtFluid = FluidUtils.getFluidStack(unlocalizedName.toLowerCase(), 1)
+ .getFluid();
}
return gtFluid;
}
public static Fluid generateGas(final String unlocalizedName, final String localizedName, final int MeltingPoint,
- final short[] RGBA, final boolean aGenerateCell) {
+ final short[] RGBA, final boolean aGenerateCell) {
Fluid gtFluid;
if (FluidUtils.getFluidStack(unlocalizedName.toLowerCase(), 1) == null) {
Logger.WARNING("Generating our own gas.");
gtFluid = FluidUtils.addGtGas(
- unlocalizedName,
- localizedName,
- RGBA,
- 3,
- MeltingPoint,
- null,
- ItemUtils.getEmptyCell(),
- 1000,
- aGenerateCell);
+ unlocalizedName,
+ localizedName,
+ RGBA,
+ 3,
+ MeltingPoint,
+ null,
+ ItemUtils.getEmptyCell(),
+ 1000,
+ aGenerateCell);
} else {
- gtFluid = FluidUtils.getFluidStack(unlocalizedName.toLowerCase(), 1).getFluid();
+ gtFluid = FluidUtils.getFluidStack(unlocalizedName.toLowerCase(), 1)
+ .getFluid();
}
return gtFluid;
}
@@ -584,10 +609,10 @@ public class FluidUtils {
FluidStack aFStack5 = (FluidUtils.getFluidStack("liquid_" + aFluidName.toLowerCase(), 1));
FluidStack aFStack6 = (FluidUtils.getFluidStack("liquid" + "." + aFluidName.toLowerCase(), 1));
return aFStack1 != null || aFStack2 != null
- || aFStack3 != null
- || aFStack4 != null
- || aFStack5 != null
- || aFStack6 != null;
+ || aFStack3 != null
+ || aFStack4 != null
+ || aFStack5 != null
+ || aFStack6 != null;
}
public static FluidStack getWildcardFluidStack(String aFluidName, int amount) {
diff --git a/src/main/java/gtPlusPlus/core/util/minecraft/InventoryUtils.java b/src/main/java/gtPlusPlus/core/util/minecraft/InventoryUtils.java
index 2090f749b3..c8a7ed26da 100644
--- a/src/main/java/gtPlusPlus/core/util/minecraft/InventoryUtils.java
+++ b/src/main/java/gtPlusPlus/core/util/minecraft/InventoryUtils.java
@@ -18,7 +18,7 @@ public class InventoryUtils {
TileEntity tileentity = world.getTileEntity(x, y, z);
if (tileentity != null && tileentity instanceof IInventory aTileInv
- && ((IInventory) tileentity).getSizeInventory() > 0) {
+ && ((IInventory) tileentity).getSizeInventory() > 0) {
int aMinSlot = 0;
int aMaxSlot = aTileInv.getSizeInventory() - 1;
@@ -32,7 +32,7 @@ public class InventoryUtils {
EntityItem entityitem;
for (float f2 = mRandom.nextFloat() * 0.8F + 0.1F; itemstack.stackSize > 0; world
- .spawnEntityInWorld(entityitem)) {
+ .spawnEntityInWorld(entityitem)) {
int j1 = mRandom.nextInt(21) + 10;
if (j1 > itemstack.stackSize) {
@@ -41,11 +41,11 @@ public class InventoryUtils {
itemstack.stackSize -= j1;
entityitem = new EntityItem(
- world,
- x + f,
- y + f1,
- z + f2,
- new ItemStack(itemstack.getItem(), j1, itemstack.getItemDamage()));
+ world,
+ x + f,
+ y + f1,
+ z + f2,
+ new ItemStack(itemstack.getItem(), j1, itemstack.getItemDamage()));
float f3 = 0.05F;
entityitem.motionX = (float) mRandom.nextGaussian() * f3;
entityitem.motionY = (float) mRandom.nextGaussian() * f3 + 0.2F;
@@ -53,7 +53,9 @@ public class InventoryUtils {
if (itemstack.hasTagCompound()) {
entityitem.getEntityItem()
- .setTagCompound((NBTTagCompound) itemstack.getTagCompound().copy());
+ .setTagCompound(
+ (NBTTagCompound) itemstack.getTagCompound()
+ .copy());
}
}
}
diff --git a/src/main/java/gtPlusPlus/core/util/minecraft/ItemUtils.java b/src/main/java/gtPlusPlus/core/util/minecraft/ItemUtils.java
index 5a7a014884..16a71133c6 100644
--- a/src/main/java/gtPlusPlus/core/util/minecraft/ItemUtils.java
+++ b/src/main/java/gtPlusPlus/core/util/minecraft/ItemUtils.java
@@ -108,7 +108,7 @@ public class ItemUtils {
}
public static void getItemForOreDict(final String FQRN, final String oreDictName, final String itemName,
- final int meta) {
+ final int meta) {
try {
Item em = null;
final Item em1 = getItemFromFQRN(FQRN);
@@ -144,7 +144,7 @@ public class ItemUtils {
}
public static ItemStack getItemStackWithMeta(final boolean MOD, final String FQRN, final String itemName,
- final int meta, final int itemstackSize) {
+ final int meta, final int itemstackSize) {
if (MOD) {
try {
Item em = null;
@@ -213,7 +213,8 @@ public class ItemUtils {
public static ItemStack getCorrectStacktype(final String fqrn, final int stackSize) {
final String oreDict = "ore:";
ItemStack temp;
- if (fqrn.toLowerCase().contains(oreDict.toLowerCase())) {
+ if (fqrn.toLowerCase()
+ .contains(oreDict.toLowerCase())) {
final String sanitizedName = fqrn.replace(oreDict, "");
temp = ItemUtils.getItemStackFromFQRN(sanitizedName, stackSize);
return temp;
@@ -287,13 +288,15 @@ public class ItemUtils {
// Banned Materials and replacements for GT5.8 compat.
- if (oredictName.toLowerCase().contains("ingotclay")) {
+ if (oredictName.toLowerCase()
+ .contains("ingotclay")) {
return getSimpleStack(Items.clay_ball, amount);
}
final ArrayList<ItemStack> oreDictList = OreDictionary.getOres(mTemp);
if (!oreDictList.isEmpty()) {
- final ItemStack returnValue = oreDictList.get(0).copy();
+ final ItemStack returnValue = oreDictList.get(0)
+ .copy();
returnValue.stackSize = amount;
return returnValue;
}
@@ -321,8 +324,10 @@ public class ItemUtils {
// Adds a check to grab dusts using GT methodology if possible.
ItemStack returnValue = null;
- if (oredictName.toLowerCase().contains("dust")) {
- final String MaterialName = oredictName.toLowerCase().replace("dust", "");
+ if (oredictName.toLowerCase()
+ .contains("dust")) {
+ final String MaterialName = oredictName.toLowerCase()
+ .replace("dust", "");
final Materials m = Materials.get(MaterialName);
if (m != null && m != Materials._NULL) {
returnValue = getGregtechDust(m, amount);
@@ -358,17 +363,17 @@ public class ItemUtils {
// NullFormula
public static Item[] generateSpecialUseDusts(final String unlocalizedName, final String materialName,
- final int Colour) {
+ final int Colour) {
return generateSpecialUseDusts(unlocalizedName, materialName, "NullFormula", Colour);
}
public static Item[] generateSpecialUseDusts(final String unlocalizedName, final String materialName,
- String mChemForm, final int Colour) {
+ String mChemForm, final int Colour) {
GT_LanguageManager.addStringLocalization("gtplusplus.material." + materialName, materialName);
final Item[] output = {
- new BaseItemDustUnique("itemDust" + unlocalizedName, materialName, mChemForm, Colour, "Dust"),
- new BaseItemDustUnique("itemDustSmall" + unlocalizedName, materialName, mChemForm, Colour, "Small"),
- new BaseItemDustUnique("itemDustTiny" + unlocalizedName, materialName, mChemForm, Colour, "Tiny") };
+ new BaseItemDustUnique("itemDust" + unlocalizedName, materialName, mChemForm, Colour, "Dust"),
+ new BaseItemDustUnique("itemDustSmall" + unlocalizedName, materialName, mChemForm, Colour, "Small"),
+ new BaseItemDustUnique("itemDustTiny" + unlocalizedName, materialName, mChemForm, Colour, "Tiny") };
// Generate Shaped/Shapeless Recipes
@@ -380,32 +385,32 @@ public class ItemUtils {
if (ItemUtils.checkForInvalidItems(tinyDust) && ItemUtils.checkForInvalidItems(normalDust)) {
if (RecipeUtils.addShapedRecipe(
- tinyDust,
- tinyDust,
- tinyDust,
- tinyDust,
- tinyDust,
- tinyDust,
- tinyDust,
- tinyDust,
- tinyDust,
- normalDust)) {
+ tinyDust,
+ tinyDust,
+ tinyDust,
+ tinyDust,
+ tinyDust,
+ tinyDust,
+ tinyDust,
+ tinyDust,
+ tinyDust,
+ normalDust)) {
Logger.WARNING("9 Tiny dust to 1 Dust Recipe: " + materialName + " - Success");
} else {
Logger.WARNING("9 Tiny dust to 1 Dust Recipe: " + materialName + " - Failed");
}
if (RecipeUtils.addShapedRecipe(
- normalDust,
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- ItemUtils.getSimpleStack(tinyDust, 9))) {
+ normalDust,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ ItemUtils.getSimpleStack(tinyDust, 9))) {
Logger.WARNING("9 Tiny dust from 1 Recipe: " + materialName + " - Success");
} else {
Logger.WARNING("9 Tiny dust from 1 Recipe: " + materialName + " - Failed");
@@ -414,31 +419,31 @@ public class ItemUtils {
if (ItemUtils.checkForInvalidItems(smallDust) && ItemUtils.checkForInvalidItems(normalDust)) {
if (RecipeUtils.addShapedRecipe(
- smallDust,
- smallDust,
- null,
- smallDust,
- smallDust,
- null,
- null,
- null,
- null,
- normalDust)) {
+ smallDust,
+ smallDust,
+ null,
+ smallDust,
+ smallDust,
+ null,
+ null,
+ null,
+ null,
+ normalDust)) {
Logger.WARNING("4 Small dust to 1 Dust Recipe: " + materialName + " - Success");
} else {
Logger.WARNING("4 Small dust to 1 Dust Recipe: " + materialName + " - Failed");
}
if (RecipeUtils.addShapedRecipe(
- null,
- normalDust,
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- ItemUtils.getSimpleStack(smallDust, 4))) {
+ null,
+ normalDust,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ ItemUtils.getSimpleStack(smallDust, 4))) {
Logger.WARNING("4 Small dust from 1 Dust Recipe: " + materialName + " - Success");
} else {
Logger.WARNING("4 Small dust from 1 Dust Recipe: " + materialName + " - Failed");
@@ -453,7 +458,7 @@ public class ItemUtils {
}
public static Item[] generateSpecialUseDusts(final Material material, final boolean onlyLargeDust,
- final boolean disableExtraRecipes) {
+ final boolean disableExtraRecipes) {
final String materialName = material.getUnlocalizedName();
final String unlocalizedName = Utils.sanitizeString(materialName);
final int Colour = material.getRgbAsHex();
@@ -462,24 +467,24 @@ public class ItemUtils {
Item[] output = null;
if (onlyLargeDust == false) {
output = new Item[] {
- new BaseItemDustUnique(
- "itemDust" + unlocalizedName,
- materialName,
- isChemFormvalid ? aChemForm : "",
- Colour,
- "Dust"),
- new BaseItemDustUnique(
- "itemDustSmall" + unlocalizedName,
- materialName,
- isChemFormvalid ? aChemForm : "",
- Colour,
- "Small"),
- new BaseItemDustUnique(
- "itemDustTiny" + unlocalizedName,
- materialName,
- isChemFormvalid ? aChemForm : "",
- Colour,
- "Tiny") };
+ new BaseItemDustUnique(
+ "itemDust" + unlocalizedName,
+ materialName,
+ isChemFormvalid ? aChemForm : "",
+ Colour,
+ "Dust"),
+ new BaseItemDustUnique(
+ "itemDustSmall" + unlocalizedName,
+ materialName,
+ isChemFormvalid ? aChemForm : "",
+ Colour,
+ "Small"),
+ new BaseItemDustUnique(
+ "itemDustTiny" + unlocalizedName,
+ materialName,
+ isChemFormvalid ? aChemForm : "",
+ Colour,
+ "Tiny") };
} else {
output = new Item[] { new BaseItemDustUnique("itemDust" + unlocalizedName, materialName, Colour, "Dust") };
}
@@ -491,13 +496,16 @@ public class ItemUtils {
public static boolean isRadioactive(final String materialName) {
int sRadiation = 0;
- if (materialName.toLowerCase().contains("uranium")) {
+ if (materialName.toLowerCase()
+ .contains("uranium")) {
sRadiation = 2;
- } else if (materialName.toLowerCase().contains("plutonium")) {
- sRadiation = 4;
- } else if (materialName.toLowerCase().contains("thorium")) {
- sRadiation = 1;
- }
+ } else if (materialName.toLowerCase()
+ .contains("plutonium")) {
+ sRadiation = 4;
+ } else if (materialName.toLowerCase()
+ .contains("thorium")) {
+ sRadiation = 1;
+ }
if (sRadiation >= 1) {
return true;
}
@@ -506,13 +514,16 @@ public class ItemUtils {
public static int getRadioactivityLevel(final String materialName) {
int sRadiation = 0;
- if (materialName.toLowerCase().contains("uranium")) {
+ if (materialName.toLowerCase()
+ .contains("uranium")) {
sRadiation = 2;
- } else if (materialName.toLowerCase().contains("plutonium")) {
- sRadiation = 4;
- } else if (materialName.toLowerCase().contains("thorium")) {
- sRadiation = 1;
- }
+ } else if (materialName.toLowerCase()
+ .contains("plutonium")) {
+ sRadiation = 4;
+ } else if (materialName.toLowerCase()
+ .contains("thorium")) {
+ sRadiation = 1;
+ }
return sRadiation;
}
@@ -638,8 +649,8 @@ public class ItemUtils {
}
ItemStack aGtStack = GT_OreDictUnificator.get(mPrefix, mMat, mAmount);
if (aGtStack == null) {
- Logger.INFO(
- "Failed to find `" + mPrefix + MaterialUtils.getMaterialName(mMat) + "` in OD. [Prefix Search]");
+ Logger
+ .INFO("Failed to find `" + mPrefix + MaterialUtils.getMaterialName(mMat) + "` in OD. [Prefix Search]");
return getErrorStack(mAmount, (mPrefix.toString() + MaterialUtils.getMaterialName(mMat) + " x" + mAmount));
} else {
return aGtStack;
@@ -699,15 +710,15 @@ public class ItemUtils {
for (ItemStack stack : mInputs) {
if (stack != null) {
if (stack.getItem() != null) {
- if (stack.getItem() == ModItems.AAA_Broken
- || stack.getItem().getClass() == ModItems.AAA_Broken.getClass()) {
+ if (stack.getItem() == ModItems.AAA_Broken || stack.getItem()
+ .getClass() == ModItems.AAA_Broken.getClass()) {
return false;
- } else if (stack.getItem() == ModItems.ZZZ_Empty
- || stack.getItem().getClass() == ModItems.ZZZ_Empty.getClass()) {
- return false;
- } else {
- continue;
- }
+ } else if (stack.getItem() == ModItems.ZZZ_Empty || stack.getItem()
+ .getClass() == ModItems.ZZZ_Empty.getClass()) {
+ return false;
+ } else {
+ continue;
+ }
} else {
continue;
}
@@ -720,15 +731,15 @@ public class ItemUtils {
for (ItemStack stack : mOutputs) {
if (stack != null) {
if (stack.getItem() != null) {
- if (stack.getItem() == ModItems.AAA_Broken
- || stack.getItem().getClass() == ModItems.AAA_Broken.getClass()) {
+ if (stack.getItem() == ModItems.AAA_Broken || stack.getItem()
+ .getClass() == ModItems.AAA_Broken.getClass()) {
return false;
- } else if (stack.getItem() == ModItems.ZZZ_Empty
- || stack.getItem().getClass() == ModItems.ZZZ_Empty.getClass()) {
- return false;
- } else {
- continue;
- }
+ } else if (stack.getItem() == ModItems.ZZZ_Empty || stack.getItem()
+ .getClass() == ModItems.ZZZ_Empty.getClass()) {
+ return false;
+ } else {
+ continue;
+ }
} else {
continue;
}
@@ -761,7 +772,8 @@ public class ItemUtils {
}
public static String getFluidName(FluidStack aFluid) {
- return aFluid != null ? aFluid.getFluid().getLocalizedName(aFluid) : "NULL";
+ return aFluid != null ? aFluid.getFluid()
+ .getLocalizedName(aFluid) : "NULL";
}
public static String getItemName(ItemStack aStack) {
@@ -770,8 +782,9 @@ public class ItemUtils {
}
String aDisplay = null;
try {
- aDisplay = ("" + StatCollector
- .translateToLocal(aStack.getItem().getUnlocalizedNameInefficiently(aStack) + ".name")).trim();
+ aDisplay = ("" + StatCollector.translateToLocal(
+ aStack.getItem()
+ .getUnlocalizedNameInefficiently(aStack) + ".name")).trim();
if (aStack.hasTagCompound()) {
if (aStack.stackTagCompound != null && aStack.stackTagCompound.hasKey("display", 10)) {
NBTTagCompound nbttagcompound = aStack.stackTagCompound.getCompoundTag("display");
@@ -800,10 +813,12 @@ public class ItemUtils {
try {
aDisplay = (aStack.getUnlocalizedName()).trim();
} catch (Throwable t) {
- aDisplay = aStack.getItem().getUnlocalizedName();
+ aDisplay = aStack.getItem()
+ .getUnlocalizedName();
}
if (aDisplay == null || aDisplay.length() <= 0) {
- aDisplay = aStack.getItem().getUnlocalizedNameInefficiently(aStack);
+ aDisplay = aStack.getItem()
+ .getUnlocalizedNameInefficiently(aStack);
}
return aDisplay;
}
@@ -816,9 +831,9 @@ public class ItemUtils {
final Item aSkookum = ItemUtils.getItemFromFQRN("miscutils:gt.plusplus.metatool.01");
final Class aSkookClass = aSkookum.getClass();
if (aSkookClass.isInstance(mItem) || mItem instanceof GT_MetaGenerated_Tool_01
- || mItem instanceof MetaGeneratedGregtechTools
- || mItem instanceof Gregtech_MetaTool
- || mItem == aSkookum) {
+ || mItem instanceof MetaGeneratedGregtechTools
+ || mItem instanceof Gregtech_MetaTool
+ || mItem == aSkookum) {
return true;
}
return false;
@@ -826,7 +841,7 @@ public class ItemUtils {
public static boolean isToolScrewdriver(ItemStack aScrewdriver) {
if (isItemGregtechTool(aScrewdriver)
- && (aScrewdriver.getItemDamage() == 22 || aScrewdriver.getItemDamage() == 150)) {
+ && (aScrewdriver.getItemDamage() == 22 || aScrewdriver.getItemDamage() == 150)) {
return true;
}
return false;
@@ -881,8 +896,12 @@ public class ItemUtils {
public static boolean isControlCircuit(ItemStack aStack) {
if (aStack != null) {
Item aItem = aStack.getItem();
- if (aItem == CI.getNumberedBioCircuit(0).getItem() || aItem == CI.getNumberedCircuit(0).getItem()
- || aItem == CI.getNumberedAdvancedCircuit(0).getItem()) {
+ if (aItem == CI.getNumberedBioCircuit(0)
+ .getItem() || aItem
+ == CI.getNumberedCircuit(0)
+ .getItem()
+ || aItem == CI.getNumberedAdvancedCircuit(0)
+ .getItem()) {
return true;
}
}
diff --git a/src/main/java/gtPlusPlus/core/util/minecraft/MaterialUtils.java b/src/main/java/gtPlusPlus/core/util/minecraft/MaterialUtils.java
index 793cb2e3a9..881ccb3c41 100644
--- a/src/main/java/gtPlusPlus/core/util/minecraft/MaterialUtils.java
+++ b/src/main/java/gtPlusPlus/core/util/minecraft/MaterialUtils.java
@@ -56,7 +56,7 @@ public class MaterialUtils {
}
public static Material generateMaterialFromGtENUM(final Materials material, short[] customRGB,
- TextureSet aCustomTextures) {
+ TextureSet aCustomTextures) {
String aMaterialKey = getMaterialName(material).toLowerCase();
if (mGeneratedMaterialMap.containsKey(aMaterialKey)) {
return mGeneratedMaterialMap.get(aMaterialKey);
@@ -90,7 +90,8 @@ public class MaterialUtils {
} else {
iconSet = aCustomTextures;
}
- if (iconSet == null || iconSet.mSetName.toLowerCase().contains("fluid")) {
+ if (iconSet == null || iconSet.mSetName.toLowerCase()
+ .contains("fluid")) {
iconSet = TextureSet.SET_METALLIC;
}
Logger.MATERIALS("[Debug] Calculated Texture Set to be " + iconSet.mSetName + ".");
@@ -128,41 +129,42 @@ public class MaterialUtils {
materialState = MaterialState.GAS;
} else {
Logger.MATERIALS(
- "[Debug] State set as solid. This material has no alternative states, so for safety we wont generate anything.");
+ "[Debug] State set as solid. This material has no alternative states, so for safety we wont generate anything.");
materialState = MaterialState.SOLID;
mGenerateFluid = false;
}
- if (name.toLowerCase().contains("infused")) {
+ if (name.toLowerCase()
+ .contains("infused")) {
final String tempname = name.substring(7);
name = "Infused " + tempname;
}
if (hasValidRGBA(rgba) || (element == Element.H)
- || ((material == Materials.InfusedAir) || (material == Materials.InfusedFire)
- || (material == Materials.InfusedEarth)
- || (material == Materials.InfusedWater))) {
+ || ((material == Materials.InfusedAir) || (material == Materials.InfusedFire)
+ || (material == Materials.InfusedEarth)
+ || (material == Materials.InfusedWater))) {
Material M = new Material(
- name,
- materialState,
- iconSet,
- durability,
- rgba,
- melting,
- boiling,
- protons,
- neutrons,
- blastFurnace,
- chemicalFormula,
- radioactivity,
- mGenerateCell,
- mGenerateFluid);
+ name,
+ materialState,
+ iconSet,
+ durability,
+ rgba,
+ melting,
+ boiling,
+ protons,
+ neutrons,
+ blastFurnace,
+ chemicalFormula,
+ radioactivity,
+ mGenerateCell,
+ mGenerateFluid);
mGeneratedMaterialMap.put(aMaterialKey, M);
return M;
} else {
Logger.DEBUG_MATERIALS(
- "Failed to generate GT++ material instance for " + material.mName
- + " | Valid RGB? "
- + (hasValidRGBA(rgba)));
+ "Failed to generate GT++ material instance for " + material.mName
+ + " | Valid RGB? "
+ + (hasValidRGBA(rgba)));
}
} catch (Throwable t) {
Logger.DEBUG_MATERIALS("Failed to generate GT++ material instance for " + material.mName);
@@ -172,23 +174,23 @@ public class MaterialUtils {
}
public static Material generateQuickMaterial(final String materialName, final MaterialState defaultState,
- final short[] colour, final int sRadioactivity) {
+ final short[] colour, final int sRadioactivity) {
String aMaterialKey = materialName.toLowerCase();
if (mGeneratedMaterialMap.containsKey(aMaterialKey)) {
return mGeneratedMaterialMap.get(aMaterialKey);
}
final Material temp = new Material(
- materialName,
- defaultState,
- colour,
- 1000, // melting
- 3000, // boiling
- 50, // Protons
- 50, // Neutrons
- false,
- "",
- sRadioactivity);
+ materialName,
+ defaultState,
+ colour,
+ 1000, // melting
+ 3000, // boiling
+ 50, // Protons
+ 50, // Neutrons
+ false,
+ "",
+ sRadioactivity);
mGeneratedMaterialMap.put(aMaterialKey, temp);
return temp;
}
@@ -230,7 +232,9 @@ public class MaterialUtils {
private static Materials getMaterialByName(String materialName) {
for (Materials m : Materials.values()) {
- if (MaterialUtils.getMaterialName(m).toLowerCase().equals(materialName.toLowerCase())) {
+ if (MaterialUtils.getMaterialName(m)
+ .toLowerCase()
+ .equals(materialName.toLowerCase())) {
return m;
}
}
@@ -266,10 +270,10 @@ public class MaterialUtils {
}
if (g == null) {
Logger.INFO(
- "Failed finding material '" + aMaterialName
- + "' & fallback '"
- + aFallbackMaterialName
- + "', returning _NULL.");
+ "Failed finding material '" + aMaterialName
+ + "' & fallback '"
+ + aFallbackMaterialName
+ + "', returning _NULL.");
CORE.crash();
}
return g;
@@ -293,7 +297,8 @@ public class MaterialUtils {
public static AutoMap<Material> getCompoundMaterialsRecursively_Speiger(Material toSearch) {
AutoMap<Material> resultList = new AutoMap<>();
- if (toSearch.getComposites().isEmpty()) {
+ if (toSearch.getComposites()
+ .isEmpty()) {
resultList.put(toSearch);
return resultList;
}
@@ -307,7 +312,8 @@ public class MaterialUtils {
int processed = 0;
while (!toCheck.isEmpty() && processed < HARD_LIMIT) {
Material current = toCheck.remove();
- if (current.getComposites().isEmpty()) {
+ if (current.getComposites()
+ .isEmpty()) {
resultList.put(current);
} else {
for (MaterialStack entry : current.getComposites()) {
@@ -324,7 +330,7 @@ public class MaterialUtils {
}
public static void generateComponentAndAssignToAMaterial(ComponentTypes aType, Material aMaterial,
- boolean generateRecipes) {
+ boolean generateRecipes) {
Item aGC;
if (aType == ComponentTypes.FINEWIRE) {
aGC = new BaseItemFineWire(aMaterial);
@@ -361,6 +367,6 @@ public class MaterialUtils {
public static boolean isNullGregtechMaterial(Materials aGregtechMaterial) {
return aGregtechMaterial == Materials._NULL || aGregtechMaterial.equals(Materials._NULL)
- || aGregtechMaterial.mName.equals(Materials._NULL.mName);
+ || aGregtechMaterial.mName.equals(Materials._NULL.mName);
}
}
diff --git a/src/main/java/gtPlusPlus/core/util/minecraft/MiningUtils.java b/src/main/java/gtPlusPlus/core/util/minecraft/MiningUtils.java
index 0dd05a41ca..3abc92b69e 100644
--- a/src/main/java/gtPlusPlus/core/util/minecraft/MiningUtils.java
+++ b/src/main/java/gtPlusPlus/core/util/minecraft/MiningUtils.java
@@ -23,7 +23,8 @@ public class MiningUtils {
try {
aTextWorldGen = (String) ReflectionUtils
- .getField(GT_Worldgen_GT_Ore_Layer.class, "aTextWorldgen").get(h);
+ .getField(GT_Worldgen_GT_Ore_Layer.class, "aTextWorldgen")
+ .get(h);
} catch (IllegalArgumentException | IllegalAccessException e) {
aTextWorldGen = h.mWorldGenName;
}
@@ -51,31 +52,37 @@ public class MiningUtils {
boolean aEndAsteroids;
try {
if (ReflectionUtils.getClass("micdoodle8.mods.galacticraft.core.util.ConfigManagerCore") != null
- && mMoonID == -99) {
- mMoonID = ReflectionUtils.getField(
+ && mMoonID == -99) {
+ mMoonID = ReflectionUtils
+ .getField(
ReflectionUtils.getClass("micdoodle8.mods.galacticraft.core.util.ConfigManagerCore"),
- "idDimensionMoon").getInt(null);
+ "idDimensionMoon")
+ .getInt(null);
}
} catch (IllegalArgumentException | IllegalAccessException ignored) {}
// Gets Mars ID
try {
if (ReflectionUtils.getClass("micdoodle8.mods.galacticraft.planets.mars.ConfigManagerMars") != null
- && mMarsID == -99) {
- mMarsID = ReflectionUtils.getField(
+ && mMarsID == -99) {
+ mMarsID = ReflectionUtils
+ .getField(
ReflectionUtils.getClass("micdoodle8.mods.galacticraft.planets.mars.ConfigManagerMars"),
- "dimensionIDMars").getInt(null);
+ "dimensionIDMars")
+ .getInt(null);
}
} catch (IllegalArgumentException | IllegalAccessException ignored) {}
// Get Comets ID
try {
if (ReflectionUtils.getClass("micdoodle8.mods.galacticraft.planets.asteroids.ConfigManagerAsteroids")
- != null && mCometsID == -99) {
- mCometsID = ReflectionUtils.getField(
+ != null && mCometsID == -99) {
+ mCometsID = ReflectionUtils
+ .getField(
ReflectionUtils
- .getClass("micdoodle8.mods.galacticraft.planets.asteroids.ConfigManagerAsteroids"),
- "dimensionIDAsteroids").getInt(null);
+ .getClass("micdoodle8.mods.galacticraft.planets.asteroids.ConfigManagerAsteroids"),
+ "dimensionIDAsteroids")
+ .getInt(null);
}
} catch (IllegalArgumentException | IllegalAccessException ignored) {}
@@ -90,7 +97,7 @@ public class MiningUtils {
try {
aEndAsteroids = ReflectionUtils.getField(GT_Worldgen_GT_Ore_Layer.class, "mEndAsteroid")
- .getBoolean(x);
+ .getBoolean(x);
} catch (IllegalArgumentException | IllegalAccessException e) {
aEndAsteroids = false;
}
diff --git a/src/main/java/gtPlusPlus/core/util/minecraft/PlayerUtils.java b/src/main/java/gtPlusPlus/core/util/minecraft/PlayerUtils.java
index 1a46e3c80a..ba7353cba6 100644
--- a/src/main/java/gtPlusPlus/core/util/minecraft/PlayerUtils.java
+++ b/src/main/java/gtPlusPlus/core/util/minecraft/PlayerUtils.java
@@ -36,7 +36,7 @@ public class PlayerUtils {
public static List<EntityPlayerMP> getOnlinePlayers() {
final List<EntityPlayerMP> onlinePlayers = MinecraftServer.getServer()
- .getConfigurationManager().playerEntityList;
+ .getConfigurationManager().playerEntityList;
return onlinePlayers;
}
@@ -51,7 +51,8 @@ public class PlayerUtils {
public static EntityPlayer getPlayer(final String name) {
try {
for (final EntityPlayer temp : getOnlinePlayers()) {
- if (temp.getDisplayName().equalsIgnoreCase(name)) {
+ if (temp.getDisplayName()
+ .equalsIgnoreCase(name)) {
return temp;
}
}
@@ -64,7 +65,8 @@ public class PlayerUtils {
return null;
}
for (final EntityPlayerMP player : getOnlinePlayers()) {
- if (player.getUniqueID().equals(parUUID)) {
+ if (player.getUniqueID()
+ .equals(parUUID)) {
return player;
}
}
@@ -152,12 +154,15 @@ public class PlayerUtils {
ChunkCoordinates aChunkLocation = aPlayer.getPlayerCoordinates();
// Cache Fake Player
if (aPlayer instanceof FakePlayer
- || (mThaumcraftFakePlayer != null && mThaumcraftFakePlayer.isInstance(aPlayer))
- || (aPlayer.getCommandSenderName() == null || aPlayer.getCommandSenderName().length() <= 0)
- || (aPlayer.isEntityInvulnerable() && !aPlayer.canCommandSenderUseCommand(0, "")
- && (aChunkLocation == null)
- || (aChunkLocation.posX == 0 && aChunkLocation.posY == 0 && aChunkLocation.posZ == 0))) {
- mCachedFakePlayers.put(aPlayer.getUniqueID().toString(), aPlayer);
+ || (mThaumcraftFakePlayer != null && mThaumcraftFakePlayer.isInstance(aPlayer))
+ || (aPlayer.getCommandSenderName() == null || aPlayer.getCommandSenderName()
+ .length() <= 0)
+ || (aPlayer.isEntityInvulnerable() && !aPlayer.canCommandSenderUseCommand(0, "") && (aChunkLocation == null)
+ || (aChunkLocation.posX == 0 && aChunkLocation.posY == 0 && aChunkLocation.posZ == 0))) {
+ mCachedFakePlayers.put(
+ aPlayer.getUniqueID()
+ .toString(),
+ aPlayer);
}
}
@@ -180,16 +185,19 @@ public class PlayerUtils {
cacheFakePlayer(p);
return false;
}
- if (p.getCommandSenderName().length() <= 0) {
+ if (p.getCommandSenderName()
+ .length() <= 0) {
cacheFakePlayer(p);
return false;
}
if (p.isEntityInvulnerable() && !p.canCommandSenderUseCommand(0, "")
- && (aChunkLocation.posX == 0 && aChunkLocation.posY == 0 && aChunkLocation.posZ == 0)) {
+ && (aChunkLocation.posX == 0 && aChunkLocation.posY == 0 && aChunkLocation.posZ == 0)) {
cacheFakePlayer(p);
return false;
}
- if (!isCachedFakePlayer(p.getUniqueID().toString())) {
+ if (!isCachedFakePlayer(
+ p.getUniqueID()
+ .toString())) {
return true;
}
}
diff --git a/src/main/java/gtPlusPlus/core/util/minecraft/RecipeUtils.java b/src/main/java/gtPlusPlus/core/util/minecraft/RecipeUtils.java
index 03a4ef8e31..ed2da4d7f7 100644
--- a/src/main/java/gtPlusPlus/core/util/minecraft/RecipeUtils.java
+++ b/src/main/java/gtPlusPlus/core/util/minecraft/RecipeUtils.java
@@ -35,32 +35,31 @@ public class RecipeUtils {
public static int mInvalidID = 1;
public static void recipeBuilder(final Object slot_1, final Object slot_2, final Object slot_3, final Object slot_4,
- final Object slot_5, final Object slot_6, final Object slot_7, final Object slot_8, final Object slot_9,
- ItemStack resultItem) {
+ final Object slot_5, final Object slot_6, final Object slot_7, final Object slot_8, final Object slot_9,
+ ItemStack resultItem) {
if (resultItem == null) {
Logger.RECIPE(
- "[Fix] Found a recipe with an invalid output, yet had a valid inputs. Using Dummy output so recipe can be found..");
+ "[Fix] Found a recipe with an invalid output, yet had a valid inputs. Using Dummy output so recipe can be found..");
resultItem = ItemUtils.getItemStackOfAmountFromOreDict("givemeabrokenitem", 1);
resultItem.setItemDamage(mInvalidID++);
RegistrationHandler.recipesFailed++;
} else if ((slot_1 == null) && (slot_2 == null)
- && (slot_3 == null)
- && (slot_4 == null)
- && (slot_5 == null)
- && (slot_6 == null)
- && (slot_7 == null)
- && (slot_8 == null)
- && (slot_9 == null)) {
- Logger.RECIPE("[Fix] Found a recipe with 0 inputs, yet had a valid output.");
- Logger.RECIPE(
- "[Fix] Error found while adding a recipe for: " + resultItem != null
- ? resultItem.getDisplayName()
- : "Bad Output Item" + " | Please report this issue on Github.");
- RegistrationHandler.recipesFailed++;
- return;
- }
+ && (slot_3 == null)
+ && (slot_4 == null)
+ && (slot_5 == null)
+ && (slot_6 == null)
+ && (slot_7 == null)
+ && (slot_8 == null)
+ && (slot_9 == null)) {
+ Logger.RECIPE("[Fix] Found a recipe with 0 inputs, yet had a valid output.");
+ Logger.RECIPE(
+ "[Fix] Error found while adding a recipe for: " + resultItem != null ? resultItem.getDisplayName()
+ : "Bad Output Item" + " | Please report this issue on Github.");
+ RegistrationHandler.recipesFailed++;
+ return;
+ }
Object[] o = new Object[] { slot_1, slot_2, slot_3, slot_4, slot_5, slot_6, slot_7, slot_8, slot_9 };
@@ -77,8 +76,8 @@ public class RecipeUtils {
}
} catch (RuntimeException k) {
Logger.RECIPE(
- "[Fix] Invalid Recipe detected for: " + resultItem != null ? resultItem.getUnlocalizedName()
- : "INVALID OUTPUT ITEM");
+ "[Fix] Invalid Recipe detected for: " + resultItem != null ? resultItem.getUnlocalizedName()
+ : "INVALID OUTPUT ITEM");
if (!COMPAT_HANDLER.areInitItemsLoaded) {
RegistrationHandler.recipesFailed++;
} else {
@@ -125,11 +124,13 @@ public class RecipeUtils {
private static boolean attemptRecipeRemoval(final Item I) {
Logger.RECIPE("Create list of recipes.");
- final List<IRecipe> recipes = CraftingManager.getInstance().getRecipeList();
+ final List<IRecipe> recipes = CraftingManager.getInstance()
+ .getRecipeList();
final Iterator<IRecipe> items = recipes.iterator();
Logger.RECIPE("Begin list iteration.");
while (items.hasNext()) {
- final ItemStack is = items.next().getRecipeOutput();
+ final ItemStack is = items.next()
+ .getRecipeOutput();
if ((is != null) && (is.getItem() == I)) {
items.remove();
Logger.RECIPE("Remove a recipe with " + I.getUnlocalizedName() + " as output.");
@@ -155,18 +156,18 @@ public class RecipeUtils {
}
public static boolean addShapedGregtechRecipe(final Object InputItem1, final Object InputItem2,
- final Object InputItem3, final Object InputItem4, final Object InputItem5, final Object InputItem6,
- final Object InputItem7, final Object InputItem8, final Object InputItem9, final ItemStack OutputItem) {
+ final Object InputItem3, final Object InputItem4, final Object InputItem5, final Object InputItem6,
+ final Object InputItem7, final Object InputItem8, final Object InputItem9, final ItemStack OutputItem) {
Object[] o = { InputItem1, InputItem2, InputItem3, InputItem4, InputItem5, InputItem6, InputItem7, InputItem8,
- InputItem9 };
+ InputItem9 };
if (gtPlusPlus.GTplusplus.CURRENT_LOAD_PHASE != GTplusplus.INIT_PHASE.POST_INIT) {
CORE.crash(
- "Load Phase " + gtPlusPlus.GTplusplus.CURRENT_LOAD_PHASE
- + " should be "
- + GTplusplus.INIT_PHASE.POST_INIT
- + ". Unable to register recipe.");
+ "Load Phase " + gtPlusPlus.GTplusplus.CURRENT_LOAD_PHASE
+ + " should be "
+ + GTplusplus.INIT_PHASE.POST_INIT
+ + ". Unable to register recipe.");
}
int size = COMPAT_HANDLER.mGtRecipesToGenerate.size();
@@ -188,8 +189,8 @@ public class RecipeUtils {
if (inputItems.length > 9 || inputItems.length < 1) {
if (OutputItem != null) {
Logger.RECIPE(
- "[Fix] Invalid input array for shapeless recipe, which should output "
- + OutputItem.getDisplayName());
+ "[Fix] Invalid input array for shapeless recipe, which should output "
+ + OutputItem.getDisplayName());
}
return false;
}
@@ -201,17 +202,8 @@ public class RecipeUtils {
}
public static boolean generateMortarRecipe(ItemStack aStack, ItemStack aOutput) {
- return RecipeUtils.addShapedGregtechRecipe(
- aStack,
- null,
- null,
- CI.craftingToolMortar,
- null,
- null,
- null,
- null,
- null,
- aOutput);
+ return RecipeUtils
+ .addShapedGregtechRecipe(aStack, null, null, CI.craftingToolMortar, null, null, null, null, null, aOutput);
}
public static class InternalRecipeObject implements RunnableWithInfo<String> {
@@ -237,7 +229,9 @@ public class RecipeUtils {
} else if (o == null) {
aFiltered[aValid++] = null;
} else {
- Logger.RECIPE("Cleaned a " + o.getClass().getSimpleName() + " from recipe input.");
+ Logger.RECIPE(
+ "Cleaned a " + o.getClass()
+ .getSimpleName() + " from recipe input.");
}
}
@@ -274,8 +268,8 @@ public class RecipeUtils {
GameRegistry.addRecipe(mRecipe);
} else {
Logger.RECIPE(
- "[Fix] Invalid shapped recipe outputting "
- + (mOutput != null ? mOutput.getDisplayName() : "Bad Output Item"));
+ "[Fix] Invalid shapped recipe outputting "
+ + (mOutput != null ? mOutput.getDisplayName() : "Bad Output Item"));
}
}
@@ -293,26 +287,29 @@ public class RecipeUtils {
}
public static boolean removeRecipeByOutput(ItemStack aOutput, boolean aIgnoreNBT,
- boolean aNotRemoveShapelessRecipes, boolean aOnlyRemoveNativeHandlers) {
+ boolean aNotRemoveShapelessRecipes, boolean aOnlyRemoveNativeHandlers) {
if (aOutput == null) {
return false;
} else {
boolean rReturn = false;
- ArrayList<IRecipe> tList = (ArrayList) CraftingManager.getInstance().getRecipeList();
+ ArrayList<IRecipe> tList = (ArrayList) CraftingManager.getInstance()
+ .getRecipeList();
aOutput = GT_OreDictUnificator.get(aOutput);
int tList_sS = tList.size();
for (int i = 0; i < tList_sS; ++i) {
IRecipe tRecipe = (IRecipe) tList.get(i);
if (!aNotRemoveShapelessRecipes
- || !(tRecipe instanceof ShapelessRecipes) && !(tRecipe instanceof ShapelessOreRecipe)) {
+ || !(tRecipe instanceof ShapelessRecipes) && !(tRecipe instanceof ShapelessOreRecipe)) {
if (aOnlyRemoveNativeHandlers) {
- if (!gregtech.api.util.GT_ModHandler.sNativeRecipeClasses
- .contains(tRecipe.getClass().getName())) {
+ if (!gregtech.api.util.GT_ModHandler.sNativeRecipeClasses.contains(
+ tRecipe.getClass()
+ .getName())) {
continue;
}
- } else if (gregtech.api.util.GT_ModHandler.sSpecialRecipeClasses
- .contains(tRecipe.getClass().getName())) {
+ } else if (gregtech.api.util.GT_ModHandler.sSpecialRecipeClasses.contains(
+ tRecipe.getClass()
+ .getName())) {
continue;
}
@@ -335,10 +332,10 @@ public class RecipeUtils {
}
public static boolean addShapedRecipe(Object Input_1, Object Input_2, Object Input_3, Object Input_4,
- Object Input_5, Object Input_6, Object Input_7, Object Input_8, Object Input_9, ItemStack aOutputStack) {
+ Object Input_5, Object Input_6, Object Input_7, Object Input_8, Object Input_9, ItemStack aOutputStack) {
return addShapedRecipe(
- new Object[] { Input_1, Input_2, Input_3, Input_4, Input_5, Input_6, Input_7, Input_8, Input_9 },
- aOutputStack);
+ new Object[] { Input_1, Input_2, Input_3, Input_4, Input_5, Input_6, Input_7, Input_8, Input_9 },
+ aOutputStack);
}
private static boolean addShapedRecipe(Object[] Inputs, ItemStack aOutputStack) {
@@ -371,7 +368,9 @@ public class RecipeUtils {
aFullString += " ";
} else {
Slots[i] = null;
- Logger.INFO("Cleaned a " + o.getClass().getSimpleName() + " from recipe input.");
+ Logger.INFO(
+ "Cleaned a " + o.getClass()
+ .getSimpleName() + " from recipe input.");
Logger.INFO("ERROR");
CORE.crash("Bad Shaped Recipe.");
}
@@ -398,12 +397,12 @@ public class RecipeUtils {
aDataObject[u] = aFullString.charAt(aIndex);
aDataObject[u + 1] = Slots[aIndex];
Logger.INFO(
- "(" + aIndex
- + ") "
- + aFullString.charAt(aIndex)
- + " | "
- + (Slots[aIndex] instanceof ItemStack ? ItemUtils.getItemName((ItemStack) Slots[aIndex])
- : Slots[aIndex] instanceof String ? (String) Slots[aIndex] : "Unknown"));
+ "(" + aIndex
+ + ") "
+ + aFullString.charAt(aIndex)
+ + " | "
+ + (Slots[aIndex] instanceof ItemStack ? ItemUtils.getItemName((ItemStack) Slots[aIndex])
+ : Slots[aIndex] instanceof String ? (String) Slots[aIndex] : "Unknown"));
}
aIndex++;
}
@@ -450,8 +449,8 @@ public class RecipeUtils {
GameRegistry.addRecipe(mRecipe);
} else {
Logger.INFO(
- "[Fix] Invalid shapped recipe outputting " + mOutput != null ? mOutput.getDisplayName()
- : "Bad Output Item");
+ "[Fix] Invalid shapped recipe outputting " + mOutput != null ? mOutput.getDisplayName()
+ : "Bad Output Item");
}
}
diff --git a/src/main/java/gtPlusPlus/core/util/minecraft/gregtech/PollutionUtils.java b/src/main/java/gtPlusPlus/core/util/minecraft/gregtech/PollutionUtils.java
index 2c849350bf..4e6e508c15 100644
--- a/src/main/java/gtPlusPlus/core/util/minecraft/gregtech/PollutionUtils.java
+++ b/src/main/java/gtPlusPlus/core/util/minecraft/gregtech/PollutionUtils.java
@@ -38,7 +38,7 @@ public class PollutionUtils {
public static void addPollution(IHasWorldObjectAndCoords aTileOfSomeSort, int pollutionValue) {
if (GT_Mod.gregtechproxy.mPollution) {
Chunk c = aTileOfSomeSort.getWorld()
- .getChunkFromBlockCoords(aTileOfSomeSort.getXCoord(), aTileOfSomeSort.getZCoord());
+ .getChunkFromBlockCoords(aTileOfSomeSort.getXCoord(), aTileOfSomeSort.getZCoord());
addPollution(c, pollutionValue);
}
}
@@ -69,7 +69,7 @@ public class PollutionUtils {
return;
}
Chunk c = aTileOfSomeSort.getWorld()
- .getChunkFromBlockCoords(aTileOfSomeSort.getXCoord(), aTileOfSomeSort.getZCoord());
+ .getChunkFromBlockCoords(aTileOfSomeSort.getXCoord(), aTileOfSomeSort.getZCoord());
nullifyPollution(c);
}
diff --git a/src/main/java/gtPlusPlus/core/util/recipe/GT_RecipeUtils.java b/src/main/java/gtPlusPlus/core/util/recipe/GT_RecipeUtils.java
index 94ba432847..c5498e4f59 100644
--- a/src/main/java/gtPlusPlus/core/util/recipe/GT_RecipeUtils.java
+++ b/src/main/java/gtPlusPlus/core/util/recipe/GT_RecipeUtils.java
@@ -38,16 +38,16 @@ public class GT_RecipeUtils {
}
}
GT_Recipe newRecipe = new GT_Recipe(
- false,
- itemInputsWithoutProgrammableCircuit.toArray(new ItemStack[0]),
- recipeInput.mOutputs,
- recipeInput.mSpecialItems,
- recipeInput.mChances,
- recipeInput.mFluidInputs,
- recipeInput.mFluidOutputs,
- recipeInput.mDuration,
- recipeInput.mEUt,
- recipeInput.mSpecialValue);
+ false,
+ itemInputsWithoutProgrammableCircuit.toArray(new ItemStack[0]),
+ recipeInput.mOutputs,
+ recipeInput.mSpecialItems,
+ recipeInput.mChances,
+ recipeInput.mFluidInputs,
+ recipeInput.mFluidOutputs,
+ recipeInput.mDuration,
+ recipeInput.mEUt,
+ recipeInput.mSpecialValue);
if (!recipesHashSet.contains(newRecipe)) {
// if the recipes customHashSet does not contain the new recipe then add it
recipesHashSet.add(newRecipe);
@@ -60,7 +60,8 @@ public class GT_RecipeUtils {
// damage value. This is to prevent a case where recipe load order would affect which duplicate
// recipes with multiple circuit values gets removed.
if (circuitMap.containsKey(newRecipe)) {
- if (circuitMap.get(newRecipe).getItemDamage() > savedCircuit.getItemDamage()) {
+ if (circuitMap.get(newRecipe)
+ .getItemDamage() > savedCircuit.getItemDamage()) {
circuitMap.put(newRecipe, savedCircuit);
}
} else {
@@ -85,10 +86,10 @@ public class GT_RecipeUtils {
}
// print results to log
Logger.INFO(
- "Recipe Array duplication removal process completed for '" + recipeMapName
- + "': '"
- + removedRecipeCount
- + "' removed.");
+ "Recipe Array duplication removal process completed for '" + recipeMapName
+ + "': '"
+ + removedRecipeCount
+ + "' removed.");
return recipeOutput;
}
}
diff --git a/src/main/java/gtPlusPlus/core/util/recipe/RecipeHashStrat.java b/src/main/java/gtPlusPlus/core/util/recipe/RecipeHashStrat.java
index e51d4da47a..18323a4c8b 100644
--- a/src/main/java/gtPlusPlus/core/util/recipe/RecipeHashStrat.java
+++ b/src/main/java/gtPlusPlus/core/util/recipe/RecipeHashStrat.java
@@ -67,15 +67,17 @@ public class RecipeHashStrat {
public static void sortItemStackArray(ItemStack[] itemStackArray) {
Arrays.sort(
- itemStackArray,
- Comparator.<ItemStack, Integer>comparing(itemStack -> Item.getIdFromItem(itemStack.getItem()))
- .thenComparing(ItemStack::getItemDamage).thenComparing(itemStack -> itemStack.stackSize));
+ itemStackArray,
+ Comparator.<ItemStack, Integer>comparing(itemStack -> Item.getIdFromItem(itemStack.getItem()))
+ .thenComparing(ItemStack::getItemDamage)
+ .thenComparing(itemStack -> itemStack.stackSize));
}
public static void sortFluidStackArray(FluidStack[] fluidStackArray) {
Arrays.sort(
- fluidStackArray,
- Comparator.comparing(FluidStack::getFluidID).thenComparing(fluidStack -> fluidStack.amount));
+ fluidStackArray,
+ Comparator.comparing(FluidStack::getFluidID)
+ .thenComparing(fluidStack -> fluidStack.amount));
}
public static boolean areItemsStackArraysEqual(ItemStack[] array1, ItemStack[] array2) {
diff --git a/src/main/java/gtPlusPlus/core/util/reflect/AddGregtechRecipe.java b/src/main/java/gtPlusPlus/core/util/reflect/AddGregtechRecipe.java
index ebb99735c6..807fba9238 100644
--- a/src/main/java/gtPlusPlus/core/util/reflect/AddGregtechRecipe.java
+++ b/src/main/java/gtPlusPlus/core/util/reflect/AddGregtechRecipe.java
@@ -16,20 +16,21 @@ public final class AddGregtechRecipe {
int aModifiedTime = (int) (aRecipe.mDuration * 0.8);
if (aRecipe.mInputs == null || aRecipe.mFluidInputs == null
- || aRecipe.mFluidOutputs == null
- || aRecipe.mOutputs == null) {
+ || aRecipe.mFluidOutputs == null
+ || aRecipe.mOutputs == null) {
return false;
}
if (aRecipe.mInputs.length > 2 || aRecipe.mFluidInputs.length > 1
- || aRecipe.mFluidOutputs.length > 1
- || aRecipe.mOutputs.length > 9) {
+ || aRecipe.mFluidOutputs.length > 1
+ || aRecipe.mOutputs.length > 9) {
return false;
} else if (aRecipe.mInputs.length <= 0) {
return false;
}
int aCircuitNumber = -1;
- Item aCircuit = CI.getNumberedCircuit(1).getItem();
+ Item aCircuit = CI.getNumberedCircuit(1)
+ .getItem();
boolean hasCircuit = false;
for (ItemStack a : aRecipe.mInputs) {
@@ -53,18 +54,18 @@ public final class AddGregtechRecipe {
}
return CORE.RA.addCokeOvenRecipe(
- aCircuitNumber,
- aInputItem,
- aRecipe.mFluidInputs,
- aRecipe.mFluidOutputs,
- aRecipe.mOutputs,
- aModifiedTime,
- aRecipe.mEUt);
+ aCircuitNumber,
+ aInputItem,
+ aRecipe.mFluidInputs,
+ aRecipe.mFluidOutputs,
+ aRecipe.mOutputs,
+ aModifiedTime,
+ aRecipe.mEUt);
}
@Deprecated
public static boolean addCokeAndPyrolyseRecipes(ItemStack input1, int circuitNumber, FluidStack inputFluid1,
- ItemStack output1, FluidStack outputFluid1, int timeInSeconds, int euTick) {
+ ItemStack output1, FluidStack outputFluid1, int timeInSeconds, int euTick) {
// Seconds Conversion
int TIME = timeInSeconds * 20;
int TIMEPYRO = TIME + (TIME / 5);
diff --git a/src/main/java/gtPlusPlus/core/util/reflect/ReflectionUtils.java b/src/main/java/gtPlusPlus/core/util/reflect/ReflectionUtils.java
index 8a472f5b84..078cef6ea8 100644
--- a/src/main/java/gtPlusPlus/core/util/reflect/ReflectionUtils.java
+++ b/src/main/java/gtPlusPlus/core/util/reflect/ReflectionUtils.java
@@ -69,9 +69,9 @@ public class ReflectionUtils {
private static Fields.ClassFields.Field cacheAccessor(Field f) {
return mCachedFieldAccessors.computeIfAbsent(
- f,
- (field) -> Fields.ofClass(field.getDeclaringClass())
- .getUntypedField(Fields.LookupType.DECLARED_IN_HIERARCHY, field.getName()));
+ f,
+ (field) -> Fields.ofClass(field.getDeclaringClass())
+ .getUntypedField(Fields.LookupType.DECLARED_IN_HIERARCHY, field.getName()));
}
private static boolean cacheClass(Class<?> aClass) {
@@ -91,12 +91,12 @@ public class ReflectionUtils {
return false;
}
boolean isStatic = Modifier.isStatic(aMethod.getModifiers());
- CachedMethod y = mCachedMethods.get(
- aClass.getName() + "." + aMethod.getName() + "." + ArrayUtils.toString(aMethod.getParameterTypes()));
+ CachedMethod y = mCachedMethods
+ .get(aClass.getName() + "." + aMethod.getName() + "." + ArrayUtils.toString(aMethod.getParameterTypes()));
if (y == null) {
mCachedMethods.put(
- aClass.getName() + "." + aMethod.getName() + "." + ArrayUtils.toString(aMethod.getParameterTypes()),
- new CachedMethod(aMethod, isStatic));
+ aClass.getName() + "." + aMethod.getName() + "." + ArrayUtils.toString(aMethod.getParameterTypes()),
+ new CachedMethod(aMethod, isStatic));
return true;
}
return false;
@@ -120,8 +120,8 @@ public class ReflectionUtils {
return;
}
mCachedConstructors.computeIfAbsent(
- aClass.getName() + "." + ArrayUtils.toString(aConstructor.getParameterTypes()),
- k -> new CachedConstructor(aConstructor));
+ aClass.getName() + "." + ArrayUtils.toString(aConstructor.getParameterTypes()),
+ k -> new CachedConstructor(aConstructor));
}
/**
@@ -268,13 +268,17 @@ public class ReflectionUtils {
}
public static void makeFieldAccessible(final Field field) {
- if (!Modifier.isPublic(field.getModifiers()) || !Modifier.isPublic(field.getDeclaringClass().getModifiers())) {
+ if (!Modifier.isPublic(field.getModifiers()) || !Modifier.isPublic(
+ field.getDeclaringClass()
+ .getModifiers())) {
field.setAccessible(true);
}
}
public static void makeMethodAccessible(final Method field) {
- if (!Modifier.isPublic(field.getModifiers()) || !Modifier.isPublic(field.getDeclaringClass().getModifiers())) {
+ if (!Modifier.isPublic(field.getModifiers()) || !Modifier.isPublic(
+ field.getDeclaringClass()
+ .getModifiers())) {
field.setAccessible(true);
}
}
@@ -400,9 +404,9 @@ public class ReflectionUtils {
return false;
}
Class<?> mLocalClass = (objectInstance instanceof Class ? (Class<?>) objectInstance
- : objectInstance.getClass());
+ : objectInstance.getClass());
Logger.REFLECTION(
- "Trying to invoke " + methodName + " on an instance of " + mLocalClass.getCanonicalName() + ".");
+ "Trying to invoke " + methodName + " on an instance of " + mLocalClass.getCanonicalName() + ".");
try {
Method mInvokingMethod = mLocalClass.getDeclaredMethod(methodName, parameters);
if (mInvokingMethod != null) {
@@ -414,9 +418,9 @@ public class ReflectionUtils {
Logger.REFLECTION(methodName + " is null.");
}
} catch (NoSuchMethodException | SecurityException | IllegalAccessException | IllegalArgumentException
- | InvocationTargetException e) {
+ | InvocationTargetException e) {
Logger.REFLECTION(
- "Failed to Dynamically invoke " + methodName + " on an object of type: " + mLocalClass.getName());
+ "Failed to Dynamically invoke " + methodName + " on an object of type: " + mLocalClass.getName());
}
Logger.REFLECTION("Invoke failed or did something wrong.");
@@ -523,7 +527,7 @@ public class ReflectionUtils {
}
private static Method getMethodRecursively(final Class<?> clazz, final String aMethodName)
- throws NoSuchMethodException {
+ throws NoSuchMethodException {
try {
Logger.REFLECTION("Method: Recursion Lookup: " + aMethodName);
Method k = clazz.getDeclaredMethod(aMethodName);
@@ -540,8 +544,7 @@ public class ReflectionUtils {
private static void dumpClassInfo(Class<?> aClass) {
Logger.INFO(
- "We ran into an error processing reflection in " + aClass.getName()
- + ", dumping all data for debugging.");
+ "We ran into an error processing reflection in " + aClass.getName() + ", dumping all data for debugging.");
// Get the methods
Method[] methods = aClass.getDeclaredMethods();
Field[] fields = aClass.getDeclaredFields();
@@ -550,7 +553,7 @@ public class ReflectionUtils {
Logger.INFO("Dumping all Methods.");
for (Method method : methods) {
System.out
- .println(method.getName() + " | " + StringUtils.getDataStringFromArray(method.getParameterTypes()));
+ .println(method.getName() + " | " + StringUtils.getDataStringFromArray(method.getParameterTypes()));
}
Logger.INFO("Dumping all Fields.");
for (Field f : fields) {
@@ -559,10 +562,10 @@ public class ReflectionUtils {
Logger.INFO("Dumping all Constructors.");
for (Constructor<?> c : consts) {
System.out.println(
- c.getName() + " | "
- + c.getParameterCount()
- + " | "
- + StringUtils.getDataStringFromArray(c.getParameterTypes()));
+ c.getName() + " | "
+ + c.getParameterCount()
+ + " | "
+ + StringUtils.getDataStringFromArray(c.getParameterTypes()));
}
}
@@ -598,7 +601,7 @@ public class ReflectionUtils {
final Object o = constructor.newInstance();
return (Class<?>) o;
} catch (InstantiationException | IllegalAccessException | IllegalArgumentException
- | InvocationTargetException e) {
+ | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
@@ -638,11 +641,13 @@ public class ReflectionUtils {
boolean found = false;
for (Class<?> h : y) {
Logger.REFLECTION("Found hidden inner class: " + h.getCanonicalName());
- if (h.getSimpleName().toLowerCase().equals(aData[aData.length - 1].toLowerCase())) {
+ if (h.getSimpleName()
+ .toLowerCase()
+ .equals(aData[aData.length - 1].toLowerCase())) {
Logger.REFLECTION(
- "Found correct class. [" + aData[aData.length - 1]
- + "] Caching at correct location: "
- + string);
+ "Found correct class. [" + aData[aData.length - 1]
+ + "] Caching at correct location: "
+ + string);
Logger.REFLECTION("Found at location: " + h.getCanonicalName());
ReflectionUtils.mCachedClasses.put(string, h);
aClass = h;
@@ -700,7 +705,7 @@ public class ReflectionUtils {
return aInstance;
}
} catch (InstantiationException | IllegalAccessException | IllegalArgumentException
- | InvocationTargetException e) {
+ | InvocationTargetException e) {
e.printStackTrace();
}
return null;
@@ -710,7 +715,9 @@ public class ReflectionUtils {
if (sgtbees.isEnum()) {
Object[] aValues = sgtbees.getEnumConstants();
for (Object o : aValues) {
- if (o.toString().toLowerCase().equals(name.toLowerCase())) {
+ if (o.toString()
+ .toLowerCase()
+ .equals(name.toLowerCase())) {
return (Enum) o;
}
}
diff --git a/src/main/java/gtPlusPlus/core/util/sys/KeyboardUtils.java b/src/main/java/gtPlusPlus/core/util/sys/KeyboardUtils.java
index 7b3baffc7e..9c8b471ff6 100644
--- a/src/main/java/gtPlusPlus/core/util/sys/KeyboardUtils.java
+++ b/src/main/java/gtPlusPlus/core/util/sys/KeyboardUtils.java
@@ -14,7 +14,7 @@ public class KeyboardUtils {
// prioritize CONTROL, but allow OPTION as well on Mac (note: GuiScreen's isCtrlKeyDown only checks for the
// OPTION key on Mac)
boolean isCtrlKeyDown = Keyboard.isKeyDown(Keyboard.KEY_LCONTROL)
- || Keyboard.isKeyDown(Keyboard.KEY_RCONTROL);
+ || Keyboard.isKeyDown(Keyboard.KEY_RCONTROL);
if (!isCtrlKeyDown && Minecraft.isRunningOnMac)
isCtrlKeyDown = Keyboard.isKeyDown(Keyboard.KEY_LMETA) || Keyboard.isKeyDown(Keyboard.KEY_RMETA);
diff --git a/src/main/java/gtPlusPlus/core/world/explosions/ExplosionHandler.java b/src/main/java/gtPlusPlus/core/world/explosions/ExplosionHandler.java
index d44689efe6..fdad398f6f 100644
--- a/src/main/java/gtPlusPlus/core/world/explosions/ExplosionHandler.java
+++ b/src/main/java/gtPlusPlus/core/world/explosions/ExplosionHandler.java
@@ -9,7 +9,7 @@ public class ExplosionHandler {
* Creates an explosion. Args: entity, x, y, z, strength
*/
public MiningExplosion createExplosion(final World world, final Entity entityObj, final double x, final double y,
- final double z, final float size, final boolean makesFlames, final boolean makesSmoke) {
+ final double z, final float size, final boolean makesFlames, final boolean makesSmoke) {
return this.newExplosion(world, entityObj, x, y, z, size, makesFlames, makesSmoke);
}
@@ -17,7 +17,7 @@ public class ExplosionHandler {
* returns a new explosion.
*/
public MiningExplosion newExplosion(final World world, final Entity entityObj, final double x, final double y,
- final double z, final float size, final boolean makesFlames, final boolean makesSmoke) {
+ final double z, final float size, final boolean makesFlames, final boolean makesSmoke) {
final MiningExplosion explosion = new MiningExplosion(world, entityObj, x, y, z, size);
explosion.isFlaming = makesFlames;
explosion.isSmoking = makesSmoke;
diff --git a/src/main/java/gtPlusPlus/core/world/explosions/MiningExplosion.java b/src/main/java/gtPlusPlus/core/world/explosions/MiningExplosion.java
index ddc903e86a..4d5473d349 100644
--- a/src/main/java/gtPlusPlus/core/world/explosions/MiningExplosion.java
+++ b/src/main/java/gtPlusPlus/core/world/explosions/MiningExplosion.java
@@ -35,7 +35,7 @@ public class MiningExplosion extends Explosion {
private final Map<Entity, Vec3> field_77288_k = new HashMap<>();
public MiningExplosion(final World worldObj, final Entity entityObj, final double x, final double y, final double z,
- final float size) {
+ final float size) {
super(worldObj, entityObj, x, y, z, size);
this.worldObj = worldObj;
this.exploder = entityObj;
@@ -64,10 +64,10 @@ public class MiningExplosion extends Explosion {
for (j = 0; j < this.field_77289_h; ++j) {
for (k = 0; k < this.field_77289_h; ++k) {
if ((i == 0) || (i == (this.field_77289_h - 1))
- || (j == 0)
- || (j == (this.field_77289_h - 1))
- || (k == 0)
- || (k == (this.field_77289_h - 1))) {
+ || (j == 0)
+ || (j == (this.field_77289_h - 1))
+ || (k == 0)
+ || (k == (this.field_77289_h - 1))) {
double d0 = ((i / (this.field_77289_h - 1.0F)) * 2.0F) - 1.0F;
double d1 = ((j / (this.field_77289_h - 1.0F)) * 2.0F) - 1.0F;
double d2 = ((k / (this.field_77289_h - 1.0F)) * 2.0F) - 1.0F;
@@ -88,21 +88,21 @@ public class MiningExplosion extends Explosion {
if (block.getMaterial() != Material.air) {
final float f3 = this.exploder != null
- ? this.exploder.func_145772_a(this, this.worldObj, j1, k1, l1, block)
- : block.getExplosionResistance(
- this.exploder,
- this.worldObj,
- j1,
- k1,
- l1,
- this.explosionX,
- this.explosionY,
- this.explosionZ);
+ ? this.exploder.func_145772_a(this, this.worldObj, j1, k1, l1, block)
+ : block.getExplosionResistance(
+ this.exploder,
+ this.worldObj,
+ j1,
+ k1,
+ l1,
+ this.explosionX,
+ this.explosionY,
+ this.explosionZ);
f1 -= (f3 + 0.3F) * f2;
}
if ((f1 > 0.0F) && ((this.exploder == null)
- || this.exploder.func_145774_a(this, this.worldObj, j1, k1, l1, block, f1))) {
+ || this.exploder.func_145774_a(this, this.worldObj, j1, k1, l1, block, f1))) {
hashset.add(new ChunkPosition(j1, k1, l1));
}
@@ -124,13 +124,13 @@ public class MiningExplosion extends Explosion {
final int l = MathHelper.floor_double(this.explosionZ - this.explosionSize - 1.0D);
final int j2 = MathHelper.floor_double(this.explosionZ + this.explosionSize + 1.0D);
final List<Entity> list = this.worldObj
- .getEntitiesWithinAABBExcludingEntity(this.exploder, AxisAlignedBB.getBoundingBox(i, k, l, j, i2, j2));
+ .getEntitiesWithinAABBExcludingEntity(this.exploder, AxisAlignedBB.getBoundingBox(i, k, l, j, i2, j2));
net.minecraftforge.event.ForgeEventFactory.onExplosionDetonate(this.worldObj, this, list, this.explosionSize);
final Vec3 vec3 = Vec3.createVectorHelper(this.explosionX, this.explosionY, this.explosionZ);
for (final Entity entity : list) {
final double d4 = entity.getDistance(this.explosionX, this.explosionY, this.explosionZ)
- / this.explosionSize;
+ / this.explosionSize;
if (d4 <= 1.0D) {
d5 = entity.posX - this.explosionX;
@@ -145,8 +145,8 @@ public class MiningExplosion extends Explosion {
final double d10 = this.worldObj.getBlockDensity(vec3, entity.boundingBox);
final double d11 = (1.0D - d4) * d10;
entity.attackEntityFrom(
- DamageSource.setExplosionSource(this),
- ((int) (((((d11 * d11) + d11) / 2.0D) * 8.0D * this.explosionSize) + 1.0D)));
+ DamageSource.setExplosionSource(this),
+ ((int) (((((d11 * d11) + d11) / 2.0D) * 8.0D * this.explosionSize) + 1.0D)));
final double d8 = EnchantmentProtection.func_92092_a(entity, d11);
entity.motionX += d5 * d8;
entity.motionY += d6 * d8;
@@ -168,129 +168,123 @@ public class MiningExplosion extends Explosion {
@Override
public void doExplosionB(final boolean p_77279_1_) {
this.worldObj.playSoundEffect(
- this.explosionX,
- this.explosionY,
- this.explosionZ,
- "random.explode",
- 4.0F,
- (1.0F + ((this.worldObj.rand.nextFloat() - this.worldObj.rand.nextFloat()) * 0.2F)) * 0.7F);
+ this.explosionX,
+ this.explosionY,
+ this.explosionZ,
+ "random.explode",
+ 4.0F,
+ (1.0F + ((this.worldObj.rand.nextFloat() - this.worldObj.rand.nextFloat()) * 0.2F)) * 0.7F);
if ((this.explosionSize >= 2.0F) && this.isSmoking) {
+ this.worldObj
+ .spawnParticle("hugeexplosion", this.explosionX, this.explosionY, this.explosionZ, 1.0D, 0.0D, 0.0D);
this.worldObj.spawnParticle(
- "hugeexplosion",
- this.explosionX,
- this.explosionY,
- this.explosionZ,
- 1.0D,
- 0.0D,
- 0.0D);
- this.worldObj.spawnParticle(
- "smoke",
- this.explosionX + MathUtils.randDouble(0, 1),
- this.explosionY + MathUtils.randDouble(0, 1),
- this.explosionZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "smoke",
+ this.explosionX + MathUtils.randDouble(0, 1),
+ this.explosionY + MathUtils.randDouble(0, 1),
+ this.explosionZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "largesmoke",
- this.explosionX + MathUtils.randDouble(0, 1),
- this.explosionY + MathUtils.randDouble(0, 1),
- this.explosionZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "largesmoke",
+ this.explosionX + MathUtils.randDouble(0, 1),
+ this.explosionY + MathUtils.randDouble(0, 1),
+ this.explosionZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "cloud",
- this.explosionX + MathUtils.randDouble(0, 1),
- this.explosionY + MathUtils.randDouble(0, 1),
- this.explosionZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "cloud",
+ this.explosionX + MathUtils.randDouble(0, 1),
+ this.explosionY + MathUtils.randDouble(0, 1),
+ this.explosionZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "flame",
- this.explosionX + MathUtils.randDouble(0, 1),
- this.explosionY + MathUtils.randDouble(0, 1),
- this.explosionZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "flame",
+ this.explosionX + MathUtils.randDouble(0, 1),
+ this.explosionY + MathUtils.randDouble(0, 1),
+ this.explosionZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "explode",
- this.explosionX + MathUtils.randDouble(0, 1),
- this.explosionY + MathUtils.randDouble(0, 1),
- this.explosionZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "explode",
+ this.explosionX + MathUtils.randDouble(0, 1),
+ this.explosionY + MathUtils.randDouble(0, 1),
+ this.explosionZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "largeexplode",
- this.explosionX + MathUtils.randDouble(0, 1),
- this.explosionY + MathUtils.randDouble(0, 1),
- this.explosionZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "largeexplode",
+ this.explosionX + MathUtils.randDouble(0, 1),
+ this.explosionY + MathUtils.randDouble(0, 1),
+ this.explosionZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "hugeexplosion",
- this.explosionX + MathUtils.randDouble(0, 1),
- this.explosionY + MathUtils.randDouble(0, 1),
- this.explosionZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "hugeexplosion",
+ this.explosionX + MathUtils.randDouble(0, 1),
+ this.explosionY + MathUtils.randDouble(0, 1),
+ this.explosionZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
} else {
this.worldObj
- .spawnParticle("largeexplode", this.explosionX, this.explosionY, this.explosionZ, 1.0D, 0.0D, 0.0D);
+ .spawnParticle("largeexplode", this.explosionX, this.explosionY, this.explosionZ, 1.0D, 0.0D, 0.0D);
this.worldObj.spawnParticle(
- "smoke",
- this.explosionX + MathUtils.randDouble(0, 1),
- this.explosionY + MathUtils.randDouble(0, 1),
- this.explosionZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "smoke",
+ this.explosionX + MathUtils.randDouble(0, 1),
+ this.explosionY + MathUtils.randDouble(0, 1),
+ this.explosionZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "largesmoke",
- this.explosionX + MathUtils.randDouble(0, 1),
- this.explosionY + MathUtils.randDouble(0, 1),
- this.explosionZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "largesmoke",
+ this.explosionX + MathUtils.randDouble(0, 1),
+ this.explosionY + MathUtils.randDouble(0, 1),
+ this.explosionZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "cloud",
- this.explosionX + MathUtils.randDouble(0, 1),
- this.explosionY + MathUtils.randDouble(0, 1),
- this.explosionZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "cloud",
+ this.explosionX + MathUtils.randDouble(0, 1),
+ this.explosionY + MathUtils.randDouble(0, 1),
+ this.explosionZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "flame",
- this.explosionX + MathUtils.randDouble(0, 1),
- this.explosionY + MathUtils.randDouble(0, 1),
- this.explosionZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "flame",
+ this.explosionX + MathUtils.randDouble(0, 1),
+ this.explosionY + MathUtils.randDouble(0, 1),
+ this.explosionZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "explode",
- this.explosionX + MathUtils.randDouble(0, 1),
- this.explosionY + MathUtils.randDouble(0, 1),
- this.explosionZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "explode",
+ this.explosionX + MathUtils.randDouble(0, 1),
+ this.explosionY + MathUtils.randDouble(0, 1),
+ this.explosionZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "largeexplode",
- this.explosionX + MathUtils.randDouble(0, 1),
- this.explosionY + MathUtils.randDouble(0, 1),
- this.explosionZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "largeexplode",
+ this.explosionX + MathUtils.randDouble(0, 1),
+ this.explosionY + MathUtils.randDouble(0, 1),
+ this.explosionZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
}
Iterator<ChunkPosition> iterator;
@@ -327,83 +321,83 @@ public class MiningExplosion extends Explosion {
d4 *= d7;
d5 *= d7;
this.worldObj.spawnParticle(
- "explode",
- (d0 + (this.explosionX * 1.0D)) / 2.0D,
- (d1 + (this.explosionY * 1.0D)) / 2.0D,
- (d2 + (this.explosionZ * 1.0D)) / 2.0D,
- d3,
- d4,
- d5);
+ "explode",
+ (d0 + (this.explosionX * 1.0D)) / 2.0D,
+ (d1 + (this.explosionY * 1.0D)) / 2.0D,
+ (d2 + (this.explosionZ * 1.0D)) / 2.0D,
+ d3,
+ d4,
+ d5);
this.worldObj.spawnParticle("smoke", d0, d1, d2, d3, d4, d5);
this.worldObj.spawnParticle(
- "smoke",
- this.explosionX + MathUtils.randDouble(0, 1),
- this.explosionY + MathUtils.randDouble(0, 1),
- this.explosionZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "smoke",
+ this.explosionX + MathUtils.randDouble(0, 1),
+ this.explosionY + MathUtils.randDouble(0, 1),
+ this.explosionZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "largesmoke",
- this.explosionX + MathUtils.randDouble(0, 1),
- this.explosionY + MathUtils.randDouble(0, 1),
- this.explosionZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "largesmoke",
+ this.explosionX + MathUtils.randDouble(0, 1),
+ this.explosionY + MathUtils.randDouble(0, 1),
+ this.explosionZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "cloud",
- this.explosionX + MathUtils.randDouble(0, 1),
- this.explosionY + MathUtils.randDouble(0, 1),
- this.explosionZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "cloud",
+ this.explosionX + MathUtils.randDouble(0, 1),
+ this.explosionY + MathUtils.randDouble(0, 1),
+ this.explosionZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "flame",
- this.explosionX + MathUtils.randDouble(0, 1),
- this.explosionY + MathUtils.randDouble(0, 1),
- this.explosionZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "flame",
+ this.explosionX + MathUtils.randDouble(0, 1),
+ this.explosionY + MathUtils.randDouble(0, 1),
+ this.explosionZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "explode",
- this.explosionX + MathUtils.randDouble(0, 1),
- this.explosionY + MathUtils.randDouble(0, 1),
- this.explosionZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "explode",
+ this.explosionX + MathUtils.randDouble(0, 1),
+ this.explosionY + MathUtils.randDouble(0, 1),
+ this.explosionZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "largeexplode",
- this.explosionX + MathUtils.randDouble(0, 1),
- this.explosionY + MathUtils.randDouble(0, 1),
- this.explosionZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "largeexplode",
+ this.explosionX + MathUtils.randDouble(0, 1),
+ this.explosionY + MathUtils.randDouble(0, 1),
+ this.explosionZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
this.worldObj.spawnParticle(
- "hugeexplosion",
- this.explosionX + MathUtils.randDouble(0, 1),
- this.explosionY + MathUtils.randDouble(0, 1),
- this.explosionZ + MathUtils.randDouble(0, 1),
- 0.0D,
- 0.0D,
- 0.0D);
+ "hugeexplosion",
+ this.explosionX + MathUtils.randDouble(0, 1),
+ this.explosionY + MathUtils.randDouble(0, 1),
+ this.explosionZ + MathUtils.randDouble(0, 1),
+ 0.0D,
+ 0.0D,
+ 0.0D);
}
if (block.getMaterial() != Material.air) {
if (block.canDropFromExplosion(this)) {
// world, x, y, z, world.getBlockMetadata(x, y, z), dropProb, 0
block.dropBlockAsItemWithChance(
- this.worldObj,
- i,
- j,
- k,
- this.worldObj.getBlockMetadata(i, j, k),
- 1F,
- 0);
+ this.worldObj,
+ i,
+ j,
+ k,
+ this.worldObj.getBlockMetadata(i, j, k),
+ 1F,
+ 0);
}
block.onBlockExploded(this.worldObj, i, j, k, this);
@@ -423,7 +417,7 @@ public class MiningExplosion extends Explosion {
final Block block1 = this.worldObj.getBlock(i, j - 1, k);
if ((block.getMaterial() == Material.air) && block1.func_149730_j()
- && (this.explosionRNG.nextInt(3) == 0)) {
+ && (this.explosionRNG.nextInt(3) == 0)) {
this.worldObj.setBlock(i, j, k, Blocks.fire);
}
}
@@ -441,8 +435,8 @@ public class MiningExplosion extends Explosion {
@Override
public EntityLivingBase getExplosivePlacedBy() {
return this.exploder == null ? null
- : (this.exploder instanceof EntityPrimedMiningExplosive
- ? ((EntityPrimedMiningExplosive) this.exploder).getTntPlacedBy()
- : (this.exploder instanceof EntityLivingBase ? (EntityLivingBase) this.exploder : null));
+ : (this.exploder instanceof EntityPrimedMiningExplosive
+ ? ((EntityPrimedMiningExplosive) this.exploder).getTntPlacedBy()
+ : (this.exploder instanceof EntityLivingBase ? (EntityLivingBase) this.exploder : null));
}
}
diff --git a/src/main/java/gtPlusPlus/everglades/GTplusplus_Everglades.java b/src/main/java/gtPlusPlus/everglades/GTplusplus_Everglades.java
index 11d0894075..34c6b01648 100644
--- a/src/main/java/gtPlusPlus/everglades/GTplusplus_Everglades.java
+++ b/src/main/java/gtPlusPlus/everglades/GTplusplus_Everglades.java
@@ -36,10 +36,10 @@ import gtPlusPlus.xmod.gregtech.HANDLER_GT;
import gtPlusPlus.xmod.gregtech.api.util.GTPP_Config;
@Mod(
- modid = Mods.Names.G_T_PLUS_PLUS_EVERGLADES,
- name = Everglades.NAME,
- version = Everglades.VERSION,
- dependencies = "required-after:Forge; after:dreamcraft; after:IC2; required-after:gregtech; required-after:miscutils;")
+ modid = Mods.Names.G_T_PLUS_PLUS_EVERGLADES,
+ name = Everglades.NAME,
+ version = Everglades.VERSION,
+ dependencies = "required-after:Forge; after:dreamcraft; after:IC2; required-after:gregtech; required-after:miscutils;")
public class GTplusplus_Everglades implements ActionListener {
// Mod Instance
@@ -68,8 +68,8 @@ public class GTplusplus_Everglades implements ActionListener {
// Load/Set Custom Ore Gen
HANDLER_GT.sCustomWorldgenFile = new GTPP_Config(
- new Configuration(
- new File(new File(event.getModConfigurationDirectory(), "GTplusplus"), "WorldGeneration.cfg")));
+ new Configuration(
+ new File(new File(event.getModConfigurationDirectory(), "GTplusplus"), "WorldGeneration.cfg")));
}
@EventHandler
@@ -135,8 +135,8 @@ public class GTplusplus_Everglades implements ActionListener {
protected synchronized void setVars(FMLPreInitializationEvent event) {
// Init WorldGen config.
HANDLER_GT.sCustomWorldgenFile = new GTPP_Config(
- new Configuration(
- new File(new File(event.getModConfigurationDirectory(), "GTplusplus"), "WorldGeneration.cfg")));
+ new Configuration(
+ new File(new File(event.getModConfigurationDirectory(), "GTplusplus"), "WorldGeneration.cfg")));
if (DimensionManager.isDimensionRegistered(Dimension_Everglades.DIMID)) {
Dimension_Everglades.DIMID = DimensionManager.getNextFreeDimId();
diff --git a/src/main/java/gtPlusPlus/everglades/biome/BiomeGenerator_Custom.java b/src/main/java/gtPlusPlus/everglades/biome/BiomeGenerator_Custom.java
index e223b50645..fce5efca36 100644
--- a/src/main/java/gtPlusPlus/everglades/biome/BiomeGenerator_Custom.java
+++ b/src/main/java/gtPlusPlus/everglades/biome/BiomeGenerator_Custom.java
@@ -87,7 +87,7 @@ public class BiomeGenerator_Custom extends BiomeDecorator {
@Override
public void decorateChunk(World p_150512_1_, Random p_150512_2_, BiomeGenBase p_150512_3_, int p_150512_4_,
- int p_150512_5_) {
+ int p_150512_5_) {
if (this.currentWorld != null) {
throw new RuntimeException("Already decorating!!");
} else {
@@ -114,11 +114,11 @@ public class BiomeGenerator_Custom extends BiomeDecorator {
j = this.chunk_X + this.randomGenerator.nextInt(16) + 8;
k = this.chunk_Z + this.randomGenerator.nextInt(16) + 8;
this.sandGen.generate(
- this.currentWorld,
- this.randomGenerator,
- j,
- this.currentWorld.getTopSolidOrLiquidBlock(j, k),
- k);
+ this.currentWorld,
+ this.randomGenerator,
+ j,
+ this.currentWorld.getTopSolidOrLiquidBlock(j, k),
+ k);
}
doGen = TerrainGen.decorate(currentWorld, randomGenerator, chunk_X, chunk_Z, CLAY);
@@ -126,11 +126,11 @@ public class BiomeGenerator_Custom extends BiomeDecorator {
j = this.chunk_X + this.randomGenerator.nextInt(16) + 8;
k = this.chunk_Z + this.randomGenerator.nextInt(16) + 8;
this.clayGen.generate(
- this.currentWorld,
- this.randomGenerator,
- j,
- this.currentWorld.getTopSolidOrLiquidBlock(j, k),
- k);
+ this.currentWorld,
+ this.randomGenerator,
+ j,
+ this.currentWorld.getTopSolidOrLiquidBlock(j, k),
+ k);
}
doGen = TerrainGen.decorate(currentWorld, randomGenerator, chunk_X, chunk_Z, SAND_PASS2);
@@ -138,11 +138,11 @@ public class BiomeGenerator_Custom extends BiomeDecorator {
j = this.chunk_X + this.randomGenerator.nextInt(16) + 8;
k = this.chunk_Z + this.randomGenerator.nextInt(16) + 8;
this.gravelAsSandGen.generate(
- this.currentWorld,
- this.randomGenerator,
- j,
- this.currentWorld.getTopSolidOrLiquidBlock(j, k),
- k);
+ this.currentWorld,
+ this.randomGenerator,
+ j,
+ this.currentWorld.getTopSolidOrLiquidBlock(j, k),
+ k);
}
i = this.treesPerChunk;
@@ -172,7 +172,7 @@ public class BiomeGenerator_Custom extends BiomeDecorator {
k = this.chunk_X + this.randomGenerator.nextInt(16) + 8;
l = this.chunk_Z + this.randomGenerator.nextInt(16) + 8;
this.bigMushroomGen
- .generate(this.currentWorld, this.randomGenerator, k, this.currentWorld.getHeightValue(k, l), l);
+ .generate(this.currentWorld, this.randomGenerator, k, this.currentWorld.getHeightValue(k, l), l);
}
doGen = TerrainGen.decorate(currentWorld, randomGenerator, chunk_X, chunk_Z, FLOWERS);
@@ -212,7 +212,7 @@ public class BiomeGenerator_Custom extends BiomeDecorator {
l = this.chunk_Z + this.randomGenerator.nextInt(16) + 8;
for (i1 = nextInt(this.currentWorld.getHeightValue(k, l) * 2); i1 > 0
- && this.currentWorld.isAirBlock(k, i1 - 1, l); --i1) {
+ && this.currentWorld.isAirBlock(k, i1 - 1, l); --i1) {
;
}
@@ -293,7 +293,7 @@ public class BiomeGenerator_Custom extends BiomeDecorator {
for (j = 0; j < 20; ++j) {
k = this.chunk_X + this.randomGenerator.nextInt(16) + 8;
l = this.randomGenerator
- .nextInt(this.randomGenerator.nextInt(this.randomGenerator.nextInt(240) + 8) + 8);
+ .nextInt(this.randomGenerator.nextInt(this.randomGenerator.nextInt(240) + 8) + 8);
i1 = this.chunk_Z + this.randomGenerator.nextInt(16) + 8;
(new WorldGenLiquids(Blocks.flowing_lava)).generate(this.currentWorld, this.randomGenerator, k, l, i1);
}
@@ -323,7 +323,7 @@ public class BiomeGenerator_Custom extends BiomeDecorator {
for (int l = 0; l < p_76793_1_; ++l) {
int i1 = this.chunk_X + this.randomGenerator.nextInt(16);
int j1 = this.randomGenerator.nextInt(p_76793_4_) + this.randomGenerator.nextInt(p_76793_4_)
- + (p_76793_3_ - p_76793_4_);
+ + (p_76793_3_ - p_76793_4_);
int k1 = this.chunk_Z + this.randomGenerator.nextInt(16);
p_76793_2_.generate(this.currentWorld, this.randomGenerator, i1, j1, k1);
}
diff --git a/src/main/java/gtPlusPlus/everglades/block/BlockDarkWorldPollutedDirt.java b/src/main/java/gtPlusPlus/everglades/block/BlockDarkWorldPollutedDirt.java
index 43bb2ecac0..a99b852a5a 100644
--- a/src/main/java/gtPlusPlus/everglades/block/BlockDarkWorldPollutedDirt.java
+++ b/src/main/java/gtPlusPlus/everglades/block/BlockDarkWorldPollutedDirt.java
@@ -51,7 +51,7 @@ public class BlockDarkWorldPollutedDirt extends BlockDirt implements ITileToolti
for (int k1 = -1; k1 <= 1; ++k1) {
for (int l1 = -1; l1 <= 1; ++l1) {
int i2 = p_149720_1_.getBiomeGenForCoords(p_149720_2_ + l1, p_149720_4_ + k1)
- .getBiomeGrassColor(p_149720_2_ + l1, p_149720_3_, p_149720_4_ + k1);
+ .getBiomeGrassColor(p_149720_2_ + l1, p_149720_3_, p_149720_4_ + k1);
l += (i2 & 16711680) >> 16;
i1 += (i2 & 65280) >> 8;
j1 += i2 & 255;
diff --git a/src/main/java/gtPlusPlus/everglades/block/BlockEvergladesPortal.java b/src/main/java/gtPlusPlus/everglades/block/BlockEvergladesPortal.java
index 791c4321a2..eafa67980d 100644
--- a/src/main/java/gtPlusPlus/everglades/block/BlockEvergladesPortal.java
+++ b/src/main/java/gtPlusPlus/everglades/block/BlockEvergladesPortal.java
@@ -101,7 +101,7 @@ public class BlockEvergladesPortal extends BlockBreakable implements ITileToolti
float f;
float f1;
if (par1IBlockAccess.getBlock(par2 - 1, par3, par4) != this
- && par1IBlockAccess.getBlock(par2 + 1, par3, par4) != this) {
+ && par1IBlockAccess.getBlock(par2 + 1, par3, par4) != this) {
f = 0.125F;
f1 = 0.5F;
this.setBlockBounds(0.5F - f, 0.0F, 0.5F - f1, 0.5F + f, 1.0F, 0.5F + f1);
@@ -136,11 +136,11 @@ public class BlockEvergladesPortal extends BlockBreakable implements ITileToolti
byte b0 = 0;
byte b1 = 0;
if (par1World.getBlock(par2 - 1, par3, par4) == Dimension_Everglades.blockPortalFrame
- || par1World.getBlock(par2 + 1, par3, par4) == Dimension_Everglades.blockPortalFrame) {
+ || par1World.getBlock(par2 + 1, par3, par4) == Dimension_Everglades.blockPortalFrame) {
b0 = 1;
}
if (par1World.getBlock(par2, par3, par4 - 1) == Dimension_Everglades.blockPortalFrame
- || par1World.getBlock(par2, par3, par4 + 1) == Dimension_Everglades.blockPortalFrame) {
+ || par1World.getBlock(par2, par3, par4 + 1) == Dimension_Everglades.blockPortalFrame) {
b1 = 1;
}
if (b0 == b1) {
@@ -222,9 +222,9 @@ public class BlockEvergladesPortal extends BlockBreakable implements ITileToolti
par1World.setBlockToAir(x, y, z);
} else {
if ((par1World.getBlock(x + b0, y, z + b1) != Dimension_Everglades.blockPortalFrame
- || par1World.getBlock(x - b0, y, z - b1) != this)
- && (par1World.getBlock(x - b0, y, z - b1) != Dimension_Everglades.blockPortalFrame
- || par1World.getBlock(x + b0, y, z + b1) != this)) {
+ || par1World.getBlock(x - b0, y, z - b1) != this)
+ && (par1World.getBlock(x - b0, y, z - b1) != Dimension_Everglades.blockPortalFrame
+ || par1World.getBlock(x + b0, y, z + b1) != this)) {
par1World.setBlockToAir(x, y, z);
}
}
@@ -257,17 +257,17 @@ public class BlockEvergladesPortal extends BlockBreakable implements ITileToolti
return false;
} else {
boolean flag = par1IBlockAccess.getBlock(par2 - 1, par3, par4) == this
- && par1IBlockAccess.getBlock(par2 - 2, par3, par4) != this;
+ && par1IBlockAccess.getBlock(par2 - 2, par3, par4) != this;
boolean flag1 = par1IBlockAccess.getBlock(par2 + 1, par3, par4) == this
- && par1IBlockAccess.getBlock(par2 + 2, par3, par4) != this;
+ && par1IBlockAccess.getBlock(par2 + 2, par3, par4) != this;
boolean flag2 = par1IBlockAccess.getBlock(par2, par3, par4 - 1) == this
- && par1IBlockAccess.getBlock(par2, par3, par4 - 2) != this;
+ && par1IBlockAccess.getBlock(par2, par3, par4 - 2) != this;
boolean flag3 = par1IBlockAccess.getBlock(par2, par3, par4 + 1) == this
- && par1IBlockAccess.getBlock(par2, par3, par4 + 2) != this;
+ && par1IBlockAccess.getBlock(par2, par3, par4 + 2) != this;
boolean flag4 = flag || flag1;
boolean flag5 = flag2 || flag3;
return flag4 && par5 == 4 ? true
- : (flag4 && par5 == 5 ? true : (flag5 && par5 == 2 ? true : flag5 && par5 == 3));
+ : (flag4 && par5 == 5 ? true : (flag5 && par5 == 2 ? true : flag5 && par5 == 3));
}
}
@@ -285,19 +285,21 @@ public class BlockEvergladesPortal extends BlockBreakable implements ITileToolti
@Override
public void onEntityCollidedWithBlock(World par1World, int par2, int par3, int par4, Entity par5Entity) {
if ((par5Entity.ridingEntity == null) && (par5Entity.riddenByEntity == null)
- && ((par5Entity instanceof EntityPlayerMP thePlayer))) {
+ && ((par5Entity instanceof EntityPlayerMP thePlayer))) {
if (thePlayer.timeUntilPortal > 0) {
thePlayer.timeUntilPortal = 100;
} else if (thePlayer.dimension != Dimension_Everglades.DIMID) {
thePlayer.timeUntilPortal = 100;
- thePlayer.mcServer.getConfigurationManager().transferPlayerToDimension(
+ thePlayer.mcServer.getConfigurationManager()
+ .transferPlayerToDimension(
thePlayer,
Dimension_Everglades.DIMID,
new TeleporterDimensionMod(
- thePlayer.mcServer.worldServerForDimension(Dimension_Everglades.DIMID)));
+ thePlayer.mcServer.worldServerForDimension(Dimension_Everglades.DIMID)));
} else {
thePlayer.timeUntilPortal = 100;
- thePlayer.mcServer.getConfigurationManager().transferPlayerToDimension(
+ thePlayer.mcServer.getConfigurationManager()
+ .transferPlayerToDimension(
thePlayer,
0,
new TeleporterDimensionMod(thePlayer.mcServer.worldServerForDimension(0)));
@@ -322,13 +324,13 @@ public class BlockEvergladesPortal extends BlockBreakable implements ITileToolti
public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random) {
if (CORE.RANDOM.nextInt(100) == 0) {
par1World.playSound(
- par2 + 0.5D,
- par3 + 0.5D,
- par4 + 0.5D,
- "portal.portal",
- 0.5F,
- CORE.RANDOM.nextFloat() * 0.4F + 0.8F,
- false);
+ par2 + 0.5D,
+ par3 + 0.5D,
+ par4 + 0.5D,
+ "portal.portal",
+ 0.5F,
+ CORE.RANDOM.nextFloat() * 0.4F + 0.8F,
+ false);
}
for (int l = 0; l < 4; ++l) {
double d0 = par2 + CORE.RANDOM.nextFloat();
diff --git a/src/main/java/gtPlusPlus/everglades/block/DarkWorldContentLoader.java b/src/main/java/gtPlusPlus/everglades/block/DarkWorldContentLoader.java
index 4e1ca32dd0..7cbc1cb5e0 100644
--- a/src/main/java/gtPlusPlus/everglades/block/DarkWorldContentLoader.java
+++ b/src/main/java/gtPlusPlus/everglades/block/DarkWorldContentLoader.java
@@ -31,7 +31,11 @@ public class DarkWorldContentLoader {
// Fluids
SLUDGE = (BlockDarkWorldSludgeFluid) new BlockDarkWorldSludgeFluid("sludge", Utils.rgbtoHexValue(30, 130, 30))
- .setDensity(1800).setGaseous(false).setLuminosity(2).setViscosity(25000).setTemperature(300);
+ .setDensity(1800)
+ .setGaseous(false)
+ .setLuminosity(2)
+ .setViscosity(25000)
+ .setTemperature(300);
FluidRegistry.registerFluid(SLUDGE);
return true;
@@ -39,7 +43,7 @@ public class DarkWorldContentLoader {
public static synchronized boolean initItems() {
portalItem = (ItemEvergladesPortalTrigger) (new ItemEvergladesPortalTrigger()
- .setUnlocalizedName("everglades.trigger"));
+ .setUnlocalizedName("everglades.trigger"));
GameRegistry.registerItem(portalItem, "everglades.trigger");
return true;
}
@@ -48,7 +52,8 @@ public class DarkWorldContentLoader {
// Create Block Instances
blockFluidLakes = new BlockBaseFluid("Sludge", SLUDGE, BlockDarkWorldSludgeFluid.SLUDGE).setLightLevel(2f)
- .setLightOpacity(1).setBlockName("fluidSludge");
+ .setLightOpacity(1)
+ .setBlockName("fluidSludge");
portalBlock = new BlockEvergladesPortal();
blockTopLayer = new BlockDarkWorldGround();
blockSecondLayer = new BlockDarkWorldPollutedDirt();
diff --git a/src/main/java/gtPlusPlus/everglades/chunk/ChunkProviderModded.java b/src/main/java/gtPlusPlus/everglades/chunk/ChunkProviderModded.java
index 20748aac03..ad0c601092 100644
--- a/src/main/java/gtPlusPlus/everglades/chunk/ChunkProviderModded.java
+++ b/src/main/java/gtPlusPlus/everglades/chunk/ChunkProviderModded.java
@@ -86,27 +86,27 @@ public class ChunkProviderModded implements IChunkProvider {
int[][] field_73219_j = new int[32][32];
{
caveGenerator = TerrainGen
- .getModdedMapGen(caveGenerator, net.minecraftforge.event.terraingen.InitMapGenEvent.EventType.CAVE);
+ .getModdedMapGen(caveGenerator, net.minecraftforge.event.terraingen.InitMapGenEvent.EventType.CAVE);
/*
* strongholdGenerator = (MapGenStronghold) TerrainGen.getModdedMapGen(strongholdGenerator,
* net.minecraftforge.event.terraingen.InitMapGenEvent.EventType. STRONGHOLD);
*/
- villageGenerator = (MapGenVillage) TerrainGen.getModdedMapGen(
- villageGenerator,
- net.minecraftforge.event.terraingen.InitMapGenEvent.EventType.VILLAGE);
+ villageGenerator = (MapGenVillage) TerrainGen
+ .getModdedMapGen(villageGenerator, net.minecraftforge.event.terraingen.InitMapGenEvent.EventType.VILLAGE);
mineshaftGenerator = (MapGenMineshaft) TerrainGen.getModdedMapGen(
- mineshaftGenerator,
- net.minecraftforge.event.terraingen.InitMapGenEvent.EventType.MINESHAFT);
+ mineshaftGenerator,
+ net.minecraftforge.event.terraingen.InitMapGenEvent.EventType.MINESHAFT);
scatteredFeatureGenerator = (MapGenScatteredFeature) TerrainGen.getModdedMapGen(
- scatteredFeatureGenerator,
- net.minecraftforge.event.terraingen.InitMapGenEvent.EventType.SCATTERED_FEATURE);
+ scatteredFeatureGenerator,
+ net.minecraftforge.event.terraingen.InitMapGenEvent.EventType.SCATTERED_FEATURE);
ravineGenerator = TerrainGen
- .getModdedMapGen(ravineGenerator, net.minecraftforge.event.terraingen.InitMapGenEvent.EventType.RAVINE);
+ .getModdedMapGen(ravineGenerator, net.minecraftforge.event.terraingen.InitMapGenEvent.EventType.RAVINE);
}
public ChunkProviderModded(World par1World, long par2) {
this.worldObj = par1World;
- this.field_147435_p = par1World.getWorldInfo().getTerrainType();
+ this.field_147435_p = par1World.getWorldInfo()
+ .getTerrainType();
this.rand = new Random(par2);
this.field_147431_j = new NoiseGeneratorOctaves(this.rand, 16);
this.field_147432_k = new NoiseGeneratorOctaves(this.rand, 16);
@@ -126,7 +126,7 @@ public class ChunkProviderModded implements IChunkProvider {
}
NoiseGenerator[] noiseGens = { field_147431_j, field_147432_k, field_147429_l, field_147430_m, noiseGen5,
- noiseGen6, mobSpawnerNoise };
+ noiseGen6, mobSpawnerNoise };
noiseGens = TerrainGen.getModdedNoiseGenerators(par1World, this.rand, noiseGens);
this.field_147431_j = (NoiseGeneratorOctaves) noiseGens[0];
this.field_147432_k = (NoiseGeneratorOctaves) noiseGens[1];
@@ -140,7 +140,7 @@ public class ChunkProviderModded implements IChunkProvider {
public void func_147424_a(int p_147424_1_, int p_147424_2_, Block[] p_147424_3_) {
byte b0 = 63;
this.biomesForGeneration = this.worldObj.getWorldChunkManager()
- .getBiomesForGeneration(this.biomesForGeneration, p_147424_1_ * 4 - 2, p_147424_2_ * 4 - 2, 10, 10);
+ .getBiomesForGeneration(this.biomesForGeneration, p_147424_1_ * 4 - 2, p_147424_2_ * 4 - 2, 10, 10);
this.func_147423_a(p_147424_1_ * 4, 0, p_147424_2_ * 4);
for (int k = 0; k < 4; ++k) {
@@ -209,33 +209,33 @@ public class ChunkProviderModded implements IChunkProvider {
}
public void replaceBlocksForBiome(int p_147422_1_, int p_147422_2_, Block[] p_147422_3_, byte[] p_147422_4_,
- BiomeGenBase[] p_147422_5_) {
+ BiomeGenBase[] p_147422_5_) {
ChunkProviderEvent.ReplaceBiomeBlocks event = new ChunkProviderEvent.ReplaceBiomeBlocks(
- this,
- p_147422_1_,
- p_147422_2_,
- p_147422_3_,
- new byte[256],
- p_147422_5_,
- null);
+ this,
+ p_147422_1_,
+ p_147422_2_,
+ p_147422_3_,
+ new byte[256],
+ p_147422_5_,
+ null);
MinecraftForge.EVENT_BUS.post(event);
if (event.getResult() == cpw.mods.fml.common.eventhandler.Event.Result.DENY) return;
double d0 = 0.03125D;
this.stoneNoise = this.field_147430_m
- .func_151599_a(this.stoneNoise, p_147422_1_ * 16, p_147422_2_ * 16, 16, 16, d0 * 2.0D, d0 * 2.0D, 1.0D);
+ .func_151599_a(this.stoneNoise, p_147422_1_ * 16, p_147422_2_ * 16, 16, 16, d0 * 2.0D, d0 * 2.0D, 1.0D);
for (int k = 0; k < 16; ++k) {
for (int l = 0; l < 16; ++l) {
BiomeGenBase biomegenbase = p_147422_5_[l + k * 16];
biomegenbase.genTerrainBlocks(
- this.worldObj,
- this.rand,
- p_147422_3_,
- p_147422_4_,
- p_147422_1_ * 16 + k,
- p_147422_2_ * 16 + l,
- this.stoneNoise[l + k * 16]);
+ this.worldObj,
+ this.rand,
+ p_147422_3_,
+ p_147422_4_,
+ p_147422_1_ * 16 + k,
+ p_147422_2_ * 16 + l,
+ this.stoneNoise[l + k * 16]);
}
}
}
@@ -259,7 +259,7 @@ public class ChunkProviderModded implements IChunkProvider {
byte[] abyte = new byte[65536];
this.func_147424_a(par1, par2, ablock);
this.biomesForGeneration = this.worldObj.getWorldChunkManager()
- .loadBlockGeneratorData(this.biomesForGeneration, par1 * 16, par2 * 16, 16, 16);
+ .loadBlockGeneratorData(this.biomesForGeneration, par1 * 16, par2 * 16, 16, 16);
this.replaceBlocksForBiome(par1, par2, ablock, abyte, this.biomesForGeneration);
Chunk chunk = new Chunk(this.worldObj, ablock, abyte, par1, par2);
@@ -275,40 +275,40 @@ public class ChunkProviderModded implements IChunkProvider {
private void func_147423_a(int p_147423_1_, int p_147423_2_, int p_147423_3_) {
this.field_147426_g = this.noiseGen6
- .generateNoiseOctaves(this.field_147426_g, p_147423_1_, p_147423_3_, 5, 5, 200.0D, 200.0D, 0.5D);
+ .generateNoiseOctaves(this.field_147426_g, p_147423_1_, p_147423_3_, 5, 5, 200.0D, 200.0D, 0.5D);
this.field_147427_d = this.field_147429_l.generateNoiseOctaves(
- this.field_147427_d,
- p_147423_1_,
- p_147423_2_,
- p_147423_3_,
- 5,
- 33,
- 5,
- 8.555150000000001D,
- 4.277575000000001D,
- 8.555150000000001D);
+ this.field_147427_d,
+ p_147423_1_,
+ p_147423_2_,
+ p_147423_3_,
+ 5,
+ 33,
+ 5,
+ 8.555150000000001D,
+ 4.277575000000001D,
+ 8.555150000000001D);
this.field_147428_e = this.field_147431_j.generateNoiseOctaves(
- this.field_147428_e,
- p_147423_1_,
- p_147423_2_,
- p_147423_3_,
- 5,
- 33,
- 5,
- 684.412D,
- 684.412D,
- 684.412D);
+ this.field_147428_e,
+ p_147423_1_,
+ p_147423_2_,
+ p_147423_3_,
+ 5,
+ 33,
+ 5,
+ 684.412D,
+ 684.412D,
+ 684.412D);
this.field_147425_f = this.field_147432_k.generateNoiseOctaves(
- this.field_147425_f,
- p_147423_1_,
- p_147423_2_,
- p_147423_3_,
- 5,
- 33,
- 5,
- 684.412D,
- 684.412D,
- 684.412D);
+ this.field_147425_f,
+ p_147423_1_,
+ p_147423_2_,
+ p_147423_3_,
+ 5,
+ 33,
+ 5,
+ 684.412D,
+ 684.412D,
+ 684.412D);
int l = 0;
int i1 = 0;
for (int j1 = 0; j1 < 5; ++j1) {
@@ -432,22 +432,22 @@ public class ChunkProviderModded implements IChunkProvider {
int i2;
if (biomegenbase != BiomeGenBase.desert && biomegenbase != BiomeGenBase.desertHills
- && !flag
- && this.rand.nextInt(4) == 0
- && TerrainGen.populate(
- par1IChunkProvider,
- worldObj,
- rand,
- par2,
- par3,
- flag,
- net.minecraftforge.event.terraingen.PopulateChunkEvent.Populate.EventType.LAKE)) {
+ && !flag
+ && this.rand.nextInt(4) == 0
+ && TerrainGen.populate(
+ par1IChunkProvider,
+ worldObj,
+ rand,
+ par2,
+ par3,
+ flag,
+ net.minecraftforge.event.terraingen.PopulateChunkEvent.Populate.EventType.LAKE)) {
k1 = k + this.rand.nextInt(16) + 8;
l1 = this.rand.nextInt(256);
i2 = l + this.rand.nextInt(16) + 8;
try {
(new WorldGenLakes(Dimension_Everglades.blockFluidLakes))
- .generate(this.worldObj, this.rand, k1, l1, i2);
+ .generate(this.worldObj, this.rand, k1, l1, i2);
} catch (NullPointerException n) {
n.getStackTrace();
(new WorldGenLakes(Blocks.lava)).generate(this.worldObj, this.rand, k1, l1, i2);
@@ -456,14 +456,14 @@ public class ChunkProviderModded implements IChunkProvider {
}
if (TerrainGen.populate(
- par1IChunkProvider,
- worldObj,
- rand,
- par2,
- par3,
- flag,
- net.minecraftforge.event.terraingen.PopulateChunkEvent.Populate.EventType.LAVA) && !flag
- && this.rand.nextInt(8) == 0) {
+ par1IChunkProvider,
+ worldObj,
+ rand,
+ par2,
+ par3,
+ flag,
+ net.minecraftforge.event.terraingen.PopulateChunkEvent.Populate.EventType.LAVA) && !flag
+ && this.rand.nextInt(8) == 0) {
k1 = k + this.rand.nextInt(16) + 8;
l1 = this.rand.nextInt(this.rand.nextInt(248) + 8);
i2 = l + this.rand.nextInt(16) + 8;
@@ -482,7 +482,7 @@ public class ChunkProviderModded implements IChunkProvider {
l += 8;
MinecraftForge.EVENT_BUS
- .post(new PopulateChunkEvent.Post(par1IChunkProvider, worldObj, rand, par2, par3, flag));
+ .post(new PopulateChunkEvent.Post(par1IChunkProvider, worldObj, rand, par2, par3, flag));
BlockFalling.fallInstantly = false;
}
@@ -535,17 +535,17 @@ public class ChunkProviderModded implements IChunkProvider {
public List getPossibleCreatures(EnumCreatureType par1EnumCreatureType, int par2, int par3, int par4) {
BiomeGenBase biomegenbase = this.worldObj.getBiomeGenForCoords(par2, par4);
return par1EnumCreatureType == EnumCreatureType.monster
- && this.scatteredFeatureGenerator.func_143030_a(par2, par3, par4)
- ? this.scatteredFeatureGenerator.getScatteredFeatureSpawnList()
- : biomegenbase.getSpawnableList(par1EnumCreatureType);
+ && this.scatteredFeatureGenerator.func_143030_a(par2, par3, par4)
+ ? this.scatteredFeatureGenerator.getScatteredFeatureSpawnList()
+ : biomegenbase.getSpawnableList(par1EnumCreatureType);
}
@Override
public ChunkPosition func_147416_a(World p_147416_1_, String p_147416_2_, int p_147416_3_, int p_147416_4_,
- int p_147416_5_) {
+ int p_147416_5_) {
return "Village".equals(p_147416_2_) && this.villageGenerator != null
- ? this.villageGenerator.func_151545_a(p_147416_1_, p_147416_3_, p_147416_4_, p_147416_5_)
- : null;
+ ? this.villageGenerator.func_151545_a(p_147416_1_, p_147416_3_, p_147416_4_, p_147416_5_)
+ : null;
}
@Override
diff --git a/src/main/java/gtPlusPlus/everglades/gen/WorldGenMinable_Custom.java b/src/main/java/gtPlusPlus/everglades/gen/WorldGenMinable_Custom.java
index 2e9d62d99f..e3ce830f27 100644
--- a/src/main/java/gtPlusPlus/everglades/gen/WorldGenMinable_Custom.java
+++ b/src/main/java/gtPlusPlus/everglades/gen/WorldGenMinable_Custom.java
@@ -72,16 +72,11 @@ public class WorldGenMinable_Custom extends WorldGenMinable {
for (int i3 = k1; i3 <= j2; ++i3) {
final double d14 = ((i3 + 0.5D) - d8) / (d10 / 2.0D);
if ((((d12 * d12) + (d13 * d13) + (d14 * d14)) < 1.0D) && world.getBlock(k2, l2, i3)
- .isReplaceableOreGen(world, k2, l2, i3, this.blockToReplace)) {
+ .isReplaceableOreGen(world, k2, l2, i3, this.blockToReplace)) {
world.setBlock(k2, l2, i3, this.oreToGenerate, this.mineableBlockMeta, 3);
Logger.INFO(
- "Generated a " + this.oreToGenerate.getLocalizedName()
- + " at x: "
- + k2
- + " | y: "
- + l2
- + " | z: "
- + i3);
+ "Generated a " + this.oreToGenerate
+ .getLocalizedName() + " at x: " + k2 + " | y: " + l2 + " | z: " + i3);
}
}
}
diff --git a/src/main/java/gtPlusPlus/everglades/gen/gt/WorldGen_GT.java b/src/main/java/gtPlusPlus/everglades/gen/gt/WorldGen_GT.java
index efafa5cb4b..a35b528726 100644
--- a/src/main/java/gtPlusPlus/everglades/gen/gt/WorldGen_GT.java
+++ b/src/main/java/gtPlusPlus/everglades/gen/gt/WorldGen_GT.java
@@ -25,12 +25,12 @@ public abstract class WorldGen_GT {
}
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 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;
}
@@ -38,10 +38,8 @@ public abstract class WorldGen_GT {
String aDimName = aWorld.provider.getDimensionName();
Boolean tAllowed = (Boolean) this.mDimensionMap.get(aDimName);
if (tAllowed == null) {
- boolean tValue = HANDLER_GT.sCustomWorldgenFile.get(
- "worldgen.dimensions." + this.mWorldGenName,
- aDimName,
- aDimensionType == aAllowedDimensionType);
+ boolean tValue = HANDLER_GT.sCustomWorldgenFile
+ .get("worldgen.dimensions." + this.mWorldGenName, aDimName, aDimensionType == aAllowedDimensionType);
this.mDimensionMap.put(aDimName, Boolean.valueOf(tValue));
return tValue;
} else {
diff --git a/src/main/java/gtPlusPlus/everglades/gen/gt/WorldGen_GT_Base.java b/src/main/java/gtPlusPlus/everglades/gen/gt/WorldGen_GT_Base.java
index 52eaaa747a..ac93a847fa 100644
--- a/src/main/java/gtPlusPlus/everglades/gen/gt/WorldGen_GT_Base.java
+++ b/src/main/java/gtPlusPlus/everglades/gen/gt/WorldGen_GT_Base.java
@@ -54,16 +54,16 @@ public class WorldGen_GT_Base 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 WorldGen_GT_Ore_Layer noOresInVein = new WorldGen_GT_Ore_Layer(
- "vein0",
- 0,
- 255,
- 0,
- 0,
- 0,
- ELEMENT.getInstance().IRON,
- ELEMENT.getInstance().IRON,
- ELEMENT.getInstance().IRON,
- ELEMENT.getInstance().IRON);
+ "vein0",
+ 0,
+ 255,
+ 0,
+ 0,
+ 0,
+ ELEMENT.getInstance().IRON,
+ ELEMENT.getInstance().IRON,
+ ELEMENT.getInstance().IRON,
+ ELEMENT.getInstance().IRON);
public static Hashtable<Long, WorldGen_GT_Ore_Layer> validOreveins = new Hashtable<>(1024);
@@ -79,14 +79,14 @@ public class WorldGen_GT_Base implements IWorldGenerator {
@Override
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator,
- IChunkProvider chunkProvider) {
+ IChunkProvider chunkProvider) {
if (world.provider.dimensionId == Dimension_Everglades.DIMID) {
generateSafely(random, chunkX, chunkZ, world, chunkGenerator, chunkProvider);
}
}
public synchronized void generateSafely(Random random, int chunkX, int chunkZ, World world,
- IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
+ IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
int xDim = Dimension_Everglades.DIMID;
switch (world.provider.dimensionId) {
case -1: // Nether
@@ -109,34 +109,34 @@ public class WorldGen_GT_Base implements IWorldGenerator {
}
private synchronized void generateEverglades(Random aRandom, int aX, int aZ, World aWorld,
- IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider) {
+ IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider) {
Logger.WORLD("Trying to Generate Dimension.");
synchronized (listLock) {
Logger.WORLD("Locked List addition.");
if (WorldGen_GT_Base.mList.add(
- new WorldGenContainer(
- new XSTR(Math.abs(aRandom.nextInt()) + 1),
- aX,
- aZ,
- Dimension_Everglades.DIMID,
- aWorld,
- aChunkGenerator,
- aChunkProvider,
- aWorld.getBiomeGenForCoords(aX * 16 + 8, aZ * 16 + 8).biomeName))) {
+ new WorldGenContainer(
+ new XSTR(Math.abs(aRandom.nextInt()) + 1),
+ aX,
+ aZ,
+ Dimension_Everglades.DIMID,
+ aWorld,
+ aChunkGenerator,
+ aChunkProvider,
+ aWorld.getBiomeGenForCoords(aX * 16 + 8, aZ * 16 + 8).biomeName))) {
Logger.WORLD("Locked List addition. Success.");
} else {
Logger.WORLD("Locked List addition. Fail.");
}
if (debugWorldGen) GT_Log.out.println(
- "ADD WorldSeed:" + aWorld.getSeed()
- + " DimId"
- + aWorld.provider.dimensionId
- + " chunk x:"
- + aX
- + " z:"
- + aZ
- + " SIZE: "
- + WorldGen_GT_Base.mList.size());
+ "ADD WorldSeed:" + aWorld.getSeed()
+ + " DimId"
+ + aWorld.provider.dimensionId
+ + " chunk x:"
+ + aX
+ + " z:"
+ + aZ
+ + " SIZE: "
+ + WorldGen_GT_Base.mList.size());
}
if (!this.mIsGenerating) {
@@ -150,17 +150,17 @@ public class WorldGen_GT_Base implements IWorldGenerator {
for (int i = 0; i < mList_sS; i++) {
WorldGenContainer toRun = (WorldGenContainer) WorldGen_GT_Base.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: "
- + WorldGen_GT_Base.mList.size()
- + " i: "
- + i);
+ "RUN WorldSeed:" + aWorld.getSeed()
+ + " DimId"
+ + aWorld.provider.dimensionId
+ + " chunk x:"
+ + toRun.mX
+ + " z:"
+ + toRun.mZ
+ + " SIZE: "
+ + WorldGen_GT_Base.mList.size()
+ + " i: "
+ + i);
synchronized (listLock) {
Logger.WORLD("Locked List Removal.");
WorldGen_GT_Base.mList.remove(0);
@@ -173,7 +173,7 @@ public class WorldGen_GT_Base implements IWorldGenerator {
}
public void generateOre(Block block, World world, Random random, int chunk_x, int chunk_z, int maxX, int maxZ,
- int maxVeinSize, int chancesToSpawn, int minY, int maxY, Block generateIn) {
+ int maxVeinSize, int chancesToSpawn, int minY, int maxY, Block generateIn) {
int heightRange = maxY - minY;
WorldGenMinable worldgenminable = new WorldGenMinable(block, maxVeinSize, generateIn);
for (int k1 = 0; k1 < chancesToSpawn; ++k1) {
@@ -212,7 +212,7 @@ public class WorldGen_GT_Base 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;
@@ -239,8 +239,8 @@ public class WorldGen_GT_Base implements IWorldGenerator {
// 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 | ((oreseedX & 0x000000000fffffffL) << 28)
- | (oreseedZ & 0x000000000fffffffL)); // Use
+ ^ ((this.mWorld.provider.dimensionId & 0xffL) << 56 | ((oreseedX & 0x000000000fffffffL) << 28)
+ | (oreseedZ & 0x000000000fffffffL)); // Use
// an
// RNG
// that
@@ -270,52 +270,52 @@ public class WorldGen_GT_Base implements IWorldGenerator {
if (debugWorldGen) {
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());
}
- Logger.INFO(
- "[World Generation Debug] !validOreveins.containsKey(oreveinSeed) | oreveinSeed: " + oreveinSeed);
+ Logger
+ .INFO("[World Generation Debug] !validOreveins.containsKey(oreveinSeed) | oreveinSeed: " + oreveinSeed);
// Search for a valid orevein for this dimension
if (!validOreveins.containsKey(oreveinSeed)) {
Logger.INFO(
- "[World Generation Debug] oreveinPercentageRoll < oreveinPercentage? "
- + ((oreveinPercentageRoll < oreveinPercentage)));
+ "[World Generation Debug] oreveinPercentageRoll < oreveinPercentage? "
+ + ((oreveinPercentageRoll < oreveinPercentage)));
Logger.INFO(
- "[World Generation Debug] WorldGen_GT_Ore_Layer.sWeight > 0? "
- + (WorldGen_GT_Ore_Layer.sWeight > 0));
+ "[World Generation Debug] WorldGen_GT_Ore_Layer.sWeight > 0? "
+ + (WorldGen_GT_Ore_Layer.sWeight > 0));
Logger.INFO(
- "[World Generation Debug] WorldGen_GT_Ore_Layer.sList.size() > 0? "
- + (WorldGen_GT_Ore_Layer.sList.size() > 0));
+ "[World Generation Debug] WorldGen_GT_Ore_Layer.sList.size() > 0? "
+ + (WorldGen_GT_Ore_Layer.sList.size() > 0));
if ((oreveinPercentageRoll < oreveinPercentage) && (WorldGen_GT_Ore_Layer.sWeight > 0)
- && (WorldGen_GT_Ore_Layer.sList.size() > 0)) {
+ && (WorldGen_GT_Ore_Layer.sList.size() > 0)) {
int placementAttempts = 0;
boolean oreveinFound = false;
int i;
for (i = 0; (i < oreveinAttempts) && (!oreveinFound)
- && (placementAttempts < oreveinMaxPlacementAttempts); i++) {
+ && (placementAttempts < oreveinMaxPlacementAttempts); i++) {
Logger.INFO("[World Generation Debug] i: " + i);
Logger.INFO("[World Generation Debug] placementAttempts: " + placementAttempts);
Logger.INFO("[World Generation Debug] oreveinAttempts: " + oreveinAttempts);
Logger.INFO(
- "[World Generation Debug] (placementAttempts < oreveinMaxPlacementAttempts): "
- + (placementAttempts < oreveinMaxPlacementAttempts));
+ "[World Generation Debug] (placementAttempts < oreveinMaxPlacementAttempts): "
+ + (placementAttempts < oreveinMaxPlacementAttempts));
Logger.INFO("[World Generation Debug] oreveinFound: " + oreveinFound);
int tRandomWeight = oreveinRNG.nextInt(WorldGen_GT_Ore_Layer.sWeight);
for (WorldGen_GT_Ore_Layer tWorldGen : WorldGen_GT_Ore_Layer.sList) {
Logger.INFO(
- "[World Generation Debug] Iterating sList - Size: "
- + WorldGen_GT_Ore_Layer.sList.size());
+ "[World Generation Debug] Iterating sList - Size: "
+ + WorldGen_GT_Ore_Layer.sList.size());
tRandomWeight -= (tWorldGen).mWeight;
if (tRandomWeight <= 0) {
try {
@@ -329,26 +329,26 @@ public class WorldGen_GT_Base implements IWorldGenerator {
// This prevents that, giving each orevein a
// unique height each pass through here.
int placementResult = tWorldGen.executeWorldgenChunkified(
- this.mWorld,
- new XSTR(oreveinSeed ^ (Block.getIdFromBlock(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 ^ (Block.getIdFromBlock(tWorldGen.mPrimaryMeta))),
+ this.mBiome,
+ this.mDimensionType,
+ this.mX * 16,
+ this.mZ * 16,
+ oreseedX * 16,
+ oreseedZ * 16,
+ this.mChunkGenerator,
+ this.mChunkProvider);
switch (placementResult) {
case WorldGen_GT_Ore_Layer.ORE_PLACED -> {
if (debugWorldGen) GT_Log.out.println(
- " Added oreveinSeed=" + oreveinSeed
- + " tries at oremix="
- + i
- + " placementAttempts="
- + placementAttempts
- + " dimensionName="
- + tDimensionName);
+ " Added oreveinSeed=" + oreveinSeed
+ + " tries at oremix="
+ + i
+ + " placementAttempts="
+ + placementAttempts
+ + " dimensionName="
+ + tDimensionName);
validOreveins.put(oreveinSeed, tWorldGen);
oreveinFound = true;
Logger.INFO("[World Generation Debug] ORE_PLACED");
@@ -356,8 +356,8 @@ public class WorldGen_GT_Base implements IWorldGenerator {
case WorldGen_GT_Ore_Layer.NO_ORE_IN_BOTTOM_LAYER -> {
placementAttempts++;
Logger.INFO(
- "[World Generation Debug] NO_ORE_IN_BOTTOM_LAYER | Attempts: "
- + placementAttempts);
+ "[World Generation Debug] NO_ORE_IN_BOTTOM_LAYER | Attempts: "
+ + placementAttempts);
}
// SHould do retry in this case
// until out of chances
@@ -366,29 +366,29 @@ public class WorldGen_GT_Base implements IWorldGenerator {
// can't add it yet to the hash
Logger.INFO("[World Generation Debug] NO_OVERLAP");
if (debugWorldGen) 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 WorldGen_GT_Ore_Layer.NO_OVERLAP_AIR_BLOCK -> {
if (debugWorldGen) 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
Logger.INFO("[World Generation Debug] NO_OVERLAP_AIR_BLOCK");
placementAttempts++;
@@ -397,17 +397,17 @@ public class WorldGen_GT_Base implements IWorldGenerator {
break; // Try the next orevein
} catch (Throwable e) {
if (debugWorldGen) 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);
}
}
@@ -417,46 +417,46 @@ public class WorldGen_GT_Base implements IWorldGenerator {
// at the oreseed chunk.
if ((!oreveinFound) && (this.mX == oreseedX) && (this.mZ == oreseedZ)) {
if (debugWorldGen) 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 (debugWorldGen) 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 (debugWorldGen) GT_Log.out.print(
- " Valid oreveinSeed=" + oreveinSeed + " validOreveins.size()=" + validOreveins.size() + " ");
+ if (debugWorldGen) GT_Log.out
+ .print(" Valid oreveinSeed=" + oreveinSeed + " validOreveins.size()=" + validOreveins.size() + " ");
WorldGen_GT_Ore_Layer tWorldGen = validOreveins.get(oreveinSeed);
oreveinRNG.setSeed(oreveinSeed ^ (Block.getIdFromBlock(tWorldGen.mPrimaryMeta))); // Reset
// RNG
@@ -472,16 +472,16 @@ public class WorldGen_GT_Base implements IWorldGenerator {
// 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 WorldGen_GT_Ore_Layer.NO_ORE_IN_BOTTOM_LAYER -> {
if (debugWorldGen) GT_Log.out.println(" No ore in bottom layer");
@@ -502,7 +502,8 @@ public class WorldGen_GT_Base implements IWorldGenerator {
// affecting this chunk
// For now, manually reducing oreveinMaxSize when not in the
// Underdark for performance
- if (this.mWorld.provider.getDimensionName().equals("Underdark")) {
+ if (this.mWorld.provider.getDimensionName()
+ .equals("Underdark")) {
oreveinMaxSize = 24; // Leave Deep Dark/Underdark max oregen at
// 32, instead of 64
} else {
@@ -544,14 +545,14 @@ public class WorldGen_GT_Base 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);
@@ -567,12 +568,12 @@ public class WorldGen_GT_Base implements IWorldGenerator {
long duration = (endTime - startTime);
if (debugWorldGen) {
GT_Log.out.println(
- " Oregen took " + (oregenTime - startTime)
- + " Leftover gen took "
- + (leftOverTime - oregenTime)
- + " Worldgen took "
- + duration
- + " nanoseconds");
+ " Oregen took " + (oregenTime - startTime)
+ + " Leftover gen took "
+ + (leftOverTime - oregenTime)
+ + " Worldgen took "
+ + duration
+ + " nanoseconds");
}
}
}
diff --git a/src/main/java/gtPlusPlus/everglades/gen/gt/WorldGen_GT_Ore_Layer.java b/src/main/java/gtPlusPlus/everglades/gen/gt/WorldGen_GT_Ore_Layer.java
index 19bec827c0..773109a818 100644
--- a/src/main/java/gtPlusPlus/everglades/gen/gt/WorldGen_GT_Ore_Layer.java
+++ b/src/main/java/gtPlusPlus/everglades/gen/gt/WorldGen_GT_Ore_Layer.java
@@ -59,34 +59,34 @@ public class WorldGen_GT_Ore_Layer extends WorldGen_GT {
public final String aTextWorldgen = "worldgen.";
public WorldGen_GT_Ore_Layer(String aName, int aMinY, int aMaxY, int aWeight, int aDensity, int aSize,
- Material aPrimary, Material aSecondary, Material aBetween, Material aSporadic) {
+ Material aPrimary, Material aSecondary, Material aBetween, Material aSporadic) {
this(
- aName,
- true,
- aMinY,
- aMaxY,
- aWeight,
- aDensity,
- aSize,
- false,
- false,
- false,
- false,
- false,
- false,
- aPrimary,
- aSecondary,
- aBetween,
- aSporadic);
+ aName,
+ true,
+ aMinY,
+ aMaxY,
+ aWeight,
+ aDensity,
+ aSize,
+ false,
+ false,
+ false,
+ false,
+ false,
+ false,
+ aPrimary,
+ aSecondary,
+ aBetween,
+ aSporadic);
}
public 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, Material aPrimary, Material aSecondary, Material aBetween, Material aSporadic) {
+ int aSize, boolean aOverworld, boolean aNether, boolean aEnd, boolean GC_UNUSED1, boolean GC_UNUSED2,
+ boolean GC_UNUSED3, Material aPrimary, Material aSecondary, Material aBetween, Material aSporadic) {
super(aName, sList, aDefault);
Logger.WORLD("Creating Ore Layer Object");
this.mOverworld = HANDLER_GT.sCustomWorldgenFile
- .get(aTextWorldgen + this.mWorldGenName, "Overworld", aOverworld);
+ .get(aTextWorldgen + this.mWorldGenName, "Overworld", aOverworld);
this.mNether = HANDLER_GT.sCustomWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "Nether", aNether);
this.mEnd = HANDLER_GT.sCustomWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "TheEnd", aEnd);
this.mMinY = 5;
@@ -97,11 +97,11 @@ public class WorldGen_GT_Ore_Layer extends WorldGen_GT {
}
this.mMaxY = mMaxY;
this.mWeight = ((short) HANDLER_GT.sCustomWorldgenFile
- .get(aTextWorldgen + this.mWorldGenName, "RandomWeight", aWeight));
+ .get(aTextWorldgen + this.mWorldGenName, "RandomWeight", aWeight));
this.mDensity = ((short) HANDLER_GT.sCustomWorldgenFile
- .get(aTextWorldgen + this.mWorldGenName, "Density", aDensity));
+ .get(aTextWorldgen + this.mWorldGenName, "Density", aDensity));
this.mSize = ((short) Math
- .max(1, HANDLER_GT.sCustomWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "Size", aSize)));
+ .max(1, HANDLER_GT.sCustomWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "Size", aSize)));
this.mPrimary = aPrimary;
this.mSecondary = aSecondary;
this.mBetween = aBetween;
@@ -111,7 +111,7 @@ public class WorldGen_GT_Ore_Layer extends WorldGen_GT {
this.mBetweenMeta = aBetween.getOreBlock(1);
this.mSporadicMeta = aSporadic.getOreBlock(1);
this.mRestrictBiome = HANDLER_GT.sCustomWorldgenFile
- .get(aTextWorldgen + this.mWorldGenName, "RestrictToBiomeName", "None");
+ .get(aTextWorldgen + this.mWorldGenName, "RestrictToBiomeName", "None");
// if (mPrimaryMeta != -1 && GregTech_API.sGeneratedMaterials[(mPrimaryMeta % 1000)] == null) throw new
// IllegalArgumentException("A Material for the supplied ID " + mPrimaryMeta + " for " + mWorldGenName + " does
@@ -132,21 +132,21 @@ public class WorldGen_GT_Ore_Layer extends WorldGen_GT {
}
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) {
// Debug Handler
/**
* This handles Variables that are null during Init
*/
if (this.mPrimaryMeta == Blocks.stone || this.mSecondaryMeta == Blocks.stone
- || this.mBetweenMeta == Blocks.stone
- || this.mSporadicMeta == Blocks.stone) {
+ || this.mBetweenMeta == Blocks.stone
+ || this.mSporadicMeta == Blocks.stone) {
this.mPrimaryMeta = this.mPrimary.getOreBlock(1);
this.mSecondaryMeta = this.mSecondary.getOreBlock(1);
this.mBetweenMeta = this.mBetween.getOreBlock(1);
this.mSporadicMeta = this.mSporadic.getOreBlock(1);
Logger.WORLD(
- "[Vein Generator] An Ore in a Vein had defaulted back to a default value, so they have now been reset to correct values.");
+ "[Vein Generator] An Ore in a Vein had defaulted back to a default value, so they have now been reset to correct values.");
}
if (mWorldGenName.equals("vein0")) {
@@ -176,24 +176,21 @@ public class WorldGen_GT_Ore_Layer extends WorldGen_GT {
int eX = Math.min(eXVein, aChunkX + 2 + 16);
if (wX >= eX) { // No overlap between orevein and this chunk exists in X
Block tBlock = aWorld.getBlock(aChunkX + 8, tMinY, aChunkZ + 8);
- if (tBlock.isReplaceableOreGen(aWorld, aChunkX + 8, tMinY, aChunkZ + 8, Blocks.stone) || tBlock
+ if (tBlock.isReplaceableOreGen(aWorld, aChunkX + 8, tMinY, aChunkZ + 8, Blocks.stone)
+ || tBlock
.isReplaceableOreGen(aWorld, aChunkX + 8, tMinY, aChunkZ + 8, Dimension_Everglades.blockSecondLayer)
- || tBlock.isReplaceableOreGen(
- aWorld,
- aChunkX + 8,
- tMinY,
- aChunkZ + 8,
- Dimension_Everglades.blockMainFiller)
- || tBlock.isReplaceableOreGen(
- aWorld,
- aChunkX + 8,
- tMinY,
- aChunkZ + 8,
- Dimension_Everglades.blockSecondaryFiller)
- || tBlock.isReplaceableOreGen(aWorld, aChunkX + 8, tMinY, aChunkZ + 8, Blocks.netherrack)
- || tBlock.isReplaceableOreGen(aWorld, aChunkX + 8, tMinY, aChunkZ + 8, Blocks.end_stone)
- || tBlock.isReplaceableOreGen(aWorld, aChunkX + 8, tMinY, aChunkZ + 8, GregTech_API.sBlockGranites)
- || tBlock.isReplaceableOreGen(aWorld, aChunkX + 8, tMinY, aChunkZ + 8, GregTech_API.sBlockStones)) {
+ || tBlock
+ .isReplaceableOreGen(aWorld, aChunkX + 8, tMinY, aChunkZ + 8, Dimension_Everglades.blockMainFiller)
+ || tBlock.isReplaceableOreGen(
+ aWorld,
+ aChunkX + 8,
+ tMinY,
+ aChunkZ + 8,
+ Dimension_Everglades.blockSecondaryFiller)
+ || tBlock.isReplaceableOreGen(aWorld, aChunkX + 8, tMinY, aChunkZ + 8, Blocks.netherrack)
+ || tBlock.isReplaceableOreGen(aWorld, aChunkX + 8, tMinY, aChunkZ + 8, Blocks.end_stone)
+ || tBlock.isReplaceableOreGen(aWorld, aChunkX + 8, tMinY, aChunkZ + 8, GregTech_API.sBlockGranites)
+ || tBlock.isReplaceableOreGen(aWorld, aChunkX + 8, tMinY, aChunkZ + 8, GregTech_API.sBlockStones)) {
// Didn't reach, but could have placed. Save orevein for future use.
return NO_OVERLAP;
} else {
@@ -210,10 +207,10 @@ public class WorldGen_GT_Ore_Layer extends WorldGen_GT {
if (nZ >= sZ) { // No overlap between orevein and this chunk exists in Z
Block tBlock = aWorld.getBlock(aChunkX + 8, tMinY, aChunkZ + 8);
if (tBlock.isReplaceableOreGen(aWorld, aChunkX + 8, tMinY, aChunkZ + 8, Blocks.stone)
- || tBlock.isReplaceableOreGen(aWorld, aChunkX + 8, tMinY, aChunkZ + 8, Blocks.netherrack)
- || tBlock.isReplaceableOreGen(aWorld, aChunkX + 8, tMinY, aChunkZ + 8, Blocks.end_stone)
- || tBlock.isReplaceableOreGen(aWorld, aChunkX + 8, tMinY, aChunkZ + 8, GregTech_API.sBlockGranites)
- || tBlock.isReplaceableOreGen(aWorld, aChunkX + 8, tMinY, aChunkZ + 8, GregTech_API.sBlockStones)) {
+ || tBlock.isReplaceableOreGen(aWorld, aChunkX + 8, tMinY, aChunkZ + 8, Blocks.netherrack)
+ || tBlock.isReplaceableOreGen(aWorld, aChunkX + 8, tMinY, aChunkZ + 8, Blocks.end_stone)
+ || tBlock.isReplaceableOreGen(aWorld, aChunkX + 8, tMinY, aChunkZ + 8, GregTech_API.sBlockGranites)
+ || tBlock.isReplaceableOreGen(aWorld, aChunkX + 8, tMinY, aChunkZ + 8, GregTech_API.sBlockStones)) {
// Didn't reach, but could have placed. Save orevein for future use.
return NO_OVERLAP;
} else {
@@ -225,26 +222,26 @@ public class WorldGen_GT_Ore_Layer extends WorldGen_GT {
if (debugWorldGen) {
String tDimensionName = aWorld.provider.getDimensionName();
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
@@ -252,24 +249,22 @@ public class WorldGen_GT_Ore_Layer extends WorldGen_GT {
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);
+ .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 != null)) {
+ && (this.mSecondaryMeta != null)) {
if (setOreBlock(aWorld, tX, level, tZ, this.mSecondaryMeta, false, false)) {
placeCount[1]++;
}
} else
if ((aRandom.nextInt(7) == 0) && ((aRandom.nextInt(placeZ) == 0) || (aRandom.nextInt(placeX) == 0))
- && (this.mSporadicMeta != null)) { // Sporadics are only 1 per vertical column normally,
- // reduce by 1/7 to
- // compensate
- if (setOreBlock(aWorld, tX, level, tZ, this.mSporadicMeta, false, false))
- placeCount[3]++;
- }
+ && (this.mSporadicMeta != null)) { // Sporadics are only 1 per vertical column normally,
+ // reduce by 1/7 to
+ // compensate
+ if (setOreBlock(aWorld, tX, level, tZ, this.mSporadicMeta, false, false)) placeCount[3]++;
+ }
}
}
/*
@@ -279,26 +274,24 @@ public class WorldGen_GT_Ore_Layer extends WorldGen_GT {
Logger.WORLD("[World Generation Debug] Trying to set Ores?");
for (level = tMinY; level < (tMinY - 1 + 3); 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 != null)) {
+ && (this.mSecondaryMeta != null)) {
if (setOreBlock(aWorld, tX, level, tZ, this.mSecondaryMeta, false, false)) {
placeCount[1]++;
}
} else if ((aRandom.nextInt(7) == 0)
- && ((aRandom.nextInt(placeZ) == 0) || (aRandom.nextInt(placeX) == 0))
- && (this.mSporadicMeta != null)) { // Sporadics are only 1 per vertical column normally,
- // reduce by 1/7 to
- // compensate
- if (setOreBlock(aWorld, tX, level, tZ, this.mSporadicMeta, false, false))
- placeCount[3]++;
- }
+ && ((aRandom.nextInt(placeZ) == 0) || (aRandom.nextInt(placeX) == 0))
+ && (this.mSporadicMeta != null)) { // Sporadics are only 1 per vertical column normally,
+ // reduce by 1/7 to
+ // compensate
+ if (setOreBlock(aWorld, tX, level, tZ, this.mSporadicMeta, false, false)) placeCount[3]++;
+ }
}
}
}
@@ -306,127 +299,121 @@ public class WorldGen_GT_Ore_Layer extends WorldGen_GT {
// level should be = tMinY-1+3 from end of for loop
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);
+ .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 != null)) { // Between are only 1 per vertical column, reduce by 1/2 to
- // compensate
+ && (this.mBetweenMeta != null)) { // Between are only 1 per vertical column, reduce by 1/2 to
+ // compensate
if (setOreBlock(aWorld, tX, level, tZ, this.mBetweenMeta, false, false)) {
placeCount[2]++;
}
} else
if ((aRandom.nextInt(7) == 0) && ((aRandom.nextInt(placeZ) == 0) || (aRandom.nextInt(placeX) == 0))
- && (this.mSporadicMeta != null)) { // Sporadics are only 1 per vertical column normally,
- // reduce by 1/7 to
- // compensate
- if (setOreBlock(aWorld, tX, level, tZ, this.mSporadicMeta, false, false))
- placeCount[3]++;
- }
+ && (this.mSporadicMeta != null)) { // Sporadics are only 1 per vertical column normally,
+ // reduce by 1/7 to
+ // compensate
+ if (setOreBlock(aWorld, tX, level, tZ, this.mSporadicMeta, false, false)) placeCount[3]++;
+ }
}
}
// High Middle layer is between + primary + sporadic
level++; // Increment level to next layer
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);
+ .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 != null)) { // Between are only 1 per vertical column, reduce by 1/2 to
- // compensate
+ && (this.mBetweenMeta != null)) { // Between are only 1 per vertical column, reduce by 1/2 to
+ // compensate
if (setOreBlock(aWorld, tX, level, tZ, this.mBetweenMeta, false, false)) {
placeCount[2]++;
}
} else if (((aRandom.nextInt(placeZ) == 0) || (aRandom.nextInt(placeX) == 0))
- && (this.mPrimaryMeta != null)) {
- if (setOreBlock(aWorld, tX, level, tZ, this.mPrimaryMeta, false, false)) {
- placeCount[0]++;
- }
- } else
+ && (this.mPrimaryMeta != null)) {
+ if (setOreBlock(aWorld, tX, level, tZ, this.mPrimaryMeta, false, false)) {
+ placeCount[0]++;
+ }
+ } else
if ((aRandom.nextInt(7) == 0) && ((aRandom.nextInt(placeZ) == 0) || (aRandom.nextInt(placeX) == 0))
- && (this.mSporadicMeta != null)) { // Sporadics are only 1 per vertical column normally,
- // reduce by 1/7 to
- // compensate
- if (setOreBlock(aWorld, tX, level, tZ, this.mSporadicMeta, false, false))
- placeCount[3]++;
- }
+ && (this.mSporadicMeta != null)) { // Sporadics are only 1 per vertical column normally,
+ // reduce by 1/7 to
+ // compensate
+ if (setOreBlock(aWorld, tX, level, tZ, this.mSporadicMeta, false, false)) placeCount[3]++;
+ }
}
}
// Top two layers are primary + sporadic
level++; // Increment level to next layer
for (; level < (tMinY + 6); level++) { // should do two layers
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.mPrimaryMeta != null)) {
+ && (this.mPrimaryMeta != null)) {
if (setOreBlock(aWorld, tX, level, tZ, this.mPrimaryMeta, false, false)) {
placeCount[0]++;
}
} else if ((aRandom.nextInt(7) == 0)
- && ((aRandom.nextInt(placeZ) == 0) || (aRandom.nextInt(placeX) == 0))
- && (this.mSporadicMeta != null)) { // Sporadics are only 1 per vertical column normally,
- // reduce by 1/7 to
- // compensate
- if (setOreBlock(aWorld, tX, level, tZ, this.mSporadicMeta, false, false))
- placeCount[3]++;
- }
+ && ((aRandom.nextInt(placeZ) == 0) || (aRandom.nextInt(placeX) == 0))
+ && (this.mSporadicMeta != null)) { // Sporadics are only 1 per vertical column normally,
+ // reduce by 1/7 to
+ // compensate
+ if (setOreBlock(aWorld, tX, level, tZ, this.mSporadicMeta, false, false)) placeCount[3]++;
+ }
}
}
}
if (debugWorldGen) {
String tDimensionName = aWorld.provider.getDimensionName();
GT_Log.out.println(
- "Generated Orevein:" + this.mWorldGenName
- + " Dimension="
- + tDimensionName
- + " mX="
- + aChunkX / 16
- + " mZ="
- + aChunkZ / 16
- + " oreseedX="
- + aSeedX / 16
- + " oreseedZ="
- + aSeedZ / 16
- + " cY="
- + tMinY
- + " 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]);
+ "Generated Orevein:" + this.mWorldGenName
+ + " Dimension="
+ + tDimensionName
+ + " mX="
+ + aChunkX / 16
+ + " mZ="
+ + aChunkZ / 16
+ + " oreseedX="
+ + aSeedX / 16
+ + " oreseedZ="
+ + aSeedZ / 16
+ + " cY="
+ + tMinY
+ + " 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;
}
private String fString = "unset", ore1String = "unset", ore2String = "unset", ore3String = "unset",
- ore4String = "unset";
+ ore4String = "unset";
Map<Materials, String> gtOreMap = new HashMap<>();
public boolean setOreBlock(World aWorld, int aX, int aY, int aZ, Block aMetaData, boolean isSmallOre, boolean air) {
@@ -437,16 +424,24 @@ public class WorldGen_GT_Ore_Layer extends WorldGen_GT {
// Set GT ORE
if (aMetaData instanceof GT_Block_Ores) {
if (ore1String.equals("unset")) {
- ore1String = Utils.sanitizeString(this.mPrimary.getLocalizedName().toLowerCase());
+ ore1String = Utils.sanitizeString(
+ this.mPrimary.getLocalizedName()
+ .toLowerCase());
}
if (ore2String.equals("unset")) {
- ore2String = Utils.sanitizeString(this.mSecondaryMeta.getLocalizedName().toLowerCase());
+ ore2String = Utils.sanitizeString(
+ this.mSecondaryMeta.getLocalizedName()
+ .toLowerCase());
}
if (ore3String.equals("unset")) {
- ore3String = Utils.sanitizeString(this.mBetweenMeta.getLocalizedName().toLowerCase());
+ ore3String = Utils.sanitizeString(
+ this.mBetweenMeta.getLocalizedName()
+ .toLowerCase());
}
if (ore4String.equals("unset")) {
- ore4String = Utils.sanitizeString(this.mSporadicMeta.getLocalizedName().toLowerCase());
+ ore4String = Utils.sanitizeString(
+ this.mSporadicMeta.getLocalizedName()
+ .toLowerCase());
}
if (this.mPrimaryMeta == aMetaData) {
@@ -459,13 +454,13 @@ public class WorldGen_GT_Ore_Layer extends WorldGen_GT {
int r = f.mMetaItemSubID;
if (setOreBlock(aWorld, aX, aY, aZ, r, false)) {
Logger.WORLD(
- "[World Generation Debug] Set " + f.mDefaultLocalName
- + " Ore at X: "
- + aX
- + " | Y: "
- + aY
- + " | Z: "
- + aZ);
+ "[World Generation Debug] Set " + f.mDefaultLocalName
+ + " Ore at X: "
+ + aX
+ + " | Y: "
+ + aY
+ + " | Z: "
+ + aZ);
return true;
}
}
@@ -481,13 +476,13 @@ public class WorldGen_GT_Ore_Layer extends WorldGen_GT {
int r = f.mMetaItemSubID;
if (setOreBlock(aWorld, aX, aY, aZ, r, false)) {
Logger.WORLD(
- "[World Generation Debug] Set " + f.mDefaultLocalName
- + " Ore at X: "
- + aX
- + " | Y: "
- + aY
- + " | Z: "
- + aZ);
+ "[World Generation Debug] Set " + f.mDefaultLocalName
+ + " Ore at X: "
+ + aX
+ + " | Y: "
+ + aY
+ + " | Z: "
+ + aZ);
return true;
}
}
@@ -503,13 +498,13 @@ public class WorldGen_GT_Ore_Layer extends WorldGen_GT {
int r = f.mMetaItemSubID;
if (setOreBlock(aWorld, aX, aY, aZ, r, false)) {
Logger.WORLD(
- "[World Generation Debug] Set " + f.mDefaultLocalName
- + " Ore at X: "
- + aX
- + " | Y: "
- + aY
- + " | Z: "
- + aZ);
+ "[World Generation Debug] Set " + f.mDefaultLocalName
+ + " Ore at X: "
+ + aX
+ + " | Y: "
+ + aY
+ + " | Z: "
+ + aZ);
return true;
}
}
@@ -525,13 +520,13 @@ public class WorldGen_GT_Ore_Layer extends WorldGen_GT {
int r = f.mMetaItemSubID;
if (setOreBlock(aWorld, aX, aY, aZ, r, false)) {
Logger.WORLD(
- "[World Generation Debug] Set " + f.mDefaultLocalName
- + " Ore at X: "
- + aX
- + " | Y: "
- + aY
- + " | Z: "
- + aZ);
+ "[World Generation Debug] Set " + f.mDefaultLocalName
+ + " Ore at X: "
+ + aX
+ + " | Y: "
+ + aY
+ + " | Z: "
+ + aZ);
return true;
}
}
@@ -544,19 +539,19 @@ public class WorldGen_GT_Ore_Layer extends WorldGen_GT {
int BlockMeta = aWorld.getBlockMetadata(aX, aY, aZ);
String BlockName = tBlock.getUnlocalizedName();
if (tBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.stone)
- || tBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.sand)
- || tBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.dirt)
- || tBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, GregTech_API.sBlockGranites)
- || tBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, GregTech_API.sBlockStones)
- || tBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Dimension_Everglades.blockSecondLayer)
- || tBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Dimension_Everglades.blockMainFiller)
- || tBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Dimension_Everglades.blockSecondaryFiller)
- || tBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.sandstone)) {
+ || tBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.sand)
+ || tBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.dirt)
+ || tBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, GregTech_API.sBlockGranites)
+ || tBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, GregTech_API.sBlockStones)
+ || tBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Dimension_Everglades.blockSecondLayer)
+ || tBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Dimension_Everglades.blockMainFiller)
+ || tBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Dimension_Everglades.blockSecondaryFiller)
+ || tBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.sandstone)) {
if (aWorld.setBlock(aX, aY, aZ, tOreBlock, 0, 3)) {
Logger.WORLD(
- "[World Generation Debug] Set " + tOreBlock
- .getLocalizedName() + " at X: " + aX + " | Y: " + aY + " | Z: " + aZ);
+ "[World Generation Debug] Set " + tOreBlock
+ .getLocalizedName() + " at X: " + aX + " | Y: " + aY + " | Z: " + aZ);
return true;
}
}
@@ -570,13 +565,13 @@ public class WorldGen_GT_Ore_Layer extends WorldGen_GT {
try {
setOres = GT_TileEntity_Ores.class.getDeclaredMethod(
- "setOreBlock",
- World.class,
- int.class,
- int.class,
- int.class,
- int.class,
- boolean.class);
+ "setOreBlock",
+ World.class,
+ int.class,
+ int.class,
+ int.class,
+ int.class,
+ boolean.class);
} catch (NoSuchMethodException | SecurityException e) {
}
diff --git a/src/main/java/gtPlusPlus/everglades/gen/gt/WorldGen_Ores.java b/src/main/java/gtPlusPlus/everglades/gen/gt/WorldGen_Ores.java
index bdc9de19db..e45b4bcd20 100644
--- a/src/main/java/gtPlusPlus/everglades/gen/gt/WorldGen_Ores.java
+++ b/src/main/java/gtPlusPlus/everglades/gen/gt/WorldGen_Ores.java
@@ -9,231 +9,231 @@ import gtPlusPlus.core.material.nuclear.FLUORIDES;
public class WorldGen_Ores {
public static WorldGen_GT_Ore_Layer BaseVein = new WorldGen_GT_Ore_Layer(
- "veinA",
- 20,
- 40,
- 1,
- 1,
- 128,
- ELEMENT.getInstance().IRON,
- ELEMENT.getInstance().IRON,
- ELEMENT.getInstance().IRON,
- ELEMENT.getInstance().IRON);
+ "veinA",
+ 20,
+ 40,
+ 1,
+ 1,
+ 128,
+ ELEMENT.getInstance().IRON,
+ ELEMENT.getInstance().IRON,
+ ELEMENT.getInstance().IRON,
+ ELEMENT.getInstance().IRON);
/**
* Custom ore Veins
*/
public static WorldGen_GT_Ore_Layer Vein1 = new WorldGen_GT_Ore_Layer(
- "vein1",
- 0,
- 60,
- 30,
- 2,
- 16,
- ORES.AGARDITE_CD,
- ORES.AGARDITE_LA,
- ORES.DEMICHELEITE_BR,
- ORES.IRARSITE);
+ "vein1",
+ 0,
+ 60,
+ 30,
+ 2,
+ 16,
+ ORES.AGARDITE_CD,
+ ORES.AGARDITE_LA,
+ ORES.DEMICHELEITE_BR,
+ ORES.IRARSITE);
public static WorldGen_GT_Ore_Layer Vein2 = new WorldGen_GT_Ore_Layer(
- "vein2",
- 0,
- 60,
- 30,
- 2,
- 16,
- ORES.AGARDITE_ND,
- ORES.AGARDITE_Y,
- ORES.KASHINITE,
- ORES.CERITE);
+ "vein2",
+ 0,
+ 60,
+ 30,
+ 2,
+ 16,
+ ORES.AGARDITE_ND,
+ ORES.AGARDITE_Y,
+ ORES.KASHINITE,
+ ORES.CERITE);
public static WorldGen_GT_Ore_Layer Vein3 = new WorldGen_GT_Ore_Layer(
- "vein3",
- 0,
- 60,
- 30,
- 3,
- 32,
- ORES.CERITE,
- ORES.NICHROMITE,
- ORES.XENOTIME,
- ORES.HIBONITE);
+ "vein3",
+ 0,
+ 60,
+ 30,
+ 3,
+ 32,
+ ORES.CERITE,
+ ORES.NICHROMITE,
+ ORES.XENOTIME,
+ ORES.HIBONITE);
public static WorldGen_GT_Ore_Layer Vein4 = new WorldGen_GT_Ore_Layer(
- "vein4",
- 0,
- 60,
- 40,
- 3,
- 32,
- ORES.GEIKIELITE,
- ORES.CRYOLITE,
- ORES.GADOLINITE_CE,
- ORES.AGARDITE_ND);
+ "vein4",
+ 0,
+ 60,
+ 40,
+ 3,
+ 32,
+ ORES.GEIKIELITE,
+ ORES.CRYOLITE,
+ ORES.GADOLINITE_CE,
+ ORES.AGARDITE_ND);
public static WorldGen_GT_Ore_Layer Vein5 = new WorldGen_GT_Ore_Layer(
- "vein5",
- 30,
- 128,
- 20,
- 2,
- 48,
- ORES.HIBONITE,
- ORES.YTTRIALITE,
- ORES.ZIRCONILITE,
- ORES.CERITE);
+ "vein5",
+ 30,
+ 128,
+ 20,
+ 2,
+ 48,
+ ORES.HIBONITE,
+ ORES.YTTRIALITE,
+ ORES.ZIRCONILITE,
+ ORES.CERITE);
public static WorldGen_GT_Ore_Layer Vein6 = new WorldGen_GT_Ore_Layer(
- "vein6",
- 0,
- 40,
- 20,
- 2,
- 48,
- ORES.XENOTIME,
- ORES.ZIRKELITE,
- ORES.CROCROITE,
- ORES.IRARSITE);
+ "vein6",
+ 0,
+ 40,
+ 20,
+ 2,
+ 48,
+ ORES.XENOTIME,
+ ORES.ZIRKELITE,
+ ORES.CROCROITE,
+ ORES.IRARSITE);
public static WorldGen_GT_Ore_Layer Vein7 = new WorldGen_GT_Ore_Layer(
- "vein7",
- 40,
- 128,
- 20,
- 2,
- 48,
- ORES.HONEAITE,
- ORES.MIESSIITE,
- ORES.SAMARSKITE_Y,
- ORES.SAMARSKITE_YB);
+ "vein7",
+ 40,
+ 128,
+ 20,
+ 2,
+ 48,
+ ORES.HONEAITE,
+ ORES.MIESSIITE,
+ ORES.SAMARSKITE_Y,
+ ORES.SAMARSKITE_YB);
public static WorldGen_GT_Ore_Layer Vein8 = new WorldGen_GT_Ore_Layer(
- "vein8",
- 0,
- 40,
- 20,
- 2,
- 48,
- ORES.TITANITE,
- ORES.ZIMBABWEITE,
- ORES.ZIRCON,
- ORES.FLORENCITE);
+ "vein8",
+ 0,
+ 40,
+ 20,
+ 2,
+ 48,
+ ORES.TITANITE,
+ ORES.ZIMBABWEITE,
+ ORES.ZIRCON,
+ ORES.FLORENCITE);
public static WorldGen_GT_Ore_Layer Vein9 = new WorldGen_GT_Ore_Layer(
- "vein9",
- 10,
- 30,
- 20,
- 1,
- 48,
- ORES.LANTHANITE_CE,
- FLUORIDES.FLUORITE,
- ORES.LAFOSSAITE,
- ORES.FLORENCITE);
+ "vein9",
+ 10,
+ 30,
+ 20,
+ 1,
+ 48,
+ ORES.LANTHANITE_CE,
+ FLUORIDES.FLUORITE,
+ ORES.LAFOSSAITE,
+ ORES.FLORENCITE);
public static WorldGen_GT_Ore_Layer Vein10 = new WorldGen_GT_Ore_Layer(
- "vein10",
- 20,
- 50,
- 20,
- 2,
- 32,
- ORES.GEIKIELITE,
- ORES.YTTROCERITE,
- ORES.LANTHANITE_LA,
- ORES.RADIOBARITE);
+ "vein10",
+ 20,
+ 50,
+ 20,
+ 2,
+ 32,
+ ORES.GEIKIELITE,
+ ORES.YTTROCERITE,
+ ORES.LANTHANITE_LA,
+ ORES.RADIOBARITE);
public static WorldGen_GT_Ore_Layer Vein11 = new WorldGen_GT_Ore_Layer(
- "vein11",
- 30,
- 70,
- 20,
- 1,
- 48,
- FLUORIDES.FLUORITE,
- ORES.KASHINITE,
- ORES.ZIRCON,
- ORES.CRYOLITE);
+ "vein11",
+ 30,
+ 70,
+ 20,
+ 1,
+ 48,
+ FLUORIDES.FLUORITE,
+ ORES.KASHINITE,
+ ORES.ZIRCON,
+ ORES.CRYOLITE);
public static WorldGen_GT_Ore_Layer Vein12 = new WorldGen_GT_Ore_Layer(
- "vein12",
- 40,
- 80,
- 20,
- 3,
- 32,
- ORES.CERITE,
- ORES.ALBURNITE,
- ORES.MIESSIITE,
- ORES.HIBONITE);
+ "vein12",
+ 40,
+ 80,
+ 20,
+ 3,
+ 32,
+ ORES.CERITE,
+ ORES.ALBURNITE,
+ ORES.MIESSIITE,
+ ORES.HIBONITE);
/**
* Best Rarest Veins 2017
*/
public static WorldGen_GT_Ore_Layer Vein13 = new WorldGen_GT_Ore_Layer(
- "vein13",
- 5,
- 15,
- 5,
- 1,
- 16,
- ORES.CRYOLITE,
- ORES.RADIOBARITE,
- ORES.HONEAITE,
- ORES.FLORENCITE);
+ "vein13",
+ 5,
+ 15,
+ 5,
+ 1,
+ 16,
+ ORES.CRYOLITE,
+ ORES.RADIOBARITE,
+ ORES.HONEAITE,
+ ORES.FLORENCITE);
public static WorldGen_GT_Ore_Layer Vein14 = new WorldGen_GT_Ore_Layer(
- "vein14",
- 10,
- 20,
- 8,
- 2,
- 16,
- ORES.DEMICHELEITE_BR,
- ORES.PERROUDITE,
- ORES.IRARSITE,
- ORES.RADIOBARITE);
+ "vein14",
+ 10,
+ 20,
+ 8,
+ 2,
+ 16,
+ ORES.DEMICHELEITE_BR,
+ ORES.PERROUDITE,
+ ORES.IRARSITE,
+ ORES.RADIOBARITE);
public static WorldGen_GT_Ore_Layer Vein15 = new WorldGen_GT_Ore_Layer(
- "vein15",
- 5,
- 25,
- 5,
- 3,
- 24,
- ORES.FLUORCAPHITE,
- ORES.LAFOSSAITE,
- ORES.GADOLINITE_CE,
- ORES.GADOLINITE_Y);
+ "vein15",
+ 5,
+ 25,
+ 5,
+ 3,
+ 24,
+ ORES.FLUORCAPHITE,
+ ORES.LAFOSSAITE,
+ ORES.GADOLINITE_CE,
+ ORES.GADOLINITE_Y);
public static WorldGen_GT_Ore_Layer Vein16 = new WorldGen_GT_Ore_Layer(
- "vein16",
- 0,
- 25,
- 4,
- 2,
- 32,
- ORES.YTTROCERITE,
- ORES.LEPERSONNITE,
- ORES.LAUTARITE,
- FLUORIDES.FLUORITE);
+ "vein16",
+ 0,
+ 25,
+ 4,
+ 2,
+ 32,
+ ORES.YTTROCERITE,
+ ORES.LEPERSONNITE,
+ ORES.LAUTARITE,
+ FLUORIDES.FLUORITE);
public static WorldGen_GT_Ore_Layer Vein17 = new WorldGen_GT_Ore_Layer(
- "vein17",
- 10,
- 35,
- 4,
- 1,
- 32,
- ORES.FLORENCITE,
- ORES.LAUTARITE,
- ORES.SAMARSKITE_YB,
- ORES.POLYCRASE);
+ "vein17",
+ 10,
+ 35,
+ 4,
+ 1,
+ 32,
+ ORES.FLORENCITE,
+ ORES.LAUTARITE,
+ ORES.SAMARSKITE_YB,
+ ORES.POLYCRASE);
public static WorldGen_GT_Ore_Layer Vein18 = new WorldGen_GT_Ore_Layer(
- "vein18",
- 15,
- 40,
- 4,
- 1,
- 48,
- ORES.GADOLINITE_CE,
- ORES.GADOLINITE_Y,
- ORES.AGARDITE_LA,
- ORES.AGARDITE_CD);
+ "vein18",
+ 15,
+ 40,
+ 4,
+ 1,
+ 48,
+ ORES.GADOLINITE_CE,
+ ORES.GADOLINITE_Y,
+ ORES.AGARDITE_LA,
+ ORES.AGARDITE_CD);
public static Hashtable<Long, WorldGen_GT_Ore_Layer> validOreveins = new Hashtable<>(1024);
diff --git a/src/main/java/gtPlusPlus/everglades/item/ItemEvergladesPortalTrigger.java b/src/main/java/gtPlusPlus/everglades/item/ItemEvergladesPortalTrigger.java
index 2f85fa50e9..be15c2a0d2 100644
--- a/src/main/java/gtPlusPlus/everglades/item/ItemEvergladesPortalTrigger.java
+++ b/src/main/java/gtPlusPlus/everglades/item/ItemEvergladesPortalTrigger.java
@@ -46,10 +46,10 @@ public class ItemEvergladesPortalTrigger extends Item {
@Override
public String getItemStackDisplayName(final ItemStack p_77653_1_) {
return EnumChatFormatting.GOLD + "Alkalus Disk ["
- + EnumChatFormatting.RED
- + "Activated"
- + EnumChatFormatting.GOLD
- + "]";
+ + EnumChatFormatting.RED
+ + "Activated"
+ + EnumChatFormatting.GOLD
+ + "]";
}
@SuppressWarnings({ "unchecked", "rawtypes" })
@@ -57,8 +57,7 @@ public class ItemEvergladesPortalTrigger extends Item {
public void addInformation(final ItemStack stack, final EntityPlayer aPlayer, final List list, final boolean bool) {
list.add(EnumChatFormatting.GREEN + "Shines the way, towards the far away Everglades.");
list.add(
- EnumChatFormatting.GREEN
- + "This item produces such a temperature, that you'd hate to use it incorrectly.");
+ EnumChatFormatting.GREEN + "This item produces such a temperature, that you'd hate to use it incorrectly.");
super.addInformation(stack, aPlayer, list, bool);
}
@@ -69,7 +68,7 @@ public class ItemEvergladesPortalTrigger extends Item {
@Override
public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4,
- int par5, int par6, int par7, float par8, float par9, float par10) {
+ int par5, int par6, int par7, float par8, float par9, float par10) {
if (par7 == 0) {
par5--;
}
@@ -94,12 +93,12 @@ public class ItemEvergladesPortalTrigger extends Item {
Block i1 = par3World.getBlock(par4, par5, par6);
if (i1 == Blocks.air) {
par3World.playSoundEffect(
- par4 + 0.5D,
- par5 + 0.5D,
- par6 + 0.5D,
- "fire.ignite",
- 1.0F,
- itemRand.nextFloat() * 0.4F + 0.8F);
+ par4 + 0.5D,
+ par5 + 0.5D,
+ par6 + 0.5D,
+ "fire.ignite",
+ 1.0F,
+ itemRand.nextFloat() * 0.4F + 0.8F);
if (Dimension_Everglades.portalBlock.tryToCreatePortal(par3World, par4, par5, par6)) {
// Make a Portal
} else {
diff --git a/src/main/java/gtPlusPlus/everglades/world/TeleporterDimensionMod.java b/src/main/java/gtPlusPlus/everglades/world/TeleporterDimensionMod.java
index 15fcd1fde4..51f549ad9c 100644
--- a/src/main/java/gtPlusPlus/everglades/world/TeleporterDimensionMod.java
+++ b/src/main/java/gtPlusPlus/everglades/world/TeleporterDimensionMod.java
@@ -66,7 +66,7 @@ public class TeleporterDimensionMod extends Teleporter {
int i2 = k + i1 * b1 - l * b0;
boolean flag = j1 < 0;
this.worldServerInstance
- .setBlock(k1, l1, i2, flag ? Dimension_Everglades.blockPortalFrame : Blocks.air);
+ .setBlock(k1, l1, i2, flag ? Dimension_Everglades.blockPortalFrame : Blocks.air);
}
}
}
@@ -95,7 +95,7 @@ public class TeleporterDimensionMod extends Teleporter {
if (this.destinationCoordinateCache.containsItem(j1)) {
Teleporter.PortalPosition portalposition = (Teleporter.PortalPosition) this.destinationCoordinateCache
- .getValueByKey(j1);
+ .getValueByKey(j1);
d3 = 0.0D;
i = portalposition.posX;
j = portalposition.posY;
@@ -112,7 +112,7 @@ public class TeleporterDimensionMod extends Teleporter {
for (int i2 = this.worldServerInstance.getActualHeight() - 1; i2 >= 0; --i2) {
if (this.worldServerInstance.getBlock(l3, i2, l1) == Dimension_Everglades.portalBlock) {
while (this.worldServerInstance.getBlock(l3, i2 - 1, l1)
- == Dimension_Everglades.portalBlock) {
+ == Dimension_Everglades.portalBlock) {
--i2;
}
@@ -134,7 +134,7 @@ public class TeleporterDimensionMod extends Teleporter {
if (d3 >= 0.0D) {
if (flag) {
this.destinationCoordinateCache
- .add(j1, new Teleporter.PortalPosition(i, j, k, this.worldServerInstance.getTotalWorldTime()));
+ .add(j1, new Teleporter.PortalPosition(i, j, k, this.worldServerInstance.getTotalWorldTime()));
this.destinationCoordinateKeys.add(Long.valueOf(j1));
}
@@ -168,9 +168,9 @@ public class TeleporterDimensionMod extends Teleporter {
int j3 = Direction.offsetX[k2];
int k3 = Direction.offsetZ[k2];
boolean flag1 = !this.worldServerInstance.isAirBlock(i + l2 + j3, j, k + i3 + k3)
- || !this.worldServerInstance.isAirBlock(i + l2 + j3, j + 1, k + i3 + k3);
+ || !this.worldServerInstance.isAirBlock(i + l2 + j3, j + 1, k + i3 + k3);
boolean flag2 = !this.worldServerInstance.isAirBlock(i + l2, j, k + i3)
- || !this.worldServerInstance.isAirBlock(i + l2, j + 1, k + i3);
+ || !this.worldServerInstance.isAirBlock(i + l2, j + 1, k + i3);
if (flag1 && flag2) {
i4 = Direction.rotateOpposite[i4];
@@ -184,9 +184,9 @@ public class TeleporterDimensionMod extends Teleporter {
int k1 = k - k3;
d7 -= k3;
flag1 = !this.worldServerInstance.isAirBlock(l3 + l2 + j3, j, k1 + i3 + k3)
- || !this.worldServerInstance.isAirBlock(l3 + l2 + j3, j + 1, k1 + i3 + k3);
+ || !this.worldServerInstance.isAirBlock(l3 + l2 + j3, j + 1, k1 + i3 + k3);
flag2 = !this.worldServerInstance.isAirBlock(l3 + l2, j, k1 + i3)
- || !this.worldServerInstance.isAirBlock(l3 + l2, j + 1, k1 + i3);
+ || !this.worldServerInstance.isAirBlock(l3 + l2, j + 1, k1 + i3);
}
float f1 = 0.5F;
@@ -292,10 +292,9 @@ public class TeleporterDimensionMod extends Teleporter {
i5 = i3 + k4;
int j5 = k2 + (j4 - 1) * l3 - i4 * k3;
- if (k4 < 0
- && !this.worldServerInstance.getBlock(l4, i5, j5).getMaterial()
- .isSolid()
- || k4 >= 0 && !this.worldServerInstance.isAirBlock(l4, i5, j5)) {
+ if (k4 < 0 && !this.worldServerInstance.getBlock(l4, i5, j5)
+ .getMaterial()
+ .isSolid() || k4 >= 0 && !this.worldServerInstance.isAirBlock(l4, i5, j5)) {
continue label274;
}
}
@@ -340,10 +339,9 @@ public class TeleporterDimensionMod extends Teleporter {
l4 = i3 + j4;
i5 = k2 + (i4 - 1) * l3;
- if (j4 < 0
- && !this.worldServerInstance.getBlock(k4, l4, i5).getMaterial()
- .isSolid()
- || j4 >= 0 && !this.worldServerInstance.isAirBlock(k4, l4, i5)) {
+ if (j4 < 0 && !this.worldServerInstance.getBlock(k4, l4, i5)
+ .getMaterial()
+ .isSolid() || j4 >= 0 && !this.worldServerInstance.isAirBlock(k4, l4, i5)) {
continue label222;
}
}
@@ -398,7 +396,7 @@ public class TeleporterDimensionMod extends Teleporter {
j4 = k2 + (j3 - 1) * l2 - i3 * l5;
flag = k3 < 0;
this.worldServerInstance
- .setBlock(l3, i4, j4, flag ? Dimension_Everglades.blockPortalFrame : Blocks.air);
+ .setBlock(l3, i4, j4, flag ? Dimension_Everglades.blockPortalFrame : Blocks.air);
}
}
}
@@ -412,12 +410,12 @@ public class TeleporterDimensionMod extends Teleporter {
j4 = k2 + (j3 - 1) * l2;
flag = j3 == 0 || j3 == 3 || k3 == -1 || k3 == 3;
this.worldServerInstance.setBlock(
- l3,
- i4,
- j4,
- flag ? Dimension_Everglades.blockPortalFrame : Dimension_Everglades.portalBlock,
- 0,
- 2);
+ l3,
+ i4,
+ j4,
+ flag ? Dimension_Everglades.blockPortalFrame : Dimension_Everglades.portalBlock,
+ 0,
+ 2);
}
}
@@ -427,7 +425,7 @@ public class TeleporterDimensionMod extends Teleporter {
i4 = j2 + k3;
j4 = k2 + (j3 - 1) * l2;
this.worldServerInstance
- .notifyBlocksOfNeighborChange(l3, i4, j4, this.worldServerInstance.getBlock(l3, i4, j4));
+ .notifyBlocksOfNeighborChange(l3, i4, j4, this.worldServerInstance.getBlock(l3, i4, j4));
}
}
}
@@ -449,7 +447,7 @@ public class TeleporterDimensionMod extends Teleporter {
while (iterator.hasNext()) {
Long olong = (Long) iterator.next();
Teleporter.PortalPosition portalposition = (Teleporter.PortalPosition) this.destinationCoordinateCache
- .getValueByKey(olong);
+ .getValueByKey(olong);
if (portalposition == null || portalposition.lastUpdateTime < j) {
iterator.remove();
diff --git a/src/main/java/gtPlusPlus/everglades/world/WorldChunkManagerCustom.java b/src/main/java/gtPlusPlus/everglades/world/WorldChunkManagerCustom.java
index e01ae2ff1e..d1a621addf 100644
--- a/src/main/java/gtPlusPlus/everglades/world/WorldChunkManagerCustom.java
+++ b/src/main/java/gtPlusPlus/everglades/world/WorldChunkManagerCustom.java
@@ -69,7 +69,8 @@ public class WorldChunkManagerCustom extends WorldChunkManager {
for (int i1 = 0; i1 < width * length; ++i1) {
try {
- float f = BiomeGenBase.getBiome(aint[i1]).getIntRainfall() / 65536.0F;
+ float f = BiomeGenBase.getBiome(aint[i1])
+ .getIntRainfall() / 65536.0F;
if (f > 1.0F) {
f = 1.0F;
@@ -106,7 +107,7 @@ public class WorldChunkManagerCustom extends WorldChunkManager {
*/
@Override
public BiomeGenBase[] getBiomesForGeneration(BiomeGenBase[] par1ArrayOfBiomeGenBase, int par2, int par3, int par4,
- int par5) {
+ int par5) {
IntCache.resetIntCache();
if (par1ArrayOfBiomeGenBase == null || par1ArrayOfBiomeGenBase.length < par4 * par5) {
@@ -148,7 +149,7 @@ public class WorldChunkManagerCustom extends WorldChunkManager {
*/
@Override
public BiomeGenBase[] getBiomeGenAt(BiomeGenBase[] listToReuse, int x, int y, int width, int length,
- boolean cacheFlag) {
+ boolean cacheFlag) {
IntCache.resetIntCache();
if (listToReuse == null || listToReuse.length < width * length) {
@@ -213,7 +214,7 @@ public class WorldChunkManagerCustom extends WorldChunkManager {
@Override
@SuppressWarnings("rawtypes")
public ChunkPosition findBiomePosition(int p_150795_1_, int p_150795_2_, int p_150795_3_, List p_150795_4_,
- Random p_150795_5_) {
+ Random p_150795_5_) {
IntCache.resetIntCache();
int l = p_150795_1_ - p_150795_3_ >> 2;
int i1 = p_150795_2_ - p_150795_3_ >> 2;
diff --git a/src/main/java/gtPlusPlus/nei/DecayableRecipeHandler.java b/src/main/java/gtPlusPlus/nei/DecayableRecipeHandler.java
index 317a31d997..499e53c317 100644
--- a/src/main/java/gtPlusPlus/nei/DecayableRecipeHandler.java
+++ b/src/main/java/gtPlusPlus/nei/DecayableRecipeHandler.java
@@ -55,13 +55,13 @@ public class DecayableRecipeHandler extends TemplateRecipeHandler {
@Override
public void loadTransferRects() {
this.transferRects
- .add(new RecipeTransferRect(new Rectangle(6, 3, 16, 16), getOverlayIdentifier(), new Object[0]));
+ .add(new RecipeTransferRect(new Rectangle(6, 3, 16, 16), getOverlayIdentifier(), new Object[0]));
}
@Override
public void loadCraftingRecipes(ItemStack result) {
if (result == null || (!DustDecayable.class.isInstance(result.getItem())
- && !BaseItemDustUnique.class.isInstance(result.getItem()))) {
+ && !BaseItemDustUnique.class.isInstance(result.getItem()))) {
return;
}
if (result != null) {
diff --git a/src/main/java/gtPlusPlus/nei/GT_NEI_LFTR_Sparging.java b/src/main/java/gtPlusPlus/nei/GT_NEI_LFTR_Sparging.java
index 4d5d89edb7..c7c657f04a 100644
--- a/src/main/java/gtPlusPlus/nei/GT_NEI_LFTR_Sparging.java
+++ b/src/main/java/gtPlusPlus/nei/GT_NEI_LFTR_Sparging.java
@@ -39,16 +39,16 @@ public class GT_NEI_LFTR_Sparging extends TemplateRecipeHandler {
public GT_NEI_LFTR_Sparging() {
this.transferRects.add(
- new TemplateRecipeHandler.RecipeTransferRect(
- new Rectangle(65, 13, 36, 18),
- this.getOverlayIdentifier(),
- new Object[0]));
+ new TemplateRecipeHandler.RecipeTransferRect(
+ new Rectangle(65, 13, 36, 18),
+ this.getOverlayIdentifier(),
+ new Object[0]));
if (!NEI_GTPP_Config.sIsAdded) {
FMLInterModComms.sendRuntimeMessage(
- GT_Values.GT,
- "NEIPlugins",
- "register-crafting-handler",
- "gregtechplusplus@" + this.getRecipeName() + "@" + this.getOverlayIdentifier());
+ GT_Values.GT,
+ "NEIPlugins",
+ "register-crafting-handler",
+ "gregtechplusplus@" + this.getRecipeName() + "@" + this.getOverlayIdentifier());
GuiCraftingRecipe.craftinghandlers.add(this);
GuiUsageRecipe.usagehandlers.add(this);
}
@@ -84,7 +84,7 @@ public class GT_NEI_LFTR_Sparging extends TemplateRecipeHandler {
@Override
public void loadTransferRects() {
this.transferRects
- .add(new RecipeTransferRect(new Rectangle(72, 14, 22, 16), getOverlayIdentifier(), new Object[0]));
+ .add(new RecipeTransferRect(new Rectangle(72, 14, 22, 16), getOverlayIdentifier(), new Object[0]));
}
public List<GasSpargingRecipeNEI> getCache() {
@@ -92,7 +92,9 @@ public class GT_NEI_LFTR_Sparging extends TemplateRecipeHandler {
if (mCachedRecipes == null || (cache = mCachedRecipes.get()) == null) {
cache = GasSpargingRecipeMap.mRecipes.stream() // do not use parallel stream. This is already parallelized
// by NEI
- .sorted().map(temp -> createCachedRecipe(temp)).collect(Collectors.toList());
+ .sorted()
+ .map(temp -> createCachedRecipe(temp))
+ .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
mCachedRecipes = new SoftReference<>(cache);
@@ -121,7 +123,7 @@ public class GT_NEI_LFTR_Sparging extends TemplateRecipeHandler {
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));
}
@@ -136,7 +138,8 @@ public class GT_NEI_LFTR_Sparging extends TemplateRecipeHandler {
tResults.addAll(GT_Utility.getContainersFromFluid(tFluidStack));
}
for (GasSpargingRecipeNEI recipe : getCache()) {
- if (tResults.stream().anyMatch(stack -> recipe.contains(recipe.mOutputs, stack))) arecipes.add(recipe);
+ if (tResults.stream()
+ .anyMatch(stack -> recipe.contains(recipe.mOutputs, stack))) arecipes.add(recipe);
}
}
@@ -162,7 +165,8 @@ public class GT_NEI_LFTR_Sparging extends TemplateRecipeHandler {
tInputs.addAll(GT_Utility.getContainersFromFluid(tFluidStack));
}
for (GasSpargingRecipeNEI recipe : getCache()) {
- if (tInputs.stream().anyMatch(stack -> recipe.contains(recipe.mInputs, stack))) arecipes.add(recipe);
+ if (tInputs.stream()
+ .anyMatch(stack -> recipe.contains(recipe.mInputs, stack))) arecipes.add(recipe);
}
}
@@ -177,10 +181,10 @@ public class GT_NEI_LFTR_Sparging extends TemplateRecipeHandler {
drawText(10, 73, "Total: " + MathUtils.formatNumbers((long) (tDuration * tEUt)) + " EU", -16777216);
drawText(10, 83, "Usage: " + MathUtils.formatNumbers(tEUt) + " EU/t", -16777216);
drawText(
- 10,
- 93,
- "Time: " + (tDuration < 20 ? "< 1" : MathUtils.formatNumbers(0.05d * tDuration)) + " secs",
- -16777216);
+ 10,
+ 93,
+ "Time: " + (tDuration < 20 ? "< 1" : MathUtils.formatNumbers(0.05d * tDuration)) + " secs",
+ -16777216);
drawText(10, 103, "Gas not used to sparge is", -16777216);
drawText(10, 113, "returned alongside outputs.", -16777216);
}
@@ -256,7 +260,7 @@ public class GT_NEI_LFTR_Sparging extends TemplateRecipeHandler {
if (!permutations.isEmpty()) {
ItemStack stack;
for (final Iterator<ItemStack> i$ = permutations.iterator(); i$.hasNext(); tDisplayStacks
- .add(GT_Utility.copyAmount(tStack.stackSize, new Object[] { stack }))) {
+ .add(GT_Utility.copyAmount(tStack.stackSize, new Object[] { stack }))) {
stack = i$.next();
}
} else {
@@ -291,74 +295,74 @@ public class GT_NEI_LFTR_Sparging extends TemplateRecipeHandler {
if (tRecipe.mFluidInputs.length > 0) {
if ((tRecipe.mFluidInputs[0] != null) && (tRecipe.mFluidInputs[0].getFluid() != null)) {
this.mInputs.add(
- new FixedPositionedStack(
- GT_Utility.getFluidDisplayStack(tRecipe.mFluidInputs[0], true),
- 30,
- 5));
+ new FixedPositionedStack(
+ GT_Utility.getFluidDisplayStack(tRecipe.mFluidInputs[0], true),
+ 30,
+ 5));
}
if ((tRecipe.mFluidInputs.length > 1) && (tRecipe.mFluidInputs[1] != null)
- && (tRecipe.mFluidInputs[1].getFluid() != null)) {
+ && (tRecipe.mFluidInputs[1].getFluid() != null)) {
this.mInputs.add(
- new FixedPositionedStack(
- GT_Utility.getFluidDisplayStack(tRecipe.mFluidInputs[1], true),
- 12,
- 5));
+ new FixedPositionedStack(
+ GT_Utility.getFluidDisplayStack(tRecipe.mFluidInputs[1], true),
+ 12,
+ 5));
}
if ((tRecipe.mFluidInputs.length > 2) && (tRecipe.mFluidInputs[2] != null)
- && (tRecipe.mFluidInputs[2].getFluid() != null)) {
+ && (tRecipe.mFluidInputs[2].getFluid() != null)) {
this.mInputs.add(
- new FixedPositionedStack(
- GT_Utility.getFluidDisplayStack(tRecipe.mFluidInputs[2], true),
- 48,
- 5));
+ new FixedPositionedStack(
+ GT_Utility.getFluidDisplayStack(tRecipe.mFluidInputs[2], true),
+ 48,
+ 5));
}
if ((tRecipe.mFluidInputs.length > 3) && (tRecipe.mFluidInputs[3] != null)
- && (tRecipe.mFluidInputs[3].getFluid() != null)) {
+ && (tRecipe.mFluidInputs[3].getFluid() != null)) {
this.mInputs.add(
- new FixedPositionedStack(
- GT_Utility.getFluidDisplayStack(tRecipe.mFluidInputs[3], true),
- 12,
- 23));
+ new FixedPositionedStack(
+ GT_Utility.getFluidDisplayStack(tRecipe.mFluidInputs[3], true),
+ 12,
+ 23));
}
if ((tRecipe.mFluidInputs.length > 4) && (tRecipe.mFluidInputs[4] != null)
- && (tRecipe.mFluidInputs[4].getFluid() != null)) {
+ && (tRecipe.mFluidInputs[4].getFluid() != null)) {
this.mInputs.add(
- new FixedPositionedStack(
- GT_Utility.getFluidDisplayStack(tRecipe.mFluidInputs[4], true),
- 30,
- 23));
+ new FixedPositionedStack(
+ GT_Utility.getFluidDisplayStack(tRecipe.mFluidInputs[4], true),
+ 30,
+ 23));
}
if ((tRecipe.mFluidInputs.length > 5) && (tRecipe.mFluidInputs[5] != null)
- && (tRecipe.mFluidInputs[5].getFluid() != null)) {
+ && (tRecipe.mFluidInputs[5].getFluid() != null)) {
this.mInputs.add(
- new FixedPositionedStack(
- GT_Utility.getFluidDisplayStack(tRecipe.mFluidInputs[5], true),
- 48,
- 23));
+ new FixedPositionedStack(
+ GT_Utility.getFluidDisplayStack(tRecipe.mFluidInputs[5], true),
+ 48,
+ 23));
}
if ((tRecipe.mFluidInputs.length > 6) && (tRecipe.mFluidInputs[6] != null)
- && (tRecipe.mFluidInputs[6].getFluid() != null)) {
+ && (tRecipe.mFluidInputs[6].getFluid() != null)) {
this.mInputs.add(
- new FixedPositionedStack(
- GT_Utility.getFluidDisplayStack(tRecipe.mFluidInputs[6], true),
- 12,
- 41));
+ new FixedPositionedStack(
+ GT_Utility.getFluidDisplayStack(tRecipe.mFluidInputs[6], true),
+ 12,
+ 41));
}
if ((tRecipe.mFluidInputs.length > 7) && (tRecipe.mFluidInputs[7] != null)
- && (tRecipe.mFluidInputs[7].getFluid() != null)) {
+ && (tRecipe.mFluidInputs[7].getFluid() != null)) {
this.mInputs.add(
- new FixedPositionedStack(
- GT_Utility.getFluidDisplayStack(tRecipe.mFluidInputs[7], true),
- 30,
- 41));
+ new FixedPositionedStack(
+ GT_Utility.getFluidDisplayStack(tRecipe.mFluidInputs[7], true),
+ 30,
+ 41));
}
if ((tRecipe.mFluidInputs.length > 8) && (tRecipe.mFluidInputs[8] != null)
- && (tRecipe.mFluidInputs[8].getFluid() != null)) {
+ && (tRecipe.mFluidInputs[8].getFluid() != null)) {
this.mInputs.add(
- new FixedPositionedStack(
- GT_Utility.getFluidDisplayStack(tRecipe.mFluidInputs[8], true),
- 48,
- 41));
+ new FixedPositionedStack(
+ GT_Utility.getFluidDisplayStack(tRecipe.mFluidInputs[8], true),
+ 48,
+ 41));
}
}
@@ -366,83 +370,83 @@ public class GT_NEI_LFTR_Sparging extends TemplateRecipeHandler {
if (tRecipe.mFluidOutputs.length > 0) {
if ((tRecipe.mFluidOutputs[0] != null) && (tRecipe.mFluidOutputs[0].getFluid() != null)) {
this.mOutputs.add(
- new FixedPositionedStack(
- GT_Utility.getFluidDisplayStack(tRecipe.mFluidOutputs[0], false),
- 120,
- 5,
- tRecipe.getMaxOutput(tStartIndex++)));
+ new FixedPositionedStack(
+ GT_Utility.getFluidDisplayStack(tRecipe.mFluidOutputs[0], false),
+ 120,
+ 5,
+ tRecipe.getMaxOutput(tStartIndex++)));
}
if ((tRecipe.mFluidOutputs.length > 1) && (tRecipe.mFluidOutputs[1] != null)
- && (tRecipe.mFluidOutputs[1].getFluid() != null)) {
+ && (tRecipe.mFluidOutputs[1].getFluid() != null)) {
this.mOutputs.add(
- new FixedPositionedStack(
- GT_Utility.getFluidDisplayStack(tRecipe.mFluidOutputs[1], true),
- 102,
- 5,
- tRecipe.getMaxOutput(tStartIndex++)));
+ new FixedPositionedStack(
+ GT_Utility.getFluidDisplayStack(tRecipe.mFluidOutputs[1], true),
+ 102,
+ 5,
+ tRecipe.getMaxOutput(tStartIndex++)));
}
if ((tRecipe.mFluidOutputs.length > 2) && (tRecipe.mFluidOutputs[2] != null)
- && (tRecipe.mFluidOutputs[2].getFluid() != null)) {
+ && (tRecipe.mFluidOutputs[2].getFluid() != null)) {
this.mOutputs.add(
- new FixedPositionedStack(
- GT_Utility.getFluidDisplayStack(tRecipe.mFluidOutputs[2], false),
- 138,
- 5,
- tRecipe.getMaxOutput(tStartIndex++)));
+ new FixedPositionedStack(
+ GT_Utility.getFluidDisplayStack(tRecipe.mFluidOutputs[2], false),
+ 138,
+ 5,
+ tRecipe.getMaxOutput(tStartIndex++)));
}
if ((tRecipe.mFluidOutputs.length > 3) && (tRecipe.mFluidOutputs[3] != null)
- && (tRecipe.mFluidOutputs[3].getFluid() != null)) {
+ && (tRecipe.mFluidOutputs[3].getFluid() != null)) {
this.mOutputs.add(
- new FixedPositionedStack(
- GT_Utility.getFluidDisplayStack(tRecipe.mFluidOutputs[3], false),
- 102,
- 23,
- tRecipe.getMaxOutput(tStartIndex++)));
+ new FixedPositionedStack(
+ GT_Utility.getFluidDisplayStack(tRecipe.mFluidOutputs[3], false),
+ 102,
+ 23,
+ tRecipe.getMaxOutput(tStartIndex++)));
}
if ((tRecipe.mFluidOutputs.length > 4) && (tRecipe.mFluidOutputs[4] != null)
- && (tRecipe.mFluidOutputs[4].getFluid() != null)) {
+ && (tRecipe.mFluidOutputs[4].getFluid() != null)) {
this.mOutputs.add(
- new FixedPositionedStack(
- GT_Utility.getFluidDisplayStack(tRecipe.mFluidOutputs[4], false),
- 120,
- 23,
- tRecipe.getMaxOutput(tStartIndex++)));
+ new FixedPositionedStack(
+ GT_Utility.getFluidDisplayStack(tRecipe.mFluidOutputs[4], false),
+ 120,
+ 23,
+ tRecipe.getMaxOutput(tStartIndex++)));
}
if ((tRecipe.mFluidOutputs.length > 5) && (tRecipe.mFluidOutputs[5] != null)
- && (tRecipe.mFluidOutputs[5].getFluid() != null)) {
+ && (tRecipe.mFluidOutputs[5].getFluid() != null)) {
this.mOutputs.add(
- new FixedPositionedStack(
- GT_Utility.getFluidDisplayStack(tRecipe.mFluidOutputs[5], false),
- 138,
- 23,
- tRecipe.getMaxOutput(tStartIndex++)));
+ new FixedPositionedStack(
+ GT_Utility.getFluidDisplayStack(tRecipe.mFluidOutputs[5], false),
+ 138,
+ 23,
+ tRecipe.getMaxOutput(tStartIndex++)));
}
if ((tRecipe.mFluidOutputs.length > 6) && (tRecipe.mFluidOutputs[6] != null)
- && (tRecipe.mFluidOutputs[6].getFluid() != null)) {
+ && (tRecipe.mFluidOutputs[6].getFluid() != null)) {
this.mOutputs.add(
- new FixedPositionedStack(
- GT_Utility.getFluidDisplayStack(tRecipe.mFluidOutputs[6], false),
- 102,
- 41,
- tRecipe.getMaxOutput(tStartIndex++)));
+ new FixedPositionedStack(
+ GT_Utility.getFluidDisplayStack(tRecipe.mFluidOutputs[6], false),
+ 102,
+ 41,
+ tRecipe.getMaxOutput(tStartIndex++)));
}
if ((tRecipe.mFluidOutputs.length > 7) && (tRecipe.mFluidOutputs[7] != null)
- && (tRecipe.mFluidOutputs[7].getFluid() != null)) {
+ && (tRecipe.mFluidOutputs[7].getFluid() != null)) {
this.mOutputs.add(
- new FixedPositionedStack(
- GT_Utility.getFluidDisplayStack(tRecipe.mFluidOutputs[7], false),
- 120,
- 41,
- tRecipe.getMaxOutput(tStartIndex++)));
+ new FixedPositionedStack(
+ GT_Utility.getFluidDisplayStack(tRecipe.mFluidOutputs[7], false),
+ 120,
+ 41,
+ tRecipe.getMaxOutput(tStartIndex++)));
}
if ((tRecipe.mFluidOutputs.length > 8) && (tRecipe.mFluidOutputs[8] != null)
- && (tRecipe.mFluidOutputs[8].getFluid() != null)) {
+ && (tRecipe.mFluidOutputs[8].getFluid() != null)) {
this.mOutputs.add(
- new FixedPositionedStack(
- GT_Utility.getFluidDisplayStack(tRecipe.mFluidOutputs[8], false),
- 138,
- 41,
- tRecipe.getMaxOutput(tStartIndex++)));
+ new FixedPositionedStack(
+ GT_Utility.getFluidDisplayStack(tRecipe.mFluidOutputs[8], false),
+ 138,
+ 41,
+ tRecipe.getMaxOutput(tStartIndex++)));
}
}
}
diff --git a/src/main/java/gtPlusPlus/nei/NEI_GTPP_Config.java b/src/main/java/gtPlusPlus/nei/NEI_GTPP_Config.java
index 17695a4bf7..16cc1e8cbf 100644
--- a/src/main/java/gtPlusPlus/nei/NEI_GTPP_Config.java
+++ b/src/main/java/gtPlusPlus/nei/NEI_GTPP_Config.java
@@ -37,14 +37,14 @@ public class NEI_GTPP_Config implements IConfigureNEI {
API.addRecipeCatalyst(GregtechItemList.Controller_Sparge_Tower.get(1), "gtpp.recipe.lftr.sparging");
for (GregtechItemList item : Arrays.asList(
- GregtechItemList.GT4_Electric_Auto_Workbench_LV,
- GregtechItemList.GT4_Electric_Auto_Workbench_MV,
- GregtechItemList.GT4_Electric_Auto_Workbench_HV,
- GregtechItemList.GT4_Electric_Auto_Workbench_EV,
- GregtechItemList.GT4_Electric_Auto_Workbench_IV,
- GregtechItemList.GT4_Electric_Auto_Workbench_LuV,
- GregtechItemList.GT4_Electric_Auto_Workbench_ZPM,
- GregtechItemList.GT4_Electric_Auto_Workbench_UV)) {
+ GregtechItemList.GT4_Electric_Auto_Workbench_LV,
+ GregtechItemList.GT4_Electric_Auto_Workbench_MV,
+ GregtechItemList.GT4_Electric_Auto_Workbench_HV,
+ GregtechItemList.GT4_Electric_Auto_Workbench_EV,
+ GregtechItemList.GT4_Electric_Auto_Workbench_IV,
+ GregtechItemList.GT4_Electric_Auto_Workbench_LuV,
+ GregtechItemList.GT4_Electric_Auto_Workbench_ZPM,
+ GregtechItemList.GT4_Electric_Auto_Workbench_UV)) {
API.addRecipeCatalyst(item.get(1), "crafting", -10);
}
// Bronze workbench
@@ -53,23 +53,23 @@ public class NEI_GTPP_Config implements IConfigureNEI {
// Moved to its own handler
API.removeRecipeCatalyst(
- GregtechItemList.Controller_Vacuum_Furnace.get(1),
- GTPPRecipeMaps.chemicalDehydratorRecipes.unlocalizedName);
+ GregtechItemList.Controller_Vacuum_Furnace.get(1),
+ GTPPRecipeMaps.chemicalDehydratorRecipes.unlocalizedName);
// ULV simple washer
API.removeRecipeCatalyst(
- ItemUtils.getItemStackFromFQRN("gregtech:gt.blockmachines:767", 1),
- GTPPRecipeMaps.simpleWasherRecipes.unlocalizedName);
+ ItemUtils.getItemStackFromFQRN("gregtech:gt.blockmachines:767", 1),
+ GTPPRecipeMaps.simpleWasherRecipes.unlocalizedName);
// ULV combustion generator
API.removeRecipeCatalyst(
- ItemUtils.getItemStackFromFQRN("gregtech:gt.blockmachines:960", 1),
- RecipeMaps.dieselFuels.unlocalizedName);
+ ItemUtils.getItemStackFromFQRN("gregtech:gt.blockmachines:960", 1),
+ RecipeMaps.dieselFuels.unlocalizedName);
// ULV gas turbine
API.removeRecipeCatalyst(
- ItemUtils.getItemStackFromFQRN("gregtech:gt.blockmachines:961", 1),
- RecipeMaps.gasTurbineFuels.unlocalizedName);
+ ItemUtils.getItemStackFromFQRN("gregtech:gt.blockmachines:961", 1),
+ RecipeMaps.gasTurbineFuels.unlocalizedName);
// Hide Flasks
if (Utils.isClient()) {
@@ -82,9 +82,12 @@ public class NEI_GTPP_Config implements IConfigureNEI {
@SubscribeEvent
public void registerHandlerInfo(NEIRegisterHandlerInfosEvent event) {
event.registerHandlerInfo(
- new HandlerInfo.Builder("gtpp.recipe.lftr.sparging", CORE.name, Mods.GTPlusPlus.ID)
- .setDisplayStack(GregtechItemList.Controller_Sparge_Tower.get(1)).setShiftY(6).setHeight(135)
- .setMaxRecipesPerPage(1).build());
+ new HandlerInfo.Builder("gtpp.recipe.lftr.sparging", CORE.name, Mods.GTPlusPlus.ID)
+ .setDisplayStack(GregtechItemList.Controller_Sparge_Tower.get(1))
+ .setShiftY(6)
+ .setHeight(135)
+ .setMaxRecipesPerPage(1)
+ .build());
}
@Override
diff --git a/src/main/java/gtPlusPlus/nei/handlers/NeiTextureHandler.java b/src/main/java/gtPlusPlus/nei/handlers/NeiTextureHandler.java
index 2c299e5071..2644ffb4ff 100644
--- a/src/main/java/gtPlusPlus/nei/handlers/NeiTextureHandler.java
+++ b/src/main/java/gtPlusPlus/nei/handlers/NeiTextureHandler.java
@@ -48,16 +48,16 @@ public final class NeiTextureHandler {
public final double height;
public static final ResourceLocation TEXTURE = new ResourceLocation(
- GTPlusPlus.ID + ":textures/gui/nei/widgets.png");
+ GTPlusPlus.ID + ":textures/gui/nei/widgets.png");
public NeiTextureHandler(int x, int y, int width, int height) {
this(
- width,
- height,
- (float) (0.00390625D * (double) x),
- (float) (0.00390625D * (double) (x + width)),
- (float) (0.00390625D * (double) y),
- (float) (0.00390625D * (double) (y + height)));
+ width,
+ height,
+ (float) (0.00390625D * (double) x),
+ (float) (0.00390625D * (double) (x + width)),
+ (float) (0.00390625D * (double) y),
+ (float) (0.00390625D * (double) (y + height)));
}
public NeiTextureHandler(double width, double height, double minU, double maxU, double minV, double maxV) {
@@ -74,7 +74,7 @@ public final class NeiTextureHandler {
}
public void renderIcon(double x, double y, double width, double height, double zLevel, boolean doDraw,
- boolean flipY) {
+ boolean flipY) {
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
Tessellator tessellator = Tessellator.instance;
if (doDraw) {
diff --git a/src/main/java/gtPlusPlus/plugin/agrichem/BioRecipes.java b/src/main/java/gtPlusPlus/plugin/agrichem/BioRecipes.java
index 515c4ca8b8..a4bbd6e03a 100644
--- a/src/main/java/gtPlusPlus/plugin/agrichem/BioRecipes.java
+++ b/src/main/java/gtPlusPlus/plugin/agrichem/BioRecipes.java
@@ -135,43 +135,65 @@ public class BioRecipes {
// 5.08 Salt Water Solution ;)
if (!FluidUtils.doesFluidExist("saltwater")) {
mSalineWater = FluidUtils
- .generateFluidNoPrefix("saltwater", "Salt Water", 200, new short[] { 10, 30, 220, 100 });
+ .generateFluidNoPrefix("saltwater", "Salt Water", 200, new short[] { 10, 30, 220, 100 });
} else {
Materials aSaltWater = MaterialUtils.getMaterial("saltwater");
if (aSaltWater != null) {
FluidStack aWaterStack = aSaltWater.getFluid(1);
if (aWaterStack != null) {
- mSalineWater = aSaltWater.getFluid(1).getFluid();
+ mSalineWater = aSaltWater.getFluid(1)
+ .getFluid();
}
}
if (mSalineWater == null) {
- mSalineWater = FluidUtils.getWildcardFluidStack("saltwater", 1).getFluid();
+ mSalineWater = FluidUtils.getWildcardFluidStack("saltwater", 1)
+ .getFluid();
}
if (ItemUtils.getItemStackOfAmountFromOreDictNoBroken("cellSaltWater", 1) == null) {
new BaseItemComponent("saltwater", "Salt Water", new short[] { 10, 30, 220 });
}
}
- mDistilledWater = FluidUtils.getDistilledWater(1).getFluid();
- mThermalWater = FluidUtils.getFluidStack("ic2hotwater", 1).getFluid();
- mAir = FluidUtils.getFluidStack("air", 1).getFluid();
- mSulfuricWasteWater = FluidUtils.getFluidStack("sulfuricapatite", 1).getFluid();
- mAmmonia = MISC_MATERIALS.AMMONIA.getFluidStack(1).getFluid();
- mEthylene = FluidUtils.getFluidStack("ethylene", 1).getFluid();
- mEthanol = FluidUtils.getFluidStack("bioethanol", 1).getFluid();
- mDilutedSulfuricAcid = FluidUtils.getFluidStack("dilutedsulfuricacid", 1).getFluid();
- mSulfuricAcid = FluidUtils.getFluidStack("sulfuricacid", 1).getFluid();
- mFormaldehyde = FluidUtils.getFluidStack("fluid.formaldehyde", 1).getFluid();
- mMethane = FluidUtils.getFluidStack("methane", 1).getFluid();
- mBenzene = FluidUtils.getFluidStack("benzene", 1).getFluid();
- mEthylbenzene = FluidUtils.getFluidStack("fluid.ethylbenzene", 1).getFluid();
- mStyrene = FluidUtils.getFluidStack("styrene", 1).getFluid();
- mMethanol = FluidUtils.getFluidStack("methanol", 1).getFluid();
- mLiquidPlastic = FluidUtils.getWildcardFluidStack("plastic", 1).getFluid();
- mCarbonDioxide = MISC_MATERIALS.CARBON_DIOXIDE.getFluidStack(1).getFluid();
- mCarbonMonoxide = MISC_MATERIALS.CARBON_MONOXIDE.getFluidStack(1).getFluid();
- mChlorine = FluidUtils.getFluidStack("chlorine", 1).getFluid();
- mHydrogen = FluidUtils.getFluidStack("hydrogen", 1).getFluid();
+ mDistilledWater = FluidUtils.getDistilledWater(1)
+ .getFluid();
+ mThermalWater = FluidUtils.getFluidStack("ic2hotwater", 1)
+ .getFluid();
+ mAir = FluidUtils.getFluidStack("air", 1)
+ .getFluid();
+ mSulfuricWasteWater = FluidUtils.getFluidStack("sulfuricapatite", 1)
+ .getFluid();
+ mAmmonia = MISC_MATERIALS.AMMONIA.getFluidStack(1)
+ .getFluid();
+ mEthylene = FluidUtils.getFluidStack("ethylene", 1)
+ .getFluid();
+ mEthanol = FluidUtils.getFluidStack("bioethanol", 1)
+ .getFluid();
+ mDilutedSulfuricAcid = FluidUtils.getFluidStack("dilutedsulfuricacid", 1)
+ .getFluid();
+ mSulfuricAcid = FluidUtils.getFluidStack("sulfuricacid", 1)
+ .getFluid();
+ mFormaldehyde = FluidUtils.getFluidStack("fluid.formaldehyde", 1)
+ .getFluid();
+ mMethane = FluidUtils.getFluidStack("methane", 1)
+ .getFluid();
+ mBenzene = FluidUtils.getFluidStack("benzene", 1)
+ .getFluid();
+ mEthylbenzene = FluidUtils.getFluidStack("fluid.ethylbenzene", 1)
+ .getFluid();
+ mStyrene = FluidUtils.getFluidStack("styrene", 1)
+ .getFluid();
+ mMethanol = FluidUtils.getFluidStack("methanol", 1)
+ .getFluid();
+ mLiquidPlastic = FluidUtils.getWildcardFluidStack("plastic", 1)
+ .getFluid();
+ mCarbonDioxide = MISC_MATERIALS.CARBON_DIOXIDE.getFluidStack(1)
+ .getFluid();
+ mCarbonMonoxide = MISC_MATERIALS.CARBON_MONOXIDE.getFluidStack(1)
+ .getFluid();
+ mChlorine = FluidUtils.getFluidStack("chlorine", 1)
+ .getFluid();
+ mHydrogen = FluidUtils.getFluidStack("hydrogen", 1)
+ .getFluid();
mAceticAcid = AgrichemFluids.mAceticAcid;
mPropionicAcid = AgrichemFluids.mPropionicAcid;
mUrea = AgrichemFluids.mUrea;
@@ -227,229 +249,285 @@ public class BioRecipes {
ItemUtils.registerFuel(ItemUtils.getSimpleStack(AgriculturalChem.mWoodBrick, 1), 4800);
// Combustion Fuels
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getItemStackOfAmountFromOreDict("cellButanol", 1))
- .metadata(FUEL_VALUE, 400).metadata(FUEL_TYPE, 0).duration(0).eut(0).addTo(GT_RecipeConstants.Fuel);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getItemStackOfAmountFromOreDict("cellButanol", 1))
+ .metadata(FUEL_VALUE, 400)
+ .metadata(FUEL_TYPE, 0)
+ .duration(0)
+ .eut(0)
+ .addTo(GT_RecipeConstants.Fuel);
}
private static void recipeGreenAlgae() {
// Compost
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getSimpleStack(AgriculturalChem.mGreenAlgaeBiosmass, 4))
- .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mCompost, 1)).duration(20 * SECONDS).eut(2)
- .addTo(maceratorRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getSimpleStack(AgriculturalChem.mGreenAlgaeBiosmass, 4))
+ .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mCompost, 1))
+ .duration(20 * SECONDS)
+ .eut(2)
+ .addTo(maceratorRecipes);
// Turn into Cellulose
GT_Values.RA.stdBuilder()
- .itemInputs(
- getGreenAlgaeRecipeChip(),
- ItemUtils.getSimpleStack(AgriculturalChem.mGreenAlgaeBiosmass, 10))
- .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mCelluloseFiber, 5))
- .duration(7 * SECONDS + 10 * TICKS).eut(16).addTo(assemblerRecipes);
+ .itemInputs(getGreenAlgaeRecipeChip(), ItemUtils.getSimpleStack(AgriculturalChem.mGreenAlgaeBiosmass, 10))
+ .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mCelluloseFiber, 5))
+ .duration(7 * SECONDS + 10 * TICKS)
+ .eut(16)
+ .addTo(assemblerRecipes);
}
private static void recipeBrownAlgae() {
// Compost
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getSimpleStack(AgriculturalChem.mBrownAlgaeBiosmass, 2))
- .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mCompost, 1)).duration(20 * SECONDS).eut(2)
- .addTo(maceratorRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getSimpleStack(AgriculturalChem.mBrownAlgaeBiosmass, 2))
+ .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mCompost, 1))
+ .duration(20 * SECONDS)
+ .eut(2)
+ .addTo(maceratorRecipes);
// Alginic acid
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getSimpleStack(AgriculturalChem.mBrownAlgaeBiosmass, 10))
- .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mAlginicAcid, 2)).duration(2 * SECONDS)
- .eut(TierEU.RECIPE_LV).addTo(extractorRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getSimpleStack(AgriculturalChem.mBrownAlgaeBiosmass, 10))
+ .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mAlginicAcid, 2))
+ .duration(2 * SECONDS)
+ .eut(TierEU.RECIPE_LV)
+ .addTo(extractorRecipes);
// Lithium Chloride
GT_Values.RA.stdBuilder()
- .itemInputs(
- getBrownAlgaeRecipeChip(),
- ItemUtils.getSimpleStack(AgriculturalChem.mBrownAlgaeBiosmass, 20))
- .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mLithiumChloride, 5)).duration(6 * SECONDS)
- .eut(TierEU.RECIPE_MV).metadata(COIL_HEAT, 1200).addTo(blastFurnaceRecipes);
+ .itemInputs(getBrownAlgaeRecipeChip(), ItemUtils.getSimpleStack(AgriculturalChem.mBrownAlgaeBiosmass, 20))
+ .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mLithiumChloride, 5))
+ .duration(6 * SECONDS)
+ .eut(TierEU.RECIPE_MV)
+ .metadata(COIL_HEAT, 1200)
+ .addTo(blastFurnaceRecipes);
// Sodium Carbonate
GT_Values.RA.stdBuilder()
- .itemInputs(
- getBrownAlgaeRecipeChip(),
- ItemUtils.getSimpleStack(AgriculturalChem.mBrownAlgaeBiosmass, 40))
- .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mSodiumCarbonate, 20))
- .fluidInputs(FluidUtils.getDistilledWater(2000)).duration(30 * SECONDS).eut(TierEU.RECIPE_LV)
- .addTo(UniversalChemical);
+ .itemInputs(getBrownAlgaeRecipeChip(), ItemUtils.getSimpleStack(AgriculturalChem.mBrownAlgaeBiosmass, 40))
+ .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mSodiumCarbonate, 20))
+ .fluidInputs(FluidUtils.getDistilledWater(2000))
+ .duration(30 * SECONDS)
+ .eut(TierEU.RECIPE_LV)
+ .addTo(UniversalChemical);
}
private static void recipeGoldenBrownAlgae() {
// Compost
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getSimpleStack(AgriculturalChem.mGoldenBrownAlgaeBiosmass, 1))
- .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mCompost, 1)).duration(20 * SECONDS).eut(2)
- .addTo(maceratorRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getSimpleStack(AgriculturalChem.mGoldenBrownAlgaeBiosmass, 1))
+ .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mCompost, 1))
+ .duration(20 * SECONDS)
+ .eut(2)
+ .addTo(maceratorRecipes);
// Turn into Cellulose
GT_Values.RA.stdBuilder()
- .itemInputs(
- getGoldenBrownAlgaeRecipeChip(),
- ItemUtils.getSimpleStack(AgriculturalChem.mGoldenBrownAlgaeBiosmass, 10))
- .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mGoldenBrownCelluloseFiber, 5))
- .duration(7 * SECONDS + 10 * TICKS).eut(TierEU.RECIPE_MV).addTo(assemblerRecipes);
+ .itemInputs(
+ getGoldenBrownAlgaeRecipeChip(),
+ ItemUtils.getSimpleStack(AgriculturalChem.mGoldenBrownAlgaeBiosmass, 10))
+ .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mGoldenBrownCelluloseFiber, 5))
+ .duration(7 * SECONDS + 10 * TICKS)
+ .eut(TierEU.RECIPE_MV)
+ .addTo(assemblerRecipes);
}
private static void recipeRedAlgae() {
// Compost
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getSimpleStack(AgriculturalChem.mRedAlgaeBiosmass, 1))
- .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mCompost, 2)).duration(20 * SECONDS).eut(2)
- .addTo(maceratorRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getSimpleStack(AgriculturalChem.mRedAlgaeBiosmass, 1))
+ .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mCompost, 2))
+ .duration(20 * SECONDS)
+ .eut(2)
+ .addTo(maceratorRecipes);
// Turn into Cellulose
GT_Values.RA.stdBuilder()
- .itemInputs(getRedAlgaeRecipeChip(), ItemUtils.getSimpleStack(AgriculturalChem.mRedAlgaeBiosmass, 10))
- .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mRedCelluloseFiber, 5))
- .duration(7 * SECONDS + 10 * TICKS).eut(TierEU.RECIPE_HV / 2).addTo(assemblerRecipes);
+ .itemInputs(getRedAlgaeRecipeChip(), ItemUtils.getSimpleStack(AgriculturalChem.mRedAlgaeBiosmass, 10))
+ .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mRedCelluloseFiber, 5))
+ .duration(7 * SECONDS + 10 * TICKS)
+ .eut(TierEU.RECIPE_HV / 2)
+ .addTo(assemblerRecipes);
}
private static void recipeCelluloseFibre() {
GT_Values.RA.stdBuilder()
- .itemInputs(
- ItemUtils.getSimpleStack(AgriculturalChem.mCelluloseFiber, 8),
- ItemUtils.getSimpleStack(AgriculturalChem.mAlginicAcid, 2))
- .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mCellulosePulp, 10)).duration(10 * SECONDS)
- .eut(16).addTo(UniversalChemical);
+ .itemInputs(
+ ItemUtils.getSimpleStack(AgriculturalChem.mCelluloseFiber, 8),
+ ItemUtils.getSimpleStack(AgriculturalChem.mAlginicAcid, 2))
+ .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mCellulosePulp, 10))
+ .duration(10 * SECONDS)
+ .eut(16)
+ .addTo(UniversalChemical);
// Craft into Wood Pellets
GT_Values.RA.stdBuilder()
- .itemInputs(getBioChip(2), ItemUtils.getSimpleStack(AgriculturalChem.mCelluloseFiber, 12))
- .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mWoodPellet, 24))
- .duration(2 * SECONDS + 8 * TICKS).eut(8).addTo(assemblerRecipes);
+ .itemInputs(getBioChip(2), ItemUtils.getSimpleStack(AgriculturalChem.mCelluloseFiber, 12))
+ .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mWoodPellet, 24))
+ .duration(2 * SECONDS + 8 * TICKS)
+ .eut(8)
+ .addTo(assemblerRecipes);
// Methanol Extraction
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getSimpleStack(AgriculturalChem.mCelluloseFiber, 12))
- .fluidOutputs(Materials.Methanol.getFluid(1000L)).duration(7 * SECONDS + 10 * TICKS)
- .eut(TierEU.RECIPE_LV).addTo(fluidExtractionRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getSimpleStack(AgriculturalChem.mCelluloseFiber, 12))
+ .fluidOutputs(Materials.Methanol.getFluid(1000L))
+ .duration(7 * SECONDS + 10 * TICKS)
+ .eut(TierEU.RECIPE_LV)
+ .addTo(fluidExtractionRecipes);
// Compost
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getSimpleStack(AgriculturalChem.mCelluloseFiber, 3))
- .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mCompost, 1)).duration(20 * SECONDS).eut(2)
- .addTo(maceratorRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getSimpleStack(AgriculturalChem.mCelluloseFiber, 3))
+ .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mCompost, 1))
+ .duration(20 * SECONDS)
+ .eut(2)
+ .addTo(maceratorRecipes);
// Plastic
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getBioChip(16), ItemUtils.getSimpleStack(AgriculturalChem.mCellulosePulp, 4), },
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mAceticAcid, 500),
- FluidUtils.getFluidStack(BioRecipes.mPropionicAcid, 500), },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mLiquidPlastic, (1000)), },
- 10 * 20,
- 240,
- 2);
+ new ItemStack[] { getBioChip(16), ItemUtils.getSimpleStack(AgriculturalChem.mCellulosePulp, 4), },
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mAceticAcid, 500),
+ FluidUtils.getFluidStack(BioRecipes.mPropionicAcid, 500), },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mLiquidPlastic, (1000)), },
+ 10 * 20,
+ 240,
+ 2);
}
private static void recipeWoodPellets() {
// Shapeless Recipe
RecipeUtils.addShapelessGregtechRecipe(
- new ItemStack[] { ItemUtils.getSimpleStack(AgriculturalChem.mWoodPellet, 1),
- ItemUtils.getSimpleStack(AgriculturalChem.mWoodPellet, 1),
- ItemUtils.getSimpleStack(AgriculturalChem.mWoodPellet, 1),
- ItemUtils.getSimpleStack(AgriculturalChem.mWoodPellet, 1),
- ItemUtils.getSimpleStack(AgriculturalChem.mWoodPellet, 1),
- ItemUtils.getSimpleStack(AgriculturalChem.mWoodPellet, 1),
- ItemUtils.getSimpleStack(AgriculturalChem.mWoodPellet, 1),
- ItemUtils.getSimpleStack(AgriculturalChem.mWoodPellet, 1) },
- ItemUtils.getSimpleStack(AgriculturalChem.mWoodBrick, 2));
+ new ItemStack[] { ItemUtils.getSimpleStack(AgriculturalChem.mWoodPellet, 1),
+ ItemUtils.getSimpleStack(AgriculturalChem.mWoodPellet, 1),
+ ItemUtils.getSimpleStack(AgriculturalChem.mWoodPellet, 1),
+ ItemUtils.getSimpleStack(AgriculturalChem.mWoodPellet, 1),
+ ItemUtils.getSimpleStack(AgriculturalChem.mWoodPellet, 1),
+ ItemUtils.getSimpleStack(AgriculturalChem.mWoodPellet, 1),
+ ItemUtils.getSimpleStack(AgriculturalChem.mWoodPellet, 1),
+ ItemUtils.getSimpleStack(AgriculturalChem.mWoodPellet, 1) },
+ ItemUtils.getSimpleStack(AgriculturalChem.mWoodBrick, 2));
// Extruder Recipe
GT_Values.RA.stdBuilder()
- .itemInputs(
- ItemUtils.getSimpleStack(AgriculturalChem.mCelluloseFiber, 12),
- ItemUtils.getSimpleStack(AgriculturalChem.mPelletMold, 0))
- .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mWoodPellet, 3)).duration(10 * SECONDS).eut(16)
- .addTo(extruderRecipes);
+ .itemInputs(
+ ItemUtils.getSimpleStack(AgriculturalChem.mCelluloseFiber, 12),
+ ItemUtils.getSimpleStack(AgriculturalChem.mPelletMold, 0))
+ .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mWoodPellet, 3))
+ .duration(10 * SECONDS)
+ .eut(16)
+ .addTo(extruderRecipes);
// Assembly Recipe
- GT_Values.RA.stdBuilder().itemInputs(getBioChip(2), ItemUtils.getSimpleStack(AgriculturalChem.mWoodPellet, 8))
- .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mWoodBrick, 2)).duration(5 * SECONDS).eut(8)
- .addTo(assemblerRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(getBioChip(2), ItemUtils.getSimpleStack(AgriculturalChem.mWoodPellet, 8))
+ .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mWoodBrick, 2))
+ .duration(5 * SECONDS)
+ .eut(8)
+ .addTo(assemblerRecipes);
// CO2
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getSimpleStack(AgriculturalChem.mWoodPellet, 1))
- .fluidOutputs(FluidUtils.getFluidStack(mCarbonDioxide, 70)).duration(10 * SECONDS).eut(TierEU.RECIPE_LV)
- .addTo(fluidExtractionRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getSimpleStack(AgriculturalChem.mWoodPellet, 1))
+ .fluidOutputs(FluidUtils.getFluidStack(mCarbonDioxide, 70))
+ .duration(10 * SECONDS)
+ .eut(TierEU.RECIPE_LV)
+ .addTo(fluidExtractionRecipes);
// Add Charcoal Recipe
if (Railcraft.isModLoaded()) {
RailcraftUtils.addCokeOvenRecipe(
- ItemUtils.getSimpleStack(AgriculturalChem.mWoodPellet, 2),
- true,
- true,
- ItemUtils.getItemStackOfAmountFromOreDict("gemCharcoal", 3),
- GT_Values.NF,
- 1200);
- }
- CORE.RA.addCokeOvenRecipe(
ItemUtils.getSimpleStack(AgriculturalChem.mWoodPellet, 2),
- getBioChip(3),
- null,
- GT_Values.NF,
+ true,
+ true,
ItemUtils.getItemStackOfAmountFromOreDict("gemCharcoal", 3),
- 120,
- 16);
+ GT_Values.NF,
+ 1200);
+ }
+ CORE.RA.addCokeOvenRecipe(
+ ItemUtils.getSimpleStack(AgriculturalChem.mWoodPellet, 2),
+ getBioChip(3),
+ null,
+ GT_Values.NF,
+ ItemUtils.getItemStackOfAmountFromOreDict("gemCharcoal", 3),
+ 120,
+ 16);
}
private static void recipeWoodBricks() {
// Assembler Recipe
GT_Values.RA.stdBuilder()
- .itemInputs(getBioChip(3), ItemUtils.getOrePrefixStack(OrePrefixes.dust, Materials.Wood, 50))
- .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mWoodBrick, 1))
- .duration(1 * MINUTES + 40 * SECONDS).eut(16).addTo(assemblerRecipes);
+ .itemInputs(getBioChip(3), ItemUtils.getOrePrefixStack(OrePrefixes.dust, Materials.Wood, 50))
+ .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mWoodBrick, 1))
+ .duration(1 * MINUTES + 40 * SECONDS)
+ .eut(16)
+ .addTo(assemblerRecipes);
}
private static void recipeCellulosePulp() {
// Assembler Recipe
GT_Values.RA.stdBuilder()
- .itemInputs(getBioChip(2), ItemUtils.getSimpleStack(AgriculturalChem.mCellulosePulp, 4))
- .itemOutputs(ItemUtils.getSimpleStack(Items.paper, 4)).duration(2 * SECONDS).eut(16)
- .addTo(assemblerRecipes);
+ .itemInputs(getBioChip(2), ItemUtils.getSimpleStack(AgriculturalChem.mCellulosePulp, 4))
+ .itemOutputs(ItemUtils.getSimpleStack(Items.paper, 4))
+ .duration(2 * SECONDS)
+ .eut(16)
+ .addTo(assemblerRecipes);
}
private static void recipeCatalystCarrier() {
// Assembler Recipe
GT_Values.RA.stdBuilder()
- .itemInputs(
- getBioChip(20),
- GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 8L),
- GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Copper, 4L),
- GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Tin, 6L))
- .itemOutputs(CI.getEmptyCatalyst(1)).duration(5 * MINUTES).eut(16).addTo(assemblerRecipes);
+ .itemInputs(
+ getBioChip(20),
+ GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 8L),
+ GT_OreDictUnificator.get(OrePrefixes.wireFine, Materials.Copper, 4L),
+ GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Tin, 6L))
+ .itemOutputs(CI.getEmptyCatalyst(1))
+ .duration(5 * MINUTES)
+ .eut(16)
+ .addTo(assemblerRecipes);
}
private static void recipeAluminiumSilverCatalyst() {
// Assembler Recipe
GT_Values.RA.stdBuilder()
- .itemInputs(
- getBioChip(4),
- CI.getEmptyCatalyst(10),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminium, 4L),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silver, 4L))
- .itemOutputs(CI.getGreenCatalyst(10)).duration(20 * SECONDS).eut(TierEU.RECIPE_LV)
- .addTo(assemblerRecipes);
+ .itemInputs(
+ getBioChip(4),
+ CI.getEmptyCatalyst(10),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminium, 4L),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Silver, 4L))
+ .itemOutputs(CI.getGreenCatalyst(10))
+ .duration(20 * SECONDS)
+ .eut(TierEU.RECIPE_LV)
+ .addTo(assemblerRecipes);
}
private static void recipeAceticAcid() {
// CH4O + CO = C2H4O2
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getGreenCatalyst(0) },
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mMethanol, 700),
- FluidUtils.getFluidStack(BioRecipes.mCarbonMonoxide, 700), },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mAceticAcid, 700), },
- 120 * 20,
- 60,
- 1);
+ new ItemStack[] { CI.getGreenCatalyst(0) },
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mMethanol, 700),
+ FluidUtils.getFluidStack(BioRecipes.mCarbonMonoxide, 700), },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mAceticAcid, 700), },
+ 120 * 20,
+ 60,
+ 1);
- GT_Values.RA.stdBuilder().itemInputs(CI.getNumberedBioCircuit(14))
- .fluidInputs(FluidUtils.getFluidStack(mFermentationBase, 1000))
- .fluidOutputs(FluidUtils.getFluidStack(mAceticAcid, 1000))
- .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mCompost, 2)).duration(60 * SECONDS).eut(16)
- .noOptimize().addTo(chemicalDehydratorRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(CI.getNumberedBioCircuit(14))
+ .fluidInputs(FluidUtils.getFluidStack(mFermentationBase, 1000))
+ .fluidOutputs(FluidUtils.getFluidStack(mAceticAcid, 1000))
+ .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mCompost, 2))
+ .duration(60 * SECONDS)
+ .eut(16)
+ .noOptimize()
+ .addTo(chemicalDehydratorRecipes);
}
public static final HashSet<GT_ItemStack> mFruits = new HashSet<>();
@@ -513,31 +591,53 @@ public class BioRecipes {
}
if (ItemUtils.checkForInvalidItems(a)) {
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getBioChip(2), ItemUtils.getSimpleStack(a, 10) },
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mDistilledWater, 1000), },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mFermentationBase, 1000), },
- 30 * 20,
- 2,
- 0);
+ new ItemStack[] { getBioChip(2), ItemUtils.getSimpleStack(a, 10) },
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mDistilledWater, 1000), },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mFermentationBase, 1000), },
+ 30 * 20,
+ 2,
+ 0);
}
}
for (ItemStack a : aSeeds) {
if (ItemUtils.checkForInvalidItems(a)) {
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getBioChip(3), ItemUtils.getSimpleStack(a, 20) },
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mDistilledWater, 1000), },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mFermentationBase, 1000), },
- 30 * 20,
- 2,
- 0);
+ new ItemStack[] { getBioChip(3), ItemUtils.getSimpleStack(a, 20) },
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mDistilledWater, 1000), },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mFermentationBase, 1000), },
+ 30 * 20,
+ 2,
+ 0);
}
}
// Sugar Cane
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getBioChip(4), ItemUtils.getSimpleStack(Items.reeds, 32) },
+ new ItemStack[] { getBioChip(4), ItemUtils.getSimpleStack(Items.reeds, 32) },
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mDistilledWater, 1000), },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mFermentationBase, 1000), },
+ 30 * 20,
+ 30,
+ 0);
+
+ CORE.RA.addChemicalPlantRecipe(
+ new ItemStack[] { getBioChip(5), ItemUtils.getSimpleStack(Items.reeds, 32),
+ ItemUtils.getSimpleStack(ModItems.dustCalciumCarbonate, 2) },
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mThermalWater, 2000), },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mFermentationBase, 2000), },
+ 10 * 20,
+ 30,
+ 0);
+
+ // Sugar Beet
+ if (OreDictUtils.containsValidEntries("cropSugarbeet")) {
+
+ CORE.RA.addChemicalPlantRecipe(
+ new ItemStack[] { getBioChip(4), ItemUtils.getItemStackOfAmountFromOreDict("cropSugarbeet", 4), },
new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mDistilledWater, 1000), },
new ItemStack[] {},
new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mFermentationBase, 1000), },
@@ -545,108 +645,99 @@ public class BioRecipes {
30,
0);
- CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getBioChip(5), ItemUtils.getSimpleStack(Items.reeds, 32),
- ItemUtils.getSimpleStack(ModItems.dustCalciumCarbonate, 2) },
+ CORE.RA.addChemicalPlantRecipe(
+ new ItemStack[] { getBioChip(5), ItemUtils.getItemStackOfAmountFromOreDict("cropSugarbeet", 4),
+ ItemUtils.getSimpleStack(ModItems.dustCalciumCarbonate, 2) },
new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mThermalWater, 2000), },
new ItemStack[] {},
new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mFermentationBase, 2000), },
10 * 20,
30,
0);
-
- // Sugar Beet
- if (OreDictUtils.containsValidEntries("cropSugarbeet")) {
-
- CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getBioChip(4), ItemUtils.getItemStackOfAmountFromOreDict("cropSugarbeet", 4), },
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mDistilledWater, 1000), },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mFermentationBase, 1000), },
- 30 * 20,
- 30,
- 0);
-
- CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getBioChip(5), ItemUtils.getItemStackOfAmountFromOreDict("cropSugarbeet", 4),
- ItemUtils.getSimpleStack(ModItems.dustCalciumCarbonate, 2) },
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mThermalWater, 2000), },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mFermentationBase, 2000), },
- 10 * 20,
- 30,
- 0);
}
// Produce Acetone, Butanol and Ethanol
GT_Values.RA.stdBuilder()
- .itemInputs(
- getBioChip(5),
- ItemUtils.getSimpleStack(AgriculturalChem.mGoldenBrownCelluloseFiber, 6),
- ItemUtils.getSimpleStack(AgriculturalChem.mRedCelluloseFiber, 16))
- .fluidInputs(FluidUtils.getFluidStack(BioRecipes.mFermentationBase, 48000))
- .fluidOutputs(
- FluidUtils.getFluidStack(BioRecipes.mButanol, 18000),
- FluidUtils.getFluidStack(BioRecipes.mAcetone, 9000),
- FluidUtils.getFluidStack(BioRecipes.mEthanol, 3000))
- .duration(100 * SECONDS).eut(32).specialValue(1).noOptimize().addTo(chemicalPlantRecipes);
+ .itemInputs(
+ getBioChip(5),
+ ItemUtils.getSimpleStack(AgriculturalChem.mGoldenBrownCelluloseFiber, 6),
+ ItemUtils.getSimpleStack(AgriculturalChem.mRedCelluloseFiber, 16))
+ .fluidInputs(FluidUtils.getFluidStack(BioRecipes.mFermentationBase, 48000))
+ .fluidOutputs(
+ FluidUtils.getFluidStack(BioRecipes.mButanol, 18000),
+ FluidUtils.getFluidStack(BioRecipes.mAcetone, 9000),
+ FluidUtils.getFluidStack(BioRecipes.mEthanol, 3000))
+ .duration(100 * SECONDS)
+ .eut(32)
+ .specialValue(1)
+ .noOptimize()
+ .addTo(chemicalPlantRecipes);
}
private static void recipePropionicAcid() {
// C2H4 + CO + H2O = C3H6O2
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getGreenCatalyst(0) },
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mEthylene, 1000),
- FluidUtils.getFluidStack(BioRecipes.mCarbonMonoxide, 1000),
- FluidUtils.getFluidStack(BioRecipes.mDistilledWater, 1000), },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mPropionicAcid, 1000), },
- 10 * 20,
- 60,
- 1);
+ new ItemStack[] { CI.getGreenCatalyst(0) },
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mEthylene, 1000),
+ FluidUtils.getFluidStack(BioRecipes.mCarbonMonoxide, 1000),
+ FluidUtils.getFluidStack(BioRecipes.mDistilledWater, 1000), },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mPropionicAcid, 1000), },
+ 10 * 20,
+ 60,
+ 1);
}
private static void recipeEthanol() {
- GT_Values.RA.stdBuilder().itemInputs(BioRecipes.getBioChip(2))
- .fluidInputs(FluidUtils.getFluidStack(BioRecipes.mFermentationBase, 1000))
- .fluidOutputs(FluidUtils.getFluidStack(BioRecipes.mEthanol, 100)).duration(20 * SECONDS)
- .eut(TierEU.RECIPE_MV / 2).addTo(distilleryRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(BioRecipes.getBioChip(2))
+ .fluidInputs(FluidUtils.getFluidStack(BioRecipes.mFermentationBase, 1000))
+ .fluidOutputs(FluidUtils.getFluidStack(BioRecipes.mEthanol, 100))
+ .duration(20 * SECONDS)
+ .eut(TierEU.RECIPE_MV / 2)
+ .addTo(distilleryRecipes);
}
private static void recipeGoldenBrownCelluloseFiber() {
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getSimpleStack(AgriculturalChem.mGoldenBrownCelluloseFiber, 5))
- .fluidOutputs(Materials.Ammonia.getGas(500)).duration(15 * SECONDS).eut(TierEU.RECIPE_MV)
- .addTo(fluidExtractionRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getSimpleStack(AgriculturalChem.mGoldenBrownCelluloseFiber, 5))
+ .fluidOutputs(Materials.Ammonia.getGas(500))
+ .duration(15 * SECONDS)
+ .eut(TierEU.RECIPE_MV)
+ .addTo(fluidExtractionRecipes);
}
private static void recipeRedCelluloseFiber() {
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getSimpleStack(AgriculturalChem.mRedCelluloseFiber, 3))
- .itemOutputs(ItemUtils.getSimpleStack(ModItems.dustCalciumCarbonate, 5)).duration(5 * SECONDS)
- .eut(TierEU.RECIPE_HV / 2).addTo(extractorRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getSimpleStack(AgriculturalChem.mRedCelluloseFiber, 3))
+ .itemOutputs(ItemUtils.getSimpleStack(ModItems.dustCalciumCarbonate, 5))
+ .duration(5 * SECONDS)
+ .eut(TierEU.RECIPE_HV / 2)
+ .addTo(extractorRecipes);
}
private static void recipeSodiumHydroxide() {
// NaCl·H2O = NaOH + Cl + H
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getBioChip(4) },
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mSalineWater, 1000), },
- new ItemStack[] { ItemUtils.getSimpleStack(AgriculturalChem.mSodiumHydroxide, 3) },
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mChlorine, 1000),
- FluidUtils.getFluidStack(BioRecipes.mHydrogen, 1000), },
- 300 * 20,
- 120,
- 1);
+ new ItemStack[] { getBioChip(4) },
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mSalineWater, 1000), },
+ new ItemStack[] { ItemUtils.getSimpleStack(AgriculturalChem.mSodiumHydroxide, 3) },
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mChlorine, 1000),
+ FluidUtils.getFluidStack(BioRecipes.mHydrogen, 1000), },
+ 300 * 20,
+ 120,
+ 1);
// Na + H2O = NaOH + H
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getBioChip(5), ItemUtils.getItemStackOfAmountFromOreDict("dustSodium", 5) },
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mDistilledWater, 5000), },
- new ItemStack[] { ItemUtils.getSimpleStack(AgriculturalChem.mSodiumHydroxide, 15) },
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mHydrogen, 5000), },
- 60 * 20,
- 60,
- 1);
+ new ItemStack[] { getBioChip(5), ItemUtils.getItemStackOfAmountFromOreDict("dustSodium", 5) },
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mDistilledWater, 5000), },
+ new ItemStack[] { ItemUtils.getSimpleStack(AgriculturalChem.mSodiumHydroxide, 15) },
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mHydrogen, 5000), },
+ 60 * 20,
+ 60,
+ 1);
}
private static void recipeSodiumCarbonate() {
@@ -654,33 +745,37 @@ public class BioRecipes {
if (OreDictUtils.containsValidEntries("fuelCoke")) {
// Na2CO3 + Al2O3 =C= 2NaAlO2 + CO2
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getBioChip(18), ItemUtils.getItemStackOfAmountFromOreDict("fuelCoke", 1),
- ItemUtils.getSimpleStack(AgriculturalChem.mSodiumCarbonate, 6),
- ItemUtils.getSimpleStack(AgriculturalChem.mAluminiumPellet, 5) },
- new FluidStack[] {},
- new ItemStack[] { ItemUtils.getSimpleStack(AgriculturalChem.mSodiumAluminate, 8) },
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mCarbonDioxide, 1000), },
- 120 * 20,
- 120,
- 1);
- }
-
- CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getBioChip(18), ItemUtils.getItemStackOfAmountFromOreDict("dustCoal", 2),
- ItemUtils.getSimpleStack(AgriculturalChem.mSodiumCarbonate, 6),
- ItemUtils.getSimpleStack(AgriculturalChem.mAluminiumPellet, 5) },
+ new ItemStack[] { getBioChip(18), ItemUtils.getItemStackOfAmountFromOreDict("fuelCoke", 1),
+ ItemUtils.getSimpleStack(AgriculturalChem.mSodiumCarbonate, 6),
+ ItemUtils.getSimpleStack(AgriculturalChem.mAluminiumPellet, 5) },
new FluidStack[] {},
new ItemStack[] { ItemUtils.getSimpleStack(AgriculturalChem.mSodiumAluminate, 8) },
new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mCarbonDioxide, 1000), },
- 180 * 20,
+ 120 * 20,
120,
1);
+ }
+
+ CORE.RA.addChemicalPlantRecipe(
+ new ItemStack[] { getBioChip(18), ItemUtils.getItemStackOfAmountFromOreDict("dustCoal", 2),
+ ItemUtils.getSimpleStack(AgriculturalChem.mSodiumCarbonate, 6),
+ ItemUtils.getSimpleStack(AgriculturalChem.mAluminiumPellet, 5) },
+ new FluidStack[] {},
+ new ItemStack[] { ItemUtils.getSimpleStack(AgriculturalChem.mSodiumAluminate, 8) },
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mCarbonDioxide, 1000), },
+ 180 * 20,
+ 120,
+ 1);
}
private static void recipePelletMold() {
GregtechItemList.Pellet_Mold.set(ItemUtils.getSimpleStack(AgriculturalChem.mPelletMold, 1));
- GT_Values.RA.stdBuilder().itemInputs(ALLOY.TUMBAGA.getBlock(1)).itemOutputs(GregtechItemList.Pellet_Mold.get(1))
- .duration(7 * MINUTES + 30 * SECONDS).eut(TierEU.RECIPE_MV / 4 * 3).addTo(latheRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ALLOY.TUMBAGA.getBlock(1))
+ .itemOutputs(GregtechItemList.Pellet_Mold.get(1))
+ .duration(7 * MINUTES + 30 * SECONDS)
+ .eut(TierEU.RECIPE_MV / 4 * 3)
+ .addTo(latheRecipes);
}
private static void recipeAluminiumPellet() {
@@ -745,167 +840,177 @@ public class BioRecipes {
for (String aOreName : aOreNames) {
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedBioCircuit(14),
- ItemUtils.getSimpleStack(aOreCache.get(aOreName), aOreData2.get(aOreName)) },
- new FluidStack[] { FluidUtils.getSteam(2000 * aOreData2.get(aOreName)) },
- new ItemStack[] { ItemUtils.getSimpleStack(
- AgriculturalChem.mCleanAluminiumMix,
- (int) (Math.ceil(aOreData3.get(aOreName) * 1.4))) },
- new FluidStack[] { FluidUtils.getFluidStack(
- AgriculturalChem.RedMud,
- 100 * (int) (Math.ceil(aOreData3.get(aOreName) * 1.4))) },
- 20 * 60,
- aOreData1.get(aOreName),
- aOreName.equals("Bauxite") ? 2 : 1);
+ new ItemStack[] { CI.getNumberedBioCircuit(14),
+ ItemUtils.getSimpleStack(aOreCache.get(aOreName), aOreData2.get(aOreName)) },
+ new FluidStack[] { FluidUtils.getSteam(2000 * aOreData2.get(aOreName)) },
+ new ItemStack[] { ItemUtils.getSimpleStack(
+ AgriculturalChem.mCleanAluminiumMix,
+ (int) (Math.ceil(aOreData3.get(aOreName) * 1.4))) },
+ new FluidStack[] { FluidUtils
+ .getFluidStack(AgriculturalChem.RedMud, 100 * (int) (Math.ceil(aOreData3.get(aOreName) * 1.4))) },
+ 20 * 60,
+ aOreData1.get(aOreName),
+ aOreName.equals("Bauxite") ? 2 : 1);
}
GT_Values.RA.stdBuilder()
- .itemInputs(
- ItemUtils.getSimpleStack(AgriculturalChem.mCleanAluminiumMix, 3),
- ItemUtils.getSimpleStack(AgriculturalChem.mPelletMold, 0))
- .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mAluminiumPellet, 4)).duration(30 * SECONDS)
- .eut(TierEU.RECIPE_MV / 2).addTo(extruderRecipes);
+ .itemInputs(
+ ItemUtils.getSimpleStack(AgriculturalChem.mCleanAluminiumMix, 3),
+ ItemUtils.getSimpleStack(AgriculturalChem.mPelletMold, 0))
+ .itemOutputs(ItemUtils.getSimpleStack(AgriculturalChem.mAluminiumPellet, 4))
+ .duration(30 * SECONDS)
+ .eut(TierEU.RECIPE_MV / 2)
+ .addTo(extruderRecipes);
}
private static void recipeAlumina() {
// 2NaAlO2 + 2NaOH + 2CO2 = Al2O3 + 2Na2CO3 + H2O
GT_Values.RA.stdBuilder()
- .itemInputs(
- ItemUtils.getSimpleStack(AgriculturalChem.mSodiumAluminate, 8),
- ItemUtils.getSimpleStack(AgriculturalChem.mSodiumHydroxide, 6))
- .itemOutputs(
- ItemUtils.getSimpleStack(AgriculturalChem.mAlumina, 5),
- ItemUtils.getSimpleStack(AgriculturalChem.mSodiumCarbonate, 12))
- .fluidInputs(Materials.CarbonDioxide.getGas(2000L)).duration(40 * SECONDS).eut(TierEU.RECIPE_MV)
- .metadata(COIL_HEAT, 1200).addTo(blastFurnaceRecipes);
+ .itemInputs(
+ ItemUtils.getSimpleStack(AgriculturalChem.mSodiumAluminate, 8),
+ ItemUtils.getSimpleStack(AgriculturalChem.mSodiumHydroxide, 6))
+ .itemOutputs(
+ ItemUtils.getSimpleStack(AgriculturalChem.mAlumina, 5),
+ ItemUtils.getSimpleStack(AgriculturalChem.mSodiumCarbonate, 12))
+ .fluidInputs(Materials.CarbonDioxide.getGas(2000L))
+ .duration(40 * SECONDS)
+ .eut(TierEU.RECIPE_MV)
+ .metadata(COIL_HEAT, 1200)
+ .addTo(blastFurnaceRecipes);
}
private static void recipeAluminium() {
// 2Al2O3 + 3C = 4Al + 3CO2
GT_Values.RA.stdBuilder()
- .itemInputs(
- ItemUtils.getSimpleStack(AgriculturalChem.mAlumina, 10),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 3L))
- .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminium, 4L))
- .fluidOutputs(Materials.CarbonDioxide.getGas(3000L)).duration(2 * MINUTES).eut(TierEU.RECIPE_MV)
- .metadata(COIL_HEAT, 1600).addTo(blastFurnaceRecipes);
+ .itemInputs(
+ ItemUtils.getSimpleStack(AgriculturalChem.mAlumina, 10),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 3L))
+ .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminium, 4L))
+ .fluidOutputs(Materials.CarbonDioxide.getGas(3000L))
+ .duration(2 * MINUTES)
+ .eut(TierEU.RECIPE_MV)
+ .metadata(COIL_HEAT, 1600)
+ .addTo(blastFurnaceRecipes);
}
private static void recipeLithiumChloride() {
GT_Values.RA.stdBuilder()
- .itemInputs(
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RockSalt, 8),
- ItemUtils.getSimpleStack(AgriculturalChem.mLithiumChloride, 10))
- .itemOutputs(
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lithium, 2),
- GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Lithium, 3),
- GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Lithium, 3),
- GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Lithium, 5),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Potassium, 2),
- GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Potassium, 5))
- .outputChances(7500, 8000, 8500, 9000, 7500, 8500)
- .fluidInputs(FluidUtils.getFluidStack(BioRecipes.mAir, 4000))
- .fluidOutputs(FluidUtils.getFluidStack(BioRecipes.mChlorine, 500)).duration(1 * MINUTES + 30 * SECONDS)
- .eut(TierEU.RECIPE_MV / 2).addTo(multiblockChemicalReactorRecipes);
+ .itemInputs(
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.RockSalt, 8),
+ ItemUtils.getSimpleStack(AgriculturalChem.mLithiumChloride, 10))
+ .itemOutputs(
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lithium, 2),
+ GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Lithium, 3),
+ GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Lithium, 3),
+ GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Lithium, 5),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Potassium, 2),
+ GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Potassium, 5))
+ .outputChances(7500, 8000, 8500, 9000, 7500, 8500)
+ .fluidInputs(FluidUtils.getFluidStack(BioRecipes.mAir, 4000))
+ .fluidOutputs(FluidUtils.getFluidStack(BioRecipes.mChlorine, 500))
+ .duration(1 * MINUTES + 30 * SECONDS)
+ .eut(TierEU.RECIPE_MV / 2)
+ .addTo(multiblockChemicalReactorRecipes);
if (OreDictUtils.containsValidEntries("dustPotash")) {
GT_Values.RA.stdBuilder()
- .itemInputs(
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Potash, 10),
- ItemUtils.getSimpleStack(AgriculturalChem.mLithiumChloride, 16))
- .itemOutputs(
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lithium, 3),
- GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Lithium, 5),
- GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Lithium, 5),
- GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Lithium, 7),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 2),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 2))
- .outputChances(7500, 8000, 8500, 9000, 9000, 9000)
- .fluidInputs(FluidUtils.getFluidStack(BioRecipes.mThermalWater, 2000))
- .fluidOutputs(FluidUtils.getFluidStack(BioRecipes.mChlorine, 250)).duration(1 * MINUTES)
- .eut(TierEU.RECIPE_MV).addTo(multiblockChemicalReactorRecipes);
+ .itemInputs(
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Potash, 10),
+ ItemUtils.getSimpleStack(AgriculturalChem.mLithiumChloride, 16))
+ .itemOutputs(
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lithium, 3),
+ GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Lithium, 5),
+ GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Lithium, 5),
+ GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Lithium, 7),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 2),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 2))
+ .outputChances(7500, 8000, 8500, 9000, 9000, 9000)
+ .fluidInputs(FluidUtils.getFluidStack(BioRecipes.mThermalWater, 2000))
+ .fluidOutputs(FluidUtils.getFluidStack(BioRecipes.mChlorine, 250))
+ .duration(1 * MINUTES)
+ .eut(TierEU.RECIPE_MV)
+ .addTo(multiblockChemicalReactorRecipes);
}
}
private static void recipeSulfuricAcid() {
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getBioChip(7), ItemUtils.getSimpleStack(AgriculturalChem.mGreenAlgaeBiosmass, 10),
- ItemUtils.getSimpleStack(AgriculturalChem.mBrownAlgaeBiosmass, 6) },
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mDistilledWater, 5000), },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mSulfuricAcid, 5000), },
- 50 * 20,
- 60,
- 1);
+ new ItemStack[] { getBioChip(7), ItemUtils.getSimpleStack(AgriculturalChem.mGreenAlgaeBiosmass, 10),
+ ItemUtils.getSimpleStack(AgriculturalChem.mBrownAlgaeBiosmass, 6) },
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mDistilledWater, 5000), },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mSulfuricAcid, 5000), },
+ 50 * 20,
+ 60,
+ 1);
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getBioChip(7),
- ItemUtils.getSimpleStack(AgriculturalChem.mGoldenBrownCelluloseFiber, 2),
- ItemUtils.getSimpleStack(AgriculturalChem.mBrownAlgaeBiosmass, 10) },
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mDistilledWater, 5000), },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mSulfuricAcid, 5000), },
- 6 * 20,
- 180,
- 3);
+ new ItemStack[] { getBioChip(7), ItemUtils.getSimpleStack(AgriculturalChem.mGoldenBrownCelluloseFiber, 2),
+ ItemUtils.getSimpleStack(AgriculturalChem.mBrownAlgaeBiosmass, 10) },
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mDistilledWater, 5000), },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mSulfuricAcid, 5000), },
+ 6 * 20,
+ 180,
+ 3);
}
private static void recipeUrea() {
// 2NH3 + CO2 = CH4N2O + H2O
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getBioChip(9), },
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mAmmonia, 600),
- FluidUtils.getFluidStack(BioRecipes.mCarbonDioxide, 300), },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mUrea, 300),
- FluidUtils.getFluidStack(BioRecipes.mDistilledWater, 300), },
- 5 * 20,
- 30,
- 1);
+ new ItemStack[] { getBioChip(9), },
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mAmmonia, 600),
+ FluidUtils.getFluidStack(BioRecipes.mCarbonDioxide, 300), },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mUrea, 300),
+ FluidUtils.getFluidStack(BioRecipes.mDistilledWater, 300), },
+ 5 * 20,
+ 30,
+ 1);
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getBioChip(9), },
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mUrea, 200),
- FluidUtils.getFluidStack(BioRecipes.mFormaldehyde, 200), },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mLiquidResin, 200) },
- 5 * 20,
- 30,
- 1);
+ new ItemStack[] { getBioChip(9), },
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mUrea, 200),
+ FluidUtils.getFluidStack(BioRecipes.mFormaldehyde, 200), },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mLiquidResin, 200) },
+ 5 * 20,
+ 30,
+ 1);
}
private static void recipeRawBioResin() {
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getBioChip(3), ItemUtils.getSimpleStack(AgriculturalChem.mGreenAlgaeBiosmass, 5),
- ItemUtils.getSimpleStack(Blocks.dirt, 1) },
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mDistilledWater, 100), },
- new ItemStack[] { ItemUtils.getSimpleStack(AgriculturalChem.mRawBioResin, 1), },
- new FluidStack[] {},
- 1 * 20,
- 30,
- 1);
+ new ItemStack[] { getBioChip(3), ItemUtils.getSimpleStack(AgriculturalChem.mGreenAlgaeBiosmass, 5),
+ ItemUtils.getSimpleStack(Blocks.dirt, 1) },
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mDistilledWater, 100), },
+ new ItemStack[] { ItemUtils.getSimpleStack(AgriculturalChem.mRawBioResin, 1), },
+ new FluidStack[] {},
+ 1 * 20,
+ 30,
+ 1);
}
private static void recipeLiquidResin() {
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getBioChip(3), ItemUtils.getSimpleStack(AgriculturalChem.mRawBioResin, 1) },
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mEthanol, 200), },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mLiquidResin, 500), },
- 5 * 20,
- 30,
- 1);
+ new ItemStack[] { getBioChip(3), ItemUtils.getSimpleStack(AgriculturalChem.mRawBioResin, 1) },
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mEthanol, 200), },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mLiquidResin, 500), },
+ 5 * 20,
+ 30,
+ 1);
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getBioChip(3), ItemUtils.getSimpleStack(AgriculturalChem.mCellulosePulp, 8) },
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mLiquidResin, 144), },
- new ItemStack[] { ItemUtils.getSimpleStack(Ic2Items.resin, 32) },
- new FluidStack[] {},
- 60 * 20,
- 30,
- 1);
+ new ItemStack[] { getBioChip(3), ItemUtils.getSimpleStack(AgriculturalChem.mCellulosePulp, 8) },
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mLiquidResin, 144), },
+ new ItemStack[] { ItemUtils.getSimpleStack(Ic2Items.resin, 32) },
+ new FluidStack[] {},
+ 60 * 20,
+ 30,
+ 1);
}
private static void recipeCompost() {
@@ -913,237 +1018,235 @@ public class BioRecipes {
if (Forestry.isModLoaded()) {
aFert = ItemUtils.getSimpleStack(AgriculturalChem.aFertForestry, 32);
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getBioChip(11),
- ItemUtils.getSimpleStack(AgriculturalChem.mGreenAlgaeBiosmass, 16),
- ItemUtils.getSimpleStack(AgriculturalChem.mCompost, 8) },
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mUrea, 200), },
- new ItemStack[] { aFert },
- new FluidStack[] {},
- 30 * 20,
- 60,
- 1);
- }
-
- aFert = ItemUtils.getSimpleStack(AgriculturalChem.aFertIC2, 32);
- CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getBioChip(12), ItemUtils.getSimpleStack(AgriculturalChem.mGreenAlgaeBiosmass, 16),
- ItemUtils.getSimpleStack(AgriculturalChem.mCompost, 8) },
+ new ItemStack[] { getBioChip(11), ItemUtils.getSimpleStack(AgriculturalChem.mGreenAlgaeBiosmass, 16),
+ ItemUtils.getSimpleStack(AgriculturalChem.mCompost, 8) },
new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mUrea, 200), },
new ItemStack[] { aFert },
new FluidStack[] {},
30 * 20,
60,
1);
+ }
+
+ aFert = ItemUtils.getSimpleStack(AgriculturalChem.aFertIC2, 32);
+ CORE.RA.addChemicalPlantRecipe(
+ new ItemStack[] { getBioChip(12), ItemUtils.getSimpleStack(AgriculturalChem.mGreenAlgaeBiosmass, 16),
+ ItemUtils.getSimpleStack(AgriculturalChem.mCompost, 8) },
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mUrea, 200), },
+ new ItemStack[] { aFert },
+ new FluidStack[] {},
+ 30 * 20,
+ 60,
+ 1);
}
private static void recipeMethane() {
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getBioChip(12), ItemUtils.getSimpleStack(AgriculturalChem.mAlgaeBiosmass, 10) },
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mDistilledWater, 500), },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mMethane, 500), },
- 5 * 20,
- 64,
- 1);
+ new ItemStack[] { getBioChip(12), ItemUtils.getSimpleStack(AgriculturalChem.mAlgaeBiosmass, 10) },
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mDistilledWater, 500), },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mMethane, 500), },
+ 5 * 20,
+ 64,
+ 1);
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getBioChip(13), ItemUtils.getSimpleStack(AgriculturalChem.mCelluloseFiber, 8),
- ItemUtils.getSimpleStack(AgriculturalChem.mGoldenBrownCelluloseFiber, 6),
- ItemUtils.getSimpleStack(AgriculturalChem.mRedCelluloseFiber, 4) },
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mMethane, 2000), },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mEthylene, 2000), },
- 10 * 20,
- 60,
- 1);
+ new ItemStack[] { getBioChip(13), ItemUtils.getSimpleStack(AgriculturalChem.mCelluloseFiber, 8),
+ ItemUtils.getSimpleStack(AgriculturalChem.mGoldenBrownCelluloseFiber, 6),
+ ItemUtils.getSimpleStack(AgriculturalChem.mRedCelluloseFiber, 4) },
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mMethane, 2000), },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mEthylene, 2000), },
+ 10 * 20,
+ 60,
+ 1);
}
private static void recipeBenzene() {
// 6CH4 = C6H6 + 18H
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getBioChip(19), CI.getGreenCatalyst(0), },
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mMethane, 6000), },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mBenzene, 1000),
- Materials.Hydrogen.getGas(18000) },
- 8 * 20,
- 120,
- 2);
+ new ItemStack[] { getBioChip(19), CI.getGreenCatalyst(0), },
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mMethane, 6000), },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mBenzene, 1000), Materials.Hydrogen.getGas(18000) },
+ 8 * 20,
+ 120,
+ 2);
}
private static void recipeStyrene() {
// C8H10 = C8H8 + 2H
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { getBioChip(20), CI.getGreenCatalyst(0), },
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mEthylbenzene, 100), },
- new ItemStack[] {},
- new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mStyrene, 100), Materials.Hydrogen.getGas(200) },
- 16 * 20,
- 480,
- 2);
+ new ItemStack[] { getBioChip(20), CI.getGreenCatalyst(0), },
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mEthylbenzene, 100), },
+ new ItemStack[] {},
+ new FluidStack[] { FluidUtils.getFluidStack(BioRecipes.mStyrene, 100), Materials.Hydrogen.getGas(200) },
+ 16 * 20,
+ 480,
+ 2);
}
private static void recipeBioChip() {
GT_ModHandler.addShapelessCraftingRecipe(
- GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 0L),
- 0,
- new Object[] { OrePrefixes.circuit.get(Materials.Primitive) });
+ GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 0L),
+ 0,
+ new Object[] { OrePrefixes.circuit.get(Materials.Primitive) });
long bits = 0;
addCraftingRecipe(
- GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 1L, new Object[0]),
- bits,
- new Object[] { "d ", " P ", " ", 'P',
- GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 1L, new Object[0]),
+ bits,
+ new Object[] { "d ", " P ", " ", 'P',
+ GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
addCraftingRecipe(
- GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 2L, new Object[0]),
- bits,
- new Object[] { " d ", " P ", " ", 'P',
- GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 2L, new Object[0]),
+ bits,
+ new Object[] { " d ", " P ", " ", 'P',
+ GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
addCraftingRecipe(
- GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 3L, new Object[0]),
- bits,
- new Object[] { " d", " P ", " ", 'P',
- GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 3L, new Object[0]),
+ bits,
+ new Object[] { " d", " P ", " ", 'P',
+ GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
addCraftingRecipe(
- GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 4L, new Object[0]),
- bits,
- new Object[] { " ", " Pd", " ", 'P',
- GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 4L, new Object[0]),
+ bits,
+ new Object[] { " ", " Pd", " ", 'P',
+ GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
addCraftingRecipe(
- GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 5L, new Object[0]),
- bits,
- new Object[] { " ", " P ", " d", 'P',
- GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 5L, new Object[0]),
+ bits,
+ new Object[] { " ", " P ", " d", 'P',
+ GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
addCraftingRecipe(
- GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 6L, new Object[0]),
- bits,
- new Object[] { " ", " P ", " d ", 'P',
- GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 6L, new Object[0]),
+ bits,
+ new Object[] { " ", " P ", " d ", 'P',
+ GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
addCraftingRecipe(
- GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 7L, new Object[0]),
- bits,
- new Object[] { " ", " P ", "d ", 'P',
- GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 7L, new Object[0]),
+ bits,
+ new Object[] { " ", " P ", "d ", 'P',
+ GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
addCraftingRecipe(
- GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 8L, new Object[0]),
- bits,
- new Object[] { " ", "dP ", " ", 'P',
- GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 8L, new Object[0]),
+ bits,
+ new Object[] { " ", "dP ", " ", 'P',
+ GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
addCraftingRecipe(
- GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 9L, new Object[0]),
- bits,
- new Object[] { "P d", " ", " ", 'P',
- GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 9L, new Object[0]),
+ bits,
+ new Object[] { "P d", " ", " ", 'P',
+ GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
addCraftingRecipe(
- GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 10L, new Object[0]),
- bits,
- new Object[] { "P ", " d", " ", 'P',
- GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 10L, new Object[0]),
+ bits,
+ new Object[] { "P ", " d", " ", 'P',
+ GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
addCraftingRecipe(
- GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 11L, new Object[0]),
- bits,
- new Object[] { "P ", " ", " d", 'P',
- GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 11L, new Object[0]),
+ bits,
+ new Object[] { "P ", " ", " d", 'P',
+ GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
addCraftingRecipe(
- GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 12L, new Object[0]),
- bits,
- new Object[] { "P ", " ", " d ", 'P',
- GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 12L, new Object[0]),
+ bits,
+ new Object[] { "P ", " ", " d ", 'P',
+ GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
addCraftingRecipe(
- GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 13L, new Object[0]),
- bits,
- new Object[] { " P", " ", " d", 'P',
- GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 13L, new Object[0]),
+ bits,
+ new Object[] { " P", " ", " d", 'P',
+ GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
addCraftingRecipe(
- GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 14L, new Object[0]),
- bits,
- new Object[] { " P", " ", " d ", 'P',
- GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 14L, new Object[0]),
+ bits,
+ new Object[] { " P", " ", " d ", 'P',
+ GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
addCraftingRecipe(
- GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 15L, new Object[0]),
- bits,
- new Object[] { " P", " ", "d ", 'P',
- GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 15L, new Object[0]),
+ bits,
+ new Object[] { " P", " ", "d ", 'P',
+ GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
addCraftingRecipe(
- GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 16L, new Object[0]),
- bits,
- new Object[] { " P", "d ", " ", 'P',
- GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 16L, new Object[0]),
+ bits,
+ new Object[] { " P", "d ", " ", 'P',
+ GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
addCraftingRecipe(
- GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 17L, new Object[0]),
- bits,
- new Object[] { " ", " ", "d P", 'P',
- GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 17L, new Object[0]),
+ bits,
+ new Object[] { " ", " ", "d P", 'P',
+ GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
addCraftingRecipe(
- GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 18L, new Object[0]),
- bits,
- new Object[] { " ", "d ", " P", 'P',
- GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 18L, new Object[0]),
+ bits,
+ new Object[] { " ", "d ", " P", 'P',
+ GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
addCraftingRecipe(
- GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 19L, new Object[0]),
- bits,
- new Object[] { "d ", " ", " P", 'P',
- GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 19L, new Object[0]),
+ bits,
+ new Object[] { "d ", " ", " P", 'P',
+ GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
addCraftingRecipe(
- GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 20L, new Object[0]),
- bits,
- new Object[] { " d ", " ", " P", 'P',
- GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 20L, new Object[0]),
+ bits,
+ new Object[] { " d ", " ", " P", 'P',
+ GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
addCraftingRecipe(
- GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 21L, new Object[0]),
- bits,
- new Object[] { "d ", " ", "P ", 'P',
- GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 21L, new Object[0]),
+ bits,
+ new Object[] { "d ", " ", "P ", 'P',
+ GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
addCraftingRecipe(
- GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 22L, new Object[0]),
- bits,
- new Object[] { " d ", " ", "P ", 'P',
- GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 22L, new Object[0]),
+ bits,
+ new Object[] { " d ", " ", "P ", 'P',
+ GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
addCraftingRecipe(
- GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 23L, new Object[0]),
- bits,
- new Object[] { " d", " ", "P ", 'P',
- GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 23L, new Object[0]),
+ bits,
+ new Object[] { " d", " ", "P ", 'P',
+ GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
addCraftingRecipe(
- GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 24L, new Object[0]),
- bits,
- new Object[] { " ", " d", "P ", 'P',
- GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
+ GregtechItemList.Circuit_BioRecipeSelector.getWithDamage(1L, 24L, new Object[0]),
+ bits,
+ new Object[] { " ", " d", "P ", 'P',
+ GregtechItemList.Circuit_BioRecipeSelector.getWildcard(1L, new Object[0]) });
}
public static boolean addCraftingRecipe(ItemStack aResult, long aBitMask, Object[] aRecipe) {
Method mAddRecipe = ReflectionUtils.getMethod(
- GT_ModHandler.class,
- "addCraftingRecipe",
- new Class[] { ItemStack.class, Enchantment[].class, int[].class, boolean.class, boolean.class,
- boolean.class, boolean.class, boolean.class, boolean.class, boolean.class, boolean.class,
- boolean.class, boolean.class, boolean.class, boolean.class, boolean.class, Object[].class });
+ GT_ModHandler.class,
+ "addCraftingRecipe",
+ new Class[] { ItemStack.class, Enchantment[].class, int[].class, boolean.class, boolean.class,
+ boolean.class, boolean.class, boolean.class, boolean.class, boolean.class, boolean.class, boolean.class,
+ boolean.class, boolean.class, boolean.class, boolean.class, Object[].class });
boolean didInvoke = false;
if (mAddRecipe != null) {
try {
didInvoke = (boolean) mAddRecipe.invoke(
- null,
- aResult,
- new Enchantment[] {},
- new int[] {},
- false,
- false,
- false,
- false,
- false,
- false,
- false,
- false,
- false,
- false,
- false,
- false,
- true,
- aRecipe);
+ null,
+ aResult,
+ new Enchantment[] {},
+ new int[] {},
+ false,
+ false,
+ false,
+ false,
+ false,
+ false,
+ false,
+ false,
+ false,
+ false,
+ false,
+ false,
+ true,
+ aRecipe);
} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
diff --git a/src/main/java/gtPlusPlus/plugin/agrichem/block/AgrichemFluids.java b/src/main/java/gtPlusPlus/plugin/agrichem/block/AgrichemFluids.java
index 8a0ae95061..bd72654f0a 100644
--- a/src/main/java/gtPlusPlus/plugin/agrichem/block/AgrichemFluids.java
+++ b/src/main/java/gtPlusPlus/plugin/agrichem/block/AgrichemFluids.java
@@ -25,27 +25,27 @@ public class AgrichemFluids {
public static void init() {
if (!FluidRegistry.isFluidRegistered("aceticacid")) {
mAceticAcid = FluidUtils
- .generateFluidNoPrefix("aceticacid", "Acetic Acid", 200, new short[] { 97, 168, 96, 100 }, true);
+ .generateFluidNoPrefix("aceticacid", "Acetic Acid", 200, new short[] { 97, 168, 96, 100 }, true);
} else {
mAceticAcid = FluidRegistry.getFluid("aceticacid");
}
if (!FluidRegistry.isFluidRegistered("propionicacid")) {
mPropionicAcid = FluidUtils.generateFluidNoPrefix(
- "propionicacid",
- "Propionic Acid",
- 200,
- new short[] { 198, 209, 148, 100 },
- true);
+ "propionicacid",
+ "Propionic Acid",
+ 200,
+ new short[] { 198, 209, 148, 100 },
+ true);
} else {
mPropionicAcid = FluidRegistry.getFluid("propionicacid");
}
if (!FluidRegistry.isFluidRegistered("fermentation.base")) {
mFermentationBase = FluidUtils.generateFluidNoPrefix(
- "fermentation.base",
- "Fermentation Base",
- 200,
- new short[] { 107, 100, 63, 100 },
- true);
+ "fermentation.base",
+ "Fermentation Base",
+ 200,
+ new short[] { 107, 100, 63, 100 },
+ true);
} else {
mFermentationBase = FluidRegistry.getFluid("fermentation.base");
}
@@ -56,20 +56,20 @@ public class AgrichemFluids {
}
if (!FluidRegistry.isFluidRegistered("liquidresin")) {
mLiquidResin = FluidUtils
- .generateFluidNoPrefix("liquidresin", "Liquid Resin", 200, new short[] { 59, 58, 56, 100 }, true);
+ .generateFluidNoPrefix("liquidresin", "Liquid Resin", 200, new short[] { 59, 58, 56, 100 }, true);
} else {
mLiquidResin = FluidRegistry.getFluid("liquidresin");
}
if (!FluidRegistry.isFluidRegistered("acetone")) {
mAcetone = FluidUtils
- .generateFluidNoPrefix("acetone", "Acetone", 200, new short[] { 59, 58, 56, 100 }, true);
+ .generateFluidNoPrefix("acetone", "Acetone", 200, new short[] { 59, 58, 56, 100 }, true);
} else {
mAcetone = FluidRegistry.getFluid("acetone");
}
if (!FluidRegistry.isFluidRegistered("butanol")) {
mButanol = FluidUtils
- .generateFluidNoPrefix("butanol", "Butanol", 200, new short[] { 159, 58, 56, 100 }, true);
+ .generateFluidNoPrefix("butanol", "Butanol", 200, new short[] { 159, 58, 56, 100 }, true);
} else {
mButanol = FluidRegistry.getFluid("butanol");
}
diff --git a/src/main/java/gtPlusPlus/plugin/agrichem/item/algae/ItemAgrichemBase.java b/src/main/java/gtPlusPlus/plugin/agrichem/item/algae/ItemAgrichemBase.java
index 399be59ff1..8a6d189898 100644
--- a/src/main/java/gtPlusPlus/plugin/agrichem/item/algae/ItemAgrichemBase.java
+++ b/src/main/java/gtPlusPlus/plugin/agrichem/item/algae/ItemAgrichemBase.java
@@ -60,7 +60,7 @@ public class ItemAgrichemBase extends Item {
@Override
public void onUpdate(ItemStack p_77663_1_, World p_77663_2_, Entity p_77663_3_, int p_77663_4_,
- boolean p_77663_5_) {
+ boolean p_77663_5_) {
super.onUpdate(p_77663_1_, p_77663_2_, p_77663_3_, p_77663_4_, p_77663_5_);
}
@@ -87,7 +87,7 @@ public class ItemAgrichemBase extends Item {
return mShowSodiumHydroxide;
} else {
if (OreDictUtils.containsValidEntries("dustSodiumHydroxide_GT5U")
- || OreDictUtils.containsValidEntries("dustSodiumHydroxide")) {
+ || OreDictUtils.containsValidEntries("dustSodiumHydroxide")) {
List<ItemStack> aTest = OreDictionary.getOres("dustSodiumHydroxide", false);
if (aTest.isEmpty()) {
aTest = OreDictionary.getOres("dustSodiumHydroxide_GT5U", false);
@@ -162,7 +162,7 @@ public class ItemAgrichemBase extends Item {
return true;
}
} catch (InstantiationException | IllegalAccessException | IllegalArgumentException
- | InvocationTargetException e) {}
+ | InvocationTargetException e) {}
}
}
return false;
@@ -196,7 +196,8 @@ public class ItemAgrichemBase extends Item {
@Override
public double getDurabilityForDisplay(ItemStack aStack) {
if (ItemUtils.isCatalyst(aStack)) {
- if (aStack.getTagCompound() == null || aStack.getTagCompound().hasNoTags()) {
+ if (aStack.getTagCompound() == null || aStack.getTagCompound()
+ .hasNoTags()) {
createCatalystNBT(aStack);
}
double currentDamage = getCatalystDamage(aStack);
diff --git a/src/main/java/gtPlusPlus/plugin/agrichem/item/algae/ItemAlgaeBase.java b/src/main/java/gtPlusPlus/plugin/agrichem/item/algae/ItemAlgaeBase.java
index b0d926a853..f34348a3af 100644
--- a/src/main/java/gtPlusPlus/plugin/agrichem/item/algae/ItemAlgaeBase.java
+++ b/src/main/java/gtPlusPlus/plugin/agrichem/item/algae/ItemAlgaeBase.java
@@ -49,8 +49,9 @@ public class ItemAlgaeBase extends Item implements IAlgalItem {
@Override
public void onUpdate(ItemStack p_77663_1_, World p_77663_2_, Entity p_77663_3_, int p_77663_4_,
- boolean p_77663_5_) {
- if (!p_77663_1_.hasTagCompound() || p_77663_1_.getTagCompound().hasNoTags()) {
+ boolean p_77663_5_) {
+ if (!p_77663_1_.hasTagCompound() || p_77663_1_.getTagCompound()
+ .hasNoTags()) {
p_77663_1_ = initNBT(p_77663_1_);
}
super.onUpdate(p_77663_1_, p_77663_2_, p_77663_3_, p_77663_4_, p_77663_5_);
@@ -66,7 +67,8 @@ public class ItemAlgaeBase extends Item implements IAlgalItem {
int aDam = aStack.getItemDamage();
try {
aList.add(AlgaeDefinition.getByIndex(aDam).mSimpleName);
- if (!aStack.hasTagCompound() || aStack.getTagCompound().hasNoTags()) {
+ if (!aStack.hasTagCompound() || aStack.getTagCompound()
+ .hasNoTags()) {
aStack = initNBT(aStack);
} else {
NBTTagCompound aNBT = aStack.getTagCompound();
@@ -184,7 +186,8 @@ public class ItemAlgaeBase extends Item implements IAlgalItem {
@Override
public AlgaeGeneticData getSpeciesData(ItemStack aStack) {
NBTTagCompound aTag;
- if (!aStack.hasTagCompound() || aStack.getTagCompound().hasNoTags()) {
+ if (!aStack.hasTagCompound() || aStack.getTagCompound()
+ .hasNoTags()) {
aTag = new NBTTagCompound();
AlgaeGeneticData aGenes;
if (aStack.getItemDamage() < 3 || aStack.getItemDamage() > 5) {
@@ -201,16 +204,16 @@ public class ItemAlgaeBase extends Item implements IAlgalItem {
aSpeed = (float) (aDam == 3 ? 1f : aDam == 4 ? 1.5f : 2f);
aGenes = new AlgaeGeneticData(
- true,
- true,
- AlgaeDefinition.getByIndex(aDam).mSaltWater,
- AlgaeDefinition.getByIndex(aDam).mFreshWater,
- aTemp,
- aFert,
- aSpeed,
- aLifespan,
- 0,
- new AutoMap<>());
+ true,
+ true,
+ AlgaeDefinition.getByIndex(aDam).mSaltWater,
+ AlgaeDefinition.getByIndex(aDam).mFreshWater,
+ aTemp,
+ aFert,
+ aSpeed,
+ aLifespan,
+ 0,
+ new AutoMap<>());
aTag = aGenes.writeToNBT();
}
} else {
diff --git a/src/main/java/gtPlusPlus/plugin/agrichem/logic/AlgaeGeneticData.java b/src/main/java/gtPlusPlus/plugin/agrichem/logic/AlgaeGeneticData.java
index c11877b672..6b7b72aa71 100644
--- a/src/main/java/gtPlusPlus/plugin/agrichem/logic/AlgaeGeneticData.java
+++ b/src/main/java/gtPlusPlus/plugin/agrichem/logic/AlgaeGeneticData.java
@@ -31,8 +31,8 @@ public class AlgaeGeneticData {
}
public AlgaeGeneticData(boolean isDominant, boolean requiresLight, boolean isSalt, boolean isFresh,
- byte aTempTolerance, float aFertility, float aSpeed, byte aLifespan, int aGeneration,
- AutoMap<AlgaeGrowthRequirement> aRequirements) {
+ byte aTempTolerance, float aFertility, float aSpeed, byte aLifespan, int aGeneration,
+ AutoMap<AlgaeGrowthRequirement> aRequirements) {
mIsDominant = isDominant;
mRequiresLight = requiresLight;
mSaltWater = isSalt;
diff --git a/src/main/java/gtPlusPlus/plugin/fixes/vanilla/Core_VanillaFixes.java b/src/main/java/gtPlusPlus/plugin/fixes/vanilla/Core_VanillaFixes.java
index 6d53f973bf..cc181756c0 100644
--- a/src/main/java/gtPlusPlus/plugin/fixes/vanilla/Core_VanillaFixes.java
+++ b/src/main/java/gtPlusPlus/plugin/fixes/vanilla/Core_VanillaFixes.java
@@ -87,14 +87,14 @@ public class Core_VanillaFixes implements IPlugin {
private void registerToOreDict(ItemStack aStack, String aString) {
if (aStack.getItem() == Items.blaze_rod) {
- mInstance.log(
- "Registering " + aStack.getDisplayName() + " to OreDictionary under the tag '" + aString + "'.");
+ mInstance
+ .log("Registering " + aStack.getDisplayName() + " to OreDictionary under the tag '" + aString + "'.");
} else {
mInstance.log(
- "Registering " + aStack.getDisplayName()
- + " to OreDictionary under the tag '"
- + aString
- + "'. (Added to Forge in 1.8.9)");
+ "Registering " + aStack.getDisplayName()
+ + " to OreDictionary under the tag '"
+ + aString
+ + "'. (Added to Forge in 1.8.9)");
}
ItemUtils.addItemToOreDictionary(aStack, aString);
}
diff --git a/src/main/java/gtPlusPlus/plugin/fixes/vanilla/VanillaBedHeightFix.java b/src/main/java/gtPlusPlus/plugin/fixes/vanilla/VanillaBedHeightFix.java
index 2fa92951c7..60ab048ca3 100644
--- a/src/main/java/gtPlusPlus/plugin/fixes/vanilla/VanillaBedHeightFix.java
+++ b/src/main/java/gtPlusPlus/plugin/fixes/vanilla/VanillaBedHeightFix.java
@@ -27,11 +27,11 @@ public class VanillaBedHeightFix implements IBugFix {
m = ReflectionUtils.getMethod(EntityPlayer.class, "func_71018_a", int.class, int.class, int.class);
} else {
m = ReflectionUtils.getMethod(
- net.minecraft.entity.player.EntityPlayer.class,
- "sleepInBedAt",
- int.class,
- int.class,
- int.class);
+ net.minecraft.entity.player.EntityPlayer.class,
+ "sleepInBedAt",
+ int.class,
+ int.class,
+ int.class);
}
if (m != null) {
mSleepInBedAt = m;
@@ -60,16 +60,16 @@ public class VanillaBedHeightFix implements IBugFix {
int correctY = 256 + evt.y;
if (correctY <= 0) {
Logger.WARNING(
- "You're trying to sleep at y=" + evt.y
- + ", which is impossibly low. However, fixed y value is "
- + correctY
- + ", which is still below 0. Falling back to default behavior.");
+ "You're trying to sleep at y=" + evt.y
+ + ", which is impossibly low. However, fixed y value is "
+ + correctY
+ + ", which is still below 0. Falling back to default behavior.");
} else {
Logger.WARNING(
- "You're trying to sleep at y=" + evt.y
- + ". This is probably caused by overflow, stopping original event; retrying with y="
- + correctY
- + ".");
+ "You're trying to sleep at y=" + evt.y
+ + ". This is probably caused by overflow, stopping original event; retrying with y="
+ + correctY
+ + ".");
evt.result = EntityPlayer.EnumStatus.OTHER_PROBLEM;
try {
mSleepInBedAt.invoke(evt.entityPlayer, evt.x, correctY, evt.z);
@@ -79,7 +79,7 @@ public class VanillaBedHeightFix implements IBugFix {
}
} else if (!isFixValid()) {
Logger.WARNING(
- "Method sleepInBedAt was not found in EntityPlayer (wrong MC and/or Forge version?), unable to fix");
+ "Method sleepInBedAt was not found in EntityPlayer (wrong MC and/or Forge version?), unable to fix");
}
}
}
diff --git a/src/main/java/gtPlusPlus/plugin/fixes/vanilla/music/MusicTocker.java b/src/main/java/gtPlusPlus/plugin/fixes/vanilla/music/MusicTocker.java
index ed1d9890d7..c669f93f62 100644
--- a/src/main/java/gtPlusPlus/plugin/fixes/vanilla/music/MusicTocker.java
+++ b/src/main/java/gtPlusPlus/plugin/fixes/vanilla/music/MusicTocker.java
@@ -48,13 +48,15 @@ public class MusicTocker extends MusicTicker implements Runnable {
try {
Object m = f.get(mMinecraft);
if (m != null) {
- if (m instanceof MusicTocker || m.getClass().isAssignableFrom(getClass())) {
+ if (m instanceof MusicTocker || m.getClass()
+ .isAssignableFrom(getClass())) {
mPlugin.log("[BGM] Success.");
return true;
- } else if (m instanceof MusicTicker || m.getClass().isAssignableFrom(MusicTicker.class)) {
- mPlugin.log("[BGM] Found Vanilla MusicTicker, but may be instance of MusicTocker.");
- return true;
- }
+ } else if (m instanceof MusicTicker || m.getClass()
+ .isAssignableFrom(MusicTicker.class)) {
+ mPlugin.log("[BGM] Found Vanilla MusicTicker, but may be instance of MusicTocker.");
+ return true;
+ }
}
} catch (IllegalArgumentException | IllegalAccessException e) {}
@@ -88,25 +90,29 @@ public class MusicTocker extends MusicTicker implements Runnable {
MusicType musictype = this.mMinecraft.func_147109_W();
if (this.mSound != null) {
- if (!musictype.getMusicTickerLocation().equals(this.mSound.getPositionedSoundLocation())) {
- this.mMinecraft.getSoundHandler().stopSound(this.mSound);
+ if (!musictype.getMusicTickerLocation()
+ .equals(this.mSound.getPositionedSoundLocation())) {
+ this.mMinecraft.getSoundHandler()
+ .stopSound(this.mSound);
this.mTimeUntilNextTrack = MathHelper.getRandomIntegerInRange(this.mRandom, 0, getDelay() / 2);
updateInternalNumber();
Logger.INFO("[BGM] Adjusted BGM delay 1");
}
- if (!this.mMinecraft.getSoundHandler().isSoundPlaying(this.mSound)) {
+ if (!this.mMinecraft.getSoundHandler()
+ .isSoundPlaying(this.mSound)) {
this.mSound = null;
updateInternalSound(null);
this.mTimeUntilNextTrack = Math.min(
- MathHelper.getRandomIntegerInRange(this.mRandom, getDelay(), getDelay() * 2),
- this.mTimeUntilNextTrack);
+ MathHelper.getRandomIntegerInRange(this.mRandom, getDelay(), getDelay() * 2),
+ this.mTimeUntilNextTrack);
updateInternalNumber();
Logger.INFO("[BGM] Adjusted BGM delay 2");
}
} else if (this.mSound == null && this.mTimeUntilNextTrack-- <= 0) {
this.mSound = PositionedSoundRecord.func_147673_a(musictype.getMusicTickerLocation());
updateInternalSound(mSound);
- this.mMinecraft.getSoundHandler().playSound(this.mSound);
+ this.mMinecraft.getSoundHandler()
+ .playSound(this.mSound);
this.mTimeUntilNextTrack = getDelay();
updateInternalNumber();
Logger.INFO("[BGM] Adjusted BGM 3");
diff --git a/src/main/java/gtPlusPlus/preloader/Preloader_GT_OreDict.java b/src/main/java/gtPlusPlus/preloader/Preloader_GT_OreDict.java
index f4b152e523..9a350ab5e4 100644
--- a/src/main/java/gtPlusPlus/preloader/Preloader_GT_OreDict.java
+++ b/src/main/java/gtPlusPlus/preloader/Preloader_GT_OreDict.java
@@ -24,7 +24,9 @@ public class Preloader_GT_OreDict {
try {
if (CORE_Preloader.enableOldGTcircuits) {
- if ((bannedItem != null) && ItemUtils.getModId(bannedItem).toLowerCase().equals(GregTech.ID)) {
+ if ((bannedItem != null) && ItemUtils.getModId(bannedItem)
+ .toLowerCase()
+ .equals(GregTech.ID)) {
final int damageValue = bannedItem.getItemDamage() - 32000;
if (bannedItem.getItem() instanceof GT_MetaGenerated_Item_01) { // 700-720
if ((damageValue >= 700) && (damageValue <= 720)) {
@@ -33,16 +35,16 @@ public class Preloader_GT_OreDict {
} else {
if (ReflectionUtils.doesClassExist("gregtech.common.items.GT_MetaGenerated_Item_03")) { // 6/11/12/14/16/20/30-57/69-73/79-96
final Class<?> MetaItem03 = ReflectionUtils
- .getClass("gregtech.common.items.GT_MetaGenerated_Item_03");
+ .getClass("gregtech.common.items.GT_MetaGenerated_Item_03");
if (isInstanceOf(MetaItem03, bannedItem.getItem())) {
if ((damageValue == 6) || (damageValue == 7)
- || (damageValue == 11)
- || (damageValue == 12)
- || (damageValue == 14)
- || (damageValue == 16)
- || (damageValue == 20)
- || (damageValue == 21)
- || (damageValue == 22)) {
+ || (damageValue == 11)
+ || (damageValue == 12)
+ || (damageValue == 14)
+ || (damageValue == 16)
+ || (damageValue == 20)
+ || (damageValue == 21)
+ || (damageValue == 22)) {
return true;
} else if ((damageValue >= 30) && (damageValue <= 57)) {
return true;
@@ -60,29 +62,29 @@ public class Preloader_GT_OreDict {
} catch (final Throwable e) {
if (CORE.ConfigSwitches.showHiddenNEIItems) {
FMLRelaunchLog.log(
- "[GT++ ASM] OreDictTransformer",
- Level.INFO,
- "A mod tried to register an invalid item with the OreDictionary.");
+ "[GT++ ASM] OreDictTransformer",
+ Level.INFO,
+ "A mod tried to register an invalid item with the OreDictionary.");
if (bannedItem != null) {
FMLRelaunchLog.log(
- "[GT++ ASM] OreDictTransformer",
- Level.INFO,
- "Please report this issue to the authors of %s",
- ItemUtils.getModId(bannedItem));
+ "[GT++ ASM] OreDictTransformer",
+ Level.INFO,
+ "Please report this issue to the authors of %s",
+ ItemUtils.getModId(bannedItem));
try {
if (bannedItem.getItemDamage() <= Short.MAX_VALUE - 1) {
FMLRelaunchLog.log(
- "[GT++ ASM] OreDictTransformer",
- Level.INFO,
- "Item was not null, but still invalidly registering: %s",
- bannedItem.getDisplayName() != null ? bannedItem.getDisplayName()
- : "INVALID ITEM FOUND");
+ "[GT++ ASM] OreDictTransformer",
+ Level.INFO,
+ "Item was not null, but still invalidly registering: %s",
+ bannedItem.getDisplayName() != null ? bannedItem.getDisplayName()
+ : "INVALID ITEM FOUND");
} else {
FMLRelaunchLog.log(
- "[GT++ ASM] OreDictTransformer",
- Level.INFO,
- "Item was not null, but still invalidly registering: %s",
- "Found Wildcard item that is being registered too early.");
+ "[GT++ ASM] OreDictTransformer",
+ Level.INFO,
+ "Item was not null, but still invalidly registering: %s",
+ "Found Wildcard item that is being registered too early.");
}
} catch (Exception h) {
h.printStackTrace();
diff --git a/src/main/java/gtPlusPlus/preloader/asm/AsmConfig.java b/src/main/java/gtPlusPlus/preloader/asm/AsmConfig.java
index b11eb66801..b4a49c275c 100644
--- a/src/main/java/gtPlusPlus/preloader/asm/AsmConfig.java
+++ b/src/main/java/gtPlusPlus/preloader/asm/AsmConfig.java
@@ -47,69 +47,80 @@ public class AsmConfig {
// Debug
prop = config.get("debug", "disableAllLogging", true);
prop.comment = "Disables ALL logging from GT++.";
- prop.setLanguageKey("gtpp.disableAllLogging").setRequiresMcRestart(false);
+ prop.setLanguageKey("gtpp.disableAllLogging")
+ .setRequiresMcRestart(false);
disableAllLogging = prop.getBoolean(true);
propOrderDebug.add(prop.getName());
prop = config.get("debug", "debugMode", false);
prop.comment = "Enables all sorts of debug logging. (Don't use unless told to, breaks other things.)";
- prop.setLanguageKey("gtpp.debugMode").setRequiresMcRestart(false);
+ prop.setLanguageKey("gtpp.debugMode")
+ .setRequiresMcRestart(false);
debugMode = prop.getBoolean(false);
propOrderDebug.add(prop.getName());
prop = config.get("debug", "enabledFixEntitySetHealth", false);
prop.comment = "Enable/Disable entity setHealth() fix.";
- prop.setLanguageKey("gtpp.enabledFixEntitySetHealth").setRequiresMcRestart(true);
+ prop.setLanguageKey("gtpp.enabledFixEntitySetHealth")
+ .setRequiresMcRestart(true);
enabledFixEntitySetHealth = prop.getBoolean(false);
propOrderDebug.add(prop.getName());
prop = config.get("debug", "enableGtNbtFix", true);
prop.comment = "Enable/Disable GT NBT Persistency Fix";
- prop.setLanguageKey("gtpp.enableGtNbtFix").setRequiresMcRestart(true);
+ prop.setLanguageKey("gtpp.enableGtNbtFix")
+ .setRequiresMcRestart(true);
enableGtNbtFix = prop.getBoolean(true);
propOrderDebug.add(prop.getName());
prop = config.get("debug", "enableCofhPatch", false);
prop.comment = "Enable/Disable COFH OreDictionaryArbiter Patch (Useful for Development)";
- prop.setLanguageKey("gtpp.enableCofhPatch").setRequiresMcRestart(true);
+ prop.setLanguageKey("gtpp.enableCofhPatch")
+ .setRequiresMcRestart(true);
enableCofhPatch = prop.getBoolean(false);
propOrderDebug.add(prop.getName());
prop = config.get("debug", "enableOreDictPatch", false);
prop.comment = "Enable/Disable Forge OreDictionary Patch (Useful for Development)";
- prop.setLanguageKey("gtpp.enableOreDictPatch").setRequiresMcRestart(true);
+ prop.setLanguageKey("gtpp.enableOreDictPatch")
+ .setRequiresMcRestart(true);
enableOreDictPatch = prop.getBoolean(false);
propOrderDebug.add(prop.getName());
prop = config.get("debug", "enableThaumicTinkererRepairFix", false);
prop.comment = "Enable/Disable Patch for Thaumic Repairer";
- prop.setLanguageKey("gtpp.enableThaumicTinkererRepairFix").setRequiresMcRestart(true);
+ prop.setLanguageKey("gtpp.enableThaumicTinkererRepairFix")
+ .setRequiresMcRestart(true);
enableThaumicTinkererRepairFix = prop.getBoolean(false);
propOrderDebug.add(prop.getName());
// General Features
prop = config.get("general", "enabledLwjglKeybindingFix", true);
prop.comment = "Prevents the game crashing from having invalid keybinds. https://github.com/alkcorp/GTplusplus/issues/544";
- prop.setLanguageKey("gtpp.enabledLwjglKeybindingFix").setRequiresMcRestart(true);
+ prop.setLanguageKey("gtpp.enabledLwjglKeybindingFix")
+ .setRequiresMcRestart(true);
enabledLwjglKeybindingFix = prop.getBoolean(true);
propOrder.add(prop.getName());
prop = config.get("general", "enableGtTooltipFix", true);
prop.comment = "Enable/Disable Custom GT Tooltips";
- prop.setLanguageKey("gtpp.enableGtTooltipFix").setRequiresMcRestart(true);
+ prop.setLanguageKey("gtpp.enableGtTooltipFix")
+ .setRequiresMcRestart(true);
enableGtTooltipFix = prop.getBoolean(true);
propOrder.add(prop.getName());
prop = config.get("general", "enableGtCharcoalPitFix", true);
prop.comment = "Makes the Charcoal Pile Igniter work better.";
- prop.setLanguageKey("gtpp.enableGtCharcoalPitFix").setRequiresMcRestart(true);
+ prop.setLanguageKey("gtpp.enableGtCharcoalPitFix")
+ .setRequiresMcRestart(true);
enableGtCharcoalPitFix = prop.getBoolean(true);
propOrder.add(prop.getName());
// TC Aspect Safety
prop = config.get("general", "enableTcAspectSafety", true);
prop.comment = "Fixes small oversights in Thaumcraft 4.";
- prop.setLanguageKey("gtpp.enableTcAspectSafety").setRequiresMcRestart(true);
+ prop.setLanguageKey("gtpp.enableTcAspectSafety")
+ .setRequiresMcRestart(true);
enableTcAspectSafety = prop.getBoolean(true);
propOrder.add(prop.getName());
@@ -124,7 +135,7 @@ public class AsmConfig {
Preloader_Logger.INFO("COFH Patch - Enabled: " + enableCofhPatch);
Preloader_Logger.INFO("Thaumcraft Aspect Safety Patch - Enabled: " + enableTcAspectSafety);
Preloader_Logger
- .INFO("Fix bad usage of EntityLivingBase.setHealth Patch - Enabled: " + enabledFixEntitySetHealth);
+ .INFO("Fix bad usage of EntityLivingBase.setHealth Patch - Enabled: " + enabledFixEntitySetHealth);
} catch (Exception var3) {
FMLLog.log(Level.ERROR, var3, "GT++ ASM had a problem loading it's config", new Object[0]);
diff --git a/src/main/java/gtPlusPlus/preloader/asm/Preloader_DummyContainer.java b/src/main/java/gtPlusPlus/preloader/asm/Preloader_DummyContainer.java
index b157424e6e..c77f570a8d 100644
--- a/src/main/java/gtPlusPlus/preloader/asm/Preloader_DummyContainer.java
+++ b/src/main/java/gtPlusPlus/preloader/asm/Preloader_DummyContainer.java
@@ -47,24 +47,24 @@ public class Preloader_DummyContainer extends DummyModContainer {
public static void handleConfigFile(final FMLPreInitializationEvent event) {
final Configuration config = new Configuration(
- new File(event.getModConfigurationDirectory(), "GTplusplus/GTplusplus.cfg"));
+ new File(event.getModConfigurationDirectory(), "GTplusplus/GTplusplus.cfg"));
config.load();
// BGM Watchdog
CORE_Preloader.enableWatchdogBGM = config.getInt(
- "enableWatchdogBGM",
- "features",
- 0,
- 0,
- Short.MAX_VALUE,
- "Set to a value greater than 0 to reduce the ticks taken to delay between BGM tracks. Acceptable Values are 1-32767, where 0 is disabled. Vanilla Uses 12,000 & 24,000. 200 is 10s.");
+ "enableWatchdogBGM",
+ "features",
+ 0,
+ 0,
+ Short.MAX_VALUE,
+ "Set to a value greater than 0 to reduce the ticks taken to delay between BGM tracks. Acceptable Values are 1-32767, where 0 is disabled. Vanilla Uses 12,000 & 24,000. 200 is 10s.");
// Circuits
CORE_Preloader.enableOldGTcircuits = config.getBoolean(
- "enableOldGTcircuits",
- GregTech.ID,
- false,
- "Restores circuits and their recipes from Pre-5.09.28 times.");
+ "enableOldGTcircuits",
+ GregTech.ID,
+ false,
+ "Restores circuits and their recipes from Pre-5.09.28 times.");
}
}
diff --git a/src/main/java/gtPlusPlus/preloader/asm/transformers/ClassTransformer_COFH_OreDictionaryArbiter.java b/src/main/java/gtPlusPlus/preloader/asm/transformers/ClassTransformer_COFH_OreDictionaryArbiter.java
index 84fecda974..0b41846928 100644
--- a/src/main/java/gtPlusPlus/preloader/asm/transformers/ClassTransformer_COFH_OreDictionaryArbiter.java
+++ b/src/main/java/gtPlusPlus/preloader/asm/transformers/ClassTransformer_COFH_OreDictionaryArbiter.java
@@ -78,15 +78,15 @@ public class ClassTransformer_COFH_OreDictionaryArbiter {
MethodVisitor mv;
if (aMethodName.equals("registerOreDictionaryEntry")) {
FMLRelaunchLog.log(
- "[GT++ ASM] COFH OreDictionaryArbiter Patch",
- Level.INFO,
- "Injecting " + aMethodName + " into " + className + ". ItemStack: " + aItemStack);
+ "[GT++ ASM] COFH OreDictionaryArbiter Patch",
+ Level.INFO,
+ "Injecting " + aMethodName + " into " + className + ". ItemStack: " + aItemStack);
mv = getWriter().visitMethod(
- ACC_PUBLIC + ACC_STATIC,
- "registerOreDictionaryEntry",
- "(L" + aItemStack + ";Ljava/lang/String;)V",
- null,
- null);
+ ACC_PUBLIC + ACC_STATIC,
+ "registerOreDictionaryEntry",
+ "(L" + aItemStack + ";Ljava/lang/String;)V",
+ null,
+ null);
mv.visitCode();
Label l0 = new Label();
mv.visitLabel(l0);
@@ -94,11 +94,11 @@ public class ClassTransformer_COFH_OreDictionaryArbiter {
mv.visitVarInsn(ALOAD, 0);
mv.visitVarInsn(ALOAD, 1);
mv.visitMethodInsn(
- INVOKESTATIC,
- "gtPlusPlus/preloader/asm/transformers/ClassTransformer_COFH_OreDictionaryArbiter$FixCOFH",
- "registerOreDictionaryEntry",
- "(L" + aItemStack + ";Ljava/lang/String;)V",
- false);
+ INVOKESTATIC,
+ "gtPlusPlus/preloader/asm/transformers/ClassTransformer_COFH_OreDictionaryArbiter$FixCOFH",
+ "registerOreDictionaryEntry",
+ "(L" + aItemStack + ";Ljava/lang/String;)V",
+ false);
Label l1 = new Label();
mv.visitLabel(l1);
mv.visitLineNumber(62, l1);
@@ -141,13 +141,16 @@ public class ClassTransformer_COFH_OreDictionaryArbiter {
static {
try {
oreIDs = (BiMap<String, Integer>) ReflectionUtils.getField(OreDictionaryArbiter.class, "oreIDs")
- .get(null);
+ .get(null);
oreStacks = (TMap<Integer, ArrayList<ItemStack>>) ReflectionUtils
- .getField(OreDictionaryArbiter.class, "oreStacks").get(null);
+ .getField(OreDictionaryArbiter.class, "oreStacks")
+ .get(null);
stackIDs = (TMap<ItemWrapper, ArrayList<Integer>>) ReflectionUtils
- .getField(OreDictionaryArbiter.class, "stackIDs").get(null);
+ .getField(OreDictionaryArbiter.class, "stackIDs")
+ .get(null);
stackNames = (TMap<ItemWrapper, ArrayList<String>>) ReflectionUtils
- .getField(OreDictionaryArbiter.class, "stackNames").get(null);
+ .getField(OreDictionaryArbiter.class, "stackNames")
+ .get(null);
} catch (Throwable t) {
oreIDs = HashBiMap.create();
oreStacks = new THashMap<>();
diff --git a/src/main/java/gtPlusPlus/preloader/asm/transformers/ClassTransformer_IC2_GetHarvestTool.java b/src/main/java/gtPlusPlus/preloader/asm/transformers/ClassTransformer_IC2_GetHarvestTool.java
index da5907e6fd..7aa5ff4f90 100644
--- a/src/main/java/gtPlusPlus/preloader/asm/transformers/ClassTransformer_IC2_GetHarvestTool.java
+++ b/src/main/java/gtPlusPlus/preloader/asm/transformers/ClassTransformer_IC2_GetHarvestTool.java
@@ -53,9 +53,9 @@ public class ClassTransformer_IC2_GetHarvestTool {
aName_damageDropped = obfuscated ? "func_149692_a" : "damageDropped";
FMLRelaunchLog.log(
- "[GT++ ASM] IC2 getHarvestTool Patch",
- Level.INFO,
- "Attempting to patch in mode " + className + ". Obfuscated? " + obfuscated);
+ "[GT++ ASM] IC2 getHarvestTool Patch",
+ Level.INFO,
+ "Attempting to patch in mode " + className + ". Obfuscated? " + obfuscated);
aTempReader = new ClassReader(basicClass);
aTempWriter = new ClassWriter(aTempReader, ClassWriter.COMPUTE_FRAMES);
@@ -75,14 +75,14 @@ public class ClassTransformer_IC2_GetHarvestTool {
FMLRelaunchLog.log("[GT++ ASM] IC2 getHarvestTool Patch", Level.INFO, "Attempting Method Injection.");
injectMethod("getHarvestTool");
if (aClassName.equals("ic2.core.block.machine.BlockMachine2")
- || aClassName.equals("ic2.core.block.machine.BlockMachine3")
- || aClassName.equals("ic2.core.block.wiring.BlockElectric")) {
+ || aClassName.equals("ic2.core.block.machine.BlockMachine3")
+ || aClassName.equals("ic2.core.block.wiring.BlockElectric")) {
injectMethod(aName_getItemDropped);
injectMethod(aName_damageDropped);
} else if (aClassName.equals("ic2.core.block.generator.block.BlockGenerator")
- || aClassName.equals("ic2.core.block.machine.BlockMachine")) {
- injectMethod(aName_damageDropped);
- }
+ || aClassName.equals("ic2.core.block.machine.BlockMachine")) {
+ injectMethod(aName_damageDropped);
+ }
}
}
@@ -113,11 +113,11 @@ public class ClassTransformer_IC2_GetHarvestTool {
mv.visitLineNumber(63, l0);
mv.visitVarInsn(ILOAD, 1);
mv.visitMethodInsn(
- INVOKESTATIC,
- "gtPlusPlus/preloader/asm/transformers/ClassTransformer_IC2_GetHarvestTool",
- "getHarvestTool",
- "(I)Ljava/lang/String;",
- false);
+ INVOKESTATIC,
+ "gtPlusPlus/preloader/asm/transformers/ClassTransformer_IC2_GetHarvestTool",
+ "getHarvestTool",
+ "(I)Ljava/lang/String;",
+ false);
mv.visitInsn(ARETURN);
Label l1 = new Label();
mv.visitLabel(l1);
@@ -128,11 +128,11 @@ public class ClassTransformer_IC2_GetHarvestTool {
didInject = true;
} else if (aMethodName.equals(aName_getItemDropped)) {
mv = cw.visitMethod(
- ACC_PUBLIC,
- aName_getItemDropped,
- "(ILjava/util/Random;I)Lnet/minecraft/item/Item;",
- null,
- null);
+ ACC_PUBLIC,
+ aName_getItemDropped,
+ "(ILjava/util/Random;I)Lnet/minecraft/item/Item;",
+ null,
+ null);
mv.visitCode();
Label l0 = new Label();
mv.visitLabel(l0);
@@ -142,11 +142,11 @@ public class ClassTransformer_IC2_GetHarvestTool {
mv.visitVarInsn(ALOAD, 2);
mv.visitVarInsn(ILOAD, 3);
mv.visitMethodInsn(
- INVOKESTATIC,
- "gtPlusPlus/preloader/asm/transformers/ClassTransformer_IC2_GetHarvestTool",
- "getItemDropped",
- "(Lnet/minecraft/block/Block;ILjava/util/Random;I)Lnet/minecraft/item/Item;",
- false);
+ INVOKESTATIC,
+ "gtPlusPlus/preloader/asm/transformers/ClassTransformer_IC2_GetHarvestTool",
+ "getItemDropped",
+ "(Lnet/minecraft/block/Block;ILjava/util/Random;I)Lnet/minecraft/item/Item;",
+ false);
mv.visitInsn(ARETURN);
Label l1 = new Label();
mv.visitLabel(l1);
@@ -165,11 +165,11 @@ public class ClassTransformer_IC2_GetHarvestTool {
mv.visitLineNumber(48, l0);
mv.visitVarInsn(ILOAD, 1);
mv.visitMethodInsn(
- INVOKESTATIC,
- "gtPlusPlus/preloader/asm/transformers/ClassTransformer_IC2_GetHarvestTool",
- "damageDropped",
- "(I)I",
- false);
+ INVOKESTATIC,
+ "gtPlusPlus/preloader/asm/transformers/ClassTransformer_IC2_GetHarvestTool",
+ "damageDropped",
+ "(I)I",
+ false);
mv.visitInsn(IRETURN);
Label l1 = new Label();
mv.visitLabel(l1);
@@ -196,8 +196,8 @@ public class ClassTransformer_IC2_GetHarvestTool {
public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {
MethodVisitor methodVisitor;
if (aClassName.equals("ic2.core.block.machine.BlockMachine2")
- || aClassName.equals("ic2.core.block.machine.BlockMachine3")
- || aClassName.equals("ic2.core.block.wiring.BlockElectric")) {
+ || aClassName.equals("ic2.core.block.machine.BlockMachine3")
+ || aClassName.equals("ic2.core.block.wiring.BlockElectric")) {
if (name.equals(aName_getItemDropped)) {
methodVisitor = null;
} else if (name.equals(aName_damageDropped)) {
@@ -208,24 +208,24 @@ public class ClassTransformer_IC2_GetHarvestTool {
methodVisitor = super.visitMethod(access, name, desc, signature, exceptions);
}
} else if (aClassName.equals("ic2.core.block.generator.block.BlockGenerator")
- || aClassName.equals("ic2.core.block.machine.BlockMachine")) {
- if (name.equals(aName_damageDropped)) {
- methodVisitor = null;
- } else if (name.equals("getHarvestTool")) {
- methodVisitor = null;
- } else {
- methodVisitor = super.visitMethod(access, name, desc, signature, exceptions);
- }
+ || aClassName.equals("ic2.core.block.machine.BlockMachine")) {
+ if (name.equals(aName_damageDropped)) {
+ methodVisitor = null;
+ } else if (name.equals("getHarvestTool")) {
+ methodVisitor = null;
+ } else {
+ methodVisitor = super.visitMethod(access, name, desc, signature, exceptions);
+ }
+ } else {
+ if (name.equals("getHarvestTool")) {
+ methodVisitor = null;
} else {
- if (name.equals("getHarvestTool")) {
- methodVisitor = null;
- } else {
- methodVisitor = super.visitMethod(access, name, desc, signature, exceptions);
- }
+ methodVisitor = super.visitMethod(access, name, desc, signature, exceptions);
}
+ }
if (methodVisitor == null) {
FMLRelaunchLog
- .log("[GT++ ASM] IC2 getHarvestTool Patch", Level.INFO, "Found method " + name + ", removing.");
+ .log("[GT++ ASM] IC2 getHarvestTool Patch", Level.INFO, "Found method " + name + ", removing.");
}
return methodVisitor;
}
diff --git a/src/main/java/gtPlusPlus/preloader/asm/transformers/ClassTransformer_LWJGL_Keyboard.java b/src/main/java/gtPlusPlus/preloader/asm/transformers/ClassTransformer_LWJGL_Keyboard.java
index f478a0f1f1..4d3c78e6bd 100644
--- a/src/main/java/gtPlusPlus/preloader/asm/transformers/ClassTransformer_LWJGL_Keyboard.java
+++ b/src/main/java/gtPlusPlus/preloader/asm/transformers/ClassTransformer_LWJGL_Keyboard.java
@@ -50,13 +50,13 @@ public class ClassTransformer_LWJGL_Keyboard {
String aCachedValue = mBadKeyCache.get("key-" + key);
if (aCachedValue == null) {
FMLRelaunchLog.log(
- "[GT++ ASM] LWJGL Keybinding index out of bounds fix",
- Level.INFO,
- "Unable to map key code " + key + " to LWJGL keymap.");
+ "[GT++ ASM] LWJGL Keybinding index out of bounds fix",
+ Level.INFO,
+ "Unable to map key code " + key + " to LWJGL keymap.");
FMLRelaunchLog.log(
- "[GT++ ASM] LWJGL Keybinding index out of bounds fix",
- Level.INFO,
- "Caching key value to be empty.");
+ "[GT++ ASM] LWJGL Keybinding index out of bounds fix",
+ Level.INFO,
+ "Caching key value to be empty.");
// mBadKeyCache.put("key-"+key, getKeyName()[0x00]);
aCachedValue = "FIX!";
mBadKeyCache.put("key-" + key, aCachedValue);
@@ -68,9 +68,9 @@ public class ClassTransformer_LWJGL_Keyboard {
public static void trySetClientKey(int aKey) {
if (Utils.isClient() && ReflectionUtils.doesClassExist("net.minecraft.client.Minecraft")) {
FMLRelaunchLog.log(
- "[GT++ ASM] LWJGL Keybinding index out of bounds fix",
- Level.INFO,
- "Trying to set key value to be empty.");
+ "[GT++ ASM] LWJGL Keybinding index out of bounds fix",
+ Level.INFO,
+ "Trying to set key value to be empty.");
GameSettings options = Minecraft.getMinecraft().gameSettings;
KeyBinding[] akeybinding = Minecraft.getMinecraft().gameSettings.keyBindings;
int i = akeybinding.length;
@@ -78,9 +78,9 @@ public class ClassTransformer_LWJGL_Keyboard {
if (keybinding != null && keybinding.getKeyCode() == aKey) {
options.setOptionKeyBinding(keybinding, 0);
FMLRelaunchLog.log(
- "[GT++ ASM] LWJGL Keybinding index out of bounds fix",
- Level.INFO,
- "Set keybind " + aKey + " to 0.");
+ "[GT++ ASM] LWJGL Keybinding index out of bounds fix",
+ Level.INFO,
+ "Set keybind " + aKey + " to 0.");
break;
}
}
@@ -140,7 +140,7 @@ public class ClassTransformer_LWJGL_Keyboard {
isValid = false;
}
FMLRelaunchLog
- .log("[GT++ ASM] LWJGL Keybinding index out of bounds fix", Level.INFO, "Valid? " + isValid + ".");
+ .log("[GT++ ASM] LWJGL Keybinding index out of bounds fix", Level.INFO, "Valid? " + isValid + ".");
reader = aTempReader;
writer = aTempWriter;
}
@@ -162,27 +162,21 @@ public class ClassTransformer_LWJGL_Keyboard {
public boolean injectLWJGLPatch(ClassWriter cw) {
MethodVisitor mv;
boolean didInject = false;
- FMLRelaunchLog.log(
- "[GT++ ASM] LWJGL Keybinding index out of bounds fix",
- Level.INFO,
- "Injecting " + "getKeyName" + ".");
- mv = cw.visitMethod(
- ACC_PUBLIC + ACC_STATIC + ACC_SYNCHRONIZED,
- "getKeyName",
- "(I)Ljava/lang/String;",
- null,
- null);
+ FMLRelaunchLog
+ .log("[GT++ ASM] LWJGL Keybinding index out of bounds fix", Level.INFO, "Injecting " + "getKeyName" + ".");
+ mv = cw
+ .visitMethod(ACC_PUBLIC + ACC_STATIC + ACC_SYNCHRONIZED, "getKeyName", "(I)Ljava/lang/String;", null, null);
mv.visitCode();
Label l0 = new Label();
mv.visitLabel(l0);
mv.visitLineNumber(49, l0);
mv.visitVarInsn(ILOAD, 0);
mv.visitMethodInsn(
- INVOKESTATIC,
- "gtPlusPlus/preloader/asm/transformers/ClassTransformer_LWJGL_Keyboard",
- "getKeyName",
- "(I)Ljava/lang/String;",
- false);
+ INVOKESTATIC,
+ "gtPlusPlus/preloader/asm/transformers/ClassTransformer_LWJGL_Keyboard",
+ "getKeyName",
+ "(I)Ljava/lang/String;",
+ false);
mv.visitInsn(ARETURN);
Label l1 = new Label();
mv.visitLabel(l1);
@@ -192,7 +186,7 @@ public class ClassTransformer_LWJGL_Keyboard {
didInject = true;
FMLRelaunchLog
- .log("[GT++ ASM] LWJGL Keybinding index out of bounds fix", Level.INFO, "Method injection complete.");
+ .log("[GT++ ASM] LWJGL Keybinding index out of bounds fix", Level.INFO, "Method injection complete.");
return didInject;
}
@@ -200,10 +194,8 @@ public class ClassTransformer_LWJGL_Keyboard {
MethodVisitor mv;
boolean didInject = false;
String aMethodName = this.isClientSettingsObfuscated ? "func_74298_c" : "getKeyDisplayString";
- FMLRelaunchLog.log(
- "[GT++ ASM] LWJGL Keybinding index out of bounds fix",
- Level.INFO,
- "Injecting " + aMethodName + ".");
+ FMLRelaunchLog
+ .log("[GT++ ASM] LWJGL Keybinding index out of bounds fix", Level.INFO, "Injecting " + aMethodName + ".");
mv = cw.visitMethod(ACC_PUBLIC + ACC_STATIC, aMethodName, "(I)Ljava/lang/String;", null, null);
mv.visitCode();
Label l0 = new Label();
@@ -211,11 +203,11 @@ public class ClassTransformer_LWJGL_Keyboard {
mv.visitLineNumber(130, l0);
mv.visitVarInsn(ILOAD, 0);
mv.visitMethodInsn(
- INVOKESTATIC,
- "gtPlusPlus/preloader/keyboard/BetterKeyboard",
- "getKeyDisplayString",
- "(I)Ljava/lang/String;",
- false);
+ INVOKESTATIC,
+ "gtPlusPlus/preloader/keyboard/BetterKeyboard",
+ "getKeyDisplayString",
+ "(I)Ljava/lang/String;",
+ false);
mv.visitInsn(ARETURN);
Label l1 = new Label();
mv.visitLabel(l1);
@@ -224,7 +216,7 @@ public class ClassTransformer_LWJGL_Keyboard {
mv.visitEnd();
didInject = true;
FMLRelaunchLog
- .log("[GT++ ASM] LWJGL Keybinding index out of bounds fix", Level.INFO, "Method injection complete.");
+ .log("[GT++ ASM] LWJGL Keybinding index out of bounds fix", Level.INFO, "Method injection complete.");
return didInject;
}
@@ -260,9 +252,9 @@ public class ClassTransformer_LWJGL_Keyboard {
}
if (found) {
FMLRelaunchLog.log(
- "[GT++ ASM] LWJGL Keybinding index out of bounds fix",
- Level.INFO,
- "Found method " + name + ", removing.");
+ "[GT++ ASM] LWJGL Keybinding index out of bounds fix",
+ Level.INFO,
+ "Found method " + name + ", removing.");
}
return methodVisitor;
}
@@ -295,9 +287,9 @@ public class ClassTransformer_LWJGL_Keyboard {
}
if (found) {
FMLRelaunchLog.log(
- "[GT++ ASM] LWJGL Keybinding index out of bounds fix",
- Level.INFO,
- "Found method " + name + ", removing.");
+ "[GT++ ASM] LWJGL Keybinding index out of bounds fix",
+ Level.INFO,
+ "Found method " + name + ", removing.");
}
return methodVisitor;
}
diff --git a/src/main/java/gtPlusPlus/preloader/asm/transformers/ClassTransformer_TC_ItemWispEssence.java b/src/main/java/gtPlusPlus/preloader/asm/transformers/ClassTransformer_TC_ItemWispEssence.java
index 98e1e7d473..cf8b08d40c 100644
--- a/src/main/java/gtPlusPlus/preloader/asm/transformers/ClassTransformer_TC_ItemWispEssence.java
+++ b/src/main/java/gtPlusPlus/preloader/asm/transformers/ClassTransformer_TC_ItemWispEssence.java
@@ -52,9 +52,9 @@ public class ClassTransformer_TC_ItemWispEssence {
ClassReader aTempReader = null;
ClassWriter aTempWriter = null;
FMLRelaunchLog.log(
- "[GT++ ASM] Thaumcraft WispEssence_Patch",
- Level.INFO,
- "Are we patching obfuscated methods? " + obfuscated2);
+ "[GT++ ASM] Thaumcraft WispEssence_Patch",
+ Level.INFO,
+ "Are we patching obfuscated methods? " + obfuscated2);
String aGetColour = obfuscated2 ? "func_82790_a" : "getColorFromItemStack";
aTempReader = new ClassReader(basicClass);
aTempWriter = new ClassWriter(aTempReader, ClassWriter.COMPUTE_FRAMES);
@@ -94,11 +94,11 @@ public class ClassTransformer_TC_ItemWispEssence {
if (aMethodName.equals("getAspects")) {
mv = cw.visitMethod(
- ACC_PUBLIC,
- "getAspects",
- "(Lnet/minecraft/item/ItemStack;)Lthaumcraft/api/aspects/AspectList;",
- null,
- null);
+ ACC_PUBLIC,
+ "getAspects",
+ "(Lnet/minecraft/item/ItemStack;)Lthaumcraft/api/aspects/AspectList;",
+ null,
+ null);
mv.visitCode();
Label l0 = new Label();
mv.visitLabel(l0);
@@ -131,17 +131,17 @@ public class ClassTransformer_TC_ItemWispEssence {
mv.visitVarInsn(ALOAD, 2);
mv.visitVarInsn(ALOAD, 1);
mv.visitMethodInsn(
- INVOKEVIRTUAL,
- "net/minecraft/item/ItemStack",
- aGetTagCompound,
- "()Lnet/minecraft/nbt/NBTTagCompound;",
- false);
+ INVOKEVIRTUAL,
+ "net/minecraft/item/ItemStack",
+ aGetTagCompound,
+ "()Lnet/minecraft/nbt/NBTTagCompound;",
+ false);
mv.visitMethodInsn(
- INVOKEVIRTUAL,
- "thaumcraft/api/aspects/AspectList",
- "readFromNBT",
- "(Lnet/minecraft/nbt/NBTTagCompound;)V",
- false);
+ INVOKEVIRTUAL,
+ "thaumcraft/api/aspects/AspectList",
+ "readFromNBT",
+ "(Lnet/minecraft/nbt/NBTTagCompound;)V",
+ false);
Label l6 = new Label();
mv.visitLabel(l6);
mv.visitLineNumber(147, l6);
@@ -166,12 +166,12 @@ public class ClassTransformer_TC_ItemWispEssence {
Label l9 = new Label();
mv.visitLabel(l9);
mv.visitLocalVariable(
- "this",
- "LgtPlusPlus/preloader/asm/transformers/ClassTransformer_TC_ItemWispEssence;",
- null,
- l0,
- l9,
- 0);
+ "this",
+ "LgtPlusPlus/preloader/asm/transformers/ClassTransformer_TC_ItemWispEssence;",
+ null,
+ l0,
+ l9,
+ 0);
mv.visitLocalVariable("itemstack", "Lnet/minecraft/item/ItemStack;", null, l0, l9, 1);
mv.visitLocalVariable("aspects", "Lthaumcraft/api/aspects/AspectList;", null, l5, l3, 2);
mv.visitMaxs(2, 3);
@@ -205,11 +205,11 @@ public class ClassTransformer_TC_ItemWispEssence {
mv.visitVarInsn(ALOAD, 0);
mv.visitVarInsn(ALOAD, 1);
mv.visitMethodInsn(
- INVOKEVIRTUAL,
- "thaumcraft/common/items/ItemWispEssence",
- "getAspects",
- "(Lnet/minecraft/item/ItemStack;)Lthaumcraft/api/aspects/AspectList;",
- false);
+ INVOKEVIRTUAL,
+ "thaumcraft/common/items/ItemWispEssence",
+ "getAspects",
+ "(Lnet/minecraft/item/ItemStack;)Lthaumcraft/api/aspects/AspectList;",
+ false);
Label l3 = new Label();
mv.visitJumpInsn(IFNULL, l3);
Label l4 = new Label();
@@ -218,17 +218,17 @@ public class ClassTransformer_TC_ItemWispEssence {
mv.visitVarInsn(ALOAD, 0);
mv.visitVarInsn(ALOAD, 1);
mv.visitMethodInsn(
- INVOKEVIRTUAL,
- "thaumcraft/common/items/ItemWispEssence",
- "getAspects",
- "(Lnet/minecraft/item/ItemStack;)Lthaumcraft/api/aspects/AspectList;",
- false);
+ INVOKEVIRTUAL,
+ "thaumcraft/common/items/ItemWispEssence",
+ "getAspects",
+ "(Lnet/minecraft/item/ItemStack;)Lthaumcraft/api/aspects/AspectList;",
+ false);
mv.visitMethodInsn(
- INVOKEVIRTUAL,
- "thaumcraft/api/aspects/AspectList",
- "getAspects",
- "()[Lthaumcraft/api/aspects/Aspect;",
- false);
+ INVOKEVIRTUAL,
+ "thaumcraft/api/aspects/AspectList",
+ "getAspects",
+ "()[Lthaumcraft/api/aspects/Aspect;",
+ false);
mv.visitInsn(ICONST_0);
mv.visitInsn(AALOAD);
mv.visitMethodInsn(INVOKEVIRTUAL, "thaumcraft/api/aspects/Aspect", "getColor", "()I", false);
@@ -240,10 +240,10 @@ public class ClassTransformer_TC_ItemWispEssence {
mv.visitLdcInsn(new Long(500L));
mv.visitInsn(LDIV);
mv.visitFieldInsn(
- GETSTATIC,
- "thaumcraft/common/items/ItemWispEssence",
- "displayAspects",
- "[Lthaumcraft/api/aspects/Aspect;");
+ GETSTATIC,
+ "thaumcraft/common/items/ItemWispEssence",
+ "displayAspects",
+ "[Lthaumcraft/api/aspects/Aspect;");
mv.visitInsn(ARRAYLENGTH);
mv.visitInsn(I2L);
mv.visitInsn(LREM);
@@ -253,10 +253,10 @@ public class ClassTransformer_TC_ItemWispEssence {
mv.visitLabel(l5);
mv.visitLineNumber(204, l5);
mv.visitFieldInsn(
- GETSTATIC,
- "thaumcraft/common/items/ItemWispEssence",
- "displayAspects",
- "[Lthaumcraft/api/aspects/Aspect;");
+ GETSTATIC,
+ "thaumcraft/common/items/ItemWispEssence",
+ "displayAspects",
+ "[Lthaumcraft/api/aspects/Aspect;");
mv.visitVarInsn(ILOAD, 3);
mv.visitInsn(AALOAD);
mv.visitMethodInsn(INVOKEVIRTUAL, "thaumcraft/api/aspects/Aspect", "getColor", "()I", false);
@@ -273,9 +273,9 @@ public class ClassTransformer_TC_ItemWispEssence {
}
FMLRelaunchLog.log(
- "[GT++ ASM] Thaumcraft WispEssence_Patch",
- Level.INFO,
- "Method injection complete. " + (obfuscated ? "Obfuscated" : "Non-Obfuscated"));
+ "[GT++ ASM] Thaumcraft WispEssence_Patch",
+ Level.INFO,
+ "Method injection complete. " + (obfuscated ? "Obfuscated" : "Non-Obfuscated"));
return didInject;
}
@@ -308,10 +308,8 @@ public class ClassTransformer_TC_ItemWispEssence {
}
if (found) {
- FMLRelaunchLog.log(
- "[GT++ ASM] Thaumcraft WispEssence_Patch",
- Level.INFO,
- "Found method " + name + ", removing.");
+ FMLRelaunchLog
+ .log("[GT++ ASM] Thaumcraft WispEssence_Patch", Level.INFO, "Found method " + name + ", removing.");
}
return methodVisitor;
}
diff --git a/src/main/java/gtPlusPlus/preloader/asm/transformers/Preloader_ClassTransformer.java b/src/main/java/gtPlusPlus/preloader/asm/transformers/Preloader_ClassTransformer.java
index ee82871d6a..82526b1290 100644
--- a/src/main/java/gtPlusPlus/preloader/asm/transformers/Preloader_ClassTransformer.java
+++ b/src/main/java/gtPlusPlus/preloader/asm/transformers/Preloader_ClassTransformer.java
@@ -46,31 +46,29 @@ public class Preloader_ClassTransformer {
@Override
public void visitCode() {
- FMLRelaunchLog.log(
- "[GT++ ASM] OreDictTransformer",
- Level.INFO,
- "Fixing Forge's poor attempt at an oreDictionary.");
+ FMLRelaunchLog
+ .log("[GT++ ASM] OreDictTransformer", Level.INFO, "Fixing Forge's poor attempt at an oreDictionary.");
super.visitCode();
super.visitVarInsn(ALOAD, 0);
super.visitVarInsn(ALOAD, 1);
if (!mObfuscated) {
FMLRelaunchLog
- .log("[GT++ ASM] OreDictTransformer", Level.INFO, "Injecting target method. [Unobfuscated]");
+ .log("[GT++ ASM] OreDictTransformer", Level.INFO, "Injecting target method. [Unobfuscated]");
super.visitMethodInsn(
- INVOKESTATIC,
- "gtPlusPlus/preloader/Preloader_GT_OreDict",
- "shouldPreventRegistration",
- "(Ljava/lang/String;Lnet/minecraft/item/ItemStack;)Z",
- false);
+ INVOKESTATIC,
+ "gtPlusPlus/preloader/Preloader_GT_OreDict",
+ "shouldPreventRegistration",
+ "(Ljava/lang/String;Lnet/minecraft/item/ItemStack;)Z",
+ false);
} else {
FMLRelaunchLog
- .log("[GT++ ASM] OreDictTransformer", Level.INFO, "Injecting target method. [Obfuscated]");
+ .log("[GT++ ASM] OreDictTransformer", Level.INFO, "Injecting target method. [Obfuscated]");
super.visitMethodInsn(
- INVOKESTATIC,
- "gtPlusPlus/preloader/Preloader_GT_OreDict",
- "shouldPreventRegistration",
- "(Ljava/lang/String;Ladd;)Z",
- false);
+ INVOKESTATIC,
+ "gtPlusPlus/preloader/Preloader_GT_OreDict",
+ "shouldPreventRegistration",
+ "(Ljava/lang/String;Ladd;)Z",
+ false);
}
Label endLabel = new Label();
super.visitJumpInsn(IFEQ, endLabel);
diff --git a/src/main/java/gtPlusPlus/preloader/asm/transformers/Preloader_Transformer_Handler.java b/src/main/java/gtPlusPlus/preloader/asm/transformers/Preloader_Transformer_Handler.java
index abdff476ea..922ce88e27 100644
--- a/src/main/java/gtPlusPlus/preloader/asm/transformers/Preloader_Transformer_Handler.java
+++ b/src/main/java/gtPlusPlus/preloader/asm/transformers/Preloader_Transformer_Handler.java
@@ -47,12 +47,13 @@ public class Preloader_Transformer_Handler implements IClassTransformer {
public byte[] transform(String name, String transformedName, byte[] basicClass) {
// Fix LWJGL index array out of bounds on keybinding IDs
if ((transformedName.equals(LWJGL_KEYBOARD) || transformedName.equals(MINECRAFT_GAMESETTINGS))
- && AsmConfig.enabledLwjglKeybindingFix
- // Do not transform if using lwjgl3
- && !ReflectionUtils.doesClassExist("org.lwjgl.system.Platform")) {
+ && AsmConfig.enabledLwjglKeybindingFix
+ // Do not transform if using lwjgl3
+ && !ReflectionUtils.doesClassExist("org.lwjgl.system.Platform")) {
boolean isClientSettingsClass = !transformedName.equals("org.lwjgl.input.Keyboard");
Preloader_Logger.INFO("LWJGL Keybinding index out of bounds fix", "Transforming " + transformedName);
- return new ClassTransformer_LWJGL_Keyboard(basicClass, isClientSettingsClass).getWriter().toByteArray();
+ return new ClassTransformer_LWJGL_Keyboard(basicClass, isClientSettingsClass).getWriter()
+ .toByteArray();
}
// Fix the OreDictionary - Forge
@@ -65,15 +66,17 @@ public class Preloader_Transformer_Handler implements IClassTransformer {
// Fix the OreDictionary COFH
if (transformedName.equals(COFH_ORE_DICTIONARY_ARBITER)
- && (AsmConfig.enableCofhPatch || CORE_Preloader.DEV_ENVIRONMENT)) {
+ && (AsmConfig.enableCofhPatch || CORE_Preloader.DEV_ENVIRONMENT)) {
Preloader_Logger.INFO("COFH", "Transforming " + transformedName);
- return new ClassTransformer_COFH_OreDictionaryArbiter(basicClass).getWriter().toByteArray();
+ return new ClassTransformer_COFH_OreDictionaryArbiter(basicClass).getWriter()
+ .toByteArray();
}
if (IC2_WRENCH_PATCH_CLASS_NAMES.contains(transformedName)) {
Preloader_Logger.INFO("IC2 getHarvestTool Patch", "Transforming " + transformedName);
return new ClassTransformer_IC2_GetHarvestTool(basicClass, !CORE_Preloader.DEV_ENVIRONMENT, transformedName)
- .getWriter().toByteArray();
+ .getWriter()
+ .toByteArray();
}
// Fix Thaumcraft stuff
@@ -81,7 +84,7 @@ public class Preloader_Transformer_Handler implements IClassTransformer {
if (transformedName.equals(THAUMCRAFT_ITEM_WISP_ESSENCE) && AsmConfig.enableTcAspectSafety) {
Preloader_Logger.INFO("Thaumcraft WispEssence_Patch", "Transforming " + transformedName);
return new ClassTransformer_TC_ItemWispEssence(basicClass, !CORE_Preloader.DEV_ENVIRONMENT).getWriter()
- .toByteArray();
+ .toByteArray();
}
return basicClass;
diff --git a/src/main/java/gtPlusPlus/preloader/keyboard/BetterKeyboard.java b/src/main/java/gtPlusPlus/preloader/keyboard/BetterKeyboard.java
index c18cd2d714..510689911c 100644
--- a/src/main/java/gtPlusPlus/preloader/keyboard/BetterKeyboard.java
+++ b/src/main/java/gtPlusPlus/preloader/keyboard/BetterKeyboard.java
@@ -52,9 +52,9 @@ public class BetterKeyboard {
public static void init() {
if (!init) {
FMLRelaunchLog.log(
- "[GT++ ASM] LWJGL Keybinding index out of bounds fix",
- Level.INFO,
- "Trying to patch out LWJGL internal arrays with larger ones.");
+ "[GT++ ASM] LWJGL Keybinding index out of bounds fix",
+ Level.INFO,
+ "Trying to patch out LWJGL internal arrays with larger ones.");
Field aKeyNameSize = ReflectionUtils.getField(Keyboard.class, "keyName");
Field aKeyMapSize = ReflectionUtils.getField(Keyboard.class, "keyMap");
Field aKeyDownBuffer = ReflectionUtils.getField(Keyboard.class, "keyDownBuffer");
@@ -67,14 +67,14 @@ public class BetterKeyboard {
try {
ReflectionUtils.setFinalFieldValue(Keyboard.class, aKeyNameSize.getName(), aNewKeyNameArray);
FMLRelaunchLog.log(
- "[GT++ ASM] LWJGL Keybinding index out of bounds fix",
- Level.INFO,
- "Patched Field: " + aKeyNameSize.getName());
+ "[GT++ ASM] LWJGL Keybinding index out of bounds fix",
+ Level.INFO,
+ "Patched Field: " + aKeyNameSize.getName());
} catch (Throwable t) {
FMLRelaunchLog.log(
- "[GT++ ASM] LWJGL Keybinding index out of bounds fix",
- Level.INFO,
- "Failed Patching Field: " + aKeyDownBuffer.getName());
+ "[GT++ ASM] LWJGL Keybinding index out of bounds fix",
+ Level.INFO,
+ "Failed Patching Field: " + aKeyDownBuffer.getName());
}
}
Map<String, Integer> aOldKeyMapArray = ReflectionUtils.getFieldValue(aKeyMapSize);
@@ -84,14 +84,14 @@ public class BetterKeyboard {
try {
ReflectionUtils.setFinalFieldValue(Keyboard.class, aKeyMapSize.getName(), aNewKeyMapArray);
FMLRelaunchLog.log(
- "[GT++ ASM] LWJGL Keybinding index out of bounds fix",
- Level.INFO,
- "Patched Field: " + aKeyMapSize.getName());
+ "[GT++ ASM] LWJGL Keybinding index out of bounds fix",
+ Level.INFO,
+ "Patched Field: " + aKeyMapSize.getName());
} catch (Throwable t) {
FMLRelaunchLog.log(
- "[GT++ ASM] LWJGL Keybinding index out of bounds fix",
- Level.INFO,
- "Failed Patching Field: " + aKeyDownBuffer.getName());
+ "[GT++ ASM] LWJGL Keybinding index out of bounds fix",
+ Level.INFO,
+ "Failed Patching Field: " + aKeyDownBuffer.getName());
}
}
ByteBuffer aOldByteBuffer = ReflectionUtils.getFieldValue(aKeyDownBuffer);
@@ -100,14 +100,14 @@ public class BetterKeyboard {
try {
ReflectionUtils.setFinalFieldValue(Keyboard.class, aKeyDownBuffer.getName(), aNewByteBuffer);
FMLRelaunchLog.log(
- "[GT++ ASM] LWJGL Keybinding index out of bounds fix",
- Level.INFO,
- "Patched Field: " + aKeyDownBuffer.getName());
+ "[GT++ ASM] LWJGL Keybinding index out of bounds fix",
+ Level.INFO,
+ "Patched Field: " + aKeyDownBuffer.getName());
} catch (Throwable t) {
FMLRelaunchLog.log(
- "[GT++ ASM] LWJGL Keybinding index out of bounds fix",
- Level.INFO,
- "Failed Patching Field: " + aKeyDownBuffer.getName());
+ "[GT++ ASM] LWJGL Keybinding index out of bounds fix",
+ Level.INFO,
+ "Failed Patching Field: " + aKeyDownBuffer.getName());
}
}
init = true;
@@ -129,6 +129,6 @@ public class BetterKeyboard {
*/
public static String getKeyDisplayString(int aKeyValue) {
return aKeyValue < 0 ? I18n.format("key.mouseButton", new Object[] { Integer.valueOf(aKeyValue + 101) })
- : getKeyName(aKeyValue);
+ : getKeyName(aKeyValue);
}
}
diff --git a/src/main/java/gtPlusPlus/recipes/CokeAndPyrolyseOven.java b/src/main/java/gtPlusPlus/recipes/CokeAndPyrolyseOven.java
index f3c6b10cb3..347010f71b 100644
--- a/src/main/java/gtPlusPlus/recipes/CokeAndPyrolyseOven.java
+++ b/src/main/java/gtPlusPlus/recipes/CokeAndPyrolyseOven.java
@@ -30,34 +30,34 @@ public class CokeAndPyrolyseOven {
ArrayList<ItemStack> aLogData = OreDictionary.getOres("logWood");
for (ItemStack stack : aLogData) {
AddGregtechRecipe.addCokeAndPyrolyseRecipes(
- ItemUtils.getSimpleStack(stack, 20),
- 20,
- GT_ModHandler.getSteam(1000),
- GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Charcoal, 24L),
- FluidUtils.getFluidStack("fluid.coalgas", 1440),
- 60,
- 30);
+ ItemUtils.getSimpleStack(stack, 20),
+ 20,
+ GT_ModHandler.getSteam(1000),
+ GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Charcoal, 24L),
+ FluidUtils.getFluidStack("fluid.coalgas", 1440),
+ 60,
+ 30);
}
// Coal to Coke
AddGregtechRecipe.addCokeAndPyrolyseRecipes(
- GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Coal, 16L),
- 22,
- GT_ModHandler.getSteam(1000),
- ItemUtils.getItemStackOfAmountFromOreDict("fuelCoke", 10),
- FluidUtils.getFluidStack("fluid.coalgas", 2880),
- 30,
- 120);
+ GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Coal, 16L),
+ 22,
+ GT_ModHandler.getSteam(1000),
+ ItemUtils.getItemStackOfAmountFromOreDict("fuelCoke", 10),
+ FluidUtils.getFluidStack("fluid.coalgas", 2880),
+ 30,
+ 120);
// Coke & Coal
CORE.RA.addCokeOvenRecipe(
- GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Coal, 12L),
- ItemUtils.getItemStackOfAmountFromOreDict("fuelCoke", 6),
- GT_ModHandler.getSteam(2000),
- FluidUtils.getFluidStack("fluid.coalgas", 5040),
- ItemUtils.getItemStackOfAmountFromOreDict("fuelCoke", 14),
- 60 * 20,
- 240);
+ GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Coal, 12L),
+ ItemUtils.getItemStackOfAmountFromOreDict("fuelCoke", 6),
+ GT_ModHandler.getSteam(2000),
+ FluidUtils.getFluidStack("fluid.coalgas", 5040),
+ ItemUtils.getItemStackOfAmountFromOreDict("fuelCoke", 14),
+ 60 * 20,
+ 240);
}
diff --git a/src/main/java/gtPlusPlus/recipes/RecipeRemovals.java b/src/main/java/gtPlusPlus/recipes/RecipeRemovals.java
index b61400e1d5..4462f81fc7 100644
--- a/src/main/java/gtPlusPlus/recipes/RecipeRemovals.java
+++ b/src/main/java/gtPlusPlus/recipes/RecipeRemovals.java
@@ -80,14 +80,14 @@ public class RecipeRemovals {
long rotorDurabilityMax = GT_MetaGenerated_Tool.getToolMaxDamage(aI);
if (rotorDurabilityMax < aCutoff) {
Logger.WARNING(
- "[Turbine Cleanup] " + getMaterialName(aMainMaterial)
- + " "
- + aType
- + "Turbines have "
- + rotorDurabilityMax
- + ", which is below the cutoff durability of "
- + aCutoff
- + ", disabling.");
+ "[Turbine Cleanup] " + getMaterialName(aMainMaterial)
+ + " "
+ + aType
+ + "Turbines have "
+ + rotorDurabilityMax
+ + ", which is below the cutoff durability of "
+ + aCutoff
+ + ", disabling.");
aG.mEnabled = false;
aG.mHidden = true;
aG.mCanBeBuffered = false;
diff --git a/src/main/java/gtPlusPlus/xmod/bartcrops/abstracts/BaseCrop.java b/src/main/java/gtPlusPlus/xmod/bartcrops/abstracts/BaseCrop.java
index 22fce2ae5a..405c1ef1e1 100644
--- a/src/main/java/gtPlusPlus/xmod/bartcrops/abstracts/BaseCrop.java
+++ b/src/main/java/gtPlusPlus/xmod/bartcrops/abstracts/BaseCrop.java
@@ -25,7 +25,7 @@ public abstract class BaseCrop extends CropCard implements ICropCardInfo {
this.textures = new IIcon[this.maxSize()];
for (int i = 1; i <= this.textures.length; ++i) {
this.textures[i - 1] = iconRegister
- .registerIcon(GTPlusPlus.ID + ":crop/blockCrop." + this.name() + "." + i);
+ .registerIcon(GTPlusPlus.ID + ":crop/blockCrop." + this.name() + "." + i);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/bop/HANDLER_BiomesOPlenty.java b/src/main/java/gtPlusPlus/xmod/bop/HANDLER_BiomesOPlenty.java
index 918ec9621d..7727eaef38 100644
--- a/src/main/java/gtPlusPlus/xmod/bop/HANDLER_BiomesOPlenty.java
+++ b/src/main/java/gtPlusPlus/xmod/bop/HANDLER_BiomesOPlenty.java
@@ -62,35 +62,35 @@ public class HANDLER_BiomesOPlenty {
private static void setFields() {
Field aBopMiscItem = ReflectionUtils
- .getField(ReflectionUtils.getClass("biomesoplenty.api.content.BOPCItems"), "misc");
+ .getField(ReflectionUtils.getClass("biomesoplenty.api.content.BOPCItems"), "misc");
Field aBopBlock1 = ReflectionUtils
- .getField(ReflectionUtils.getClass("biomesoplenty.api.content.BOPCBlocks"), "logs1");
+ .getField(ReflectionUtils.getClass("biomesoplenty.api.content.BOPCBlocks"), "logs1");
Field aBopBlock2 = ReflectionUtils
- .getField(ReflectionUtils.getClass("biomesoplenty.api.content.BOPCBlocks"), "logs2");
+ .getField(ReflectionUtils.getClass("biomesoplenty.api.content.BOPCBlocks"), "logs2");
Field aBopBlock3 = ReflectionUtils
- .getField(ReflectionUtils.getClass("biomesoplenty.api.content.BOPCBlocks"), "logs3");
+ .getField(ReflectionUtils.getClass("biomesoplenty.api.content.BOPCBlocks"), "logs3");
Field aBopBlock4 = ReflectionUtils
- .getField(ReflectionUtils.getClass("biomesoplenty.api.content.BOPCBlocks"), "logs4");
+ .getField(ReflectionUtils.getClass("biomesoplenty.api.content.BOPCBlocks"), "logs4");
Field aBopLeaves1 = ReflectionUtils
- .getField(ReflectionUtils.getClass("biomesoplenty.api.content.BOPCBlocks"), "leaves1");
+ .getField(ReflectionUtils.getClass("biomesoplenty.api.content.BOPCBlocks"), "leaves1");
Field aBopLeaves2 = ReflectionUtils
- .getField(ReflectionUtils.getClass("biomesoplenty.api.content.BOPCBlocks"), "leaves2");
+ .getField(ReflectionUtils.getClass("biomesoplenty.api.content.BOPCBlocks"), "leaves2");
Field aBopLeaves3 = ReflectionUtils
- .getField(ReflectionUtils.getClass("biomesoplenty.api.content.BOPCBlocks"), "leaves3");
+ .getField(ReflectionUtils.getClass("biomesoplenty.api.content.BOPCBlocks"), "leaves3");
Field aBopLeaves4 = ReflectionUtils
- .getField(ReflectionUtils.getClass("biomesoplenty.api.content.BOPCBlocks"), "leaves4");
+ .getField(ReflectionUtils.getClass("biomesoplenty.api.content.BOPCBlocks"), "leaves4");
Field aBopColouredLeaves1 = ReflectionUtils
- .getField(ReflectionUtils.getClass("biomesoplenty.api.content.BOPCBlocks"), "colorizedLeaves1");
+ .getField(ReflectionUtils.getClass("biomesoplenty.api.content.BOPCBlocks"), "colorizedLeaves1");
Field aBopColouredLeaves2 = ReflectionUtils
- .getField(ReflectionUtils.getClass("biomesoplenty.api.content.BOPCBlocks"), "colorizedLeaves2");
+ .getField(ReflectionUtils.getClass("biomesoplenty.api.content.BOPCBlocks"), "colorizedLeaves2");
Field aBopSapling = ReflectionUtils
- .getField(ReflectionUtils.getClass("biomesoplenty.api.content.BOPCBlocks"), "saplings");
+ .getField(ReflectionUtils.getClass("biomesoplenty.api.content.BOPCBlocks"), "saplings");
Field aBopColouredSapling = ReflectionUtils
- .getField(ReflectionUtils.getClass("biomesoplenty.api.content.BOPCBlocks"), "colorizedSaplings");
+ .getField(ReflectionUtils.getClass("biomesoplenty.api.content.BOPCBlocks"), "colorizedSaplings");
if (aBopMiscItem != null) {
Item aMiscItem = ReflectionUtils.getFieldValue(aBopMiscItem);
diff --git a/src/main/java/gtPlusPlus/xmod/bop/blocks/BOP_Block_Registrator.java b/src/main/java/gtPlusPlus/xmod/bop/blocks/BOP_Block_Registrator.java
index e8c50641aa..4a3c91e9cb 100644
--- a/src/main/java/gtPlusPlus/xmod/bop/blocks/BOP_Block_Registrator.java
+++ b/src/main/java/gtPlusPlus/xmod/bop/blocks/BOP_Block_Registrator.java
@@ -69,38 +69,37 @@ public class BOP_Block_Registrator {
public static void addLogRecipes(final ItemStack aStack) {
RecipeUtils.addShapelessGregtechRecipe(
- new ItemStack[] { aStack },
- ItemUtils.getSimpleStack(
- Item.getItemFromBlock(Blocks.planks),
- GT_Mod.gregtechproxy.mNerfedWoodPlank ? 2 : 4));
+ new ItemStack[] { aStack },
+ ItemUtils
+ .getSimpleStack(Item.getItemFromBlock(Blocks.planks), GT_Mod.gregtechproxy.mNerfedWoodPlank ? 2 : 4));
RecipeUtils.recipeBuilder(
- CI.craftingToolSaw,
- null,
- null,
- aStack,
- null,
- null,
- null,
- null,
- null,
- ItemUtils.getSimpleStack(Item.getItemFromBlock(Blocks.planks), 4));
+ CI.craftingToolSaw,
+ null,
+ null,
+ aStack,
+ null,
+ null,
+ null,
+ null,
+ null,
+ ItemUtils.getSimpleStack(Item.getItemFromBlock(Blocks.planks), 4));
GT_ModHandler.addCraftingRecipe(
- GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Wood, 2L),
- GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "sLf", 'L', GT_Utility.copyAmount(1L, aStack) });
+ GT_OreDictUnificator.get(OrePrefixes.stickLong, Materials.Wood, 2L),
+ GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "sLf", 'L', GT_Utility.copyAmount(1L, aStack) });
final short aMeta = (short) aStack.getItemDamage();
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);
GT_ModHandler.removeFurnaceSmelting(GT_Utility.copyAmount(1L, aStack));
}
if (aMeta == 32767) {
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);
GT_ModHandler.removeFurnaceSmelting(new ItemStack(aStack.getItem(), 1, i));
}
@@ -112,26 +111,28 @@ public class BOP_Block_Registrator {
} else {
final ItemStack tPlanks = GT_Utility.copy(tStack);
tPlanks.stackSize = tPlanks.stackSize * 3 / 2;
- GT_Values.RA.stdBuilder().itemInputs(new ItemStack(aStack.getItem(), 1, i))
- .itemOutputs(
- GT_Utility.copyAmount(
- GT_Mod.gregtechproxy.mNerfedWoodPlank ? ((long) tStack.stackSize)
- : (((long) tStack.stackSize) * 5L / 4),
- tStack),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 2L))
- .duration(10 * SECONDS).eut(8).addTo(cutterRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(new ItemStack(aStack.getItem(), 1, i))
+ .itemOutputs(
+ GT_Utility.copyAmount(
+ GT_Mod.gregtechproxy.mNerfedWoodPlank ? ((long) tStack.stackSize)
+ : (((long) tStack.stackSize) * 5L / 4),
+ tStack),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 2L))
+ .duration(10 * SECONDS)
+ .eut(8)
+ .addTo(cutterRecipes);
GT_ModHandler.removeRecipe(new ItemStack(aStack.getItem(), 1, i));
GT_ModHandler.addCraftingRecipe(
- GT_Utility.copyAmount(
- GT_Mod.gregtechproxy.mNerfedWoodPlank ? ((long) tStack.stackSize)
- : (((long) tStack.stackSize) * 5L / 4),
- tStack),
- new Object[] { "s", "L", 'L', new ItemStack(aStack.getItem(), 1, i) });
+ GT_Utility.copyAmount(
+ GT_Mod.gregtechproxy.mNerfedWoodPlank ? ((long) tStack.stackSize)
+ : (((long) tStack.stackSize) * 5L / 4),
+ tStack),
+ 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),
- new Object[] { new ItemStack(aStack.getItem(), 1, i) });
+ GT_Utility
+ .copyAmount(tStack.stackSize / (GT_Mod.gregtechproxy.mNerfedWoodPlank ? 2 : 1), tStack),
+ new Object[] { new ItemStack(aStack.getItem(), 1, i) });
}
}
} else {
@@ -139,31 +140,32 @@ public class BOP_Block_Registrator {
if (tStack2 != null) {
final ItemStack tPlanks2 = GT_Utility.copy(tStack2);
tPlanks2.stackSize = tPlanks2.stackSize * 3 / 2;
- GT_Values.RA.stdBuilder().itemInputs(GT_Utility.copyAmount(1L, aStack))
- .itemOutputs(
- GT_Utility.copyAmount(
- GT_Mod.gregtechproxy.mNerfedWoodPlank ? ((long) tStack2.stackSize)
- : (((long) tStack2.stackSize) * 5L / 4),
- tStack2),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 2L))
- .duration(10 * SECONDS).eut(8).addTo(cutterRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(GT_Utility.copyAmount(1L, aStack))
+ .itemOutputs(
+ GT_Utility.copyAmount(
+ GT_Mod.gregtechproxy.mNerfedWoodPlank ? ((long) tStack2.stackSize)
+ : (((long) tStack2.stackSize) * 5L / 4),
+ tStack2),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 2L))
+ .duration(10 * SECONDS)
+ .eut(8)
+ .addTo(cutterRecipes);
GT_ModHandler.removeRecipe(GT_Utility.copyAmount(1L, aStack));
GT_ModHandler.addCraftingRecipe(
- GT_Utility.copyAmount(
- GT_Mod.gregtechproxy.mNerfedWoodPlank ? ((long) tStack2.stackSize)
- : (((long) tStack2.stackSize) * 5L / 4),
- tStack2),
- new Object[] { "s", "L", 'L', GT_Utility.copyAmount(1L, aStack) });
+ GT_Utility.copyAmount(
+ GT_Mod.gregtechproxy.mNerfedWoodPlank ? ((long) tStack2.stackSize)
+ : (((long) tStack2.stackSize) * 5L / 4),
+ tStack2),
+ new Object[] { "s", "L", 'L', GT_Utility.copyAmount(1L, aStack) });
GT_ModHandler.addShapelessCraftingRecipe(
- GT_Utility.copyAmount(
- tStack2.stackSize / (GT_Mod.gregtechproxy.mNerfedWoodPlank ? 2 : 1),
- tStack2),
- new Object[] { GT_Utility.copyAmount(1L, aStack) });
+ GT_Utility.copyAmount(tStack2.stackSize / (GT_Mod.gregtechproxy.mNerfedWoodPlank ? 2 : 1), tStack2),
+ 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);
GT_ModHandler.removeFurnaceSmelting(GT_Utility.copyAmount(1L, aStack));
}
diff --git a/src/main/java/gtPlusPlus/xmod/bop/blocks/base/LeavesBase.java b/src/main/java/gtPlusPlus/xmod/bop/blocks/base/LeavesBase.java
index 3e7a6a0105..171bb9a58c 100644
--- a/src/main/java/gtPlusPlus/xmod/bop/blocks/base/LeavesBase.java
+++ b/src/main/java/gtPlusPlus/xmod/bop/blocks/base/LeavesBase.java
@@ -78,7 +78,7 @@ public class LeavesBase extends BlockLeaves {
@SideOnly(Side.CLIENT)
public IIcon getIcon(int ordinalSide, int metaID) {
return (metaID & 3) == 1 ? this.leafTextures[this.field_150127_b][1]
- : this.leafTextures[this.field_150127_b][0];
+ : this.leafTextures[this.field_150127_b][0];
}
@Override
@@ -93,7 +93,7 @@ public class LeavesBase extends BlockLeaves {
this.leafTextures[i] = new IIcon[leafType[i].length];
for (int j = 0; j < leafType[i].length; ++j) {
this.leafTextures[i][j] = iIcon
- .registerIcon(GTPlusPlus.ID + ":" + "trees/" + "leaves/" + "leaves_" + leafType[i][j]);
+ .registerIcon(GTPlusPlus.ID + ":" + "trees/" + "leaves/" + "leaves_" + leafType[i][j]);
}
}
setVanillaVariable(this.field_150129_M, this.leafTextures);
diff --git a/src/main/java/gtPlusPlus/xmod/bop/blocks/base/LogBase.java b/src/main/java/gtPlusPlus/xmod/bop/blocks/base/LogBase.java
index 3270fea55b..2cf8ba1fbc 100644
--- a/src/main/java/gtPlusPlus/xmod/bop/blocks/base/LogBase.java
+++ b/src/main/java/gtPlusPlus/xmod/bop/blocks/base/LogBase.java
@@ -32,9 +32,9 @@ public abstract class LogBase extends BlockLog {
GameRegistry.registerBlock(this, ItemBlock.class, blockName);
this.setBlockName(blockName);
ItemUtils.addItemToOreDictionary(
- ItemUtils.getSimpleStack(this),
- "log" + Utils.sanitizeString(blockNameLocalized),
- true);
+ ItemUtils.getSimpleStack(this),
+ "log" + Utils.sanitizeString(blockNameLocalized),
+ true);
ItemUtils.addItemToOreDictionary(ItemUtils.getSimpleStack(this), "logWood", true);
this.setCreativeTab(AddToCreativeTab.tabBOP);
Blocks.fire.setFireInfo(this, 20, 100);
@@ -76,7 +76,7 @@ public abstract class LogBase extends BlockLog {
for (int i = 0; i < this.textureSide.length; ++i) {
this.textureSide[i] = iIcon.registerIcon(GTPlusPlus.ID + ":" + "trees/" + "logs/" + "log_" + treeType[i]);
this.textureTop[i] = iIcon
- .registerIcon(GTPlusPlus.ID + ":" + "trees/" + "logs/" + "log_" + treeType[i] + "_top");
+ .registerIcon(GTPlusPlus.ID + ":" + "trees/" + "logs/" + "log_" + treeType[i] + "_top");
}
setVanillaVariable(this.field_150167_a, this.textureSide);
diff --git a/src/main/java/gtPlusPlus/xmod/bop/blocks/base/SaplingBase.java b/src/main/java/gtPlusPlus/xmod/bop/blocks/base/SaplingBase.java
index 51dd580ab4..ff5c8770d4 100644
--- a/src/main/java/gtPlusPlus/xmod/bop/blocks/base/SaplingBase.java
+++ b/src/main/java/gtPlusPlus/xmod/bop/blocks/base/SaplingBase.java
@@ -133,7 +133,7 @@ public class SaplingBase extends BlockSapling {
@Override
public boolean func_149880_a(World world, int p_149880_2_, int p_149880_3_, int p_149880_4_, int p_149880_5_) {
return world.getBlock(p_149880_2_, p_149880_3_, p_149880_4_) == this
- && (world.getBlockMetadata(p_149880_2_, p_149880_3_, p_149880_4_) & 7) == p_149880_5_;
+ && (world.getBlockMetadata(p_149880_2_, p_149880_3_, p_149880_4_) & 7) == p_149880_5_;
}
/**
@@ -160,7 +160,7 @@ public class SaplingBase extends BlockSapling {
public void registerBlockIcons(IIconRegister iIcon) {
for (int i = 0; i < saplingTextures.length; ++i) {
saplingTextures[i] = iIcon
- .registerIcon(GTPlusPlus.ID + ":" + "trees/" + "saplings/" + "sapling_" + saplingTypes[i]);
+ .registerIcon(GTPlusPlus.ID + ":" + "trees/" + "saplings/" + "sapling_" + saplingTypes[i]);
}
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/bop/blocks/pine/LeavesPineTree.java b/src/main/java/gtPlusPlus/xmod/bop/blocks/pine/LeavesPineTree.java
index d03473d0f7..93f7e59a1e 100644
--- a/src/main/java/gtPlusPlus/xmod/bop/blocks/pine/LeavesPineTree.java
+++ b/src/main/java/gtPlusPlus/xmod/bop/blocks/pine/LeavesPineTree.java
@@ -31,11 +31,11 @@ public class LeavesPineTree extends LeavesBase {
Logger.INFO("Dropping Bonus Drops");
if (MathUtils.randInt(0, 10) >= 9) {
this.dropBlockAsItem(
- world,
- x,
- y,
- z,
- ItemUtils.getSimpleStack(AgriculturalChem.mPinecone, MathUtils.randInt(1, 4)));
+ world,
+ x,
+ y,
+ z,
+ ItemUtils.getSimpleStack(AgriculturalChem.mPinecone, MathUtils.randInt(1, 4)));
}
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/bop/blocks/rainforest/SaplingRainforestTree.java b/src/main/java/gtPlusPlus/xmod/bop/blocks/rainforest/SaplingRainforestTree.java
index bc5cadc4bb..362eb2f541 100644
--- a/src/main/java/gtPlusPlus/xmod/bop/blocks/rainforest/SaplingRainforestTree.java
+++ b/src/main/java/gtPlusPlus/xmod/bop/blocks/rainforest/SaplingRainforestTree.java
@@ -43,13 +43,13 @@ public class SaplingRainforestTree extends SaplingBase {
world.setBlock(x, y, z, block, 0, 4);
}
Object o = new WorldGenRainForestTree_Ex(
- BOP_Block_Registrator.log_Rainforest,
- BOP_Block_Registrator.leaves_Rainforest,
- 0,
- 0,
- true,
- 50,
- 75);
+ BOP_Block_Registrator.log_Rainforest,
+ BOP_Block_Registrator.leaves_Rainforest,
+ 0,
+ 0,
+ true,
+ 50,
+ 75);
if (!((WorldGenerator) o).generate(world, rand, x + i1, y, z + j1)) {
if (flag) {
diff --git a/src/main/java/gtPlusPlus/xmod/bop/world/features/trees/WorldGenPineTree.java b/src/main/java/gtPlusPlus/xmod/bop/world/features/trees/WorldGenPineTree.java
index 4d8e61c2ac..bc97042c82 100644
--- a/src/main/java/gtPlusPlus/xmod/bop/world/features/trees/WorldGenPineTree.java
+++ b/src/main/java/gtPlusPlus/xmod/bop/world/features/trees/WorldGenPineTree.java
@@ -34,8 +34,8 @@ public class WorldGenPineTree extends WorldGenAbstractTree {
for (height = -2; height <= 2; ++height) {
for (branches = -2; branches <= 2; ++branches) {
if (world.isAirBlock(x + height, y - 1, z + branches)
- && world.isAirBlock(x + height, y - 2, z + branches)
- && !world.isAirBlock(x + height, y, z + branches)) {
+ && world.isAirBlock(x + height, y - 2, z + branches)
+ && !world.isAirBlock(x + height, y, z + branches)) {
return false;
}
}
@@ -160,7 +160,8 @@ public class WorldGenPineTree extends WorldGenAbstractTree {
}
public void buildBlock(World world, int x, int y, int z, Block block, int meta) {
- if (world.isAirBlock(x, y, z) || world.getBlock(x, y, z).isLeaves(world, x, y, z)) {
+ if (world.isAirBlock(x, y, z) || world.getBlock(x, y, z)
+ .isLeaves(world, x, y, z)) {
world.setBlock(x, y, z, block, meta, 2);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/bop/world/features/trees/WorldGenRainForestTree_Ex.java b/src/main/java/gtPlusPlus/xmod/bop/world/features/trees/WorldGenRainForestTree_Ex.java
index 225e639ede..d3ad2efaea 100644
--- a/src/main/java/gtPlusPlus/xmod/bop/world/features/trees/WorldGenRainForestTree_Ex.java
+++ b/src/main/java/gtPlusPlus/xmod/bop/world/features/trees/WorldGenRainForestTree_Ex.java
@@ -24,7 +24,7 @@ public class WorldGenRainForestTree_Ex extends WorldGenAbstractTree {
// WorldGenRainforestTree1(BOPCBlocks.logs4, BOPCBlocks.colorizedLeaves2, 3, 2, false, 8, 8);
public WorldGenRainForestTree_Ex(Block wood, Block leaves, int woodMeta, int leavesMeta, boolean doBlockNotify,
- int minTreeHeight, int randomTreeHeight) {
+ int minTreeHeight, int randomTreeHeight) {
super(doBlockNotify);
this.wood = wood;
this.leaves = leaves;
@@ -66,15 +66,15 @@ public class WorldGenRainForestTree_Ex extends WorldGenAbstractTree {
Block block2 = world.getBlock(x, y - 1, z);
boolean isSoil = block2
- .canSustainPlant(world, x, y - 1, z, ForgeDirection.UP, (BlockSapling) Blocks.sapling);
+ .canSustainPlant(world, x, y - 1, z, ForgeDirection.UP, (BlockSapling) Blocks.sapling);
if ((isSoil) && (y < 256 - treeHeight - 1)) {
block2.onPlantGrow(world, x, y - 1, z, x, y, z);
byte b0 = 3;
byte b1 = 0;
Logger.WARNING("Sapling located at X:" + x + " | Y:" + y + " | Z:" + z);
for (int k1 = y - b0 + treeHeight; k1 <= y + treeHeight; k1++) {
- Logger.WARNING(
- "[1]| k1 = " + k1 + " | y = " + y + " | b0 = " + b0 + " | l = " + treeHeight + " | ");
+ Logger
+ .WARNING("[1]| k1 = " + k1 + " | y = " + y + " | b0 = " + b0 + " | l = " + treeHeight + " | ");
int i3 = k1 - (y + treeHeight);
int l1 = b1 + 1 - i3;
for (int i2 = x - l1; i2 <= x + l1; i2++) {
@@ -82,10 +82,10 @@ public class WorldGenRainForestTree_Ex extends WorldGenAbstractTree {
Logger.WARNING("[2]| i2 = " + i2 + " | x = " + x + " | l1 = " + l1 + " | j2 = " + j2 + " | ");
for (int k2 = z - l1; k2 <= z + l1; k2++) {
int l2 = k2 - z;
- Logger.WARNING(
- "[3]| k2 = " + k2 + " | z = " + z + " | l1 = " + l1 + " | l2 = " + l2 + " | ");
+ Logger
+ .WARNING("[3]| k2 = " + k2 + " | z = " + z + " | l1 = " + l1 + " | l2 = " + l2 + " | ");
if ((Math.abs(j2) != l1) || (Math.abs(l2) != l1)
- || ((random.nextInt(2) != 0) && (i3 != 0))) {
+ || ((random.nextInt(2) != 0) && (i3 != 0))) {
Block block1 = world.getBlock(i2, k1, k2);
if ((block1.isAir(world, i2, k1, k2)) || (block1.isLeaves(world, i2, k1, k2))) {
Logger.WARNING("Setting something as leaves?");
@@ -115,24 +115,24 @@ public class WorldGenRainForestTree_Ex extends WorldGenAbstractTree {
for (int zDir = -5; zDir <= 5; zDir++) {
if (canRemoveLeafBlockLayer2(-5, 5, xDir, -5, 5, zDir)) {
Logger.WARNING(
- "Doing Nothing at " + "x=" + xDir + " | y=" + y + " z=" + zDir);
+ "Doing Nothing at " + "x=" + xDir + " | y=" + y + " z=" + zDir);
} else {
Logger.WARNING(
- "Trying to place leaves at " + "x="
- + xDir
- + " | y="
- + y
- + " z="
- + zDir);
+ "Trying to place leaves at " + "x="
+ + xDir
+ + " | y="
+ + y
+ + " z="
+ + zDir);
block5 = world.getBlock(x + xDir, y + k1, z + zDir);
if (block5.isAir(world, x + xDir, y + k1, x + zDir)) {
setBlockAndNotifyAdequately(
- world,
- x + xDir,
- y + k1,
- z + zDir,
- this.leaves,
- this.leavesMeta);
+ world,
+ x + xDir,
+ y + k1,
+ z + zDir,
+ this.leaves,
+ this.leavesMeta);
}
}
}
@@ -142,33 +142,33 @@ public class WorldGenRainForestTree_Ex extends WorldGenAbstractTree {
for (int zDir = -4; zDir <= 4; zDir++) {
if (canRemoveLeafBlockLayer2(-4, 4, xDir, -4, 4, zDir)) {
Logger.WARNING(
- "Doing Nothing at " + "x="
- + xDir
- + " | y="
- + y
- + k1
- + 1
- + " z="
- + zDir);
+ "Doing Nothing at " + "x="
+ + xDir
+ + " | y="
+ + y
+ + k1
+ + 1
+ + " z="
+ + zDir);
} else {
Logger.WARNING(
- "Trying to place leaves at " + "x="
- + xDir
- + " | y="
- + y
- + k1
- + 1
- + " z="
- + zDir);
+ "Trying to place leaves at " + "x="
+ + xDir
+ + " | y="
+ + y
+ + k1
+ + 1
+ + " z="
+ + zDir);
block5 = world.getBlock(x + xDir, y + k1 + 1, z + zDir);
if (block5.isAir(world, x + xDir, y + k1 + 1, x + zDir)) {
setBlockAndNotifyAdequately(
- world,
- x + xDir,
- y + k1 + 1,
- z + zDir,
- this.leaves,
- this.leavesMeta);
+ world,
+ x + xDir,
+ y + k1 + 1,
+ z + zDir,
+ this.leaves,
+ this.leavesMeta);
}
}
}
@@ -179,33 +179,33 @@ public class WorldGenRainForestTree_Ex extends WorldGenAbstractTree {
for (int zDir = -3; zDir <= 3; zDir++) {
if (canRemoveLeafBlockLayer2(-3, 3, xDir, -3, 3, zDir)) {
Logger.WARNING(
- "Doing Nothing at " + "x="
- + xDir
- + " | y="
- + y
- + k1
- + 2
- + " z="
- + zDir);
+ "Doing Nothing at " + "x="
+ + xDir
+ + " | y="
+ + y
+ + k1
+ + 2
+ + " z="
+ + zDir);
} else {
Logger.WARNING(
- "Trying to place leaves at " + "x="
- + xDir
- + " | y="
- + y
- + k1
- + 2
- + " z="
- + zDir);
+ "Trying to place leaves at " + "x="
+ + xDir
+ + " | y="
+ + y
+ + k1
+ + 2
+ + " z="
+ + zDir);
block5 = world.getBlock(x + xDir, y + k1 + 2, z + zDir);
if (block5.isAir(world, x + xDir, y + k1 + 2, x + zDir)) {
setBlockAndNotifyAdequately(
- world,
- x + xDir,
- y + k1 + 2,
- z + zDir,
- this.leaves,
- this.leavesMeta);
+ world,
+ x + xDir,
+ y + k1 + 2,
+ z + zDir,
+ this.leaves,
+ this.leavesMeta);
}
}
}
@@ -216,33 +216,33 @@ public class WorldGenRainForestTree_Ex extends WorldGenAbstractTree {
for (int zDir = -2; zDir <= 2; zDir++) {
if (canRemoveLeafBlockLayer2(-2, 2, xDir, -2, 2, zDir)) {
Logger.WARNING(
- "Doing Nothing at " + "x="
- + xDir
- + " | y="
- + y
- + k1
- + 3
- + " z="
- + zDir);
+ "Doing Nothing at " + "x="
+ + xDir
+ + " | y="
+ + y
+ + k1
+ + 3
+ + " z="
+ + zDir);
} else {
Logger.WARNING(
- "Trying to place leaves at " + "x="
- + xDir
- + " | y="
- + y
- + k1
- + 3
- + " z="
- + zDir);
+ "Trying to place leaves at " + "x="
+ + xDir
+ + " | y="
+ + y
+ + k1
+ + 3
+ + " z="
+ + zDir);
block5 = world.getBlock(x + xDir, y + k1 + 3, z + zDir);
if (block5.isAir(world, x + xDir, y + k1 + 3, x + zDir)) {
setBlockAndNotifyAdequately(
- world,
- x + xDir,
- y + k1 + 3,
- z + zDir,
- this.leaves,
- this.leavesMeta);
+ world,
+ x + xDir,
+ y + k1 + 3,
+ z + zDir,
+ this.leaves,
+ this.leavesMeta);
}
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/forestry/bees/custom/CustomCombs.java b/src/main/java/gtPlusPlus/xmod/forestry/bees/custom/CustomCombs.java
index 94f61296d6..3c00c79fcb 100644
--- a/src/main/java/gtPlusPlus/xmod/forestry/bees/custom/CustomCombs.java
+++ b/src/main/java/gtPlusPlus/xmod/forestry/bees/custom/CustomCombs.java
@@ -35,35 +35,35 @@ public enum CustomCombs {
SAND("sand", true, Materials.Sand, 100),;
private static final int[][] colours = new int[][] {
- { Utils.rgbtoHexValue(75, 75, 75), Utils.rgbtoHexValue(125, 125, 125) }, // SILICON
- { Utils.rgbtoHexValue(55, 55, 55), Utils.rgbtoHexValue(75, 75, 75) }, // RUBBER
- { Utils.rgbtoHexValue(245, 245, 245), Utils.rgbtoHexValue(175, 175, 175) }, // PLASTIC
- { Utils.rgbtoHexValue(150, 150, 150), Utils.rgbtoHexValue(75, 75, 75) }, // PTFE
- { Utils.rgbtoHexValue(33, 26, 24), Utils.rgbtoHexValue(23, 16, 14) }, // PBS
- // Unused
- { Utils.rgbtoHexValue(33, 225, 24), Utils.rgbtoHexValue(23, 175, 14) }, // Biofuel
- { Utils.rgbtoHexValue(255, 128, 0), Utils.rgbtoHexValue(220, 156, 32) }, // Ethanol
- { Utils.rgbtoHexValue(75, 75, 75), Utils.rgbtoHexValue(125, 125, 125) }, //
- { Utils.rgbtoHexValue(75, 75, 75), Utils.rgbtoHexValue(125, 125, 125) }, //
- { Utils.rgbtoHexValue(75, 75, 75), Utils.rgbtoHexValue(125, 125, 125) }, //
- { Utils.rgbtoHexValue(75, 75, 75), Utils.rgbtoHexValue(125, 125, 125) }, //
- { Utils.rgbtoHexValue(30, 230, 230), Utils.rgbtoHexValue(10, 150, 150) }, // Fluorine
- { Utils.rgbtoHexValue(75, 75, 75), Utils.rgbtoHexValue(125, 125, 125) }, //
- { Utils.rgbtoHexValue(250, 250, 20), Utils.rgbtoHexValue(200, 200, 5) }, // Force
- { Utils.rgbtoHexValue(60, 180, 200), Utils.rgbtoHexValue(40, 150, 170) }, // Nikolite
- { Utils.rgbtoHexValue(75, 75, 75), Utils.rgbtoHexValue(125, 125, 125) }, //
- { Utils.rgbtoHexValue(75, 75, 75), Utils.rgbtoHexValue(125, 125, 125) }, //
- { Utils.rgbtoHexValue(75, 75, 75), Utils.rgbtoHexValue(125, 125, 125) }, //
- { Utils.rgbtoHexValue(75, 75, 75), Utils.rgbtoHexValue(125, 125, 125) }, //
- { Utils.rgbtoHexValue(75, 75, 75), Utils.rgbtoHexValue(125, 125, 125) }, { 0x666666, 0x525252 },
- { 0x2E8F5B, 0xDCC289 }, { 0x4C4C4C, 0x333333 }, { 0x808080, 0x999999 }, { 0x57CFFB, 0xBBEEFF },
- { 0x7D0F0F, 0xD11919 }, { 0x1947D1, 0x476CDA }, { 0xE6005C, 0xCC0052 }, { 0x0033CC, 0x00248F },
- { 0xCCFFFF, 0xA3CCCC }, { 0x248F24, 0xCCFFCC }, { 0x248F24, 0x2EB82E }, { 0xD4D4D4, 0x58300B },
- { 0xFF6600, 0xE65C00 }, { 0xD4D4D4, 0xDDDDDD }, { 0x666699, 0xA3A3CC }, { 0xDA9147, 0xDE9C59 },
- { 0x808080, 0x999999 }, { 0x8585AD, 0x9D9DBD }, { 0xF0DEF0, 0xF2E1F2 }, { 0xC2C2D6, 0xCECEDE },
- { 0xE6B800, 0xCFA600 }, { 0x008AB8, 0xD6D6FF }, { 0xD5D5D5, 0xAAAAAA }, { 0xCC99FF, 0xDBB8FF },
- { 0xEBA1EB, 0xF2C3F2 }, { 0x62626D, 0x161620 }, { 0xE6E6E6, 0xFFFFCC }, { 0xDADADA, 0xD1D1E0 },
- { 0x19AF19, 0x169E16 }, { 0x335C33, 0x6B8F00 }, { 0x003300, 0x002400 }, };
+ { Utils.rgbtoHexValue(75, 75, 75), Utils.rgbtoHexValue(125, 125, 125) }, // SILICON
+ { Utils.rgbtoHexValue(55, 55, 55), Utils.rgbtoHexValue(75, 75, 75) }, // RUBBER
+ { Utils.rgbtoHexValue(245, 245, 245), Utils.rgbtoHexValue(175, 175, 175) }, // PLASTIC
+ { Utils.rgbtoHexValue(150, 150, 150), Utils.rgbtoHexValue(75, 75, 75) }, // PTFE
+ { Utils.rgbtoHexValue(33, 26, 24), Utils.rgbtoHexValue(23, 16, 14) }, // PBS
+ // Unused
+ { Utils.rgbtoHexValue(33, 225, 24), Utils.rgbtoHexValue(23, 175, 14) }, // Biofuel
+ { Utils.rgbtoHexValue(255, 128, 0), Utils.rgbtoHexValue(220, 156, 32) }, // Ethanol
+ { Utils.rgbtoHexValue(75, 75, 75), Utils.rgbtoHexValue(125, 125, 125) }, //
+ { Utils.rgbtoHexValue(75, 75, 75), Utils.rgbtoHexValue(125, 125, 125) }, //
+ { Utils.rgbtoHexValue(75, 75, 75), Utils.rgbtoHexValue(125, 125, 125) }, //
+ { Utils.rgbtoHexValue(75, 75, 75), Utils.rgbtoHexValue(125, 125, 125) }, //
+ { Utils.rgbtoHexValue(30, 230, 230), Utils.rgbtoHexValue(10, 150, 150) }, // Fluorine
+ { Utils.rgbtoHexValue(75, 75, 75), Utils.rgbtoHexValue(125, 125, 125) }, //
+ { Utils.rgbtoHexValue(250, 250, 20), Utils.rgbtoHexValue(200, 200, 5) }, // Force
+ { Utils.rgbtoHexValue(60, 180, 200), Utils.rgbtoHexValue(40, 150, 170) }, // Nikolite
+ { Utils.rgbtoHexValue(75, 75, 75), Utils.rgbtoHexValue(125, 125, 125) }, //
+ { Utils.rgbtoHexValue(75, 75, 75), Utils.rgbtoHexValue(125, 125, 125) }, //
+ { Utils.rgbtoHexValue(75, 75, 75), Utils.rgbtoHexValue(125, 125, 125) }, //
+ { Utils.rgbtoHexValue(75, 75, 75), Utils.rgbtoHexValue(125, 125, 125) }, //
+ { Utils.rgbtoHexValue(75, 75, 75), Utils.rgbtoHexValue(125, 125, 125) }, { 0x666666, 0x525252 },
+ { 0x2E8F5B, 0xDCC289 }, { 0x4C4C4C, 0x333333 }, { 0x808080, 0x999999 }, { 0x57CFFB, 0xBBEEFF },
+ { 0x7D0F0F, 0xD11919 }, { 0x1947D1, 0x476CDA }, { 0xE6005C, 0xCC0052 }, { 0x0033CC, 0x00248F },
+ { 0xCCFFFF, 0xA3CCCC }, { 0x248F24, 0xCCFFCC }, { 0x248F24, 0x2EB82E }, { 0xD4D4D4, 0x58300B },
+ { 0xFF6600, 0xE65C00 }, { 0xD4D4D4, 0xDDDDDD }, { 0x666699, 0xA3A3CC }, { 0xDA9147, 0xDE9C59 },
+ { 0x808080, 0x999999 }, { 0x8585AD, 0x9D9DBD }, { 0xF0DEF0, 0xF2E1F2 }, { 0xC2C2D6, 0xCECEDE },
+ { 0xE6B800, 0xCFA600 }, { 0x008AB8, 0xD6D6FF }, { 0xD5D5D5, 0xAAAAAA }, { 0xCC99FF, 0xDBB8FF },
+ { 0xEBA1EB, 0xF2C3F2 }, { 0x62626D, 0x161620 }, { 0xE6E6E6, 0xFFFFCC }, { 0xDADADA, 0xD1D1E0 },
+ { 0x19AF19, 0x169E16 }, { 0x335C33, 0x6B8F00 }, { 0x003300, 0x002400 }, };
public boolean showInList;
public final Materials material;
public final int chance;
@@ -83,8 +83,9 @@ public enum CustomCombs {
public String getName() {
// return "gt.comb."+this.name;
return 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 int[] getColours() {
diff --git a/src/main/java/gtPlusPlus/xmod/forestry/bees/custom/GTPP_Bee_Definition.java b/src/main/java/gtPlusPlus/xmod/forestry/bees/custom/GTPP_Bee_Definition.java
index 4c8912b21e..0cdb49a9b5 100644
--- a/src/main/java/gtPlusPlus/xmod/forestry/bees/custom/GTPP_Bee_Definition.java
+++ b/src/main/java/gtPlusPlus/xmod/forestry/bees/custom/GTPP_Bee_Definition.java
@@ -36,7 +36,7 @@ import gtPlusPlus.core.util.reflect.ReflectionUtils;
public enum GTPP_Bee_Definition implements IBeeDefinition {
SILICON(GTPP_Branch_Definition.ORGANIC, "Silicon", true, Utils.rgbtoHexValue(75, 75, 75),
- Utils.rgbtoHexValue(125, 125, 125)) {
+ Utils.rgbtoHexValue(125, 125, 125)) {
@Override
protected void setSpeciesProperties(IAlleleBeeSpeciesCustom beeSpecies) {
@@ -54,14 +54,14 @@ public enum GTPP_Bee_Definition implements IBeeDefinition {
@Override
protected void registerMutations() {
IBeeMutationCustom tMutation = registerMutation(
- getGregtechBeeType("SLIMEBALL"),
- getGregtechBeeType("STICKYRESIN"),
- 10);
+ getGregtechBeeType("SLIMEBALL"),
+ getGregtechBeeType("STICKYRESIN"),
+ 10);
}
},
RUBBER(GTPP_Branch_Definition.ORGANIC, "Rubber", true, Utils.rgbtoHexValue(55, 55, 55),
- Utils.rgbtoHexValue(75, 75, 75)) {
+ Utils.rgbtoHexValue(75, 75, 75)) {
@Override
protected void setSpeciesProperties(IAlleleBeeSpeciesCustom beeSpecies) {
@@ -79,14 +79,14 @@ public enum GTPP_Bee_Definition implements IBeeDefinition {
@Override
protected void registerMutations() {
IBeeMutationCustom tMutation = registerMutation(
- getGregtechBeeType("SLIMEBALL"),
- getGregtechBeeType("STICKYRESIN"),
- 10);
+ getGregtechBeeType("SLIMEBALL"),
+ getGregtechBeeType("STICKYRESIN"),
+ 10);
}
},
PLASTIC(GTPP_Branch_Definition.ORGANIC, "Plastic", true, Utils.rgbtoHexValue(245, 245, 245),
- Utils.rgbtoHexValue(175, 175, 175)) {
+ Utils.rgbtoHexValue(175, 175, 175)) {
@Override
protected void setSpeciesProperties(IAlleleBeeSpeciesCustom beeSpecies) {
@@ -108,7 +108,7 @@ public enum GTPP_Bee_Definition implements IBeeDefinition {
},
PTFE(GTPP_Branch_Definition.ORGANIC, "Ptfe", true, Utils.rgbtoHexValue(150, 150, 150),
- Utils.rgbtoHexValue(75, 75, 75)) {
+ Utils.rgbtoHexValue(75, 75, 75)) {
@Override
protected void setSpeciesProperties(IAlleleBeeSpeciesCustom beeSpecies) {
@@ -154,7 +154,7 @@ public enum GTPP_Bee_Definition implements IBeeDefinition {
* Fuels
*/
BIOMASS(GTPP_Branch_Definition.ORGANIC, "Biomass", true, Utils.rgbtoHexValue(33, 225, 24),
- Utils.rgbtoHexValue(23, 175, 14)) {
+ Utils.rgbtoHexValue(23, 175, 14)) {
@Override
protected void setSpeciesProperties(IAlleleBeeSpeciesCustom beeSpecies) {
@@ -177,7 +177,7 @@ public enum GTPP_Bee_Definition implements IBeeDefinition {
},
ETHANOL(GTPP_Branch_Definition.ORGANIC, "Ethanol", true, Utils.rgbtoHexValue(255, 128, 0),
- Utils.rgbtoHexValue(220, 156, 32)) {
+ Utils.rgbtoHexValue(220, 156, 32)) {
@Override
protected void setSpeciesProperties(IAlleleBeeSpeciesCustom beeSpecies) {
@@ -203,7 +203,7 @@ public enum GTPP_Bee_Definition implements IBeeDefinition {
* Materials
*/
FLUORINE(GTPP_Branch_Definition.ORGANIC, "Fluorine", true, Utils.rgbtoHexValue(30, 230, 230),
- Utils.rgbtoHexValue(10, 150, 150)) {
+ Utils.rgbtoHexValue(10, 150, 150)) {
@Override
protected void setSpeciesProperties(IAlleleBeeSpeciesCustom beeSpecies) {
@@ -221,9 +221,9 @@ public enum GTPP_Bee_Definition implements IBeeDefinition {
@Override
protected void registerMutations() {
IBeeMutationCustom tMutation = registerMutation(
- getGregtechBeeType("LAPIS"),
- getGregtechBeeType("SAPPHIRE"),
- 5);
+ getGregtechBeeType("LAPIS"),
+ getGregtechBeeType("SAPPHIRE"),
+ 5);
tMutation.restrictBiomeType(Type.COLD);
}
},
@@ -232,7 +232,7 @@ public enum GTPP_Bee_Definition implements IBeeDefinition {
// Force
FORCE(GTPP_Branch_Definition.METAL, "Force", true, Utils.rgbtoHexValue(250, 250, 20),
- Utils.rgbtoHexValue(200, 200, 5)) {
+ Utils.rgbtoHexValue(200, 200, 5)) {
@Override
protected void setSpeciesProperties(IAlleleBeeSpeciesCustom beeSpecies) {
@@ -252,16 +252,16 @@ public enum GTPP_Bee_Definition implements IBeeDefinition {
@Override
protected void registerMutations() {
IBeeMutationCustom tMutation = registerMutation(
- getGregtechBeeType("STEEL"),
- getGregtechBeeType("GOLD"),
- 10);
+ getGregtechBeeType("STEEL"),
+ getGregtechBeeType("GOLD"),
+ 10);
tMutation.restrictBiomeType(Type.HOT);
}
},
// Nikolite
NIKOLITE(GTPP_Branch_Definition.METAL, "Nikolite", true, Utils.rgbtoHexValue(60, 180, 200),
- Utils.rgbtoHexValue(40, 150, 170)) {
+ Utils.rgbtoHexValue(40, 150, 170)) {
@Override
protected void setSpeciesProperties(IAlleleBeeSpeciesCustom beeSpecies) {
@@ -279,9 +279,9 @@ public enum GTPP_Bee_Definition implements IBeeDefinition {
@Override
protected void registerMutations() {
IBeeMutationCustom tMutation = registerMutation(
- getGregtechBeeType("ALUMINIUM"),
- getGregtechBeeType("SILVER"),
- 8);
+ getGregtechBeeType("ALUMINIUM"),
+ getGregtechBeeType("SILVER"),
+ 8);
tMutation.restrictBiomeType(Type.HOT);
}
},
@@ -483,7 +483,8 @@ public enum GTPP_Bee_Definition implements IBeeDefinition {
private IBeeGenome genome;
GTPP_Bee_Definition(GTPP_Branch_Definition branch, String binomial, boolean dominant, int primary, int secondary) {
- String lowercaseName = this.toString().toLowerCase(Locale.ENGLISH);
+ String lowercaseName = this.toString()
+ .toLowerCase(Locale.ENGLISH);
String species = "species" + WordUtils.capitalize(lowercaseName);
String uid = "forestry." + species;
@@ -492,15 +493,15 @@ public enum GTPP_Bee_Definition implements IBeeDefinition {
this.branch = branch;
this.species = BeeManager.beeFactory.createSpecies(
- uid,
- dominant,
- "Sengir",
- name,
- description,
- branch.getBranch(),
- binomial,
- primary,
- secondary);
+ uid,
+ dominant,
+ "Sengir",
+ name,
+ description,
+ branch.getBranch(),
+ binomial,
+ primary,
+ secondary);
}
public static void initBees() {
@@ -513,8 +514,10 @@ public enum GTPP_Bee_Definition implements IBeeDefinition {
}
private static IAlleleBeeSpecies getSpecies(String name) {
- return (IAlleleBeeSpecies) AlleleManager.alleleRegistry
- .getAllele((new StringBuilder()).append("forestry.species").append(name).toString());
+ return (IAlleleBeeSpecies) AlleleManager.alleleRegistry.getAllele(
+ (new StringBuilder()).append("forestry.species")
+ .append(name)
+ .toString());
}
protected abstract void setSpeciesProperties(IAlleleBeeSpeciesCustom beeSpecies);
@@ -536,7 +539,7 @@ public enum GTPP_Bee_Definition implements IBeeDefinition {
}
protected final IBeeMutationCustom registerMutation(IAlleleBeeSpecies parent1, IAlleleBeeSpecies parent2,
- int chance) {
+ int chance) {
IAllele[] template = getTemplate();
Logger.DEBUG_BEES("parent1: " + (parent1 != null));
Logger.DEBUG_BEES("parent2: " + (parent2 != null));
diff --git a/src/main/java/gtPlusPlus/xmod/forestry/bees/custom/GTPP_Bees.java b/src/main/java/gtPlusPlus/xmod/forestry/bees/custom/GTPP_Bees.java
index 9267a32950..4d04e3ad31 100644
--- a/src/main/java/gtPlusPlus/xmod/forestry/bees/custom/GTPP_Bees.java
+++ b/src/main/java/gtPlusPlus/xmod/forestry/bees/custom/GTPP_Bees.java
@@ -74,7 +74,7 @@ public class GTPP_Bees {
// Nikolite may not exist, so lets make it.
dropNikoliteDust = ItemUtils
- .generateSpecialUseDusts("Nikolite", "Nikolite", Utils.rgbtoHexValue(60, 180, 200))[2];
+ .generateSpecialUseDusts("Nikolite", "Nikolite", Utils.rgbtoHexValue(60, 180, 200))[2];
if (ItemUtils.getItemStackOfAmountFromOreDictNoBroken("ingotNikolite", 1) == null) {
new BaseItemIngot_OLD("itemIngotNikolite", "Nikolite", Utils.rgbtoHexValue(60, 180, 200), 0);
@@ -91,8 +91,12 @@ public class GTPP_Bees {
}
private void addExtractorRecipe(ItemStack input, FluidStack output) {
- GT_Values.RA.stdBuilder().itemInputs(input).fluidOutputs(output).duration(1 * SECONDS + 10 * TICKS).eut(8)
- .addTo(fluidExtractionRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(input)
+ .fluidOutputs(output)
+ .duration(1 * SECONDS + 10 * TICKS)
+ .eut(8)
+ .addTo(fluidExtractionRecipes);
}
private static boolean tryGetBeesBoolean() {
@@ -150,7 +154,7 @@ public class GTPP_Bees {
}
} catch (NullPointerException | ClassNotFoundException | IllegalArgumentException | IllegalAccessException
- | NoSuchMethodException | SecurityException | InvocationTargetException e) {
+ | NoSuchMethodException | SecurityException | InvocationTargetException e) {
Logger.BEES("Bad Reflection. setMaterials()");
}
diff --git a/src/main/java/gtPlusPlus/xmod/forestry/bees/custom/GTPP_Branch_Definition.java b/src/main/java/gtPlusPlus/xmod/forestry/bees/custom/GTPP_Branch_Definition.java
index 92edae4356..94e6078c49 100644
--- a/src/main/java/gtPlusPlus/xmod/forestry/bees/custom/GTPP_Branch_Definition.java
+++ b/src/main/java/gtPlusPlus/xmod/forestry/bees/custom/GTPP_Branch_Definition.java
@@ -36,7 +36,7 @@ public enum GTPP_Branch_Definition {
return (IAllele[]) methodMyMethod.invoke(enumA);
} catch (ClassNotFoundException | NoSuchMethodException | SecurityException | IllegalAccessException
- | IllegalArgumentException | InvocationTargetException e) {
+ | IllegalArgumentException | InvocationTargetException e) {
Logger.INFO("[Bees] Bad Reflection. getTemplate()");
e.printStackTrace();
// gregtech.loaders.misc.GT_BranchDefinition.getTemplate()
@@ -57,7 +57,7 @@ public enum GTPP_Branch_Definition {
return (IClassification) methodMyMethod.invoke(enum_MY_SAMPLE_ENUM);
} catch (ClassNotFoundException | NoSuchMethodException | SecurityException | IllegalAccessException
- | IllegalArgumentException | InvocationTargetException e) {
+ | IllegalArgumentException | InvocationTargetException e) {
Logger.INFO("[Bees] Bad Reflection. getBranch()");
e.printStackTrace();
return null;
diff --git a/src/main/java/gtPlusPlus/xmod/forestry/bees/custom/ItemCustomComb.java b/src/main/java/gtPlusPlus/xmod/forestry/bees/custom/ItemCustomComb.java
index 3ada8ce513..63c0ae53ec 100644
--- a/src/main/java/gtPlusPlus/xmod/forestry/bees/custom/ItemCustomComb.java
+++ b/src/main/java/gtPlusPlus/xmod/forestry/bees/custom/ItemCustomComb.java
@@ -131,7 +131,12 @@ public class ItemCustomComb extends Item {
}
public void addSpecialCent(ItemStack tComb, ItemStack aOutput, int chance) {
- GT_Values.RA.stdBuilder().itemInputs(tComb).itemOutputs(aOutput, ItemList.FR_Wax.get(1))
- .outputChances(chance * 100, 3000).duration(6 * SECONDS + 8 * TICKS).eut(5).addTo(centrifugeRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(tComb)
+ .itemOutputs(aOutput, ItemList.FR_Wax.get(1))
+ .outputChances(chance * 100, 3000)
+ .duration(6 * SECONDS + 8 * TICKS)
+ .eut(5)
+ .addTo(centrifugeRecipes);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_CombType.java b/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_CombType.java
index 4bc47fa7bd..31b14ed4e6 100644
--- a/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_CombType.java
+++ b/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_CombType.java
@@ -32,12 +32,15 @@ public enum GTPP_CombType {
GTPP_CombType(int aID, String aName, boolean aShow, int aChance, int... aColour) {
this.mID = aID;
this.mName = aName;
- this.mNameUnlocal = aName.toLowerCase().replaceAll(" ", "");
+ this.mNameUnlocal = aName.toLowerCase()
+ .replaceAll(" ", "");
this.mChance = aChance;
this.mShowInList = aShow;
this.mColour = aColour;
map(aID, this);
- this.mMaterial = GTPP_Bees.sMaterialMappings.get(aName.toLowerCase().replaceAll(" ", ""));
+ this.mMaterial = GTPP_Bees.sMaterialMappings.get(
+ aName.toLowerCase()
+ .replaceAll(" ", ""));
GT_LanguageManager.addStringLocalization("gtplusplus.comb." + this.mNameUnlocal, this.mName + " Comb");
}
diff --git a/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_DropType.java b/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_DropType.java
index 6f43d4a43e..9819c586cd 100644
--- a/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_DropType.java
+++ b/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_DropType.java
@@ -32,11 +32,14 @@ public enum GTPP_DropType {
private GTPP_DropType(int aID, String aName, boolean aShow, int... aColour) {
this.mID = aID;
this.mName = aName;
- this.mNameUnlocal = aName.toLowerCase().replaceAll(" ", "");
+ this.mNameUnlocal = aName.toLowerCase()
+ .replaceAll(" ", "");
this.mShowInList = aShow;
this.mColour = aColour;
map(aID, this);
- this.mMaterial = GTPP_Bees.sMaterialMappings.get(aName.toLowerCase().replaceAll(" ", ""));
+ this.mMaterial = GTPP_Bees.sMaterialMappings.get(
+ aName.toLowerCase()
+ .replaceAll(" ", ""));
GT_LanguageManager.addStringLocalization("gtplusplus.drop." + this.mNameUnlocal, this.mName + " Drop");
}
diff --git a/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_PollenType.java b/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_PollenType.java
index acca5b810f..66451c7581 100644
--- a/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_PollenType.java
+++ b/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_PollenType.java
@@ -31,11 +31,14 @@ public enum GTPP_PollenType {
private GTPP_PollenType(int aID, String aName, boolean aShow, int... aColour) {
this.mID = aID;
this.mName = aName;
- this.mNameUnlocal = aName.toLowerCase().replaceAll(" ", "");
+ this.mNameUnlocal = aName.toLowerCase()
+ .replaceAll(" ", "");
this.mShowInList = aShow;
this.mColour = aColour;
map(aID, this);
- this.mMaterial = GTPP_Bees.sMaterialMappings.get(aName.toLowerCase().replaceAll(" ", ""));
+ this.mMaterial = GTPP_Bees.sMaterialMappings.get(
+ aName.toLowerCase()
+ .replaceAll(" ", ""));
GT_LanguageManager.addStringLocalization("gtplusplus.pollen." + this.mNameUnlocal, this.mName + " Pollen");
}
diff --git a/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_PropolisType.java b/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_PropolisType.java
index b76d79d387..eb3b617077 100644
--- a/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_PropolisType.java
+++ b/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_PropolisType.java
@@ -32,11 +32,14 @@ public enum GTPP_PropolisType {
private GTPP_PropolisType(int aID, String aName, boolean aShow, int aColour) {
this.mID = aID;
this.mName = aName;
- this.mNameUnlocal = aName.toLowerCase().replaceAll(" ", "");
+ this.mNameUnlocal = aName.toLowerCase()
+ .replaceAll(" ", "");
this.mShowInList = aShow;
this.mColour = aColour;
map(aID, this);
- this.mMaterial = GTPP_Bees.sMaterialMappings.get(aName.toLowerCase().replaceAll(" ", ""));
+ this.mMaterial = GTPP_Bees.sMaterialMappings.get(
+ aName.toLowerCase()
+ .replaceAll(" ", ""));
GT_LanguageManager.addStringLocalization("gtplusplus.propolis." + this.mNameUnlocal, this.mName + " Propolis");
}
diff --git a/src/main/java/gtPlusPlus/xmod/forestry/bees/items/FR_ItemRegistry.java b/src/main/java/gtPlusPlus/xmod/forestry/bees/items/FR_ItemRegistry.java
index ab8771e6db..b61a91710e 100644
--- a/src/main/java/gtPlusPlus/xmod/forestry/bees/items/FR_ItemRegistry.java
+++ b/src/main/java/gtPlusPlus/xmod/forestry/bees/items/FR_ItemRegistry.java
@@ -53,63 +53,63 @@ public class FR_ItemRegistry {
// Magic Bee like Frames
hiveFrameVoid = new MB_ItemFrame(
- MB_FrameType.USELESS,
- EnumRarity.common,
- "No more cheaty frames for GTNH players.");
+ MB_FrameType.USELESS,
+ EnumRarity.common,
+ "No more cheaty frames for GTNH players.");
hiveFrameAccelerated = new MB_ItemFrame(
- MB_FrameType.ACCELERATED,
- "Longevity for bees isn't very common, especially if they're working harder.");
+ MB_FrameType.ACCELERATED,
+ "Longevity for bees isn't very common, especially if they're working harder.");
hiveFrameMutagenic = new MB_ItemFrame(
- MB_FrameType.MUTAGENIC,
- EnumRarity.epic,
- "Evolution of the fittest, finest and fastest.");
+ MB_FrameType.MUTAGENIC,
+ EnumRarity.epic,
+ "Evolution of the fittest, finest and fastest.");
hiveFrameBusy = new MB_ItemFrame(MB_FrameType.BUSY, "Your bee will work harder and longer than you expected.");
ChestGenHooks.addItem(
- ChestGenHooks.STRONGHOLD_CORRIDOR,
- new WeightedRandomChestContent(new ItemStack(hiveFrameVoid), 1, 1, 14));
+ ChestGenHooks.STRONGHOLD_CORRIDOR,
+ new WeightedRandomChestContent(new ItemStack(hiveFrameVoid), 1, 1, 14));
ChestGenHooks.addItem(
- ChestGenHooks.STRONGHOLD_LIBRARY,
- new WeightedRandomChestContent(new ItemStack(hiveFrameVoid), 1, 3, 18));
+ ChestGenHooks.STRONGHOLD_LIBRARY,
+ new WeightedRandomChestContent(new ItemStack(hiveFrameVoid), 1, 3, 18));
ChestGenHooks.addItem(
- ChestGenHooks.DUNGEON_CHEST,
- new WeightedRandomChestContent(new ItemStack(hiveFrameVoid), 1, 1, 14));
+ ChestGenHooks.DUNGEON_CHEST,
+ new WeightedRandomChestContent(new ItemStack(hiveFrameVoid), 1, 1, 14));
ChestGenHooks.addItem(
- ChestGenHooks.MINESHAFT_CORRIDOR,
- new WeightedRandomChestContent(new ItemStack(hiveFrameVoid), 1, 1, 9));
+ ChestGenHooks.MINESHAFT_CORRIDOR,
+ new WeightedRandomChestContent(new ItemStack(hiveFrameVoid), 1, 1, 9));
ChestGenHooks.addItem(
- ChestGenHooks.PYRAMID_DESERT_CHEST,
- new WeightedRandomChestContent(new ItemStack(hiveFrameMutagenic), 1, 1, 9));
+ ChestGenHooks.PYRAMID_DESERT_CHEST,
+ new WeightedRandomChestContent(new ItemStack(hiveFrameMutagenic), 1, 1, 9));
ChestGenHooks.addItem(
- ChestGenHooks.PYRAMID_JUNGLE_CHEST,
- new WeightedRandomChestContent(new ItemStack(hiveFrameMutagenic), 1, 3, 12));
+ ChestGenHooks.PYRAMID_JUNGLE_CHEST,
+ new WeightedRandomChestContent(new ItemStack(hiveFrameMutagenic), 1, 3, 12));
ChestGenHooks.addItem(
- ChestGenHooks.MINESHAFT_CORRIDOR,
- new WeightedRandomChestContent(new ItemStack(hiveFrameMutagenic), 1, 3, 8));
+ ChestGenHooks.MINESHAFT_CORRIDOR,
+ new WeightedRandomChestContent(new ItemStack(hiveFrameMutagenic), 1, 3, 8));
ChestGenHooks.addItem(
- ChestGenHooks.DUNGEON_CHEST,
- new WeightedRandomChestContent(new ItemStack(hiveFrameMutagenic), 1, 3, 12));
+ ChestGenHooks.DUNGEON_CHEST,
+ new WeightedRandomChestContent(new ItemStack(hiveFrameMutagenic), 1, 3, 12));
// Frame Items added by bartimaeusnek
hiveFrameDecay = new MB_ItemFrame(
- MB_FrameType.DECAYING,
- EnumRarity.uncommon,
- "Who really needs stable genetics?");
+ MB_FrameType.DECAYING,
+ EnumRarity.uncommon,
+ "Who really needs stable genetics?");
hiveFrameSlow = new MB_ItemFrame(MB_FrameType.SLOWING, EnumRarity.common, "The journey is its own reward.");
hiveFrameStalilize = new MB_ItemFrame(
- MB_FrameType.STABILIZING,
- EnumRarity.rare,
- "If you wish your bees to keep their form.");
+ MB_FrameType.STABILIZING,
+ EnumRarity.rare,
+ "If you wish your bees to keep their form.");
hiveFrameArborist = new MB_ItemFrame(
- MB_FrameType.ARBORISTS,
- EnumRarity.common,
- "Who need Bees when you can have Trees?");
+ MB_FrameType.ARBORISTS,
+ EnumRarity.common,
+ "Who need Bees when you can have Trees?");
ChestGenHooks.addItem(
- ChestGenHooks.PYRAMID_JUNGLE_CHEST,
- new WeightedRandomChestContent(new ItemStack(hiveFrameArborist), 1, 4, 24));
+ ChestGenHooks.PYRAMID_JUNGLE_CHEST,
+ new WeightedRandomChestContent(new ItemStack(hiveFrameArborist), 1, 4, 24));
ChestGenHooks.addItem(
- ChestGenHooks.STRONGHOLD_LIBRARY,
- new WeightedRandomChestContent(new ItemStack(hiveFrameSlow), 1, 4, 24));
+ ChestGenHooks.STRONGHOLD_LIBRARY,
+ new WeightedRandomChestContent(new ItemStack(hiveFrameSlow), 1, 4, 24));
}
protected static <T extends Item> T registerItem(final T item, final String name) {
diff --git a/src/main/java/gtPlusPlus/xmod/forestry/bees/items/MB_FrameType.java b/src/main/java/gtPlusPlus/xmod/forestry/bees/items/MB_FrameType.java
index 95049ec5c8..418c05587f 100644
--- a/src/main/java/gtPlusPlus/xmod/forestry/bees/items/MB_FrameType.java
+++ b/src/main/java/gtPlusPlus/xmod/forestry/bees/items/MB_FrameType.java
@@ -44,13 +44,13 @@ public enum MB_FrameType implements IBeeModifier {
private final boolean isHellish;
MB_FrameType(final String name, final int damage, final float territory, final float mutation, final float lifespan,
- final float production, final float geneticDecay) {
+ final float production, final float geneticDecay) {
this(name, damage, territory, mutation, lifespan, production, 1f, geneticDecay, false, false, false, false);
}
MB_FrameType(final String name, final int damage, final float territory, final float mutation, final float lifespan,
- final float production, final float flowering, final float geneticDecay, final boolean sealed,
- final boolean lit, final boolean sunlit, final boolean hellish) {
+ final float production, final float flowering, final float geneticDecay, final boolean sealed,
+ final boolean lit, final boolean sunlit, final boolean hellish) {
this.frameName = name;
this.maxDamage = damage;
diff --git a/src/main/java/gtPlusPlus/xmod/forestry/bees/items/output/GTPP_Comb.java b/src/main/java/gtPlusPlus/xmod/forestry/bees/items/output/GTPP_Comb.java
index 6b075c2b60..7c9cc5a990 100644
--- a/src/main/java/gtPlusPlus/xmod/forestry/bees/items/output/GTPP_Comb.java
+++ b/src/main/java/gtPlusPlus/xmod/forestry/bees/items/output/GTPP_Comb.java
@@ -81,10 +81,12 @@ public class GTPP_Comb extends Item {
@Override
@SideOnly(Side.CLIENT)
public int getColorFromItemStack(ItemStack stack, int pass) {
- int colour = GTPP_CombType.get(stack.getItemDamage()).getColours()[0];
+ int colour = GTPP_CombType.get(stack.getItemDamage())
+ .getColours()[0];
if (pass >= 1) {
- colour = GTPP_CombType.get(stack.getItemDamage()).getColours()[1];
+ colour = GTPP_CombType.get(stack.getItemDamage())
+ .getColours()[1];
}
return colour;
@@ -92,23 +94,24 @@ public class GTPP_Comb extends Item {
@Override
public String getItemStackDisplayName(ItemStack stack) {
- return GTPP_CombType.get(stack.getItemDamage()).getName();
+ return GTPP_CombType.get(stack.getItemDamage())
+ .getName();
}
public static void initCombsRecipes() {
addChemicalRecipe(
- GTPP_CombType.DRAGONBLOOD,
- new ItemStack[] { GT_ModHandler.getModItem(Forestry.ID, "refractoryWax", 1L, 0),
- GTPP_Bees.propolis.getStackForType(GTPP_PropolisType.DRAGONBLOOD),
- GTPP_Bees.drop.getStackForType(GTPP_DropType.DRAGONBLOOD) },
- new int[] { 3000, 1500, 500 });
+ GTPP_CombType.DRAGONBLOOD,
+ new ItemStack[] { GT_ModHandler.getModItem(Forestry.ID, "refractoryWax", 1L, 0),
+ GTPP_Bees.propolis.getStackForType(GTPP_PropolisType.DRAGONBLOOD),
+ GTPP_Bees.drop.getStackForType(GTPP_DropType.DRAGONBLOOD) },
+ new int[] { 3000, 1500, 500 });
addChemicalRecipe(
- GTPP_CombType.FORCE,
- new ItemStack[] { GT_ModHandler.getModItem(Forestry.ID, "beeswax", 1L, 0),
- GTPP_Bees.propolis.getStackForType(GTPP_PropolisType.FORCE),
- GTPP_Bees.drop.getStackForType(GTPP_DropType.FORCE) },
- new int[] { 5000, 3000, 1000 });
+ GTPP_CombType.FORCE,
+ new ItemStack[] { GT_ModHandler.getModItem(Forestry.ID, "beeswax", 1L, 0),
+ GTPP_Bees.propolis.getStackForType(GTPP_PropolisType.FORCE),
+ GTPP_Bees.drop.getStackForType(GTPP_DropType.FORCE) },
+ new int[] { 5000, 3000, 1000 });
}
public static void addChemicalRecipe(GTPP_CombType aInputStack, ItemStack[] aOutputs, int[] aChances) {
@@ -116,13 +119,13 @@ public class GTPP_Comb extends Item {
long aEU = aMat.vVoltageMultiplier;
int aTier = Math.max(aMat.vTier / 2, 1);
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { aInputStack.getStackForType(aTier), },
- new FluidStack[] {},
- aOutputs,
- new FluidStack[] {},
- aChances,
- aTier * 20 * 60,
- aEU,
- aTier);
+ new ItemStack[] { aInputStack.getStackForType(aTier), },
+ new FluidStack[] {},
+ aOutputs,
+ new FluidStack[] {},
+ aChances,
+ aTier * 20 * 60,
+ aEU,
+ aTier);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/forestry/bees/items/output/GTPP_Drop.java b/src/main/java/gtPlusPlus/xmod/forestry/bees/items/output/GTPP_Drop.java
index e98eddbc4f..a84d11e74c 100644
--- a/src/main/java/gtPlusPlus/xmod/forestry/bees/items/output/GTPP_Drop.java
+++ b/src/main/java/gtPlusPlus/xmod/forestry/bees/items/output/GTPP_Drop.java
@@ -79,10 +79,12 @@ public class GTPP_Drop extends Item {
@Override
@SideOnly(Side.CLIENT)
public int getColorFromItemStack(ItemStack stack, int pass) {
- int colour = GTPP_DropType.get(stack.getItemDamage()).getColours()[0];
+ int colour = GTPP_DropType.get(stack.getItemDamage())
+ .getColours()[0];
if (pass >= 1) {
- colour = GTPP_DropType.get(stack.getItemDamage()).getColours()[1];
+ colour = GTPP_DropType.get(stack.getItemDamage())
+ .getColours()[1];
}
return colour;
@@ -90,11 +92,12 @@ public class GTPP_Drop extends Item {
@Override
public String getItemStackDisplayName(ItemStack stack) {
- return GTPP_DropType.get(stack.getItemDamage()).getName();
+ return GTPP_DropType.get(stack.getItemDamage())
+ .getName();
}
private static final int[] sFluidOutputs = new int[] { 144, 136, 128, 120, 112, 104, 96, 88, 80, 72, 64, 48, 32, 16,
- 8, 4 };
+ 8, 4 };
public static void initDropsRecipes() {
ItemStack tDrop;
@@ -102,10 +105,10 @@ public class GTPP_Drop extends Item {
for (GTPP_DropType aDrop : GTPP_Bees.sDropMappings.values()) {
tDrop = aDrop.getStackForType(1);
if (addProcess(
- tDrop,
- new FluidStack(aDrop.mMaterial.getFluid(), sFluidOutputs[aDrop.mMaterial.vTier]),
- aDrop.mMaterial.vTier * 20 * 30,
- aDrop.mMaterial.vVoltageMultiplier)) {
+ tDrop,
+ new FluidStack(aDrop.mMaterial.getFluid(), sFluidOutputs[aDrop.mMaterial.vTier]),
+ aDrop.mMaterial.vTier * 20 * 30,
+ aDrop.mMaterial.vVoltageMultiplier)) {
Logger.BEES("Added Drop extraction recipe for: " + aDrop.getName());
} else {
Logger.BEES("Failed to add Drop extraction recipe for: " + aDrop.getName());
@@ -117,8 +120,12 @@ public class GTPP_Drop extends Item {
if (aOutput == null) {
return false;
}
- GT_Values.RA.stdBuilder().itemInputs(tDrop).fluidOutputs(aOutput).duration(aDuration * TICKS).eut(aEUt)
- .addTo(fluidExtractionRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(tDrop)
+ .fluidOutputs(aOutput)
+ .duration(aDuration * TICKS)
+ .eut(aEUt)
+ .addTo(fluidExtractionRecipes);
return true;
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/forestry/bees/items/output/GTPP_Pollen.java b/src/main/java/gtPlusPlus/xmod/forestry/bees/items/output/GTPP_Pollen.java
index f8f403ed38..7e959151a0 100644
--- a/src/main/java/gtPlusPlus/xmod/forestry/bees/items/output/GTPP_Pollen.java
+++ b/src/main/java/gtPlusPlus/xmod/forestry/bees/items/output/GTPP_Pollen.java
@@ -73,10 +73,12 @@ public class GTPP_Pollen extends Item {
@Override
@SideOnly(Side.CLIENT)
public int getColorFromItemStack(ItemStack stack, int pass) {
- int colour = GTPP_PollenType.get(stack.getItemDamage()).getColours()[0];
+ int colour = GTPP_PollenType.get(stack.getItemDamage())
+ .getColours()[0];
if (pass >= 1) {
- colour = GTPP_PollenType.get(stack.getItemDamage()).getColours()[1];
+ colour = GTPP_PollenType.get(stack.getItemDamage())
+ .getColours()[1];
}
return colour;
@@ -84,6 +86,7 @@ public class GTPP_Pollen extends Item {
@Override
public String getItemStackDisplayName(ItemStack stack) {
- return GTPP_PollenType.get(stack.getItemDamage()).getName();
+ return GTPP_PollenType.get(stack.getItemDamage())
+ .getName();
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/forestry/bees/items/output/GTPP_Propolis.java b/src/main/java/gtPlusPlus/xmod/forestry/bees/items/output/GTPP_Propolis.java
index e8bb3aac7e..1c1bd95d09 100644
--- a/src/main/java/gtPlusPlus/xmod/forestry/bees/items/output/GTPP_Propolis.java
+++ b/src/main/java/gtPlusPlus/xmod/forestry/bees/items/output/GTPP_Propolis.java
@@ -66,12 +66,14 @@ public class GTPP_Propolis extends Item {
@Override
@SideOnly(Side.CLIENT)
public int getColorFromItemStack(ItemStack stack, int pass) {
- return GTPP_PropolisType.get(stack.getItemDamage()).getColours();
+ return GTPP_PropolisType.get(stack.getItemDamage())
+ .getColours();
}
@Override
public String getItemStackDisplayName(ItemStack stack) {
- return GTPP_PropolisType.get(stack.getItemDamage()).getName();
+ return GTPP_PropolisType.get(stack.getItemDamage())
+ .getName();
}
public static void initPropolisRecipes() {
@@ -80,11 +82,11 @@ public class GTPP_Propolis extends Item {
for (GTPP_PropolisType aProp : GTPP_Bees.sPropolisMappings.values()) {
tDrop = aProp.getStackForType(1);
if (addProcess(
- tDrop,
- aProp.mMaterial.getDust(1),
- Math.min(Math.max(10000 - (aProp.mMaterial.vTier * 625), 100), 10000),
- aProp.mMaterial.vTier * 20 * 15,
- aProp.mMaterial.vVoltageMultiplier)) {
+ tDrop,
+ aProp.mMaterial.getDust(1),
+ Math.min(Math.max(10000 - (aProp.mMaterial.vTier * 625), 100), 10000),
+ aProp.mMaterial.vTier * 20 * 15,
+ aProp.mMaterial.vVoltageMultiplier)) {
Logger.BEES("Added Propolis extraction recipe for: " + aProp.getName());
} else {
Logger.BEES("Failed to add Propolis extraction recipe for: " + aProp.getName());
@@ -96,8 +98,13 @@ public class GTPP_Propolis extends Item {
if (aOutput == null) {
return false;
}
- GT_Values.RA.stdBuilder().itemInputs(tDrop).itemOutputs(aOutput).outputChances(aChance)
- .duration(aDuration * TICKS).eut(aEUt).addTo(extractorRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(tDrop)
+ .itemOutputs(aOutput)
+ .outputChances(aChance)
+ .duration(aDuration * TICKS)
+ .eut(aEUt)
+ .addTo(extractorRecipes);
return true;
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/forestry/bees/recipe/FR_Gregtech_Recipes.java b/src/main/java/gtPlusPlus/xmod/forestry/bees/recipe/FR_Gregtech_Recipes.java
index f16abb573d..ce982cd67e 100644
--- a/src/main/java/gtPlusPlus/xmod/forestry/bees/recipe/FR_Gregtech_Recipes.java
+++ b/src/main/java/gtPlusPlus/xmod/forestry/bees/recipe/FR_Gregtech_Recipes.java
@@ -43,92 +43,92 @@ public class FR_Gregtech_Recipes {
public static void registerItems() {
// Magic Bee Like Frames
RecipeUtils.addShapedGregtechRecipe(
- rod_LongElectrum,
- rod_Electrum,
- rod_LongElectrum,
- rod_LongElectrum,
- foil_Electrum,
- rod_LongElectrum,
- rod_Electrum,
- rod_Electrum,
- rod_Electrum,
- hiveFrameAccelerated);
+ rod_LongElectrum,
+ rod_Electrum,
+ rod_LongElectrum,
+ rod_LongElectrum,
+ foil_Electrum,
+ rod_LongElectrum,
+ rod_Electrum,
+ rod_Electrum,
+ rod_Electrum,
+ hiveFrameAccelerated);
RecipeUtils.addShapedGregtechRecipe(
- rod_LongUranium,
- rod_Uranium,
- rod_LongUranium,
- rod_LongUranium,
- foil_Uranium235,
- rod_LongUranium,
- rod_Uranium,
- rod_Uranium,
- rod_Uranium,
- hiveFrameMutagenic);
+ rod_LongUranium,
+ rod_Uranium,
+ rod_LongUranium,
+ rod_LongUranium,
+ foil_Uranium235,
+ rod_LongUranium,
+ rod_Uranium,
+ rod_Uranium,
+ rod_Uranium,
+ hiveFrameMutagenic);
if (MagicBees.isModLoaded()) {
RecipeUtils.addShapelessGregtechRecipe(
- new ItemStack[] { hiveFrameVoid },
- ItemUtils.getCorrectStacktype("MagicBees:frameOblivion", 1));
+ new ItemStack[] { hiveFrameVoid },
+ ItemUtils.getCorrectStacktype("MagicBees:frameOblivion", 1));
}
RecipeUtils.addShapedGregtechRecipe(
- "stickLongBlueSteel",
- "stickBlueSteel",
- "stickLongBlueSteel",
- "stickLongBlueSteel",
- ItemUtils.getSimpleStack(Items.nether_star),
- "stickLongBlueSteel",
- "stickBlueSteel",
- "stickBlueSteel",
- "stickBlueSteel",
- hiveFrameBusy);
+ "stickLongBlueSteel",
+ "stickBlueSteel",
+ "stickLongBlueSteel",
+ "stickLongBlueSteel",
+ ItemUtils.getSimpleStack(Items.nether_star),
+ "stickLongBlueSteel",
+ "stickBlueSteel",
+ "stickBlueSteel",
+ "stickBlueSteel",
+ hiveFrameBusy);
// Frame Items added by bartimaeusnek
RecipeUtils.addShapedGregtechRecipe(
- ItemUtils.getItemStackOfAmountFromOreDict("stickLongTumbaga", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("stickTumbaga", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("stickLongTumbaga", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("stickLongTumbaga", 1),
- foil_Electrum,
- ItemUtils.getItemStackOfAmountFromOreDict("stickLongTumbaga", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("stickTumbaga", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("stickTumbaga", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("stickTumbaga", 1),
- hiveFrameSlow);
+ ItemUtils.getItemStackOfAmountFromOreDict("stickLongTumbaga", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("stickTumbaga", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("stickLongTumbaga", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("stickLongTumbaga", 1),
+ foil_Electrum,
+ ItemUtils.getItemStackOfAmountFromOreDict("stickLongTumbaga", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("stickTumbaga", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("stickTumbaga", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("stickTumbaga", 1),
+ hiveFrameSlow);
RecipeUtils.addShapedGregtechRecipe(
- "stickLongWroughtIron",
- "stickWroughtIron",
- "stickLongWroughtIron",
- "stickLongWroughtIron",
- "foilZinc",
- "stickLongWroughtIron",
- "stickWroughtIron",
- "stickWroughtIron",
- "stickWroughtIron",
- hiveFrameDecay);
+ "stickLongWroughtIron",
+ "stickWroughtIron",
+ "stickLongWroughtIron",
+ "stickLongWroughtIron",
+ "foilZinc",
+ "stickLongWroughtIron",
+ "stickWroughtIron",
+ "stickWroughtIron",
+ "stickWroughtIron",
+ hiveFrameDecay);
RecipeUtils.addShapedGregtechRecipe(
- "stickLongOsmiridium",
- "stickOsmiridium",
- "stickLongOsmiridium",
- "stickLongOsmiridium",
- "foilOsmiridium",
- "stickLongOsmiridium",
- "stickOsmiridium",
- "stickOsmiridium",
- "stickOsmiridium",
- hiveFrameStalilize);
+ "stickLongOsmiridium",
+ "stickOsmiridium",
+ "stickLongOsmiridium",
+ "stickLongOsmiridium",
+ "foilOsmiridium",
+ "stickLongOsmiridium",
+ "stickOsmiridium",
+ "stickOsmiridium",
+ "stickOsmiridium",
+ hiveFrameStalilize);
RecipeUtils.addShapedGregtechRecipe(
- "stickLongWoodSealed",
- "stickWoodSealed",
- "stickLongWoodSealed",
- "stickLongWoodSealed",
- Items.paper,
- "stickLongWoodSealed",
- "stickWoodSealed",
- "stickWoodSealed",
- "stickWoodSealed",
- hiveFrameArborist);
+ "stickLongWoodSealed",
+ "stickWoodSealed",
+ "stickLongWoodSealed",
+ "stickLongWoodSealed",
+ Items.paper,
+ "stickLongWoodSealed",
+ "stickWoodSealed",
+ "stickWoodSealed",
+ "stickWoodSealed",
+ hiveFrameArborist);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/forestry/bees/registry/GTPP_AlleleBeeSpecies.java b/src/main/java/gtPlusPlus/xmod/forestry/bees/registry/GTPP_AlleleBeeSpecies.java
index 67fe295dcc..05ce6e56e6 100644
--- a/src/main/java/gtPlusPlus/xmod/forestry/bees/registry/GTPP_AlleleBeeSpecies.java
+++ b/src/main/java/gtPlusPlus/xmod/forestry/bees/registry/GTPP_AlleleBeeSpecies.java
@@ -12,18 +12,17 @@ import forestry.apiculture.genetics.alleles.AlleleBeeSpecies;
public class GTPP_AlleleBeeSpecies extends AlleleBeeSpecies {
public GTPP_AlleleBeeSpecies(String uid, boolean dominant, String unlocalizedName, String authority,
- String unlocalizedDescription, IClassification branch, String binomial, int primaryColor,
- int secondaryColor) {
+ String unlocalizedDescription, IClassification branch, String binomial, int primaryColor, int secondaryColor) {
super(
- uid,
- unlocalizedName,
- authority,
- unlocalizedDescription,
- dominant,
- branch,
- binomial,
- primaryColor,
- secondaryColor);
+ uid,
+ unlocalizedName,
+ authority,
+ unlocalizedDescription,
+ dominant,
+ branch,
+ binomial,
+ primaryColor,
+ secondaryColor);
AlleleManager.alleleRegistry.registerAllele(this, EnumBeeChromosome.SPECIES);
}
diff --git a/src/main/java/gtPlusPlus/xmod/forestry/bees/registry/GTPP_BeeDefinition.java b/src/main/java/gtPlusPlus/xmod/forestry/bees/registry/GTPP_BeeDefinition.java
index dcfd524840..73418bdab8 100644
--- a/src/main/java/gtPlusPlus/xmod/forestry/bees/registry/GTPP_BeeDefinition.java
+++ b/src/main/java/gtPlusPlus/xmod/forestry/bees/registry/GTPP_BeeDefinition.java
@@ -52,41 +52,41 @@ import gtPlusPlus.xmod.forestry.bees.handler.GTPP_CombType;
public enum GTPP_BeeDefinition implements IBeeDefinition {
DRAGONBLOOD(GTPP_BranchDefinition.LEGENDARY, "Dragon Blood", STANDALONE.DRAGON_METAL, true,
- Utils.rgbtoHexValue(220, 20, 20), Utils.rgbtoHexValue(20, 20, 20), beeSpecies -> {
- beeSpecies.addProduct(GT_ModHandler.getModItem(Forestry.ID, "beeCombs", 1, 8), 0.30f);
- beeSpecies.addSpecialty(GTPP_Bees.combs.getStackForType(GTPP_CombType.DRAGONBLOOD), 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.effectAggressive);
- AlleleHelper.instance.set(template, TEMPERATURE_TOLERANCE, Tolerance.BOTH_3);
- AlleleHelper.instance.set(template, HUMIDITY_TOLERANCE, Tolerance.BOTH_3);
- }, dis -> {
- IBeeMutationCustom tMutation = dis.registerMutation("DRAGONESSENCE", "NEUTRONIUM", 2);
- tMutation.restrictHumidity(ARID);
- tMutation.requireResource(STANDALONE.DRAGON_METAL.getBlock(), 1);
- tMutation.addMutationCondition(new GT_Bees.DimensionMutationCondition(1, "End")); // End Dim
- }),
+ Utils.rgbtoHexValue(220, 20, 20), Utils.rgbtoHexValue(20, 20, 20), beeSpecies -> {
+ beeSpecies.addProduct(GT_ModHandler.getModItem(Forestry.ID, "beeCombs", 1, 8), 0.30f);
+ beeSpecies.addSpecialty(GTPP_Bees.combs.getStackForType(GTPP_CombType.DRAGONBLOOD), 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.effectAggressive);
+ AlleleHelper.instance.set(template, TEMPERATURE_TOLERANCE, Tolerance.BOTH_3);
+ AlleleHelper.instance.set(template, HUMIDITY_TOLERANCE, Tolerance.BOTH_3);
+ }, dis -> {
+ IBeeMutationCustom tMutation = dis.registerMutation("DRAGONESSENCE", "NEUTRONIUM", 2);
+ tMutation.restrictHumidity(ARID);
+ tMutation.requireResource(STANDALONE.DRAGON_METAL.getBlock(), 1);
+ tMutation.addMutationCondition(new GT_Bees.DimensionMutationCondition(1, "End")); // End Dim
+ }),
FORCE(GTPP_BranchDefinition.LEGENDARY, "Force", STANDALONE.FORCE, true, Utils.rgbtoHexValue(250, 250, 20),
- Utils.rgbtoHexValue(200, 200, 5), beeSpecies -> {
- beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.STONE), 0.30f);
- beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SALT), 0.15f);
- beeSpecies.addSpecialty(GTPP_Bees.combs.getStackForType(GTPP_CombType.FORCE), 0.10f);
- beeSpecies.setHumidity(EnumHumidity.NORMAL);
- beeSpecies.setTemperature(EnumTemperature.HOT);
- beeSpecies.setHasEffect();
- }, template -> {
- AlleleHelper.instance.set(template, LIFESPAN, Lifespan.NORMAL);
- AlleleHelper.instance.set(template, EFFECT, AlleleEffect.effectAggressive);
- AlleleHelper.instance.set(template, TEMPERATURE_TOLERANCE, Tolerance.BOTH_1);
- AlleleHelper.instance.set(template, HUMIDITY_TOLERANCE, Tolerance.BOTH_1);
- }, dis -> {
- IBeeMutationCustom tMutation = dis.registerMutation("STEEL", "GOLD", 10);
- tMutation.restrictHumidity(ARID);
- tMutation.restrictBiomeType(BiomeDictionary.Type.HOT);
- }),;
+ Utils.rgbtoHexValue(200, 200, 5), beeSpecies -> {
+ beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.STONE), 0.30f);
+ beeSpecies.addProduct(GT_Bees.combs.getStackForType(CombType.SALT), 0.15f);
+ beeSpecies.addSpecialty(GTPP_Bees.combs.getStackForType(GTPP_CombType.FORCE), 0.10f);
+ beeSpecies.setHumidity(EnumHumidity.NORMAL);
+ beeSpecies.setTemperature(EnumTemperature.HOT);
+ beeSpecies.setHasEffect();
+ }, template -> {
+ AlleleHelper.instance.set(template, LIFESPAN, Lifespan.NORMAL);
+ AlleleHelper.instance.set(template, EFFECT, AlleleEffect.effectAggressive);
+ AlleleHelper.instance.set(template, TEMPERATURE_TOLERANCE, Tolerance.BOTH_1);
+ AlleleHelper.instance.set(template, HUMIDITY_TOLERANCE, Tolerance.BOTH_1);
+ }, dis -> {
+ IBeeMutationCustom tMutation = dis.registerMutation("STEEL", "GOLD", 10);
+ tMutation.restrictHumidity(ARID);
+ tMutation.restrictBiomeType(BiomeDictionary.Type.HOT);
+ }),;
private final GTPP_BranchDefinition branch;
private final GTPP_AlleleBeeSpecies species;
@@ -97,44 +97,48 @@ public enum GTPP_BeeDefinition implements IBeeDefinition {
private IBeeGenome genome;
GTPP_BeeDefinition(GTPP_BranchDefinition branch, String binomial, Materials aMat, boolean dominant, int primary,
- int secondary, Consumer<GTPP_AlleleBeeSpecies> aSpeciesProperties, Consumer<IAllele[]> aAlleles,
- Consumer<GTPP_BeeDefinition> aMutations) {
+ int secondary, Consumer<GTPP_AlleleBeeSpecies> aSpeciesProperties, Consumer<IAllele[]> aAlleles,
+ Consumer<GTPP_BeeDefinition> aMutations) {
this(
- branch,
- binomial,
- MaterialUtils.generateMaterialFromGtENUM(aMat),
- dominant,
- primary,
- secondary,
- aSpeciesProperties,
- aAlleles,
- aMutations);
+ branch,
+ binomial,
+ MaterialUtils.generateMaterialFromGtENUM(aMat),
+ dominant,
+ primary,
+ secondary,
+ aSpeciesProperties,
+ aAlleles,
+ aMutations);
}
GTPP_BeeDefinition(GTPP_BranchDefinition branch, String binomial, Material aMat, boolean dominant, int primary,
- int secondary, Consumer<GTPP_AlleleBeeSpecies> aSpeciesProperties, Consumer<IAllele[]> aAlleles,
- Consumer<GTPP_BeeDefinition> aMutations) {
+ int secondary, Consumer<GTPP_AlleleBeeSpecies> aSpeciesProperties, Consumer<IAllele[]> aAlleles,
+ Consumer<GTPP_BeeDefinition> aMutations) {
this.mAlleles = aAlleles;
this.mMutations = aMutations;
this.mSpeciesProperties = aSpeciesProperties;
- String lowercaseName = this.toString().toLowerCase(Locale.ENGLISH);
+ String lowercaseName = this.toString()
+ .toLowerCase(Locale.ENGLISH);
String species = WordUtils.capitalize(binomial);
String uid = "gtpp.bee.species" + species;
String description = "for.description." + species;
String name = "for.bees.species." + lowercaseName;
GT_LanguageManager.addStringLocalization("for.bees.species." + lowercaseName, species, true);
- GTPP_Bees.sMaterialMappings.put(binomial.toLowerCase().replaceAll(" ", ""), aMat);
+ GTPP_Bees.sMaterialMappings.put(
+ binomial.toLowerCase()
+ .replaceAll(" ", ""),
+ aMat);
this.branch = branch;
this.species = new GTPP_AlleleBeeSpecies(
- uid,
- dominant,
- name,
- "GT++",
- description,
- branch.getBranch(),
- binomial,
- primary,
- secondary);
+ uid,
+ dominant,
+ name,
+ "GT++",
+ description,
+ branch.getBranch(),
+ binomial,
+ primary,
+ secondary);
}
public static void initBees() {
@@ -205,22 +209,22 @@ public enum GTPP_BeeDefinition implements IBeeDefinition {
}
private final IBeeMutationCustom registerMutation(IAlleleBeeSpecies parent1, IAlleleBeeSpecies parent2,
- int chance) {
+ int chance) {
return registerMutation(parent1, parent2, chance, 1f);
}
private final IBeeMutationCustom registerMutation(GTPP_BeeDefinition parent1, IAlleleBeeSpecies parent2,
- int chance) {
+ int chance) {
return registerMutation(parent1, parent2, chance, 1f);
}
private final IBeeMutationCustom registerMutation(IAlleleBeeSpecies parent1, GTPP_BeeDefinition parent2,
- int chance) {
+ int chance) {
return registerMutation(parent1, parent2, chance, 1f);
}
private final IBeeMutationCustom registerMutation(GTPP_BeeDefinition parent1, GTPP_BeeDefinition parent2,
- int chance) {
+ int chance) {
return registerMutation(parent1, parent2, chance, 1f);
}
@@ -234,22 +238,22 @@ public enum GTPP_BeeDefinition implements IBeeDefinition {
* chancedivider
*/
private final IBeeMutationCustom registerMutation(IAlleleBeeSpecies parent1, IAlleleBeeSpecies parent2, int chance,
- float chancedivider) {
+ float chancedivider) {
return new GTPP_Bee_Mutation(parent1, parent2, this.getTemplate(), chance, chancedivider);
}
private final IBeeMutationCustom registerMutation(GTPP_BeeDefinition parent1, IAlleleBeeSpecies parent2, int chance,
- float chancedivider) {
+ float chancedivider) {
return registerMutation(parent1.species, parent2, chance, chancedivider);
}
private final IBeeMutationCustom registerMutation(IAlleleBeeSpecies parent1, GTPP_BeeDefinition parent2, int chance,
- float chancedivider) {
+ float chancedivider) {
return registerMutation(parent1, parent2.species, chance, chancedivider);
}
private final IBeeMutationCustom registerMutation(GTPP_BeeDefinition parent1, GTPP_BeeDefinition parent2,
- int chance, float chancedivider) {
+ int chance, float chancedivider) {
return registerMutation(parent1.species, parent2, chance, chancedivider);
}
diff --git a/src/main/java/gtPlusPlus/xmod/forestry/bees/registry/GTPP_Bee_Mutation.java b/src/main/java/gtPlusPlus/xmod/forestry/bees/registry/GTPP_Bee_Mutation.java
index a5d351ea09..d20b7ffb73 100644
--- a/src/main/java/gtPlusPlus/xmod/forestry/bees/registry/GTPP_Bee_Mutation.java
+++ b/src/main/java/gtPlusPlus/xmod/forestry/bees/registry/GTPP_Bee_Mutation.java
@@ -25,7 +25,7 @@ public class GTPP_Bee_Mutation extends BeeMutation {
private final float split;
public GTPP_Bee_Mutation(IAlleleBeeSpecies bee0, IAlleleBeeSpecies bee1, IAllele[] result, int chance,
- float split) {
+ float split) {
super(bee0, bee1, result, chance);
this.split = split;
BeeManager.beeRoot.registerMutation(this);
@@ -38,7 +38,7 @@ public class GTPP_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;
@@ -52,7 +52,8 @@ public class GTPP_Bee_Mutation extends BeeMutation {
}
IBeeModifier beeHousingModifier = BeeManager.beeRoot.createBeeHousingModifier(housing);
- IBeeModifier beeModeModifier = BeeManager.beeRoot.getBeekeepingMode(world).getBeeModifier();
+ IBeeModifier beeModeModifier = BeeManager.beeRoot.getBeekeepingMode(world)
+ .getBeeModifier();
processedChance *= beeHousingModifier.getMutationModifier(genome0, genome1, processedChance);
processedChance *= beeModeModifier.getMutationModifier(genome0, genome1, processedChance);
@@ -62,7 +63,7 @@ public class GTPP_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<IMutationCondition> mutationConditions = null;
Field f = FieldUtils.getDeclaredField(Mutation.class, "mutationConditions", true);
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/enums/GregtechItemList.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/enums/GregtechItemList.java
index a9df5bf301..6367d22f77 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/enums/GregtechItemList.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/enums/GregtechItemList.java
@@ -872,7 +872,7 @@ public enum GregtechItemList implements GregtechItemContainer {
return false;
}
return GT_Utility
- .areUnificationsEqual((ItemStack) aStack, aWildcard ? this.getWildcard(1) : this.get(1), aIgnoreNBT);
+ .areUnificationsEqual((ItemStack) aStack, aWildcard ? this.getWildcard(1) : this.get(1), aIgnoreNBT);
}
public static Block getBlockFromStack(Object aStack) {
@@ -922,7 +922,7 @@ public enum GregtechItemList implements GregtechItemContainer {
return GT_Utility.copyAmount(aAmount, aReplacements);
}
return GT_Utility
- .copyAmountAndMetaData(aAmount, this.mStack.getMaxDamage() - 1, GT_OreDictUnificator.get(this.mStack));
+ .copyAmountAndMetaData(aAmount, this.mStack.getMaxDamage() - 1, GT_OreDictUnificator.get(this.mStack));
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/enums/GregtechOrePrefixes.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/enums/GregtechOrePrefixes.java
index 03ec5f3fc5..3185810495 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/enums/GregtechOrePrefixes.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/enums/GregtechOrePrefixes.java
@@ -46,28 +46,28 @@ public enum GregtechOrePrefixes {
* and Lapotronic Energy Orb Infinite (Cheaty)
*/
ingotHot("Hot Ingots", "Hot ", " Ingot", true, true, false, false, false, false, false, true, false, false, B[1],
- M * 1, 16, 12), // A hot Ingot, which has to be cooled down by a Vacuum Freezer.
+ M * 1, 16, 12), // A hot Ingot, which has to be cooled down by a Vacuum Freezer.
ingot("Ingots", "", " Ingot", true, true, false, false, false, false, false, true, false, false, B[1], M * 1, 64,
- 11), // A regular Ingot. Introduced by Eloraam
+ 11), // A regular Ingot. Introduced by Eloraam
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), // 1/9th of a Dust.
+ B[0] | B[1] | B[2] | B[3], M / 9, 64, 0), // 1/9th 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), // 1/4th of a Dust.
+ false, B[0] | B[1] | B[2] | B[3], M / 4, 64, 1), // 1/4th of a Dust.
dustImpure("Impure Dusts", "Impure Pile of ", " Dust", true, true, false, false, false, false, false, true, false,
- true, B[3], M * 1, 64, 3), // Dust with impurities. 1 Unit of Main Material and 1/9 - 1/4 Unit of secondary
- // Material
+ true, B[3], M * 1, 64, 3), // Dust with impurities. 1 Unit of Main Material and 1/9 - 1/4 Unit of secondary
+ // Material
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),
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), // Pure Dust worth of one Ingot or Gem. Introduced by Alblaka.
+ B[0] | B[1] | B[2] | B[3], M * 1, 64, 2), // Pure Dust worth of one Ingot or Gem. Introduced by Alblaka.
nugget("Nuggets", "", " Nugget", true, true, false, false, false, false, false, true, false, false, B[1], M / 9, 64,
- 9), // A Nugget. Introduced by Eloraam
+ 9), // A Nugget. Introduced by Eloraam
plate("Plates", "", " Plate", true, true, false, false, false, false, true, true, false, false, B[1] | B[2], M * 1,
- 64, 17), // Regular Plate made of one Ingot/Dust. Introduced by Calclavia
+ 64, 17), // Regular Plate made of one Ingot/Dust. Introduced by Calclavia
block("Storage Blocks", "Block of ", "", true, true, false, false, false, true, true, false, false, false, 0, M * 9,
- 64, 71), // Storage Block consisting out of 9 Ingots/Gems/Dusts. Introduced by CovertJaguar
+ 64, 71), // Storage Block consisting out of 9 Ingots/Gems/Dusts. Introduced by CovertJaguar
gem("Gemstones", "", "", true, true, true, false, false, false, true, true, false, false, B[2], M * 1, 64, 8), // A
// regular
// Gem
@@ -78,31 +78,31 @@ public enum GregtechOrePrefixes {
// by
// Eloraam
gemChipped("Chipped Gemstones", "Chipped ", "", true, true, true, false, false, false, true, true, false, false,
- B[2], M / 4, 64, 59), // A regular Gem worth one small Dust. Introduced by TerraFirmaCraft
+ B[2], M / 4, 64, 59), // A regular Gem worth one small Dust. Introduced by TerraFirmaCraft
gemFlawed("Flawed Gemstones", "Flawed ", "", true, true, true, false, false, false, true, true, false, false, B[2],
- M / 2, 64, 60), // A regular Gem worth two small Dusts. Introduced by TerraFirmaCraft
+ M / 2, 64, 60), // A regular Gem worth two small Dusts. Introduced by TerraFirmaCraft
gemFlawless("Flawless Gemstones", "Flawless ", "", true, true, true, false, false, false, true, true, false, false,
- B[2], M * 2, 32, 61), // A regular Gem worth two Dusts. Introduced by TerraFirmaCraft
+ B[2], M * 2, 32, 61), // A regular Gem worth two Dusts. Introduced by TerraFirmaCraft
gemExquisite("Exquisite Gemstones", "Exquisite ", "", true, true, true, false, false, false, true, true, false,
- false, B[2], M * 4, 16, 62), // A regular Gem worth four Dusts. Introduced by TerraFirmaCraft
+ false, B[2], M * 4, 16, 62), // A regular Gem worth four Dusts. Introduced by TerraFirmaCraft
stick("Sticks/Rods", "", " Rod", true, true, false, false, false, false, true, true, false, false, B[1] | B[2],
- M / 2, 64, 23), // Stick made of half an Ingot. Introduced by Eloraam
+ M / 2, 64, 23), // Stick made of half an Ingot. Introduced by Eloraam
type2("16x Wires", "16x ", " Wire", true, true, false, false, false, false, true, false, false, false, 0, M * 8, 64,
- -1),
+ -1),
toolAngleGrinder("Angle Grinder", "", "Angle Grinder", true, true, false, false, false, false, true, true, false,
- false, B[6], M * 6, 16, 37), // consisting out of 6 Ingots.
+ false, B[6], M * 6, 16, 37), // consisting out of 6 Ingots.
toolElectricSnips("Electric Snips", "", "Electric Snips", true, true, false, false, false, false, true, true, false,
- false, B[6], M * 6, 16, 37), // consisting out of 6 Ingots.
+ false, B[6], M * 6, 16, 37), // consisting out of 6 Ingots.
toolElectricLighter("Electric Lighter", "", "Electric Lighter", true, true, false, false, false, false, true, true,
- false, false, B[6], M * 6, 16, 37), // consisting out of 6 Ingots.
+ false, false, B[6], M * 6, 16, 37), // consisting out of 6 Ingots.
toolElectricButcherKnife("Electric Butcher Knife", "", "Electric Butcher Knife", true, true, false, false, false,
- false, true, true, false, false, B[6], M * 6, 16, 37), // consisting out of 6 Ingots.
+ false, true, true, false, false, B[6], M * 6, 16, 37), // consisting out of 6 Ingots.
batterySingleuse("Single Use Batteries", "", "", false, true, false, false, false, false, false, false, false,
- false, 0, -1, 64, -1),
+ false, 0, -1, 64, -1),
battery("Reusable Batteries", "", "", false, true, false, false, false, false, false, false, false, false, 0, -1,
- 64, -1), // Introduced by Calclavia
+ 64, -1), // Introduced by Calclavia
circuit("Circuits", "", "", true, true, false, false, false, false, false, false, false, false, 0, -1, 64, -1), // Introduced
// by
// Calclavia
@@ -119,7 +119,7 @@ public enum GregtechOrePrefixes {
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<TC_AspectStack> mAspects = new ArrayList<>();
public final Collection<GregtechOrePrefixes> mFamiliarPrefixes = new HashSet<>();
/**
@@ -129,7 +129,7 @@ public enum GregtechOrePrefixes {
public final long mMaterialAmount;
private final Collection<Materials> mNotGeneratedItems = new HashSet<>(), mIgnoredMaterials = new HashSet<>(),
- mGeneratedItems = new HashSet<>();
+ mGeneratedItems = new HashSet<>();
private final ArrayList<Interface_OreRecipeRegistrator> mOreProcessing = new ArrayList<>();
private final ArrayList<Interface_OreRecipeRegistrator> mOreProcessingFake = new ArrayList<>();
public final ItemStack mContainerItem = null;
@@ -144,11 +144,11 @@ public enum GregtechOrePrefixes {
public int mMaterialGenerationBits = 0;
private GregtechOrePrefixes(final String aRegularLocalName, final String aLocalizedMaterialPre,
- final String aLocalizedMaterialPost, final boolean aIsUnificatable, final boolean aIsMaterialBased,
- final boolean aIsSelfReferencing, final boolean aIsContainer, final boolean aDontUnificateActively,
- final boolean aIsUsedForBlocks, final boolean aAllowNormalRecycling, final boolean aGenerateDefaultItem,
- final boolean aIsEnchantable, final boolean aIsUsedForOreProcessing, final int aMaterialGenerationBits,
- final long aMaterialAmount, final int aDefaultStackSize, final int aTextureindex) {
+ final String aLocalizedMaterialPost, final boolean aIsUnificatable, final boolean aIsMaterialBased,
+ final boolean aIsSelfReferencing, final boolean aIsContainer, final boolean aDontUnificateActively,
+ final boolean aIsUsedForBlocks, final boolean aAllowNormalRecycling, final boolean aGenerateDefaultItem,
+ final boolean aIsEnchantable, final boolean aIsUsedForOreProcessing, final int aMaterialGenerationBits,
+ final long aMaterialAmount, final int aDefaultStackSize, final int aTextureindex) {
this.mIsUnificatable = aIsUnificatable;
this.mIsMaterialBased = aIsMaterialBased;
this.mIsSelfReferencing = aIsSelfReferencing;
@@ -168,39 +168,73 @@ public enum GregtechOrePrefixes {
this.mTextureIndex = (short) aTextureindex;
// TODO - Utilise some form of way to check if it's gt 5.9 if so, use string switch.
- if (this.name().startsWith("ore")) {
+ if (this.name()
+ .startsWith("ore")) {
getTcAspectStack(TC_Aspects.TERRA.name(), 1).addToAspectList(this.mAspects);
- } else if (this.name().startsWith("wire") || this.name().startsWith("cable")) {
- getTcAspectStack(TC_Aspects.ELECTRUM.name(), 1).addToAspectList(this.mAspects);
- } else if (this.name().startsWith("dust")) {
- getTcAspectStack(TC_Aspects.PERDITIO.name(), 1).addToAspectList(this.mAspects);
- } else if (this.name().startsWith("crushed")) {
- getTcAspectStack(TC_Aspects.PERFODIO.name(), 1).addToAspectList(this.mAspects);
- } else if (this.name().startsWith("ingot") || this.name().startsWith("nugget")) {
- getTcAspectStack(TC_Aspects.METALLUM.name(), 1).addToAspectList(this.mAspects);
- } else if (this.name().startsWith("armor")) {
- getTcAspectStack(TC_Aspects.TUTAMEN.name(), 1).addToAspectList(this.mAspects);
- } else if (this.name().startsWith("stone")) {
- getTcAspectStack(TC_Aspects.TERRA.name(), 1).addToAspectList(this.mAspects);
- } else if (this.name().startsWith("pipe")) {
- getTcAspectStack(TC_Aspects.ITER.name(), 1).addToAspectList(this.mAspects);
- } else if (this.name().startsWith("gear")) {
- getTcAspectStack(TC_Aspects.MOTUS.name(), 1).addToAspectList(this.mAspects);
- getTcAspectStack(TC_Aspects.MACHINA.name(), 1).addToAspectList(this.mAspects);
- } else if (this.name().startsWith("frame") || this.name().startsWith("plate")) {
- getTcAspectStack(TC_Aspects.FABRICO.name(), 1).addToAspectList(this.mAspects);
- } else if (this.name().startsWith("tool")) {
- getTcAspectStack(TC_Aspects.INSTRUMENTUM.name(), 2).addToAspectList(this.mAspects);
- } else
- if (this.name().startsWith("gem") || this.name().startsWith("crystal") || this.name().startsWith("lens")) {
- getTcAspectStack(TC_Aspects.VITREUS.name(), 1).addToAspectList(this.mAspects);
- } else if (this.name().startsWith("crate")) {
- getTcAspectStack(TC_Aspects.ITER.name(), 2).addToAspectList(this.mAspects);
- } else if (this.name().startsWith("circuit")) {
- getTcAspectStack("COGNITIO", 1);
- } else if (this.name().startsWith("battery")) {
- getTcAspectStack(TC_Aspects.ELECTRUM.name(), 1).addToAspectList(this.mAspects);
- }
+ } else if (this.name()
+ .startsWith("wire")
+ || this.name()
+ .startsWith("cable")) {
+ getTcAspectStack(TC_Aspects.ELECTRUM.name(), 1).addToAspectList(this.mAspects);
+ } else
+ if (this.name()
+ .startsWith("dust")) {
+ getTcAspectStack(TC_Aspects.PERDITIO.name(), 1).addToAspectList(this.mAspects);
+ } else if (this.name()
+ .startsWith("crushed")) {
+ getTcAspectStack(TC_Aspects.PERFODIO.name(), 1).addToAspectList(this.mAspects);
+ } else if (this.name()
+ .startsWith("ingot")
+ || this.name()
+ .startsWith("nugget")) {
+ getTcAspectStack(TC_Aspects.METALLUM.name(), 1).addToAspectList(this.mAspects);
+ } else
+ if (this.name()
+ .startsWith("armor")) {
+ getTcAspectStack(TC_Aspects.TUTAMEN.name(), 1).addToAspectList(this.mAspects);
+ } else if (this.name()
+ .startsWith("stone")) {
+ getTcAspectStack(TC_Aspects.TERRA.name(), 1).addToAspectList(this.mAspects);
+ } else if (this.name()
+ .startsWith("pipe")) {
+ getTcAspectStack(TC_Aspects.ITER.name(), 1).addToAspectList(this.mAspects);
+ } else if (this.name()
+ .startsWith("gear")) {
+ getTcAspectStack(TC_Aspects.MOTUS.name(), 1).addToAspectList(this.mAspects);
+ getTcAspectStack(TC_Aspects.MACHINA.name(), 1)
+ .addToAspectList(this.mAspects);
+ } else if (this.name()
+ .startsWith("frame")
+ || this.name()
+ .startsWith("plate")) {
+ getTcAspectStack(TC_Aspects.FABRICO.name(), 1)
+ .addToAspectList(this.mAspects);
+ } else
+ if (this.name()
+ .startsWith("tool")) {
+ getTcAspectStack(TC_Aspects.INSTRUMENTUM.name(), 2)
+ .addToAspectList(this.mAspects);
+ } else if (this.name()
+ .startsWith("gem")
+ || this.name()
+ .startsWith("crystal")
+ || this.name()
+ .startsWith("lens")) {
+ getTcAspectStack(TC_Aspects.VITREUS.name(), 1)
+ .addToAspectList(this.mAspects);
+ } else
+ if (this.name()
+ .startsWith("crate")) {
+ getTcAspectStack(TC_Aspects.ITER.name(), 2)
+ .addToAspectList(this.mAspects);
+ } else if (this.name()
+ .startsWith("circuit")) {
+ getTcAspectStack("COGNITIO", 1);
+ } else if (this.name()
+ .startsWith("battery")) {
+ getTcAspectStack(TC_Aspects.ELECTRUM.name(), 1)
+ .addToAspectList(this.mAspects);
+ }
}
public static GregtechOrePrefixes getOrePrefix(final String aOre) {
@@ -285,10 +319,9 @@ public enum GregtechOrePrefixes {
public boolean doGenerateItem(final Materials aMaterial) {
return (aMaterial != null) && (aMaterial != Materials._NULL)
- && (((aMaterial.mTypes & this.mMaterialGenerationBits) != 0)
- || this.mGeneratedItems.contains(aMaterial))
- && !this.mNotGeneratedItems.contains(aMaterial)
- && ((this.mCondition == null) || this.mCondition.isTrue(aMaterial));
+ && (((aMaterial.mTypes & this.mMaterialGenerationBits) != 0) || this.mGeneratedItems.contains(aMaterial))
+ && !this.mNotGeneratedItems.contains(aMaterial)
+ && ((this.mCondition == null) || this.mCondition.isTrue(aMaterial));
}
public boolean ignoreMaterials(final Materials... aMaterials) {
@@ -315,20 +348,20 @@ public enum GregtechOrePrefixes {
}
public void processOre(final GT_Materials aMaterial, final String aOreDictName, final String aModName,
- final ItemStack aStack) {
+ final ItemStack aStack) {
if ((aMaterial != null)
- && ((aMaterial != GT_Materials._NULL) || this.mIsSelfReferencing || !this.mIsMaterialBased)
- && GT_Utility.isStackValid(aStack)) {
+ && ((aMaterial != GT_Materials._NULL) || this.mIsSelfReferencing || !this.mIsMaterialBased)
+ && GT_Utility.isStackValid(aStack)) {
for (final Interface_OreRecipeRegistrator tRegistrator : this.mOreProcessing) {
if (D2) {
GT_Log.ore.println(
- "Processing '" + aOreDictName
- + "' with the Prefix '"
- + this.name()
- + "' and the Material '"
- + aMaterial.name()
- + "' at "
- + GT_Utility.getClassName(tRegistrator));
+ "Processing '" + aOreDictName
+ + "' with the Prefix '"
+ + this.name()
+ + "' and the Material '"
+ + aMaterial.name()
+ + "' at "
+ + GT_Utility.getClassName(tRegistrator));
}
tRegistrator.registerOre(this, aMaterial, aOreDictName, aModName, GT_Utility.copyAmount(1, aStack));
}
@@ -337,19 +370,19 @@ public enum GregtechOrePrefixes {
// TODO
public void processOre(final Materials aMaterial, final String aOreDictName, final String aModName,
- final ItemStack aStack) {
+ final ItemStack aStack) {
if ((aMaterial != null) && ((aMaterial != Materials._NULL) || this.mIsSelfReferencing || !this.mIsMaterialBased)
- && GT_Utility.isStackValid(aStack)) {
+ && GT_Utility.isStackValid(aStack)) {
for (final Interface_OreRecipeRegistrator tRegistrator : this.mOreProcessingFake) {
if (D2) {
GT_Log.ore.println(
- "Processing '" + aOreDictName
- + "' with the Prefix '"
- + this.name()
- + "' and the Material '"
- + aMaterial.mName
- + "' at "
- + GT_Utility.getClassName(tRegistrator));
+ "Processing '" + aOreDictName
+ + "' with the Prefix '"
+ + this.name()
+ + "' and the Material '"
+ + aMaterial.mName
+ + "' at "
+ + GT_Utility.getClassName(tRegistrator));
}
tRegistrator.registerOre(this, aMaterial, aOreDictName, aModName, GT_Utility.copyAmount(1, aStack));
}
@@ -386,231 +419,228 @@ public enum GregtechOrePrefixes {
*
*/
_NULL(-1, TextureSet.SET_NONE, 1.0F, 0, 0, 0, 255, 255, 255, 0, "NULL", 0, 0, 0, 0, false, false, 1, 1, 1,
- Dyes._NULL, Element._NULL, Arrays.asList(getTcAspectStack(TC_Aspects.VACUOS.name(), 1))),
+ Dyes._NULL, Element._NULL, Arrays.asList(getTcAspectStack(TC_Aspects.VACUOS.name(), 1))),
// Lapis(526, TextureSet.SET_LAPIS, 1.0F, 0, 1, 1 | 4 | 8, 70, 70, 220, 0, "Lapis", 0, 0, -1, 0, false, false,
// 3, 1, 1, Dyes.dyeBlue, 2, Arrays.asList(new MaterialStack(Materials.Lazurite, 12), new
// MaterialStack(Materials.Sodalite, 2), new MaterialStack(Materials.Pyrite, 1), new
// MaterialStack(Materials.Calcite, 1)), Arrays.asList(getTcAspectStack(TC_Aspects.SENSUS, 1))),
Pyrotheum(20, TextureSet.SET_FLUID, 1.0F, 0, 1, 2 | 16 | 32, 255, 128, 0, 0, "Pyrotheum", 0, 0, -1, 0, false,
- false, 2, 3, 1, Dyes.dyeYellow, 2,
- Arrays.asList(
- new MaterialStack(Materials.Coal, 1),
- new MaterialStack(Materials.Redstone, 1),
- new MaterialStack(Materials.Blaze, 1),
- new MaterialStack(Materials.Sulfur, 1)),
- Arrays.asList(getTcAspectStack("PRAECANTATIO", 2), getTcAspectStack(TC_Aspects.IGNIS, 1))),
+ false, 2, 3, 1, Dyes.dyeYellow, 2,
+ Arrays.asList(
+ new MaterialStack(Materials.Coal, 1),
+ new MaterialStack(Materials.Redstone, 1),
+ new MaterialStack(Materials.Blaze, 1),
+ new MaterialStack(Materials.Sulfur, 1)),
+ Arrays.asList(getTcAspectStack("PRAECANTATIO", 2), getTcAspectStack(TC_Aspects.IGNIS, 1))),
Cryotheum(21, TextureSet.SET_FLUID, 1.0F, 0, 1, 2 | 16 | 32, 102, 178, 255, 0, "Cryotheum", 0, 0, -1, 0, false,
- false, 2, 3, 1, Dyes.dyeLightBlue, 2,
- Arrays.asList(
- new MaterialStack(Materials.Blizz, 1),
- new MaterialStack(Materials.Redstone, 1),
- new MaterialStack(Materials.Snow, 1),
- new MaterialStack(Materials.Niter, 1)),
- Arrays.asList(getTcAspectStack("PRAECANTATIO", 2), getTcAspectStack(TC_Aspects.GELUM, 1))),
+ false, 2, 3, 1, Dyes.dyeLightBlue, 2,
+ Arrays.asList(
+ new MaterialStack(Materials.Blizz, 1),
+ new MaterialStack(Materials.Redstone, 1),
+ new MaterialStack(Materials.Snow, 1),
+ new MaterialStack(Materials.Niter, 1)),
+ Arrays.asList(getTcAspectStack("PRAECANTATIO", 2), getTcAspectStack(TC_Aspects.GELUM, 1))),
Ender(22, TextureSet.SET_FLUID, 1.0F, 0, 2, 1, 255, 255, 255, 0, "Ender", 0, 0, -1, 0, false, false, 3, 1, 1,
- Dyes.dyeGreen),
+ Dyes.dyeGreen),
/**
* Circuitry, Batteries and other Technical things
*/
Symbiotic(-1, TextureSet.SET_NONE, 1.0F, 0, 0, 0, 255, 255, 255, 0, "IV Tier", 0, 0, -1, 0, false, false, 1, 1,
- 1, Dyes.dyeLightGray,
- Arrays.asList(getTcAspectStack(TC_Aspects.ELECTRUM, 4), getTcAspectStack(TC_Aspects.MACHINA, 4))),
+ 1, Dyes.dyeLightGray,
+ Arrays.asList(getTcAspectStack(TC_Aspects.ELECTRUM, 4), getTcAspectStack(TC_Aspects.MACHINA, 4))),
Neutronic(-1, TextureSet.SET_NONE, 1.0F, 0, 0, 0, 255, 255, 255, 0, "LuV Tier", 0, 0, -1, 0, false, false, 1, 1,
- 1, Dyes.dyeLightGray,
- Arrays.asList(getTcAspectStack(TC_Aspects.ELECTRUM, 6), getTcAspectStack(TC_Aspects.MACHINA, 6))),
+ 1, Dyes.dyeLightGray,
+ Arrays.asList(getTcAspectStack(TC_Aspects.ELECTRUM, 6), getTcAspectStack(TC_Aspects.MACHINA, 6))),
Quantum(-1, TextureSet.SET_NONE, 1.0F, 0, 0, 0, 255, 255, 255, 0, "ZPM Tier", 0, 0, -1, 0, false, false, 1, 1,
- 1, Dyes.dyeLightGray,
- Arrays.asList(getTcAspectStack(TC_Aspects.ELECTRUM, 8), getTcAspectStack(TC_Aspects.MACHINA, 8))),
+ 1, Dyes.dyeLightGray,
+ Arrays.asList(getTcAspectStack(TC_Aspects.ELECTRUM, 8), getTcAspectStack(TC_Aspects.MACHINA, 8))),
Superconductor(-1, TextureSet.SET_NONE, 1.0F, 0, 0, 0, 190, 240, 190, 0, "Superconductor", 0, 0, -1, 0, false,
- false, 1, 1, 1, Dyes.dyeGreen, Arrays.asList(getTcAspectStack(TC_Aspects.ELECTRUM, 8))),
+ false, 1, 1, 1, Dyes.dyeGreen, Arrays.asList(getTcAspectStack(TC_Aspects.ELECTRUM, 8))),
Staballoy(30, TextureSet.SET_ROUGH, 10.0F, 5120, 4, 1 | 2 | 16 | 32 | 64 | 128, 68, 75, 66, 0, "Staballoy", 0,
- 0, 1500, 2800, true, false, 1, 3, 1, Dyes.dyeGreen, 2,
- Arrays.asList(new MaterialStack(Materials.Titanium, 1), new MaterialStack(Materials.Uranium, 9)),
- Arrays.asList(getTcAspectStack(TC_Aspects.METALLUM, 8), getTcAspectStack(TC_Aspects.STRONTIO, 3))),
+ 0, 1500, 2800, true, false, 1, 3, 1, Dyes.dyeGreen, 2,
+ Arrays.asList(new MaterialStack(Materials.Titanium, 1), new MaterialStack(Materials.Uranium, 9)),
+ Arrays.asList(getTcAspectStack(TC_Aspects.METALLUM, 8), getTcAspectStack(TC_Aspects.STRONTIO, 3))),
Bedrockium(31, TextureSet.SET_FINE, 8.0F, 8196, 3, 1 | 2 | 16 | 32 | 64 | 128, 39, 39, 39, 0, "Bedrockium", 0,
- 0, -1, 0, false, false, 1, 5, 1, Dyes.dyeLightGray, 2,
- Arrays.asList(new MaterialStack(Materials.Carbon, 63), new MaterialStack(Materials.Carbon, 56)),
- Arrays.asList(getTcAspectStack(TC_Aspects.VACUOS, 8), getTcAspectStack(TC_Aspects.TUTAMEN, 3))),
+ 0, -1, 0, false, false, 1, 5, 1, Dyes.dyeLightGray, 2,
+ Arrays.asList(new MaterialStack(Materials.Carbon, 63), new MaterialStack(Materials.Carbon, 56)),
+ Arrays.asList(getTcAspectStack(TC_Aspects.VACUOS, 8), getTcAspectStack(TC_Aspects.TUTAMEN, 3))),
BloodSteel(32, TextureSet.SET_METALLIC, 11.0F, 768, 4, 1 | 2 | 16 | 32 | 64 | 128, 142, 28, 0, 0, "Blood Steel",
- 0, 0, -1, 0, false, false, 1, 1, 1, Dyes.dyeRed, 2,
- Arrays.asList(new MaterialStack(Materials.Steel, 3)),
- Arrays.asList(getTcAspectStack(TC_Aspects.VICTUS, 8), getTcAspectStack(TC_Aspects.IGNIS, 3))),
+ 0, 0, -1, 0, false, false, 1, 1, 1, Dyes.dyeRed, 2, Arrays.asList(new MaterialStack(Materials.Steel, 3)),
+ Arrays.asList(getTcAspectStack(TC_Aspects.VICTUS, 8), getTcAspectStack(TC_Aspects.IGNIS, 3))),
Void(33, TextureSet.SET_METALLIC, 6.0F, 1280, 3, 1 | 2 | 16 | 32 | 64 | 128, 82, 17, 82, 0, "Void Metal", 0, 0,
- -1, 0, false, false, 3, 1, 1, Dyes.dyeBlack,
- Arrays.asList(getTcAspectStack("PRAECANTATIO", 5), getTcAspectStack(TC_Aspects.VACUOS, 7))),
+ -1, 0, false, false, 3, 1, 1, Dyes.dyeBlack,
+ Arrays.asList(getTcAspectStack("PRAECANTATIO", 5), getTcAspectStack(TC_Aspects.VACUOS, 7))),
ConductiveIron(34, TextureSet.SET_METALLIC, 5.0F, 256, 2, 1 | 2, 164, 109, 100, 0, "Conductive Iron", 0, 0, -1,
- 0, false, false, 3, 1, 1, Dyes.dyeRed, 2,
- Arrays.asList(new MaterialStack(Materials.Iron, 6), new MaterialStack(Materials.Redstone, 2)),
- Arrays.asList(getTcAspectStack(TC_Aspects.POTENTIA, 2), getTcAspectStack(TC_Aspects.METALLUM, 2))),
+ 0, false, false, 3, 1, 1, Dyes.dyeRed, 2,
+ Arrays.asList(new MaterialStack(Materials.Iron, 6), new MaterialStack(Materials.Redstone, 2)),
+ Arrays.asList(getTcAspectStack(TC_Aspects.POTENTIA, 2), getTcAspectStack(TC_Aspects.METALLUM, 2))),
ElectricalSteel(35, TextureSet.SET_METALLIC, 7.0F, 768, 3, 1 | 2 | 64 | 128, 194, 194, 194, 0,
- "Electrical Steel", 0, 0, 1811, 1000, true, false, 3, 1, 1, Dyes.dyeLightGray, 2,
- Arrays.asList(
- new MaterialStack(Materials.Iron, 3),
- new MaterialStack(Materials.Coal, 2),
- new MaterialStack(Materials.Silicon, 2)),
- Arrays.asList(getTcAspectStack(TC_Aspects.MAGNETO, 2), getTcAspectStack(TC_Aspects.ELECTRUM, 5))),
+ "Electrical Steel", 0, 0, 1811, 1000, true, false, 3, 1, 1, Dyes.dyeLightGray, 2,
+ Arrays.asList(
+ new MaterialStack(Materials.Iron, 3),
+ new MaterialStack(Materials.Coal, 2),
+ new MaterialStack(Materials.Silicon, 2)),
+ Arrays.asList(getTcAspectStack(TC_Aspects.MAGNETO, 2), getTcAspectStack(TC_Aspects.ELECTRUM, 5))),
EnergeticAlloy(36, TextureSet.SET_SHINY, 5.0F, 512, 3, 1 | 2 | 64 | 128, 252, 152, 45, 0, "Energetic Alloy", 0,
- 0, -1, 0, false, false, 3, 1, 1, Dyes.dyeOrange, 2,
- Arrays.asList(
- new MaterialStack(Materials.Gold, 3),
- new MaterialStack(Materials.Glowstone, 2),
- new MaterialStack(Materials.Redstone, 2)),
- Arrays.asList(getTcAspectStack(TC_Aspects.POTENTIA, 4), getTcAspectStack(TC_Aspects.LUX, 3))),
+ 0, -1, 0, false, false, 3, 1, 1, Dyes.dyeOrange, 2,
+ Arrays.asList(
+ new MaterialStack(Materials.Gold, 3),
+ new MaterialStack(Materials.Glowstone, 2),
+ new MaterialStack(Materials.Redstone, 2)),
+ Arrays.asList(getTcAspectStack(TC_Aspects.POTENTIA, 4), getTcAspectStack(TC_Aspects.LUX, 3))),
VibrantAlloy(37, TextureSet.SET_SHINY, 7.0F, 1280, 4, 1 | 2 | 64 | 128, 204, 242, 142, 0, "Vibrant Alloy", 0, 0,
- -1, 0, false, false, 3, 1, 1, Dyes.dyeLime, 2,
- Arrays.asList(
- new MaterialStack(Materials.EnergeticAlloy, 1),
- new MaterialStack(Materials.EnderPearl, 3)),
- Arrays.asList(getTcAspectStack(TC_Aspects.MACHINA, 5), getTcAspectStack(TC_Aspects.TELUM, 4))),
+ -1, 0, false, false, 3, 1, 1, Dyes.dyeLime, 2,
+ Arrays.asList(new MaterialStack(Materials.EnergeticAlloy, 1), new MaterialStack(Materials.EnderPearl, 3)),
+ Arrays.asList(getTcAspectStack(TC_Aspects.MACHINA, 5), getTcAspectStack(TC_Aspects.TELUM, 4))),
PulsatingIron(38, TextureSet.SET_SHINY, 5.0F, 256, 2, 1 | 2 | 64 | 128, 50, 91, 21, 0, "Pulsating Iron", 0, 0,
- -1, 0, false, false, 3, 1, 1, Dyes.dyeGreen, 2,
- Arrays.asList(new MaterialStack(Materials.Iron, 2), new MaterialStack(Materials.EnderPearl, 2)),
- Arrays.asList(getTcAspectStack(TC_Aspects.ALIENIS, 3), getTcAspectStack(TC_Aspects.METALLUM, 3))),
+ -1, 0, false, false, 3, 1, 1, Dyes.dyeGreen, 2,
+ Arrays.asList(new MaterialStack(Materials.Iron, 2), new MaterialStack(Materials.EnderPearl, 2)),
+ Arrays.asList(getTcAspectStack(TC_Aspects.ALIENIS, 3), getTcAspectStack(TC_Aspects.METALLUM, 3))),
/* TODO */ RedstoneAlloy(39, TextureSet.SET_METALLIC, 1.0F, 256, 2, 1 | 2 | 16 | 32 | 64, 178, 34, 34, 0,
- "Redstone Alloy", 0, 0, -1, 0, false, false, 3, 1, 1, Dyes.dyeRed, 2,
- Arrays.asList(new MaterialStack(Materials.Iron, 2), new MaterialStack(Materials.Redstone, 4))),
+ "Redstone Alloy", 0, 0, -1, 0, false, false, 3, 1, 1, Dyes.dyeRed, 2,
+ Arrays.asList(new MaterialStack(Materials.Iron, 2), new MaterialStack(Materials.Redstone, 4))),
// Needs more Use, I think.
Tantalloy60(40, TextureSet.SET_DULL, 8.0F, 5120, 3, 1 | 2 | 16 | 32 | 64 | 128, 68, 75, 166, 0, "Tantalloy-60",
- 0, 0, 3035, 2200, true, false, 1, 2, 1, Dyes.dyeLightBlue, 2,
- Arrays.asList(new MaterialStack(Materials.Tungsten, 1), new MaterialStack(Materials.Tantalum, 9)),
- Arrays.asList(getTcAspectStack(TC_Aspects.METALLUM, 8), getTcAspectStack(TC_Aspects.STRONTIO, 3))),
+ 0, 0, 3035, 2200, true, false, 1, 2, 1, Dyes.dyeLightBlue, 2,
+ Arrays.asList(new MaterialStack(Materials.Tungsten, 1), new MaterialStack(Materials.Tantalum, 9)),
+ Arrays.asList(getTcAspectStack(TC_Aspects.METALLUM, 8), getTcAspectStack(TC_Aspects.STRONTIO, 3))),
Tantalloy61(41, TextureSet.SET_DULL, 7.0F, 5120, 2, 1 | 2 | 16 | 32 | 64 | 128, 122, 135, 196, 0,
- "Tantalloy-61", 0, 0, 3015, 2150, true, false, 1, 2, 1, Dyes.dyeLightBlue, 2,
- Arrays.asList(
- new MaterialStack(Materials.Tungsten, 1),
- new MaterialStack(Materials.Tantalum, 9),
- new MaterialStack(Materials.Titanium, 1)),
- Arrays.asList(getTcAspectStack(TC_Aspects.METALLUM, 8), getTcAspectStack(TC_Aspects.STRONTIO, 3))),
+ "Tantalloy-61", 0, 0, 3015, 2150, true, false, 1, 2, 1, Dyes.dyeLightBlue, 2,
+ Arrays.asList(
+ new MaterialStack(Materials.Tungsten, 1),
+ new MaterialStack(Materials.Tantalum, 9),
+ new MaterialStack(Materials.Titanium, 1)),
+ Arrays.asList(getTcAspectStack(TC_Aspects.METALLUM, 8), getTcAspectStack(TC_Aspects.STRONTIO, 3))),
Potin(42, TextureSet.SET_METALLIC, 7.0F, 5120, 2, 1 | 2 | 16 | 32 | 64 | 128, 201, 151, 129, 0, "Potin", 0, 0,
- 3015, 2150, true, false, 1, 2, 1, Dyes.dyeLightBlue, 2,
- Arrays.asList(
- new MaterialStack(Materials.Tungsten, 1),
- new MaterialStack(Materials.Tantalum, 9),
- new MaterialStack(Materials.Titanium, 1)),
- Arrays.asList(getTcAspectStack(TC_Aspects.METALLUM, 8), getTcAspectStack(TC_Aspects.STRONTIO, 3))),
+ 3015, 2150, true, false, 1, 2, 1, Dyes.dyeLightBlue, 2,
+ Arrays.asList(
+ new MaterialStack(Materials.Tungsten, 1),
+ new MaterialStack(Materials.Tantalum, 9),
+ new MaterialStack(Materials.Titanium, 1)),
+ Arrays.asList(getTcAspectStack(TC_Aspects.METALLUM, 8), getTcAspectStack(TC_Aspects.STRONTIO, 3))),
Inconel792(43, TextureSet.SET_METALLIC, 7.0F, 5120, 2, 1 | 2 | 16 | 32 | 64 | 128, 108, 240, 118, 0,
- "Inconel-792", 0, 0, 3015, 2150, true, false, 1, 2, 1, Dyes.dyeLightBlue, 2,
- Arrays.asList(
- new MaterialStack(Materials.Tungsten, 1),
- new MaterialStack(Materials.Tantalum, 9),
- new MaterialStack(Materials.Titanium, 1)),
- Arrays.asList(getTcAspectStack(TC_Aspects.METALLUM, 8), getTcAspectStack(TC_Aspects.STRONTIO, 3))),
+ "Inconel-792", 0, 0, 3015, 2150, true, false, 1, 2, 1, Dyes.dyeLightBlue, 2,
+ Arrays.asList(
+ new MaterialStack(Materials.Tungsten, 1),
+ new MaterialStack(Materials.Tantalum, 9),
+ new MaterialStack(Materials.Titanium, 1)),
+ Arrays.asList(getTcAspectStack(TC_Aspects.METALLUM, 8), getTcAspectStack(TC_Aspects.STRONTIO, 3))),
Inconel690(44, TextureSet.SET_DULL, 7.0F, 5120, 2, 1 | 2 | 16 | 32 | 64 | 128, 118, 220, 138, 0, "Inconel-690",
- 0, 0, 3015, 2150, true, false, 1, 2, 1, Dyes.dyeLightBlue, 2,
- Arrays.asList(
- new MaterialStack(Materials.Tungsten, 1),
- new MaterialStack(Materials.Tantalum, 9),
- new MaterialStack(Materials.Titanium, 1)),
- Arrays.asList(getTcAspectStack(TC_Aspects.METALLUM, 8), getTcAspectStack(TC_Aspects.STRONTIO, 3))),
+ 0, 0, 3015, 2150, true, false, 1, 2, 1, Dyes.dyeLightBlue, 2,
+ Arrays.asList(
+ new MaterialStack(Materials.Tungsten, 1),
+ new MaterialStack(Materials.Tantalum, 9),
+ new MaterialStack(Materials.Titanium, 1)),
+ Arrays.asList(getTcAspectStack(TC_Aspects.METALLUM, 8), getTcAspectStack(TC_Aspects.STRONTIO, 3))),
MaragingSteel300(45, TextureSet.SET_METALLIC, 7.0F, 5120, 2, 1 | 2 | 16 | 32 | 64 | 128, 150, 150, 150, 0,
- "Maraging Steel 300", 0, 0, 3015, 2150, true, false, 1, 2, 1, Dyes.dyeLightBlue, 2,
- Arrays.asList(
- new MaterialStack(Materials.Tungsten, 1),
- new MaterialStack(Materials.Tantalum, 9),
- new MaterialStack(Materials.Titanium, 1)),
- Arrays.asList(getTcAspectStack(TC_Aspects.METALLUM, 8), getTcAspectStack(TC_Aspects.STRONTIO, 3))),
+ "Maraging Steel 300", 0, 0, 3015, 2150, true, false, 1, 2, 1, Dyes.dyeLightBlue, 2,
+ Arrays.asList(
+ new MaterialStack(Materials.Tungsten, 1),
+ new MaterialStack(Materials.Tantalum, 9),
+ new MaterialStack(Materials.Titanium, 1)),
+ Arrays.asList(getTcAspectStack(TC_Aspects.METALLUM, 8), getTcAspectStack(TC_Aspects.STRONTIO, 3))),
MaragingSteel350(46, TextureSet.SET_METALLIC, 7.0F, 5120, 2, 1 | 2 | 16 | 32 | 64 | 128, 160, 160, 160, 0,
- "Maraging Steel 350", 0, 0, 3015, 2150, true, false, 1, 2, 1, Dyes.dyeLightBlue, 2,
- Arrays.asList(
- new MaterialStack(Materials.Tungsten, 1),
- new MaterialStack(Materials.Tantalum, 9),
- new MaterialStack(Materials.Titanium, 1)),
- Arrays.asList(getTcAspectStack(TC_Aspects.METALLUM, 8), getTcAspectStack(TC_Aspects.STRONTIO, 3))),
+ "Maraging Steel 350", 0, 0, 3015, 2150, true, false, 1, 2, 1, Dyes.dyeLightBlue, 2,
+ Arrays.asList(
+ new MaterialStack(Materials.Tungsten, 1),
+ new MaterialStack(Materials.Tantalum, 9),
+ new MaterialStack(Materials.Titanium, 1)),
+ Arrays.asList(getTcAspectStack(TC_Aspects.METALLUM, 8), getTcAspectStack(TC_Aspects.STRONTIO, 3))),
HastelloyX(47, TextureSet.SET_SHINY, 7.0F, 5120, 2, 1 | 2 | 16 | 32 | 64 | 128, 255, 193, 37, 0, "Hastelloy-X",
- 0, 0, 3015, 2150, true, false, 1, 2, 1, Dyes.dyeLightBlue, 2,
- Arrays.asList(
- new MaterialStack(Materials.Tungsten, 1),
- new MaterialStack(Materials.Tantalum, 9),
- new MaterialStack(Materials.Titanium, 1)),
- Arrays.asList(getTcAspectStack(TC_Aspects.METALLUM, 8), getTcAspectStack(TC_Aspects.STRONTIO, 3))),
+ 0, 0, 3015, 2150, true, false, 1, 2, 1, Dyes.dyeLightBlue, 2,
+ Arrays.asList(
+ new MaterialStack(Materials.Tungsten, 1),
+ new MaterialStack(Materials.Tantalum, 9),
+ new MaterialStack(Materials.Titanium, 1)),
+ Arrays.asList(getTcAspectStack(TC_Aspects.METALLUM, 8), getTcAspectStack(TC_Aspects.STRONTIO, 3))),
TriniumNaquadahCarbonite(48, TextureSet.SET_SHINY, 7.0F, 5120, 2, 1 | 2 | 16 | 32 | 64 | 128, 255, 233, 0, 0,
- "Trinium Naquadah Carbonite", 0, 0, 3015, 2150, true, false, 1, 2, 1, Dyes.dyeLightBlue, 2,
- Arrays.asList(
- new MaterialStack(Materials.Tungsten, 1),
- new MaterialStack(Materials.Tantalum, 9),
- new MaterialStack(Materials.Titanium, 1)),
- Arrays.asList(getTcAspectStack(TC_Aspects.METALLUM, 8), getTcAspectStack(TC_Aspects.STRONTIO, 3))),
+ "Trinium Naquadah Carbonite", 0, 0, 3015, 2150, true, false, 1, 2, 1, Dyes.dyeLightBlue, 2,
+ Arrays.asList(
+ new MaterialStack(Materials.Tungsten, 1),
+ new MaterialStack(Materials.Tantalum, 9),
+ new MaterialStack(Materials.Titanium, 1)),
+ Arrays.asList(getTcAspectStack(TC_Aspects.METALLUM, 8), getTcAspectStack(TC_Aspects.STRONTIO, 3))),
// Radioactive Materials
HydrofluoricAcid(-1, TextureSet.SET_FLUID, 1.0F, 0, 1, 2 | 16 | 32, 200, 200, 200, 0, "Hydrofluoric Acid", 0, 0,
- -1, 0, false, false, 2, 3, 1, Dyes.dyeWhite, 2,
- Arrays.asList(
- new MaterialStack(Materials.Coal, 1),
- new MaterialStack(Materials.Redstone, 1),
- new MaterialStack(Materials.Blaze, 1),
- new MaterialStack(Materials.Sulfur, 1))),
+ -1, 0, false, false, 2, 3, 1, Dyes.dyeWhite, 2,
+ Arrays.asList(
+ new MaterialStack(Materials.Coal, 1),
+ new MaterialStack(Materials.Redstone, 1),
+ new MaterialStack(Materials.Blaze, 1),
+ new MaterialStack(Materials.Sulfur, 1))),
UraniumHexaFluoride(-1, TextureSet.SET_FLUID, 1.0F, 0, 1, 2 | 16 | 32, 73, 220, 83, 0, "Uranium Hexafluoride",
- 0, 0, -1, 0, false, false, 2, 3, 1, Dyes.dyeLime, 2,
- Arrays.asList(
- new MaterialStack(Materials.Coal, 1),
- new MaterialStack(Materials.Redstone, 1),
- new MaterialStack(Materials.Blaze, 1),
- new MaterialStack(Materials.Sulfur, 1))),
+ 0, 0, -1, 0, false, false, 2, 3, 1, Dyes.dyeLime, 2,
+ Arrays.asList(
+ new MaterialStack(Materials.Coal, 1),
+ new MaterialStack(Materials.Redstone, 1),
+ new MaterialStack(Materials.Blaze, 1),
+ new MaterialStack(Materials.Sulfur, 1))),
UraniumTetraFluoride(-1, TextureSet.SET_FLUID, 1.0F, 0, 1, 2 | 16 | 32, 73, 220, 83, 0, "Uranium Tetrafluoride",
- 0, 0, -1, 0, false, false, 2, 3, 1, Dyes.dyeLime, 2,
- Arrays.asList(
- new MaterialStack(Materials.Coal, 1),
- new MaterialStack(Materials.Redstone, 1),
- new MaterialStack(Materials.Blaze, 1),
- new MaterialStack(Materials.Sulfur, 1))),
+ 0, 0, -1, 0, false, false, 2, 3, 1, Dyes.dyeLime, 2,
+ Arrays.asList(
+ new MaterialStack(Materials.Coal, 1),
+ new MaterialStack(Materials.Redstone, 1),
+ new MaterialStack(Materials.Blaze, 1),
+ new MaterialStack(Materials.Sulfur, 1))),
ThoriumTetraFluoride(-1, TextureSet.SET_FLUID, 1.0F, 0, 1, 2 | 16 | 32, 15, 120, 15, 0, "Thorium Tetrafluoride",
- 0, 0, -1, 0, false, false, 2, 3, 1, Dyes.dyeGreen, 2,
- Arrays.asList(
- new MaterialStack(Materials.Coal, 1),
- new MaterialStack(Materials.Redstone, 1),
- new MaterialStack(Materials.Blaze, 1),
- new MaterialStack(Materials.Sulfur, 1))),
+ 0, 0, -1, 0, false, false, 2, 3, 1, Dyes.dyeGreen, 2,
+ Arrays.asList(
+ new MaterialStack(Materials.Coal, 1),
+ new MaterialStack(Materials.Redstone, 1),
+ new MaterialStack(Materials.Blaze, 1),
+ new MaterialStack(Materials.Sulfur, 1))),
SulfurousAcid(-1, TextureSet.SET_FLUID, 1.0F, 0, 1, 2 | 16 | 32, 110, 220, 30, 0, "Sulfurous Acid", 0, 0, -1, 0,
- false, false, 2, 3, 1, Dyes.dyeWhite, 2,
- Arrays.asList(
- new MaterialStack(Materials.Coal, 1),
- new MaterialStack(Materials.Redstone, 1),
- new MaterialStack(Materials.Blaze, 1),
- new MaterialStack(Materials.Sulfur, 1))),
+ false, false, 2, 3, 1, Dyes.dyeWhite, 2,
+ Arrays.asList(
+ new MaterialStack(Materials.Coal, 1),
+ new MaterialStack(Materials.Redstone, 1),
+ new MaterialStack(Materials.Blaze, 1),
+ new MaterialStack(Materials.Sulfur, 1))),
SulfurDioxide(-1, TextureSet.SET_FLUID, 1.0F, 0, 1, 2 | 16 | 32, 150, 200, 50, 0, "Sulfur Dioxide", 0, 0, -1, 0,
- false, false, 2, 3, 1, Dyes.dyeWhite, 2,
- Arrays.asList(
- new MaterialStack(Materials.Coal, 1),
- new MaterialStack(Materials.Redstone, 1),
- new MaterialStack(Materials.Blaze, 1),
- new MaterialStack(Materials.Sulfur, 1))),
+ false, false, 2, 3, 1, Dyes.dyeWhite, 2,
+ Arrays.asList(
+ new MaterialStack(Materials.Coal, 1),
+ new MaterialStack(Materials.Redstone, 1),
+ new MaterialStack(Materials.Blaze, 1),
+ new MaterialStack(Materials.Sulfur, 1))),
HydrogenChloride(-1, TextureSet.SET_FLUID, 1.0F, 0, 1, 2 | 16 | 32, 150, 240, 90, 0, "Hydrogen Chloride", 0, 0,
- -1, 0, false, false, 2, 3, 1, Dyes.dyeWhite, 2,
- Arrays.asList(
- new MaterialStack(Materials.Coal, 1),
- new MaterialStack(Materials.Redstone, 1),
- new MaterialStack(Materials.Blaze, 1),
- new MaterialStack(Materials.Sulfur, 1))),
+ -1, 0, false, false, 2, 3, 1, Dyes.dyeWhite, 2,
+ Arrays.asList(
+ new MaterialStack(Materials.Coal, 1),
+ new MaterialStack(Materials.Redstone, 1),
+ new MaterialStack(Materials.Blaze, 1),
+ new MaterialStack(Materials.Sulfur, 1))),
SulfuricApatite(-1, TextureSet.SET_FLUID, 1.0F, 0, 1, 2 | 16 | 32, 0, 105, 105, 0, "Sulfuric Apatite Solution",
- 0, 0, -1, 0, false, false, 2, 3, 1, Dyes.dyeWhite, 2,
- Arrays.asList(
- new MaterialStack(Materials.Coal, 1),
- new MaterialStack(Materials.Redstone, 1),
- new MaterialStack(Materials.Blaze, 1),
- new MaterialStack(Materials.Sulfur, 1))),
+ 0, 0, -1, 0, false, false, 2, 3, 1, Dyes.dyeWhite, 2,
+ Arrays.asList(
+ new MaterialStack(Materials.Coal, 1),
+ new MaterialStack(Materials.Redstone, 1),
+ new MaterialStack(Materials.Blaze, 1),
+ new MaterialStack(Materials.Sulfur, 1))),
SulfuricLithium(-1, TextureSet.SET_FLUID, 1.0F, 0, 1, 2 | 16 | 32, 0, 105, 105, 0, "Sulfuric Lithium Solution",
- 0, 0, -1, 0, false, false, 2, 3, 1, Dyes.dyeWhite, 2,
- Arrays.asList(
- new MaterialStack(Materials.Coal, 1),
- new MaterialStack(Materials.Redstone, 1),
- new MaterialStack(Materials.Blaze, 1),
- new MaterialStack(Materials.Sulfur, 1))),
+ 0, 0, -1, 0, false, false, 2, 3, 1, Dyes.dyeWhite, 2,
+ Arrays.asList(
+ new MaterialStack(Materials.Coal, 1),
+ new MaterialStack(Materials.Redstone, 1),
+ new MaterialStack(Materials.Blaze, 1),
+ new MaterialStack(Materials.Sulfur, 1))),
LithiumHydroxide(-1, TextureSet.SET_FLUID, 1.0F, 0, 1, 2 | 16 | 32, 0, 105, 105, 0, "Lithium Hydroxide", 0, 0,
- -1, 0, false, false, 2, 3, 1, Dyes.dyeWhite, 2,
- Arrays.asList(
- new MaterialStack(Materials.Coal, 1),
- new MaterialStack(Materials.Redstone, 1),
- new MaterialStack(Materials.Blaze, 1),
- new MaterialStack(Materials.Sulfur, 1))),;
+ -1, 0, false, false, 2, 3, 1, Dyes.dyeWhite, 2,
+ Arrays.asList(
+ new MaterialStack(Materials.Coal, 1),
+ new MaterialStack(Materials.Redstone, 1),
+ new MaterialStack(Materials.Blaze, 1),
+ new MaterialStack(Materials.Sulfur, 1))),;
/**
* List of all Materials.
@@ -654,7 +684,7 @@ public enum GregtechOrePrefixes {
public Dyes mColor = Dyes._NULL;
public short mMeltingPoint = 0, mBlastFurnaceTemp = 0;
public int mTypes = 0, mDurability = 16, mFuelPower = 0, mFuelType = 0, mExtraData = 0, mOreValue = 0,
- mOreMultiplier = 1, mByProductMultiplier = 1, mSmeltingMultiplier = 1;
+ mOreMultiplier = 1, mByProductMultiplier = 1, mSmeltingMultiplier = 1;
public long mDensity = M;
public Element mElement = null;
public GT_Materials mDirectSmelting = this;
@@ -675,7 +705,7 @@ public enum GregtechOrePrefixes {
public final Fluid mStandardMoltenFluid = null;
private GT_Materials(final int aMetaItemSubID, final TextureSet aIconSet, final float aToolSpeed,
- final int aToolDurability, final int aToolQuality, final boolean aUnificatable) {
+ final int aToolDurability, final int aToolQuality, final boolean aUnificatable) {
this.mUnificatable = aUnificatable;
this.mMaterialInto = this;
this.mMetaItemSubID = aMetaItemSubID;
@@ -725,11 +755,11 @@ public enum GregtechOrePrefixes {
* @param aColor Vanilla MC Wool Color which comes the closest to this.
*/
private GT_Materials(final int aMetaItemSubID, final TextureSet aIconSet, final float aToolSpeed,
- final int aToolDurability, final int aToolQuality, final int aTypes, final int aR, final int aG,
- final int aB, final int aA, final String aLocalName, final int aFuelType, final int aFuelPower,
- final int aMeltingPoint, final int aBlastFurnaceTemp, final boolean aBlastFurnaceRequired,
- final boolean aTransparent, final int aOreValue, final int aDensityMultiplier,
- final int aDensityDivider, final Dyes aColor) {
+ final int aToolDurability, final int aToolQuality, final int aTypes, final int aR, final int aG,
+ final int aB, final int aA, final String aLocalName, final int aFuelType, final int aFuelPower,
+ final int aMeltingPoint, final int aBlastFurnaceTemp, final boolean aBlastFurnaceRequired,
+ final boolean aTransparent, final int aOreValue, final int aDensityMultiplier, final int aDensityDivider,
+ final Dyes aColor) {
this(aMetaItemSubID, aIconSet, aToolSpeed, aToolDurability, aToolQuality, true);
this.mDefaultLocalName = aLocalName;
this.mMeltingPoint = (short) aMeltingPoint;
@@ -757,33 +787,33 @@ public enum GregtechOrePrefixes {
}
private GT_Materials(final int aMetaItemSubID, final TextureSet aIconSet, final float aToolSpeed,
- final int aToolDurability, final int aToolQuality, final int aTypes, final int aR, final int aG,
- final int aB, final int aA, final String aLocalName, final int aFuelType, final int aFuelPower,
- final int aMeltingPoint, final int aBlastFurnaceTemp, final boolean aBlastFurnaceRequired,
- final boolean aTransparent, final int aOreValue, final int aDensityMultiplier,
- final int aDensityDivider, final Dyes aColor, final List<TC_AspectStack> aAspects) {
+ final int aToolDurability, final int aToolQuality, final int aTypes, final int aR, final int aG,
+ final int aB, final int aA, final String aLocalName, final int aFuelType, final int aFuelPower,
+ final int aMeltingPoint, final int aBlastFurnaceTemp, final boolean aBlastFurnaceRequired,
+ final boolean aTransparent, final int aOreValue, final int aDensityMultiplier, final int aDensityDivider,
+ final Dyes aColor, final List<TC_AspectStack> aAspects) {
this(
- aMetaItemSubID,
- aIconSet,
- aToolSpeed,
- aToolDurability,
- aToolQuality,
- aTypes,
- aR,
- aG,
- aB,
- aA,
- aLocalName,
- aFuelType,
- aFuelPower,
- aMeltingPoint,
- aBlastFurnaceTemp,
- aBlastFurnaceRequired,
- aTransparent,
- aOreValue,
- aDensityMultiplier,
- aDensityDivider,
- aColor);
+ aMetaItemSubID,
+ aIconSet,
+ aToolSpeed,
+ aToolDurability,
+ aToolQuality,
+ aTypes,
+ aR,
+ aG,
+ aB,
+ aA,
+ aLocalName,
+ aFuelType,
+ aFuelPower,
+ aMeltingPoint,
+ aBlastFurnaceTemp,
+ aBlastFurnaceRequired,
+ aTransparent,
+ aOreValue,
+ aDensityMultiplier,
+ aDensityDivider,
+ aColor);
this.mAspects.addAll(aAspects);
}
@@ -791,34 +821,33 @@ public enum GregtechOrePrefixes {
* @param aElement The Element Enum represented by this Material
*/
private GT_Materials(final int aMetaItemSubID, final TextureSet aIconSet, final float aToolSpeed,
- final int aToolDurability, final int aToolQuality, final int aTypes, final int aR, final int aG,
- final int aB, final int aA, final String aLocalName, final int aFuelType, final int aFuelPower,
- final int aMeltingPoint, final int aBlastFurnaceTemp, final boolean aBlastFurnaceRequired,
- final boolean aTransparent, final int aOreValue, final int aDensityMultiplier,
- final int aDensityDivider, final Dyes aColor, final Element aElement,
- final List<TC_AspectStack> aAspects) {
+ final int aToolDurability, final int aToolQuality, final int aTypes, final int aR, final int aG,
+ final int aB, final int aA, final String aLocalName, final int aFuelType, final int aFuelPower,
+ final int aMeltingPoint, final int aBlastFurnaceTemp, final boolean aBlastFurnaceRequired,
+ final boolean aTransparent, final int aOreValue, final int aDensityMultiplier, final int aDensityDivider,
+ final Dyes aColor, final Element aElement, final List<TC_AspectStack> aAspects) {
this(
- aMetaItemSubID,
- aIconSet,
- aToolSpeed,
- aToolDurability,
- aToolQuality,
- aTypes,
- aR,
- aG,
- aB,
- aA,
- aLocalName,
- aFuelType,
- aFuelPower,
- aMeltingPoint,
- aBlastFurnaceTemp,
- aBlastFurnaceRequired,
- aTransparent,
- aOreValue,
- aDensityMultiplier,
- aDensityDivider,
- aColor);
+ aMetaItemSubID,
+ aIconSet,
+ aToolSpeed,
+ aToolDurability,
+ aToolQuality,
+ aTypes,
+ aR,
+ aG,
+ aB,
+ aA,
+ aLocalName,
+ aFuelType,
+ aFuelPower,
+ aMeltingPoint,
+ aBlastFurnaceTemp,
+ aBlastFurnaceRequired,
+ aTransparent,
+ aOreValue,
+ aDensityMultiplier,
+ aDensityDivider,
+ aColor);
this.mElement = aElement;
// mElement.mLinkedMaterials.add(this);
if (aElement == Element._NULL) {
@@ -831,68 +860,67 @@ public enum GregtechOrePrefixes {
}
private GT_Materials(final int aMetaItemSubID, final TextureSet aIconSet, final float aToolSpeed,
- final int aToolDurability, final int aToolQuality, final int aTypes, final int aR, final int aG,
- final int aB, final int aA, final String aLocalName, final int aFuelType, final int aFuelPower,
- final int aMeltingPoint, final int aBlastFurnaceTemp, final boolean aBlastFurnaceRequired,
- final boolean aTransparent, final int aOreValue, final int aDensityMultiplier,
- final int aDensityDivider, final Dyes aColor, final int aExtraData,
- final List<MaterialStack> aMaterialList) {
+ final int aToolDurability, final int aToolQuality, final int aTypes, final int aR, final int aG,
+ final int aB, final int aA, final String aLocalName, final int aFuelType, final int aFuelPower,
+ final int aMeltingPoint, final int aBlastFurnaceTemp, final boolean aBlastFurnaceRequired,
+ final boolean aTransparent, final int aOreValue, final int aDensityMultiplier, final int aDensityDivider,
+ final Dyes aColor, final int aExtraData, final List<MaterialStack> aMaterialList) {
this(
- aMetaItemSubID,
- aIconSet,
- aToolSpeed,
- aToolDurability,
- aToolQuality,
- aTypes,
- aR,
- aG,
- aB,
- aA,
- aLocalName,
- aFuelType,
- aFuelPower,
- aMeltingPoint,
- aBlastFurnaceTemp,
- aBlastFurnaceRequired,
- aTransparent,
- aOreValue,
- aDensityMultiplier,
- aDensityDivider,
- aColor,
- aExtraData,
- aMaterialList,
- null);
+ aMetaItemSubID,
+ aIconSet,
+ aToolSpeed,
+ aToolDurability,
+ aToolQuality,
+ aTypes,
+ aR,
+ aG,
+ aB,
+ aA,
+ aLocalName,
+ aFuelType,
+ aFuelPower,
+ aMeltingPoint,
+ aBlastFurnaceTemp,
+ aBlastFurnaceRequired,
+ aTransparent,
+ aOreValue,
+ aDensityMultiplier,
+ aDensityDivider,
+ aColor,
+ aExtraData,
+ aMaterialList,
+ null);
}
private GT_Materials(final int aMetaItemSubID, final TextureSet aIconSet, final float aToolSpeed,
- final int aToolDurability, final int aToolQuality, final int aTypes, final int aR, final int aG,
- final int aB, final int aA, final String aLocalName, final int aFuelType, final int aFuelPower,
- final int aMeltingPoint, final int aBlastFurnaceTemp, final boolean aBlastFurnaceRequired,
- final boolean aTransparent, final int aOreValue, final int aDensityMultiplier,
- final int aDensityDivider, final Dyes aColor, final int aExtraData,
- final List<MaterialStack> aMaterialList, final List<TC_AspectStack> aAspects) {
+ final int aToolDurability, final int aToolQuality, final int aTypes, final int aR, final int aG,
+ final int aB, final int aA, final String aLocalName, final int aFuelType, final int aFuelPower,
+ final int aMeltingPoint, final int aBlastFurnaceTemp, final boolean aBlastFurnaceRequired,
+ final boolean aTransparent, final int aOreValue, final int aDensityMultiplier, final int aDensityDivider,
+ final Dyes aColor, final int aExtraData, final List<MaterialStack> aMaterialList,
+ final List<TC_AspectStack> aAspects) {
this(
- aMetaItemSubID,
- aIconSet,
- aToolSpeed,
- aToolDurability,
- aToolQuality,
- aTypes,
- aR,
- aG,
- aB,
- aA,
- aLocalName,
- aFuelType,
- aFuelPower,
- aMeltingPoint,
- aBlastFurnaceTemp,
- aBlastFurnaceRequired,
- aTransparent,
- aOreValue,
- aDensityMultiplier,
- aDensityDivider,
- aColor);
+ aMetaItemSubID,
+ aIconSet,
+ aToolSpeed,
+ aToolDurability,
+ aToolQuality,
+ aTypes,
+ aR,
+ aG,
+ aB,
+ aA,
+ aLocalName,
+ aFuelType,
+ aFuelPower,
+ aMeltingPoint,
+ aBlastFurnaceTemp,
+ aBlastFurnaceRequired,
+ aTransparent,
+ aOreValue,
+ aDensityMultiplier,
+ aDensityDivider,
+ aColor);
this.mExtraData = aExtraData;
this.mMaterialList.addAll(aMaterialList);
this.mChemicalFormula = "";
@@ -948,17 +976,18 @@ public enum GregtechOrePrefixes {
*/
public static void init(final GT_Config aConfiguration) {
for (final GT_Materials tMaterial : VALUES) {
- final String tString = tMaterial.toString().toLowerCase();
+ final String tString = tMaterial.toString()
+ .toLowerCase();
tMaterial.mHeatDamage = (float) aConfiguration
- .get(ConfigCategories.Materials.heatdamage, tString, tMaterial.mHeatDamage);
+ .get(ConfigCategories.Materials.heatdamage, tString, tMaterial.mHeatDamage);
if (tMaterial.mBlastFurnaceRequired) {
tMaterial.mBlastFurnaceRequired = aConfiguration
- .get(ConfigCategories.Materials.blastfurnacerequirements, tString, true);
+ .get(ConfigCategories.Materials.blastfurnacerequirements, tString, true);
}
if (tMaterial.mBlastFurnaceRequired && aConfiguration.get(
- ConfigCategories.Materials.blastinductionsmelter,
- tString,
- tMaterial.mBlastFurnaceTemp < 1500)) {}
+ ConfigCategories.Materials.blastinductionsmelter,
+ tString,
+ tMaterial.mBlastFurnaceTemp < 1500)) {}
}
}
@@ -1041,10 +1070,10 @@ public enum GregtechOrePrefixes {
}
if ((aMultiplier >= (M * 2)) && !this.mMaterialList.isEmpty()) {
return (((this.mElement != null)
- || ((this.mMaterialList.size() < 2) && (this.mMaterialList.get(0).mAmount == 1)))
- ? this.mChemicalFormula
- : "(" + this.mChemicalFormula + ")")
- + aMultiplier;
+ || ((this.mMaterialList.size() < 2) && (this.mMaterialList.get(0).mAmount == 1)))
+ ? this.mChemicalFormula
+ : "(" + this.mChemicalFormula + ")")
+ + aMultiplier;
}
return this.mChemicalFormula;
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/gui/GTPP_UITextures.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/gui/GTPP_UITextures.java
index febd8aea62..e6276713f3 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/gui/GTPP_UITextures.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/gui/GTPP_UITextures.java
@@ -12,126 +12,128 @@ public class GTPP_UITextures {
public static final UITexture OVERLAY_SLOT_COAL = UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/coal");
public static final UITexture OVERLAY_SLOT_CANISTER_DARK = UITexture
- .fullImage(GTPlusPlus.ID, "gui/overlay_slot/canister_dark");
+ .fullImage(GTPlusPlus.ID, "gui/overlay_slot/canister_dark");
public static final AdaptableUITexture BACKGROUND_YELLOW = AdaptableUITexture
- .of(GTPlusPlus.ID, "gui/background/yellow", 176, 166, 4);
+ .of(GTPlusPlus.ID, "gui/background/yellow", 176, 166, 4);
public static final AdaptableUITexture SLOT_ITEM_YELLOW = AdaptableUITexture
- .of(GTPlusPlus.ID, "gui/slot/item_yellow", 18, 18, 1);
+ .of(GTPlusPlus.ID, "gui/slot/item_yellow", 18, 18, 1);
public static final AdaptableUITexture[] SLOT_INVENTORY_MANAGER = new AdaptableUITexture[] {
- AdaptableUITexture.of(GTPlusPlus.ID, "gui/slot/red", 18, 18, 1),
- AdaptableUITexture.of(GTPlusPlus.ID, "gui/slot/green", 18, 18, 1),
- AdaptableUITexture.of(GTPlusPlus.ID, "gui/slot/blue", 18, 18, 1),
- AdaptableUITexture.of(GTPlusPlus.ID, "gui/slot/cyan", 18, 18, 1),
- AdaptableUITexture.of(GTPlusPlus.ID, "gui/slot/magenta", 18, 18, 1),
- AdaptableUITexture.of(GTPlusPlus.ID, "gui/slot/yellow", 18, 18, 1), };
+ AdaptableUITexture.of(GTPlusPlus.ID, "gui/slot/red", 18, 18, 1),
+ AdaptableUITexture.of(GTPlusPlus.ID, "gui/slot/green", 18, 18, 1),
+ AdaptableUITexture.of(GTPlusPlus.ID, "gui/slot/blue", 18, 18, 1),
+ AdaptableUITexture.of(GTPlusPlus.ID, "gui/slot/cyan", 18, 18, 1),
+ AdaptableUITexture.of(GTPlusPlus.ID, "gui/slot/magenta", 18, 18, 1),
+ AdaptableUITexture.of(GTPlusPlus.ID, "gui/slot/yellow", 18, 18, 1), };
public static final UITexture BUTTON_STANDARD_BRONZE = UITexture
- .fullImage(GTPlusPlus.ID, "gui/button/standard_bronze");
+ .fullImage(GTPlusPlus.ID, "gui/button/standard_bronze");
public static final UITexture OVERLAY_SLOT_WEED_EX = UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/weed_ex");
public static final UITexture OVERLAY_SLOT_FERTILIZER = UITexture
- .fullImage(GTPlusPlus.ID, "gui/overlay_slot/fertilizer");
+ .fullImage(GTPlusPlus.ID, "gui/overlay_slot/fertilizer");
public static final UITexture OVERLAY_SLOT_ELECTRIC_TOOL = UITexture
- .fullImage(GTPlusPlus.ID, "gui/overlay_slot/electric_tool");
+ .fullImage(GTPlusPlus.ID, "gui/overlay_slot/electric_tool");
public static final UITexture OVERLAY_SLOT_PAGE_PRINTED_BRONZE = UITexture
- .fullImage(GTPlusPlus.ID, "gui/overlay_slot/page_printed_bronze");
+ .fullImage(GTPlusPlus.ID, "gui/overlay_slot/page_printed_bronze");
public static final UITexture OVERLAY_SLOT_ARROW = UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/arrow");
public static final UITexture OVERLAY_SLOT_ARROW_BRONZE = UITexture
- .fullImage(GTPlusPlus.ID, "gui/overlay_slot/arrow_bronze");
+ .fullImage(GTPlusPlus.ID, "gui/overlay_slot/arrow_bronze");
public static final UITexture OVERLAY_SLOT_CRAFT_OUTPUT = UITexture
- .fullImage(GTPlusPlus.ID, "gui/overlay_slot/craft_output");
+ .fullImage(GTPlusPlus.ID, "gui/overlay_slot/craft_output");
public static final UITexture OVERLAY_SLOT_CRAFT_OUTPUT_BRONZE = UITexture
- .fullImage(GTPlusPlus.ID, "gui/overlay_slot/craft_output_bronze");
+ .fullImage(GTPlusPlus.ID, "gui/overlay_slot/craft_output_bronze");
public static final UITexture OVERLAY_SLOT_PARK = UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/park");
public static final UITexture OVERLAY_SLOT_PARK_BRONZE = UITexture
- .fullImage(GTPlusPlus.ID, "gui/overlay_slot/park_bronze");
+ .fullImage(GTPlusPlus.ID, "gui/overlay_slot/park_bronze");
public static final UITexture OVERLAY_SLOT_INGOT = UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/ingot");
public static final UITexture OVERLAY_SLOT_ARROW_4 = UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/arrow_4");
public static final UITexture OVERLAY_SLOT_TURBINE = UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/turbine");
public static final UITexture OVERLAY_SLOT_CHEST = UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/chest");
public static final UITexture[] OVERLAY_SLOT_INVENTORY_MANAGER_COLOR = new UITexture[] {
- UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/red"),
- UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/green"),
- UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/blue"),
- UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/cyan"),
- UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/magenta"),
- UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/yellow"), };
+ UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/red"),
+ UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/green"),
+ UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/blue"),
+ UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/cyan"),
+ UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/magenta"),
+ UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/yellow"), };
public static final UITexture[] OVERLAY_SLOT_INVENTORY_MANAGER_ARROW = new UITexture[] {
- UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/arrow_red"),
- UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/arrow_green"),
- UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/arrow_blue"),
- UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/arrow_cyan"),
- UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/arrow_magenta"),
- UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/arrow_yellow"), };
+ UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/arrow_red"),
+ UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/arrow_green"),
+ UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/arrow_blue"),
+ UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/arrow_cyan"),
+ UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/arrow_magenta"),
+ UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_slot/arrow_yellow"), };
public static final UITexture PROGRESSBAR_FLUID_REACTOR = UITexture
- .fullImage(GTPlusPlus.ID, "gui/progressbar/fluid_reactor");
+ .fullImage(GTPlusPlus.ID, "gui/progressbar/fluid_reactor");
public static final UITexture PROGRESSBAR_BOILER_EMPTY = UITexture
- .fullImage(GTPlusPlus.ID, "gui/progressbar/boiler_empty");
+ .fullImage(GTPlusPlus.ID, "gui/progressbar/boiler_empty");
public static final UITexture PROGRESSBAR_FUEL = UITexture.fullImage(GTPlusPlus.ID, "gui/progressbar/fuel");
public static final UITexture PROGRESSBAR_ARROW_2 = UITexture.fullImage(GTPlusPlus.ID, "gui/progressbar/arrow_2");
public static final UITexture PROGRESSBAR_PSS_ENERGY = UITexture
- .fullImage(GTPlusPlus.ID, "gui/progressbar/pss_energy");
+ .fullImage(GTPlusPlus.ID, "gui/progressbar/pss_energy");
public static final AdaptableUITexture TAB_TITLE_YELLOW = AdaptableUITexture
- .of(GTPlusPlus.ID, "gui/tab/title_yellow", 28, 28, 4);
+ .of(GTPlusPlus.ID, "gui/tab/title_yellow", 28, 28, 4);
public static final AdaptableUITexture TAB_TITLE_ANGULAR_YELLOW = AdaptableUITexture
- .of(GTPlusPlus.ID, "gui/tab/title_angular_yellow", 28, 28, 4);
+ .of(GTPlusPlus.ID, "gui/tab/title_angular_yellow", 28, 28, 4);
public static final AdaptableUITexture TAB_TITLE_DARK_YELLOW = AdaptableUITexture
- .of(GTPlusPlus.ID, "gui/tab/title_dark_yellow", 28, 28, 4);
+ .of(GTPlusPlus.ID, "gui/tab/title_dark_yellow", 28, 28, 4);
public static final UITexture OVERLAY_BUTTON_HARVESTER_MODE = UITexture
- .fullImage(GTPlusPlus.ID, "gui/overlay_button/harvester_mode");
+ .fullImage(GTPlusPlus.ID, "gui/overlay_button/harvester_mode");
public static final UITexture OVERLAY_BUTTON_HARVESTER_TOGGLE = UITexture
- .fullImage(GTPlusPlus.ID, "gui/overlay_button/harvester_toggle");
+ .fullImage(GTPlusPlus.ID, "gui/overlay_button/harvester_toggle");
public static final UITexture OVERLAY_BUTTON_FLUSH = UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_button/flush");
public static final UITexture OVERLAY_BUTTON_FLUSH_BRONZE = UITexture
- .fullImage(GTPlusPlus.ID, "gui/overlay_button/flush_bronze");
+ .fullImage(GTPlusPlus.ID, "gui/overlay_button/flush_bronze");
public static final UITexture OVERLAY_BUTTON_AUTOMATION = UITexture
- .fullImage(GTPlusPlus.ID, "gui/overlay_button/automation");
+ .fullImage(GTPlusPlus.ID, "gui/overlay_button/automation");
public static final UITexture OVERLAY_BUTTON_LOCK = UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_button/lock");
public static final UITexture[] OVERLAY_BUTTON_THROUGHPUT = IntStream.range(0, 4) // GT_MetaTileEntity_ElectricAutoWorkbench#MAX_THROUGHPUT
- .mapToObj(i -> UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_button/throughput_" + i))
- .collect(Collectors.toList()).toArray(new UITexture[0]);
+ .mapToObj(i -> UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_button/throughput_" + i))
+ .collect(Collectors.toList())
+ .toArray(new UITexture[0]);
public static final UITexture[] OVERLAY_BUTTON_MODE = IntStream.range(0, 10) // GT_MetaTileEntity_ElectricAutoWorkbench#MAX_MODES
- .mapToObj(i -> UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_button/mode_" + i))
- .collect(Collectors.toList()).toArray(new UITexture[0]);
+ .mapToObj(i -> UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_button/mode_" + i))
+ .collect(Collectors.toList())
+ .toArray(new UITexture[0]);
public static final UITexture[] OVERLAY_BUTTON_DIRECTION = new UITexture[] {
- UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_button/bottom"),
- UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_button/top"),
- UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_button/north"),
- UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_button/south"),
- UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_button/west"),
- UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_button/east"), };
+ UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_button/bottom"),
+ UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_button/top"),
+ UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_button/north"),
+ UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_button/south"),
+ UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_button/west"),
+ UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_button/east"), };
public static final UITexture[] OVERLAY_BUTTON_DIRECTION_GRAY = new UITexture[] {
- UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_button/bottom_gray"),
- UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_button/top_gray"),
- UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_button/north_gray"),
- UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_button/south_gray"),
- UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_button/west_gray"),
- UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_button/east_gray"), };
+ UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_button/bottom_gray"),
+ UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_button/top_gray"),
+ UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_button/north_gray"),
+ UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_button/south_gray"),
+ UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_button/west_gray"),
+ UITexture.fullImage(GTPlusPlus.ID, "gui/overlay_button/east_gray"), };
public static final UITexture OVERLAY_BUTTON_TIP_GREEN = UITexture
- .fullImage(GTPlusPlus.ID, "gui/overlay_button/tip_green");
+ .fullImage(GTPlusPlus.ID, "gui/overlay_button/tip_green");
public static final UITexture OVERLAY_BUTTON_TIP_RED = UITexture
- .fullImage(GTPlusPlus.ID, "gui/overlay_button/tip_red");
+ .fullImage(GTPlusPlus.ID, "gui/overlay_button/tip_red");
public static final UITexture OVERLAY_BUTTON_ACTIVE_STATE = UITexture
- .fullImage(GTPlusPlus.ID, "gui/overlay_button/active_state");
+ .fullImage(GTPlusPlus.ID, "gui/overlay_button/active_state");
public static final UITexture OVERLAY_BUTTON_CHANGE_MODE = UITexture
- .fullImage(GTPlusPlus.ID, "gui/overlay_button/change_mode");
+ .fullImage(GTPlusPlus.ID, "gui/overlay_button/change_mode");
public static final UITexture OVERLAY_BUTTON_PLUS_MINUS = UITexture
- .fullImage(GTPlusPlus.ID, "gui/overlay_button/plus_minus");
+ .fullImage(GTPlusPlus.ID, "gui/overlay_button/plus_minus");
public static final UITexture PICTURE_WORKBENCH_CIRCLE = UITexture
- .fullImage(GTPlusPlus.ID, "gui/picture/workbench_circle");
+ .fullImage(GTPlusPlus.ID, "gui/picture/workbench_circle");
public static final UITexture PICTURE_ARROW_WHITE_DOWN = UITexture
- .fullImage(GTPlusPlus.ID, "gui/picture/arrow_white_down");
+ .fullImage(GTPlusPlus.ID, "gui/picture/arrow_white_down");
public static final UITexture PICTURE_REDSTONE_CIRCUIT_SCREEN = UITexture
- .fullImage(GTPlusPlus.ID, "gui/picture/redstone_circuit_screen");
+ .fullImage(GTPlusPlus.ID, "gui/picture/redstone_circuit_screen");
public static final UITexture PICTURE_ELECTRICITY_ERROR = UITexture
- .fullImage(GTPlusPlus.ID, "gui/picture/electricity_error");
+ .fullImage(GTPlusPlus.ID, "gui/picture/electricity_error");
public static final UITexture PICTURE_ELECTRICITY_FINE = UITexture
- .fullImage(GTPlusPlus.ID, "gui/picture/electricity_fine");
+ .fullImage(GTPlusPlus.ID, "gui/picture/electricity_fine");
public static final UITexture PICTURE_ENERGY_FRAME = UITexture.fullImage(GTPlusPlus.ID, "gui/picture/energy_frame");
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/gui/widget/ElectricSlotWidget.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/gui/widget/ElectricSlotWidget.java
index d555317717..e522d41799 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/gui/widget/ElectricSlotWidget.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/gui/widget/ElectricSlotWidget.java
@@ -26,8 +26,8 @@ public class ElectricSlotWidget extends SlotWidget {
private ElectricSlotWidget(BaseSlot slot) {
super(slot);
setFilter(
- stack -> (accepts(stack)) || (stack.getItem() instanceof GT_MetaGenerated_Tool)
- || (stack.getItem() instanceof IElectricItem));
+ stack -> (accepts(stack)) || (stack.getItem() instanceof GT_MetaGenerated_Tool)
+ || (stack.getItem() instanceof IElectricItem));
}
private boolean accepts(final ItemStack stack) {
@@ -35,6 +35,6 @@ public class ElectricSlotWidget extends SlotWidget {
return false;
}
return (Info.itemEnergy.getEnergyValue(stack) > 0.0D)
- || (ElectricItem.manager.discharge(stack, (1.0D / 0.0D), 4, true, true, true) > 0.0D);
+ || (ElectricItem.manager.discharge(stack, (1.0D / 0.0D), 4, true, true, true) > 0.0D);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/interfaces/internal/IGregtech_RecipeAdder.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/interfaces/internal/IGregtech_RecipeAdder.java
index 6754828db2..faa39dadc3 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/interfaces/internal/IGregtech_RecipeAdder.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/interfaces/internal/IGregtech_RecipeAdder.java
@@ -22,13 +22,13 @@ public interface IGregtech_RecipeAdder {
* @return true if the Recipe got added, otherwise false.
*/
boolean addCokeOvenRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput,
- ItemStack aOutput, int aDuration, int aEUt);
+ ItemStack aOutput, int aDuration, int aEUt);
boolean addCokeOvenRecipe(int aCircuit, ItemStack aInput2, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs,
- ItemStack[] aOutputs, int aDuration, int aEUt);
+ ItemStack[] aOutputs, int aDuration, int aEUt);
boolean addCokeOvenRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack[] aFluidInputs,
- FluidStack[] aFluidOutputs, ItemStack[] aOutputs, int aDuration, int aEUt);
+ FluidStack[] aFluidOutputs, ItemStack[] aOutputs, int aDuration, int aEUt);
/**
* Adds a Matter Fabricator Recipe
@@ -55,7 +55,7 @@ public interface IGregtech_RecipeAdder {
* @return true if the Recipe got added, otherwise false.
*/
boolean addDehydratorRecipe(ItemStack[] aInput, FluidStack aFluidInput, FluidStack aFluidOutput,
- ItemStack[] aOutputItems, int[] aChances, int aDuration, int aEUt);
+ ItemStack[] aOutputItems, int[] aChances, int aDuration, int aEUt);
/**
* Adds a Recipe for the Alloy Blast Smelter. (up to 9 Inputs)
@@ -83,7 +83,7 @@ public interface IGregtech_RecipeAdder {
*/
boolean addBlastSmelterRecipe(ItemStack[] aInput, FluidStack aInputFluid, FluidStack aOutput, int aChance,
- int aDuration, int aEUt);
+ int aDuration, int aEUt);
/**
* Adds a Recipe for the Alloy Blast Smelter. (up to 9 Inputs, More than 1 Fluids)
@@ -98,7 +98,7 @@ public interface IGregtech_RecipeAdder {
*/
boolean addBlastSmelterRecipe(ItemStack[] aInput, FluidStack[] aInputFluid, FluidStack aOutput, int aChance,
- int aDuration, int aEUt);
+ int aDuration, int aEUt);
/**
* Adds a Recipe for the Alloy Blast Smelter. (up to 9 Inputs)
@@ -114,14 +114,13 @@ public interface IGregtech_RecipeAdder {
*/
boolean addBlastSmelterRecipe(ItemStack[] aInput, FluidStack aInputFluid, FluidStack aOutput,
- ItemStack[] aOutputStack, int[] aChance, int aDuration, int aEUt);
+ ItemStack[] aOutputStack, int[] aChance, int aDuration, int aEUt);
boolean addBlastSmelterRecipe(ItemStack[] aInput, FluidStack aInputFluid, FluidStack aOutput, int aChance,
- int aDuration, int aEUt, int aSpecialValue);
+ int aDuration, int aEUt, int aSpecialValue);
boolean addBlastSmelterRecipe(ItemStack[] aInput, FluidStack aInputFluid, FluidStack aOutput,
- ItemStack[] aOutputStack, int[] aChance, int aDuration, int aEUt, int aSpecialValue,
- boolean aOptimizeRecipe);
+ ItemStack[] aOutputStack, int[] aChance, int aDuration, int aEUt, int aSpecialValue, boolean aOptimizeRecipe);
/**
* Adds a Recipe for the Alloy Blast Smelter. (up to 9 Inputs, More than 1 fluids)
@@ -137,14 +136,13 @@ public interface IGregtech_RecipeAdder {
*/
boolean addBlastSmelterRecipe(ItemStack[] aInput, FluidStack[] aInputFluid, FluidStack aOutput,
- ItemStack[] aOutputStack, int[] aChance, int aDuration, int aEUt);
+ ItemStack[] aOutputStack, int[] aChance, int aDuration, int aEUt);
boolean addBlastSmelterRecipe(ItemStack[] aInput, FluidStack[] aInputFluid, FluidStack aOutput, int aChance,
- int aDuration, int aEUt, int aSpecialValue);
+ int aDuration, int aEUt, int aSpecialValue);
boolean addBlastSmelterRecipe(ItemStack[] aInput, FluidStack[] aInputFluid, FluidStack aOutput,
- ItemStack[] aOutputStack, int[] aChance, int aDuration, int aEUt, int aSpecialValue,
- boolean aOptimizeRecipe);
+ ItemStack[] aOutputStack, int[] aChance, int aDuration, int aEUt, int aSpecialValue, boolean aOptimizeRecipe);
/**
* Adds a Recipe for the LFTRr. (up to 9 Inputs)
@@ -161,7 +159,7 @@ public interface IGregtech_RecipeAdder {
*/
boolean addBlastSmelterRecipe(ItemStack[] aInput, FluidStack aInputFluid, FluidStack aOutput,
- ItemStack[] aOutputStack, int[] aChance, int aDuration, int aEUt, int aSpecialValue);
+ ItemStack[] aOutputStack, int[] aChance, int aDuration, int aEUt, int aSpecialValue);
/**
* Adds a Recipe for the Quantum Force Smelter (up to 9 Inputs)
@@ -169,7 +167,7 @@ public interface IGregtech_RecipeAdder {
*
**/
boolean addQuantumTransformerRecipe(ItemStack[] aInput, FluidStack[] aFluidInput, FluidStack[] aFluidOutput,
- ItemStack[] aOutputStack, int[] aChances, int aDuration, int aEUt, int aSpecialValue);
+ ItemStack[] aOutputStack, int[] aChances, int aDuration, int aEUt, int aSpecialValue);
/**
* Adds a Recipe for the LFTRr. (up to 9 Inputs, More than 1 fluids)
@@ -186,7 +184,7 @@ public interface IGregtech_RecipeAdder {
*/
@Deprecated
boolean addBlastSmelterRecipe(ItemStack[] aInput, FluidStack[] aInputFluid, FluidStack aOutput,
- ItemStack[] aOutputStack, int[] aChance, int aDuration, int aEUt, int aSpecialValue);
+ ItemStack[] aOutputStack, int[] aChance, int aDuration, int aEUt, int aSpecialValue);
/**
* Adds a custom Semifluid fuel for the GT++ SemiFluid Generators.
@@ -207,36 +205,36 @@ public interface IGregtech_RecipeAdder {
boolean addSemifluidFuel(ItemStack aFuelItem, int aFuelValue);
boolean addFissionFuel(FluidStack aInput1, FluidStack aInput2, FluidStack aInput3, FluidStack aInput4,
- FluidStack aInput5, FluidStack aInput6, FluidStack aInput7, FluidStack aInput8, FluidStack aInput9,
- FluidStack aOutput1, FluidStack aOutput2, int aDuration, int aEUt);
+ FluidStack aInput5, FluidStack aInput6, FluidStack aInput7, FluidStack aInput8, FluidStack aInput9,
+ FluidStack aOutput1, FluidStack aOutput2, int aDuration, int aEUt);
boolean addFissionFuel(boolean aOptimise, FluidStack aInput1, FluidStack aInput2, FluidStack aInput3,
- FluidStack aInput4, FluidStack aInput5, FluidStack aInput6, FluidStack aInput7, FluidStack aInput8,
- FluidStack aInput9, FluidStack aOutput1, FluidStack aOutput2, int aDuration, int aEUt);
+ FluidStack aInput4, FluidStack aInput5, FluidStack aInput6, FluidStack aInput7, FluidStack aInput8,
+ FluidStack aInput9, FluidStack aOutput1, FluidStack aOutput2, int aDuration, int aEUt);
boolean addCyclotronRecipe(ItemStack aInput, FluidStack aFluidInput, ItemStack[] aOutputs, FluidStack aFluidOutput,
- int[] aChances, int aDuration, int aEUt, int aSpecialValue);
+ int[] aChances, int aDuration, int aEUt, int aSpecialValue);
boolean addCyclotronRecipe(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack[] aOutput,
- FluidStack aFluidOutput, int[] aChances, int aDuration, int aEUt, int aSpecialValue);
+ FluidStack aFluidOutput, int[] aChances, int aDuration, int aEUt, int aSpecialValue);
@Deprecated
boolean addMixerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aInput3, ItemStack aInput4,
- FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3,
- ItemStack aOutput4, int aDuration, int aEUt);
+ FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3,
+ ItemStack aOutput4, int aDuration, int aEUt);
boolean addMultiblockCentrifugeRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs,
- ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUtick, int aSpecial);
+ ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUtick, int aSpecial);
boolean addMultiblockElectrolyzerRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs,
- ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUtick, int aSpecial);
+ ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUtick, int aSpecial);
boolean addAdvancedFreezerRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs,
- ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUtick, int aSpecial);
+ ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUtick, int aSpecial);
@Deprecated
boolean addSixSlotAssemblingRecipe(ItemStack[] aInputs, FluidStack aInputFluid, ItemStack aOutput1, int aDuration,
- int aEUt);
+ int aEUt);
/**
* Adds an Assemblyline Recipe
@@ -249,7 +247,7 @@ public interface IGregtech_RecipeAdder {
*/
@Deprecated
boolean addAssemblylineRecipe(ItemStack aResearchItem, int aResearchTime, ItemStack[] aInputs,
- FluidStack[] aFluidInputs, ItemStack aOutput, int aDuration, int aEUt);
+ FluidStack[] aFluidInputs, ItemStack aOutput, int aDuration, int aEUt);
/**
* Adds a Assemblyline Recipe
@@ -259,34 +257,34 @@ public interface IGregtech_RecipeAdder {
*/
@Deprecated
boolean addAssemblylineRecipe(ItemStack aResearchItem, int aResearchTime, Object[] aInputs,
- FluidStack[] aFluidInputs, ItemStack aOutput1, int aDuration, int aEUt);
+ FluidStack[] aFluidInputs, ItemStack aOutput1, int aDuration, int aEUt);
@Deprecated
boolean addChemicalRecipe(ItemStack input1, ItemStack input2, FluidStack inputFluid, FluidStack outputFluid,
- ItemStack output, int time, int eu);
+ ItemStack output, int time, int eu);
@Deprecated
boolean addChemicalRecipe(ItemStack input1, ItemStack input2, FluidStack inputFluid, FluidStack outputFluid,
- ItemStack output, Object object, int time, int eu);
+ ItemStack output, Object object, int time, int eu);
@Deprecated
boolean addChemicalRecipe(ItemStack input1, ItemStack input2, FluidStack inputFluid, FluidStack outputFluid,
- ItemStack output, ItemStack object, int time);
+ ItemStack output, ItemStack object, int time);
@Deprecated
boolean addChemicalRecipe(ItemStack input1, ItemStack input2, int aCircuit, FluidStack inputFluid,
- FluidStack outputFluid, ItemStack output, ItemStack output2, int time, int eu);
+ FluidStack outputFluid, ItemStack output, ItemStack output2, int time, int eu);
@Deprecated
boolean addMultiblockChemicalRecipe(ItemStack[] itemStacks, FluidStack[] fluidStacks, FluidStack[] fluidStacks2,
- ItemStack[] outputs, int time, int eu);
+ ItemStack[] outputs, int time, int eu);
@Deprecated
boolean addCompressorRecipe(ItemStack aInput1, ItemStack aOutput1, int aDuration, int aEUt);
@Deprecated
boolean addBrewingRecipe(ItemStack aIngredient, FluidStack aInput, FluidStack aOutput, int aTime, int aEu,
- boolean aHidden);
+ boolean aHidden);
@Deprecated
boolean addBrewingRecipe(int aCircuit, FluidStack aInput, FluidStack aOutput, int aTime, int aEu, boolean aHidden);
@@ -299,41 +297,41 @@ public interface IGregtech_RecipeAdder {
@Deprecated
boolean addFluidExtractionRecipe(ItemStack aContainer, ItemStack aFullContainer, FluidStack rFluidOut, int aTime,
- int aEu);
+ int aEu);
@Deprecated
boolean addFluidCannerRecipe(ItemStack aContainer, ItemStack aFullContainer, FluidStack rFluidIn);
@Deprecated
boolean addFluidCannerRecipe(ItemStack aContainer, ItemStack aFullContainer, FluidStack rFluidIn,
- FluidStack rFluidOut);
+ FluidStack rFluidOut);
@Deprecated
boolean addFluidCannerRecipe(ItemStack aContainer, ItemStack aFullContainer, FluidStack rFluidIn,
- FluidStack rFluidOut, int aTime, int aEu);
+ FluidStack rFluidOut, int aTime, int aEu);
boolean addVacuumFurnaceRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput,
- FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt, int aLevel);
+ FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt, int aLevel);
boolean addVacuumFurnaceRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs, ItemStack[] aOutputs,
- FluidStack[] aFluidOutputs, int aDuration, int aEUt, int aLevel);
+ FluidStack[] aFluidOutputs, int aDuration, int aEUt, int aLevel);
@Deprecated
boolean addUvLaserRecipe(ItemStack aInput1, ItemStack aOutput, int time, long eu);
boolean addChemicalPlantRecipe(ItemStack[] aInputs, FluidStack[] aInputFluids, ItemStack[] aOutputs,
- FluidStack[] aFluidOutputs, int time, long eu, int aTier);
+ FluidStack[] aFluidOutputs, int time, long eu, int aTier);
boolean addChemicalPlantRecipe(ItemStack[] aInputs, FluidStack[] aInputFluids, ItemStack[] aOutputs,
- FluidStack[] aFluidOutputs, int[] aChances, int time, long eu, int aTier);
+ FluidStack[] aFluidOutputs, int[] aChances, int time, long eu, int aTier);
@Deprecated
boolean addBlastRecipe(ItemStack[] aInputs, FluidStack[] aInputFluids, ItemStack[] aOutputs,
- FluidStack[] aFluidOutputs, int time, long eu, int aHeat);
+ FluidStack[] aFluidOutputs, int time, long eu, int aHeat);
@Deprecated
boolean addPyrolyseRecipe(ItemStack aInput, FluidStack aFluidInput, int intCircuit, ItemStack aOutput,
- FluidStack aFluidOutput, int aDuration, int aEUt);
+ FluidStack aFluidOutput, int aDuration, int aEUt);
@Deprecated
boolean addExtractorRecipe(ItemStack aInput, ItemStack aOutput, int aDuration, int aEUt);
@@ -343,21 +341,21 @@ public interface IGregtech_RecipeAdder {
@Deprecated
boolean addDistilleryRecipe(ItemStack aCircuit, FluidStack aInput, FluidStack aOutput, ItemStack aSolidOutput,
- int aDuration, int aEUt, boolean aHidden);
+ int aDuration, int aEUt, boolean aHidden);
@Deprecated
boolean addPulverisationRecipe(final ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2,
- final ItemStack aOutput3);
+ final ItemStack aOutput3);
boolean addMillingRecipe(Materials aMat, int aEU);
boolean addMillingRecipe(Material aMat, int aEU);
boolean addFlotationRecipe(Materials aMat, ItemStack aXanthate, FluidStack[] aInputFluids,
- FluidStack[] aOutputFluids, int aTime, int aEU);
+ FluidStack[] aOutputFluids, int aTime, int aEU);
boolean addFlotationRecipe(Material aMat, ItemStack aXanthate, FluidStack[] aInputFluids,
- FluidStack[] aOutputFluids, int aTime, int aEU);
+ FluidStack[] aOutputFluids, int aTime, int aEU);
@Deprecated
boolean addpackagerRecipe(ItemStack aRecipeType, ItemStack aInput1, ItemStack aInput2, ItemStack aOutputStack1);
@@ -365,10 +363,10 @@ public interface IGregtech_RecipeAdder {
boolean addFuelForRTG(ItemStack aFuelPellet, int aFuelDays, int aVoltage);
boolean addColdTrapRecipe(int aCircuit, ItemStack aInput, FluidStack aFluidInput, ItemStack[] aOutputs,
- int[] aChances, FluidStack aFluidOutput, int aTime, int aEU);
+ int[] aChances, FluidStack aFluidOutput, int aTime, int aEU);
boolean addReactorProcessingUnitRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput,
- ItemStack[] aOutputs, int[] aChances, FluidStack aFluidOutput, int aTime, int aEU);
+ ItemStack[] aOutputs, int[] aChances, FluidStack aFluidOutput, int aTime, int aEU);
@Deprecated
boolean addFluidHeaterRecipe(ItemStack aCircuit, FluidStack aInput, FluidStack aOutput, int aDuration, int aEUt);
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/interfaces/internal/Interface_ItemBehaviour.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/interfaces/internal/Interface_ItemBehaviour.java
index 6896d6ffb1..545a97288f 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/interfaces/internal/Interface_ItemBehaviour.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/interfaces/internal/Interface_ItemBehaviour.java
@@ -19,10 +19,10 @@ public interface Interface_ItemBehaviour<E extends Item> {
public boolean onLeftClickEntity(E aItem, ItemStack aStack, EntityPlayer aPlayer, Entity aEntity);
public boolean onItemUse(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);
public 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);
public ItemStack onItemRightClick(E aItem, ItemStack aStack, World aWorld, EntityPlayer aPlayer);
@@ -39,8 +39,8 @@ public interface Interface_ItemBehaviour<E extends Item> {
public boolean hasProjectile(Gregtech_MetaItem_Base aItem, SubTag aProjectileType, ItemStack aStack);
public EntityArrow getProjectile(E aItem, SubTag aProjectileType, ItemStack aStack, World aWorld, double aX,
- double aY, double aZ);
+ double aY, double aZ);
public EntityArrow getProjectile(E aItem, SubTag aProjectileType, ItemStack aStack, World aWorld,
- EntityLivingBase aEntity, float aSpeed);
+ EntityLivingBase aEntity, float aSpeed);
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/interfaces/internal/Interface_OreRecipeRegistrator.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/interfaces/internal/Interface_OreRecipeRegistrator.java
index 1a8fdc175c..6ae25525bd 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/interfaces/internal/Interface_OreRecipeRegistrator.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/interfaces/internal/Interface_OreRecipeRegistrator.java
@@ -17,8 +17,8 @@ public interface Interface_OreRecipeRegistrator {
* @param aStack always != null
*/
public void registerOre(GregtechOrePrefixes aPrefix, GT_Materials aMaterial, String aOreDictName, String aModName,
- ItemStack aStack);
+ ItemStack aStack);
public void registerOre(GregtechOrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName,
- ItemStack copyAmount);
+ ItemStack copyAmount);
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/interfaces/internal/Interface_ToolStats.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/interfaces/internal/Interface_ToolStats.java
index 79b65051a4..97d952d4a1 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/interfaces/internal/Interface_ToolStats.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/interfaces/internal/Interface_ToolStats.java
@@ -166,7 +166,7 @@ public interface Interface_ToolStats extends IToolStats {
*/
@Override
public int convertBlockDrops(List<ItemStack> 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 Returns a broken Version of the Item.
@@ -179,14 +179,14 @@ public interface Interface_ToolStats extends IToolStats {
*/
@Override
public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack,
- EntityPlayer aPlayer);
+ EntityPlayer aPlayer);
/**
* @return the Damage actually done to the Mob.
*/
@Override
public float getMagicDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack,
- EntityPlayer aPlayer);
+ EntityPlayer aPlayer);
@Override
public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack);
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/items/Gregtech_Generic_Item.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/items/Gregtech_Generic_Item.java
index 01628d60d0..3ad04ab014 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/items/Gregtech_Generic_Item.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/items/Gregtech_Generic_Item.java
@@ -44,15 +44,15 @@ public class Gregtech_Generic_Item extends Item implements IProjectileItem {
}
public Gregtech_Generic_Item(final String aUnlocalized, final String aEnglish, final String aEnglishTooltip,
- final boolean aWriteToolTipIntoLangFile) {
+ final boolean aWriteToolTipIntoLangFile) {
super();
this.mName = aUnlocalized;
GT_LanguageManager.addStringLocalization(this.mName + ".name", aEnglish);
if (GT_Utility.isStringValid(aEnglishTooltip)) {
GT_LanguageManager.addStringLocalization(
- this.mTooltip = this.mName + ".tooltip_main",
- aEnglishTooltip,
- aWriteToolTipIntoLangFile);
+ this.mTooltip = this.mName + ".tooltip_main",
+ aEnglishTooltip,
+ aWriteToolTipIntoLangFile);
} else {
this.mTooltip = null;
}
@@ -84,7 +84,7 @@ public class Gregtech_Generic_Item extends Item implements IProjectileItem {
@Override
public boolean doesSneakBypassUse(final World aWorld, final int aX, final int aY, final int aZ,
- final EntityPlayer aPlayer) {
+ final EntityPlayer aPlayer) {
return true;
}
@@ -99,7 +99,7 @@ public class Gregtech_Generic_Item extends Item implements IProjectileItem {
@Override
public void addInformation(final ItemStack aStack, final EntityPlayer aPlayer, final List aList,
- final boolean aF3_H) {
+ final boolean aF3_H) {
if ((this.getMaxDamage() > 0) && !this.getHasSubtypes()) {
aList.add((aStack.getMaxDamage() - this.getDamage(aStack)) + " / " + aStack.getMaxDamage());
}
@@ -135,13 +135,13 @@ public class Gregtech_Generic_Item extends Item implements IProjectileItem {
@Override
public EntityArrow getProjectile(final SubTag aProjectileType, final ItemStack aStack, final World aWorld,
- final double aX, final double aY, final double aZ) {
+ final double aX, final double aY, final double aZ) {
return null;
}
@Override
public EntityArrow getProjectile(final SubTag aProjectileType, final ItemStack aStack, final World aWorld,
- final EntityLivingBase aEntity, final float aSpeed) {
+ final EntityLivingBase aEntity, final float aSpeed) {
return null;
}
@@ -175,23 +175,30 @@ public class Gregtech_Generic_Item extends Item implements IProjectileItem {
@Override
public int getColorFromItemStack(final ItemStack stack, int HEX_OxFFFFFF) {
- if (stack.getDisplayName().contains("LuV")) {
+ if (stack.getDisplayName()
+ .contains("LuV")) {
HEX_OxFFFFFF = 0xffffcc;
- } else if (stack.getDisplayName().contains("ZPM")) {
- HEX_OxFFFFFF = 0xace600;
- } else if (stack.getDisplayName().contains("UV")) {
- HEX_OxFFFFFF = 0xffff00;
- } else if (stack.getDisplayName().contains("MAX")) {
- HEX_OxFFFFFF = 0xff0000;
- } else if (stack.getDisplayName().contains("Sodium")) {
- HEX_OxFFFFFF = Utils.rgbtoHexValue(0, 0, 150);
- } else if (stack.getDisplayName().contains("Cadmium")) {
- HEX_OxFFFFFF = Utils.rgbtoHexValue(50, 50, 60);
- } else if (stack.getDisplayName().contains("Lithium")) {
- HEX_OxFFFFFF = Utils.rgbtoHexValue(225, 220, 255);
- } else {
- HEX_OxFFFFFF = 0xffffff;
- }
+ } else if (stack.getDisplayName()
+ .contains("ZPM")) {
+ HEX_OxFFFFFF = 0xace600;
+ } else if (stack.getDisplayName()
+ .contains("UV")) {
+ HEX_OxFFFFFF = 0xffff00;
+ } else if (stack.getDisplayName()
+ .contains("MAX")) {
+ HEX_OxFFFFFF = 0xff0000;
+ } else if (stack.getDisplayName()
+ .contains("Sodium")) {
+ HEX_OxFFFFFF = Utils.rgbtoHexValue(0, 0, 150);
+ } else if (stack.getDisplayName()
+ .contains("Cadmium")) {
+ HEX_OxFFFFFF = Utils.rgbtoHexValue(50, 50, 60);
+ } else if (stack.getDisplayName()
+ .contains("Lithium")) {
+ HEX_OxFFFFFF = Utils.rgbtoHexValue(225, 220, 255);
+ } else {
+ HEX_OxFFFFFF = 0xffffff;
+ }
return HEX_OxFFFFFF;
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/items/Gregtech_MetaItem.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/items/Gregtech_MetaItem.java
index db41fd1e9f..015ba9d716 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/items/Gregtech_MetaItem.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/items/Gregtech_MetaItem.java
@@ -117,8 +117,8 @@ public abstract class Gregtech_MetaItem extends Gregtech_MetaItem_Base {
if (tRandomData instanceof Interface_ItemBehaviour) {
this.addItemBehavior(
- this.mOffset + aID,
- (Interface_ItemBehaviour<Gregtech_MetaItem_Base>) tRandomData);
+ this.mOffset + aID,
+ (Interface_ItemBehaviour<Gregtech_MetaItem_Base>) tRandomData);
tUseOreDict = false;
}
if (tRandomData instanceof IItemContainer) {
@@ -185,7 +185,7 @@ public abstract class Gregtech_MetaItem extends Gregtech_MetaItem_Base {
* @return the Item itself for convenience in constructing.
*/
public final Gregtech_MetaItem setElectricStats(final int aMetaValue, final long aMaxCharge,
- final long aTransferLimit, final long aTier, final long aSpecialData, final boolean aUseAnimations) {
+ final long aTransferLimit, final long aTier, final long aSpecialData, final boolean aUseAnimations) {
if ((aMetaValue < 0) || (aMetaValue >= (this.mOffset + this.mEnabledItems.length()))) {
return this;
}
@@ -193,12 +193,12 @@ public abstract class Gregtech_MetaItem extends Gregtech_MetaItem_Base {
this.mElectricStats.remove((short) aMetaValue);
} else {
this.mElectricStats.put(
- (short) aMetaValue,
- new Long[] { aMaxCharge, Math.max(0, aTransferLimit), Math.max(-1, aTier), aSpecialData });
+ (short) aMetaValue,
+ new Long[] { aMaxCharge, Math.max(0, aTransferLimit), Math.max(-1, aTier), aSpecialData });
if ((aMetaValue >= this.mOffset) && aUseAnimations) {
this.mIconList[aMetaValue - this.mOffset] = Arrays.copyOf(
- this.mIconList[aMetaValue - this.mOffset],
- Math.max(9, this.mIconList[aMetaValue - this.mOffset].length));
+ this.mIconList[aMetaValue - this.mOffset],
+ Math.max(9, this.mIconList[aMetaValue - this.mOffset].length));
}
}
return this;
@@ -216,7 +216,7 @@ public abstract class Gregtech_MetaItem extends Gregtech_MetaItem_Base {
* @return the Item itself for convenience in constructing.
*/
public final Gregtech_MetaItem setFluidContainerStats(final int aMetaValue, final long aCapacity,
- final long aStacksize) {
+ final long aStacksize) {
if ((aMetaValue < 0) || (aMetaValue >= (this.mOffset + this.mEnabledItems.length()))) {
return this;
}
@@ -302,10 +302,10 @@ public abstract class Gregtech_MetaItem extends Gregtech_MetaItem_Base {
if (this.mEnabledItems.get(i)) {
for (byte k = 1; k < this.mIconList[i].length; k++) {
this.mIconList[i][k] = aIconRegister
- .registerIcon(GTPlusPlus.ID + ":" + this.getUnlocalizedName() + "/" + i + "/" + k);
+ .registerIcon(GTPlusPlus.ID + ":" + this.getUnlocalizedName() + "/" + i + "/" + k);
}
this.mIconList[i][0] = aIconRegister
- .registerIcon(GTPlusPlus.ID + ":" + this.getUnlocalizedName() + "/" + i);
+ .registerIcon(GTPlusPlus.ID + ":" + this.getUnlocalizedName() + "/" + i);
}
}
}
@@ -337,17 +337,21 @@ public abstract class Gregtech_MetaItem extends Gregtech_MetaItem_Base {
@Override
public int getColorFromItemStack(final ItemStack stack, int HEX_OxFFFFFF) {
- if (stack.getDisplayName().contains("LuV")) {
+ if (stack.getDisplayName()
+ .contains("LuV")) {
HEX_OxFFFFFF = 0xffffcc;
- } else if (stack.getDisplayName().contains("ZPM")) {
- HEX_OxFFFFFF = 0xace600;
- } else if (stack.getDisplayName().contains("UV")) {
- HEX_OxFFFFFF = 0xffff00;
- } else if (stack.getDisplayName().contains("MAX")) {
- HEX_OxFFFFFF = 0xff0000;
- } else {
- HEX_OxFFFFFF = 0xffffff;
- }
+ } else if (stack.getDisplayName()
+ .contains("ZPM")) {
+ HEX_OxFFFFFF = 0xace600;
+ } else if (stack.getDisplayName()
+ .contains("UV")) {
+ HEX_OxFFFFFF = 0xffff00;
+ } else if (stack.getDisplayName()
+ .contains("MAX")) {
+ HEX_OxFFFFFF = 0xff0000;
+ } else {
+ HEX_OxFFFFFF = 0xffffff;
+ }
return HEX_OxFFFFFF;
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/items/Gregtech_MetaItem_Base.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/items/Gregtech_MetaItem_Base.java
index e6f7933fd7..3c4418c2bf 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/items/Gregtech_MetaItem_Base.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/items/Gregtech_MetaItem_Base.java
@@ -34,7 +34,7 @@ import ic2.api.item.IElectricItemManager;
import ic2.api.item.ISpecialElectricItem;
public abstract class Gregtech_MetaItem_Base extends Gregtech_Generic_Item
- implements ISpecialElectricItem, IElectricItemManager, IFluidContainerItem {
+ implements ISpecialElectricItem, IElectricItemManager, IFluidContainerItem {
/* ---------- CONSTRUCTOR AND MEMBER VARIABLES ---------- */
private final HashMap<Short, ArrayList<Interface_ItemBehaviour<Gregtech_MetaItem_Base>>> mItemBehaviors = new HashMap<>();
@@ -61,7 +61,7 @@ public abstract class Gregtech_MetaItem_Base extends Gregtech_Generic_Item
* @return the Item itself for convenience in constructing.
*/
public final Gregtech_MetaItem_Base addItemBehavior(final int aMetaValue,
- final Interface_ItemBehaviour<Gregtech_MetaItem_Base> aBehavior) {
+ final Interface_ItemBehaviour<Gregtech_MetaItem_Base> aBehavior) {
if ((aMetaValue < 0) || (aMetaValue >= 32766) || (aBehavior == null)) {
return this;
}
@@ -81,7 +81,7 @@ public abstract class Gregtech_MetaItem_Base extends Gregtech_Generic_Item
@Override
public boolean hasProjectile(final SubTag aProjectileType, final ItemStack aStack) {
final ArrayList<Interface_ItemBehaviour<Gregtech_MetaItem_Base>> tList = this.mItemBehaviors
- .get((short) this.getDamage(aStack));
+ .get((short) this.getDamage(aStack));
if (tList != null) {
for (final Interface_ItemBehaviour<Gregtech_MetaItem_Base> tBehavior : tList) {
if (tBehavior.hasProjectile(this, aProjectileType, aStack)) {
@@ -94,9 +94,9 @@ public abstract class Gregtech_MetaItem_Base extends Gregtech_Generic_Item
@Override
public EntityArrow getProjectile(final SubTag aProjectileType, final ItemStack aStack, final World aWorld,
- final double aX, final double aY, final double aZ) {
+ final double aX, final double aY, final double aZ) {
final ArrayList<Interface_ItemBehaviour<Gregtech_MetaItem_Base>> tList = this.mItemBehaviors
- .get((short) this.getDamage(aStack));
+ .get((short) this.getDamage(aStack));
if (tList != null) {
for (final Interface_ItemBehaviour<Gregtech_MetaItem_Base> tBehavior : tList) {
final EntityArrow rArrow = tBehavior.getProjectile(this, aProjectileType, aStack, aWorld, aX, aY, aZ);
@@ -110,13 +110,13 @@ public abstract class Gregtech_MetaItem_Base extends Gregtech_Generic_Item
@Override
public EntityArrow getProjectile(final SubTag aProjectileType, final ItemStack aStack, final World aWorld,
- final EntityLivingBase aEntity, final float aSpeed) {
+ final EntityLivingBase aEntity, final float aSpeed) {
final ArrayList<Interface_ItemBehaviour<Gregtech_MetaItem_Base>> tList = this.mItemBehaviors
- .get((short) this.getDamage(aStack));
+ .get((short) this.getDamage(aStack));
if (tList != null) {
for (final Interface_ItemBehaviour<Gregtech_MetaItem_Base> tBehavior : tList) {
final EntityArrow rArrow = tBehavior
- .getProjectile(this, aProjectileType, aStack, aWorld, aEntity, aSpeed);
+ .getProjectile(this, aProjectileType, aStack, aWorld, aEntity, aSpeed);
if (rArrow != null) {
return rArrow;
}
@@ -128,7 +128,7 @@ public abstract class Gregtech_MetaItem_Base extends Gregtech_Generic_Item
@Override
public ItemStack onDispense(final IBlockSource aSource, final ItemStack aStack) {
final ArrayList<Interface_ItemBehaviour<Gregtech_MetaItem_Base>> tList = this.mItemBehaviors
- .get((short) this.getDamage(aStack));
+ .get((short) this.getDamage(aStack));
if (tList != null) {
for (final Interface_ItemBehaviour<Gregtech_MetaItem_Base> tBehavior : tList) {
if (tBehavior.canDispense(this, aSource, aStack)) {
@@ -142,7 +142,7 @@ public abstract class Gregtech_MetaItem_Base extends Gregtech_Generic_Item
@Override
public boolean isItemStackUsable(final ItemStack aStack) {
final ArrayList<Interface_ItemBehaviour<Gregtech_MetaItem_Base>> tList = this.mItemBehaviors
- .get((short) this.getDamage(aStack));
+ .get((short) this.getDamage(aStack));
if (tList != null) {
for (final Interface_ItemBehaviour<Gregtech_MetaItem_Base> tBehavior : tList) {
if (!tBehavior.isItemStackUsable(this, aStack)) {
@@ -158,7 +158,7 @@ public abstract class Gregtech_MetaItem_Base extends Gregtech_Generic_Item
this.use(aStack, 0, aPlayer);
this.isItemStackUsable(aStack);
final ArrayList<Interface_ItemBehaviour<Gregtech_MetaItem_Base>> tList = this.mItemBehaviors
- .get((short) this.getDamage(aStack));
+ .get((short) this.getDamage(aStack));
if (tList != null) {
for (final Interface_ItemBehaviour<Gregtech_MetaItem_Base> tBehavior : tList) {
try {
@@ -184,11 +184,11 @@ public abstract class Gregtech_MetaItem_Base extends Gregtech_Generic_Item
@Override
public boolean onItemUse(final ItemStack aStack, final EntityPlayer aPlayer, final World aWorld, final int aX,
- final int aY, final int aZ, final int ordinalSide, final float hitX, final float hitY, final float hitZ) {
+ final int aY, final int aZ, final int ordinalSide, final float hitX, final float hitY, final float hitZ) {
this.use(aStack, 0, aPlayer);
this.isItemStackUsable(aStack);
final ArrayList<Interface_ItemBehaviour<Gregtech_MetaItem_Base>> tList = this.mItemBehaviors
- .get((short) this.getDamage(aStack));
+ .get((short) this.getDamage(aStack));
if (tList != null) {
for (final Interface_ItemBehaviour<Gregtech_MetaItem_Base> tBehavior : tList) {
try {
@@ -214,16 +214,16 @@ public abstract class Gregtech_MetaItem_Base extends Gregtech_Generic_Item
@Override
public boolean onItemUseFirst(final ItemStack aStack, final EntityPlayer aPlayer, final World aWorld, final int aX,
- final int aY, final int aZ, final int ordinalSide, final float hitX, final float hitY, final float hitZ) {
+ final int aY, final int aZ, final int ordinalSide, final float hitX, final float hitY, final float hitZ) {
this.use(aStack, 0, aPlayer);
this.isItemStackUsable(aStack);
final ArrayList<Interface_ItemBehaviour<Gregtech_MetaItem_Base>> tList = this.mItemBehaviors
- .get((short) this.getDamage(aStack));
+ .get((short) this.getDamage(aStack));
if (tList != null) {
for (final Interface_ItemBehaviour<Gregtech_MetaItem_Base> tBehavior : tList) {
try {
if (tBehavior
- .onItemUseFirst(this, aStack, aPlayer, aWorld, aX, aY, aZ, ordinalSide, hitX, hitY, hitZ)) {
+ .onItemUseFirst(this, aStack, aPlayer, aWorld, aX, aY, aZ, ordinalSide, hitX, hitY, hitZ)) {
if (aStack.stackSize <= 0) {
aPlayer.destroyCurrentEquippedItem();
}
@@ -248,7 +248,7 @@ public abstract class Gregtech_MetaItem_Base extends Gregtech_Generic_Item
this.use(aStack, 0, aPlayer);
this.isItemStackUsable(aStack);
final ArrayList<Interface_ItemBehaviour<Gregtech_MetaItem_Base>> tList = this.mItemBehaviors
- .get((short) this.getDamage(aStack));
+ .get((short) this.getDamage(aStack));
if (tList != null) {
for (final Interface_ItemBehaviour<Gregtech_MetaItem_Base> tBehavior : tList) {
try {
@@ -265,9 +265,9 @@ public abstract class Gregtech_MetaItem_Base extends Gregtech_Generic_Item
@Override
public final void addInformation(final ItemStack aStack, final EntityPlayer aPlayer, List aList,
- final boolean aF3_H) {
+ final boolean aF3_H) {
final String tKey = this.getUnlocalizedName(aStack) + ".tooltip",
- tString = GT_LanguageManager.getTranslation(tKey);
+ tString = GT_LanguageManager.getTranslation(tKey);
if (GT_Utility.isStringValid(tString) && !tKey.equals(tString)) {
aList.add(tString);
}
@@ -276,28 +276,26 @@ public abstract class Gregtech_MetaItem_Base extends Gregtech_Generic_Item
if (tStats != null) {
if (tStats[3] > 0) {
aList.add(
- EnumChatFormatting.AQUA + "Contains "
- + GT_Utility.formatNumbers(tStats[3])
- + " EU Tier: "
- + (tStats[2] >= 0 ? tStats[2] : 0)
- + EnumChatFormatting.GRAY);
+ EnumChatFormatting.AQUA + "Contains "
+ + GT_Utility.formatNumbers(tStats[3])
+ + " EU Tier: "
+ + (tStats[2] >= 0 ? tStats[2] : 0)
+ + EnumChatFormatting.GRAY);
} else {
final long tCharge = this.getRealCharge(aStack);
if ((tStats[3] == -2) && (tCharge <= 0)) {
aList.add(
- EnumChatFormatting.AQUA + "Empty. You should recycle it properly."
- + EnumChatFormatting.GRAY);
+ EnumChatFormatting.AQUA + "Empty. You should recycle it properly." + EnumChatFormatting.GRAY);
} else {
aList.add(
- EnumChatFormatting.AQUA + ""
- + GT_Utility.formatNumbers(tCharge)
- + " / "
- + GT_Utility.formatNumbers(Math.abs(tStats[0]))
- + " EU - Voltage: "
- + GT_Utility.formatNumbers(
- V[(int) (tStats[2] >= 0 ? tStats[2] < V.length ? tStats[2] : V.length - 1
- : 1)])
- + EnumChatFormatting.GRAY);
+ EnumChatFormatting.AQUA + ""
+ + GT_Utility.formatNumbers(tCharge)
+ + " / "
+ + GT_Utility.formatNumbers(Math.abs(tStats[0]))
+ + " EU - Voltage: "
+ + GT_Utility.formatNumbers(
+ V[(int) (tStats[2] >= 0 ? tStats[2] < V.length ? tStats[2] : V.length - 1 : 1)])
+ + EnumChatFormatting.GRAY);
}
}
}
@@ -306,19 +304,19 @@ public abstract class Gregtech_MetaItem_Base extends Gregtech_Generic_Item
if ((tStats != null) && (tStats[0] > 0)) {
final FluidStack tFluid = this.getFluidContent(aStack);
aList.add(
- EnumChatFormatting.BLUE
- + ((tFluid == null ? "No Fluids Contained" : GT_Utility.getFluidName(tFluid, true)))
- + EnumChatFormatting.GRAY);
+ EnumChatFormatting.BLUE
+ + ((tFluid == null ? "No Fluids Contained" : GT_Utility.getFluidName(tFluid, true)))
+ + EnumChatFormatting.GRAY);
aList.add(
- EnumChatFormatting.BLUE
- + (GT_Utility.formatNumbers(tFluid == null ? 0 : tFluid.amount) + "L / "
- + GT_Utility.formatNumbers(tStats[0])
- + "L")
- + EnumChatFormatting.GRAY);
+ EnumChatFormatting.BLUE
+ + (GT_Utility.formatNumbers(tFluid == null ? 0 : tFluid.amount) + "L / "
+ + GT_Utility.formatNumbers(tStats[0])
+ + "L")
+ + EnumChatFormatting.GRAY);
}
final ArrayList<Interface_ItemBehaviour<Gregtech_MetaItem_Base>> tList = this.mItemBehaviors
- .get((short) this.getDamage(aStack));
+ .get((short) this.getDamage(aStack));
if (tList != null) {
for (final Interface_ItemBehaviour<Gregtech_MetaItem_Base> tBehavior : tList) {
aList = tBehavior.getAdditionalToolTips(this, aList, aStack);
@@ -330,9 +328,9 @@ public abstract class Gregtech_MetaItem_Base extends Gregtech_Generic_Item
@Override
public void onUpdate(final ItemStack aStack, final World aWorld, final Entity aPlayer, final int aTimer,
- final boolean aIsInHand) {
+ final boolean aIsInHand) {
final ArrayList<Interface_ItemBehaviour<Gregtech_MetaItem_Base>> tList = this.mItemBehaviors
- .get((short) this.getDamage(aStack));
+ .get((short) this.getDamage(aStack));
if (tList != null) {
for (final Interface_ItemBehaviour<Gregtech_MetaItem_Base> tBehavior : tList) {
tBehavior.onUpdate(this, aStack, aWorld, aPlayer, aTimer, aIsInHand);
@@ -369,18 +367,18 @@ public abstract class Gregtech_MetaItem_Base extends Gregtech_Generic_Item
@Override
public final double charge(final ItemStack aStack, final double aCharge, final int aTier,
- final boolean aIgnoreTransferLimit, final boolean aSimulate) {
+ final boolean aIgnoreTransferLimit, final boolean aSimulate) {
final Long[] tStats = this.getElectricStats(aStack);
if ((tStats == null) || (tStats[2] > aTier)
- || !((tStats[3] == -1) || (tStats[3] == -3) || ((tStats[3] < 0) && (aCharge == Integer.MAX_VALUE)))
- || (aStack.stackSize != 1)) {
+ || !((tStats[3] == -1) || (tStats[3] == -3) || ((tStats[3] < 0) && (aCharge == Integer.MAX_VALUE)))
+ || (aStack.stackSize != 1)) {
return 0;
}
- final long tChargeBefore = this.getRealCharge(aStack), tNewCharge = aCharge == Integer.MAX_VALUE
- ? Long.MAX_VALUE
+ final long tChargeBefore = this.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)));
+ Math.abs(tStats[0]),
+ tChargeBefore + (aIgnoreTransferLimit ? (long) aCharge : Math.min(tStats[1], (long) aCharge)));
if (!aSimulate) {
this.setCharge(aStack, tNewCharge);
}
@@ -389,7 +387,7 @@ public abstract class Gregtech_MetaItem_Base extends Gregtech_Generic_Item
@Override
public final double discharge(final ItemStack aStack, final double aCharge, final int aTier,
- final boolean aIgnoreTransferLimit, final boolean aBatteryAlike, final boolean aSimulate) {
+ final boolean aIgnoreTransferLimit, final boolean aBatteryAlike, final boolean aSimulate) {
final Long[] tStats = this.getElectricStats(aStack);
if ((tStats == null) || (tStats[2] > aTier)) {
return 0;
@@ -407,7 +405,7 @@ public abstract class Gregtech_MetaItem_Base extends Gregtech_Generic_Item
return tStats[3];
}
final long tChargeBefore = this.getRealCharge(aStack), tNewCharge = Math
- .max(0, tChargeBefore - (aIgnoreTransferLimit ? (long) aCharge : Math.min(tStats[1], (long) aCharge)));
+ .max(0, tChargeBefore - (aIgnoreTransferLimit ? (long) aCharge : Math.min(tStats[1], (long) aCharge)));
if (!aSimulate) {
this.setCharge(aStack, tNewCharge);
}
@@ -452,12 +450,12 @@ public abstract class Gregtech_MetaItem_Base extends Gregtech_Generic_Item
final IElectricItem tArmorItem = (IElectricItem) tArmor.getItem();
if (tArmorItem.canProvideEnergy(tArmor) && (tArmorItem.getTier(tArmor) >= this.getTier(aStack))) {
final double tCharge = ElectricItem.manager.discharge(
- tArmor,
- this.charge(aStack, Integer.MAX_VALUE - 1, Integer.MAX_VALUE, true, true),
- Integer.MAX_VALUE,
- true,
- true,
- false);
+ tArmor,
+ this.charge(aStack, Integer.MAX_VALUE - 1, Integer.MAX_VALUE, true, true),
+ Integer.MAX_VALUE,
+ true,
+ true,
+ false);
if (tCharge > 0) {
this.charge(aStack, tCharge, Integer.MAX_VALUE, true, false);
if (aPlayer instanceof EntityPlayer) {
@@ -544,15 +542,17 @@ public abstract class Gregtech_MetaItem_Base extends Gregtech_Generic_Item
final Long[] tStats = this.getFluidContainerStats(aStack);
if ((tStats == null) || (tStats[0] <= 0)
- || (aFluid == null)
- || (aFluid.getFluid().getID() <= 0)
- || (aFluid.amount <= 0)) {
+ || (aFluid == null)
+ || (aFluid.getFluid()
+ .getID() <= 0)
+ || (aFluid.amount <= 0)) {
return 0;
}
FluidStack tFluid = this.getFluidContent(aStack);
- if ((tFluid == null) || (tFluid.getFluid().getID() <= 0)) {
+ if ((tFluid == null) || (tFluid.getFluid()
+ .getID() <= 0)) {
if (aFluid.amount <= tStats[0]) {
if (doFill) {
this.setFluidContent(aStack, aFluid);
@@ -716,23 +716,30 @@ public abstract class Gregtech_MetaItem_Base extends Gregtech_Generic_Item
@Override
public int getColorFromItemStack(final ItemStack stack, int HEX_OxFFFFFF) {
- if (stack.getDisplayName().contains("LuV")) {
+ if (stack.getDisplayName()
+ .contains("LuV")) {
HEX_OxFFFFFF = 0xffffcc;
- } else if (stack.getDisplayName().contains("ZPM")) {
- HEX_OxFFFFFF = 0xace600;
- } else if (stack.getDisplayName().contains("UV")) {
- HEX_OxFFFFFF = 0xffff00;
- } else if (stack.getDisplayName().contains("MAX")) {
- HEX_OxFFFFFF = 0xff0000;
- } else if (stack.getDisplayName().contains("Sodium")) {
- HEX_OxFFFFFF = Utils.rgbtoHexValue(0, 0, 150);
- } else if (stack.getDisplayName().contains("Cadmium")) {
- HEX_OxFFFFFF = Utils.rgbtoHexValue(50, 50, 60);
- } else if (stack.getDisplayName().contains("Lithium")) {
- HEX_OxFFFFFF = Utils.rgbtoHexValue(225, 220, 255);
- } else {
- HEX_OxFFFFFF = 0xffffff;
- }
+ } else if (stack.getDisplayName()
+ .contains("ZPM")) {
+ HEX_OxFFFFFF = 0xace600;
+ } else if (stack.getDisplayName()
+ .contains("UV")) {
+ HEX_OxFFFFFF = 0xffff00;
+ } else if (stack.getDisplayName()
+ .contains("MAX")) {
+ HEX_OxFFFFFF = 0xff0000;
+ } else if (stack.getDisplayName()
+ .contains("Sodium")) {
+ HEX_OxFFFFFF = Utils.rgbtoHexValue(0, 0, 150);
+ } else if (stack.getDisplayName()
+ .contains("Cadmium")) {
+ HEX_OxFFFFFF = Utils.rgbtoHexValue(50, 50, 60);
+ } else if (stack.getDisplayName()
+ .contains("Lithium")) {
+ HEX_OxFFFFFF = Utils.rgbtoHexValue(225, 220, 255);
+ } else {
+ HEX_OxFFFFFF = 0xffffff;
+ }
return HEX_OxFFFFFF;
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/items/Gregtech_MetaItem_X32.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/items/Gregtech_MetaItem_X32.java
index c87b46e696..c04acb9537 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/items/Gregtech_MetaItem_X32.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/items/Gregtech_MetaItem_X32.java
@@ -62,19 +62,19 @@ public abstract class Gregtech_MetaItem_X32 extends Gregtech_MetaItem {
if (this.doesMaterialAllowGeneration(tPrefix, tMaterial)) {
final ItemStack tStack = new ItemStack(this, 1, i);
GT_LanguageManager.addStringLocalization(
- this.getUnlocalizedName(tStack) + ".name",
- this.getDefaultLocalization(tPrefix, tMaterial, i));
+ this.getUnlocalizedName(tStack) + ".name",
+ this.getDefaultLocalization(tPrefix, tMaterial, i));
GT_LanguageManager.addStringLocalization(
- this.getUnlocalizedName(tStack) + ".tooltip",
- tMaterial.getToolTip(tPrefix.mMaterialAmount / GT_Values.M));
+ this.getUnlocalizedName(tStack) + ".tooltip",
+ tMaterial.getToolTip(tPrefix.mMaterialAmount / GT_Values.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))
- && ((tMaterial == Materials.Lead) || (tMaterial == Materials.Tin)
- || (tMaterial == Materials.SolderingAlloy))) {
+ && ((tMaterial == Materials.Lead) || (tMaterial == Materials.Tin)
+ || (tMaterial == Materials.SolderingAlloy))) {
GregTech_API.sSolderingMetalList.add(tStack);
}
}
@@ -123,9 +123,9 @@ public abstract class Gregtech_MetaItem_X32 extends Gregtech_MetaItem {
*/
public final IIconContainer getIconContainer(final int aMetaData, final Materials aMaterial) {
return (this.mGeneratedPrefixList[aMetaData / 1000] != null)
- && (this.mGeneratedPrefixList[aMetaData / 1000].mTextureIndex >= 0)
- ? aMaterial.mIconSet.mTextures[this.mGeneratedPrefixList[aMetaData / 1000].mTextureIndex]
- : null;
+ && (this.mGeneratedPrefixList[aMetaData / 1000].mTextureIndex >= 0)
+ ? aMaterial.mIconSet.mTextures[this.mGeneratedPrefixList[aMetaData / 1000].mTextureIndex]
+ : null;
}
/**
@@ -136,7 +136,7 @@ public abstract class Gregtech_MetaItem_X32 extends Gregtech_MetaItem {
* @return if this Item should be visible in NEI or Creative
*/
public boolean doesShowInCreative(final OrePrefixes aPrefix, final Materials aMaterial,
- final boolean aDoShowAllItems) {
+ final boolean aDoShowAllItems) {
return true;
}
@@ -160,7 +160,7 @@ public abstract class Gregtech_MetaItem_X32 extends Gregtech_MetaItem {
@Override
public final IIconContainer getIconContainer(final int aMetaData) {
return GregTech_API.sGeneratedMaterials[aMetaData % 1000] == null ? null
- : this.getIconContainer(aMetaData, GregTech_API.sGeneratedMaterials[aMetaData % 1000]);
+ : this.getIconContainer(aMetaData, GregTech_API.sGeneratedMaterials[aMetaData % 1000]);
}
@Override
@@ -168,12 +168,12 @@ public abstract class Gregtech_MetaItem_X32 extends Gregtech_MetaItem {
public final void getSubItems(final Item var1, final CreativeTabs aCreativeTab, final List aList) {
for (int i = 0; i < 32000; i++) {
if (this.doesMaterialAllowGeneration(
+ this.mGeneratedPrefixList[i / 1000],
+ GregTech_API.sGeneratedMaterials[i % 1000])
+ && this.doesShowInCreative(
this.mGeneratedPrefixList[i / 1000],
- GregTech_API.sGeneratedMaterials[i % 1000])
- && this.doesShowInCreative(
- this.mGeneratedPrefixList[i / 1000],
- GregTech_API.sGeneratedMaterials[i % 1000],
- GregTech_API.sDoShowAllItemsInCreative)) {
+ GregTech_API.sGeneratedMaterials[i % 1000],
+ GregTech_API.sDoShowAllItemsInCreative)) {
final ItemStack tStack = new ItemStack(this, 1, i);
this.isItemStackUsable(tStack);
aList.add(tStack);
@@ -206,7 +206,7 @@ public abstract class Gregtech_MetaItem_X32 extends Gregtech_MetaItem {
final int tDamage = this.getDamage(aStack);
if ((tDamage < 32000) && (this.mGeneratedPrefixList[tDamage / 1000] != null)) {
return Math
- .min(super.getItemStackLimit(aStack), this.mGeneratedPrefixList[tDamage / 1000].mDefaultStackSize);
+ .min(super.getItemStackLimit(aStack), this.mGeneratedPrefixList[tDamage / 1000].mDefaultStackSize);
}
return super.getItemStackLimit(aStack);
}
@@ -215,40 +215,52 @@ public abstract class Gregtech_MetaItem_X32 extends Gregtech_MetaItem {
public int getColorFromItemStack(final ItemStack stack, int HEX_OxFFFFFF) {
int aMeta = stack.getItemDamage();
- if (stack.getDisplayName().contains("Sodium")) {
+ if (stack.getDisplayName()
+ .contains("Sodium")) {
HEX_OxFFFFFF = Utils.rgbtoHexValue(90, 90, 255);
- } else if (stack.getDisplayName().contains("Cadmium")) {
- HEX_OxFFFFFF = Utils.rgbtoHexValue(150, 150, 80);
- } else if (stack.getDisplayName().contains("Lithium")) {
- HEX_OxFFFFFF = Utils.rgbtoHexValue(225, 220, 255);
- } else if (stack.getDisplayName().contains("Wrought")) {
- HEX_OxFFFFFF = Utils.rgbtoHexValue(200, 180, 180);
- } else if (stack.getDisplayName().contains("Bronze")) {
- HEX_OxFFFFFF = Utils.rgbtoHexValue(255, 128, 0);
- } else if (stack.getDisplayName().contains("Brass")) {
- HEX_OxFFFFFF = Utils.rgbtoHexValue(255, 180, 0);
- } else if (stack.getDisplayName().contains("Invar")) {
- HEX_OxFFFFFF = Utils.rgbtoHexValue(180, 180, 120);
- } else {
- if (aMeta > 50 && aMeta != 150) {
- HEX_OxFFFFFF = 0xffffff;
- } else if (stack.getDisplayName().contains("ULV")) {
- HEX_OxFFFFFF = Utils.rgbtoHexValue(200, 180, 180);
- } else if (stack.getDisplayName().contains("LuV")) {
- HEX_OxFFFFFF = 0xffffcc;
- } else if (stack.getDisplayName().contains("ZPM")) {
- HEX_OxFFFFFF = 0xffe600;
- } else if (stack.getDisplayName().contains("UV")) {
- HEX_OxFFFFFF = 0xffb300;
- } else if (stack.getDisplayName().contains("MAX")) {
- HEX_OxFFFFFF = Utils.rgbtoHexValue(
- MathUtils.randInt(220, 250),
- MathUtils.randInt(221, 251),
- MathUtils.randInt(220, 250));
- } else {
- HEX_OxFFFFFF = 0xffffff;
- }
- }
+ } else if (stack.getDisplayName()
+ .contains("Cadmium")) {
+ HEX_OxFFFFFF = Utils.rgbtoHexValue(150, 150, 80);
+ } else if (stack.getDisplayName()
+ .contains("Lithium")) {
+ HEX_OxFFFFFF = Utils.rgbtoHexValue(225, 220, 255);
+ } else if (stack.getDisplayName()
+ .contains("Wrought")) {
+ HEX_OxFFFFFF = Utils.rgbtoHexValue(200, 180, 180);
+ } else if (stack.getDisplayName()
+ .contains("Bronze")) {
+ HEX_OxFFFFFF = Utils.rgbtoHexValue(255, 128, 0);
+ } else if (stack.getDisplayName()
+ .contains("Brass")) {
+ HEX_OxFFFFFF = Utils.rgbtoHexValue(255, 180, 0);
+ } else if (stack.getDisplayName()
+ .contains("Invar")) {
+ HEX_OxFFFFFF = Utils.rgbtoHexValue(180, 180, 120);
+ } else {
+ if (aMeta > 50 && aMeta != 150) {
+ HEX_OxFFFFFF = 0xffffff;
+ } else if (stack.getDisplayName()
+ .contains("ULV")) {
+ HEX_OxFFFFFF = Utils.rgbtoHexValue(200, 180, 180);
+ } else if (stack.getDisplayName()
+ .contains("LuV")) {
+ HEX_OxFFFFFF = 0xffffcc;
+ } else if (stack.getDisplayName()
+ .contains("ZPM")) {
+ HEX_OxFFFFFF = 0xffe600;
+ } else if (stack.getDisplayName()
+ .contains("UV")) {
+ HEX_OxFFFFFF = 0xffb300;
+ } else if (stack.getDisplayName()
+ .contains("MAX")) {
+ HEX_OxFFFFFF = Utils.rgbtoHexValue(
+ MathUtils.randInt(220, 250),
+ MathUtils.randInt(221, 251),
+ MathUtils.randInt(220, 250));
+ } else {
+ HEX_OxFFFFFF = 0xffffff;
+ }
+ }
return HEX_OxFFFFFF;
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/items/Gregtech_MetaTool.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/items/Gregtech_MetaTool.java
index 259aa2760c..fcfa5fae50 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/items/Gregtech_MetaTool.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/items/Gregtech_MetaTool.java
@@ -43,12 +43,12 @@ import mods.railcraft.api.core.items.IToolCrowbar;
* null);
*/
@Optional.InterfaceList({
- @Optional.Interface(iface = "forestry.api.arboriculture.IToolGrafter", modid = Mods.Names.FORESTRY),
- @Optional.Interface(iface = "mods.railcraft.api.core.items.IToolCrowbar", modid = Mods.Names.RAILCRAFT),
- @Optional.Interface(iface = "buildcraft.api.tools.IToolWrench", modid = "BuildCraft"),
- @Optional.Interface(iface = "crazypants.enderio.api.tool.ITool", modid = Mods.Names.ENDER_I_O) })
+ @Optional.Interface(iface = "forestry.api.arboriculture.IToolGrafter", modid = Mods.Names.FORESTRY),
+ @Optional.Interface(iface = "mods.railcraft.api.core.items.IToolCrowbar", modid = Mods.Names.RAILCRAFT),
+ @Optional.Interface(iface = "buildcraft.api.tools.IToolWrench", modid = "BuildCraft"),
+ @Optional.Interface(iface = "crazypants.enderio.api.tool.ITool", modid = Mods.Names.ENDER_I_O) })
public abstract class Gregtech_MetaTool extends GT_MetaGenerated_Tool
- implements IDamagableItem, IToolCrowbar, IToolWrench {
+ implements IDamagableItem, IToolCrowbar, IToolWrench {
/**
* All instances of this Item Class are listed here. This gets used to register the Renderer to all Items of this
@@ -80,25 +80,24 @@ public abstract class Gregtech_MetaTool extends GT_MetaGenerated_Tool
*/
@Override
public void onHarvestBlockEvent(final ArrayList<ItemStack> aDrops, final ItemStack aStack,
- final EntityPlayer aPlayer, final Block aBlock, final int aX, final int aY, final int aZ,
- final byte aMetaData, final int aFortune, final boolean aSilkTouch,
- final BlockEvent.HarvestDropsEvent aEvent) {
+ final EntityPlayer aPlayer, final Block aBlock, final int aX, final int aY, final int aZ, final byte aMetaData,
+ final int aFortune, final boolean aSilkTouch, final BlockEvent.HarvestDropsEvent aEvent) {
final IToolStats tStats = this.getToolStats(aStack);
if (this.isItemStackUsable(aStack) && (this.getDigSpeed(aStack, aBlock, aMetaData) > 0.0F)) {
this.doDamage(
+ aStack,
+ tStats.convertBlockDrops(
+ aDrops,
aStack,
- tStats.convertBlockDrops(
- aDrops,
- aStack,
- aPlayer,
- aBlock,
- aX,
- aY,
- aZ,
- aMetaData,
- aFortune,
- aSilkTouch,
- aEvent) * tStats.getToolDamagePerDropConversion());
+ aPlayer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ aMetaData,
+ aFortune,
+ aSilkTouch,
+ aEvent) * tStats.getToolDamagePerDropConversion());
}
}
@@ -113,28 +112,26 @@ public abstract class Gregtech_MetaTool extends GT_MetaGenerated_Tool
return true;
}
if (aEntity.canAttackWithItem() && !aEntity.hitByEntity(aPlayer)) {
- final float tMagicDamage = tStats
- .getMagicDamageAgainstEntity(
- aEntity instanceof EntityLivingBase
- ? EnchantmentHelper
- .getEnchantmentModifierLiving(aPlayer, (EntityLivingBase) aEntity)
- : 0.0F,
- aEntity,
- aStack,
- aPlayer);
+ final float tMagicDamage = tStats.getMagicDamageAgainstEntity(
+ aEntity instanceof EntityLivingBase
+ ? EnchantmentHelper.getEnchantmentModifierLiving(aPlayer, (EntityLivingBase) aEntity)
+ : 0.0F,
+ aEntity,
+ aStack,
+ aPlayer);
float tDamage = tStats.getNormalDamageAgainstEntity(
- (float) aPlayer.getEntityAttribute(SharedMonsterAttributes.attackDamage).getAttributeValue()
- + this.getToolCombatDamage(aStack),
- aEntity,
- aStack,
- aPlayer);
+ (float) aPlayer.getEntityAttribute(SharedMonsterAttributes.attackDamage)
+ .getAttributeValue() + this.getToolCombatDamage(aStack),
+ aEntity,
+ aStack,
+ aPlayer);
if ((tDamage + tMagicDamage) > 0.0F) {
final 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;
}
@@ -144,13 +141,13 @@ public abstract class Gregtech_MetaTool extends GT_MetaGenerated_Tool
aEntity.setFire(EnchantmentHelper.getFireAspectModifier(aPlayer) * 4);
}
final 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);
@@ -173,7 +170,7 @@ public abstract class Gregtech_MetaTool extends GT_MetaGenerated_Tool
aPlayer.addStat(StatList.damageDealtStat, Math.round(tDamage * 10.0F));
}
aEntity.hurtResistantTime = Math
- .max(1, tStats.getHurtResistanceTime(aEntity.hurtResistantTime, aEntity));
+ .max(1, tStats.getHurtResistanceTime(aEntity.hurtResistantTime, aEntity));
aPlayer.addExhaustion(0.3F);
this.doDamage(aStack, tStats.getToolDamagePerEntityAttack());
}
@@ -203,87 +200,86 @@ public abstract class Gregtech_MetaTool extends GT_MetaGenerated_Tool
if (tStats != null) {
final String name = aStack.getUnlocalizedName();
if (name.equals("gt.metatool.01.170") || name.equals("gt.metatool.01.172")
- || name.equals("gt.metatool.01.174")
- || name.equals("gt.metatool.01.176")) {
+ || name.equals("gt.metatool.01.174")
+ || name.equals("gt.metatool.01.176")) {
aList.add(
- tOffset + 0,
- EnumChatFormatting.WHITE + "Durability: "
- + EnumChatFormatting.GREEN
- + (tMaxDamage - getToolDamage(aStack))
- + " / "
- + tMaxDamage
- + EnumChatFormatting.GRAY);
+ tOffset + 0,
+ EnumChatFormatting.WHITE + "Durability: "
+ + EnumChatFormatting.GREEN
+ + (tMaxDamage - getToolDamage(aStack))
+ + " / "
+ + tMaxDamage
+ + EnumChatFormatting.GRAY);
aList.add(
- tOffset + 1,
- EnumChatFormatting.WHITE + tMaterial.mDefaultLocalName
- + EnumChatFormatting.YELLOW
- + " lvl "
- + this.getHarvestLevel(aStack, "")
- + EnumChatFormatting.GRAY);
+ tOffset + 1,
+ EnumChatFormatting.WHITE + tMaterial.mDefaultLocalName
+ + EnumChatFormatting.YELLOW
+ + " lvl "
+ + this.getHarvestLevel(aStack, "")
+ + EnumChatFormatting.GRAY);
aList.add(
- tOffset + 2,
- EnumChatFormatting.WHITE + "Turbine Efficency: "
- + EnumChatFormatting.BLUE
- + (50.0F + (10.0F * this.getToolCombatDamage(aStack)))
- + EnumChatFormatting.GRAY);
+ tOffset + 2,
+ EnumChatFormatting.WHITE + "Turbine Efficency: "
+ + EnumChatFormatting.BLUE
+ + (50.0F + (10.0F * this.getToolCombatDamage(aStack)))
+ + EnumChatFormatting.GRAY);
aList.add(
- tOffset + 3,
- EnumChatFormatting.WHITE + "Optimal Steam flow: "
- + EnumChatFormatting.LIGHT_PURPLE
- + Math.max(
- Float.MIN_NORMAL,
- tStats.getSpeedMultiplier() * getPrimaryMaterial(aStack).mToolSpeed * 1000)
- + EnumChatFormatting.GRAY
- + "L/sec");
+ tOffset + 3,
+ EnumChatFormatting.WHITE + "Optimal Steam flow: "
+ + EnumChatFormatting.LIGHT_PURPLE
+ + Math.max(
+ Float.MIN_NORMAL,
+ tStats.getSpeedMultiplier() * getPrimaryMaterial(aStack).mToolSpeed * 1000)
+ + EnumChatFormatting.GRAY
+ + "L/sec");
aList.add(
- tOffset + 3,
- EnumChatFormatting.WHITE + "Optimal Gas flow(EU burnvalue per tick): "
- + EnumChatFormatting.LIGHT_PURPLE
- + Math.max(
- Float.MIN_NORMAL,
- tStats.getSpeedMultiplier() * getPrimaryMaterial(aStack).mToolSpeed * 25)
- + EnumChatFormatting.GRAY
- + "EU/t");
+ tOffset + 3,
+ EnumChatFormatting.WHITE + "Optimal Gas flow(EU burnvalue per tick): "
+ + EnumChatFormatting.LIGHT_PURPLE
+ + Math.max(
+ Float.MIN_NORMAL,
+ tStats.getSpeedMultiplier() * getPrimaryMaterial(aStack).mToolSpeed * 25)
+ + EnumChatFormatting.GRAY
+ + "EU/t");
aList.add(
- tOffset + 3,
- EnumChatFormatting.WHITE + "Optimal Plasma flow(Plasma energyvalue per tick): "
- + EnumChatFormatting.LIGHT_PURPLE
- + Math.max(
- Float.MIN_NORMAL,
- tStats.getSpeedMultiplier() * getPrimaryMaterial(aStack).mToolSpeed * 1000)
- + EnumChatFormatting.GRAY
- + "EU/t");
+ tOffset + 3,
+ EnumChatFormatting.WHITE + "Optimal Plasma flow(Plasma energyvalue per tick): "
+ + EnumChatFormatting.LIGHT_PURPLE
+ + Math.max(
+ Float.MIN_NORMAL,
+ tStats.getSpeedMultiplier() * getPrimaryMaterial(aStack).mToolSpeed * 1000)
+ + EnumChatFormatting.GRAY
+ + "EU/t");
} else {
aList.add(
- tOffset + 0,
- EnumChatFormatting.WHITE + "Durability: "
- + EnumChatFormatting.GREEN
- + (tMaxDamage - getToolDamage(aStack))
- + " / "
- + tMaxDamage
- + EnumChatFormatting.GRAY);
+ tOffset + 0,
+ EnumChatFormatting.WHITE + "Durability: "
+ + EnumChatFormatting.GREEN
+ + (tMaxDamage - getToolDamage(aStack))
+ + " / "
+ + tMaxDamage
+ + EnumChatFormatting.GRAY);
aList.add(
- tOffset + 1,
- EnumChatFormatting.WHITE + tMaterial.mDefaultLocalName
- + EnumChatFormatting.YELLOW
- + " lvl "
- + this.getHarvestLevel(aStack, "")
- + EnumChatFormatting.GRAY);
+ tOffset + 1,
+ EnumChatFormatting.WHITE + tMaterial.mDefaultLocalName
+ + EnumChatFormatting.YELLOW
+ + " lvl "
+ + this.getHarvestLevel(aStack, "")
+ + EnumChatFormatting.GRAY);
aList.add(
- tOffset + 2,
- EnumChatFormatting.WHITE + "Attack Damage: "
- + EnumChatFormatting.BLUE
- + this.getToolCombatDamage(aStack)
- + EnumChatFormatting.GRAY);
+ tOffset + 2,
+ EnumChatFormatting.WHITE + "Attack Damage: "
+ + EnumChatFormatting.BLUE
+ + this.getToolCombatDamage(aStack)
+ + EnumChatFormatting.GRAY);
aList.add(
- tOffset + 3,
- EnumChatFormatting.WHITE + "Mining Speed: "
- + EnumChatFormatting.LIGHT_PURPLE
- + Math.max(
- Float.MIN_NORMAL,
- tStats.getSpeedMultiplier() * getPrimaryMaterial(aStack).mToolSpeed)
- + EnumChatFormatting.GRAY);
+ tOffset + 3,
+ EnumChatFormatting.WHITE + "Mining Speed: "
+ + EnumChatFormatting.LIGHT_PURPLE
+ + Math
+ .max(Float.MIN_NORMAL, tStats.getSpeedMultiplier() * getPrimaryMaterial(aStack).mToolSpeed)
+ + EnumChatFormatting.GRAY);
}
}
}
@@ -298,93 +294,93 @@ public abstract class Gregtech_MetaTool extends GT_MetaGenerated_Tool
if (tStats != null) {
final String name = aStack.getUnlocalizedName();
if (name.equals("gt.metatool.01.170") || name.equals("gt.metatool.01.172")
- || name.equals("gt.metatool.01.174")
- || name.equals("gt.metatool.01.176")) {
+ || name.equals("gt.metatool.01.174")
+ || name.equals("gt.metatool.01.176")) {
aList.add(
- tOffset + 0,
- EnumChatFormatting.WHITE + "Durability: "
- + EnumChatFormatting.GREEN
- + (tMaxDamage - getToolDamage(aStack))
- + " / "
- + tMaxDamage
- + EnumChatFormatting.GRAY);
+ tOffset + 0,
+ EnumChatFormatting.WHITE + "Durability: "
+ + EnumChatFormatting.GREEN
+ + (tMaxDamage - getToolDamage(aStack))
+ + " / "
+ + tMaxDamage
+ + EnumChatFormatting.GRAY);
aList.add(
- tOffset + 1,
- EnumChatFormatting.WHITE + tMaterial.mDefaultLocalName
- + EnumChatFormatting.YELLOW
- + " lvl "
- + this.getHarvestLevel(aStack, "")
- + EnumChatFormatting.GRAY);
+ tOffset + 1,
+ EnumChatFormatting.WHITE + tMaterial.mDefaultLocalName
+ + EnumChatFormatting.YELLOW
+ + " lvl "
+ + this.getHarvestLevel(aStack, "")
+ + EnumChatFormatting.GRAY);
aList.add(
- tOffset + 2,
- EnumChatFormatting.WHITE + "Turbine Efficency: "
- + EnumChatFormatting.BLUE
- + (50.0F + (10.0F * this.getToolCombatDamage(aStack)))
- + EnumChatFormatting.GRAY);
+ tOffset + 2,
+ EnumChatFormatting.WHITE + "Turbine Efficency: "
+ + EnumChatFormatting.BLUE
+ + (50.0F + (10.0F * this.getToolCombatDamage(aStack)))
+ + EnumChatFormatting.GRAY);
aList.add(
- tOffset + 3,
- EnumChatFormatting.WHITE + "Optimal Steam flow: "
- + EnumChatFormatting.LIGHT_PURPLE
- + Math.max(
- Float.MIN_NORMAL,
- tStats.getSpeedMultiplier() * getPrimaryMaterial(aStack).mToolSpeed * 1000)
- + EnumChatFormatting.GRAY
- + "L/sec");
+ tOffset + 3,
+ EnumChatFormatting.WHITE + "Optimal Steam flow: "
+ + EnumChatFormatting.LIGHT_PURPLE
+ + Math.max(
+ Float.MIN_NORMAL,
+ tStats.getSpeedMultiplier() * getPrimaryMaterial(aStack).mToolSpeed * 1000)
+ + EnumChatFormatting.GRAY
+ + "L/sec");
aList.add(
- tOffset + 3,
- EnumChatFormatting.WHITE + "Optimal Gas flow(EU burnvalue per tick): "
- + EnumChatFormatting.LIGHT_PURPLE
- + Math.max(
- Float.MIN_NORMAL,
- tStats.getSpeedMultiplier() * getPrimaryMaterial(aStack).mToolSpeed * 50)
- + EnumChatFormatting.GRAY
- + "EU/t");
+ tOffset + 3,
+ EnumChatFormatting.WHITE + "Optimal Gas flow(EU burnvalue per tick): "
+ + EnumChatFormatting.LIGHT_PURPLE
+ + Math.max(
+ Float.MIN_NORMAL,
+ tStats.getSpeedMultiplier() * getPrimaryMaterial(aStack).mToolSpeed * 50)
+ + EnumChatFormatting.GRAY
+ + "EU/t");
aList.add(
- tOffset + 3,
- EnumChatFormatting.WHITE + "Optimal Plasma flow(Plasma energyvalue per tick): "
- + EnumChatFormatting.LIGHT_PURPLE
- + Math.max(
- Float.MIN_NORMAL,
- tStats.getSpeedMultiplier() * getPrimaryMaterial(aStack).mToolSpeed * 1000)
- + EnumChatFormatting.GRAY
- + "EU/t");
+ tOffset + 3,
+ EnumChatFormatting.WHITE + "Optimal Plasma flow(Plasma energyvalue per tick): "
+ + EnumChatFormatting.LIGHT_PURPLE
+ + Math.max(
+ Float.MIN_NORMAL,
+ tStats.getSpeedMultiplier() * getPrimaryMaterial(aStack).mToolSpeed * 1000)
+ + EnumChatFormatting.GRAY
+ + "EU/t");
} else {
aList.add(
- tOffset + 0,
- EnumChatFormatting.WHITE + "Durability: "
- + EnumChatFormatting.GREEN
- + (tMaxDamage - getToolDamage(aStack))
- + " / "
- + tMaxDamage
- + EnumChatFormatting.GRAY);
+ tOffset + 0,
+ EnumChatFormatting.WHITE + "Durability: "
+ + EnumChatFormatting.GREEN
+ + (tMaxDamage - getToolDamage(aStack))
+ + " / "
+ + tMaxDamage
+ + EnumChatFormatting.GRAY);
aList.add(
- tOffset + 1,
- EnumChatFormatting.WHITE + tMaterial.mDefaultLocalName
- + EnumChatFormatting.YELLOW
- + " lvl "
- + this.getHarvestLevel(aStack, "")
- + EnumChatFormatting.GRAY);
+ tOffset + 1,
+ EnumChatFormatting.WHITE + tMaterial.mDefaultLocalName
+ + EnumChatFormatting.YELLOW
+ + " lvl "
+ + this.getHarvestLevel(aStack, "")
+ + EnumChatFormatting.GRAY);
aList.add(
- tOffset + 2,
- EnumChatFormatting.WHITE + "Attack Damage: "
- + EnumChatFormatting.BLUE
- + this.getToolCombatDamage(aStack)
- + EnumChatFormatting.GRAY);
+ tOffset + 2,
+ EnumChatFormatting.WHITE + "Attack Damage: "
+ + EnumChatFormatting.BLUE
+ + this.getToolCombatDamage(aStack)
+ + EnumChatFormatting.GRAY);
aList.add(
- tOffset + 3,
- EnumChatFormatting.WHITE + "Mining Speed: "
- + EnumChatFormatting.LIGHT_PURPLE
- + Math.max(
- Float.MIN_NORMAL,
- tStats.getSpeedMultiplier() * getPrimaryMaterial(aStack).mToolSpeed)
- + EnumChatFormatting.GRAY);
+ tOffset + 3,
+ EnumChatFormatting.WHITE + "Mining Speed: "
+ + EnumChatFormatting.LIGHT_PURPLE
+ + 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");
- final long tWorldTime = aPlayer.getEntityWorld().getWorldTime();
+ final long tWorldTime = aPlayer.getEntityWorld()
+ .getWorldTime();
if (aNBT.hasKey("HeatTime")) {
final long tHeatTime = aNBT.getLong("HeatTime");
if (tWorldTime > (tHeatTime + 10)) {
@@ -400,11 +396,11 @@ public abstract class Gregtech_MetaTool extends GT_MetaGenerated_Tool
}
aList.add(
- tOffset + 3,
- EnumChatFormatting.RED + "Heat: "
- + aNBT.getInteger("Heat")
- + " K"
- + EnumChatFormatting.GRAY);
+ tOffset + 3,
+ EnumChatFormatting.RED + "Heat: "
+ + aNBT.getInteger("Heat")
+ + " K"
+ + EnumChatFormatting.GRAY);
}
}
}
@@ -423,7 +419,7 @@ public abstract class Gregtech_MetaTool extends GT_MetaGenerated_Tool
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("SpecialData") };
}
}
return new Long[] {};
@@ -448,13 +444,13 @@ public abstract class Gregtech_MetaTool extends GT_MetaGenerated_Tool
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
public boolean onBlockDestroyed(final ItemStack aStack, final World aWorld, final Block aBlock, final int aX,
- final int aY, final int aZ, final EntityLivingBase aPlayer) {
+ final int aY, final int aZ, final EntityLivingBase aPlayer) {
if (!this.isItemStackUsable(aStack)) {
return false;
}
@@ -464,8 +460,8 @@ public abstract class Gregtech_MetaTool extends GT_MetaGenerated_Tool
}
GT_Utility.doSoundAtClient(tStats.getMiningSound(), 1, 1.0F);
this.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 this.getDigSpeed(aStack, aBlock, aWorld.getBlockMetadata(aX, aY, aZ)) > 0.0F;
}
@@ -496,7 +492,7 @@ public abstract class Gregtech_MetaTool extends GT_MetaGenerated_Tool
@Override
public boolean canWhack(final EntityPlayer aPlayer, final ItemStack aStack, final int aX, final int aY,
- final int aZ) {
+ final int aZ) {
if (!this.isItemStackUsable(aStack)) {
return false;
}
@@ -620,13 +616,13 @@ public abstract class Gregtech_MetaTool extends GT_MetaGenerated_Tool
if (tLevels[i] > 0) {
final 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 (final Entry<Integer, Integer> 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) {
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_ChiselBus.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_ChiselBus.java
index 687ea4429f..3009c80c80 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_ChiselBus.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_ChiselBus.java
@@ -45,12 +45,12 @@ public class GT_MetaTileEntity_ChiselBus extends GT_MetaTileEntity_Hatch_InputBu
@Override
public String[] getDescription() {
return new String[] { "Item Input Bus for Industrial Chisel", getSlots(this.mTier) - 1 + " + 1 " + " Slots",
- "Added by: " + EnumChatFormatting.AQUA
- + "Quetz4l"
- + " - "
- + EnumChatFormatting.RED
- + "[GT++]"
- + EnumChatFormatting.RESET };
+ "Added by: " + EnumChatFormatting.AQUA
+ + "Quetz4l"
+ + " - "
+ + EnumChatFormatting.RED
+ + "[GT++]"
+ + EnumChatFormatting.RESET };
}
@Override
@@ -61,13 +61,18 @@ public class GT_MetaTileEntity_ChiselBus extends GT_MetaTileEntity_Hatch_InputBu
int columnsToMake = Math.min(inventoryHandler.getSlots() - row * 4, 4);
for (int column = 0; column < columnsToMake; column++) {
scrollable.widget(
- new SlotWidget(inventoryHandler, slotIndex++).setPos(column * 18, row * 18).setSize(18, 18));
+ new SlotWidget(inventoryHandler, slotIndex++).setPos(column * 18, row * 18)
+ .setSize(18, 18));
}
}
- builder.widget(scrollable.setSize(18 * 4 + 4, 18 * 4).setPos(52, 7)); // main slots
- builder.widget(new SlotWidget(inventoryHandler, slotIndex).setPos(18, 18).setSize(18, 18)); // slot for target
+ builder.widget(
+ scrollable.setSize(18 * 4 + 4, 18 * 4)
+ .setPos(52, 7)); // main slots
+ builder.widget(
+ new SlotWidget(inventoryHandler, slotIndex).setPos(18, 18)
+ .setSize(18, 18)); // slot for target
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_AirIntake.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_AirIntake.java
index 7ceae20109..bab504910e 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_AirIntake.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_AirIntake.java
@@ -13,12 +13,12 @@ import gtPlusPlus.core.util.minecraft.FluidUtils;
public class GT_MetaTileEntity_Hatch_AirIntake extends GT_MetaTileEntity_Hatch_FluidGenerator {
public GT_MetaTileEntity_Hatch_AirIntake(final int aID, final String aName, final String aNameRegional,
- final int aTier) {
+ final int aTier) {
super(aID, aName, aNameRegional, aTier);
}
public GT_MetaTileEntity_Hatch_AirIntake(final String aName, final int aTier, final String[] aDescription,
- final ITexture[][][] aTextures) {
+ final ITexture[][][] aTextures) {
super(aName, aTier, aDescription, aTextures);
}
@@ -38,7 +38,8 @@ public class GT_MetaTileEntity_Hatch_AirIntake extends GT_MetaTileEntity_Hatch_F
@Override
public Fluid getFluidToGenerate() {
- return FluidUtils.getAir(1).getFluid();
+ return FluidUtils.getAir(1)
+ .getFluid();
}
@Override
@@ -58,12 +59,16 @@ public class GT_MetaTileEntity_Hatch_AirIntake extends GT_MetaTileEntity_Hatch_F
@Override
public boolean doesHatchMeetConditionsToGenerate() {
- return this.getBaseMetaTileEntity().getAirAtSide(this.getBaseMetaTileEntity().getFrontFacing());
+ return this.getBaseMetaTileEntity()
+ .getAirAtSide(
+ this.getBaseMetaTileEntity()
+ .getFrontFacing());
}
@Override
public void generateParticles(World aWorld, String name) {
- if (this.getBaseMetaTileEntity().isServerSide()) {
+ if (this.getBaseMetaTileEntity()
+ .isServerSide()) {
return;
}
final float ran1 = GT_MetaTileEntity_Hatch_AirIntake.floatGen.nextFloat();
@@ -96,28 +101,28 @@ public class GT_MetaTileEntity_Hatch_AirIntake extends GT_MetaTileEntity_Hatch_F
}
aWorld.spawnParticle(
- name,
- (double) (xPos + ran1 * 0.5f),
- (double) (yPos + GT_MetaTileEntity_Hatch_AirIntake.floatGen.nextFloat() * 0.5f),
- (double) (zPos + GT_MetaTileEntity_Hatch_AirIntake.floatGen.nextFloat() * 0.5f),
- (double) xSpd,
- (double) -ySpd,
- (double) zSpd);
+ name,
+ (double) (xPos + ran1 * 0.5f),
+ (double) (yPos + GT_MetaTileEntity_Hatch_AirIntake.floatGen.nextFloat() * 0.5f),
+ (double) (zPos + GT_MetaTileEntity_Hatch_AirIntake.floatGen.nextFloat() * 0.5f),
+ (double) xSpd,
+ (double) -ySpd,
+ (double) zSpd);
aWorld.spawnParticle(
- name,
- (double) (xPos + ran2 * 0.5f),
- (double) (yPos + GT_MetaTileEntity_Hatch_AirIntake.floatGen.nextFloat() * 0.5f),
- (double) (zPos + GT_MetaTileEntity_Hatch_AirIntake.floatGen.nextFloat() * 0.5f),
- (double) xSpd,
- (double) -ySpd,
- (double) zSpd);
+ name,
+ (double) (xPos + ran2 * 0.5f),
+ (double) (yPos + GT_MetaTileEntity_Hatch_AirIntake.floatGen.nextFloat() * 0.5f),
+ (double) (zPos + GT_MetaTileEntity_Hatch_AirIntake.floatGen.nextFloat() * 0.5f),
+ (double) xSpd,
+ (double) -ySpd,
+ (double) zSpd);
aWorld.spawnParticle(
- name,
- (double) (xPos + ran3 * 0.5f),
- (double) (yPos + GT_MetaTileEntity_Hatch_AirIntake.floatGen.nextFloat() * 0.5f),
- (double) (zPos + GT_MetaTileEntity_Hatch_AirIntake.floatGen.nextFloat() * 0.5f),
- (double) xSpd,
- (double) -ySpd,
- (double) zSpd);
+ name,
+ (double) (xPos + ran3 * 0.5f),
+ (double) (yPos + GT_MetaTileEntity_Hatch_AirIntake.floatGen.nextFloat() * 0.5f),
+ (double) (zPos + GT_MetaTileEntity_Hatch_AirIntake.floatGen.nextFloat() * 0.5f),
+ (double) xSpd,
+ (double) -ySpd,
+ (double) zSpd);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_AirIntake_Extreme.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_AirIntake_Extreme.java
index 235354f396..007310fc06 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_AirIntake_Extreme.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_AirIntake_Extreme.java
@@ -7,22 +7,22 @@ import gregtech.api.metatileentity.MetaTileEntity;
public class GT_MetaTileEntity_Hatch_AirIntake_Extreme extends GT_MetaTileEntity_Hatch_AirIntake {
public GT_MetaTileEntity_Hatch_AirIntake_Extreme(final int aID, final String aName, final String aNameRegional,
- final int aTier) {
+ final int aTier) {
super(aID, aName, aNameRegional, aTier);
}
public GT_MetaTileEntity_Hatch_AirIntake_Extreme(final String aName, final int aTier, final String[] aDescription,
- final ITexture[][][] aTextures) {
+ final ITexture[][][] aTextures) {
super(aName, aTier, aDescription, aTextures);
}
@Override
public MetaTileEntity newMetaEntity(final IGregTechTileEntity aTileEntity) {
return new GT_MetaTileEntity_Hatch_AirIntake_Extreme(
- this.mName,
- this.mTier,
- this.mDescriptionArray,
- this.mTextures);
+ this.mName,
+ this.mTier,
+ this.mDescriptionArray,
+ this.mTextures);
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_DynamoBuffer.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_DynamoBuffer.java
index 1811ee6183..f375900800 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_DynamoBuffer.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_DynamoBuffer.java
@@ -11,12 +11,12 @@ import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
public class GT_MetaTileEntity_Hatch_DynamoBuffer extends GT_MetaTileEntity_Hatch_Dynamo {
public GT_MetaTileEntity_Hatch_DynamoBuffer(final int aID, final String aName, final String aNameRegional,
- final int aTier) {
+ final int aTier) {
super(aID, aName, aNameRegional, aTier);
}
public GT_MetaTileEntity_Hatch_DynamoBuffer(final String aName, final int aTier, final String[] aDescription,
- final ITexture[][][] aTextures) {
+ final ITexture[][][] aTextures) {
super(aName, aTier, aDescription, aTextures);
}
@@ -49,8 +49,8 @@ public class GT_MetaTileEntity_Hatch_DynamoBuffer extends GT_MetaTileEntity_Hatc
public String[] getDescription() {
String[] g;
g = new String[] { "Dynamo with internal storage and additional Amp capacity",
- "Does not accept more than " + (this.maxEUOutput() * this.maxAmperesIn()) + "EU/t as input",
- CORE.GT_Tooltip.get() };
+ "Does not accept more than " + (this.maxEUOutput() * this.maxAmperesIn()) + "EU/t as input",
+ CORE.GT_Tooltip.get() };
return g;
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_ElementalDataOrbHolder.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_ElementalDataOrbHolder.java
index 2d534a493d..336c6eb011 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_ElementalDataOrbHolder.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_ElementalDataOrbHolder.java
@@ -26,26 +26,26 @@ import gtPlusPlus.core.util.minecraft.ItemUtils;
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
public class GT_MetaTileEntity_Hatch_ElementalDataOrbHolder extends GT_MetaTileEntity_Hatch
- implements IConfigurationCircuitSupport {
+ implements IConfigurationCircuitSupport {
public GT_MetaTileEntity_Hatch_ElementalDataOrbHolder(int aID, String aName, String aNameRegional, int aTier) {
super(
- aID,
- aName,
- aNameRegional,
- aTier,
- 17,
- new String[] { "Holds Data Orbs for the Elemental Duplicator", "Can insert/extract the circuit slot",
- "A circuit must be used to select a slot (1-16)", CORE.GT_Tooltip.get() });
+ aID,
+ aName,
+ aNameRegional,
+ aTier,
+ 17,
+ new String[] { "Holds Data Orbs for the Elemental Duplicator", "Can insert/extract the circuit slot",
+ "A circuit must be used to select a slot (1-16)", CORE.GT_Tooltip.get() });
}
public GT_MetaTileEntity_Hatch_ElementalDataOrbHolder(String aName, int aTier, String aDescription,
- ITexture[][][] aTextures) {
+ ITexture[][][] aTextures) {
super(aName, aTier, 17, aDescription, aTextures);
}
public GT_MetaTileEntity_Hatch_ElementalDataOrbHolder(String aName, int aTier, String[] aDescription,
- ITexture[][][] aTextures) {
+ ITexture[][][] aTextures) {
super(aName, aTier, 17, aDescription, aTextures);
}
@@ -126,10 +126,10 @@ public class GT_MetaTileEntity_Hatch_ElementalDataOrbHolder extends GT_MetaTileE
@Override
public boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
Logger.INFO("Checking if we can pull " + aStack.getDisplayName() + " from slot " + aIndex);
if (aIndex == mInventory.length - 1 && ItemUtils.isControlCircuit(aStack)
- && side == getBaseMetaTileEntity().getFrontFacing()) {
+ && side == getBaseMetaTileEntity().getFrontFacing()) {
return true;
}
return false;
@@ -137,10 +137,10 @@ public class GT_MetaTileEntity_Hatch_ElementalDataOrbHolder extends GT_MetaTileE
@Override
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
Logger.INFO("Checking if we can put " + aStack.getDisplayName() + " into slot " + aIndex);
if (aIndex == mInventory.length - 1 && ItemUtils.isControlCircuit(aStack)
- && side == getBaseMetaTileEntity().getFrontFacing()) {
+ && side == getBaseMetaTileEntity().getFrontFacing()) {
return true;
}
return false;
@@ -172,7 +172,8 @@ public class GT_MetaTileEntity_Hatch_ElementalDataOrbHolder extends GT_MetaTileE
@Override
public boolean canInsertItem(int aIndex, ItemStack aStack, int ordinalSide) {
if (aIndex == mInventory.length - 1 && ItemUtils.isControlCircuit(aStack)
- && ordinalSide == getBaseMetaTileEntity().getFrontFacing().ordinal()) {
+ && ordinalSide == getBaseMetaTileEntity().getFrontFacing()
+ .ordinal()) {
Logger.INFO("Putting " + aStack.getDisplayName() + " into slot " + aIndex);
return true;
}
@@ -216,11 +217,13 @@ public class GT_MetaTileEntity_Hatch_ElementalDataOrbHolder extends GT_MetaTileE
@Override
public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildContext) {
builder.widget(
- SlotGroup.ofItemHandler(inventoryHandler, 4).startFromSlot(0).endAtSlot(15)
- .background(getGUITextureSet().getItemSlot(), GT_UITextures.OVERLAY_SLOT_DATA_ORB)
- .applyForWidget(
- widget -> widget
- .setFilter(stack -> ItemList.Tool_DataOrb.isStackEqual(stack, false, true)))
- .build().setPos(52, 7));
+ SlotGroup.ofItemHandler(inventoryHandler, 4)
+ .startFromSlot(0)
+ .endAtSlot(15)
+ .background(getGUITextureSet().getItemSlot(), GT_UITextures.OVERLAY_SLOT_DATA_ORB)
+ .applyForWidget(
+ widget -> widget.setFilter(stack -> ItemList.Tool_DataOrb.isStackEqual(stack, false, true)))
+ .build()
+ .setPos(52, 7));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_FluidGenerator.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_FluidGenerator.java
index e50ec67d80..b4e213e829 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_FluidGenerator.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_FluidGenerator.java
@@ -26,12 +26,12 @@ public abstract class GT_MetaTileEntity_Hatch_FluidGenerator extends GT_MetaTile
public int mProgresstime = 0, mMaxProgresstime = 0;
public GT_MetaTileEntity_Hatch_FluidGenerator(final int aID, final String aName, final String aNameRegional,
- final int aTier) {
+ final int aTier) {
super(aID, aName, aNameRegional, aTier);
}
public GT_MetaTileEntity_Hatch_FluidGenerator(final String aName, final int aTier, final String[] aDescription,
- final ITexture[][][] aTextures) {
+ final ITexture[][][] aTextures) {
super(aName, aTier, aDescription, aTextures);
}
@@ -60,13 +60,13 @@ public abstract class GT_MetaTileEntity_Hatch_FluidGenerator extends GT_MetaTile
@Override
public ITexture[] getTexturesActive(final ITexture aBaseTexture) {
return new ITexture[] { aBaseTexture,
- new GT_RenderedTexture((IIconContainer) Textures.BlockIcons.OVERLAY_MUFFLER) };
+ new GT_RenderedTexture((IIconContainer) Textures.BlockIcons.OVERLAY_MUFFLER) };
}
@Override
public ITexture[] getTexturesInactive(final ITexture aBaseTexture) {
return new ITexture[] { aBaseTexture,
- new GT_RenderedTexture((IIconContainer) Textures.BlockIcons.OVERLAY_MUFFLER) };
+ new GT_RenderedTexture((IIconContainer) Textures.BlockIcons.OVERLAY_MUFFLER) };
}
@Override
@@ -93,12 +93,12 @@ public abstract class GT_MetaTileEntity_Hatch_FluidGenerator extends GT_MetaTile
public abstract MetaTileEntity newMetaEntity(final IGregTechTileEntity aTileEntity);
public boolean allowPullStack(final IGregTechTileEntity aBaseMetaTileEntity, final int aIndex,
- final ForgeDirection side, final ItemStack aStack) {
+ final ForgeDirection side, final ItemStack aStack) {
return false;
}
public boolean allowPutStack(final IGregTechTileEntity aBaseMetaTileEntity, final int aIndex,
- final ForgeDirection side, final ItemStack aStack) {
+ final ForgeDirection side, final ItemStack aStack) {
return false;
}
@@ -160,8 +160,12 @@ public abstract class GT_MetaTileEntity_Hatch_FluidGenerator extends GT_MetaTile
}
int aFillAmount = this.fill(FluidUtils.getFluidStack(getFluidToGenerate(), getAmountOfFluidToGenerate()), true);
if (aFillAmount > 0) {
- if (this.getBaseMetaTileEntity().isClientSide()) {
- generateParticles(this.getBaseMetaTileEntity().getWorld(), "cloud");
+ if (this.getBaseMetaTileEntity()
+ .isClientSide()) {
+ generateParticles(
+ this.getBaseMetaTileEntity()
+ .getWorld(),
+ "cloud");
}
}
return aFillAmount > 0;
@@ -184,14 +188,13 @@ public abstract class GT_MetaTileEntity_Hatch_FluidGenerator extends GT_MetaTile
@Override
public int fill(FluidStack aFluid, boolean doFill) {
- if (aFluid == null || aFluid.getFluid().getID() <= 0
- || aFluid.amount <= 0
- || aFluid.getFluid() != getFluidToGenerate()
- || !canTankBeFilled()) {
+ if (aFluid == null || aFluid.getFluid()
+ .getID() <= 0 || aFluid.amount <= 0 || aFluid.getFluid() != getFluidToGenerate() || !canTankBeFilled()) {
return 0;
}
- if (getFillableStack() == null || getFillableStack().getFluid().getID() <= 0) {
+ if (getFillableStack() == null || getFillableStack().getFluid()
+ .getID() <= 0) {
if (aFluid.amount <= getCapacity()) {
if (doFill) {
setFillableStack(aFluid.copy());
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_InputBattery.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_InputBattery.java
index 46d6917beb..c55ddda47d 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_InputBattery.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_InputBattery.java
@@ -34,7 +34,7 @@ public class GT_MetaTileEntity_Hatch_InputBattery extends GT_MetaTileEntity_Hatc
}
public GT_MetaTileEntity_Hatch_InputBattery(String aName, int aTier, String[] aDescription,
- ITexture[][][] aTextures) {
+ ITexture[][][] aTextures) {
super(aName, aTier, aTier < 1 ? 1 : aTier == 1 ? 4 : aTier == 2 ? 4 : 16, aDescription, aTextures);
}
@@ -131,17 +131,17 @@ public class GT_MetaTileEntity_Hatch_InputBattery extends GT_MetaTileEntity_Hatc
if (aBaseMetaTileEntity.getMetaTileEntity() instanceof MetaTileEntity mMetaTileEntity) {
if (mMetaTileEntity.rechargerSlotCount() > 0 && aBaseMetaTileEntity.getStoredEU() > 0) {
for (int i = mMetaTileEntity.rechargerSlotStartIndex(),
- k = mMetaTileEntity.rechargerSlotCount() + i; i < k; i++) {
+ k = mMetaTileEntity.rechargerSlotCount() + i; i < k; i++) {
if (aBaseMetaTileEntity.getStoredEU() > 0 && mMetaTileEntity.mInventory[i] != null) {
for (int u = 0; u < 10; u++) {
aBaseMetaTileEntity.decreaseStoredEnergyUnits(
- GT_ModHandler.chargeElectricItem(
- mMetaTileEntity.mInventory[i],
- (int) Math.min(V[this.mTier] * 15, aBaseMetaTileEntity.getStoredEU()),
- (int) Math.min(Integer.MAX_VALUE, GT_Values.V[u]),
- false,
- false),
- true);
+ GT_ModHandler.chargeElectricItem(
+ mMetaTileEntity.mInventory[i],
+ (int) Math.min(V[this.mTier] * 15, aBaseMetaTileEntity.getStoredEU()),
+ (int) Math.min(Integer.MAX_VALUE, GT_Values.V[u]),
+ false,
+ false),
+ true);
if (mMetaTileEntity.mInventory[i].stackSize <= 0) {
mMetaTileEntity.mInventory[i] = null;
}
@@ -163,31 +163,31 @@ public class GT_MetaTileEntity_Hatch_InputBattery extends GT_MetaTileEntity_Hatc
protected void fillStacksIntoFirstSlots() {
for (int i = 0; i < mInventory.length; i++)
for (int j = i + 1; j < mInventory.length; j++) if (mInventory[j] != null
- && (mInventory[i] == null || GT_Utility.areStacksEqual(mInventory[i], mInventory[j]))) {
- GT_Utility.moveStackFromSlotAToSlotB(
- getBaseMetaTileEntity(),
- getBaseMetaTileEntity(),
- j,
- i,
- (byte) 64,
- (byte) 1,
- (byte) 64,
- (byte) 1);
- }
+ && (mInventory[i] == null || GT_Utility.areStacksEqual(mInventory[i], mInventory[j]))) {
+ GT_Utility.moveStackFromSlotAToSlotB(
+ getBaseMetaTileEntity(),
+ getBaseMetaTileEntity(),
+ j,
+ i,
+ (byte) 64,
+ (byte) 1,
+ (byte) 64,
+ (byte) 1);
+ }
}
@Override
public boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
return side == getBaseMetaTileEntity().getFrontFacing()
- && (mRecipeMap == null || mRecipeMap.containsInput(aStack));
+ && (mRecipeMap == null || mRecipeMap.containsInput(aStack));
}
@Override
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
return side == getBaseMetaTileEntity().getFrontFacing()
- && (mRecipeMap == null || mRecipeMap.containsInput(aStack));
+ && (mRecipeMap == null || mRecipeMap.containsInput(aStack));
}
@Override
@@ -223,8 +223,8 @@ public class GT_MetaTileEntity_Hatch_InputBattery extends GT_MetaTileEntity_Hatc
public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildContext) {
if (mTier == 2) {
for (int i = 0; i < 4; i++) {
- builder.widget(
- new ElectricSlotWidget(inventoryHandler, i).setPos(70 + (i % 2) * 18, 25 + (i / 2) * 18));
+ builder
+ .widget(new ElectricSlotWidget(inventoryHandler, i).setPos(70 + (i % 2) * 18, 25 + (i / 2) * 18));
}
} else {
for (int i = 0; i < 16; i++) {
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Muffler_Adv.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Muffler_Adv.java
index 5c209f2252..a3261af6f6 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Muffler_Adv.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Muffler_Adv.java
@@ -52,17 +52,17 @@ public class GT_MetaTileEntity_Hatch_Muffler_Adv extends GT_MetaTileEntity_Hatch
}
public GT_MetaTileEntity_Hatch_Muffler_Adv(String aName, int aTier, String[] aDescription,
- ITexture[][][] aTextures) {
+ ITexture[][][] aTextures) {
super(aName, aTier, 1, aDescription, aTextures);
}
final String[] mDescription = new String[] { "Outputs pollution from a multiblock", "DO NOT OBSTRUCT THE OUTPUT!",
- "Requires 3 Air Blocks in front of the exhaust face",
- mTier < 5 ? "Requires an Air Filter"
- : "Requires an Air Filter " + EnumChatFormatting.WHITE + "[Tier 2]" + EnumChatFormatting.GRAY,
- "Can take Air Filters from an input bus of the multiblock",
- "Reduces Pollution to " + calculatePollutionReduction(100, true) + "%",
- "Recovers " + (100 - calculatePollutionReduction(100, true)) + "% of CO2/CO/SO2", CORE.GT_Tooltip.get() };
+ "Requires 3 Air Blocks in front of the exhaust face",
+ mTier < 5 ? "Requires an Air Filter"
+ : "Requires an Air Filter " + EnumChatFormatting.WHITE + "[Tier 2]" + EnumChatFormatting.GRAY,
+ "Can take Air Filters from an input bus of the multiblock",
+ "Reduces Pollution to " + calculatePollutionReduction(100, true) + "%",
+ "Recovers " + (100 - calculatePollutionReduction(100, true)) + "% of CO2/CO/SO2", CORE.GT_Tooltip.get() };
@Override
public String[] getDescription() {
@@ -86,7 +86,7 @@ public class GT_MetaTileEntity_Hatch_Muffler_Adv extends GT_MetaTileEntity_Hatch
@Override
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
return (aIndex == this.SLOT_FILTER && isAirFilter(aStack));
}
@@ -152,7 +152,7 @@ public class GT_MetaTileEntity_Hatch_Muffler_Adv extends GT_MetaTileEntity_Hatch
IGregTechTileEntity bmte = getBaseMetaTileEntity();
ForgeDirection facing = bmte.getFrontFacing();
return bmte.getAirAtSide(facing) && bmte.getAirAtSideAndDistance(facing, 1)
- && bmte.getAirAtSideAndDistance(facing, 2);
+ && bmte.getAirAtSideAndDistance(facing, 2);
}
/**
@@ -249,14 +249,18 @@ public class GT_MetaTileEntity_Hatch_Muffler_Adv extends GT_MetaTileEntity_Hatch
super.onPostTick(aBaseMetaTileEntity, aTick);
if (aBaseMetaTileEntity.isClientSide()) {
- if (this.getBaseMetaTileEntity().isActive()) {
+ if (this.getBaseMetaTileEntity()
+ .isActive()) {
String aParticleName;
if ((aTick % 2) == 0) {
aParticleName = "cloud";
} else {
aParticleName = "smoke";
}
- this.pollutionParticles(this.getBaseMetaTileEntity().getWorld(), aParticleName);
+ this.pollutionParticles(
+ this.getBaseMetaTileEntity()
+ .getWorld(),
+ aParticleName);
}
}
}
@@ -306,35 +310,35 @@ public class GT_MetaTileEntity_Hatch_Muffler_Adv extends GT_MetaTileEntity_Hatch
if (chk1) {
aWorld.spawnParticle(
- name,
- (double) (xPos + ran1 * 0.5F),
- (double) (yPos + CORE.RANDOM.nextFloat() * 0.5F),
- (double) (zPos + CORE.RANDOM.nextFloat() * 0.5F),
- (double) xSpd,
- (double) ySpd,
- (double) zSpd);
+ name,
+ (double) (xPos + ran1 * 0.5F),
+ (double) (yPos + CORE.RANDOM.nextFloat() * 0.5F),
+ (double) (zPos + CORE.RANDOM.nextFloat() * 0.5F),
+ (double) xSpd,
+ (double) ySpd,
+ (double) zSpd);
}
if (chk2) {
aWorld.spawnParticle(
- name,
- (double) (xPos + ran2 * 0.5F),
- (double) (yPos + CORE.RANDOM.nextFloat() * 0.5F),
- (double) (zPos + CORE.RANDOM.nextFloat() * 0.5F),
- (double) xSpd,
- (double) ySpd,
- (double) zSpd);
+ name,
+ (double) (xPos + ran2 * 0.5F),
+ (double) (yPos + CORE.RANDOM.nextFloat() * 0.5F),
+ (double) (zPos + CORE.RANDOM.nextFloat() * 0.5F),
+ (double) xSpd,
+ (double) ySpd,
+ (double) zSpd);
}
if (chk3) {
aWorld.spawnParticle(
- name,
- (double) (xPos + ran3 * 0.5F),
- (double) (yPos + CORE.RANDOM.nextFloat() * 0.5F),
- (double) (zPos + CORE.RANDOM.nextFloat() * 0.5F),
- (double) xSpd,
- (double) ySpd,
- (double) zSpd);
+ name,
+ (double) (xPos + ran3 * 0.5F),
+ (double) (yPos + CORE.RANDOM.nextFloat() * 0.5F),
+ (double) (zPos + CORE.RANDOM.nextFloat() * 0.5F),
+ (double) xSpd,
+ (double) ySpd,
+ (double) zSpd);
}
}
@@ -349,16 +353,18 @@ public class GT_MetaTileEntity_Hatch_Muffler_Adv extends GT_MetaTileEntity_Hatch
@Override
public GUITextureSet getGUITextureSet() {
return new GUITextureSet().setMainBackground(GTPP_UITextures.BACKGROUND_YELLOW)
- .setItemSlot(GTPP_UITextures.SLOT_ITEM_YELLOW).setTitleTab(
- GTPP_UITextures.TAB_TITLE_YELLOW,
- GTPP_UITextures.TAB_TITLE_DARK_YELLOW,
- GTPP_UITextures.TAB_TITLE_ANGULAR_YELLOW);
+ .setItemSlot(GTPP_UITextures.SLOT_ITEM_YELLOW)
+ .setTitleTab(
+ GTPP_UITextures.TAB_TITLE_YELLOW,
+ GTPP_UITextures.TAB_TITLE_DARK_YELLOW,
+ GTPP_UITextures.TAB_TITLE_ANGULAR_YELLOW);
}
@Override
public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildContext) {
builder.widget(
- new SlotWidget(inventoryHandler, 0).setFilter(stack -> stack.getItem() instanceof ItemAirFilter)
- .setBackground(getGUITextureSet().getItemSlot()).setPos(79, 34));
+ new SlotWidget(inventoryHandler, 0).setFilter(stack -> stack.getItem() instanceof ItemAirFilter)
+ .setBackground(getGUITextureSet().getItemSlot())
+ .setPos(79, 34));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Naquadah.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Naquadah.java
index 232d8a8c55..ad94907d4c 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Naquadah.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Naquadah.java
@@ -32,7 +32,7 @@ public class GT_MetaTileEntity_Hatch_Naquadah extends GT_MetaTileEntity_Hatch_In
}
public GT_MetaTileEntity_Hatch_Naquadah(final String aName, final String[] aDescription,
- final ITexture[][][] aTextures) {
+ final ITexture[][][] aTextures) {
super(aName, 6, aDescription[0], aTextures);
mFluidCapacity = 32000;
initHatch();
@@ -53,21 +53,22 @@ public class GT_MetaTileEntity_Hatch_Naquadah extends GT_MetaTileEntity_Hatch_In
@Override
public ITexture[] getTexturesActive(final ITexture aBaseTexture) {
return new ITexture[] { aBaseTexture,
- new GT_RenderedTexture((IIconContainer) Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_SIDE_ACTIVE) };
+ new GT_RenderedTexture((IIconContainer) Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_SIDE_ACTIVE) };
}
@Override
public ITexture[] getTexturesInactive(final ITexture aBaseTexture) {
return new ITexture[] { aBaseTexture,
- new GT_RenderedTexture((IIconContainer) Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_SIDE) };
+ new GT_RenderedTexture((IIconContainer) Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_SIDE) };
}
public boolean allowPutStack(final IGregTechTileEntity aBaseMetaTileEntity, final int aIndex,
- final ForgeDirection side, final ItemStack aStack) {
+ final ForgeDirection side, final ItemStack aStack) {
if (side == aBaseMetaTileEntity.getFrontFacing() && aIndex == 0) {
for (FluidStack f : mFluidsToUse) {
if (f != null) {
- if (GT_Utility.getFluidForFilledItem(aStack, true).getFluid() == f.getFluid()) {
+ if (GT_Utility.getFluidForFilledItem(aStack, true)
+ .getFluid() == f.getFluid()) {
return true;
}
}
@@ -113,8 +114,8 @@ public class GT_MetaTileEntity_Hatch_Naquadah extends GT_MetaTileEntity_Hatch_In
String aEnrNaq = aDescCache[1];
String aNaquad = aDescCache[2];
String[] s2 = new String[] { "Fluid Input for Multiblocks", "Capacity: " + getCapacity() + "L",
- "Accepted Fluid: " + aNaq, "Accepted Fluid: " + aEnrNaq, "Accepted Fluid: " + aNaquad,
- CORE.GT_Tooltip.get() };
+ "Accepted Fluid: " + aNaq, "Accepted Fluid: " + aEnrNaq, "Accepted Fluid: " + aNaquad,
+ CORE.GT_Tooltip.get() };
return s2;
}
@@ -124,7 +125,8 @@ public class GT_MetaTileEntity_Hatch_Naquadah extends GT_MetaTileEntity_Hatch_In
FluidStack mLockedStack = f;
Integer mLockedTemp = 0;;
String mTempMod = "" + EnumChatFormatting.RESET;
- mLockedTemp = mLockedStack.getFluid().getTemperature();
+ mLockedTemp = mLockedStack.getFluid()
+ .getTemperature();
if (mLockedTemp != null) {
if (mLockedTemp <= -3000) {
mTempMod = "" + EnumChatFormatting.DARK_PURPLE;
@@ -160,7 +162,7 @@ public class GT_MetaTileEntity_Hatch_Naquadah extends GT_MetaTileEntity_Hatch_In
@Override
public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, ForgeDirection side, ForgeDirection facing,
- int aColorIndex, boolean aActive, boolean aRedstone) {
+ int aColorIndex, boolean aActive, boolean aRedstone) {
byte a1 = 0, a2 = 0;
try {
if (F1 == null) {
@@ -183,19 +185,19 @@ public class GT_MetaTileEntity_Hatch_Naquadah extends GT_MetaTileEntity_Hatch_In
if (side == ForgeDirection.UP || side == ForgeDirection.DOWN) {
ITexture g = textureIndex > 0 ? BlockIcons.casingTexturePages[a2][texturePointer]
- : BlockIcons.MACHINE_CASINGS[this.mTier][aColorIndex + 1];
+ : BlockIcons.MACHINE_CASINGS[this.mTier][aColorIndex + 1];
return new ITexture[] { g,
- new GT_RenderedTexture((IIconContainer) Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_TOP_ACTIVE) };
+ new GT_RenderedTexture((IIconContainer) Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_TOP_ACTIVE) };
}
return side != facing
- ? (textureIndex > 0 ? new ITexture[] { BlockIcons.casingTexturePages[a2][texturePointer] }
- : new ITexture[] { BlockIcons.MACHINE_CASINGS[this.mTier][aColorIndex + 1] })
- : (textureIndex > 0
- ? (aActive ? this.getTexturesActive(BlockIcons.casingTexturePages[a2][texturePointer])
- : this.getTexturesInactive(BlockIcons.casingTexturePages[a2][texturePointer]))
- : (aActive ? this.getTexturesActive(BlockIcons.MACHINE_CASINGS[this.mTier][aColorIndex + 1])
- : this.getTexturesInactive(BlockIcons.MACHINE_CASINGS[this.mTier][aColorIndex + 1])));
+ ? (textureIndex > 0 ? new ITexture[] { BlockIcons.casingTexturePages[a2][texturePointer] }
+ : new ITexture[] { BlockIcons.MACHINE_CASINGS[this.mTier][aColorIndex + 1] })
+ : (textureIndex > 0
+ ? (aActive ? this.getTexturesActive(BlockIcons.casingTexturePages[a2][texturePointer])
+ : this.getTexturesInactive(BlockIcons.casingTexturePages[a2][texturePointer]))
+ : (aActive ? this.getTexturesActive(BlockIcons.MACHINE_CASINGS[this.mTier][aColorIndex + 1])
+ : this.getTexturesInactive(BlockIcons.MACHINE_CASINGS[this.mTier][aColorIndex + 1])));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_OutputBattery.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_OutputBattery.java
index f70be9aa89..58dc7ec380 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_OutputBattery.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_OutputBattery.java
@@ -30,7 +30,7 @@ public class GT_MetaTileEntity_Hatch_OutputBattery extends GT_MetaTileEntity_Hat
}
public GT_MetaTileEntity_Hatch_OutputBattery(String aName, int aTier, String[] aDescription,
- ITexture[][][] aTextures) {
+ ITexture[][][] aTextures) {
super(aName, aTier, aTier < 1 ? 1 : aTier == 1 ? 4 : aTier == 2 ? 9 : 16, aDescription, aTextures);
}
@@ -115,13 +115,13 @@ public class GT_MetaTileEntity_Hatch_OutputBattery extends GT_MetaTileEntity_Hat
@Override
public boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
return side == aBaseMetaTileEntity.getFrontFacing();
}
@Override
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
return side == aBaseMetaTileEntity.getFrontFacing();
}
@@ -134,17 +134,17 @@ public class GT_MetaTileEntity_Hatch_OutputBattery extends GT_MetaTileEntity_Hat
protected void fillStacksIntoFirstSlots() {
for (int i = 0; i < mInventory.length; i++)
for (int j = i + 1; j < mInventory.length; j++) if (mInventory[j] != null
- && (mInventory[i] == null || GT_Utility.areStacksEqual(mInventory[i], mInventory[j]))) {
- GT_Utility.moveStackFromSlotAToSlotB(
- getBaseMetaTileEntity(),
- getBaseMetaTileEntity(),
- j,
- i,
- (byte) 64,
- (byte) 1,
- (byte) 64,
- (byte) 1);
- }
+ && (mInventory[i] == null || GT_Utility.areStacksEqual(mInventory[i], mInventory[j]))) {
+ GT_Utility.moveStackFromSlotAToSlotB(
+ getBaseMetaTileEntity(),
+ getBaseMetaTileEntity(),
+ j,
+ i,
+ (byte) 64,
+ (byte) 1,
+ (byte) 64,
+ (byte) 1);
+ }
}
@Override
@@ -176,23 +176,22 @@ public class GT_MetaTileEntity_Hatch_OutputBattery extends GT_MetaTileEntity_Hat
if (aBaseMetaTileEntity.isServerSide()) {
if (aBaseMetaTileEntity.getMetaTileEntity() instanceof MetaTileEntity mMetaTileEntity) {
if (mMetaTileEntity.dechargerSlotCount() > 0
- && mMetaTileEntity.getEUVar() < aBaseMetaTileEntity.getEUCapacity()) {
+ && mMetaTileEntity.getEUVar() < aBaseMetaTileEntity.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
- && mMetaTileEntity.getEUVar() < aBaseMetaTileEntity.getEUCapacity()) {
+ && mMetaTileEntity.getEUVar() < aBaseMetaTileEntity.getEUCapacity()) {
aBaseMetaTileEntity.increaseStoredEnergyUnits(
- GT_ModHandler.dischargeElectricItem(
- mMetaTileEntity.mInventory[i],
- (int) Math.min(
- V[mTier] * 15,
- aBaseMetaTileEntity.getEUCapacity()
- - aBaseMetaTileEntity.getStoredEU()),
- (int) Math.min(Integer.MAX_VALUE, mMetaTileEntity.getInputTier()),
- true,
- false,
- false),
- true);
+ GT_ModHandler.dischargeElectricItem(
+ mMetaTileEntity.mInventory[i],
+ (int) Math.min(
+ V[mTier] * 15,
+ aBaseMetaTileEntity.getEUCapacity() - aBaseMetaTileEntity.getStoredEU()),
+ (int) Math.min(Integer.MAX_VALUE, mMetaTileEntity.getInputTier()),
+ true,
+ false,
+ false),
+ true);
if (mMetaTileEntity.mInventory[i].stackSize <= 0) mMetaTileEntity.mInventory[i] = null;
}
}
@@ -211,8 +210,8 @@ public class GT_MetaTileEntity_Hatch_OutputBattery extends GT_MetaTileEntity_Hat
public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildContext) {
if (mTier == 2) {
for (int i = 0; i < 4; i++) {
- builder.widget(
- new ElectricSlotWidget(inventoryHandler, i).setPos(70 + (i % 2) * 18, 25 + (i / 2) * 18));
+ builder
+ .widget(new ElectricSlotWidget(inventoryHandler, i).setPos(70 + (i % 2) * 18, 25 + (i / 2) * 18));
}
} else {
for (int i = 0; i < 16; i++) {
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Reservoir.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Reservoir.java
index 6945e4928d..bfe8290240 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Reservoir.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Reservoir.java
@@ -13,12 +13,12 @@ import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
public class GT_MetaTileEntity_Hatch_Reservoir extends GT_MetaTileEntity_Hatch_FluidGenerator {
public GT_MetaTileEntity_Hatch_Reservoir(final int aID, final String aName, final String aNameRegional,
- final int aTier) {
+ final int aTier) {
super(aID, aName, aNameRegional, aTier);
}
public GT_MetaTileEntity_Hatch_Reservoir(final String aName, final int aTier, final String[] aDescription,
- final ITexture[][][] aTextures) {
+ final ITexture[][][] aTextures) {
super(aName, aTier, aDescription, aTextures);
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Solidifier.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Solidifier.java
index d8811a72f7..94c28877d8 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Solidifier.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Solidifier.java
@@ -24,20 +24,20 @@ public class GT_MetaTileEntity_Hatch_Solidifier extends GT_MetaTileEntity_Hatch_
@Override
public String[] getDescription() {
return new String[] {
- "Fluid Input with Mold for " + EnumChatFormatting.YELLOW
- + "Large Processing Factory"
- + EnumChatFormatting.RESET,
- "#22 Circuit is imprinted in Hatch", "Capacity: " + GT_Utility.formatNumbers(getCapacity()) + "L",
- "Added by: " + EnumChatFormatting.AQUA
- + "Quetz4l"
- + " - "
- + EnumChatFormatting.RED
- + "[GT++]"
- + EnumChatFormatting.RESET };
+ "Fluid Input with Mold for " + EnumChatFormatting.YELLOW
+ + "Large Processing Factory"
+ + EnumChatFormatting.RESET,
+ "#22 Circuit is imprinted in Hatch", "Capacity: " + GT_Utility.formatNumbers(getCapacity()) + "L",
+ "Added by: " + EnumChatFormatting.AQUA
+ + "Quetz4l"
+ + " - "
+ + EnumChatFormatting.RED
+ + "[GT++]"
+ + EnumChatFormatting.RESET };
}
public GT_MetaTileEntity_Hatch_Solidifier(String aName, int aTier, String[] aDescription,
- ITexture[][][] aTextures) {
+ ITexture[][][] aTextures) {
super(aName, getSlots(aTier), aTier, aDescription, aTextures);
}
@@ -53,7 +53,9 @@ public class GT_MetaTileEntity_Hatch_Solidifier extends GT_MetaTileEntity_Hatch_
@Override
public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildContext) {
super.addUIWidgets(builder, buildContext);
- builder.widget(new SlotWidget(inventoryHandler, moldSlot).setPos(125, 35).setSize(18, 18));
+ builder.widget(
+ new SlotWidget(inventoryHandler, moldSlot).setPos(125, 35)
+ .setSize(18, 18));
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Steam_BusInput.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Steam_BusInput.java
index 0122b1b0c8..5cc1e64d13 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Steam_BusInput.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Steam_BusInput.java
@@ -31,38 +31,38 @@ public class GT_MetaTileEntity_Hatch_Steam_BusInput extends GT_MetaTileEntity_Ha
public GT_MetaTileEntity_Hatch_Steam_BusInput(int aID, String aName, String aNameRegional, int aTier) {
super(
- aID,
- aName,
- aNameRegional,
- aTier,
- getSlots(aTier),
- new String[] { "Item Input for Steam Multiblocks",
- "Shift + right click with screwdriver to toggle automatic item shuffling", "Capacity: 4 stacks",
- "Does not work with non-steam multiblocks", CORE.GT_Tooltip.get() });
+ aID,
+ aName,
+ aNameRegional,
+ aTier,
+ getSlots(aTier),
+ new String[] { "Item Input for Steam Multiblocks",
+ "Shift + right click with screwdriver to toggle automatic item shuffling", "Capacity: 4 stacks",
+ "Does not work with non-steam multiblocks", CORE.GT_Tooltip.get() });
}
public GT_MetaTileEntity_Hatch_Steam_BusInput(String aName, int aTier, String aDescription,
- ITexture[][][] aTextures) {
+ ITexture[][][] aTextures) {
super(aName, aTier, 4, aDescription, aTextures);
}
public GT_MetaTileEntity_Hatch_Steam_BusInput(String aName, int aTier, String[] aDescription,
- ITexture[][][] aTextures) {
+ ITexture[][][] aTextures) {
super(aName, aTier, 4, 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
@@ -116,16 +116,16 @@ public class GT_MetaTileEntity_Hatch_Steam_BusInput extends GT_MetaTileEntity_Ha
} else {
for (int i = 0; i < mInventory.length; i++)
for (int j = i + 1; j < mInventory.length; j++) if (mInventory[j] != null
- && (mInventory[i] == null || GT_Utility.areStacksEqual(mInventory[i], mInventory[j])))
+ && (mInventory[i] == null || GT_Utility.areStacksEqual(mInventory[i], mInventory[j])))
GT_Utility.moveStackFromSlotAToSlotB(
- getBaseMetaTileEntity(),
- getBaseMetaTileEntity(),
- j,
- i,
- (byte) 64,
- (byte) 1,
- (byte) 64,
- (byte) 1);
+ getBaseMetaTileEntity(),
+ getBaseMetaTileEntity(),
+ j,
+ i,
+ (byte) 64,
+ (byte) 1,
+ (byte) 64,
+ (byte) 1);
}
}
@@ -146,23 +146,23 @@ public class GT_MetaTileEntity_Hatch_Steam_BusInput extends GT_MetaTileEntity_Ha
if (aPlayer.isSneaking()) {
disableSort = !disableSort;
GT_Utility.sendChatToPlayer(
- aPlayer,
- GT_Utility.trans("200.1", "Automatic Item Shuffling: ")
- + (disableSort ? GT_Utility.trans("087", "Disabled") : GT_Utility.trans("088", "Enabled")));
+ aPlayer,
+ GT_Utility.trans("200.1", "Automatic Item Shuffling: ")
+ + (disableSort ? GT_Utility.trans("087", "Disabled") : GT_Utility.trans("088", "Enabled")));
}
}
@Override
public boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
return false;
}
@Override
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
return side == getBaseMetaTileEntity().getFrontFacing()
- && (mRecipeMap == null || mRecipeMap.containsInput(aStack));
+ && (mRecipeMap == null || mRecipeMap.containsInput(aStack));
}
@Override
@@ -189,84 +189,82 @@ public class GT_MetaTileEntity_Hatch_Steam_BusInput extends GT_MetaTileEntity_Ha
public ITexture[] getSideFacingActive(byte aColor) {
return new ITexture[] { new GT_RenderedTexture(
- mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_SIDE : Textures.BlockIcons.MACHINE_BRONZE_SIDE) };
+ mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_SIDE : Textures.BlockIcons.MACHINE_BRONZE_SIDE) };
}
public ITexture[] getSideFacingInactive(byte aColor) {
return new ITexture[] { new GT_RenderedTexture(
- mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_SIDE : Textures.BlockIcons.MACHINE_BRONZE_SIDE) };
+ mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_SIDE : Textures.BlockIcons.MACHINE_BRONZE_SIDE) };
}
public ITexture[] getFrontFacingActive(byte aColor) {
return new ITexture[] { new GT_RenderedTexture(
- mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_SIDE : Textures.BlockIcons.MACHINE_BRONZE_SIDE) };
+ mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_SIDE : Textures.BlockIcons.MACHINE_BRONZE_SIDE) };
}
public ITexture[] getFrontFacingInactive(byte aColor) {
return new ITexture[] { new GT_RenderedTexture(
- mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_SIDE : Textures.BlockIcons.MACHINE_BRONZE_SIDE) };
+ mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_SIDE : Textures.BlockIcons.MACHINE_BRONZE_SIDE) };
}
public ITexture[] getTopFacingActive(byte aColor) {
return new ITexture[] { new GT_RenderedTexture(
- mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_TOP : Textures.BlockIcons.MACHINE_BRONZE_TOP) };
+ mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_TOP : Textures.BlockIcons.MACHINE_BRONZE_TOP) };
}
public ITexture[] getTopFacingInactive(byte aColor) {
return new ITexture[] { new GT_RenderedTexture(
- mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_TOP : Textures.BlockIcons.MACHINE_BRONZE_TOP) };
+ mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_TOP : Textures.BlockIcons.MACHINE_BRONZE_TOP) };
}
public ITexture[] getBottomFacingActive(byte aColor) {
return new ITexture[] { new GT_RenderedTexture(
- mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_BOTTOM
- : Textures.BlockIcons.MACHINE_BRONZE_BOTTOM) };
+ mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_BOTTOM : Textures.BlockIcons.MACHINE_BRONZE_BOTTOM) };
}
public ITexture[] getBottomFacingInactive(byte aColor) {
return new ITexture[] { new GT_RenderedTexture(
- mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_BOTTOM
- : Textures.BlockIcons.MACHINE_BRONZE_BOTTOM) };
+ mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_BOTTOM : Textures.BlockIcons.MACHINE_BRONZE_BOTTOM) };
}
public ITexture[] getBottomFacingPipeActive(byte aColor) {
- return new ITexture[] {
- new GT_RenderedTexture(
- mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_BOTTOM
- : Textures.BlockIcons.MACHINE_BRONZE_BOTTOM),
- new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE_OUT) };
+ return new ITexture[] { new GT_RenderedTexture(
+ mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_BOTTOM : Textures.BlockIcons.MACHINE_BRONZE_BOTTOM),
+ new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE_OUT) };
}
public ITexture[] getBottomFacingPipeInactive(byte aColor) {
- return new ITexture[] {
- new GT_RenderedTexture(
- mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_BOTTOM
- : Textures.BlockIcons.MACHINE_BRONZE_BOTTOM),
- new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE_OUT) };
+ return new ITexture[] { new GT_RenderedTexture(
+ mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_BOTTOM : Textures.BlockIcons.MACHINE_BRONZE_BOTTOM),
+ new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE_OUT) };
}
public ITexture[] getTopFacingPipeActive(byte aColor) {
- return new ITexture[] { new GT_RenderedTexture(
+ return new ITexture[] {
+ new GT_RenderedTexture(
mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_TOP : Textures.BlockIcons.MACHINE_BRONZE_TOP),
- new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE_OUT) };
+ new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE_OUT) };
}
public ITexture[] getTopFacingPipeInactive(byte aColor) {
- return new ITexture[] { new GT_RenderedTexture(
+ return new ITexture[] {
+ new GT_RenderedTexture(
mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_TOP : Textures.BlockIcons.MACHINE_BRONZE_TOP),
- new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE_OUT) };
+ new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE_OUT) };
}
public ITexture[] getSideFacingPipeActive(byte aColor) {
- return new ITexture[] { new GT_RenderedTexture(
+ return new ITexture[] {
+ new GT_RenderedTexture(
mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_SIDE : Textures.BlockIcons.MACHINE_BRONZE_SIDE),
- new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE_OUT) };
+ new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE_OUT) };
}
public ITexture[] getSideFacingPipeInactive(byte aColor) {
- return new ITexture[] { new GT_RenderedTexture(
+ return new ITexture[] {
+ new GT_RenderedTexture(
mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_SIDE : Textures.BlockIcons.MACHINE_BRONZE_SIDE),
- new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE_OUT) };
+ new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE_OUT) };
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Steam_BusOutput.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Steam_BusOutput.java
index 962d4d2f3e..1d4dbc8987 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Steam_BusOutput.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Steam_BusOutput.java
@@ -25,37 +25,37 @@ public class GT_MetaTileEntity_Hatch_Steam_BusOutput extends GT_MetaTileEntity_H
public GT_MetaTileEntity_Hatch_Steam_BusOutput(int aID, String aName, String aNameRegional, int aTier) {
super(
- aID,
- aName,
- aNameRegional,
- aTier,
- 4,
- new String[] { "Item Output for Steam Multiblocks", "Does not automatically export items",
- "Capacity: 4 stacks", "Does not work with non-steam multiblocks", CORE.GT_Tooltip.get() });
+ aID,
+ aName,
+ aNameRegional,
+ aTier,
+ 4,
+ new String[] { "Item Output for Steam Multiblocks", "Does not automatically export items",
+ "Capacity: 4 stacks", "Does not work with non-steam multiblocks", CORE.GT_Tooltip.get() });
}
public GT_MetaTileEntity_Hatch_Steam_BusOutput(String aName, int aTier, String aDescription,
- ITexture[][][] aTextures) {
+ ITexture[][][] aTextures) {
super(aName, aTier, 4, aDescription, aTextures);
}
public GT_MetaTileEntity_Hatch_Steam_BusOutput(String aName, int aTier, String[] aDescription,
- ITexture[][][] aTextures) {
+ ITexture[][][] aTextures) {
super(aName, aTier, 4, aDescription, aTextures);
}
@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
@@ -91,13 +91,13 @@ public class GT_MetaTileEntity_Hatch_Steam_BusOutput extends GT_MetaTileEntity_H
@Override
public boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
return side == aBaseMetaTileEntity.getFrontFacing();
}
@Override
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
return false;
}
@@ -125,84 +125,82 @@ public class GT_MetaTileEntity_Hatch_Steam_BusOutput extends GT_MetaTileEntity_H
public ITexture[] getSideFacingActive(byte aColor) {
return new ITexture[] { new GT_RenderedTexture(
- mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_SIDE : Textures.BlockIcons.MACHINE_BRONZE_SIDE) };
+ mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_SIDE : Textures.BlockIcons.MACHINE_BRONZE_SIDE) };
}
public ITexture[] getSideFacingInactive(byte aColor) {
return new ITexture[] { new GT_RenderedTexture(
- mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_SIDE : Textures.BlockIcons.MACHINE_BRONZE_SIDE) };
+ mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_SIDE : Textures.BlockIcons.MACHINE_BRONZE_SIDE) };
}
public ITexture[] getFrontFacingActive(byte aColor) {
return new ITexture[] { new GT_RenderedTexture(
- mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_SIDE : Textures.BlockIcons.MACHINE_BRONZE_SIDE) };
+ mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_SIDE : Textures.BlockIcons.MACHINE_BRONZE_SIDE) };
}
public ITexture[] getFrontFacingInactive(byte aColor) {
return new ITexture[] { new GT_RenderedTexture(
- mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_SIDE : Textures.BlockIcons.MACHINE_BRONZE_SIDE) };
+ mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_SIDE : Textures.BlockIcons.MACHINE_BRONZE_SIDE) };
}
public ITexture[] getTopFacingActive(byte aColor) {
return new ITexture[] { new GT_RenderedTexture(
- mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_TOP : Textures.BlockIcons.MACHINE_BRONZE_TOP) };
+ mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_TOP : Textures.BlockIcons.MACHINE_BRONZE_TOP) };
}
public ITexture[] getTopFacingInactive(byte aColor) {
return new ITexture[] { new GT_RenderedTexture(
- mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_TOP : Textures.BlockIcons.MACHINE_BRONZE_TOP) };
+ mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_TOP : Textures.BlockIcons.MACHINE_BRONZE_TOP) };
}
public ITexture[] getBottomFacingActive(byte aColor) {
return new ITexture[] { new GT_RenderedTexture(
- mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_BOTTOM
- : Textures.BlockIcons.MACHINE_BRONZE_BOTTOM) };
+ mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_BOTTOM : Textures.BlockIcons.MACHINE_BRONZE_BOTTOM) };
}
public ITexture[] getBottomFacingInactive(byte aColor) {
return new ITexture[] { new GT_RenderedTexture(
- mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_BOTTOM
- : Textures.BlockIcons.MACHINE_BRONZE_BOTTOM) };
+ mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_BOTTOM : Textures.BlockIcons.MACHINE_BRONZE_BOTTOM) };
}
public ITexture[] getBottomFacingPipeActive(byte aColor) {
- return new ITexture[] {
- new GT_RenderedTexture(
- mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_BOTTOM
- : Textures.BlockIcons.MACHINE_BRONZE_BOTTOM),
- new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE_OUT) };
+ return new ITexture[] { new GT_RenderedTexture(
+ mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_BOTTOM : Textures.BlockIcons.MACHINE_BRONZE_BOTTOM),
+ new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE_OUT) };
}
public ITexture[] getBottomFacingPipeInactive(byte aColor) {
- return new ITexture[] {
- new GT_RenderedTexture(
- mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_BOTTOM
- : Textures.BlockIcons.MACHINE_BRONZE_BOTTOM),
- new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE_OUT) };
+ return new ITexture[] { new GT_RenderedTexture(
+ mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_BOTTOM : Textures.BlockIcons.MACHINE_BRONZE_BOTTOM),
+ new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE_OUT) };
}
public ITexture[] getTopFacingPipeActive(byte aColor) {
- return new ITexture[] { new GT_RenderedTexture(
+ return new ITexture[] {
+ new GT_RenderedTexture(
mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_TOP : Textures.BlockIcons.MACHINE_BRONZE_TOP),
- new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE_OUT) };
+ new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE_OUT) };
}
public ITexture[] getTopFacingPipeInactive(byte aColor) {
- return new ITexture[] { new GT_RenderedTexture(
+ return new ITexture[] {
+ new GT_RenderedTexture(
mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_TOP : Textures.BlockIcons.MACHINE_BRONZE_TOP),
- new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE_OUT) };
+ new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE_OUT) };
}
public ITexture[] getSideFacingPipeActive(byte aColor) {
- return new ITexture[] { new GT_RenderedTexture(
+ return new ITexture[] {
+ new GT_RenderedTexture(
mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_SIDE : Textures.BlockIcons.MACHINE_BRONZE_SIDE),
- new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE_OUT) };
+ new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE_OUT) };
}
public ITexture[] getSideFacingPipeInactive(byte aColor) {
- return new ITexture[] { new GT_RenderedTexture(
+ return new ITexture[] {
+ new GT_RenderedTexture(
mTier == 1 ? Textures.BlockIcons.MACHINE_BRONZEBRICKS_SIDE : Textures.BlockIcons.MACHINE_BRONZE_SIDE),
- new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE_OUT) };
+ new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE_OUT) };
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Turbine.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Turbine.java
index 0d307f6e0f..ed3101f309 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Turbine.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Turbine.java
@@ -57,13 +57,13 @@ public class GT_MetaTileEntity_Hatch_Turbine extends GT_MetaTileEntity_Hatch {
@Override
public String[] getDescription() {
return ArrayUtils.addAll(
- this.mDescriptionArray,
- "Right Click with a soldering iron to reset controller link",
- "Right Click with a wrench to remove turbine",
- "Right Click with a screwdriver for technical information",
- "Sneak + Right Click with a wrench to rotate",
- "Sneak + Right Click with a screwdriver to disable animations",
- CORE.GT_Tooltip.get());
+ this.mDescriptionArray,
+ "Right Click with a soldering iron to reset controller link",
+ "Right Click with a wrench to remove turbine",
+ "Right Click with a screwdriver for technical information",
+ "Sneak + Right Click with a wrench to rotate",
+ "Sneak + Right Click with a screwdriver to disable animations",
+ CORE.GT_Tooltip.get());
}
@Override
@@ -142,13 +142,13 @@ public class GT_MetaTileEntity_Hatch_Turbine extends GT_MetaTileEntity_Hatch {
@Override
public boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
return false;
}
@Override
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
return false;
}
@@ -165,9 +165,9 @@ public class GT_MetaTileEntity_Hatch_Turbine extends GT_MetaTileEntity_Hatch {
if (hasTurbine() && MathUtils.randInt(0, 1) == 0) {
ItemStack aTurbine = getTurbine();
((GT_MetaGenerated_Tool) aTurbine.getItem()).doDamage(
- aTurbine,
- (long) getDamageToComponent(aTurbine) * (long) Math
- .min((float) aEUt / (float) damageFactorLow, Math.pow(aEUt, damageFactorHigh)));
+ aTurbine,
+ (long) getDamageToComponent(aTurbine)
+ * (long) Math.min((float) aEUt / (float) damageFactorLow, Math.pow(aEUt, damageFactorHigh)));
}
}
@@ -195,9 +195,11 @@ public class GT_MetaTileEntity_Hatch_Turbine extends GT_MetaTileEntity_Hatch {
if (this.mHasController) {
if (aTick % 20 == 0) {
if (isControllerActive()) {
- this.getBaseMetaTileEntity().setActive(true);
+ this.getBaseMetaTileEntity()
+ .setActive(true);
} else {
- this.getBaseMetaTileEntity().setActive(false);
+ this.getBaseMetaTileEntity()
+ .setActive(false);
}
}
} else if (!this.mHasController && this.mControllerLocation != null) {
@@ -227,9 +229,9 @@ public class GT_MetaTileEntity_Hatch_Turbine extends GT_MetaTileEntity_Hatch {
if (p != null) {
// Logger.INFO(p.getLocationString());
IGregTechTileEntity tTileEntity = getBaseMetaTileEntity()
- .getIGregTechTileEntity(p.xPos, p.yPos, p.zPos);
+ .getIGregTechTileEntity(p.xPos, p.yPos, p.zPos);
if (tTileEntity != null
- && tTileEntity.getMetaTileEntity() instanceof GregtechMetaTileEntity_LargerTurbineBase) {
+ && tTileEntity.getMetaTileEntity() instanceof GregtechMetaTileEntity_LargerTurbineBase) {
return (GregtechMetaTileEntity_LargerTurbineBase) tTileEntity.getMetaTileEntity();
} else {
if (tTileEntity == null) {
@@ -272,7 +274,8 @@ public class GT_MetaTileEntity_Hatch_Turbine extends GT_MetaTileEntity_Hatch {
private ITexture getFrontFacingTurbineTexture() {
if (!mHasController) {
- return this.getBaseMetaTileEntity().isActive() ? new GT_RenderedTexture(LARGETURBINE_ST_ACTIVE5)
+ return this.getBaseMetaTileEntity()
+ .isActive() ? new GT_RenderedTexture(LARGETURBINE_ST_ACTIVE5)
: new GT_RenderedTexture(LARGETURBINE_ST5);
} else {
if (usingAnimations()) {
@@ -305,7 +308,8 @@ public class GT_MetaTileEntity_Hatch_Turbine extends GT_MetaTileEntity_Hatch {
}
public void setActive(boolean b) {
- this.getBaseMetaTileEntity().setActive(b);
+ this.getBaseMetaTileEntity()
+ .setActive(b);
}
@Override
@@ -320,16 +324,20 @@ public class GT_MetaTileEntity_Hatch_Turbine extends GT_MetaTileEntity_Hatch {
PlayerUtils.messagePlayer(aPlayer, "Has Controller? " + this.mHasController);
if (mHasController) {
PlayerUtils.messagePlayer(
- aPlayer,
- "Controller Location: " + BlockPos.generateBlockPos(mControllerLocation).getLocationString());
+ aPlayer,
+ "Controller Location: " + BlockPos.generateBlockPos(mControllerLocation)
+ .getLocationString());
PlayerUtils.messagePlayer(aPlayer, "Controller Active? " + this.isControllerActive());
}
- PlayerUtils.messagePlayer(aPlayer, "Active? " + this.getBaseMetaTileEntity().isActive());
+ PlayerUtils.messagePlayer(
+ aPlayer,
+ "Active? " + this.getBaseMetaTileEntity()
+ .isActive());
PlayerUtils.messagePlayer(aPlayer, "Has Turbine inserted? " + this.hasTurbine());
if (this.hasTurbine()) {
Materials aMat = GT_MetaGenerated_Tool.getPrimaryMaterial(getTurbine());
String aSize = GregtechMetaTileEntity_LargerTurbineBase
- .getTurbineSizeString(GregtechMetaTileEntity_LargerTurbineBase.getTurbineSize(getTurbine()));
+ .getTurbineSizeString(GregtechMetaTileEntity_LargerTurbineBase.getTurbineSize(getTurbine()));
PlayerUtils.messagePlayer(aPlayer, "Using: " + aMat.mLocalizedName + " " + aSize);
}
} else {
@@ -344,8 +352,9 @@ public class GT_MetaTileEntity_Hatch_Turbine extends GT_MetaTileEntity_Hatch {
@Override
public boolean onWrenchRightClick(ForgeDirection side, ForgeDirection wrenchingSide, EntityPlayer aPlayer, float aX,
- float aY, float aZ) {
- if (this.getBaseMetaTileEntity().isServerSide() && !aPlayer.isSneaking()) {
+ float aY, float aZ) {
+ if (this.getBaseMetaTileEntity()
+ .isServerSide() && !aPlayer.isSneaking()) {
ItemStack tCurrentItem = aPlayer.inventory.getCurrentItem();
if (tCurrentItem != null) {
if (tCurrentItem.getItem() instanceof GT_MetaGenerated_Tool) {
@@ -358,8 +367,9 @@ public class GT_MetaTileEntity_Hatch_Turbine extends GT_MetaTileEntity_Hatch {
@Override
public boolean onSolderingToolRightClick(ForgeDirection side, ForgeDirection wrenchingSide, EntityPlayer aPlayer,
- float aX, float aY, float aZ) {
- if (this.getBaseMetaTileEntity().isServerSide()) {
+ float aX, float aY, float aZ) {
+ if (this.getBaseMetaTileEntity()
+ .isServerSide()) {
ItemStack tCurrentItem = aPlayer.inventory.getCurrentItem();
if (tCurrentItem != null) {
if (tCurrentItem.getItem() instanceof GT_MetaGenerated_Tool) {
@@ -375,7 +385,7 @@ public class GT_MetaTileEntity_Hatch_Turbine extends GT_MetaTileEntity_Hatch {
boolean aHasTurbine = this.hasTurbine();
if (aPlayer.inventory.getFirstEmptyStack() >= 0 && aHasTurbine) {
if (PlayerUtils.isCreative(aPlayer)
- || GT_ModHandler.damageOrDechargeItem(tCurrentItem, 1, 1000, aPlayer)) {
+ || GT_ModHandler.damageOrDechargeItem(tCurrentItem, 1, 1000, aPlayer)) {
aPlayer.inventory.addItemStackToInventory((this.getTurbine()));
this.mInventory[0] = null;
GT_Utility.sendChatToPlayer(aPlayer, "Removed turbine with wrench.");
@@ -383,25 +393,25 @@ public class GT_MetaTileEntity_Hatch_Turbine extends GT_MetaTileEntity_Hatch {
}
} else {
GT_Utility.sendChatToPlayer(
- aPlayer,
- aHasTurbine ? "Cannot remove turbine, no free inventory space." : "No turbine to remove.");
+ aPlayer,
+ aHasTurbine ? "Cannot remove turbine, no free inventory space." : "No turbine to remove.");
}
} else if (GT_Utility.isStackInList(tCurrentItem, GregTech_API.sSolderingToolList)) {
if (mControllerLocation != null && mControllerLocation.length() > 0) {
if (setController(BlockPos.generateBlockPos(mControllerLocation))) {
if (PlayerUtils.isCreative(aPlayer)
- || GT_ModHandler.damageOrDechargeItem(tCurrentItem, 1, 1000, aPlayer)) {
+ || GT_ModHandler.damageOrDechargeItem(tCurrentItem, 1, 1000, aPlayer)) {
String tChat = "Trying to Reset linked Controller";
IGregTechTileEntity g = this.getBaseMetaTileEntity();
GT_Utility.sendChatToPlayer(aPlayer, tChat);
GT_Utility.sendSoundToPlayers(
- g.getWorld(),
- SoundResource.IC2_TOOLS_RUBBER_TRAMPOLINE,
- 1.0F,
- -1,
- g.getXCoord(),
- g.getYCoord(),
- g.getZCoord());
+ g.getWorld(),
+ SoundResource.IC2_TOOLS_RUBBER_TRAMPOLINE,
+ 1.0F,
+ -1,
+ g.getXCoord(),
+ g.getYCoord(),
+ g.getZCoord());
return true;
}
}
@@ -418,7 +428,8 @@ public class GT_MetaTileEntity_Hatch_Turbine extends GT_MetaTileEntity_Hatch {
@Override
public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildContext) {
builder.widget(
- new SlotWidget(inventoryHandler, 0).setFilter(GregtechMetaTileEntity_LargerTurbineBase::isValidTurbine)
- .setAccess(false, true).setPos(79, 34));
+ new SlotWidget(inventoryHandler, 0).setFilter(GregtechMetaTileEntity_LargerTurbineBase::isValidTurbine)
+ .setAccess(false, true)
+ .setPos(79, 34));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_TurbineProvider.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_TurbineProvider.java
index e6cb5f8132..e9626a310c 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_TurbineProvider.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_TurbineProvider.java
@@ -31,26 +31,26 @@ public class GT_MetaTileEntity_Hatch_TurbineProvider extends GT_MetaTileEntity_H
}
public GT_MetaTileEntity_Hatch_TurbineProvider(String aName, int aTier, String[] aDescription,
- ITexture[][][] aTextures) {
+ ITexture[][][] aTextures) {
super(aName, aTier, aDescription, aTextures);
}
@Override
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
return new GT_MetaTileEntity_Hatch_TurbineProvider(
- this.mName,
- this.mTier,
- this.mDescriptionArray,
- this.mTextures);
+ this.mName,
+ this.mTier,
+ this.mDescriptionArray,
+ this.mTextures);
}
@Override
public String[] getDescription() {
return new String[] { "An automation port for Large Turbines",
- "Will attempt once per 1200 ticks to fill the turbine slot of it's parent turbine",
- "You may adjust this with a screwdriver", "Hold shift to adjust in finer amounts",
- "Hold control to adjust direction", "Left Click with Screwdriver to reset",
- "This module assumes the entire turbine is in the same Chunk", CORE.GT_Tooltip.get() };
+ "Will attempt once per 1200 ticks to fill the turbine slot of it's parent turbine",
+ "You may adjust this with a screwdriver", "Hold shift to adjust in finer amounts",
+ "Hold control to adjust direction", "Left Click with Screwdriver to reset",
+ "This module assumes the entire turbine is in the same Chunk", CORE.GT_Tooltip.get() };
}
private GT_MetaTileEntity_LargeTurbine mParent = null;
@@ -58,7 +58,8 @@ public class GT_MetaTileEntity_Hatch_TurbineProvider extends GT_MetaTileEntity_H
@Override
public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTimer) {
super.onPostTick(aBaseMetaTileEntity, aTimer);
- if (aTimer % mRefreshTime == 0 && this.getBaseMetaTileEntity().isServerSide()) {
+ if (aTimer % mRefreshTime == 0 && this.getBaseMetaTileEntity()
+ .isServerSide()) {
tryRefillTurbine();
}
}
@@ -132,13 +133,13 @@ public class GT_MetaTileEntity_Hatch_TurbineProvider extends GT_MetaTileEntity_H
@Override
public boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
return false;
}
@Override
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
return isItemStackTurbine(aStack);
}
@@ -213,7 +214,8 @@ public class GT_MetaTileEntity_Hatch_TurbineProvider extends GT_MetaTileEntity_H
@Override
public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildContext) {
builder.widget(
- new SlotWidget(inventoryHandler, 0).setFilter(GregtechMetaTileEntity_LargerTurbineBase::isValidTurbine)
- .setAccess(false, true).setPos(79, 34));
+ new SlotWidget(inventoryHandler, 0).setFilter(GregtechMetaTileEntity_LargerTurbineBase::isValidTurbine)
+ .setAccess(false, true)
+ .setPos(79, 34));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_SuperBus_Input.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_SuperBus_Input.java
index ac6cb4319a..5794e6adf8 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_SuperBus_Input.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_SuperBus_Input.java
@@ -39,7 +39,7 @@ public class GT_MetaTileEntity_SuperBus_Input extends GT_MetaTileEntity_Hatch_In
@Override
public String[] getDescription() {
return new String[] { "Item Input for Multiblocks", "" + getSlots(this.mTier) + " Slots",
- CORE.GT_Tooltip.get() };
+ CORE.GT_Tooltip.get() };
}
@Override
@@ -54,10 +54,12 @@ public class GT_MetaTileEntity_SuperBus_Input extends GT_MetaTileEntity_Hatch_In
int columnsToMake = Math.min(inventoryHandler.getSlots() - row * 4, 4);
for (int column = 0; column < columnsToMake; column++) {
scrollable.widget(
- new SlotWidget(inventoryHandler, row * 4 + column).setPos(column * 18, row * 18)
- .setSize(18, 18));
+ new SlotWidget(inventoryHandler, row * 4 + column).setPos(column * 18, row * 18)
+ .setSize(18, 18));
}
}
- builder.widget(scrollable.setSize(18 * 4 + 4, 18 * 4).setPos(52, 7));
+ builder.widget(
+ scrollable.setSize(18 * 4 + 4, 18 * 4)
+ .setPos(52, 7));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_SuperBus_Output.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_SuperBus_Output.java
index e109d065bd..aee6235ab9 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_SuperBus_Output.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_SuperBus_Output.java
@@ -65,16 +65,16 @@ public class GT_MetaTileEntity_SuperBus_Output extends GT_MetaTileEntity_Hatch_O
for (int i = 0; i < this.mInventory.length; ++i) {
for (int j = i + 1; j < this.mInventory.length; ++j) {
if (this.mInventory[j] != null && (this.mInventory[i] == null
- || GT_Utility.areStacksEqual(this.mInventory[i], this.mInventory[j]))) {
+ || GT_Utility.areStacksEqual(this.mInventory[i], this.mInventory[j]))) {
GT_Utility.moveStackFromSlotAToSlotB(
- (IInventory) this.getBaseMetaTileEntity(),
- (IInventory) this.getBaseMetaTileEntity(),
- j,
- i,
- (byte) 64,
- (byte) 1,
- (byte) 64,
- (byte) 1);
+ (IInventory) this.getBaseMetaTileEntity(),
+ (IInventory) this.getBaseMetaTileEntity(),
+ j,
+ i,
+ (byte) 64,
+ (byte) 1,
+ (byte) 64,
+ (byte) 1);
}
}
}
@@ -83,7 +83,7 @@ public class GT_MetaTileEntity_SuperBus_Output extends GT_MetaTileEntity_Hatch_O
@Override
public String[] getDescription() {
String[] aDesc = new String[] { "Item Output for Multiblocks", "" + getSlots(this.mTier) + " Slots",
- CORE.GT_Tooltip.get() };
+ CORE.GT_Tooltip.get() };
return aDesc;
}
@@ -94,10 +94,12 @@ public class GT_MetaTileEntity_SuperBus_Output extends GT_MetaTileEntity_Hatch_O
int columnsToMake = Math.min(inventoryHandler.getSlots() - row * 4, 4);
for (int column = 0; column < columnsToMake; column++) {
scrollable.widget(
- new SlotWidget(inventoryHandler, row * 4 + column).setPos(column * 18, row * 18)
- .setSize(18, 18));
+ new SlotWidget(inventoryHandler, row * 4 + column).setPos(column * 18, row * 18)
+ .setSize(18, 18));
}
}
- builder.widget(scrollable.setSize(18 * 4 + 4, 18 * 4).setPos(52, 7));
+ builder.widget(
+ scrollable.setSize(18 * 4 + 4, 18 * 4)
+ .setPos(52, 7));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GregtechMetaPipeEntityFluid.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GregtechMetaPipeEntityFluid.java
index 67fbb22e92..e9f9a2dda4 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GregtechMetaPipeEntityFluid.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GregtechMetaPipeEntityFluid.java
@@ -17,17 +17,17 @@ public class GregtechMetaPipeEntityFluid extends GT_MetaPipeEntity_Fluid {
public final GT_Materials mMaterial;
public GregtechMetaPipeEntityFluid(int aID, String aName, String aNameRegional, float aThickNess,
- GT_Materials aMaterial, int aCapacity, int aHeatResistance, boolean aGasProof) {
+ GT_Materials aMaterial, int aCapacity, int aHeatResistance, boolean aGasProof) {
this(aID, aName, aNameRegional, aThickNess, aMaterial, aCapacity, aHeatResistance, aGasProof, 1);
}
public GregtechMetaPipeEntityFluid(final String aName, final float aThickNess, final GT_Materials aMaterial,
- final int aCapacity, final int aHeatResistance, final boolean aGasProof) {
+ final int aCapacity, final int aHeatResistance, final boolean aGasProof) {
this(aName, aThickNess, aMaterial, aCapacity, aHeatResistance, aGasProof, 1);
}
public GregtechMetaPipeEntityFluid(int aID, String aName, String aNameRegional, float aThickNess,
- GT_Materials aMaterial, int aCapacity, int aHeatResistance, boolean aGasProof, int aFluidTypes) {
+ GT_Materials aMaterial, int aCapacity, int aHeatResistance, boolean aGasProof, int aFluidTypes) {
super(aID, aName, aNameRegional, aThickNess, null, aCapacity, aHeatResistance, aGasProof, aFluidTypes);
this.mLastReceivedFrom = 0;
this.oLastReceivedFrom = 0;
@@ -35,7 +35,7 @@ public class GregtechMetaPipeEntityFluid extends GT_MetaPipeEntity_Fluid {
}
public GregtechMetaPipeEntityFluid(String aName, float aThickNess, GT_Materials aMaterial, int aCapacity,
- int aHeatResistance, boolean aGasProof, int aFluidTypes) {
+ int aHeatResistance, boolean aGasProof, int aFluidTypes) {
super(aName, aThickNess, null, aCapacity, aHeatResistance, aGasProof, aFluidTypes);
this.mLastReceivedFrom = 0;
this.oLastReceivedFrom = 0;
@@ -45,33 +45,33 @@ public class GregtechMetaPipeEntityFluid extends GT_MetaPipeEntity_Fluid {
@Override
public byte getTileEntityBaseType() {
return this.mMaterial == null ? 4
- : (byte) ((this.mMaterial.contains(SubTag.WOOD) ? 12 : 4)
- + Math.max(0, Math.min(3, this.mMaterial.mToolQuality)));
+ : (byte) ((this.mMaterial.contains(SubTag.WOOD) ? 12 : 4)
+ + Math.max(0, Math.min(3, this.mMaterial.mToolQuality)));
}
@Override
public IMetaTileEntity newMetaEntity(final IGregTechTileEntity aTileEntity) {
return new GregtechMetaPipeEntityFluid(
- this.mName,
- this.mThickNess,
- this.mMaterial,
- this.mCapacity,
- this.mHeatResistance,
- this.mGasProof);
+ this.mName,
+ this.mThickNess,
+ this.mMaterial,
+ this.mCapacity,
+ this.mHeatResistance,
+ this.mGasProof);
}
@Override
public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, ForgeDirection side, int aConnections,
- int aColorIndex, boolean aConnected, boolean aRedstone) {
+ int aColorIndex, boolean aConnected, boolean aRedstone) {
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)) };
int tMask = 0;
int[][] sRestrictionArray = { { 2, 3, 5, 4 }, { 2, 3, 5, 4 }, { 1, 0, 5, 4 }, { 1, 0, 4, 5 }, { 1, 0, 2, 3 },
- { 1, 0, 2, 3 } };
+ { 1, 0, 2, 3 } };
if (side != ForgeDirection.UNKNOWN) {
for (int i = 0; i < 4; i++)
if (isInputDisabledAtSide(ForgeDirection.getOrientation(sRestrictionArray[side.ordinal()][i])))
@@ -81,37 +81,37 @@ public class GregtechMetaPipeEntityFluid extends GT_MetaPipeEntity_Fluid {
if (tMask > 3 && tMask < 12) tMask = (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, GT_Materials aMaterial,
- int aColorIndex) {
+ int 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));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GregtechMetaPipeEntity_Cable.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GregtechMetaPipeEntity_Cable.java
index 334eea41f1..9b1408ba51 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GregtechMetaPipeEntity_Cable.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GregtechMetaPipeEntity_Cable.java
@@ -21,7 +21,8 @@ public class GregtechMetaPipeEntity_Cable extends GT_MetaPipeEntity_Cable implem
static {
try {
INSULATION_MEDIUM_PLUS = (Textures.BlockIcons) GT_Utility
- .getField(Textures.BlockIcons.class, "INSULATION_MEDIUM_PLUS").get(null);
+ .getField(Textures.BlockIcons.class, "INSULATION_MEDIUM_PLUS")
+ .get(null);
} catch (IllegalAccessException | NullPointerException e) {
throw new Error(e);
}
@@ -30,74 +31,74 @@ public class GregtechMetaPipeEntity_Cable extends GT_MetaPipeEntity_Cable implem
private short[] vRGB = null;
public GregtechMetaPipeEntity_Cable(final int aID, final String aName, final String aNameRegional,
- final float aThickNess, final Materials aMaterial, final long aCableLossPerMeter, final long aAmperage,
- final long aVoltage, final boolean aInsulated, final boolean aCanShock, final short[] aRGB) {
+ final float aThickNess, final Materials aMaterial, final long aCableLossPerMeter, final long aAmperage,
+ final long aVoltage, final boolean aInsulated, final boolean aCanShock, final short[] aRGB) {
super(
- aID,
- aName,
- aNameRegional,
- aThickNess,
- aMaterial,
- aCableLossPerMeter,
- aAmperage,
- aVoltage,
- aInsulated,
- aCanShock);
+ aID,
+ aName,
+ aNameRegional,
+ aThickNess,
+ aMaterial,
+ aCableLossPerMeter,
+ aAmperage,
+ aVoltage,
+ aInsulated,
+ aCanShock);
this.vRGB = aRGB == null || aRGB.length != 4 ? Materials.Iron.mRGBa : aRGB;
}
public GregtechMetaPipeEntity_Cable(final String aName, final float aThickNess, final Materials aMaterial,
- final long aCableLossPerMeter, final long aAmperage, final long aVoltage, final boolean aInsulated,
- final boolean aCanShock, final short[] aRGB) {
+ final long aCableLossPerMeter, final long aAmperage, final long aVoltage, final boolean aInsulated,
+ final boolean aCanShock, final short[] aRGB) {
super(aName, aThickNess, aMaterial, aCableLossPerMeter, aAmperage, aVoltage, aInsulated, aCanShock);
this.vRGB = aRGB == null || aRGB.length != 4 ? Materials.Iron.mRGBa : aRGB;
}
public GregtechMetaPipeEntity_Cable(final int aID, final String aName, final String aNameRegional,
- final float aThickNess, final long aCableLossPerMeter, final long aAmperage, final long aVoltage,
- final boolean aInsulated, final boolean aCanShock, final short[] aRGB) {
+ final float aThickNess, final long aCableLossPerMeter, final long aAmperage, final long aVoltage,
+ final boolean aInsulated, final boolean aCanShock, final short[] aRGB) {
this(
- aID,
- aName,
- aNameRegional,
- aThickNess,
- null,
- aCableLossPerMeter,
- aAmperage,
- aVoltage,
- aInsulated,
- aCanShock,
- aRGB);
+ aID,
+ aName,
+ aNameRegional,
+ aThickNess,
+ null,
+ aCableLossPerMeter,
+ aAmperage,
+ aVoltage,
+ aInsulated,
+ aCanShock,
+ aRGB);
}
public GregtechMetaPipeEntity_Cable(final String aName, final float aThickNess, final long aCableLossPerMeter,
- final long aAmperage, final long aVoltage, final boolean aInsulated, final boolean aCanShock,
- final short[] aRGB) {
+ final long aAmperage, final long aVoltage, final boolean aInsulated, final boolean aCanShock,
+ final short[] aRGB) {
this(aName, aThickNess, null, aCableLossPerMeter, aAmperage, aVoltage, aInsulated, aCanShock, aRGB);
}
@Override
public IMetaTileEntity newMetaEntity(final IGregTechTileEntity aTileEntity) {
return new GregtechMetaPipeEntity_Cable(
- this.mName,
- this.mThickNess,
- this.mMaterial,
- this.mCableLossPerMeter,
- this.mAmperage,
- this.mVoltage,
- this.mInsulated,
- this.mCanShock,
- this.vRGB);
+ this.mName,
+ this.mThickNess,
+ this.mMaterial,
+ this.mCableLossPerMeter,
+ this.mAmperage,
+ this.mVoltage,
+ this.mInsulated,
+ this.mCanShock,
+ this.vRGB);
}
@Override
public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, ForgeDirection side, int aConnections,
- int aColorIndex, boolean aConnected, boolean aRedstone) {
+ int aColorIndex, boolean aConnected, boolean aRedstone) {
return getTextureGTNH(aBaseMetaTileEntity, side, aConnections, aColorIndex, aConnected, aRedstone);
}
private ITexture[] getTextureGTNH(IGregTechTileEntity aBaseMetaTileEntity, ForgeDirection aSide, int aConnections,
- int aColorIndex, boolean aConnected, boolean aRedstone) {
+ int aColorIndex, boolean aConnected, boolean aRedstone) {
Materials wireMaterial = mMaterial;
if (wireMaterial == null) {
@@ -105,51 +106,51 @@ public class GregtechMetaPipeEntity_Cable extends GT_MetaPipeEntity_Cable implem
}
if (!mInsulated) return new ITexture[] { new GT_RenderedTexture(
- wireMaterial.mIconSet.mTextures[TextureSet.INDEX_wire],
- Dyes.getModulation(aColorIndex, vRGB)) };
+ wireMaterial.mIconSet.mTextures[TextureSet.INDEX_wire],
+ Dyes.getModulation(aColorIndex, vRGB)) };
if (aConnected) {
float tThickNess = getThickNess();
if (tThickNess < 0.124F) return new ITexture[] { new GT_RenderedTexture(
- 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[] {
- new GT_RenderedTexture(wireMaterial.mIconSet.mTextures[TextureSet.INDEX_wire], vRGB),
- new GT_RenderedTexture(
- Textures.BlockIcons.INSULATION_TINY,
- Dyes.getModulation(aColorIndex, Dyes.CABLE_INSULATION.mRGBa)) };
+ new GT_RenderedTexture(wireMaterial.mIconSet.mTextures[TextureSet.INDEX_wire], vRGB),
+ new GT_RenderedTexture(
+ Textures.BlockIcons.INSULATION_TINY,
+ Dyes.getModulation(aColorIndex, Dyes.CABLE_INSULATION.mRGBa)) };
if (tThickNess < 0.499F) // 0.500 x2
return new ITexture[] {
- new GT_RenderedTexture(wireMaterial.mIconSet.mTextures[TextureSet.INDEX_wire], vRGB),
- new GT_RenderedTexture(
- Textures.BlockIcons.INSULATION_SMALL,
- Dyes.getModulation(aColorIndex, Dyes.CABLE_INSULATION.mRGBa)) };
+ new GT_RenderedTexture(wireMaterial.mIconSet.mTextures[TextureSet.INDEX_wire], vRGB),
+ new GT_RenderedTexture(
+ Textures.BlockIcons.INSULATION_SMALL,
+ Dyes.getModulation(aColorIndex, Dyes.CABLE_INSULATION.mRGBa)) };
if (tThickNess < 0.624F) // 0.625 x4
return new ITexture[] {
- new GT_RenderedTexture(wireMaterial.mIconSet.mTextures[TextureSet.INDEX_wire], vRGB),
- new GT_RenderedTexture(
- Textures.BlockIcons.INSULATION_MEDIUM,
- Dyes.getModulation(aColorIndex, Dyes.CABLE_INSULATION.mRGBa)) };
+ new GT_RenderedTexture(wireMaterial.mIconSet.mTextures[TextureSet.INDEX_wire], vRGB),
+ new GT_RenderedTexture(
+ Textures.BlockIcons.INSULATION_MEDIUM,
+ Dyes.getModulation(aColorIndex, Dyes.CABLE_INSULATION.mRGBa)) };
if (tThickNess < 0.749F) // 0.750 x8
return new ITexture[] {
- new GT_RenderedTexture(wireMaterial.mIconSet.mTextures[TextureSet.INDEX_wire], vRGB),
- new GT_RenderedTexture(
- INSULATION_MEDIUM_PLUS,
- Dyes.getModulation(aColorIndex, Dyes.CABLE_INSULATION.mRGBa)) };
+ new GT_RenderedTexture(wireMaterial.mIconSet.mTextures[TextureSet.INDEX_wire], vRGB),
+ new GT_RenderedTexture(
+ INSULATION_MEDIUM_PLUS,
+ Dyes.getModulation(aColorIndex, Dyes.CABLE_INSULATION.mRGBa)) };
if (tThickNess < 0.874F) // 0.825 x12
return new ITexture[] {
- new GT_RenderedTexture(wireMaterial.mIconSet.mTextures[TextureSet.INDEX_wire], vRGB),
- new GT_RenderedTexture(
- Textures.BlockIcons.INSULATION_LARGE,
- Dyes.getModulation(aColorIndex, Dyes.CABLE_INSULATION.mRGBa)) };
- return new ITexture[] {
new GT_RenderedTexture(wireMaterial.mIconSet.mTextures[TextureSet.INDEX_wire], vRGB),
new GT_RenderedTexture(
- 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[] {
+ new GT_RenderedTexture(wireMaterial.mIconSet.mTextures[TextureSet.INDEX_wire], vRGB),
+ new GT_RenderedTexture(
+ Textures.BlockIcons.INSULATION_HUGE,
+ Dyes.getModulation(aColorIndex, Dyes.CABLE_INSULATION.mRGBa)) };
}
return new ITexture[] { new GT_RenderedTexture(
- Textures.BlockIcons.INSULATION_FULL,
- Dyes.getModulation(aColorIndex, Dyes.CABLE_INSULATION.mRGBa)) };
+ Textures.BlockIcons.INSULATION_FULL,
+ Dyes.getModulation(aColorIndex, Dyes.CABLE_INSULATION.mRGBa)) };
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GregtechMetaTreeFarmerStructural.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GregtechMetaTreeFarmerStructural.java
index 627ef2d65b..0aaaa75584 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GregtechMetaTreeFarmerStructural.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GregtechMetaTreeFarmerStructural.java
@@ -12,23 +12,23 @@ import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.machines
public class GregtechMetaTreeFarmerStructural extends GregtechMetaTreeFarmerBase {
public GregtechMetaTreeFarmerStructural(final int aID, final String aName, final String aNameRegional,
- final int aTier) {
+ final int aTier) {
super(aID, aName, aNameRegional, aTier, 0, "Structural Blocks for the Tree Farmer.");
}
public GregtechMetaTreeFarmerStructural(final String aName, final int aTier, final int aInvSlotCount,
- final String[] aDescription, final ITexture[][][] aTextures) {
+ final String[] aDescription, final ITexture[][][] aTextures) {
super(aName, aTier, aInvSlotCount, aDescription, aTextures);
}
@Override
public IMetaTileEntity newMetaEntity(final IGregTechTileEntity aTileEntity) {
return new GregtechMetaTreeFarmerStructural(
- this.mName,
- this.mTier,
- this.mInventory.length,
- this.mDescriptionArray,
- this.mTextures);
+ this.mName,
+ this.mTier,
+ this.mInventory.length,
+ this.mDescriptionArray,
+ this.mTextures);
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GT_MetaTileEntity_Hatch_CustomFluidBase.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GT_MetaTileEntity_Hatch_CustomFluidBase.java
index 8848319d75..6a85c06c1b 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GT_MetaTileEntity_Hatch_CustomFluidBase.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GT_MetaTileEntity_Hatch_CustomFluidBase.java
@@ -31,27 +31,27 @@ public class GT_MetaTileEntity_Hatch_CustomFluidBase extends GT_MetaTileEntity_H
protected String mTempMod = null;
public GT_MetaTileEntity_Hatch_CustomFluidBase(Fluid aFluid, int aAmount, final int aID, final String aName,
- final String aNameRegional) {
+ final String aNameRegional) {
super(
- aID,
- aName,
- aNameRegional,
- 6,
- 3,
- new String[] { "Fluid Input for Multiblocks", "Capacity: " + GT_Utility.formatNumbers(aAmount) + "L" });
+ aID,
+ aName,
+ aNameRegional,
+ 6,
+ 3,
+ new String[] { "Fluid Input for Multiblocks", "Capacity: " + GT_Utility.formatNumbers(aAmount) + "L" });
this.mLockedFluid = aFluid;
this.mFluidCapacity = aAmount;
}
public GT_MetaTileEntity_Hatch_CustomFluidBase(Fluid aFluid, int aAmount, final String aName,
- final String[] aDescription, final ITexture[][][] aTextures) {
+ final String[] aDescription, final ITexture[][][] aTextures) {
super(aName, 6, 3, aDescription[0], aTextures);
this.mLockedFluid = aFluid;
this.mFluidCapacity = aAmount;
}
public boolean allowPutStack(final IGregTechTileEntity aBaseMetaTileEntity, final int aIndex,
- final ForgeDirection side, final ItemStack aStack) {
+ final ForgeDirection side, final ItemStack aStack) {
if (side == aBaseMetaTileEntity.getFrontFacing() && aIndex == 0) {
FluidStack fs = GT_Utility.getFluidForFilledItem(aStack, true);
return fs != null && fs.getFluid() == this.mLockedFluid;
@@ -61,22 +61,22 @@ public class GT_MetaTileEntity_Hatch_CustomFluidBase extends GT_MetaTileEntity_H
@Override
public boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
return side == aBaseMetaTileEntity.getFrontFacing() && aIndex == 1;
}
@Override
public ITexture[] getTexturesActive(ITexture aBaseTexture) {
return GT_Mod.gregtechproxy.mRenderIndicatorsOnHatch
- ? new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_PIPE_IN), TextureFactory.of(FLUID_IN_SIGN) }
- : new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_PIPE_IN) };
+ ? new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_PIPE_IN), TextureFactory.of(FLUID_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(FLUID_IN_SIGN) }
- : new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_PIPE_IN) };
+ ? new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_PIPE_IN), TextureFactory.of(FLUID_IN_SIGN) }
+ : new ITexture[] { aBaseTexture, TextureFactory.of(OVERLAY_PIPE_IN) };
}
@Override
@@ -178,25 +178,28 @@ public class GT_MetaTileEntity_Hatch_CustomFluidBase extends GT_MetaTileEntity_H
aColour = EnumChatFormatting.RED;
}
String aFluidName = "Accepted Fluid: " + aColour
- + (mLockedStack != null ? mLockedStack.getLocalizedName() : "Empty")
- + EnumChatFormatting.RESET;
+ + (mLockedStack != null ? mLockedStack.getLocalizedName() : "Empty")
+ + EnumChatFormatting.RESET;
return new String[] { "Fluid Input for " + (isSteam ? "Steam " : "") + "Multiblocks",
- "Capacity: " + getCapacity() + "L", aFluidName, CORE.GT_Tooltip.get() };
+ "Capacity: " + getCapacity() + "L", aFluidName, CORE.GT_Tooltip.get() };
}
@Override
public boolean isFluidInputAllowed(final FluidStack aFluid) {
- return this.mLockedFluid.getName().equals(aFluid.getFluid().getName());
+ return this.mLockedFluid.getName()
+ .equals(
+ aFluid.getFluid()
+ .getName());
}
@Override
public MetaTileEntity newMetaEntity(final IGregTechTileEntity aTileEntity) {
return new GT_MetaTileEntity_Hatch_CustomFluidBase(
- this.mLockedFluid,
- this.mFluidCapacity,
- this.mName,
- this.mDescriptionArray,
- this.mTextures);
+ this.mLockedFluid,
+ this.mFluidCapacity,
+ this.mName,
+ this.mDescriptionArray,
+ this.mTextures);
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMetaTileEntity.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMetaTileEntity.java
index b727c0d84a..e260347ca5 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMetaTileEntity.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMetaTileEntity.java
@@ -23,7 +23,7 @@ public abstract class GregtechMetaTileEntity extends MetaTileEntity {
public final ITexture[][][] mTextures;
public GregtechMetaTileEntity(final int aID, final String aName, final String aNameRegional, final int aTier,
- final int aInvSlotCount, final String aDescription, final ITexture... aTextures) {
+ final int aInvSlotCount, final String aDescription, final ITexture... aTextures) {
super(aID, aName, aNameRegional, aInvSlotCount);
this.mTier = (byte) Math.max(0, Math.min(aTier, 9));
this.mDescription = aDescription;
@@ -37,7 +37,7 @@ public abstract class GregtechMetaTileEntity extends MetaTileEntity {
}
public GregtechMetaTileEntity(final String aName, final int aTier, final int aInvSlotCount,
- final String aDescription, final ITexture[][][] aTextures) {
+ final String aDescription, final ITexture[][][] aTextures) {
super(aName, aInvSlotCount);
this.mTier = (byte) aTier;
this.mDescription = aDescription;
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMetaTransformerHiAmp.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMetaTransformerHiAmp.java
index 3701f5dd0f..c6a088fb1c 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMetaTransformerHiAmp.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMetaTransformerHiAmp.java
@@ -52,29 +52,29 @@ public class GregtechMetaTransformerHiAmp extends GT_MetaTileEntity_Transformer
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 + 1] };
+ Textures.BlockIcons.OVERLAYS_ENERGY_IN_MULTI[mTier + 1] };
rTextures[4][i + 1] = new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[mTier][i + 1],
- Textures.BlockIcons.OVERLAYS_ENERGY_IN_MULTI[mTier + 1] };
+ Textures.BlockIcons.OVERLAYS_ENERGY_IN_MULTI[mTier + 1] };
rTextures[5][i + 1] = new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[mTier][i + 1],
- Textures.BlockIcons.OVERLAYS_ENERGY_IN_MULTI[mTier + 1] };
+ Textures.BlockIcons.OVERLAYS_ENERGY_IN_MULTI[mTier + 1] };
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 + 1] };
+ Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[mTier + 1] };
rTextures[10][i + 1] = new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[mTier][i + 1],
- Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[mTier + 1] };
+ Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[mTier + 1] };
rTextures[11][i + 1] = new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[mTier][i + 1],
- Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[mTier + 1] };
+ Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[mTier + 1] };
}
return rTextures;
}
@@ -87,10 +87,10 @@ public class GregtechMetaTransformerHiAmp extends GT_MetaTileEntity_Transformer
@Override
public String[] getDescription() {
return ArrayUtils.addAll(
- this.mDescriptionArray,
- "Accepts 4A and outputs 16A",
- "Toggle 2A/8A half-mode with Screwdriver",
- CORE.GT_Tooltip.get());
+ this.mDescriptionArray,
+ "Accepts 4A and outputs 16A",
+ "Toggle 2A/8A half-mode with Screwdriver",
+ CORE.GT_Tooltip.get());
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java
index 079b90f81c..e756a92343 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java
@@ -97,7 +97,7 @@ import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.GT_MetaTileEn
// GregtechMeta_MultiBlockBase without generic parameter
public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_ExtendedPowerMultiBlockBase<T>>
- extends GT_MetaTileEntity_ExtendedPowerMultiBlockBase<T> {
+ extends GT_MetaTileEntity_ExtendedPowerMultiBlockBase<T> {
public static final boolean DEBUG_DISABLE_CORES_TEMPORARILY = true;
@@ -123,7 +123,8 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
}
private static int toStackCount(Entry<ItemStack, Integer> e) {
- int tMaxStackSize = e.getKey().getMaxStackSize();
+ int tMaxStackSize = e.getKey()
+ .getMaxStackSize();
int tStackSize = e.getValue();
return (tStackSize + tMaxStackSize - 1) / tMaxStackSize;
}
@@ -145,7 +146,8 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
@Override
public String[] getInfoData() {
ArrayList<String> mInfo = new ArrayList<>();
- if (!this.getMetaName().equals("")) {
+ if (!this.getMetaName()
+ .equals("")) {
mInfo.add(this.getMetaName());
}
@@ -164,7 +166,7 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
int weeks = (int) (TimeUnit.SECONDS.toDays(seconds) / 7);
int days = (int) (TimeUnit.SECONDS.toDays(seconds) - 7 * weeks);
long hours = TimeUnit.SECONDS.toHours(seconds) - TimeUnit.DAYS.toHours(days)
- - TimeUnit.DAYS.toHours(7L * weeks);
+ - TimeUnit.DAYS.toHours(7L * weeks);
long minutes = TimeUnit.SECONDS.toMinutes(seconds) - (TimeUnit.SECONDS.toHours(seconds) * 60);
long second = TimeUnit.SECONDS.toSeconds(seconds) - (TimeUnit.SECONDS.toMinutes(seconds) * 60);
@@ -173,128 +175,128 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
// Lets borrow the GTNH handling
mInfo.add(
- StatCollector.translateToLocal("GTPP.multiblock.progress") + ": "
- + EnumChatFormatting.GREEN
- + mProgresstime / 20
- + EnumChatFormatting.RESET
- + " s / "
- + EnumChatFormatting.YELLOW
- + mMaxProgresstime / 20
- + EnumChatFormatting.RESET
- + " s");
+ StatCollector.translateToLocal("GTPP.multiblock.progress") + ": "
+ + EnumChatFormatting.GREEN
+ + mProgresstime / 20
+ + EnumChatFormatting.RESET
+ + " s / "
+ + EnumChatFormatting.YELLOW
+ + mMaxProgresstime / 20
+ + EnumChatFormatting.RESET
+ + " s");
if (!this.mAllEnergyHatches.isEmpty()) {
long storedEnergy = getStoredEnergyInAllEnergyHatches();
long maxEnergy = getMaxEnergyStorageOfAllEnergyHatches();
mInfo.add(StatCollector.translateToLocal("GTPP.multiblock.energy") + ":");
mInfo.add(
- StatCollector.translateToLocal(
- "" + EnumChatFormatting.GREEN
- + Long.toString(storedEnergy)
- + EnumChatFormatting.RESET
- + " EU / "
- + EnumChatFormatting.YELLOW
- + Long.toString(maxEnergy)
- + EnumChatFormatting.RESET
- + " EU"));
+ StatCollector.translateToLocal(
+ "" + EnumChatFormatting.GREEN
+ + Long.toString(storedEnergy)
+ + EnumChatFormatting.RESET
+ + " EU / "
+ + EnumChatFormatting.YELLOW
+ + Long.toString(maxEnergy)
+ + EnumChatFormatting.RESET
+ + " EU"));
mInfo.add(StatCollector.translateToLocal("GTPP.multiblock.mei") + ":");
mInfo.add(
- StatCollector.translateToLocal(
- "" + EnumChatFormatting.YELLOW
- + Long.toString(getMaxInputVoltage())
- + EnumChatFormatting.RESET
- + " EU/t(*2A) "
- + StatCollector.translateToLocal("GTPP.machines.tier")
- + ": "
- + EnumChatFormatting.YELLOW
- + GT_Values.VN[GT_Utility.getTier(getMaxInputVoltage())]
- + EnumChatFormatting.RESET));;
+ StatCollector.translateToLocal(
+ "" + EnumChatFormatting.YELLOW
+ + Long.toString(getMaxInputVoltage())
+ + EnumChatFormatting.RESET
+ + " EU/t(*2A) "
+ + StatCollector.translateToLocal("GTPP.machines.tier")
+ + ": "
+ + EnumChatFormatting.YELLOW
+ + GT_Values.VN[GT_Utility.getTier(getMaxInputVoltage())]
+ + EnumChatFormatting.RESET));;
}
if (!this.mAllDynamoHatches.isEmpty()) {
long storedEnergy = getStoredEnergyInAllDynamoHatches();
long maxEnergy = getMaxEnergyStorageOfAllDynamoHatches();
mInfo.add(StatCollector.translateToLocal("GTPP.multiblock.energy") + " In Dynamos:");
mInfo.add(
- StatCollector.translateToLocal(
- "" + EnumChatFormatting.GREEN
- + Long.toString(storedEnergy)
- + EnumChatFormatting.RESET
- + " EU / "
- + EnumChatFormatting.YELLOW
- + Long.toString(maxEnergy)
- + EnumChatFormatting.RESET
- + " EU"));
+ StatCollector.translateToLocal(
+ "" + EnumChatFormatting.GREEN
+ + Long.toString(storedEnergy)
+ + EnumChatFormatting.RESET
+ + " EU / "
+ + EnumChatFormatting.YELLOW
+ + Long.toString(maxEnergy)
+ + EnumChatFormatting.RESET
+ + " EU"));
}
if (-lEUt > 0) {
mInfo.add(StatCollector.translateToLocal("GTPP.multiblock.usage") + ":");
mInfo.add(
- StatCollector.translateToLocal(
- "" + EnumChatFormatting.RED + (-lEUt) + EnumChatFormatting.RESET + " EU/t"));
+ StatCollector
+ .translateToLocal("" + EnumChatFormatting.RED + (-lEUt) + EnumChatFormatting.RESET + " EU/t"));
} else {
mInfo.add(StatCollector.translateToLocal("GTPP.multiblock.generation") + ":");
mInfo.add(
- StatCollector.translateToLocal(
- "" + EnumChatFormatting.GREEN + lEUt + EnumChatFormatting.RESET + " EU/t"));
+ StatCollector
+ .translateToLocal("" + EnumChatFormatting.GREEN + lEUt + EnumChatFormatting.RESET + " EU/t"));
}
mInfo.add(
- StatCollector.translateToLocal("GTPP.multiblock.problems") + ": "
- + EnumChatFormatting.RED
- + (getIdealStatus() - getRepairStatus())
- + EnumChatFormatting.RESET
- + " "
- + StatCollector.translateToLocal("GTPP.multiblock.efficiency")
- + ": "
- + EnumChatFormatting.YELLOW
- + Float.toString(mEfficiency / 100.0F)
- + EnumChatFormatting.RESET
- + " %");
+ StatCollector.translateToLocal("GTPP.multiblock.problems") + ": "
+ + EnumChatFormatting.RED
+ + (getIdealStatus() - getRepairStatus())
+ + EnumChatFormatting.RESET
+ + " "
+ + StatCollector.translateToLocal("GTPP.multiblock.efficiency")
+ + ": "
+ + EnumChatFormatting.YELLOW
+ + Float.toString(mEfficiency / 100.0F)
+ + EnumChatFormatting.RESET
+ + " %");
if (this.getPollutionPerSecond(null) > 0) {
int mPollutionReduction = getPollutionReductionForAllMufflers();
mInfo.add(
- StatCollector.translateToLocal("GTPP.multiblock.pollution") + ": "
- + EnumChatFormatting.RED
- + this.getPollutionPerSecond(null)
- + EnumChatFormatting.RESET
- + "/sec");
+ StatCollector.translateToLocal("GTPP.multiblock.pollution") + ": "
+ + EnumChatFormatting.RED
+ + this.getPollutionPerSecond(null)
+ + EnumChatFormatting.RESET
+ + "/sec");
mInfo.add(
- StatCollector.translateToLocal("GTPP.multiblock.pollutionreduced") + ": "
- + EnumChatFormatting.GREEN
- + mPollutionReduction
- + EnumChatFormatting.RESET
- + " %");
+ StatCollector.translateToLocal("GTPP.multiblock.pollutionreduced") + ": "
+ + EnumChatFormatting.GREEN
+ + mPollutionReduction
+ + EnumChatFormatting.RESET
+ + " %");
}
mInfo.add(
- StatCollector.translateToLocal("GTPP.CC.parallel") + ": "
- + EnumChatFormatting.GREEN
- + (getMaxParallelRecipes())
- + EnumChatFormatting.RESET);
+ StatCollector.translateToLocal("GTPP.CC.parallel") + ": "
+ + EnumChatFormatting.GREEN
+ + (getMaxParallelRecipes())
+ + EnumChatFormatting.RESET);
mInfo.add(
- "Total Time Since Built: " + EnumChatFormatting.DARK_GREEN
- + Integer.toString(weeks)
- + EnumChatFormatting.RESET
- + " Weeks, "
- + EnumChatFormatting.DARK_GREEN
- + Integer.toString(days)
- + EnumChatFormatting.RESET
- + " Days, ");
+ "Total Time Since Built: " + EnumChatFormatting.DARK_GREEN
+ + Integer.toString(weeks)
+ + EnumChatFormatting.RESET
+ + " Weeks, "
+ + EnumChatFormatting.DARK_GREEN
+ + Integer.toString(days)
+ + EnumChatFormatting.RESET
+ + " Days, ");
mInfo.add(
- EnumChatFormatting.DARK_GREEN + Long.toString(hours)
- + EnumChatFormatting.RESET
- + " Hours, "
- + EnumChatFormatting.DARK_GREEN
- + Long.toString(minutes)
- + EnumChatFormatting.RESET
- + " Minutes, "
- + EnumChatFormatting.DARK_GREEN
- + Long.toString(second)
- + EnumChatFormatting.RESET
- + " Seconds.");
+ EnumChatFormatting.DARK_GREEN + Long.toString(hours)
+ + EnumChatFormatting.RESET
+ + " Hours, "
+ + EnumChatFormatting.DARK_GREEN
+ + Long.toString(minutes)
+ + EnumChatFormatting.RESET
+ + " Minutes, "
+ + EnumChatFormatting.DARK_GREEN
+ + Long.toString(second)
+ + EnumChatFormatting.RESET
+ + " Seconds.");
mInfo.add("Total Time in ticks: " + EnumChatFormatting.DARK_GREEN + Long.toString(this.mTotalRunTime));
String[] mInfo2 = mInfo.toArray(new String[mInfo.size()]);
@@ -312,7 +314,8 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
public long getStoredEnergyInAllEnergyHatches() {
long storedEnergy = 0;
for (GT_MetaTileEntity_Hatch tHatch : filterValidMTEs(mAllEnergyHatches)) {
- storedEnergy += tHatch.getBaseMetaTileEntity().getStoredEU();
+ storedEnergy += tHatch.getBaseMetaTileEntity()
+ .getStoredEU();
}
return storedEnergy;
}
@@ -320,7 +323,8 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
public long getMaxEnergyStorageOfAllEnergyHatches() {
long maxEnergy = 0;
for (GT_MetaTileEntity_Hatch tHatch : filterValidMTEs(mAllEnergyHatches)) {
- maxEnergy += tHatch.getBaseMetaTileEntity().getEUCapacity();
+ maxEnergy += tHatch.getBaseMetaTileEntity()
+ .getEUCapacity();
}
return maxEnergy;
}
@@ -328,7 +332,8 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
public long getStoredEnergyInAllDynamoHatches() {
long storedEnergy = 0;
for (GT_MetaTileEntity_Hatch tHatch : filterValidMTEs(mAllDynamoHatches)) {
- storedEnergy += tHatch.getBaseMetaTileEntity().getStoredEU();
+ storedEnergy += tHatch.getBaseMetaTileEntity()
+ .getStoredEU();
}
return storedEnergy;
}
@@ -336,7 +341,8 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
public long getMaxEnergyStorageOfAllDynamoHatches() {
long maxEnergy = 0;
for (GT_MetaTileEntity_Hatch tHatch : filterValidMTEs(mAllDynamoHatches)) {
- maxEnergy += tHatch.getBaseMetaTileEntity().getEUCapacity();
+ maxEnergy += tHatch.getBaseMetaTileEntity()
+ .getEUCapacity();
}
return maxEnergy;
}
@@ -400,15 +406,20 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
long rEnergy = 0;
if (mEnergyHatches.size() == 1) // so it only takes 1 amp is only 1 hatch is present so it works like most gt
// multies
- return mEnergyHatches.get(0).getBaseMetaTileEntity().getInputVoltage();
+ return mEnergyHatches.get(0)
+ .getBaseMetaTileEntity()
+ .getInputVoltage();
for (GT_MetaTileEntity_Hatch_Energy tHatch : filterValidMTEs(mEnergyHatches))
- rEnergy += tHatch.getBaseMetaTileEntity().getInputVoltage()
- * tHatch.getBaseMetaTileEntity().getInputAmperage();
+ rEnergy += tHatch.getBaseMetaTileEntity()
+ .getInputVoltage()
+ * tHatch.getBaseMetaTileEntity()
+ .getInputAmperage();
return rEnergy;
}
public boolean isMachineRunning() {
- boolean aRunning = this.getBaseMetaTileEntity().isActive();
+ boolean aRunning = this.getBaseMetaTileEntity()
+ .isActive();
// log("Queried Multiblock is currently running: "+aRunning);
return aRunning;
}
@@ -440,26 +451,26 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
public void explodeMultiblock() {
MetaTileEntity tTileEntity;
for (final Iterator<GT_MetaTileEntity_Hatch_InputBattery> localIterator = this.mChargeHatches
- .iterator(); localIterator.hasNext(); tTileEntity.getBaseMetaTileEntity()
- .doExplosion(gregtech.api.enums.GT_Values.V[8])) {
+ .iterator(); localIterator.hasNext(); tTileEntity.getBaseMetaTileEntity()
+ .doExplosion(gregtech.api.enums.GT_Values.V[8])) {
tTileEntity = localIterator.next();
}
tTileEntity = null;
for (final Iterator<GT_MetaTileEntity_Hatch_OutputBattery> localIterator = this.mDischargeHatches
- .iterator(); localIterator.hasNext(); tTileEntity.getBaseMetaTileEntity()
- .doExplosion(gregtech.api.enums.GT_Values.V[8])) {
+ .iterator(); localIterator.hasNext(); tTileEntity.getBaseMetaTileEntity()
+ .doExplosion(gregtech.api.enums.GT_Values.V[8])) {
tTileEntity = localIterator.next();
}
tTileEntity = null;
for (final Iterator<GT_MetaTileEntity_Hatch> localIterator = this.mTecTechDynamoHatches
- .iterator(); localIterator.hasNext(); tTileEntity.getBaseMetaTileEntity()
- .doExplosion(gregtech.api.enums.GT_Values.V[8])) {
+ .iterator(); localIterator.hasNext(); tTileEntity.getBaseMetaTileEntity()
+ .doExplosion(gregtech.api.enums.GT_Values.V[8])) {
tTileEntity = localIterator.next();
}
tTileEntity = null;
for (final Iterator<GT_MetaTileEntity_Hatch> localIterator = this.mTecTechEnergyHatches
- .iterator(); localIterator.hasNext(); tTileEntity.getBaseMetaTileEntity()
- .doExplosion(gregtech.api.enums.GT_Values.V[8])) {
+ .iterator(); localIterator.hasNext(); tTileEntity.getBaseMetaTileEntity()
+ .doExplosion(gregtech.api.enums.GT_Values.V[8])) {
tTileEntity = localIterator.next();
}
@@ -491,7 +502,8 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
if (bus != null) {
for (ItemStack uStack : bus.mInventory) {
if (uStack != null) {
- if (aSearchStack.getClass().isInstance(uStack.getItem())) {
+ if (aSearchStack.getClass()
+ .isInstance(uStack.getItem())) {
return uStack;
}
}
@@ -507,7 +519,7 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
* expected fluid
*/
protected boolean depleteInputFromRestrictedHatches(Collection<GT_MetaTileEntity_Hatch_CustomFluidBase> aHatches,
- int aAmount) {
+ int aAmount) {
for (final GT_MetaTileEntity_Hatch_CustomFluidBase tHatch : filterValidMTEs(aHatches)) {
FluidStack tLiquid = tHatch.getFluid();
if (tLiquid == null || tLiquid.amount < aAmount) {
@@ -540,7 +552,8 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
*/
public boolean causeMaintenanceIssue() {
boolean b = false;
- switch (this.getBaseMetaTileEntity().getRandomNumber(6)) {
+ switch (this.getBaseMetaTileEntity()
+ .getRandomNumber(6)) {
case 0 -> {
this.mWrench = false;
b = true;
@@ -580,7 +593,7 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
public boolean checkHatch() {
return mMaintenanceHatches.size() <= 1
- && (this.getPollutionPerSecond(null) > 0 ? !mMufflerHatches.isEmpty() : true);
+ && (this.getPollutionPerSecond(null) > 0 ? !mMufflerHatches.isEmpty() : true);
}
@Override
@@ -596,12 +609,12 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
}
public <E> boolean addToMachineListInternal(ArrayList<E> aList, final IGregTechTileEntity aTileEntity,
- final int aBaseCasingIndex) {
+ final int aBaseCasingIndex) {
return addToMachineListInternal(aList, getMetaTileEntity(aTileEntity), aBaseCasingIndex);
}
public <E> boolean addToMachineListInternal(ArrayList<E> aList, final IMetaTileEntity aTileEntity,
- final int aBaseCasingIndex) {
+ final int aBaseCasingIndex) {
if (aTileEntity == null) {
return false;
}
@@ -629,9 +642,9 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
if (aTileEntity instanceof GT_MetaTileEntity_Hatch) {
if (GTplusplus.CURRENT_LOAD_PHASE == INIT_PHASE.STARTED) {
log(
- "Adding " + aTileEntity.getInventoryName()
- + " at "
- + new BlockPos(aTileEntity.getBaseMetaTileEntity()).getLocationString());
+ "Adding " + aTileEntity.getInventoryName()
+ + " at "
+ + new BlockPos(aTileEntity.getBaseMetaTileEntity()).getLocationString());
}
updateTexture(aTileEntity, aBaseCasingIndex);
return aList.add((E) aTileEntity);
@@ -640,9 +653,9 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
IGregTechTileEntity aCur = aTileEntity.getBaseMetaTileEntity();
if (aList.contains(aTileEntity)) {
log(
- "Found Duplicate " + aTileEntity.getInventoryName()
- + " @ "
- + new BlockPos(aCur).getLocationString());
+ "Found Duplicate " + aTileEntity.getInventoryName()
+ + " @ "
+ + new BlockPos(aCur).getLocationString());
return false;
}
BlockPos aCurPos = new BlockPos(aCur);
@@ -702,7 +715,7 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
aDidAdd = addToMachineListInternal(mDischargeHatches, aMetaTileEntity, aBaseCasingIndex);
} else if (aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_AirIntake) {
aDidAdd = addToMachineListInternal(mAirIntakes, aMetaTileEntity, aBaseCasingIndex)
- && addToMachineListInternal(mInputHatches, aMetaTileEntity, aBaseCasingIndex);
+ && addToMachineListInternal(mInputHatches, aMetaTileEntity, aBaseCasingIndex);
}
// Handle TT Multi-A Energy Hatches
@@ -770,7 +783,7 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
public boolean addInputToMachineList(IGregTechTileEntity aTileEntity, int aBaseCasingIndex) {
IMetaTileEntity aMetaTileEntity = getMetaTileEntity(aTileEntity);
if (aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Input
- || aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_InputBus) {
+ || aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_InputBus) {
return addToMachineList(aMetaTileEntity, aBaseCasingIndex);
}
return false;
@@ -780,7 +793,7 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
public boolean addOutputToMachineList(IGregTechTileEntity aTileEntity, int aBaseCasingIndex) {
IMetaTileEntity aMetaTileEntity = getMetaTileEntity(aTileEntity);
if (aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Output
- || aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_OutputBus) {
+ || aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_OutputBus) {
return addToMachineList(aMetaTileEntity, aBaseCasingIndex);
}
return false;
@@ -835,8 +848,8 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
return false;
}
if (aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Input
- || aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_InputBus
- || aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Steam_BusInput) {
+ || aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_InputBus
+ || aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Steam_BusInput) {
return resetRecipeMapForHatch((GT_MetaTileEntity_Hatch) aMetaTileEntity, aMap);
} else {
return false;
@@ -853,8 +866,8 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
}
final IMetaTileEntity aMetaTileEntity = aTileEntity;
if (aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Input
- || aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_InputBus
- || aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Steam_BusInput) {
+ || aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_InputBus
+ || aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Steam_BusInput) {
if (aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Input) {
((GT_MetaTileEntity_Hatch_Input) aMetaTileEntity).mRecipeMap = null;
((GT_MetaTileEntity_Hatch_Input) aMetaTileEntity).mRecipeMap = aMap;
@@ -927,7 +940,7 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
if (aCasingID <= Byte.MAX_VALUE) {
((GT_MetaTileEntity_Hatch) aTileEntity).updateTexture(aCasingID);
log(
- "Good Method Call for updateTexture. Used fallback method of setting mMachineBlock as casing id was <= 128.");
+ "Good Method Call for updateTexture. Used fallback method of setting mMachineBlock as casing id was <= 128.");
return true;
} else {
log("updateTexture returning false. 1.2");
@@ -985,7 +998,7 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
public boolean isThisHatchMultiDynamo(IMetaTileEntity aMetaTileEntity) {
Class<?> mDynamoClass;
mDynamoClass = ReflectionUtils
- .getClass("com.github.technus.tectech.thing.metaTileEntity.hatch.GT_MetaTileEntity_Hatch_DynamoMulti");
+ .getClass("com.github.technus.tectech.thing.metaTileEntity.hatch.GT_MetaTileEntity_Hatch_DynamoMulti");
if (mDynamoClass != null) {
if (mDynamoClass.isInstance(aMetaTileEntity)) {
return true;
@@ -1038,7 +1051,7 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
public boolean isThisHatchMultiEnergy(IMetaTileEntity aMetaTileEntity) {
Class<?> mDynamoClass;
mDynamoClass = ReflectionUtils
- .getClass("com.github.technus.tectech.thing.metaTileEntity.hatch.GT_MetaTileEntity_Hatch_EnergyMulti");
+ .getClass("com.github.technus.tectech.thing.metaTileEntity.hatch.GT_MetaTileEntity_Hatch_EnergyMulti");
if (mDynamoClass != null) {
if (mDynamoClass.isInstance(aMetaTileEntity)) {
return true;
@@ -1098,9 +1111,10 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
*/
@Override
public boolean onRightclick(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer, ForgeDirection side,
- float aX, float aY, float aZ) {
+ float aX, float aY, float aZ) {
// Do Things
- if (this.getBaseMetaTileEntity().isServerSide()) {
+ if (this.getBaseMetaTileEntity()
+ .isServerSide()) {
// Logger.INFO("Right Clicked Controller.");
ItemStack tCurrentItem = aPlayer.inventory.getCurrentItem();
if (tCurrentItem != null) {
@@ -1110,7 +1124,8 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
int[] aOreID = OreDictionary.getOreIDs(tCurrentItem);
for (int id : aOreID) {
// Plunger
- if (OreDictionary.getOreName(id).equals("craftingToolPlunger")) {
+ if (OreDictionary.getOreName(id)
+ .equals("craftingToolPlunger")) {
// Logger.INFO("Is Plunger.");
return onPlungerRightClick(aPlayer, side, aX, aY, aZ);
}
@@ -1129,13 +1144,13 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
for (GT_MetaTileEntity_Hatch_Output hatch : this.mOutputHatches) {
if (hatch.mFluid != null) {
PlayerUtils.messagePlayer(
- aPlayer,
- "Clearing " + hatch.mFluid.amount
- + "L of "
- + hatch.mFluid.getLocalizedName()
- + " from hatch "
- + aHatchIndex
- + ".");
+ aPlayer,
+ "Clearing " + hatch.mFluid.amount
+ + "L of "
+ + hatch.mFluid.getLocalizedName()
+ + " from hatch "
+ + aHatchIndex
+ + ".");
hatch.mFluid = null;
}
aHatchIndex++;
@@ -1145,7 +1160,7 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
@Override
public boolean onWireCutterRightClick(ForgeDirection side, ForgeDirection wrenchingSide, EntityPlayer aPlayer,
- float aX, float aY, float aZ) {
+ float aX, float aY, float aZ) {
if (aPlayer.isSneaking()) {
batchMode = !batchMode;
if (batchMode) {
@@ -1160,14 +1175,14 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
@Override
public boolean onSolderingToolRightClick(ForgeDirection side, ForgeDirection wrenchingSide, EntityPlayer aPlayer,
- float aX, float aY, float aZ) {
+ float aX, float aY, float aZ) {
if (supportsVoidProtection() && wrenchingSide == getBaseMetaTileEntity().getFrontFacing()) {
Set<VoidingMode> allowed = getAllowedVoidingModes();
setVoidingMode(getVoidingMode().nextInCollection(allowed));
GT_Utility.sendChatToPlayer(
- aPlayer,
- StatCollector.translateToLocal("GT5U.gui.button.voiding_mode") + " "
- + StatCollector.translateToLocal(getVoidingMode().getTransKey()));
+ aPlayer,
+ StatCollector.translateToLocal("GT5U.gui.button.voiding_mode") + " "
+ + StatCollector.translateToLocal(getVoidingMode().getTransKey()));
return true;
} else return super.onSolderingToolRightClick(side, wrenchingSide, aPlayer, aX, aY, aZ);
}
@@ -1210,7 +1225,7 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
* @param maxMeta exclusive
*/
public static <T> IStructureElement<T> addTieredBlock(Block aBlock, BiConsumer<T, Integer> aSetTheMeta,
- Function<T, Integer> aGetTheMeta, int maxMeta) {
+ Function<T, Integer> aGetTheMeta, int maxMeta) {
return addTieredBlock(aBlock, (t, i) -> {
aSetTheMeta.accept(t, i);
return true;
@@ -1223,7 +1238,7 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
* @param maxMeta exclusive
*/
public static <T> IStructureElement<T> addTieredBlock(Block aBlock, BiConsumer<T, Integer> aSetTheMeta,
- Function<T, Integer> aGetTheMeta, int minMeta, int maxMeta) {
+ Function<T, Integer> aGetTheMeta, int minMeta, int maxMeta) {
return addTieredBlock(aBlock, (t, i) -> {
aSetTheMeta.accept(t, i);
return true;
@@ -1236,7 +1251,7 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
* @param maxMeta exclusive
*/
public static <T> IStructureElement<T> addTieredBlock(Block aBlock, BiPredicate<T, Integer> aSetTheMeta,
- Function<T, Integer> aGetTheMeta, int minMeta, int maxMeta) {
+ Function<T, Integer> aGetTheMeta, int minMeta, int maxMeta) {
return new IStructureElement<>() {
@@ -1277,13 +1292,13 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
@Nullable
@Override
public BlocksToPlace getBlocksToPlace(T t, World world, int x, int y, int z, ItemStack trigger,
- AutoPlaceEnvironment env) {
+ AutoPlaceEnvironment env) {
return BlocksToPlace.create(aBlock, getMeta(trigger));
}
@Override
public PlaceResult survivalPlaceBlock(T t, World world, int x, int y, int z, ItemStack trigger,
- AutoPlaceEnvironment env) {
+ AutoPlaceEnvironment env) {
if (world.getBlock(x, y, z) == aBlock) {
if (world.getBlockMetadata(x, y, z) == getMeta(trigger)) {
return PlaceResult.SKIP;
@@ -1291,27 +1306,31 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
return PlaceResult.REJECT;
}
return StructureUtility.survivalPlaceBlock(
- aBlock,
- getMeta(trigger),
- world,
- x,
- y,
- z,
- env.getSource(),
- env.getActor(),
- env.getChatter());
+ aBlock,
+ getMeta(trigger),
+ world,
+ x,
+ y,
+ z,
+ env.getSource(),
+ env.getActor(),
+ env.getChatter());
}
};
}
@Override
public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, ForgeDirection side, ForgeDirection facing,
- int aColorIndex, boolean aActive, boolean aRedstone) {
+ int aColorIndex, boolean aActive, boolean aRedstone) {
if (side == facing) {
- if (aActive) return new ITexture[] { getCasingTexture(),
- TextureFactory.builder().addIcon(getActiveOverlay()).extFacing().build() };
- return new ITexture[] { getCasingTexture(),
- TextureFactory.builder().addIcon(getInactiveOverlay()).extFacing().build() };
+ if (aActive) return new ITexture[] { getCasingTexture(), TextureFactory.builder()
+ .addIcon(getActiveOverlay())
+ .extFacing()
+ .build() };
+ return new ITexture[] { getCasingTexture(), TextureFactory.builder()
+ .addIcon(getInactiveOverlay())
+ .extFacing()
+ .build() };
}
return new ITexture[] { getCasingTexture() };
}
@@ -1357,11 +1376,14 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
protected void addNoPlayerInventoryUI(ModularWindow.Builder builder, UIBuildContext buildContext) {
builder.widget(
- new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SCREEN_BLACK).setPos(3, 4).setSize(152, 159));
+ new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SCREEN_BLACK)
+ .setPos(3, 4)
+ .setSize(152, 159));
for (int i = 0; i < 9; i++) {
builder.widget(
- new DrawableWidget().setDrawable(GT_UITextures.BUTTON_STANDARD).setPos(155, 3 + i * 18)
- .setSize(18, 18));
+ new DrawableWidget().setDrawable(GT_UITextures.BUTTON_STANDARD)
+ .setPos(155, 3 + i * 18)
+ .setSize(18, 18));
}
DynamicPositionedColumn screenElements = new DynamicPositionedColumn();
@@ -1370,229 +1392,256 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
setupToolDisplay();
- builder.widget(new ItemDrawable(() -> mToolStacks.get(mWrench + "WRENCH")).asWidget().setPos(156, 58))
- .widget(new FakeSyncWidget.BooleanSyncer(() -> mWrench, val -> mWrench = val));
- builder.widget(new ItemDrawable(() -> mToolStacks.get(mCrowbar + "CROWBAR")).asWidget().setPos(156, 76))
- .widget(new FakeSyncWidget.BooleanSyncer(() -> mCrowbar, val -> mCrowbar = val));
- builder.widget(new ItemDrawable(() -> mToolStacks.get(mHardHammer + "HARDHAMMER")).asWidget().setPos(156, 94))
- .widget(new TextWidget("H").setDefaultColor(COLOR_TEXT_WHITE.get()).setPos(167, 103))
- .widget(new FakeSyncWidget.BooleanSyncer(() -> mHardHammer, val -> mHardHammer = val));
- builder.widget(new ItemDrawable(() -> mToolStacks.get(mSoftHammer + "SOFTHAMMER")).asWidget().setPos(156, 112))
- .widget(new TextWidget("M").setDefaultColor(COLOR_TEXT_WHITE.get()).setPos(167, 121))
- .widget(new FakeSyncWidget.BooleanSyncer(() -> mSoftHammer, val -> mSoftHammer = val));
builder.widget(
- new ItemDrawable(() -> mToolStacks.get(mScrewdriver + "SCREWDRIVER")).asWidget().setPos(156, 130))
- .widget(new FakeSyncWidget.BooleanSyncer(() -> mScrewdriver, val -> mScrewdriver = val));
+ new ItemDrawable(() -> mToolStacks.get(mWrench + "WRENCH")).asWidget()
+ .setPos(156, 58))
+ .widget(new FakeSyncWidget.BooleanSyncer(() -> mWrench, val -> mWrench = val));
+ builder.widget(
+ new ItemDrawable(() -> mToolStacks.get(mCrowbar + "CROWBAR")).asWidget()
+ .setPos(156, 76))
+ .widget(new FakeSyncWidget.BooleanSyncer(() -> mCrowbar, val -> mCrowbar = val));
+ builder.widget(
+ new ItemDrawable(() -> mToolStacks.get(mHardHammer + "HARDHAMMER")).asWidget()
+ .setPos(156, 94))
+ .widget(
+ new TextWidget("H").setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setPos(167, 103))
+ .widget(new FakeSyncWidget.BooleanSyncer(() -> mHardHammer, val -> mHardHammer = val));
+ builder.widget(
+ new ItemDrawable(() -> mToolStacks.get(mSoftHammer + "SOFTHAMMER")).asWidget()
+ .setPos(156, 112))
+ .widget(
+ new TextWidget("M").setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setPos(167, 121))
+ .widget(new FakeSyncWidget.BooleanSyncer(() -> mSoftHammer, val -> mSoftHammer = val));
+ builder.widget(
+ new ItemDrawable(() -> mToolStacks.get(mScrewdriver + "SCREWDRIVER")).asWidget()
+ .setPos(156, 130))
+ .widget(new FakeSyncWidget.BooleanSyncer(() -> mScrewdriver, val -> mScrewdriver = val));
builder.widget(
- new ItemDrawable(() -> mToolStacks.get(mSolderingTool + "SOLDERING_IRON_LV")).asWidget()
- .setPos(156, 148))
- .widget(new FakeSyncWidget.BooleanSyncer(() -> mSolderingTool, val -> mSolderingTool = val));
+ new ItemDrawable(() -> mToolStacks.get(mSolderingTool + "SOLDERING_IRON_LV")).asWidget()
+ .setPos(156, 148))
+ .widget(new FakeSyncWidget.BooleanSyncer(() -> mSolderingTool, val -> mSolderingTool = val));
builder.widget(
- new ItemDrawable(() -> mToolStacks.get(getBaseMetaTileEntity().isActive() + "GLASS")).asWidget()
- .setPos(156, 22))
- .widget(
- TextWidget.dynamicString(() -> getBaseMetaTileEntity().isActive() ? "On" : "Off")
- .setSynced(false).setDefaultColor(COLOR_TEXT_WHITE.get()).setPos(157, 31))
- .widget(
- new FakeSyncWidget.BooleanSyncer(
- () -> getBaseMetaTileEntity().isActive(),
- val -> getBaseMetaTileEntity().setActive(val)));
+ new ItemDrawable(() -> mToolStacks.get(getBaseMetaTileEntity().isActive() + "GLASS")).asWidget()
+ .setPos(156, 22))
+ .widget(
+ TextWidget.dynamicString(() -> getBaseMetaTileEntity().isActive() ? "On" : "Off")
+ .setSynced(false)
+ .setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setPos(157, 31))
+ .widget(
+ new FakeSyncWidget.BooleanSyncer(
+ () -> getBaseMetaTileEntity().isActive(),
+ val -> getBaseMetaTileEntity().setActive(val)));
}
protected void drawTextsNoPlayerInventory(DynamicPositionedColumn screenElements) {
- screenElements.setSynced(false).setSpace(0).setPos(6, 7);
+ screenElements.setSynced(false)
+ .setSpace(0)
+ .setPos(6, 7);
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))
- .widget(
- TextWidget
- .dynamicString(
- () -> StatCollector.translateToLocal("GTPP.machines.input") + " "
- + StatCollector.translateToLocal("GTPP.machines.tier")
- + ": "
- + EnumChatFormatting.GREEN
- + GT_Values.VOLTAGE_NAMES[(int) getInputTier()])
- .setDefaultColor(COLOR_TEXT_WHITE.get())
- .setEnabled(widget -> mMachine && getInputTier() > 0))
- .widget(
- TextWidget.dynamicString(
- () -> StatCollector.translateToLocal("GTPP.machines.output") + " "
- + StatCollector.translateToLocal("GTPP.machines.tier")
- + ": "
- + EnumChatFormatting.GREEN
- + GT_Values.VOLTAGE_NAMES[(int) getOutputTier()])
- .setDefaultColor(COLOR_TEXT_WHITE.get())
- .setEnabled(widget -> mMachine && getOutputTier() > 0))
- .widget(
- TextWidget
- .dynamicString(
- () -> StatCollector.translateToLocal("GTPP.multiblock.progress") + ": "
- + EnumChatFormatting.GREEN
- + getBaseMetaTileEntity().getProgress() / 20
- + EnumChatFormatting.RESET
- + " s / "
- + EnumChatFormatting.YELLOW
- + getBaseMetaTileEntity().getMaxProgress() / 20
- + EnumChatFormatting.RESET
- + " s")
- .setDefaultColor(COLOR_TEXT_WHITE.get()).setEnabled(widget -> mMachine))
- .widget(
- new TextWidget(StatCollector.translateToLocal("GTPP.multiblock.energy") + ":")
- .setDefaultColor(COLOR_TEXT_WHITE.get()).setEnabled(widget -> mMachine))
- .widget(
- TextWidget
- .dynamicString(
- () -> StatCollector.translateToLocal(
- "" + EnumChatFormatting.GREEN
- + getStoredEnergyInAllEnergyHatches()
- + EnumChatFormatting.RESET
- + " EU / "
- + EnumChatFormatting.YELLOW
- + getMaxEnergyStorageOfAllEnergyHatches()
- + EnumChatFormatting.RESET
- + " EU"))
- .setDefaultColor(COLOR_TEXT_WHITE.get()).setEnabled(widget -> mMachine))
- .widget(
- new TextWidget(StatCollector.translateToLocal("GTPP.multiblock.usage") + ":")
- .setDefaultColor(COLOR_TEXT_WHITE.get())
- .setEnabled(widget -> mMachine && getLastRecipeEU() > 0 && getLastRecipeDuration() > 0))
- .widget(
- TextWidget
- .dynamicString(
- () -> StatCollector.translateToLocal(
- "" + EnumChatFormatting.RED
- + -getLastRecipeEU()
- + EnumChatFormatting.RESET
- + " EU/t/parallel"))
- .setDefaultColor(COLOR_TEXT_WHITE.get())
- .setEnabled(widget -> mMachine && getLastRecipeEU() > 0 && getLastRecipeDuration() > 0))
- .widget(
- TextWidget
- .dynamicString(() -> StatCollector.translateToLocal("GTPP.multiblock.generation") + ":")
- .setDefaultColor(COLOR_TEXT_WHITE.get())
- .setEnabled(widget -> mMachine && getLastRecipeEU() < 0 && getLastRecipeDuration() > 0))
- .widget(
- TextWidget
- .dynamicString(
- () -> StatCollector.translateToLocal(
- "" + EnumChatFormatting.GREEN
- + getLastRecipeEU()
- + EnumChatFormatting.RESET
- + " EU/t/parallel"))
- .setDefaultColor(COLOR_TEXT_WHITE.get())
- .setEnabled(widget -> mMachine && getLastRecipeEU() < 0 && getLastRecipeDuration() > 0))
- .widget(
- TextWidget
- .dynamicString(
- () -> StatCollector.translateToLocal("GTPP.multiblock.duration") + ": "
- + EnumChatFormatting.RED
- + getLastRecipeDuration()
- + EnumChatFormatting.RESET
- + " ticks")
- .setDefaultColor(COLOR_TEXT_WHITE.get()).setEnabled(
- widget -> mMachine && getLastRecipeEU() != 0 && getLastRecipeDuration() > 0))
- .widget(
- TextWidget
- .dynamicString(
- () -> StatCollector.translateToLocal("GTPP.multiblock.specialvalue") + ": "
- + EnumChatFormatting.RED
- + getLastRecipeEU()
- + EnumChatFormatting.RESET
- + "")
- .setDefaultColor(COLOR_TEXT_WHITE.get()).setEnabled(
- widget -> mMachine && getLastRecipeEU() != 0
- && getLastRecipeDuration() > 0
- && (mLastRecipe != null ? mLastRecipe.mSpecialValue : 0) > 0))
- .widget(
- new TextWidget(StatCollector.translateToLocal("GTPP.multiblock.mei") + ":")
- .setDefaultColor(COLOR_TEXT_WHITE.get()).setEnabled(widget -> mMachine))
- .widget(
- TextWidget
- .dynamicString(
- () -> StatCollector.translateToLocal(
- "" + EnumChatFormatting.YELLOW
- + getMaxInputVoltage()
- + EnumChatFormatting.RESET
- + " EU/t(*2A) "
- + StatCollector.translateToLocal("GTPP.machines.tier")
- + ": "
- + EnumChatFormatting.YELLOW
- + GT_Values.VN[GT_Utility.getTier(getMaxInputVoltage())]
- + EnumChatFormatting.RESET))
- .setDefaultColor(COLOR_TEXT_WHITE.get()).setEnabled(widget -> mMachine))
- .widget(
- TextWidget
- .dynamicString(
- () -> StatCollector.translateToLocal("GTPP.multiblock.efficiency") + ": "
- + EnumChatFormatting.YELLOW
- + (mEfficiency / 100.0F)
- + EnumChatFormatting.RESET
- + " %")
- .setDefaultColor(COLOR_TEXT_WHITE.get()).setEnabled(widget -> mMachine))
- .widget(
- TextWidget
- .dynamicString(
- () -> StatCollector.translateToLocal("GTPP.multiblock.pollution") + ": "
- + EnumChatFormatting.RED
- + (getPollutionPerTick(null) * 20)
- + EnumChatFormatting.RESET
- + "/sec")
- .setDefaultColor(COLOR_TEXT_WHITE.get()).setEnabled(widget -> mMachine))
- .widget(
- TextWidget
- .dynamicString(
- () -> StatCollector.translateToLocal("GTPP.multiblock.pollutionreduced") + ": "
- + EnumChatFormatting.GREEN
- + getPollutionReductionForAllMufflers()
- + EnumChatFormatting.RESET
- + " %")
- .setDefaultColor(COLOR_TEXT_WHITE.get()).setEnabled(widget -> mMachine))
- .widget(
- new TextWidget("Total Time Since Built: ").setDefaultColor(COLOR_TEXT_WHITE.get())
- .setEnabled(widget -> mMachine))
- .widget(
- TextWidget
- .dynamicString(
- () -> "" + EnumChatFormatting.DARK_GREEN
- + getRuntimeWeeksDisplay()
- + EnumChatFormatting.RESET
- + " Weeks,")
- .setDefaultColor(COLOR_TEXT_WHITE.get()).setEnabled(widget -> mMachine))
- .widget(
- TextWidget
- .dynamicString(
- () -> "" + EnumChatFormatting.DARK_GREEN
- + getRuntimeDaysDisplay()
- + EnumChatFormatting.RESET
- + " Days,")
- .setDefaultColor(COLOR_TEXT_WHITE.get()).setEnabled(widget -> mMachine))
- .widget(
- TextWidget
- .dynamicString(
- () -> "" + EnumChatFormatting.DARK_GREEN
- + getRuntimeHoursDisplay()
- + EnumChatFormatting.RESET
- + " Hours,")
- .setDefaultColor(COLOR_TEXT_WHITE.get()).setEnabled(widget -> mMachine))
- .widget(
- TextWidget
- .dynamicString(
- () -> "" + EnumChatFormatting.DARK_GREEN
- + getRuntimeMinutesDisplay()
- + EnumChatFormatting.RESET
- + " Minutes,")
- .setDefaultColor(COLOR_TEXT_WHITE.get()).setEnabled(widget -> mMachine))
- .widget(
- TextWidget
- .dynamicString(
- () -> "" + EnumChatFormatting.DARK_GREEN
- + getRuntimeSecondsDisplay()
- + EnumChatFormatting.RESET
- + " Seconds")
- .setDefaultColor(COLOR_TEXT_WHITE.get()).setEnabled(widget -> mMachine));
+ .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))
+ .widget(
+ TextWidget
+ .dynamicString(
+ () -> StatCollector.translateToLocal("GTPP.machines.input") + " "
+ + StatCollector.translateToLocal("GTPP.machines.tier")
+ + ": "
+ + EnumChatFormatting.GREEN
+ + GT_Values.VOLTAGE_NAMES[(int) getInputTier()])
+ .setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setEnabled(widget -> mMachine && getInputTier() > 0))
+ .widget(
+ TextWidget
+ .dynamicString(
+ () -> StatCollector.translateToLocal("GTPP.machines.output") + " "
+ + StatCollector.translateToLocal("GTPP.machines.tier")
+ + ": "
+ + EnumChatFormatting.GREEN
+ + GT_Values.VOLTAGE_NAMES[(int) getOutputTier()])
+ .setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setEnabled(widget -> mMachine && getOutputTier() > 0))
+ .widget(
+ TextWidget
+ .dynamicString(
+ () -> StatCollector.translateToLocal("GTPP.multiblock.progress") + ": "
+ + EnumChatFormatting.GREEN
+ + getBaseMetaTileEntity().getProgress() / 20
+ + EnumChatFormatting.RESET
+ + " s / "
+ + EnumChatFormatting.YELLOW
+ + getBaseMetaTileEntity().getMaxProgress() / 20
+ + EnumChatFormatting.RESET
+ + " s")
+ .setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setEnabled(widget -> mMachine))
+ .widget(
+ new TextWidget(StatCollector.translateToLocal("GTPP.multiblock.energy") + ":")
+ .setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setEnabled(widget -> mMachine))
+ .widget(
+ TextWidget
+ .dynamicString(
+ () -> StatCollector.translateToLocal(
+ "" + EnumChatFormatting.GREEN
+ + getStoredEnergyInAllEnergyHatches()
+ + EnumChatFormatting.RESET
+ + " EU / "
+ + EnumChatFormatting.YELLOW
+ + getMaxEnergyStorageOfAllEnergyHatches()
+ + EnumChatFormatting.RESET
+ + " EU"))
+ .setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setEnabled(widget -> mMachine))
+ .widget(
+ new TextWidget(StatCollector.translateToLocal("GTPP.multiblock.usage") + ":")
+ .setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setEnabled(widget -> mMachine && getLastRecipeEU() > 0 && getLastRecipeDuration() > 0))
+ .widget(
+ TextWidget.dynamicString(
+ () -> StatCollector.translateToLocal(
+ "" + EnumChatFormatting.RED + -getLastRecipeEU() + EnumChatFormatting.RESET + " EU/t/parallel"))
+ .setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setEnabled(widget -> mMachine && getLastRecipeEU() > 0 && getLastRecipeDuration() > 0))
+ .widget(
+ TextWidget.dynamicString(() -> StatCollector.translateToLocal("GTPP.multiblock.generation") + ":")
+ .setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setEnabled(widget -> mMachine && getLastRecipeEU() < 0 && getLastRecipeDuration() > 0))
+ .widget(
+ TextWidget
+ .dynamicString(
+ () -> StatCollector.translateToLocal(
+ "" + EnumChatFormatting.GREEN
+ + getLastRecipeEU()
+ + EnumChatFormatting.RESET
+ + " EU/t/parallel"))
+ .setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setEnabled(widget -> mMachine && getLastRecipeEU() < 0 && getLastRecipeDuration() > 0))
+ .widget(
+ TextWidget
+ .dynamicString(
+ () -> StatCollector.translateToLocal("GTPP.multiblock.duration") + ": "
+ + EnumChatFormatting.RED
+ + getLastRecipeDuration()
+ + EnumChatFormatting.RESET
+ + " ticks")
+ .setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setEnabled(widget -> mMachine && getLastRecipeEU() != 0 && getLastRecipeDuration() > 0))
+ .widget(
+ TextWidget
+ .dynamicString(
+ () -> StatCollector.translateToLocal("GTPP.multiblock.specialvalue") + ": "
+ + EnumChatFormatting.RED
+ + getLastRecipeEU()
+ + EnumChatFormatting.RESET
+ + "")
+ .setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setEnabled(
+ widget -> mMachine && getLastRecipeEU() != 0
+ && getLastRecipeDuration() > 0
+ && (mLastRecipe != null ? mLastRecipe.mSpecialValue : 0) > 0))
+ .widget(
+ new TextWidget(StatCollector.translateToLocal("GTPP.multiblock.mei") + ":")
+ .setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setEnabled(widget -> mMachine))
+ .widget(
+ TextWidget
+ .dynamicString(
+ () -> StatCollector.translateToLocal(
+ "" + EnumChatFormatting.YELLOW
+ + getMaxInputVoltage()
+ + EnumChatFormatting.RESET
+ + " EU/t(*2A) "
+ + StatCollector.translateToLocal("GTPP.machines.tier")
+ + ": "
+ + EnumChatFormatting.YELLOW
+ + GT_Values.VN[GT_Utility.getTier(getMaxInputVoltage())]
+ + EnumChatFormatting.RESET))
+ .setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setEnabled(widget -> mMachine))
+ .widget(
+ TextWidget
+ .dynamicString(
+ () -> StatCollector.translateToLocal("GTPP.multiblock.efficiency") + ": "
+ + EnumChatFormatting.YELLOW
+ + (mEfficiency / 100.0F)
+ + EnumChatFormatting.RESET
+ + " %")
+ .setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setEnabled(widget -> mMachine))
+ .widget(
+ TextWidget
+ .dynamicString(
+ () -> StatCollector.translateToLocal("GTPP.multiblock.pollution") + ": "
+ + EnumChatFormatting.RED
+ + (getPollutionPerTick(null) * 20)
+ + EnumChatFormatting.RESET
+ + "/sec")
+ .setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setEnabled(widget -> mMachine))
+ .widget(
+ TextWidget
+ .dynamicString(
+ () -> StatCollector.translateToLocal("GTPP.multiblock.pollutionreduced") + ": "
+ + EnumChatFormatting.GREEN
+ + getPollutionReductionForAllMufflers()
+ + EnumChatFormatting.RESET
+ + " %")
+ .setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setEnabled(widget -> mMachine))
+ .widget(
+ new TextWidget("Total Time Since Built: ").setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setEnabled(widget -> mMachine))
+ .widget(
+ TextWidget
+ .dynamicString(
+ () -> "" + EnumChatFormatting.DARK_GREEN
+ + getRuntimeWeeksDisplay()
+ + EnumChatFormatting.RESET
+ + " Weeks,")
+ .setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setEnabled(widget -> mMachine))
+ .widget(
+ TextWidget
+ .dynamicString(
+ () -> "" + EnumChatFormatting.DARK_GREEN
+ + getRuntimeDaysDisplay()
+ + EnumChatFormatting.RESET
+ + " Days,")
+ .setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setEnabled(widget -> mMachine))
+ .widget(
+ TextWidget
+ .dynamicString(
+ () -> "" + EnumChatFormatting.DARK_GREEN
+ + getRuntimeHoursDisplay()
+ + EnumChatFormatting.RESET
+ + " Hours,")
+ .setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setEnabled(widget -> mMachine))
+ .widget(
+ TextWidget
+ .dynamicString(
+ () -> "" + EnumChatFormatting.DARK_GREEN
+ + getRuntimeMinutesDisplay()
+ + EnumChatFormatting.RESET
+ + " Minutes,")
+ .setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setEnabled(widget -> mMachine))
+ .widget(
+ TextWidget
+ .dynamicString(
+ () -> "" + EnumChatFormatting.DARK_GREEN
+ + getRuntimeSecondsDisplay()
+ + EnumChatFormatting.RESET
+ + " Seconds")
+ .setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setEnabled(widget -> mMachine));
}
protected int getLastRecipeEU() {
@@ -1617,7 +1666,7 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
protected long getRuntimeHoursDisplay() {
return TimeUnit.SECONDS.toHours(getRuntimeSeconds()) - TimeUnit.DAYS.toHours(getRuntimeDaysDisplay())
- - TimeUnit.DAYS.toHours(7 * getRuntimeWeeksDisplay());
+ - TimeUnit.DAYS.toHours(7 * getRuntimeWeeksDisplay());
}
protected long getRuntimeMinutesDisplay() {
@@ -1632,62 +1681,54 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
if (!mToolStacks.isEmpty()) return;
mToolStacks.put(
- true + "WRENCH",
- GT_MetaGenerated_Tool_01.INSTANCE
- .getToolWithStats(GT_MetaGenerated_Tool_01.WRENCH, 1, GOOD, Materials.Tungsten, null));
+ true + "WRENCH",
+ GT_MetaGenerated_Tool_01.INSTANCE
+ .getToolWithStats(GT_MetaGenerated_Tool_01.WRENCH, 1, GOOD, Materials.Tungsten, null));
mToolStacks.put(
- true + "CROWBAR",
- GT_MetaGenerated_Tool_01.INSTANCE
- .getToolWithStats(GT_MetaGenerated_Tool_01.CROWBAR, 1, GOOD, Materials.Tungsten, null));
+ true + "CROWBAR",
+ GT_MetaGenerated_Tool_01.INSTANCE
+ .getToolWithStats(GT_MetaGenerated_Tool_01.CROWBAR, 1, GOOD, Materials.Tungsten, null));
mToolStacks.put(
- true + "HARDHAMMER",
- GT_MetaGenerated_Tool_01.INSTANCE
- .getToolWithStats(GT_MetaGenerated_Tool_01.HARDHAMMER, 1, GOOD, Materials.Tungsten, null));
+ true + "HARDHAMMER",
+ GT_MetaGenerated_Tool_01.INSTANCE
+ .getToolWithStats(GT_MetaGenerated_Tool_01.HARDHAMMER, 1, GOOD, Materials.Tungsten, null));
mToolStacks.put(
- true + "SOFTHAMMER",
- GT_MetaGenerated_Tool_01.INSTANCE
- .getToolWithStats(GT_MetaGenerated_Tool_01.SOFTMALLET, 1, GOOD, Materials.Tungsten, null));
+ true + "SOFTHAMMER",
+ GT_MetaGenerated_Tool_01.INSTANCE
+ .getToolWithStats(GT_MetaGenerated_Tool_01.SOFTMALLET, 1, GOOD, Materials.Tungsten, null));
mToolStacks.put(
- true + "SCREWDRIVER",
- GT_MetaGenerated_Tool_01.INSTANCE
- .getToolWithStats(GT_MetaGenerated_Tool_01.SCREWDRIVER, 1, GOOD, Materials.Tungsten, null));
+ true + "SCREWDRIVER",
+ GT_MetaGenerated_Tool_01.INSTANCE
+ .getToolWithStats(GT_MetaGenerated_Tool_01.SCREWDRIVER, 1, GOOD, Materials.Tungsten, null));
mToolStacks.put(
- true + "SOLDERING_IRON_LV",
- GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats(
- GT_MetaGenerated_Tool_01.SOLDERING_IRON_LV,
- 1,
- GOOD,
- Materials.Tungsten,
- null));
+ true + "SOLDERING_IRON_LV",
+ GT_MetaGenerated_Tool_01.INSTANCE
+ .getToolWithStats(GT_MetaGenerated_Tool_01.SOLDERING_IRON_LV, 1, GOOD, Materials.Tungsten, null));
mToolStacks.put(
- false + "WRENCH",
- GT_MetaGenerated_Tool_01.INSTANCE
- .getToolWithStats(GT_MetaGenerated_Tool_01.WRENCH, 1, BAD, Materials.Tungsten, null));
+ false + "WRENCH",
+ GT_MetaGenerated_Tool_01.INSTANCE
+ .getToolWithStats(GT_MetaGenerated_Tool_01.WRENCH, 1, BAD, Materials.Tungsten, null));
mToolStacks.put(
- false + "CROWBAR",
- GT_MetaGenerated_Tool_01.INSTANCE
- .getToolWithStats(GT_MetaGenerated_Tool_01.CROWBAR, 1, BAD, Materials.Tungsten, null));
+ false + "CROWBAR",
+ GT_MetaGenerated_Tool_01.INSTANCE
+ .getToolWithStats(GT_MetaGenerated_Tool_01.CROWBAR, 1, BAD, Materials.Tungsten, null));
mToolStacks.put(
- false + "HARDHAMMER",
- GT_MetaGenerated_Tool_01.INSTANCE
- .getToolWithStats(GT_MetaGenerated_Tool_01.HARDHAMMER, 1, BAD, Materials.Tungsten, null));
+ false + "HARDHAMMER",
+ GT_MetaGenerated_Tool_01.INSTANCE
+ .getToolWithStats(GT_MetaGenerated_Tool_01.HARDHAMMER, 1, BAD, Materials.Tungsten, null));
mToolStacks.put(
- false + "SOFTHAMMER",
- GT_MetaGenerated_Tool_01.INSTANCE
- .getToolWithStats(GT_MetaGenerated_Tool_01.SOFTMALLET, 1, BAD, Materials.Tungsten, null));
+ false + "SOFTHAMMER",
+ GT_MetaGenerated_Tool_01.INSTANCE
+ .getToolWithStats(GT_MetaGenerated_Tool_01.SOFTMALLET, 1, BAD, Materials.Tungsten, null));
mToolStacks.put(
- false + "SCREWDRIVER",
- GT_MetaGenerated_Tool_01.INSTANCE
- .getToolWithStats(GT_MetaGenerated_Tool_01.SCREWDRIVER, 1, BAD, Materials.Tungsten, null));
+ false + "SCREWDRIVER",
+ GT_MetaGenerated_Tool_01.INSTANCE
+ .getToolWithStats(GT_MetaGenerated_Tool_01.SCREWDRIVER, 1, BAD, Materials.Tungsten, null));
mToolStacks.put(
- false + "SOLDERING_IRON_LV",
- GT_MetaGenerated_Tool_01.INSTANCE.getToolWithStats(
- GT_MetaGenerated_Tool_01.SOLDERING_IRON_LV,
- 1,
- BAD,
- Materials.Tungsten,
- null));
+ false + "SOLDERING_IRON_LV",
+ GT_MetaGenerated_Tool_01.INSTANCE
+ .getToolWithStats(GT_MetaGenerated_Tool_01.SOLDERING_IRON_LV, 1, BAD, Materials.Tungsten, null));
ItemStack aGlassPane1 = ItemUtils.getItemStackOfAmountFromOreDict("paneGlassRed", 1);
ItemStack aGlassPane2 = ItemUtils.getItemStackOfAmountFromOreDict("paneGlassLime", 1);
@@ -1705,7 +1746,7 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
}
},
TTDynamo(GregtechMeta_MultiBlockBase::addMultiAmpDynamoToMachineList,
- "com.github.technus.tectech.thing.metaTileEntity.hatch.GT_MetaTileEntity_Hatch_DynamoMulti") {
+ "com.github.technus.tectech.thing.metaTileEntity.hatch.GT_MetaTileEntity_Hatch_DynamoMulti") {
@Override
public long count(GregtechMeta_MultiBlockBase<?> t) {
@@ -1713,7 +1754,7 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
}
},
TTEnergy(GregtechMeta_MultiBlockBase::addMultiAmpEnergyToMachineList,
- "com.github.technus.tectech.thing.metaTileEntity.hatch.GT_MetaTileEntity_Hatch_EnergyMulti") {
+ "com.github.technus.tectech.thing.metaTileEntity.hatch.GT_MetaTileEntity_Hatch_EnergyMulti") {
@Override
public long count(GregtechMeta_MultiBlockBase<?> t) {
@@ -1731,14 +1772,17 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_Ex
@SafeVarargs
GTPPHatchElement(IGT_HatchAdder<? super GregtechMeta_MultiBlockBase<?>> aAdder,
- Class<? extends IMetaTileEntity>... aMteClasses) {
+ Class<? extends IMetaTileEntity>... aMteClasses) {
this.mMteClasses = Arrays.asList(aMteClasses);
this.mAdder = aAdder;
}
GTPPHatchElement(IGT_HatchAdder<? super GregtechMeta_MultiBlockBase<?>> aAdder, String... aClassNames) {
- this.mMteClasses = Arrays.stream(aClassNames).map(ReflectionUtils::getClass).filter(Objects::nonNull)
- .<Class<? extends IMetaTileEntity>>map(GTPPHatchElement::retype).collect(Collectors.toList());
+ this.mMteClasses = Arrays.stream(aClassNames)
+ .map(ReflectionUtils::getClass)
+ .filter(Objects::nonNull)
+ .<Class<? extends IMetaTileEntity>>map(GTPPHatchElement::retype)
+ .collect(Collectors.toList());
this.mAdder = aAdder;
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_SteamMultiBase.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_SteamMultiBase.java
index 53950bfa7b..6e501815f0 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_SteamMultiBase.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_SteamMultiBase.java
@@ -42,7 +42,7 @@ import mcp.mobius.waila.api.IWailaConfigHandler;
import mcp.mobius.waila.api.IWailaDataAccessor;
public abstract class GregtechMeta_SteamMultiBase<T extends GregtechMeta_SteamMultiBase<T>>
- extends GregtechMeta_MultiBlockBase<T> {
+ extends GregtechMeta_MultiBlockBase<T> {
public ArrayList<GT_MetaTileEntity_Hatch_Steam_BusInput> mSteamInputs = new ArrayList<>();
public ArrayList<GT_MetaTileEntity_Hatch_Steam_BusOutput> mSteamOutputs = new ArrayList<>();
@@ -62,10 +62,10 @@ public abstract class GregtechMeta_SteamMultiBase<T extends GregtechMeta_SteamMu
@Override
public ITexture[] getTexture(final IGregTechTileEntity aBaseMetaTileEntity, final ForgeDirection side,
- final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
+ final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
if (side == facing) {
return new ITexture[] { Textures.BlockIcons.getCasingTextureForId(getCasingTextureIndex()),
- aActive ? getFrontOverlayActive() : getFrontOverlay() };
+ aActive ? getFrontOverlayActive() : getFrontOverlay() };
}
return new ITexture[] { Textures.BlockIcons.getCasingTextureForId(getCasingTextureIndex()) };
}
@@ -172,8 +172,8 @@ public abstract class GregtechMeta_SteamMultiBase<T extends GregtechMeta_SteamMu
aDidAdd = addToMachineListInternal(mSteamInputFluids, aMetaTileEntity, aBaseCasingIndex);
} else if (aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Steam_BusInput) {
log(
- "Trying to set recipe map. Type: "
- + (getRecipeMap() != null ? getRecipeMap().unlocalizedName : "Null"));
+ "Trying to set recipe map. Type: "
+ + (getRecipeMap() != null ? getRecipeMap().unlocalizedName : "Null"));
this.resetRecipeMapForHatch(aTileEntity, getRecipeMap());
log("Adding Steam Input Bus");
aDidAdd = addToMachineListInternal(mSteamInputs, aMetaTileEntity, aBaseCasingIndex);
@@ -211,19 +211,30 @@ public abstract class GregtechMeta_SteamMultiBase<T extends GregtechMeta_SteamMu
FluidStack aLiquid = GT_Utility.getFluidForFilledItem(aStack, true);
if (aLiquid != null) return depleteInput(aLiquid);
for (GT_MetaTileEntity_Hatch_CustomFluidBase tHatch : filterValidMTEs(mSteamInputFluids)) {
- if (GT_Utility.areStacksEqual(aStack, tHatch.getBaseMetaTileEntity().getStackInSlot(0))) {
- if (tHatch.getBaseMetaTileEntity().getStackInSlot(0).stackSize >= aStack.stackSize) {
- tHatch.getBaseMetaTileEntity().decrStackSize(0, aStack.stackSize);
+ if (GT_Utility.areStacksEqual(
+ aStack,
+ tHatch.getBaseMetaTileEntity()
+ .getStackInSlot(0))) {
+ if (tHatch.getBaseMetaTileEntity()
+ .getStackInSlot(0).stackSize >= aStack.stackSize) {
+ tHatch.getBaseMetaTileEntity()
+ .decrStackSize(0, aStack.stackSize);
return true;
}
}
}
for (GT_MetaTileEntity_Hatch_Steam_BusInput tHatch : filterValidMTEs(mSteamInputs)) {
tHatch.mRecipeMap = getRecipeMap();
- for (int i = tHatch.getBaseMetaTileEntity().getSizeInventory() - 1; i >= 0; i--) {
- if (GT_Utility.areStacksEqual(aStack, tHatch.getBaseMetaTileEntity().getStackInSlot(i))) {
- if (tHatch.getBaseMetaTileEntity().getStackInSlot(0).stackSize >= aStack.stackSize) {
- tHatch.getBaseMetaTileEntity().decrStackSize(0, aStack.stackSize);
+ for (int i = tHatch.getBaseMetaTileEntity()
+ .getSizeInventory() - 1; i >= 0; i--) {
+ if (GT_Utility.areStacksEqual(
+ aStack,
+ tHatch.getBaseMetaTileEntity()
+ .getStackInSlot(i))) {
+ if (tHatch.getBaseMetaTileEntity()
+ .getStackInSlot(0).stackSize >= aStack.stackSize) {
+ tHatch.getBaseMetaTileEntity()
+ .decrStackSize(0, aStack.stackSize);
return true;
}
}
@@ -248,9 +259,13 @@ public abstract class GregtechMeta_SteamMultiBase<T extends GregtechMeta_SteamMu
ArrayList<ItemStack> rList = new ArrayList<>();
for (GT_MetaTileEntity_Hatch_Steam_BusInput tHatch : filterValidMTEs(mSteamInputs)) {
tHatch.mRecipeMap = getRecipeMap();
- for (int i = tHatch.getBaseMetaTileEntity().getSizeInventory() - 1; i >= 0; i--) {
- if (tHatch.getBaseMetaTileEntity().getStackInSlot(i) != null) {
- rList.add(tHatch.getBaseMetaTileEntity().getStackInSlot(i));
+ for (int i = tHatch.getBaseMetaTileEntity()
+ .getSizeInventory() - 1; i >= 0; i--) {
+ if (tHatch.getBaseMetaTileEntity()
+ .getStackInSlot(i) != null) {
+ rList.add(
+ tHatch.getBaseMetaTileEntity()
+ .getStackInSlot(i));
}
}
}
@@ -268,13 +283,15 @@ public abstract class GregtechMeta_SteamMultiBase<T extends GregtechMeta_SteamMu
for (GT_MetaTileEntity_Hatch_Steam_BusOutput tHatch : filterValidMTEs(mSteamOutputs)) {
if (!outputSuccess) {
for (int i = tHatch.getSizeInventory() - 1; i >= 0 && !outputSuccess; i--) {
- if (tHatch.getBaseMetaTileEntity().addStackToSlot(i, single)) outputSuccess = true;
+ if (tHatch.getBaseMetaTileEntity()
+ .addStackToSlot(i, single)) outputSuccess = true;
}
}
}
for (GT_MetaTileEntity_Hatch_Output tHatch : filterValidMTEs(mOutputHatches)) {
if (!outputSuccess && tHatch.outputsItems()) {
- if (tHatch.getBaseMetaTileEntity().addStackToSlot(1, single)) outputSuccess = true;
+ if (tHatch.getBaseMetaTileEntity()
+ .addStackToSlot(1, single)) outputSuccess = true;
}
}
}
@@ -285,8 +302,11 @@ public abstract class GregtechMeta_SteamMultiBase<T extends GregtechMeta_SteamMu
public ArrayList<ItemStack> getStoredOutputs() {
ArrayList<ItemStack> rList = new ArrayList<>();
for (GT_MetaTileEntity_Hatch_Steam_BusOutput tHatch : filterValidMTEs(mSteamOutputs)) {
- for (int i = tHatch.getBaseMetaTileEntity().getSizeInventory() - 1; i >= 0; i--) {
- rList.add(tHatch.getBaseMetaTileEntity().getStackInSlot(i));
+ for (int i = tHatch.getBaseMetaTileEntity()
+ .getSizeInventory() - 1; i >= 0; i--) {
+ rList.add(
+ tHatch.getBaseMetaTileEntity()
+ .getStackInSlot(i));
}
}
return rList;
@@ -336,29 +356,28 @@ public abstract class GregtechMeta_SteamMultiBase<T extends GregtechMeta_SteamMu
@Override
public void getWailaBody(ItemStack itemStack, List<String> 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("GTPP.waila.steam.use", formatNumbers(actualEnergyUsage)));
+ StatCollector.translateToLocalFormatted("GTPP.waila.steam.use", formatNumbers(actualEnergyUsage)));
}
}
currentTip.add(
- GT_Waila.getMachineProgressString(isActive, tag.getInteger("maxProgress"), tag.getInteger("progress")));
+ GT_Waila.getMachineProgressString(isActive, tag.getInteger("maxProgress"), tag.getInteger("progress")));
// Show ns on the tooltip
if (GT_Mod.gregtechproxy.wailaAverageNS && tag.hasKey("averageNS")) {
int tAverageTime = tag.getInteger("averageNS");
@@ -368,9 +387,10 @@ public abstract class GregtechMeta_SteamMultiBase<T extends GregtechMeta_SteamMu
}
protected static <T extends GregtechMeta_SteamMultiBase<T>> GT_HatchElementBuilder<T> buildSteamInput(
- Class<T> typeToken) {
- return buildHatchAdder(typeToken).adder(GregtechMeta_SteamMultiBase::addToMachineList).hatchIds(31040)
- .shouldReject(t -> !t.mSteamInputFluids.isEmpty());
+ Class<T> typeToken) {
+ return buildHatchAdder(typeToken).adder(GregtechMeta_SteamMultiBase::addToMachineList)
+ .hatchIds(31040)
+ .shouldReject(t -> !t.mSteamInputFluids.isEmpty());
}
protected enum SteamHatchElement implements IHatchElement<GregtechMeta_SteamMultiBase<?>> {
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/generators/GregtechMetaBoilerBase.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/generators/GregtechMetaBoilerBase.java
index dd063840c6..3f0d8d1ec1 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/generators/GregtechMetaBoilerBase.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/generators/GregtechMetaBoilerBase.java
@@ -33,20 +33,20 @@ public abstract class GregtechMetaBoilerBase extends GT_MetaTileEntity_BasicTank
public long RI = MathUtils.randLong(5L, 30L);
public GregtechMetaBoilerBase(final int aID, final String aName, final String aNameRegional,
- final String aDescription, final ITexture... aTextures) {
+ final String aDescription, final ITexture... aTextures) {
super(aID, aName, aNameRegional, 0, 4, aDescription, aTextures);
}
public GregtechMetaBoilerBase(final String aName, final int aTier, final String[] aDescription,
- final ITexture[][][] aTextures) {
+ final ITexture[][][] aTextures) {
super(aName, aTier, 4, aDescription, aTextures);
}
@Override
public ITexture[] getTexture(final IGregTechTileEntity aBaseMetaTileEntity, final ForgeDirection side,
- final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
+ final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
ITexture[] tmp = this.mTextures[side.offsetY == 0 ? side != facing ? 2 : ((byte) (aActive ? 4 : 3))
- : side.ordinal()][aColorIndex + 1];
+ : side.ordinal()][aColorIndex + 1];
if ((side != facing) && (tmp.length == 2)) {
tmp = new ITexture[] { tmp[0] };
}
@@ -106,7 +106,8 @@ public abstract class GregtechMetaBoilerBase extends GT_MetaTileEntity_BasicTank
if (aPlayer != null) {
if (GT_Utility.areStacksEqual(aPlayer.getCurrentEquippedItem(), new ItemStack(Items.water_bucket, 1))) {
this.fill(Materials.Water.getFluid(1000 * aPlayer.getCurrentEquippedItem().stackSize), true);
- aPlayer.getCurrentEquippedItem().func_150996_a(Items.bucket);
+ aPlayer.getCurrentEquippedItem()
+ .func_150996_a(Items.bucket);
} else {
GT_UIInfos.openGTTileEntityUI(aBaseMetaTileEntity, aPlayer);
}
@@ -167,7 +168,8 @@ public abstract class GregtechMetaBoilerBase extends GT_MetaTileEntity_BasicTank
@Override
public boolean allowCoverOnSide(final ForgeDirection side, final GT_ItemStack aCover) {
- return GregTech_API.getCoverBehaviorNew(aCover.toStack()).isSimpleCover();
+ return GregTech_API.getCoverBehaviorNew(aCover.toStack())
+ .isSimpleCover();
}
@Override
@@ -208,14 +210,14 @@ public abstract class GregtechMetaBoilerBase extends GT_MetaTileEntity_BasicTank
final IFluidHandler tTileEntity = aBaseMetaTileEntity.getITankContainerAtSide(side);
if (tTileEntity != null) {
final FluidStack tDrained = aBaseMetaTileEntity
- .drain(side, Math.max(1, this.mSteam.amount / 2), false);
+ .drain(side, Math.max(1, this.mSteam.amount / 2), false);
if (tDrained != null) {
final int tFilledAmount = tTileEntity.fill(side.getOpposite(), tDrained, false);
if (tFilledAmount > 0) {
tTileEntity.fill(
- side.getOpposite(),
- aBaseMetaTileEntity.drain(side, tFilledAmount, true),
- true);
+ side.getOpposite(),
+ aBaseMetaTileEntity.drain(side, tFilledAmount, true),
+ true);
}
}
}
@@ -248,59 +250,52 @@ public abstract class GregtechMetaBoilerBase extends GT_MetaTileEntity_BasicTank
this.mSteam.amount = getSteamCapacity() * 3 / 4;
}
if ((this.mProcessingEnergy <= 0) && (aBaseMetaTileEntity.isAllowedToWork())
- && (this.mInventory[2] != null)) {
+ && (this.mInventory[2] != null)) {
if ((GT_OreDictUnificator
- .isItemStackInstanceOf(this.mInventory[2], OrePrefixes.gem.get(Materials.Coal)))
- || (GT_OreDictUnificator
- .isItemStackInstanceOf(this.mInventory[2], OrePrefixes.dust.get(Materials.Coal)))
- || (GT_OreDictUnificator
- .isItemStackInstanceOf(this.mInventory[2], OrePrefixes.dustImpure.get(Materials.Coal)))
- || (GT_OreDictUnificator
- .isItemStackInstanceOf(this.mInventory[2], OrePrefixes.crushed.get(Materials.Coal)))) {
+ .isItemStackInstanceOf(this.mInventory[2], OrePrefixes.gem.get(Materials.Coal)))
+ || (GT_OreDictUnificator
+ .isItemStackInstanceOf(this.mInventory[2], OrePrefixes.dust.get(Materials.Coal)))
+ || (GT_OreDictUnificator
+ .isItemStackInstanceOf(this.mInventory[2], OrePrefixes.dustImpure.get(Materials.Coal)))
+ || (GT_OreDictUnificator
+ .isItemStackInstanceOf(this.mInventory[2], OrePrefixes.crushed.get(Materials.Coal)))) {
this.mProcessingEnergy += 160;
aBaseMetaTileEntity.decrStackSize(2, 1);
if (aBaseMetaTileEntity.getRandomNumber(3) == 0) {
- aBaseMetaTileEntity.addStackToSlot(
- 3,
- GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 1L));
+ aBaseMetaTileEntity
+ .addStackToSlot(3, GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 1L));
}
} else if (GT_OreDictUnificator
- .isItemStackInstanceOf(this.mInventory[2], OrePrefixes.gem.get(Materials.Charcoal))) {
- this.mProcessingEnergy += 160;
- aBaseMetaTileEntity.decrStackSize(2, 1);
- if (aBaseMetaTileEntity.getRandomNumber(3) == 0) {
- aBaseMetaTileEntity.addStackToSlot(
- 3,
- GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Ash, 1L));
- }
- } else
- if (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], "fuelCoke")) {
+ .isItemStackInstanceOf(this.mInventory[2], OrePrefixes.gem.get(Materials.Charcoal))) {
+ this.mProcessingEnergy += 160;
+ aBaseMetaTileEntity.decrStackSize(2, 1);
+ if (aBaseMetaTileEntity.getRandomNumber(3) == 0) {
+ aBaseMetaTileEntity
+ .addStackToSlot(3, GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Ash, 1L));
+ }
+ } else if (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], "fuelCoke")) {
this.mProcessingEnergy += 640;
aBaseMetaTileEntity.decrStackSize(2, 1);
if (aBaseMetaTileEntity.getRandomNumber(2) == 0) {
- aBaseMetaTileEntity.addStackToSlot(
- 3,
- GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Ash, 1L));
+ aBaseMetaTileEntity
+ .addStackToSlot(3, GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Ash, 1L));
}
} else if ((GT_OreDictUnificator
- .isItemStackInstanceOf(this.mInventory[2], OrePrefixes.gem.get(Materials.Lignite)))
- || (GT_OreDictUnificator
- .isItemStackInstanceOf(this.mInventory[2], OrePrefixes.dust.get(Materials.Lignite)))
- || (GT_OreDictUnificator.isItemStackInstanceOf(
- this.mInventory[2],
- OrePrefixes.dustImpure.get(Materials.Lignite)))
- || (GT_OreDictUnificator.isItemStackInstanceOf(
- this.mInventory[2],
- OrePrefixes.crushed.get(Materials.Lignite)))) {
- this.mProcessingEnergy += 40;
- aBaseMetaTileEntity.decrStackSize(2, 1);
- if (aBaseMetaTileEntity.getRandomNumber(8) == 0) {
- aBaseMetaTileEntity.addStackToSlot(
- 3,
- GT_OreDictUnificator
- .get(OrePrefixes.dustTiny, Materials.DarkAsh, 1L));
- }
- }
+ .isItemStackInstanceOf(this.mInventory[2], OrePrefixes.gem.get(Materials.Lignite)))
+ || (GT_OreDictUnificator
+ .isItemStackInstanceOf(this.mInventory[2], OrePrefixes.dust.get(Materials.Lignite)))
+ || (GT_OreDictUnificator
+ .isItemStackInstanceOf(this.mInventory[2], OrePrefixes.dustImpure.get(Materials.Lignite)))
+ || (GT_OreDictUnificator
+ .isItemStackInstanceOf(this.mInventory[2], OrePrefixes.crushed.get(Materials.Lignite)))) {
+ this.mProcessingEnergy += 40;
+ aBaseMetaTileEntity.decrStackSize(2, 1);
+ if (aBaseMetaTileEntity.getRandomNumber(8) == 0) {
+ aBaseMetaTileEntity.addStackToSlot(
+ 3,
+ GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 1L));
+ }
+ }
}
if ((this.mTemperature < 1000) && (this.mProcessingEnergy > 0) && ((aTick % 12L) == 0L)) {
this.mProcessingEnergy -= 2;
@@ -315,18 +310,18 @@ public abstract class GregtechMetaBoilerBase extends GT_MetaTileEntity_BasicTank
// support returning those different capacities.
public FluidTankInfo[] getTankInfo(ForgeDirection aSide) {
return new FluidTankInfo[] { new FluidTankInfo(this.mFluid, getCapacity()),
- new FluidTankInfo(this.mSteam, getSteamCapacity()) };
+ new FluidTankInfo(this.mSteam, getSteamCapacity()) };
}
@Override
public boolean allowPullStack(final IGregTechTileEntity aBaseMetaTileEntity, final int aIndex,
- final ForgeDirection side, final ItemStack aStack) {
+ final ForgeDirection side, final ItemStack aStack) {
return (aIndex == 1) || (aIndex == 3);
}
@Override
public boolean allowPutStack(final IGregTechTileEntity aBaseMetaTileEntity, final int aIndex,
- final ForgeDirection side, final ItemStack aStack) {
+ final ForgeDirection side, final ItemStack aStack) {
return aIndex == 2;
}
@@ -335,7 +330,9 @@ public abstract class GregtechMetaBoilerBase extends GT_MetaTileEntity_BasicTank
if (aIndex == 1) {
GT_Utility.doSoundAtClient(SoundResource.RANDOM_FIZZ, 2, 1.0F, aX, aY, aZ);
for (int l = 0; l < 8; l++) {
- this.getBaseMetaTileEntity().getWorld().spawnParticle(
+ this.getBaseMetaTileEntity()
+ .getWorld()
+ .spawnParticle(
"largesmoke",
(aX - 0.5D) + Math.random(),
aY,
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/generators/GregtechMetaSolarGenerator.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/generators/GregtechMetaSolarGenerator.java
index a64903e445..5e0588acfd 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/generators/GregtechMetaSolarGenerator.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/generators/GregtechMetaSolarGenerator.java
@@ -22,12 +22,12 @@ public abstract class GregtechMetaSolarGenerator extends GT_MetaTileEntity_Basic
public static int sEnergyPerTick = 16;
public GregtechMetaSolarGenerator(final int aID, final String aName, final String aNameRegional, final int aTier,
- final String aDescription, final ITexture... aTextures) {
+ final String aDescription, final ITexture... aTextures) {
super(aID, aName, aNameRegional, aTier, 3, aDescription, aTextures);
}
public GregtechMetaSolarGenerator(final String aName, final int aTier, final String[] aDescription,
- final ITexture[][][] aTextures) {
+ final ITexture[][][] aTextures) {
super(aName, aTier, 3, aDescription, aTextures);
}
@@ -51,12 +51,10 @@ public abstract class GregtechMetaSolarGenerator extends GT_MetaTileEntity_Basic
@Override
public ITexture[] getTexture(final IGregTechTileEntity aBaseMetaTileEntity, final ForgeDirection side,
- final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
- return this.mTextures[(aActive ? 5 : 0)
- + (side == facing ? 0
- : side == facing.getOpposite() ? 1
- : side == ForgeDirection.DOWN ? 2 : side == ForgeDirection.UP ? 3 : 4)][aColorIndex
- + 1];
+ final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
+ return this.mTextures[(aActive ? 5 : 0) + (side == facing ? 0
+ : side == facing.getOpposite() ? 1
+ : side == ForgeDirection.DOWN ? 2 : side == ForgeDirection.UP ? 3 : 4)][aColorIndex + 1];
}
@Override
@@ -145,7 +143,8 @@ public abstract class GregtechMetaSolarGenerator extends GT_MetaTileEntity_Basic
@Override
public long maxEUOutput() {
- return this.getBaseMetaTileEntity().isAllowedToWork() ? V[this.mTier] : 0;
+ return this.getBaseMetaTileEntity()
+ .isAllowedToWork() ? V[this.mTier] : 0;
}
@Override
@@ -156,9 +155,9 @@ public abstract class GregtechMetaSolarGenerator extends GT_MetaTileEntity_Basic
@Override
public void onPostTick(final IGregTechTileEntity aBaseMetaTileEntity, final long aTick) {
if (aBaseMetaTileEntity.isServerSide() && aBaseMetaTileEntity.isAllowedToWork()
- && (aTick > 20L)
- && (aBaseMetaTileEntity.getUniversalEnergyStored()
- < (this.maxEUOutput() + aBaseMetaTileEntity.getEUCapacity()))) {
+ && (aTick > 20L)
+ && (aBaseMetaTileEntity.getUniversalEnergyStored()
+ < (this.maxEUOutput() + aBaseMetaTileEntity.getEUCapacity()))) {
if (this.mSolarCharge <= 20) {
this.mSolarCharge = 20;
@@ -172,12 +171,13 @@ public abstract class GregtechMetaSolarGenerator extends GT_MetaTileEntity_Basic
if ((aTick % 25L) == 0L) {
if (this.mSolarCharge > 100) {
if ((this.mProcessingEnergy > 0) && (aBaseMetaTileEntity.isAllowedToWork())
- && ((aTick % 256L) == 0L)
- && (!aBaseMetaTileEntity.getWorld().isThundering()
- && (aBaseMetaTileEntity.getUniversalEnergyStored()
- < ((this.maxEUOutput() * 20) + this.getMinimumStoredEU())))) {
+ && ((aTick % 256L) == 0L)
+ && (!aBaseMetaTileEntity.getWorld()
+ .isThundering()
+ && (aBaseMetaTileEntity.getUniversalEnergyStored()
+ < ((this.maxEUOutput() * 20) + this.getMinimumStoredEU())))) {
this.getBaseMetaTileEntity()
- .increaseStoredEnergyUnits((sEnergyPerTick * this.getEfficiency()) / 10, false);
+ .increaseStoredEnergyUnits((sEnergyPerTick * this.getEfficiency()) / 10, false);
}
}
}
@@ -188,19 +188,21 @@ public abstract class GregtechMetaSolarGenerator extends GT_MetaTileEntity_Basic
}
if ((this.mProcessingEnergy <= 0) && (aBaseMetaTileEntity.isAllowedToWork())
- && ((aTick % 256L) == 0L)
- && (!aBaseMetaTileEntity.getWorld().isThundering())) {
- final boolean bRain = aBaseMetaTileEntity.getWorld().isRaining()
- && (aBaseMetaTileEntity.getBiome().rainfall > 0.0F);
+ && ((aTick % 256L) == 0L)
+ && (!aBaseMetaTileEntity.getWorld()
+ .isThundering())) {
+ final boolean bRain = aBaseMetaTileEntity.getWorld()
+ .isRaining() && (aBaseMetaTileEntity.getBiome().rainfall > 0.0F);
this.mProcessingEnergy += (bRain && (aBaseMetaTileEntity.getWorld().skylightSubtracted >= 4))
- || !aBaseMetaTileEntity.getSkyAtSide(ForgeDirection.UP) ? 0
- : !bRain && aBaseMetaTileEntity.getWorld().isDaytime() ? 8 : 1;
+ || !aBaseMetaTileEntity.getSkyAtSide(ForgeDirection.UP) ? 0
+ : !bRain && aBaseMetaTileEntity.getWorld()
+ .isDaytime() ? 8 : 1;
}
if (aBaseMetaTileEntity.isServerSide()) {
aBaseMetaTileEntity.setActive(
- aBaseMetaTileEntity.isAllowedToWork() && (aBaseMetaTileEntity.getUniversalEnergyStored()
- >= (this.maxEUOutput() + this.getMinimumStoredEU())));
+ aBaseMetaTileEntity.isAllowedToWork() && (aBaseMetaTileEntity.getUniversalEnergyStored()
+ >= (this.maxEUOutput() + this.getMinimumStoredEU())));
}
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/generators/GregtechRocketFuelGeneratorBase.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/generators/GregtechRocketFuelGeneratorBase.java
index 2b2766399d..83745f393a 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/generators/GregtechRocketFuelGeneratorBase.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/generators/GregtechRocketFuelGeneratorBase.java
@@ -30,21 +30,21 @@ public abstract class GregtechRocketFuelGeneratorBase extends GT_MetaTileEntity_
protected int pollMin, pollMax;
public GregtechRocketFuelGeneratorBase(final int aID, final String aName, final String aNameRegional,
- final int aTier, final String aDescription, final ITexture... aTextures) {
+ final int aTier, final String aDescription, final ITexture... aTextures) {
super(aID, aName, aNameRegional, aTier, 3, aDescription, aTextures);
pollMin = (int) (CORE.ConfigSwitches.baseMinPollutionPerSecondRocketFuelGenerator
- * CORE.ConfigSwitches.pollutionReleasedByTierRocketFuelGenerator[mTier]);
+ * CORE.ConfigSwitches.pollutionReleasedByTierRocketFuelGenerator[mTier]);
pollMax = (int) (CORE.ConfigSwitches.baseMaxPollutionPerSecondRocketFuelGenerator
- * CORE.ConfigSwitches.pollutionReleasedByTierRocketFuelGenerator[mTier]);
+ * CORE.ConfigSwitches.pollutionReleasedByTierRocketFuelGenerator[mTier]);
}
public GregtechRocketFuelGeneratorBase(final String aName, final int aTier, final String[] aDescription,
- final ITexture[][][] aTextures) {
+ final ITexture[][][] aTextures) {
super(aName, aTier, 3, aDescription, aTextures);
pollMin = (int) (CORE.ConfigSwitches.baseMinPollutionPerSecondRocketFuelGenerator
- * CORE.ConfigSwitches.pollutionReleasedByTierRocketFuelGenerator[mTier]);
+ * CORE.ConfigSwitches.pollutionReleasedByTierRocketFuelGenerator[mTier]);
pollMax = (int) (CORE.ConfigSwitches.baseMaxPollutionPerSecondRocketFuelGenerator
- * CORE.ConfigSwitches.pollutionReleasedByTierRocketFuelGenerator[mTier]);
+ * CORE.ConfigSwitches.pollutionReleasedByTierRocketFuelGenerator[mTier]);
}
@Override
@@ -67,22 +67,20 @@ public abstract class GregtechRocketFuelGeneratorBase extends GT_MetaTileEntity_
@Override
public ITexture[] getTexture(final IGregTechTileEntity aBaseMetaTileEntity, final ForgeDirection side,
- final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
- return this.mTextures[(aActive ? 5 : 0)
- + (side == facing ? 0
- : side == facing.getOpposite() ? 1
- : side == ForgeDirection.DOWN ? 2 : side == ForgeDirection.UP ? 3 : 4)][aColorIndex
- + 1];
+ final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
+ return this.mTextures[(aActive ? 5 : 0) + (side == facing ? 0
+ : side == facing.getOpposite() ? 1
+ : side == ForgeDirection.DOWN ? 2 : side == ForgeDirection.UP ? 3 : 4)][aColorIndex + 1];
}
@Override
public String[] getDescription() {
String aPollution = "Causes between " + pollMin + " and " + pollMax + " Pollution per second";
return ArrayUtils.addAll(
- this.mDescriptionArray,
- "Fuel Efficiency: " + this.getEfficiency() + "%",
- aPollution,
- CORE.GT_Tooltip.get());
+ this.mDescriptionArray,
+ "Fuel Efficiency: " + this.getEfficiency() + "%",
+ aPollution,
+ CORE.GT_Tooltip.get());
}
@Override
@@ -153,7 +151,8 @@ public abstract class GregtechRocketFuelGeneratorBase extends GT_MetaTileEntity_
@Override
public boolean isOutputFacing(final ForgeDirection side) {
- return this.getBaseMetaTileEntity().getFrontFacing() == side;
+ return this.getBaseMetaTileEntity()
+ .getFrontFacing() == side;
}
@Override
@@ -218,20 +217,19 @@ public abstract class GregtechRocketFuelGeneratorBase extends GT_MetaTileEntity_
this.mInventory[this.getStackDisplaySlot()] = new ItemStack(Blocks.fire, 1);
}
this.mInventory[this.getStackDisplaySlot()].setStackDisplayName(
- "Generating: "
- + (aBaseMetaTileEntity.getUniversalEnergyStored() - this.getMinimumStoredEU())
- + " EU");
+ "Generating: " + (aBaseMetaTileEntity.getUniversalEnergyStored() - this.getMinimumStoredEU())
+ + " EU");
}
} else {
final int tFuelValue = this.getFuelValue(this.mFluid),
- tConsumed = this.consumedFluidPerOperation(this.mFluid);
+ tConsumed = this.consumedFluidPerOperation(this.mFluid);
if ((tFuelValue > 0) && (tConsumed > 0) && (this.mFluid.amount >= tConsumed)) {
final long tFluidAmountToUse = Math.min(
- this.mFluid.amount / tConsumed,
- (((this.maxEUOutput() * 20) + this.getMinimumStoredEU())
- - aBaseMetaTileEntity.getUniversalEnergyStored()) / tFuelValue);
+ this.mFluid.amount / tConsumed,
+ (((this.maxEUOutput() * 20) + this.getMinimumStoredEU())
+ - aBaseMetaTileEntity.getUniversalEnergyStored()) / tFuelValue);
if ((tFluidAmountToUse > 0)
- && aBaseMetaTileEntity.increaseStoredEnergyUnits(tFluidAmountToUse * tFuelValue, true)) {
+ && aBaseMetaTileEntity.increaseStoredEnergyUnits(tFluidAmountToUse * tFuelValue, true)) {
int aSafeFloor = (int) Math.max(((tFluidAmountToUse * tConsumed) / 3), 1);
this.mFluid.amount -= (int) aSafeFloor;
PollutionUtils.addPollution(getBaseMetaTileEntity(), 10 * getPollution());
@@ -239,9 +237,9 @@ public abstract class GregtechRocketFuelGeneratorBase extends GT_MetaTileEntity_
}
}
if ((this.mInventory[this.getInputSlot()] != null)
- && (aBaseMetaTileEntity.getUniversalEnergyStored()
- < ((this.maxEUOutput() * 20) + this.getMinimumStoredEU()))
- && (GT_Utility.getFluidForFilledItem(this.mInventory[this.getInputSlot()], true) == null)) {
+ && (aBaseMetaTileEntity.getUniversalEnergyStored()
+ < ((this.maxEUOutput() * 20) + this.getMinimumStoredEU()))
+ && (GT_Utility.getFluidForFilledItem(this.mInventory[this.getInputSlot()], true) == null)) {
final int tFuelValue = this.getFuelValue(this.mInventory[this.getInputSlot()]);
if (tFuelValue > 0) {
final ItemStack tEmptyContainer = this.getEmptyContainer(this.mInventory[this.getInputSlot()]);
@@ -256,8 +254,8 @@ public abstract class GregtechRocketFuelGeneratorBase extends GT_MetaTileEntity_
if (aBaseMetaTileEntity.isServerSide()) {
aBaseMetaTileEntity.setActive(
- aBaseMetaTileEntity.isAllowedToWork() && (aBaseMetaTileEntity.getUniversalEnergyStored()
- >= (this.maxEUOutput() + this.getMinimumStoredEU())));
+ aBaseMetaTileEntity.isAllowedToWork() && (aBaseMetaTileEntity.getUniversalEnergyStored()
+ >= (this.maxEUOutput() + this.getMinimumStoredEU())));
}
}
@@ -279,7 +277,8 @@ public abstract class GregtechRocketFuelGeneratorBase extends GT_MetaTileEntity_
return 0;
}
FluidStack tLiquid;
- final Collection<GT_Recipe> tRecipeList = this.getRecipeMap().getAllRecipes();
+ final Collection<GT_Recipe> tRecipeList = this.getRecipeMap()
+ .getAllRecipes();
for (final GT_Recipe tFuel : tRecipeList) {
if ((tLiquid = tFuel.mFluidInputs[0]) != null) {
if (aLiquid.isFluidEqual(tLiquid)) {
@@ -296,7 +295,7 @@ public abstract class GregtechRocketFuelGeneratorBase extends GT_MetaTileEntity_
return 0;
}
final GT_Recipe tFuel = this.getRecipeMap()
- .findRecipe(this.getBaseMetaTileEntity(), false, Long.MAX_VALUE, null, aStack);
+ .findRecipe(this.getBaseMetaTileEntity(), false, Long.MAX_VALUE, null, aStack);
if (tFuel != null) {
return (int) ((tFuel.mSpecialValue * 1000L * this.getEfficiency()) / 100);
}
@@ -308,7 +307,7 @@ public abstract class GregtechRocketFuelGeneratorBase extends GT_MetaTileEntity_
return null;
}
final GT_Recipe tFuel = this.getRecipeMap()
- .findRecipe(this.getBaseMetaTileEntity(), false, Long.MAX_VALUE, null, aStack);
+ .findRecipe(this.getBaseMetaTileEntity(), false, Long.MAX_VALUE, null, aStack);
if (tFuel != null) {
return GT_Utility.copy(tFuel.getOutput(0));
}
@@ -317,9 +316,9 @@ public abstract class GregtechRocketFuelGeneratorBase extends GT_MetaTileEntity_
@Override
public boolean allowPutStack(final IGregTechTileEntity aBaseMetaTileEntity, final int aIndex,
- final ForgeDirection side, final ItemStack aStack) {
+ final ForgeDirection side, final ItemStack aStack) {
return super.allowPutStack(aBaseMetaTileEntity, aIndex, side, aStack) && ((this.getFuelValue(aStack) > 0)
- || (this.getFuelValue(GT_Utility.getFluidForFilledItem(aStack, true)) > 0));
+ || (this.getFuelValue(GT_Utility.getFluidForFilledItem(aStack, true)) > 0));
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/machines/GregtechMetaTreeFarmerBase.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/machines/GregtechMetaTreeFarmerBase.java
index 25e831d4ef..fe3253244a 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/machines/GregtechMetaTreeFarmerBase.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/machines/GregtechMetaTreeFarmerBase.java
@@ -13,12 +13,12 @@ import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
public abstract class GregtechMetaTreeFarmerBase extends GT_MetaTileEntity_TieredMachineBlock {
public GregtechMetaTreeFarmerBase(final int aID, final String aName, final String aNameRegional, final int aTier,
- final int aInvSlotCount, final String aDescription) {
+ final int aInvSlotCount, final String aDescription) {
super(aID, aName, aNameRegional, aTier, aInvSlotCount, aDescription);
}
public GregtechMetaTreeFarmerBase(final String aName, final int aTier, final int aInvSlotCount,
- final String[] aDescription, final ITexture[][][] aTextures) {
+ final String[] aDescription, final ITexture[][][] aTextures) {
super(aName, aTier, aInvSlotCount, aDescription, aTextures);
}
@@ -42,12 +42,10 @@ public abstract class GregtechMetaTreeFarmerBase extends GT_MetaTileEntity_Tiere
@Override
public ITexture[] getTexture(final IGregTechTileEntity aBaseMetaTileEntity, final ForgeDirection side,
- final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
- return this.mTextures[(aActive ? 5 : 0)
- + (side == facing ? 0
- : side == facing.getOpposite() ? 1
- : side == ForgeDirection.DOWN ? 2 : side == ForgeDirection.UP ? 3 : 4)][aColorIndex
- + 1];
+ final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
+ return this.mTextures[(aActive ? 5 : 0) + (side == facing ? 0
+ : side == facing.getOpposite() ? 1
+ : side == ForgeDirection.DOWN ? 2 : side == ForgeDirection.UP ? 3 : 4)][aColorIndex + 1];
}
@Override
@@ -82,7 +80,8 @@ public abstract class GregtechMetaTreeFarmerBase extends GT_MetaTileEntity_Tiere
@Override
public boolean isOutputFacing(final ForgeDirection side) {
- return this.getBaseMetaTileEntity().getBackFacing() == side;
+ return this.getBaseMetaTileEntity()
+ .getBackFacing() == side;
}
@Override
@@ -129,13 +128,13 @@ public abstract class GregtechMetaTreeFarmerBase extends GT_MetaTileEntity_Tiere
@Override
public boolean allowPullStack(final IGregTechTileEntity aBaseMetaTileEntity, final int aIndex,
- final ForgeDirection side, final ItemStack aStack) {
+ final ForgeDirection side, final ItemStack aStack) {
return false;
}
@Override
public boolean allowPutStack(final IGregTechTileEntity aBaseMetaTileEntity, final int aIndex,
- final ForgeDirection side, final ItemStack aStack) {
+ final ForgeDirection side, final ItemStack aStack) {
return false;
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/nbthandlers/GT_MetaTileEntity_Hatch_NbtConsumable.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/nbthandlers/GT_MetaTileEntity_Hatch_NbtConsumable.java
index 2ca8b0ba74..e81c9ed554 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/nbthandlers/GT_MetaTileEntity_Hatch_NbtConsumable.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/nbthandlers/GT_MetaTileEntity_Hatch_NbtConsumable.java
@@ -22,14 +22,14 @@ import gtPlusPlus.api.objects.data.AutoMap;
import gtPlusPlus.core.util.minecraft.ItemUtils;
public abstract class GT_MetaTileEntity_Hatch_NbtConsumable extends GT_MetaTileEntity_Hatch
- implements IAddGregtechLogo {
+ implements IAddGregtechLogo {
private final int mInputslotCount;
private final int mTotalSlotCount;
private final boolean mAllowDuplicateUsageTypes;
public GT_MetaTileEntity_Hatch_NbtConsumable(int aID, String aName, String aNameRegional, int aTier,
- int aInputSlots, String aDescription, boolean aAllowDuplicateTypes) {
+ int aInputSlots, String aDescription, boolean aAllowDuplicateTypes) {
super(aID, aName, aNameRegional, aTier, aInputSlots * 2, aDescription);
mInputslotCount = getInputSlotCount();
mTotalSlotCount = getInputSlotCount() * 2;
@@ -37,7 +37,7 @@ public abstract class GT_MetaTileEntity_Hatch_NbtConsumable extends GT_MetaTileE
}
public GT_MetaTileEntity_Hatch_NbtConsumable(String aName, int aTier, int aInputSlots, String[] aDescription,
- boolean aAllowDuplicateTypes, ITexture[][][] aTextures) {
+ boolean aAllowDuplicateTypes, ITexture[][][] aTextures) {
super(aName, aTier, aInputSlots * 2, aDescription, aTextures);
mInputslotCount = getInputSlotCount();
mTotalSlotCount = getInputSlotCount() * 2;
@@ -118,16 +118,16 @@ public abstract class GT_MetaTileEntity_Hatch_NbtConsumable extends GT_MetaTileE
for (int i = 0; i <= getSlotID_LastInput(); i++) {
for (int j = i + 1; j <= getSlotID_LastInput(); j++) {
if (mInventory[j] != null
- && (mInventory[i] == null || GT_Utility.areStacksEqual(mInventory[i], mInventory[j]))) {
+ && (mInventory[i] == null || GT_Utility.areStacksEqual(mInventory[i], mInventory[j]))) {
GT_Utility.moveStackFromSlotAToSlotB(
- getBaseMetaTileEntity(),
- getBaseMetaTileEntity(),
- j,
- i,
- (byte) 64,
- (byte) 1,
- (byte) 64,
- (byte) 1);
+ getBaseMetaTileEntity(),
+ getBaseMetaTileEntity(),
+ j,
+ i,
+ (byte) 64,
+ (byte) 1,
+ (byte) 64,
+ (byte) 1);
}
}
}
@@ -232,15 +232,15 @@ public abstract class GT_MetaTileEntity_Hatch_NbtConsumable extends GT_MetaTileE
@Override
public final boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
return false;
}
@Override
public final boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
return side == getBaseMetaTileEntity().getFrontFacing() && isItemValidForUsageSlot(aStack)
- && aIndex < mInputslotCount;
+ && aIndex < mInputslotCount;
}
/**
@@ -278,11 +278,13 @@ public abstract class GT_MetaTileEntity_Hatch_NbtConsumable extends GT_MetaTileE
public void addGregTechLogo(ModularWindow.Builder builder) {
switch (mTotalSlotCount) {
case 8, 18 -> builder.widget(
- new DrawableWidget().setDrawable(getGUITextureSet().getGregTechLogo()).setSize(17, 17)
- .setPos(152, 63));
+ new DrawableWidget().setDrawable(getGUITextureSet().getGregTechLogo())
+ .setSize(17, 17)
+ .setPos(152, 63));
case 32 -> builder.widget(
- new DrawableWidget().setDrawable(getGUITextureSet().getGregTechLogo()).setSize(17, 17)
- .setPos(79, 35));
+ new DrawableWidget().setDrawable(getGUITextureSet().getGregTechLogo())
+ .setSize(17, 17)
+ .setPos(79, 35));
}
}
@@ -291,31 +293,60 @@ public abstract class GT_MetaTileEntity_Hatch_NbtConsumable extends GT_MetaTileE
switch (mTotalSlotCount) {
case 8 -> {
builder.widget(
- SlotGroup.ofItemHandler(inventoryHandler, 2).startFromSlot(0).endAtSlot(3).build()
- .setPos(25, 25));
+ SlotGroup.ofItemHandler(inventoryHandler, 2)
+ .startFromSlot(0)
+ .endAtSlot(3)
+ .build()
+ .setPos(25, 25));
builder.widget(
- SlotGroup.ofItemHandler(inventoryHandler, 2).startFromSlot(4).endAtSlot(7).canInsert(false)
- .build().setPos(115, 25));
- builder.widget(new TextWidget("Stock").setDefaultColor(COLOR_TEXT_GRAY.get()).setPos(25, 16))
- .widget(new TextWidget("Active").setDefaultColor(COLOR_TEXT_GRAY.get()).setPos(115, 16));
+ SlotGroup.ofItemHandler(inventoryHandler, 2)
+ .startFromSlot(4)
+ .endAtSlot(7)
+ .canInsert(false)
+ .build()
+ .setPos(115, 25));
+ builder.widget(
+ new TextWidget("Stock").setDefaultColor(COLOR_TEXT_GRAY.get())
+ .setPos(25, 16))
+ .widget(
+ new TextWidget("Active").setDefaultColor(COLOR_TEXT_GRAY.get())
+ .setPos(115, 16));
}
case 18 -> {
builder.widget(
- SlotGroup.ofItemHandler(inventoryHandler, 3).startFromSlot(0).endAtSlot(8).build()
- .setPos(25, 19));
+ SlotGroup.ofItemHandler(inventoryHandler, 3)
+ .startFromSlot(0)
+ .endAtSlot(8)
+ .build()
+ .setPos(25, 19));
+ builder.widget(
+ SlotGroup.ofItemHandler(inventoryHandler, 3)
+ .startFromSlot(9)
+ .endAtSlot(17)
+ .canInsert(false)
+ .build()
+ .setPos(97, 19));
builder.widget(
- SlotGroup.ofItemHandler(inventoryHandler, 3).startFromSlot(9).endAtSlot(17).canInsert(false)
- .build().setPos(97, 19));
- builder.widget(new TextWidget("Stock").setDefaultColor(COLOR_TEXT_GRAY.get()).setPos(25, 14))
- .widget(new TextWidget("Active").setDefaultColor(COLOR_TEXT_GRAY.get()).setPos(15, 14));
+ new TextWidget("Stock").setDefaultColor(COLOR_TEXT_GRAY.get())
+ .setPos(25, 14))
+ .widget(
+ new TextWidget("Active").setDefaultColor(COLOR_TEXT_GRAY.get())
+ .setPos(15, 14));
}
case 32 -> {
builder.widget(
- SlotGroup.ofItemHandler(inventoryHandler, 4).startFromSlot(0).endAtSlot(15).build()
- .setPos(7, 7));
+ SlotGroup.ofItemHandler(inventoryHandler, 4)
+ .startFromSlot(0)
+ .endAtSlot(15)
+ .build()
+ .setPos(7, 7));
builder.widget(
- SlotGroup.ofItemHandler(inventoryHandler, 4).startFromSlot(16).endAtSlot(31).canInsert(false)
- .build().setPos(96, 7));
+ SlotGroup.ofItemHandler(inventoryHandler, 4)
+ .startFromSlot(16)
+ .endAtSlot(31)
+ .canInsert(false)
+ .build()
+ .setPos(96, 7));
}
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/objects/GregtechItemData.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/objects/GregtechItemData.java
index 77ad6cd4ac..967d3ae916 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/objects/GregtechItemData.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/objects/GregtechItemData.java
@@ -22,13 +22,13 @@ public class GregtechItemData {
public ItemStack mUnificationTarget = null;
public GregtechItemData(final GregtechOrePrefixes aPrefix, final GT_Materials aMaterial,
- final boolean aBlackListed) {
+ final boolean aBlackListed) {
this.mPrefix = aPrefix;
this.mMaterial = aMaterial == null ? null : new GregtechMaterialStack(aMaterial, aPrefix.mMaterialAmount);
this.mBlackListed = aBlackListed;
this.mByProducts = (aPrefix.mSecondaryMaterial == null) || (aPrefix.mSecondaryMaterial.mMaterial == null)
- ? EMPTY_GT_MaterialStack_ARRAY
- : new GregtechMaterialStack[] { aPrefix.mSecondaryMaterial.clone() };
+ ? EMPTY_GT_MaterialStack_ARRAY
+ : new GregtechMaterialStack[] { aPrefix.mSecondaryMaterial.clone() };
}
public GregtechItemData(final GregtechOrePrefixes aPrefix, final GT_Materials aMaterial) {
@@ -43,7 +43,7 @@ public class GregtechItemData {
this.mByProducts = EMPTY_GT_MaterialStack_ARRAY;
} else {
final GregtechMaterialStack[] tByProducts = aByProducts.length < 1 ? EMPTY_GT_MaterialStack_ARRAY
- : new GregtechMaterialStack[aByProducts.length];
+ : new GregtechMaterialStack[aByProducts.length];
int j = 0;
for (GregtechMaterialStack aByProduct : aByProducts) {
if ((aByProduct != null) && (aByProduct.mMaterial != null)) {
@@ -58,12 +58,12 @@ public class GregtechItemData {
}
public GregtechItemData(final GT_Materials aMaterial, final long aAmount,
- final GregtechMaterialStack... aByProducts) {
+ final GregtechMaterialStack... aByProducts) {
this(new GregtechMaterialStack(aMaterial, aAmount), aByProducts);
}
public GregtechItemData(final GT_Materials aMaterial, final long aAmount, final GT_Materials aByProduct,
- final long aByProductAmount) {
+ final long aByProductAmount) {
this(new GregtechMaterialStack(aMaterial, aAmount), new GregtechMaterialStack(aByProduct, aByProductAmount));
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/objects/GregtechMaterialStack.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/objects/GregtechMaterialStack.java
index 5ffdc4d20e..d1ee02f480 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/objects/GregtechMaterialStack.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/objects/GregtechMaterialStack.java
@@ -34,8 +34,8 @@ public class GregtechMaterialStack implements Cloneable {
}
if (aObject instanceof GregtechMaterialStack) {
return (((GregtechMaterialStack) aObject).mMaterial == this.mMaterial)
- && ((this.mAmount < 0) || (((GregtechMaterialStack) aObject).mAmount < 0)
- || (((GregtechMaterialStack) aObject).mAmount == this.mAmount));
+ && ((this.mAmount < 0) || (((GregtechMaterialStack) aObject).mAmount < 0)
+ || (((GregtechMaterialStack) aObject).mAmount == this.mAmount));
}
return false;
}
@@ -43,9 +43,9 @@ public class GregtechMaterialStack implements Cloneable {
@Override
public String toString() {
return ((this.mMaterial.mMaterialList.size() > 1) && (this.mAmount > 1) ? "(" : "")
- + this.mMaterial.getToolTip(true)
- + ((this.mMaterial.mMaterialList.size() > 1) && (this.mAmount > 1) ? ")" : "")
- + (this.mAmount > 1 ? this.mAmount : "");
+ + this.mMaterial.getToolTip(true)
+ + ((this.mMaterial.mMaterialList.size() > 1) && (this.mAmount > 1) ? ")" : "")
+ + (this.mAmount > 1 ? this.mAmount : "");
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/util/GTPP_Config.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/util/GTPP_Config.java
index cffeb41776..65beea207a 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/util/GTPP_Config.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/util/GTPP_Config.java
@@ -25,8 +25,11 @@ public class GTPP_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);
+ Property tProperty = sConfigFileIDs.get(
+ aCategory.toString()
+ .replaceAll("\\|", "."),
+ aName.replaceAll("\\|", "."),
+ aDefault);
int rResult = tProperty.getInt(aDefault);
if (!tProperty.wasRead() && GregTech_API.sPostloadFinished) sConfigFileIDs.save();
return rResult;
@@ -41,7 +44,8 @@ public class GTPP_Config implements Runnable {
} catch (Throwable e) {
/* Do nothing */
}
- String sName = aStack.getItem().toString();
+ String sName = aStack.getItem()
+ .toString();
String[] tmp = sName.split("@");
if (tmp.length > 0) sName = tmp[0];
return sName + "." + aStack.getItemDamage();
@@ -55,9 +59,10 @@ public class GTPP_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() && GregTech_API.sPostloadFinished) mConfig.save();
return rResult;
@@ -70,9 +75,10 @@ public class GTPP_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() && GregTech_API.sPostloadFinished) mConfig.save();
return rResult;
@@ -85,9 +91,10 @@ public class GTPP_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() && GregTech_API.sPostloadFinished) mConfig.save();
return rResult;
@@ -100,9 +107,10 @@ public class GTPP_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() && GregTech_API.sPostloadFinished) mConfig.save();
return rResult;
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/Meta_GT_Proxy.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/Meta_GT_Proxy.java
index 71f809ae99..c53e217560 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/Meta_GT_Proxy.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/Meta_GT_Proxy.java
@@ -48,21 +48,26 @@ public class Meta_GT_Proxy {
try {
String aNewHeatedWaterName = "Heated Water";
Logger.INFO("Renaming [IC2 Hotspring Water] --> [" + aNewHeatedWaterName + "].");
- LanguageRegistry.instance().addStringLocalization("fluidHotWater", "Heated Water");
- LanguageRegistry.instance().addStringLocalization("fluidHotWater", aNewHeatedWaterName);
- LanguageRegistry.instance().addStringLocalization("ic2.fluidHotWater", aNewHeatedWaterName);
+ LanguageRegistry.instance()
+ .addStringLocalization("fluidHotWater", "Heated Water");
+ LanguageRegistry.instance()
+ .addStringLocalization("fluidHotWater", aNewHeatedWaterName);
+ LanguageRegistry.instance()
+ .addStringLocalization("ic2.fluidHotWater", aNewHeatedWaterName);
GT_LanguageManager.addStringLocalization("fluidHotWater", aNewHeatedWaterName);
GT_LanguageManager.addStringLocalization("ic2.fluidHotWater", aNewHeatedWaterName);
Block b = BlocksItems.getFluidBlock(InternalName.fluidHotWater);
if (b != null) {
LanguageRegistry.addName(ItemUtils.getSimpleStack(b), aNewHeatedWaterName);
- LanguageRegistry.instance().addStringLocalization(b.getUnlocalizedName(), aNewHeatedWaterName);
+ LanguageRegistry.instance()
+ .addStringLocalization(b.getUnlocalizedName(), aNewHeatedWaterName);
GT_LanguageManager.addStringLocalization(b.getUnlocalizedName(), aNewHeatedWaterName);
}
Fluid f = BlocksItems.getFluid(InternalName.fluidHotWater);
if (f != null) {
- LanguageRegistry.instance().addStringLocalization(f.getUnlocalizedName(), aNewHeatedWaterName);
+ LanguageRegistry.instance()
+ .addStringLocalization(f.getUnlocalizedName(), aNewHeatedWaterName);
GT_LanguageManager.addStringLocalization(f.getUnlocalizedName(), aNewHeatedWaterName);
int aDam = FluidRegistry.getFluidID(f);
ItemStack s = ItemList.Display_Fluid.getWithDamage(1, aDam);
@@ -72,15 +77,15 @@ public class Meta_GT_Proxy {
}
String[] aLangs = new String[] { "de_DE", "en_US", "en_GB", "en_IC", "es_AR", "es_ES", "es_MX", "es_UY",
- "es_VE", "fr_CA", "fr_FR", "it_IT", "ko_KR", "pt_BR", "pt_PT", "ru_RU", "sv_SE", "tr_TR", "zh_CN",
- "zh_TW", };
+ "es_VE", "fr_CA", "fr_FR", "it_IT", "ko_KR", "pt_BR", "pt_PT", "ru_RU", "sv_SE", "tr_TR", "zh_CN",
+ "zh_TW", };
String[] aLangValues = new String[] { "Erhitztes Wasser", "Heated Water", "Heated Water", "Heated Water",
- "Agua caliente", "Agua caliente", "Agua caliente", "Agua caliente", "Agua caliente", "Eau chauffée",
- "Eau chauffée", "Acqua riscaldata", "온수", "Água aquecida", "Água aquecida", "Вода с подогревом",
- "Uppvärmt vatten", "Isıtılmış Su", "热水", "热水", };
+ "Agua caliente", "Agua caliente", "Agua caliente", "Agua caliente", "Agua caliente", "Eau chauffée",
+ "Eau chauffée", "Acqua riscaldata", "온수", "Água aquecida", "Água aquecida", "Вода с подогревом",
+ "Uppvärmt vatten", "Isıtılmış Su", "热水", "热水", };
for (int i = 0; i < aLangs.length; i++) {
- Logger.REFLECTION(
- "Trying to inject new lang data for " + aLangs[i] + ", using value: " + aLangValues[i]);
+ Logger
+ .REFLECTION("Trying to inject new lang data for " + aLangs[i] + ", using value: " + aLangValues[i]);
LangUtils.rewriteEntryForLanguageRegistry(aLangs[i], "fluidHotWater", aLangValues[i]);
LangUtils.rewriteEntryForLanguageRegistry(aLangs[i], "ic2.fluidHotWater", aLangValues[i]);
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks.java
index 64185ca239..ee0d040394 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks.java
@@ -29,10 +29,10 @@ public class GregtechMetaCasingBlocks extends GregtechMetaCasingBlocksAbstract {
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".0.name", "Centrifuge Casing");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".1.name", "Structural Coke Oven Casing");
GT_LanguageManager
- .addStringLocalization(this.getUnlocalizedName() + ".2.name", "Heat Resistant Coke Oven Casing");
+ .addStringLocalization(this.getUnlocalizedName() + ".2.name", "Heat Resistant Coke Oven Casing");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".3.name", "Heat Proof Coke Oven Casing"); // 60
GT_LanguageManager
- .addStringLocalization(this.getUnlocalizedName() + ".4.name", "Material Press Machine Casing");
+ .addStringLocalization(this.getUnlocalizedName() + ".4.name", "Material Press Machine Casing");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".5.name", "Electrolyzer Casing");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".6.name", "Wire Factory Casing");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".7.name", "Maceration Stack Casing");
@@ -43,7 +43,7 @@ public class GregtechMetaCasingBlocks extends GregtechMetaCasingBlocksAbstract {
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".12.name", "Hastelloy-N Reactor Casing");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".13.name", "Zeron-100 Reactor Shielding");
GT_LanguageManager
- .addStringLocalization(this.getUnlocalizedName() + ".14.name", "Blast Smelter Heat Containment Coil ");
+ .addStringLocalization(this.getUnlocalizedName() + ".14.name", "Blast Smelter Heat Containment Coil ");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".15.name", "Blast Smelter Casing Block");
GregtechItemList.Casing_Centrifuge1.set(new ItemStack(this, 1, 0));
GregtechItemList.Casing_CokeOven.set(new ItemStack(this, 1, 1));
@@ -71,9 +71,9 @@ public class GregtechMetaCasingBlocks extends GregtechMetaCasingBlocksAbstract {
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(final IBlockAccess aWorld, final int xCoord, final int yCoord, final int zCoord,
- final int ordinalSide) {
+ final int ordinalSide) {
final GregtechMetaCasingBlocks i = this;
return CasingTextureHandler
- .handleCasingsGT(aWorld, xCoord, yCoord, zCoord, ForgeDirection.getOrientation(ordinalSide), i);
+ .handleCasingsGT(aWorld, xCoord, yCoord, zCoord, ForgeDirection.getOrientation(ordinalSide), i);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks2.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks2.java
index 9a82ecf93b..9d53c281a2 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks2.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks2.java
@@ -71,12 +71,12 @@ public class GregtechMetaCasingBlocks2 extends GregtechMetaCasingBlocksAbstract
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".1.name", "Hastelloy-N Sealant Block");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".2.name", "Hastelloy-X Structural Block");
GT_LanguageManager
- .addStringLocalization(this.getUnlocalizedName() + ".3.name", "Incoloy-DS Fluid Containment Block");
+ .addStringLocalization(this.getUnlocalizedName() + ".3.name", "Incoloy-DS Fluid Containment Block");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".4.name", "Wash Plant Casing");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".5.name", "Industrial Sieve Casing");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".6.name", "Large Sieve Grate");
GT_LanguageManager
- .addStringLocalization(this.getUnlocalizedName() + ".7.name", "Vanadium Redox Power Cell (EV)");
+ .addStringLocalization(this.getUnlocalizedName() + ".7.name", "Vanadium Redox Power Cell (EV)");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".8.name", "Sub-Station External Casing");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".9.name", "Cyclotron Coil");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".10.name", "Cyclotron Outer Casing");
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks3.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks3.java
index 5a16d0a20d..76fb077de1 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks3.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks3.java
@@ -57,20 +57,20 @@ public class GregtechMetaCasingBlocks3 extends GregtechMetaCasingBlocksAbstract
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".2.name", "Multi-Use Casing");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".3.name", "Trinium Plated Casing");
GT_LanguageManager
- .addStringLocalization(this.getUnlocalizedName() + ".4.name", "Vanadium Redox Power Cell (IV)");
+ .addStringLocalization(this.getUnlocalizedName() + ".4.name", "Vanadium Redox Power Cell (IV)");
GT_LanguageManager
- .addStringLocalization(this.getUnlocalizedName() + ".5.name", "Vanadium Redox Power Cell (LuV)");
+ .addStringLocalization(this.getUnlocalizedName() + ".5.name", "Vanadium Redox Power Cell (LuV)");
GT_LanguageManager
- .addStringLocalization(this.getUnlocalizedName() + ".6.name", "Vanadium Redox Power Cell (ZPM)");
+ .addStringLocalization(this.getUnlocalizedName() + ".6.name", "Vanadium Redox Power Cell (ZPM)");
GT_LanguageManager
- .addStringLocalization(this.getUnlocalizedName() + ".7.name", "Vanadium Redox Power Cell (UV)");
+ .addStringLocalization(this.getUnlocalizedName() + ".7.name", "Vanadium Redox Power Cell (UV)");
GT_LanguageManager
- .addStringLocalization(this.getUnlocalizedName() + ".8.name", "Vanadium Redox Power Cell (UHV)");
+ .addStringLocalization(this.getUnlocalizedName() + ".8.name", "Vanadium Redox Power Cell (UHV)");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".9.name", "Supply Depot Casing");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".10.name", "Advanced Cryogenic Casing");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".11.name", "Volcanus Casing");
GT_LanguageManager
- .addStringLocalization(this.getUnlocalizedName() + ".12.name", "Fusion Machine Casing MK III");
+ .addStringLocalization(this.getUnlocalizedName() + ".12.name", "Fusion Machine Casing MK III");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".13.name", "Advanced Fusion Coil");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".14.name", "Unnamed"); // Can Use, don't
// change texture
@@ -102,7 +102,7 @@ public class GregtechMetaCasingBlocks3 extends GregtechMetaCasingBlocksAbstract
@SideOnly(Side.CLIENT)
@Override
public IIcon getIcon(final IBlockAccess aWorld, final int xCoord, final int yCoord, final int zCoord,
- final int ordinalSide) {
+ final int ordinalSide) {
final Block thisBlock = aWorld.getBlock(xCoord, yCoord, zCoord);
final int tMeta = aWorld.getBlockMetadata(xCoord, yCoord, zCoord);
if ((tMeta != 12) || !GregtechMetaCasingBlocks3.mConnectedMachineTextures) {
@@ -111,18 +111,18 @@ public class GregtechMetaCasingBlocks3 extends GregtechMetaCasingBlocksAbstract
final int tStartIndex = 0;
if (tMeta == 12) {
final boolean[] tConnectedSides = {
- aWorld.getBlock(xCoord, yCoord - 1, zCoord) == thisBlock
- && aWorld.getBlockMetadata(xCoord, yCoord - 1, zCoord) == tMeta,
- aWorld.getBlock(xCoord, yCoord + 1, zCoord) == thisBlock
- && aWorld.getBlockMetadata(xCoord, yCoord + 1, zCoord) == tMeta,
- aWorld.getBlock(xCoord + 1, yCoord, zCoord) == thisBlock
- && aWorld.getBlockMetadata(xCoord + 1, yCoord, zCoord) == tMeta,
- aWorld.getBlock(xCoord, yCoord, zCoord + 1) == thisBlock
- && aWorld.getBlockMetadata(xCoord, yCoord, zCoord + 1) == tMeta,
- aWorld.getBlock(xCoord - 1, yCoord, zCoord) == thisBlock
- && aWorld.getBlockMetadata(xCoord - 1, yCoord, zCoord) == tMeta,
- aWorld.getBlock(xCoord, yCoord, zCoord - 1) == thisBlock
- && aWorld.getBlockMetadata(xCoord, yCoord, zCoord - 1) == tMeta };
+ aWorld.getBlock(xCoord, yCoord - 1, zCoord) == thisBlock
+ && aWorld.getBlockMetadata(xCoord, yCoord - 1, zCoord) == tMeta,
+ aWorld.getBlock(xCoord, yCoord + 1, zCoord) == thisBlock
+ && aWorld.getBlockMetadata(xCoord, yCoord + 1, zCoord) == tMeta,
+ aWorld.getBlock(xCoord + 1, yCoord, zCoord) == thisBlock
+ && aWorld.getBlockMetadata(xCoord + 1, yCoord, zCoord) == tMeta,
+ aWorld.getBlock(xCoord, yCoord, zCoord + 1) == thisBlock
+ && aWorld.getBlockMetadata(xCoord, yCoord, zCoord + 1) == tMeta,
+ aWorld.getBlock(xCoord - 1, yCoord, zCoord) == thisBlock
+ && aWorld.getBlockMetadata(xCoord - 1, yCoord, zCoord) == tMeta,
+ aWorld.getBlock(xCoord, yCoord, zCoord - 1) == thisBlock
+ && aWorld.getBlockMetadata(xCoord, yCoord, zCoord - 1) == tMeta };
switch (ordinalSide) {
case 0: {
if (tConnectedSides[0]) {
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks4.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks4.java
index cf9d272398..a150d7e828 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks4.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks4.java
@@ -30,7 +30,7 @@ public class GregtechMetaCasingBlocks4 extends GregtechMetaCasingBlocksAbstract
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".2.name", "Naquadah Containment Chamber");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".3.name", "Tempered Arc Furnace Casing");
GT_LanguageManager
- .addStringLocalization(this.getUnlocalizedName() + ".4.name", "Quantum Force Transformer Coil Casings");
+ .addStringLocalization(this.getUnlocalizedName() + ".4.name", "Quantum Force Transformer Coil Casings");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".10.name", "Vacuum Casing");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".11.name", "Turbodyne Casing");
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks5.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks5.java
index 26c747e50e..cc573cd188 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks5.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks5.java
@@ -49,9 +49,9 @@ public class GregtechMetaCasingBlocks5 extends GregtechMetaCasingBlocksAbstract
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".10.name", "SpaceTime Continuum Ripper");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".11.name", "Neutron Shielding Core");
GT_LanguageManager
- .addStringLocalization(this.getUnlocalizedName() + ".12.name", "Cosmic Fabric Shielding Core");
+ .addStringLocalization(this.getUnlocalizedName() + ".12.name", "Cosmic Fabric Shielding Core");
GT_LanguageManager
- .addStringLocalization(this.getUnlocalizedName() + ".13.name", "Infinity Infused Shielding Core");
+ .addStringLocalization(this.getUnlocalizedName() + ".13.name", "Infinity Infused Shielding Core");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".14.name", "SpaceTime Bending Core");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".15.name", "Force Field Glass");
@@ -152,7 +152,7 @@ public class GregtechMetaCasingBlocks5 extends GregtechMetaCasingBlocksAbstract
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(final IBlockAccess aWorld, final int xCoord, final int yCoord, final int zCoord,
- final int ordinalSide) {
+ final int ordinalSide) {
final GregtechMetaCasingBlocks5 i = this;
return mGrinderOverlayHandler.handleCasingsGT(aWorld, xCoord, yCoord, zCoord, ordinalSide, i);
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks6.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks6.java
index a1b97bf341..d257078461 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks6.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks6.java
@@ -64,7 +64,7 @@ public class GregtechMetaCasingBlocks6 extends GregtechMetaCasingBlocksAbstract
@SideOnly(Side.CLIENT)
@Override
public IIcon getIcon(final IBlockAccess aWorld, final int xCoord, final int yCoord, final int zCoord,
- final int ordinalSide) {
+ final int ordinalSide) {
final Block thisBlock = aWorld.getBlock(xCoord, yCoord, zCoord);
final int tMeta = aWorld.getBlockMetadata(xCoord, yCoord, zCoord);
if ((tMeta != 0) || !GregtechMetaCasingBlocks6.mConnectedMachineTextures) {
@@ -73,18 +73,18 @@ public class GregtechMetaCasingBlocks6 extends GregtechMetaCasingBlocksAbstract
final int tStartIndex = 0;
if (tMeta == 0) {
final boolean[] tConnectedSides = {
- aWorld.getBlock(xCoord, yCoord - 1, zCoord) == thisBlock
- && aWorld.getBlockMetadata(xCoord, yCoord - 1, zCoord) == tMeta,
- aWorld.getBlock(xCoord, yCoord + 1, zCoord) == thisBlock
- && aWorld.getBlockMetadata(xCoord, yCoord + 1, zCoord) == tMeta,
- aWorld.getBlock(xCoord + 1, yCoord, zCoord) == thisBlock
- && aWorld.getBlockMetadata(xCoord + 1, yCoord, zCoord) == tMeta,
- aWorld.getBlock(xCoord, yCoord, zCoord + 1) == thisBlock
- && aWorld.getBlockMetadata(xCoord, yCoord, zCoord + 1) == tMeta,
- aWorld.getBlock(xCoord - 1, yCoord, zCoord) == thisBlock
- && aWorld.getBlockMetadata(xCoord - 1, yCoord, zCoord) == tMeta,
- aWorld.getBlock(xCoord, yCoord, zCoord - 1) == thisBlock
- && aWorld.getBlockMetadata(xCoord, yCoord, zCoord - 1) == tMeta };
+ aWorld.getBlock(xCoord, yCoord - 1, zCoord) == thisBlock
+ && aWorld.getBlockMetadata(xCoord, yCoord - 1, zCoord) == tMeta,
+ aWorld.getBlock(xCoord, yCoord + 1, zCoord) == thisBlock
+ && aWorld.getBlockMetadata(xCoord, yCoord + 1, zCoord) == tMeta,
+ aWorld.getBlock(xCoord + 1, yCoord, zCoord) == thisBlock
+ && aWorld.getBlockMetadata(xCoord + 1, yCoord, zCoord) == tMeta,
+ aWorld.getBlock(xCoord, yCoord, zCoord + 1) == thisBlock
+ && aWorld.getBlockMetadata(xCoord, yCoord, zCoord + 1) == tMeta,
+ aWorld.getBlock(xCoord - 1, yCoord, zCoord) == thisBlock
+ && aWorld.getBlockMetadata(xCoord - 1, yCoord, zCoord) == tMeta,
+ aWorld.getBlock(xCoord, yCoord, zCoord - 1) == thisBlock
+ && aWorld.getBlockMetadata(xCoord, yCoord, zCoord - 1) == tMeta };
switch (ordinalSide) {
case 0: {
if (tConnectedSides[0]) {
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocksAbstract.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocksAbstract.java
index 2d4973aa9f..a87f6c92b3 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocksAbstract.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocksAbstract.java
@@ -27,13 +27,13 @@ import gtPlusPlus.core.creative.AddToCreativeTab;
public abstract class GregtechMetaCasingBlocksAbstract extends GT_Block_Casings_Abstract {
public GregtechMetaCasingBlocksAbstract(final Class<? extends ItemBlock> aItemClass, final String aName,
- final Material aMaterial) {
+ final Material aMaterial) {
super(aItemClass, aName, aMaterial);
this.setStepSound(soundTypeMetal);
this.setCreativeTab(AddToCreativeTab.tabMachines);
GregTech_API.registerMachineBlock(this, -1);
GT_LanguageManager
- .addStringLocalization(this.getUnlocalizedName() + "." + 32767 + ".name", "Any Sub Block of this");
+ .addStringLocalization(this.getUnlocalizedName() + "." + 32767 + ".name", "Any Sub Block of this");
}
@Override
@@ -105,7 +105,7 @@ public abstract class GregtechMetaCasingBlocksAbstract extends GT_Block_Casings_
@Override
public void breakBlock(final World aWorld, final int aX, final int aY, final int aZ, final Block aBlock,
- final int aMetaData) {
+ final int aMetaData) {
if (GregTech_API.isMachineBlock(this, aWorld.getBlockMetadata(aX, aY, aZ))) {
GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ);
}
@@ -113,7 +113,7 @@ public abstract class GregtechMetaCasingBlocksAbstract extends GT_Block_Casings_
@Override
public boolean canCreatureSpawn(final EnumCreatureType type, final IBlockAccess world, final int x, final int y,
- final int z) {
+ final int z) {
return false;
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocksPipeGearbox.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocksPipeGearbox.java
index 17b5507416..ad2b11f924 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocksPipeGearbox.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocksPipeGearbox.java
@@ -22,7 +22,7 @@ public class GregtechMetaCasingBlocksPipeGearbox extends GregtechMetaCasingBlock
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".0.name", "Eglin Steel Gear Box Casing");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".1.name", "Inconel-792 Gear Box Casing");
GT_LanguageManager
- .addStringLocalization(this.getUnlocalizedName() + ".2.name", "Incoloy MA956 Gear Box Casing");
+ .addStringLocalization(this.getUnlocalizedName() + ".2.name", "Incoloy MA956 Gear Box Casing");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".3.name", "Nitinol-60 Gear Box Casing");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".4.name", "Zeron-100 Gear Box Casing");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".5.name", "Pikyonium Gear Box Casing");
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaItemCasingsAbstract.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaItemCasingsAbstract.java
index d6ebda4199..23d9ab5007 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaItemCasingsAbstract.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaItemCasingsAbstract.java
@@ -12,17 +12,17 @@ import gregtech.api.util.GT_LanguageManager;
public abstract class GregtechMetaItemCasingsAbstract extends ItemBlock {
protected final String mCasing_Centrifuge = GT_LanguageManager
- .addStringLocalization("mu.centrifugecasing", "Warning! Standing in the Centrifuge not recommended");
+ .addStringLocalization("mu.centrifugecasing", "Warning! Standing in the Centrifuge not recommended");
protected final String mCasing_CokeOven = GT_LanguageManager
- .addStringLocalization("mu.cokeoven", "Sturdy and Strong");
+ .addStringLocalization("mu.cokeoven", "Sturdy and Strong");
protected final String mCasing_CokeCoil1 = GT_LanguageManager
- .addStringLocalization("mu.coil01tooltip", "Base Heating Capacity = 1350 Kelvin");
+ .addStringLocalization("mu.coil01tooltip", "Base Heating Capacity = 1350 Kelvin");
protected final String mCasing_CokeCoil2 = GT_LanguageManager
- .addStringLocalization("mu.coil02tooltip", "Base Heating Capacity = 2275 Kelvin");
+ .addStringLocalization("mu.coil02tooltip", "Base Heating Capacity = 2275 Kelvin");
protected final String mNoMobsToolTip = GT_LanguageManager
- .addStringLocalization("gt.nomobspawnsonthisblock", "Mobs cannot Spawn on this Block");
+ .addStringLocalization("gt.nomobspawnsonthisblock", "Mobs cannot Spawn on this Block");
protected final String mNoTileEntityToolTip = GT_LanguageManager
- .addStringLocalization("gt.notileentityinthisblock", "This is NOT a TileEntity!");
+ .addStringLocalization("gt.notileentityinthisblock", "This is NOT a TileEntity!");
public GregtechMetaItemCasingsAbstract(final Block par1) {
super(par1);
@@ -43,7 +43,7 @@ public abstract class GregtechMetaItemCasingsAbstract extends ItemBlock {
@Override
public void addInformation(final ItemStack aStack, final EntityPlayer aPlayer, final List aList,
- final boolean aF3_H) {
+ final boolean aF3_H) {
super.addInformation(aStack, aPlayer, aList, aF3_H);
switch (this.getDamage(aStack)) {
case 0:
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaSpecialMachineCasings.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaSpecialMachineCasings.java
index a8ea05ddbc..473c13f3da 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaSpecialMachineCasings.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaSpecialMachineCasings.java
@@ -50,12 +50,12 @@ public class GregtechMetaSpecialMachineCasings extends GregtechMetaCasingBlocksA
}
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".0.name", "Strong Bronze Machine Casing");
GT_LanguageManager
- .addStringLocalization(this.getUnlocalizedName() + ".1.name", "Sturdy Aluminium Machine Casing");
+ .addStringLocalization(this.getUnlocalizedName() + ".1.name", "Sturdy Aluminium Machine Casing");
GT_LanguageManager
- .addStringLocalization(this.getUnlocalizedName() + ".2.name", "Vigorous Laurenium Machine Casing");
+ .addStringLocalization(this.getUnlocalizedName() + ".2.name", "Vigorous Laurenium Machine Casing");
TAE.registerTexture(84, new GTPP_CopiedBlockTexture(this, 6, 2));
GT_LanguageManager
- .addStringLocalization(this.getUnlocalizedName() + ".3.name", "Rugged Botmium Machine Casing");
+ .addStringLocalization(this.getUnlocalizedName() + ".3.name", "Rugged Botmium Machine Casing");
GregtechItemList.Casing_Machine_Custom_1.set(new ItemStack(this, 1, 0));
GregtechItemList.Casing_Machine_Custom_2.set(new ItemStack(this, 1, 1));
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaSpecialMultiCasings.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaSpecialMultiCasings.java
index 411fef65d3..1d7c853e71 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaSpecialMultiCasings.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaSpecialMultiCasings.java
@@ -42,13 +42,13 @@ public class GregtechMetaSpecialMultiCasings extends GregtechMetaCasingBlocksAbs
super(SpecialCasingItemBlock.class, "gtplusplus.blockspecialcasings.1", GT_Material_Casings.INSTANCE);
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".0.name", "Turbine Shaft");
GT_LanguageManager
- .addStringLocalization(this.getUnlocalizedName() + ".1.name", "Reinforced Steam Turbine Casing");
+ .addStringLocalization(this.getUnlocalizedName() + ".1.name", "Reinforced Steam Turbine Casing");
GT_LanguageManager
- .addStringLocalization(this.getUnlocalizedName() + ".2.name", "Reinforced HP Steam Turbine Casing");
+ .addStringLocalization(this.getUnlocalizedName() + ".2.name", "Reinforced HP Steam Turbine Casing");
GT_LanguageManager
- .addStringLocalization(this.getUnlocalizedName() + ".3.name", "Reinforced Gas Turbine Casing");
+ .addStringLocalization(this.getUnlocalizedName() + ".3.name", "Reinforced Gas Turbine Casing");
GT_LanguageManager
- .addStringLocalization(this.getUnlocalizedName() + ".4.name", "Reinforced Plasma Turbine Casing");
+ .addStringLocalization(this.getUnlocalizedName() + ".4.name", "Reinforced Plasma Turbine Casing");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".5.name", "Tesla Containment Casing");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".6.name", "Structural Solar Casing");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".7.name", "Salt Containment Casing");
@@ -56,14 +56,14 @@ public class GregtechMetaSpecialMultiCasings extends GregtechMetaCasingBlocksAbs
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".9.name", "Flotation Cell Casings");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".10.name", "Reinforced Engine Casing");
GT_LanguageManager
- .addStringLocalization(this.getUnlocalizedName() + ".11.name", "Molecular Containment Casing");
+ .addStringLocalization(this.getUnlocalizedName() + ".11.name", "Molecular Containment Casing");
GT_LanguageManager
- .addStringLocalization(this.getUnlocalizedName() + ".12.name", "High Voltage Current Capacitor");
+ .addStringLocalization(this.getUnlocalizedName() + ".12.name", "High Voltage Current Capacitor");
GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".13.name", "Particle Containment Casing");
GT_LanguageManager
- .addStringLocalization(this.getUnlocalizedName() + ".14.name", "Reinforced Heat Exchanger Casing");
+ .addStringLocalization(this.getUnlocalizedName() + ".14.name", "Reinforced Heat Exchanger Casing");
GT_LanguageManager
- .addStringLocalization(this.getUnlocalizedName() + ".15.name", "Reinforced SC Turbine Casing");
+ .addStringLocalization(this.getUnlocalizedName() + ".15.name", "Reinforced SC Turbine Casing");
TAE.registerTexture(1, 12, new GTPP_CopiedBlockTexture(this, 6, 14));
GregtechItemList.Casing_Turbine_Shaft.set(new ItemStack(this, 1, 0));
@@ -86,9 +86,9 @@ public class GregtechMetaSpecialMultiCasings extends GregtechMetaCasingBlocksAbs
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(final IBlockAccess aWorld, final int xCoord, final int yCoord, final int zCoord,
- final int ordinalSide) {
+ final int ordinalSide) {
return LargeTurbineTextureHandler
- .handleCasingsGT(aWorld, xCoord, yCoord, zCoord, ForgeDirection.getOrientation(ordinalSide), this);
+ .handleCasingsGT(aWorld, xCoord, yCoord, zCoord, ForgeDirection.getOrientation(ordinalSide), this);
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaSpecialMultiCasings2.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaSpecialMultiCasings2.java
index d9ae7fc1c6..9a2912c2c5 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaSpecialMultiCasings2.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaSpecialMultiCasings2.java
@@ -74,7 +74,7 @@ public class GregtechMetaSpecialMultiCasings2 extends GregtechMetaCasingBlocksAb
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(final IBlockAccess aWorld, final int xCoord, final int yCoord, final int zCoord,
- final int ordinalSide) {
+ final int ordinalSide) {
return getStaticIcon((byte) ordinalSide, (byte) aWorld.getBlockMetadata(xCoord, yCoord, zCoord));
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/fluid/GregtechFluidHandler.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/fluid/GregtechFluidHandler.java
index 7ad9faae2b..e478bf5c18 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/fluid/GregtechFluidHandler.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/fluid/GregtechFluidHandler.java
@@ -23,118 +23,118 @@ public class GregtechFluidHandler {
Logger.INFO("Adding in our own GT versions of Thermal Foundation Fluids if they do not already exist.");
if (!FluidRegistry.isFluidRegistered("cryotheum")) {
FluidUtils.addGtFluid(
- "cryotheum",
- "Gelid Cryotheum",
- GT_Materials.Cryotheum,
- 4,
- -1200,
- GT_OreDictUnificator.get(OrePrefixes.cell, GT_Materials.Cryotheum, 1L),
- ItemUtils.getEmptyCell(),
- 1000);
+ "cryotheum",
+ "Gelid Cryotheum",
+ GT_Materials.Cryotheum,
+ 4,
+ -1200,
+ GT_OreDictUnificator.get(OrePrefixes.cell, GT_Materials.Cryotheum, 1L),
+ ItemUtils.getEmptyCell(),
+ 1000);
}
if (!FluidRegistry.isFluidRegistered("pyrotheum")) {
FluidUtils.addGtFluid(
- "pyrotheum",
- "Blazing Pyrotheum",
- GT_Materials.Pyrotheum,
- 4,
- 4000,
- GT_OreDictUnificator.get(OrePrefixes.cell, GT_Materials.Pyrotheum, 1L),
- ItemUtils.getEmptyCell(),
- 1000);
+ "pyrotheum",
+ "Blazing Pyrotheum",
+ GT_Materials.Pyrotheum,
+ 4,
+ 4000,
+ GT_OreDictUnificator.get(OrePrefixes.cell, GT_Materials.Pyrotheum, 1L),
+ ItemUtils.getEmptyCell(),
+ 1000);
}
if (!FluidRegistry.isFluidRegistered("ender")) {
FluidUtils.addGtFluid(
- "ender",
- "Resonant Ender",
- GT_Materials.Ender,
- 4,
- 4000,
- GT_OreDictUnificator.get(OrePrefixes.cell, GT_Materials.Ender, 1L),
- ItemUtils.getEmptyCell(),
- 1000);
+ "ender",
+ "Resonant Ender",
+ GT_Materials.Ender,
+ 4,
+ 4000,
+ GT_OreDictUnificator.get(OrePrefixes.cell, GT_Materials.Ender, 1L),
+ ItemUtils.getEmptyCell(),
+ 1000);
}
Logger.INFO("Adding in GT Fluids for various nuclear related content.");
FluidUtils.addGtFluid(
- "hydrofluoricAcid",
- "Industrial Strength Hydrofluoric Acid",
- GT_Materials.HydrofluoricAcid,
- 1,
- 120,
- GT_OreDictUnificator.get(OrePrefixes.cell, GT_Materials.HydrofluoricAcid, 1L),
- ItemUtils.getEmptyCell(),
- 1000,
- false);
+ "hydrofluoricAcid",
+ "Industrial Strength Hydrofluoric Acid",
+ GT_Materials.HydrofluoricAcid,
+ 1,
+ 120,
+ GT_OreDictUnificator.get(OrePrefixes.cell, GT_Materials.HydrofluoricAcid, 1L),
+ ItemUtils.getEmptyCell(),
+ 1000,
+ false);
generateIC2FluidCell("HydrofluoricAcid");
FluidUtils.generateFluidNoPrefix(
- "SulfurDioxide",
- "High Quality Sulfur Dioxide",
- 263,
- GT_Materials.SulfurDioxide.mRGBa);
+ "SulfurDioxide",
+ "High Quality Sulfur Dioxide",
+ 263,
+ GT_Materials.SulfurDioxide.mRGBa);
FluidUtils.addGtFluid(
- "sulfurousAcid",
- "Sulfurous Acid",
- GT_Materials.SulfurousAcid,
- 4,
- 75,
- GT_OreDictUnificator.get(OrePrefixes.cell, GT_Materials.SulfurousAcid, 1L),
- ItemUtils.getEmptyCell(),
- 1000,
- false);
+ "sulfurousAcid",
+ "Sulfurous Acid",
+ GT_Materials.SulfurousAcid,
+ 4,
+ 75,
+ GT_OreDictUnificator.get(OrePrefixes.cell, GT_Materials.SulfurousAcid, 1L),
+ ItemUtils.getEmptyCell(),
+ 1000,
+ false);
generateIC2FluidCell("SulfurousAcid");
FluidUtils.addGtFluid(
- "sulfuricApatite",
- "Sulfuric Apatite Mix",
- GT_Materials.SulfuricApatite,
- 4,
- 500,
- GT_OreDictUnificator.get(OrePrefixes.cell, GT_Materials.SulfuricApatite, 1L),
- ItemUtils.getEmptyCell(),
- 1000,
- false);
+ "sulfuricApatite",
+ "Sulfuric Apatite Mix",
+ GT_Materials.SulfuricApatite,
+ 4,
+ 500,
+ GT_OreDictUnificator.get(OrePrefixes.cell, GT_Materials.SulfuricApatite, 1L),
+ ItemUtils.getEmptyCell(),
+ 1000,
+ false);
generateIC2FluidCell("SulfuricApatite");
// Check for Hydrogen Chloride
if (FluidUtils.getFluidStack("hydrogenchloride", 1) == null) {
FluidUtils.addGtFluid(
- "hydrogenChloride",
- "Industrial Strength Hydrogen Chloride",
- GT_Materials.HydrogenChloride,
- 4,
- 75,
- GT_OreDictUnificator.get(OrePrefixes.cell, GT_Materials.HydrogenChloride, 1L),
- ItemUtils.getEmptyCell(),
- 1000,
- false);
- generateIC2FluidCell("HydrogenChloride");
- }
-
- FluidUtils.addGtFluid(
- "sulfuricLithium",
- "Sulfuric Lithium Mix",
- GT_Materials.SulfuricLithium,
+ "hydrogenChloride",
+ "Industrial Strength Hydrogen Chloride",
+ GT_Materials.HydrogenChloride,
4,
- 280,
- GT_OreDictUnificator.get(OrePrefixes.cell, GT_Materials.SulfuricLithium, 1L),
+ 75,
+ GT_OreDictUnificator.get(OrePrefixes.cell, GT_Materials.HydrogenChloride, 1L),
ItemUtils.getEmptyCell(),
1000,
false);
+ generateIC2FluidCell("HydrogenChloride");
+ }
+
+ FluidUtils.addGtFluid(
+ "sulfuricLithium",
+ "Sulfuric Lithium Mix",
+ GT_Materials.SulfuricLithium,
+ 4,
+ 280,
+ GT_OreDictUnificator.get(OrePrefixes.cell, GT_Materials.SulfuricLithium, 1L),
+ ItemUtils.getEmptyCell(),
+ 1000,
+ false);
generateIC2FluidCell("SulfuricLithium");
FluidUtils.addGtFluid(
- "lithiumHydroxide",
- "Lithium Hydroxide",
- GT_Materials.LithiumHydroxide,
- 4,
- 500,
- GT_OreDictUnificator.get(OrePrefixes.cell, GT_Materials.LithiumHydroxide, 1L),
- ItemUtils.getEmptyCell(),
- 1000,
- false);
+ "lithiumHydroxide",
+ "Lithium Hydroxide",
+ GT_Materials.LithiumHydroxide,
+ 4,
+ 500,
+ GT_OreDictUnificator.get(OrePrefixes.cell, GT_Materials.LithiumHydroxide, 1L),
+ ItemUtils.getEmptyCell(),
+ 1000,
+ false);
generateIC2FluidCell("LithiumHydroxide");
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/textures/CasingTextureHandler.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/textures/CasingTextureHandler.java
index 3409277f91..c85bac7115 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/textures/CasingTextureHandler.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/textures/CasingTextureHandler.java
@@ -51,7 +51,7 @@ public class CasingTextureHandler {
}
public static IIcon handleCasingsGT(final IBlockAccess aWorld, final int xCoord, final int yCoord, final int zCoord,
- final ForgeDirection side, final GregtechMetaCasingBlocks thisBlock) {
+ final ForgeDirection side, final GregtechMetaCasingBlocks thisBlock) {
return gregtechX.handleCasingsGT(aWorld, xCoord, yCoord, zCoord, side, thisBlock);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/textures/TexturesCentrifugeMultiblock.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/textures/TexturesCentrifugeMultiblock.java
index f4d0ec0608..058d2a7f1e 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/textures/TexturesCentrifugeMultiblock.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/textures/TexturesCentrifugeMultiblock.java
@@ -52,29 +52,28 @@ public class TexturesCentrifugeMultiblock {
private static CustomIcon frontFaceActive_8 = (GT8_9_Active);
CustomIcon[] CENTRIFUGE = new CustomIcon[] { frontFace_0, frontFace_1, frontFace_2, frontFace_3, frontFace_4,
- frontFace_5, frontFace_6, frontFace_7, frontFace_8 };
+ frontFace_5, frontFace_6, frontFace_7, frontFace_8 };
CustomIcon[] CENTRIFUGE_ACTIVE = new CustomIcon[] { frontFaceActive_0, frontFaceActive_1, frontFaceActive_2,
- frontFaceActive_3, frontFaceActive_4, frontFaceActive_5, frontFaceActive_6, frontFaceActive_7,
- frontFaceActive_8 };
+ frontFaceActive_3, frontFaceActive_4, frontFaceActive_5, frontFaceActive_6, frontFaceActive_7,
+ frontFaceActive_8 };
public IIcon handleCasingsGT(final IBlockAccess aWorld, final int xCoord, final int yCoord, final int zCoord,
- final ForgeDirection side, final GregtechMetaCasingBlocks thisBlock) {
+ final ForgeDirection side, final GregtechMetaCasingBlocks thisBlock) {
return this.handleCasingsGT58(aWorld, xCoord, yCoord, zCoord, side, thisBlock);
}
private static int isCentrifugeControllerWithSide(IBlockAccess aWorld, int aX, int aY, int aZ,
- ForgeDirection side) {
+ ForgeDirection side) {
TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
if (!(tTileEntity instanceof IGregTechTileEntity tTile)) return 0;
if (tTile.getMetaTileEntity() instanceof GregtechMetaTileEntity_IndustrialCentrifuge
- && tTile.getFrontFacing() == side)
- return tTile.isActive() ? 1 : 2;
+ && tTile.getFrontFacing() == side) return tTile.isActive() ? 1 : 2;
return 0;
}
public IIcon handleCasingsGT58(final IBlockAccess aWorld, final int xCoord, final int yCoord, final int zCoord,
- final ForgeDirection side, final GregtechMetaCasingBlocks thisBlock) {
+ final ForgeDirection side, final GregtechMetaCasingBlocks thisBlock) {
final int tMeta = aWorld.getBlockMetadata(xCoord, yCoord, zCoord);
final int ordinalSide = side.ordinal();
if (tMeta != 0) {
@@ -89,7 +88,7 @@ public class TexturesCentrifugeMultiblock {
if (i == 0 && j == 0) continue;
if (isCentrifugeControllerWithSide(aWorld, xCoord + j, yCoord, zCoord + i, side) != 0) {
IMetaTileEntity tMetaTileEntity = ((IGregTechTileEntity) aWorld
- .getTileEntity(xCoord + j, yCoord, zCoord + i)).getMetaTileEntity();
+ .getTileEntity(xCoord + j, yCoord, zCoord + i)).getMetaTileEntity();
return getIconByIndex(tMetaTileEntity, 4 - i * 3 - j);
}
}
@@ -101,7 +100,7 @@ public class TexturesCentrifugeMultiblock {
if (i == 0 && j == 0) continue;
if (isCentrifugeControllerWithSide(aWorld, xCoord + j, yCoord + i, zCoord, side) != 0) {
IMetaTileEntity tMetaTileEntity = ((IGregTechTileEntity) aWorld
- .getTileEntity(xCoord + j, yCoord + i, zCoord)).getMetaTileEntity();
+ .getTileEntity(xCoord + j, yCoord + i, zCoord)).getMetaTileEntity();
return getIconByIndex(tMetaTileEntity, 4 + i * 3 - j * tInvertLeftRightMod);
}
}
@@ -113,7 +112,7 @@ public class TexturesCentrifugeMultiblock {
if (i == 0 && j == 0) continue;
if (isCentrifugeControllerWithSide(aWorld, xCoord, yCoord + i, zCoord + j, side) != 0) {
IMetaTileEntity tMetaTileEntity = ((IGregTechTileEntity) aWorld
- .getTileEntity(xCoord, yCoord + i, zCoord + j)).getMetaTileEntity();
+ .getTileEntity(xCoord, yCoord + i, zCoord + j)).getMetaTileEntity();
return getIconByIndex(tMetaTileEntity, 4 + i * 3 + j * tInvertLeftRightMod);
}
}
@@ -127,7 +126,8 @@ public class TexturesCentrifugeMultiblock {
if (aTile == null) {
return false;
} else {
- return aTile.getBaseMetaTileEntity().isActive();
+ return aTile.getBaseMetaTileEntity()
+ .isActive();
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/textures/TexturesGrinderMultiblock.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/textures/TexturesGrinderMultiblock.java
index fab36fbcea..e7d09bd308 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/textures/TexturesGrinderMultiblock.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/textures/TexturesGrinderMultiblock.java
@@ -52,11 +52,11 @@ public class TexturesGrinderMultiblock {
private static CustomIcon frontFaceActive_8 = (GT8_9_Active);
CustomIcon[] GRINDER = new CustomIcon[] { frontFace_0, frontFace_1, frontFace_2, frontFace_3, frontFace_4,
- frontFace_5, frontFace_6, frontFace_7, frontFace_8 };
+ frontFace_5, frontFace_6, frontFace_7, frontFace_8 };
CustomIcon[] GRINDER_ACTIVE = new CustomIcon[] { frontFaceActive_0, frontFaceActive_1, frontFaceActive_2,
- frontFaceActive_3, frontFaceActive_4, frontFaceActive_5, frontFaceActive_6, frontFaceActive_7,
- frontFaceActive_8 };
+ frontFaceActive_3, frontFaceActive_4, frontFaceActive_5, frontFaceActive_6, frontFaceActive_7,
+ frontFaceActive_8 };
private static int isIsaControllerWithSide(IBlockAccess aWorld, int aX, int aY, int aZ, ForgeDirection side) {
TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
@@ -67,7 +67,7 @@ public class TexturesGrinderMultiblock {
}
public IIcon handleCasingsGT(final IBlockAccess aWorld, final int xCoord, final int yCoord, final int zCoord,
- final int ordinalSide, final GregtechMetaCasingBlocks5 ii) {
+ final int ordinalSide, final GregtechMetaCasingBlocks5 ii) {
final int tMeta = aWorld.getBlockMetadata(xCoord, yCoord, zCoord);
final ForgeDirection side = ForgeDirection.getOrientation(ordinalSide);
if (tMeta != 1) {
@@ -81,7 +81,7 @@ public class TexturesGrinderMultiblock {
if (i == 0 && j == 0) continue;
if (isIsaControllerWithSide(aWorld, xCoord + j, yCoord, zCoord + i, side) != 0) {
IMetaTileEntity tMetaTileEntity = ((IGregTechTileEntity) aWorld
- .getTileEntity(xCoord + j, yCoord, zCoord + i)).getMetaTileEntity();
+ .getTileEntity(xCoord + j, yCoord, zCoord + i)).getMetaTileEntity();
return getIconByIndex(tMetaTileEntity, 4 - i * 3 - j);
}
}
@@ -93,7 +93,7 @@ public class TexturesGrinderMultiblock {
if (i == 0 && j == 0) continue;
if (isIsaControllerWithSide(aWorld, xCoord + j, yCoord + i, zCoord, side) != 0) {
IMetaTileEntity tMetaTileEntity = ((IGregTechTileEntity) aWorld
- .getTileEntity(xCoord + j, yCoord + i, zCoord)).getMetaTileEntity();
+ .getTileEntity(xCoord + j, yCoord + i, zCoord)).getMetaTileEntity();
return getIconByIndex(tMetaTileEntity, 4 + i * 3 - j * tInvertLeftRightMod);
}
}
@@ -105,7 +105,7 @@ public class TexturesGrinderMultiblock {
if (i == 0 && j == 0) continue;
if (isIsaControllerWithSide(aWorld, xCoord, yCoord + i, zCoord + j, side) != 0) {
IMetaTileEntity tMetaTileEntity = ((IGregTechTileEntity) aWorld
- .getTileEntity(xCoord, yCoord + i, zCoord + j)).getMetaTileEntity();
+ .getTileEntity(xCoord, yCoord + i, zCoord + j)).getMetaTileEntity();
return getIconByIndex(tMetaTileEntity, 4 + i * 3 + j * tInvertLeftRightMod);
}
}
@@ -119,7 +119,8 @@ public class TexturesGrinderMultiblock {
if (aTile == null) {
return false;
} else {
- return aTile.getBaseMetaTileEntity().isActive();
+ return aTile.getBaseMetaTileEntity()
+ .isActive();
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/textures/TexturesGtBlock.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/textures/TexturesGtBlock.java
index 47101dad12..743cd0b85b 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/textures/TexturesGtBlock.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/textures/TexturesGtBlock.java
@@ -55,7 +55,9 @@ public class TexturesGtBlock {
@Override
public void run() {
this.mIcon = GregTech_API.sBlockIcons.registerIcon(this.mModID + ":" + this.mIconName);
- Logger.WARNING("FIND ME _ Processing texture: " + this.getTextureFile().getResourcePath());
+ Logger.WARNING(
+ "FIND ME _ Processing texture: " + this.getTextureFile()
+ .getResourcePath());
}
@Override
@@ -74,14 +76,14 @@ public class TexturesGtBlock {
public static final CustomIcon _PlaceHolder = Internal_PlaceHolder;
public static final CustomIcon OVERLAY_ENERGY_OUT_MULTI_BUFFER = new CustomIcon(
- "iconsets/OVERLAY_ENERGY_OUT_MULTI_BUFFER");
+ "iconsets/OVERLAY_ENERGY_OUT_MULTI_BUFFER");
// Machine Casings
// Simple
private static final CustomIcon Internal_Casing_Machine_Simple_Top = new CustomIcon("TileEntities/machine_top");
public static final CustomIcon Casing_Machine_Simple_Top = Internal_Casing_Machine_Simple_Top;
private static final CustomIcon Internal_Casing_Machine_Simple_Bottom = new CustomIcon(
- "TileEntities/machine_bottom");
+ "TileEntities/machine_bottom");
public static final CustomIcon Casing_Machine_Simple_Bottom = Internal_Casing_Machine_Simple_Bottom;
// Advanced and Ultra
private static final CustomIcon Internal_Casing_Machine_Advanced = new CustomIcon("TileEntities/high_adv_machine");
@@ -90,51 +92,51 @@ public class TexturesGtBlock {
public static final CustomIcon Casing_Machine_Ultra = Internal_Casing_Machine_Ultra;
// Dimensional - Non Overlay
private static final CustomIcon Internal_Casing_Machine_Dimensional = new CustomIcon(
- "TileEntities/adv_machine_dimensional");
+ "TileEntities/adv_machine_dimensional");
public static final CustomIcon Casing_Machine_Dimensional = Internal_Casing_Machine_Dimensional;
// Material Casings
private static final CustomIcon Internal_Casing_Tantalloy61 = new CustomIcon(
- "TileEntities/MACHINE_CASING_STABLE_TANTALLOY61");
+ "TileEntities/MACHINE_CASING_STABLE_TANTALLOY61");
public static final CustomIcon Casing_Material_Tantalloy61 = Internal_Casing_Tantalloy61;
private static final CustomIcon Internal_Casing_MaragingSteel = new CustomIcon(
- "TileEntities/MACHINE_CASING_STABLE_MARAGINGSTEEL");
+ "TileEntities/MACHINE_CASING_STABLE_MARAGINGSTEEL");
public static final CustomIcon Casing_Material_MaragingSteel = Internal_Casing_MaragingSteel;
private static final CustomIcon Internal_Casing_Stellite = new CustomIcon(
- "TileEntities/MACHINE_CASING_STABLE_STELLITE");
+ "TileEntities/MACHINE_CASING_STABLE_STELLITE");
public static final CustomIcon Casing_Material_Stellite = Internal_Casing_Stellite;
private static final CustomIcon Internal_Casing_Talonite = new CustomIcon(
- "TileEntities/MACHINE_CASING_STABLE_TALONITE");
+ "TileEntities/MACHINE_CASING_STABLE_TALONITE");
public static final CustomIcon Casing_Material_Talonite = Internal_Casing_Talonite;
private static final CustomIcon Internal_Turbine_SC_Casing = new TexturesGtBlock.CustomIcon("iconsets/SC_TURBINE");
public static final CustomIcon Turbine_SC_Material_Casing = Internal_Turbine_SC_Casing;
private static final CustomIcon Internal_Casing_Tumbaga = new CustomIcon(
- "TileEntities/MACHINE_CASING_STABLE_TUMBAGA");
+ "TileEntities/MACHINE_CASING_STABLE_TUMBAGA");
public static final CustomIcon Casing_Material_Tumbaga = Internal_Casing_Tumbaga;
private static final CustomIcon Internal_Casing_Zeron100 = new CustomIcon(
- "TileEntities/MACHINE_CASING_STABLE_ZERON100");
+ "TileEntities/MACHINE_CASING_STABLE_ZERON100");
public static final CustomIcon Casing_Material_Zeron100 = Internal_Casing_Zeron100;
private static final CustomIcon Internal_Casing_Potin = new CustomIcon("TileEntities/MACHINE_CASING_STABLE_POTIN");
public static final CustomIcon Casing_Material_Potin = Internal_Casing_Potin;
private static final CustomIcon Internal_Casing_Grisium = new CustomIcon(
- "TileEntities/MACHINE_CASING_STABLE_GRISIUM");
+ "TileEntities/MACHINE_CASING_STABLE_GRISIUM");
public static final CustomIcon Casing_Material_Grisium = Internal_Casing_Grisium;
private static final CustomIcon Internal_Casing_RedSteel = new CustomIcon(
- "TileEntities/MACHINE_CASING_STABLE_RED_STEEL");
+ "TileEntities/MACHINE_CASING_STABLE_RED_STEEL");
public static final CustomIcon Casing_Material_RedSteel = Internal_Casing_RedSteel;
private static final CustomIcon Internal_Casing_ZirconiumCarbide = new CustomIcon(
- "TileEntities/MACHINE_CASING_STABLE_ZIRCONIUM_CARBIDE");
+ "TileEntities/MACHINE_CASING_STABLE_ZIRCONIUM_CARBIDE");
public static final CustomIcon Casing_Material_ZirconiumCarbide = Internal_Casing_ZirconiumCarbide;
private static final CustomIcon Internal_Casing_HastelloyX = new CustomIcon(
- "TileEntities/MACHINE_CASING_STABLE_HASTELLOY_X");
+ "TileEntities/MACHINE_CASING_STABLE_HASTELLOY_X");
public static final CustomIcon Casing_Material_HastelloyX = Internal_Casing_HastelloyX;
private static final CustomIcon Internal_Casing_HastelloyN = new CustomIcon(
- "TileEntities/MACHINE_CASING_STABLE_HASTELLOY_N");
+ "TileEntities/MACHINE_CASING_STABLE_HASTELLOY_N");
public static final CustomIcon Casing_Material_HastelloyN = Internal_Casing_HastelloyN;
private static final CustomIcon Internal_Casing_Fluid_IncoloyDS = new CustomIcon(
- "TileEntities/MACHINE_CASING_FLUID_INCOLOY_DS");
+ "TileEntities/MACHINE_CASING_FLUID_INCOLOY_DS");
public static final CustomIcon Casing_Material_Fluid_IncoloyDS = Internal_Casing_Fluid_IncoloyDS;
private static final CustomIcon Internal_Casing_Laurenium = new CustomIcon("TileEntities/MACHINE_CASING_LAURENIUM");
@@ -142,21 +144,21 @@ public class TexturesGtBlock {
// Trinium Alloys
public static final CustomIcon Casing_Trinium_Titanium = new CustomIcon(
- "TileEntities/MACHINE_CASING_STABLE_TRINIUM_TITANIUM");
+ "TileEntities/MACHINE_CASING_STABLE_TRINIUM_TITANIUM");
public static final CustomIcon Casing_Trinium_Naquadah_Vent = new CustomIcon(
- "TileEntities/MACHINE_CASING_STABLE_TRINIUM_NAQUADAH_VENT");
+ "TileEntities/MACHINE_CASING_STABLE_TRINIUM_NAQUADAH_VENT");
// Material Machine/Firebox Casings
private static final CustomIcon Internal_Casing_Staballoy_Firebox = new CustomIcon(
- "TileEntities/MACHINE_CASING_FIREBOX_STABALLOY");
+ "TileEntities/MACHINE_CASING_FIREBOX_STABALLOY");
public static final CustomIcon Casing_Staballoy_Firebox = Internal_Casing_Staballoy_Firebox;
// Misc Casings
private static final CustomIcon Internal_Casing_Machine_Redstone_Off = new CustomIcon(
- "TileEntities/cover_redstone_conductor");
+ "TileEntities/cover_redstone_conductor");
public static final CustomIcon Casing_Machine_Redstone_Off = Internal_Casing_Machine_Redstone_Off;
private static final CustomIcon Internal_Casing_Machine_Redstone_On = new CustomIcon(
- "TileEntities/cover_redstone_emitter");
+ "TileEntities/cover_redstone_emitter");
public static final CustomIcon Casing_Machine_Redstone_On = Internal_Casing_Machine_Redstone_On;
// Redox Cells
@@ -179,7 +181,7 @@ public class TexturesGtBlock {
// Centrifuge Casing
private static final CustomIcon Internal_Casing_Centrifuge = new CustomIcon(
- "TileEntities/MACHINE_CASING_CENTRIFUGE");
+ "TileEntities/MACHINE_CASING_CENTRIFUGE");
public static final CustomIcon Casing_Material_Centrifuge = Internal_Casing_Centrifuge;
// Quantum Force Transformer Casing
@@ -203,7 +205,7 @@ public class TexturesGtBlock {
// MACHINE_CASING_FARM_MANAGER_STRUCTURAL
// Farm Manager Casings
private static final CustomIcon Internal_Casing_Machine_Farm_Manager = new CustomIcon(
- "TileEntities/MACHINE_CASING_FARM_MANAGER_STRUCTURAL");
+ "TileEntities/MACHINE_CASING_FARM_MANAGER_STRUCTURAL");
public static final CustomIcon Casing_Machine_Farm_Manager = Internal_Casing_Machine_Farm_Manager;
// Acacia_Log
private static final CustomIcon Internal_Casing_Machine_Acacia_Log = new CustomIcon("TileEntities/log_acacia_top");
@@ -229,12 +231,12 @@ public class TexturesGtBlock {
public static final CustomIcon TEXTURE_CASING_AMAZON = new CustomIcon("TileEntities/CASING_AMAZON");
public static final CustomIcon TEXTURE_CASING_ADVANCED_CRYOGENIC = new CustomIcon(
- "TileEntities/MACHINE_CASING_ADVANCED_CRYOGENIC");
+ "TileEntities/MACHINE_CASING_ADVANCED_CRYOGENIC");
public static final CustomIcon TEXTURE_CASING_ADVANCED_VOLCNUS = new CustomIcon(
- "TileEntities/MACHINE_CASING_ADVANCED_VOLCANUS");
+ "TileEntities/MACHINE_CASING_ADVANCED_VOLCANUS");
public static final CustomIcon TEXTURE_CASING_ROCKETDYNE = new CustomIcon("TileEntities/MACHINE_CASING_ROCKETDYNE");
public static final CustomIcon TEXTURE_CASING_GRINDING_MILL = new CustomIcon(
- "TileEntities/MACHINE_CASING_GRINDING_FACTORY");
+ "TileEntities/MACHINE_CASING_GRINDING_FACTORY");
public static final CustomIcon TEXTURE_CASING_FLOTATION = new CustomIcon("TileEntities/MACHINE_CASING_FLOTATION");
// Custom Pipes
@@ -243,20 +245,20 @@ public class TexturesGtBlock {
// Custom Gearboxes
public static final CustomIcon TEXTURE_GEARBOX_GRINDING_MILL = new CustomIcon(
- "TileEntities/MACHINE_CASING_GEARBOX_T1");
+ "TileEntities/MACHINE_CASING_GEARBOX_T1");
public static final CustomIcon TEXTURE_GEARBOX_GENERIC = new CustomIcon("iconsets/MACHINE_CASING_GEARBOX_GENERIC");
public static final CustomIcon TEXTURE_CASING_FUSION_COIL_II = new CustomIcon("iconsets/MACHINE_CASING_FUSION_3");
public static final CustomIcon TEXTURE_CASING_FUSION_COIL_II_INNER = new CustomIcon(
- "iconsets/MACHINE_CASING_FUSION_COIL_II");
+ "iconsets/MACHINE_CASING_FUSION_COIL_II");
public static final CustomIcon TEXTURE_CASING_FUSION_CASING_ULTRA = new CustomIcon(
- "iconsets/MACHINE_CASING_FUSION_GLASS_ULTRA");
+ "iconsets/MACHINE_CASING_FUSION_GLASS_ULTRA");
public static final CustomIcon TEXTURE_CASING_FUSION_COIL_III = new CustomIcon("iconsets/MACHINE_CASING_FUSION_4");
public static final CustomIcon TEXTURE_CASING_FUSION_COIL_III_INNER = new CustomIcon(
- "iconsets/MACHINE_CASING_FUSION_COIL_III");
+ "iconsets/MACHINE_CASING_FUSION_COIL_III");
public static final CustomIcon TEXTURE_CASING_FUSION_CASING_HYPER = new CustomIcon(
- "iconsets/MACHINE_CASING_FUSION_GLASS_HYPER");
+ "iconsets/MACHINE_CASING_FUSION_GLASS_HYPER");
//
public static final CustomIcon TEXTURE_CASING_FUSION_COIL_II_1 = new CustomIcon("iconsets/FUSIONIII_1");
public static final CustomIcon TEXTURE_CASING_FUSION_COIL_II_2 = new CustomIcon("iconsets/FUSIONIII_2");
@@ -288,65 +290,65 @@ public class TexturesGtBlock {
// Overlays
// Fan Textures
private static final CustomIcon Internal_Overlay_Machine_Vent = new CustomIcon(
- "TileEntities/machine_top_vent_rotating");
+ "TileEntities/machine_top_vent_rotating");
public static final CustomIcon Overlay_Machine_Vent = Internal_Overlay_Machine_Vent;
private static final CustomIcon Internal_Overlay_Machine_Vent_Fast = new CustomIcon(
- "TileEntities/machine_top_vent_rotating_fast");
+ "TileEntities/machine_top_vent_rotating_fast");
public static final CustomIcon Overlay_Machine_Vent_Fast = Internal_Overlay_Machine_Vent_Fast;
private static final CustomIcon Internal_Overlay_Machine_Vent_Adv = new CustomIcon(
- "TileEntities/adv_machine_vent_rotating");
+ "TileEntities/adv_machine_vent_rotating");
// Diesel Engines
private static final CustomIcon Internal_Overlay_Machine_Diesel_Vertical = new CustomIcon(
- "TileEntities/machine_top_dieselmotor");
+ "TileEntities/machine_top_dieselmotor");
public static final CustomIcon Overlay_Machine_Diesel_Vertical = Internal_Overlay_Machine_Diesel_Vertical;
private static final CustomIcon Internal_Overlay_Machine_Diesel_Horizontal = new CustomIcon(
- "TileEntities/machine_top_dieselmotor2");
+ "TileEntities/machine_top_dieselmotor2");
public static final CustomIcon Overlay_Machine_Diesel_Horizontal = Internal_Overlay_Machine_Diesel_Horizontal;
private static final CustomIcon Internal_Overlay_Machine_Diesel_Vertical_Active = new CustomIcon(
- "TileEntities/machine_top_dieselmotor_active");
+ "TileEntities/machine_top_dieselmotor_active");
public static final CustomIcon Overlay_Machine_Diesel_Vertical_Active = Internal_Overlay_Machine_Diesel_Vertical_Active;
private static final CustomIcon Internal_Overlay_Machine_Diesel_Horizontal_Active = new CustomIcon(
- "TileEntities/machine_top_dieselmotor2_active");
+ "TileEntities/machine_top_dieselmotor2_active");
public static final CustomIcon Overlay_Machine_Diesel_Horizontal_Active = Internal_Overlay_Machine_Diesel_Horizontal_Active;
// Computer Screens
private static final CustomIcon Internal_Casing_Machine_Screen_1 = new CustomIcon(
- "TileEntities/adv_machine_screen_random1");
+ "TileEntities/adv_machine_screen_random1");
public static final CustomIcon Casing_Machine_Screen_1 = Internal_Casing_Machine_Screen_1;
private static final CustomIcon Internal_Casing_Machine_Screen_2 = new CustomIcon(
- "TileEntities/adv_machine_screen_random2");
+ "TileEntities/adv_machine_screen_random2");
public static final CustomIcon Casing_Machine_Screen_2 = Internal_Casing_Machine_Screen_2;
private static final CustomIcon Internal_Casing_Machine_Screen_3 = new CustomIcon(
- "TileEntities/adv_machine_screen_random3");
+ "TileEntities/adv_machine_screen_random3");
public static final CustomIcon Casing_Machine_Screen_3 = Internal_Casing_Machine_Screen_3;
private static final CustomIcon Internal_Casing_Machine_Screen_Rainbow = new CustomIcon(
- "TileEntities/overlay_rainbowscreen");
+ "TileEntities/overlay_rainbowscreen");
public static final CustomIcon Casing_Machine_Screen_Rainbow = Internal_Casing_Machine_Screen_Rainbow;
private static final CustomIcon Internal_Casing_Machine_Screen_Frequency = new CustomIcon(
- "TileEntities/adv_machine_screen_frequency");
+ "TileEntities/adv_machine_screen_frequency");
public static final CustomIcon Casing_Machine_Screen_Frequency = Internal_Casing_Machine_Screen_Frequency;
private static final CustomIcon Internal_Overlay_Machine_Screen_Logo = new CustomIcon(
- "TileEntities/adv_machine_screen_logo");
+ "TileEntities/adv_machine_screen_logo");
public static final CustomIcon Overlay_Machine_Screen_Logo = Internal_Overlay_Machine_Screen_Logo;
// Machine Controller Overlays
private static final CustomIcon Internal_Overlay_Machine_Controller_Default = new CustomIcon(
- "iconsets/OVERLAY_FRONT_ELECTRIC_BLAST_FURNACE_ANIMATED");
+ "iconsets/OVERLAY_FRONT_ELECTRIC_BLAST_FURNACE_ANIMATED");
public static final CustomIcon Overlay_Machine_Controller_Default = Internal_Overlay_Machine_Controller_Default;
private static final CustomIcon Internal_Overlay_Machine_Controller_Default_Active = new CustomIcon(
- "iconsets/OVERLAY_FRONT_ELECTRIC_BLAST_FURNACE_ANIMATED_ACTIVE");
+ "iconsets/OVERLAY_FRONT_ELECTRIC_BLAST_FURNACE_ANIMATED_ACTIVE");
public static final CustomIcon Overlay_Machine_Controller_Default_Active = Internal_Overlay_Machine_Controller_Default_Active;
private static final CustomIcon Internal_Overlay_Machine_Controller_Advanced = new CustomIcon(
- "iconsets/OVERLAY_FRONT_ADVANCED_MULTIBLOCK_ANIMATED");
+ "iconsets/OVERLAY_FRONT_ADVANCED_MULTIBLOCK_ANIMATED");
public static final CustomIcon Overlay_Machine_Controller_Advanced = Internal_Overlay_Machine_Controller_Advanced;
private static final CustomIcon Internal_Overlay_Machine_Controller_Advanced_Active = new CustomIcon(
- "iconsets/OVERLAY_FRONT_ADVANCED_MULTIBLOCK_ANIMATED_ACTIVE");
+ "iconsets/OVERLAY_FRONT_ADVANCED_MULTIBLOCK_ANIMATED_ACTIVE");
public static final CustomIcon Overlay_Machine_Controller_Advanced_Active = Internal_Overlay_Machine_Controller_Advanced_Active;
// Crafting Overlays
public static final CustomIcon Casing_Adv_Workbench_Crafting_Overlay = new CustomIcon(
- "TileEntities/gt4/machine_top_crafting");
+ "TileEntities/gt4/machine_top_crafting");
public static final CustomIcon Casing_CropHarvester_Cutter = new CustomIcon("TileEntities/gt4/OVERLAY_CROP");
public static final CustomIcon Casing_CropHarvester_Boxes = new CustomIcon("TileEntities/gt4/OVERLAY_BOXES");
@@ -367,7 +369,7 @@ public class TexturesGtBlock {
public static final CustomIcon Overlay_Hatch_Muffler_Adv = Internal_Overlay_Hatch_Muffler_Adv;
// Milling Ball Bus
private static final CustomIcon Internal_Overlay_Bus_Milling_Balls = new CustomIcon(
- "iconsets/OVERLAY_MILLING_BALL_BUS");
+ "iconsets/OVERLAY_MILLING_BALL_BUS");
public static final CustomIcon Overlay_Bus_Milling_Balls = Internal_Overlay_Bus_Milling_Balls;
// Catalyst Bus
private static final CustomIcon Internal_Overlay_Bus_Catalyst = new CustomIcon("iconsets/OVERLAY_CATALYSTS");
@@ -378,20 +380,20 @@ public class TexturesGtBlock {
// Dimensional
private static final CustomIcon Internal_Overlay_Machine_Dimensional_Orange = new CustomIcon(
- "TileEntities/adv_machine_dimensional_cover_orange");
+ "TileEntities/adv_machine_dimensional_cover_orange");
public static final CustomIcon Overlay_Machine_Dimensional_Orange = Internal_Overlay_Machine_Dimensional_Orange;
// Icons
private static final CustomIcon Internal_Overlay_MatterFab = new CustomIcon("TileEntities/adv_machine_matterfab");
public static final CustomIcon Overlay_MatterFab = Internal_Overlay_MatterFab;
private static final CustomIcon Internal_Overlay_MatterFab_Active = new CustomIcon(
- "TileEntities/adv_machine_matterfab_active");
+ "TileEntities/adv_machine_matterfab_active");
public static final CustomIcon Overlay_MatterFab_Active = Internal_Overlay_MatterFab_Active;
private static final CustomIcon Internal_Overlay_MatterFab_Animated = new CustomIcon(
- "TileEntities/adv_machine_matterfab_animated");
+ "TileEntities/adv_machine_matterfab_animated");
public static final CustomIcon Overlay_MatterFab_Animated = Internal_Overlay_MatterFab_Animated;
private static final CustomIcon Internal_Overlay_MatterFab_Active_Animated = new CustomIcon(
- "TileEntities/adv_machine_matterfab_active_animated");
+ "TileEntities/adv_machine_matterfab_active_animated");
public static final CustomIcon Overlay_MatterFab_Active_Animated = Internal_Overlay_MatterFab_Active_Animated;
private static final CustomIcon Internal_Overlay_Water = new CustomIcon("TileEntities/adv_machine_water");
@@ -422,7 +424,7 @@ public class TexturesGtBlock {
public static final CustomIcon TEXTURE_MAGIC_PANEL_B = new CustomIcon("metro/TEXTURE_MAGIC_B");
public static final CustomIcon TEXTURE_ORGANIC_PANEL_A_GLOWING = new CustomIcon(
- "metro/TEXTURE_ORGANIC_PANEL_A_GLOWING");
+ "metro/TEXTURE_ORGANIC_PANEL_A_GLOWING");
public static final CustomIcon TEXTURE_STONE_RED_A = new CustomIcon("metro/TEXTURE_STONE_RED_A");
public static final CustomIcon TEXTURE_STONE_RED_B = new CustomIcon("metro/TEXTURE_STONE_RED_B");
@@ -454,31 +456,31 @@ public class TexturesGtBlock {
public static final CustomIcon TEXTURE_TECH_PANEL_H = new CustomIcon("metro/TEXTURE_TECH_PANEL_H");
public static ITexture[] OVERLAYS_ENERGY_OUT_MULTI_BUFFER = new ITexture[] {
- new GT_RenderedTexture(OVERLAY_ENERGY_OUT_MULTI_BUFFER, new short[] { 220, 220, 220, 0 }),
- new GT_RenderedTexture(OVERLAY_ENERGY_OUT_MULTI_BUFFER, new short[] { 220, 220, 220, 0 }),
- new GT_RenderedTexture(OVERLAY_ENERGY_OUT_MULTI_BUFFER, new short[] { 255, 100, 0, 0 }),
- new GT_RenderedTexture(OVERLAY_ENERGY_OUT_MULTI_BUFFER, new short[] { 255, 255, 30, 0 }),
- new GT_RenderedTexture(OVERLAY_ENERGY_OUT_MULTI_BUFFER, new short[] { 128, 128, 128, 0 }),
- new GT_RenderedTexture(OVERLAY_ENERGY_OUT_MULTI_BUFFER, new short[] { 240, 240, 245, 0 }),
- new GT_RenderedTexture(OVERLAY_ENERGY_OUT_MULTI_BUFFER, new short[] { 240, 240, 245, 0 }),
- new GT_RenderedTexture(OVERLAY_ENERGY_OUT_MULTI_BUFFER, new short[] { 240, 240, 245, 0 }),
- new GT_RenderedTexture(OVERLAY_ENERGY_OUT_MULTI_BUFFER, new short[] { 240, 240, 245, 0 }),
- new GT_RenderedTexture(OVERLAY_ENERGY_OUT_MULTI_BUFFER, new short[] { 240, 240, 245, 0 }) };
+ new GT_RenderedTexture(OVERLAY_ENERGY_OUT_MULTI_BUFFER, new short[] { 220, 220, 220, 0 }),
+ new GT_RenderedTexture(OVERLAY_ENERGY_OUT_MULTI_BUFFER, new short[] { 220, 220, 220, 0 }),
+ new GT_RenderedTexture(OVERLAY_ENERGY_OUT_MULTI_BUFFER, new short[] { 255, 100, 0, 0 }),
+ new GT_RenderedTexture(OVERLAY_ENERGY_OUT_MULTI_BUFFER, new short[] { 255, 255, 30, 0 }),
+ new GT_RenderedTexture(OVERLAY_ENERGY_OUT_MULTI_BUFFER, new short[] { 128, 128, 128, 0 }),
+ new GT_RenderedTexture(OVERLAY_ENERGY_OUT_MULTI_BUFFER, new short[] { 240, 240, 245, 0 }),
+ new GT_RenderedTexture(OVERLAY_ENERGY_OUT_MULTI_BUFFER, new short[] { 240, 240, 245, 0 }),
+ new GT_RenderedTexture(OVERLAY_ENERGY_OUT_MULTI_BUFFER, new short[] { 240, 240, 245, 0 }),
+ new GT_RenderedTexture(OVERLAY_ENERGY_OUT_MULTI_BUFFER, new short[] { 240, 240, 245, 0 }),
+ new GT_RenderedTexture(OVERLAY_ENERGY_OUT_MULTI_BUFFER, new short[] { 240, 240, 245, 0 }) };
public static IIconContainer[] CONNECTED_FUSION_HULLS = new IIconContainer[] { TEXTURE_CASING_FUSION_COIL_II_1,
- TEXTURE_CASING_FUSION_COIL_II_2, TEXTURE_CASING_FUSION_COIL_II_3, TEXTURE_CASING_FUSION_COIL_II_4,
- TEXTURE_CASING_FUSION_COIL_II_5, TEXTURE_CASING_FUSION_COIL_II_6, TEXTURE_CASING_FUSION_COIL_II_7,
- TEXTURE_CASING_FUSION_COIL_II_8, TEXTURE_CASING_FUSION_COIL_II_9, TEXTURE_CASING_FUSION_COIL_II_10,
- TEXTURE_CASING_FUSION_COIL_II_11, TEXTURE_CASING_FUSION_COIL_II_12 };
+ TEXTURE_CASING_FUSION_COIL_II_2, TEXTURE_CASING_FUSION_COIL_II_3, TEXTURE_CASING_FUSION_COIL_II_4,
+ TEXTURE_CASING_FUSION_COIL_II_5, TEXTURE_CASING_FUSION_COIL_II_6, TEXTURE_CASING_FUSION_COIL_II_7,
+ TEXTURE_CASING_FUSION_COIL_II_8, TEXTURE_CASING_FUSION_COIL_II_9, TEXTURE_CASING_FUSION_COIL_II_10,
+ TEXTURE_CASING_FUSION_COIL_II_11, TEXTURE_CASING_FUSION_COIL_II_12 };
public static IIconContainer[] CONNECTED_FUSION_HULLS_MK4 = new IIconContainer[] { TEXTURE_CASING_FUSION_COIL_III_1,
- TEXTURE_CASING_FUSION_COIL_III_2, TEXTURE_CASING_FUSION_COIL_III_3, TEXTURE_CASING_FUSION_COIL_III_4,
- TEXTURE_CASING_FUSION_COIL_III_5, TEXTURE_CASING_FUSION_COIL_III_6, TEXTURE_CASING_FUSION_COIL_III_7,
- TEXTURE_CASING_FUSION_COIL_III_8, TEXTURE_CASING_FUSION_COIL_III_9, TEXTURE_CASING_FUSION_COIL_III_10,
- TEXTURE_CASING_FUSION_COIL_III_11, TEXTURE_CASING_FUSION_COIL_III_12 };
+ TEXTURE_CASING_FUSION_COIL_III_2, TEXTURE_CASING_FUSION_COIL_III_3, TEXTURE_CASING_FUSION_COIL_III_4,
+ TEXTURE_CASING_FUSION_COIL_III_5, TEXTURE_CASING_FUSION_COIL_III_6, TEXTURE_CASING_FUSION_COIL_III_7,
+ TEXTURE_CASING_FUSION_COIL_III_8, TEXTURE_CASING_FUSION_COIL_III_9, TEXTURE_CASING_FUSION_COIL_III_10,
+ TEXTURE_CASING_FUSION_COIL_III_11, TEXTURE_CASING_FUSION_COIL_III_12 };
public static IIconContainer[] TIERED_MACHINE_HULLS = new IIconContainer[] { TEXTURE_CASING_TIERED_ULV,
- TEXTURE_CASING_TIERED_LV, TEXTURE_CASING_TIERED_MV, TEXTURE_CASING_TIERED_HV, TEXTURE_CASING_TIERED_EV,
- TEXTURE_CASING_TIERED_IV, TEXTURE_CASING_TIERED_LuV, TEXTURE_CASING_TIERED_ZPM, TEXTURE_CASING_TIERED_UV,
- TEXTURE_CASING_TIERED_MAX };
+ TEXTURE_CASING_TIERED_LV, TEXTURE_CASING_TIERED_MV, TEXTURE_CASING_TIERED_HV, TEXTURE_CASING_TIERED_EV,
+ TEXTURE_CASING_TIERED_IV, TEXTURE_CASING_TIERED_LuV, TEXTURE_CASING_TIERED_ZPM, TEXTURE_CASING_TIERED_UV,
+ TEXTURE_CASING_TIERED_MAX };
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/textures/turbine/LargeTurbineTextureHandler.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/textures/turbine/LargeTurbineTextureHandler.java
index 4e77e5d664..c983044319 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/textures/turbine/LargeTurbineTextureHandler.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/textures/turbine/LargeTurbineTextureHandler.java
@@ -107,67 +107,63 @@ public class LargeTurbineTextureHandler {
* LP Turbines
*/
public static IIcon[] OVERLAY_LP_TURBINE = new IIcon[] { LARGETURBINE_ST1.getIcon(), LARGETURBINE_ST2.getIcon(),
- LARGETURBINE_ST3.getIcon(), LARGETURBINE_ST4.getIcon(), LARGETURBINE_ST5.getIcon(),
- LARGETURBINE_ST6.getIcon(), LARGETURBINE_ST7.getIcon(), LARGETURBINE_ST8.getIcon(),
- LARGETURBINE_ST9.getIcon(), };
+ LARGETURBINE_ST3.getIcon(), LARGETURBINE_ST4.getIcon(), LARGETURBINE_ST5.getIcon(), LARGETURBINE_ST6.getIcon(),
+ LARGETURBINE_ST7.getIcon(), LARGETURBINE_ST8.getIcon(), LARGETURBINE_ST9.getIcon(), };
public static IIcon[] OVERLAY_LP_TURBINE_ACTIVE = new IIcon[] { LARGETURBINE_ST_ACTIVE1.getIcon(),
- LARGETURBINE_ST_ACTIVE2.getIcon(), LARGETURBINE_ST_ACTIVE3.getIcon(), LARGETURBINE_ST_ACTIVE4.getIcon(),
- LARGETURBINE_ST_ACTIVE5.getIcon(), LARGETURBINE_ST_ACTIVE6.getIcon(), LARGETURBINE_ST_ACTIVE7.getIcon(),
- LARGETURBINE_ST_ACTIVE8.getIcon(), LARGETURBINE_ST_ACTIVE9.getIcon(), };
+ LARGETURBINE_ST_ACTIVE2.getIcon(), LARGETURBINE_ST_ACTIVE3.getIcon(), LARGETURBINE_ST_ACTIVE4.getIcon(),
+ LARGETURBINE_ST_ACTIVE5.getIcon(), LARGETURBINE_ST_ACTIVE6.getIcon(), LARGETURBINE_ST_ACTIVE7.getIcon(),
+ LARGETURBINE_ST_ACTIVE8.getIcon(), LARGETURBINE_ST_ACTIVE9.getIcon(), };
/**
* HP Turbines
*/
public static IIcon[] OVERLAY_HP_TURBINE = new IIcon[] { LARGETURBINE_TI1.getIcon(), LARGETURBINE_TI2.getIcon(),
- LARGETURBINE_TI3.getIcon(), LARGETURBINE_TI4.getIcon(), LARGETURBINE_TI5.getIcon(),
- LARGETURBINE_TI6.getIcon(), LARGETURBINE_TI7.getIcon(), LARGETURBINE_TI8.getIcon(),
- LARGETURBINE_TI9.getIcon(), };
+ LARGETURBINE_TI3.getIcon(), LARGETURBINE_TI4.getIcon(), LARGETURBINE_TI5.getIcon(), LARGETURBINE_TI6.getIcon(),
+ LARGETURBINE_TI7.getIcon(), LARGETURBINE_TI8.getIcon(), LARGETURBINE_TI9.getIcon(), };
public static IIcon[] OVERLAY_HP_TURBINE_ACTIVE = new IIcon[] { LARGETURBINE_TI_ACTIVE1.getIcon(),
- LARGETURBINE_TI_ACTIVE2.getIcon(), LARGETURBINE_TI_ACTIVE3.getIcon(), LARGETURBINE_TI_ACTIVE4.getIcon(),
- LARGETURBINE_TI_ACTIVE5.getIcon(), LARGETURBINE_TI_ACTIVE6.getIcon(), LARGETURBINE_TI_ACTIVE7.getIcon(),
- LARGETURBINE_TI_ACTIVE8.getIcon(), LARGETURBINE_TI_ACTIVE9.getIcon(), };
+ LARGETURBINE_TI_ACTIVE2.getIcon(), LARGETURBINE_TI_ACTIVE3.getIcon(), LARGETURBINE_TI_ACTIVE4.getIcon(),
+ LARGETURBINE_TI_ACTIVE5.getIcon(), LARGETURBINE_TI_ACTIVE6.getIcon(), LARGETURBINE_TI_ACTIVE7.getIcon(),
+ LARGETURBINE_TI_ACTIVE8.getIcon(), LARGETURBINE_TI_ACTIVE9.getIcon(), };
/**
* Gas Turbines
*/
public static IIcon[] OVERLAY_GAS_TURBINE = new IIcon[] { LARGETURBINE_SS1.getIcon(), LARGETURBINE_SS2.getIcon(),
- LARGETURBINE_SS3.getIcon(), LARGETURBINE_SS4.getIcon(), LARGETURBINE_SS5.getIcon(),
- LARGETURBINE_SS6.getIcon(), LARGETURBINE_SS7.getIcon(), LARGETURBINE_SS8.getIcon(),
- LARGETURBINE_SS9.getIcon(), };
+ LARGETURBINE_SS3.getIcon(), LARGETURBINE_SS4.getIcon(), LARGETURBINE_SS5.getIcon(), LARGETURBINE_SS6.getIcon(),
+ LARGETURBINE_SS7.getIcon(), LARGETURBINE_SS8.getIcon(), LARGETURBINE_SS9.getIcon(), };
public static IIcon[] OVERLAY_GAS_TURBINE_ACTIVE = new IIcon[] { LARGETURBINE_SS_ACTIVE1.getIcon(),
- LARGETURBINE_SS_ACTIVE2.getIcon(), LARGETURBINE_SS_ACTIVE3.getIcon(), LARGETURBINE_SS_ACTIVE4.getIcon(),
- LARGETURBINE_SS_ACTIVE5.getIcon(), LARGETURBINE_SS_ACTIVE6.getIcon(), LARGETURBINE_SS_ACTIVE7.getIcon(),
- LARGETURBINE_SS_ACTIVE8.getIcon(), LARGETURBINE_SS_ACTIVE9.getIcon(), };
+ LARGETURBINE_SS_ACTIVE2.getIcon(), LARGETURBINE_SS_ACTIVE3.getIcon(), LARGETURBINE_SS_ACTIVE4.getIcon(),
+ LARGETURBINE_SS_ACTIVE5.getIcon(), LARGETURBINE_SS_ACTIVE6.getIcon(), LARGETURBINE_SS_ACTIVE7.getIcon(),
+ LARGETURBINE_SS_ACTIVE8.getIcon(), LARGETURBINE_SS_ACTIVE9.getIcon(), };
/**
* Plasma Turbines
*/
public static IIcon[] OVERLAY_PLASMA_TURBINE = new IIcon[] { LARGETURBINE_TU1.getIcon(), LARGETURBINE_TU2.getIcon(),
- LARGETURBINE_TU3.getIcon(), LARGETURBINE_TU4.getIcon(), LARGETURBINE_TU5.getIcon(),
- LARGETURBINE_TU6.getIcon(), LARGETURBINE_TU7.getIcon(), LARGETURBINE_TU8.getIcon(),
- LARGETURBINE_TU9.getIcon(), };
+ LARGETURBINE_TU3.getIcon(), LARGETURBINE_TU4.getIcon(), LARGETURBINE_TU5.getIcon(), LARGETURBINE_TU6.getIcon(),
+ LARGETURBINE_TU7.getIcon(), LARGETURBINE_TU8.getIcon(), LARGETURBINE_TU9.getIcon(), };
public static IIcon[] OVERLAY_PLASMA_TURBINE_ACTIVE = new IIcon[] { LARGETURBINE_TU_ACTIVE1.getIcon(),
- LARGETURBINE_TU_ACTIVE2.getIcon(), LARGETURBINE_TU_ACTIVE3.getIcon(), LARGETURBINE_TU_ACTIVE4.getIcon(),
- LARGETURBINE_TU_ACTIVE5.getIcon(), LARGETURBINE_TU_ACTIVE6.getIcon(), LARGETURBINE_TU_ACTIVE7.getIcon(),
- LARGETURBINE_TU_ACTIVE8.getIcon(), LARGETURBINE_TU_ACTIVE9.getIcon(), };
+ LARGETURBINE_TU_ACTIVE2.getIcon(), LARGETURBINE_TU_ACTIVE3.getIcon(), LARGETURBINE_TU_ACTIVE4.getIcon(),
+ LARGETURBINE_TU_ACTIVE5.getIcon(), LARGETURBINE_TU_ACTIVE6.getIcon(), LARGETURBINE_TU_ACTIVE7.getIcon(),
+ LARGETURBINE_TU_ACTIVE8.getIcon(), LARGETURBINE_TU_ACTIVE9.getIcon(), };
public static IIcon[] OVERLAY_SC_TURBINE = new IIcon[] { OVERLAY_SC_TURBINE1.getIcon(),
- OVERLAY_SC_TURBINE2.getIcon(), OVERLAY_SC_TURBINE3.getIcon(), OVERLAY_SC_TURBINE4.getIcon(),
- OVERLAY_SC_TURBINE5.getIcon(), OVERLAY_SC_TURBINE6.getIcon(), OVERLAY_SC_TURBINE7.getIcon(),
- OVERLAY_SC_TURBINE8.getIcon(), OVERLAY_SC_TURBINE9.getIcon(), };
+ OVERLAY_SC_TURBINE2.getIcon(), OVERLAY_SC_TURBINE3.getIcon(), OVERLAY_SC_TURBINE4.getIcon(),
+ OVERLAY_SC_TURBINE5.getIcon(), OVERLAY_SC_TURBINE6.getIcon(), OVERLAY_SC_TURBINE7.getIcon(),
+ OVERLAY_SC_TURBINE8.getIcon(), OVERLAY_SC_TURBINE9.getIcon(), };
public static IIcon[] OVERLAY_SC_TURBINE_ACTIVE = new IIcon[] { OVERLAY_SC_TURBINE1_ACTIVE.getIcon(),
- OVERLAY_SC_TURBINE2_ACTIVE.getIcon(), OVERLAY_SC_TURBINE3_ACTIVE.getIcon(),
- OVERLAY_SC_TURBINE4_ACTIVE.getIcon(), OVERLAY_SC_TURBINE5_ACTIVE.getIcon(),
- OVERLAY_SC_TURBINE6_ACTIVE.getIcon(), OVERLAY_SC_TURBINE7_ACTIVE.getIcon(),
- OVERLAY_SC_TURBINE8_ACTIVE.getIcon(), OVERLAY_SC_TURBINE9_ACTIVE.getIcon(), };
+ OVERLAY_SC_TURBINE2_ACTIVE.getIcon(), OVERLAY_SC_TURBINE3_ACTIVE.getIcon(),
+ OVERLAY_SC_TURBINE4_ACTIVE.getIcon(), OVERLAY_SC_TURBINE5_ACTIVE.getIcon(),
+ OVERLAY_SC_TURBINE6_ACTIVE.getIcon(), OVERLAY_SC_TURBINE7_ACTIVE.getIcon(),
+ OVERLAY_SC_TURBINE8_ACTIVE.getIcon(), OVERLAY_SC_TURBINE9_ACTIVE.getIcon(), };
public static IIcon handleCasingsGT(final IBlockAccess aWorld, final int xCoord, final int yCoord, final int zCoord,
- final ForgeDirection side, final GregtechMetaSpecialMultiCasings i) {
+ final ForgeDirection side, final GregtechMetaSpecialMultiCasings i) {
final int tMeta = aWorld.getBlockMetadata(xCoord, yCoord, zCoord);
// 0 shaft
@@ -206,86 +202,86 @@ public class LargeTurbineTextureHandler {
TileEntity tTileEntity;
IMetaTileEntity tMetaTileEntity;
if ((null != (tTileEntity = aWorld
- .getTileEntity(xCoord + (side == ForgeDirection.SOUTH ? 1 : -1), yCoord - 1, zCoord)))
- && ((tTileEntity instanceof IGregTechTileEntity))
- && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
- && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
- && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
+ .getTileEntity(xCoord + (side == ForgeDirection.SOUTH ? 1 : -1), yCoord - 1, zCoord)))
+ && ((tTileEntity instanceof IGregTechTileEntity))
+ && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
+ && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
+ && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
if (isUsingAnimatedTexture(tTileEntity)) {
return mGetCurrentTextureSet_ACTIVE[0];
}
return mGetCurrentTextureSet[0];
}
if ((null != (tTileEntity = aWorld
- .getTileEntity(xCoord + (side == ForgeDirection.SOUTH ? 1 : -1), yCoord, zCoord)))
- && ((tTileEntity instanceof IGregTechTileEntity))
- && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
- && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
- && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
+ .getTileEntity(xCoord + (side == ForgeDirection.SOUTH ? 1 : -1), yCoord, zCoord)))
+ && ((tTileEntity instanceof IGregTechTileEntity))
+ && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
+ && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
+ && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
if (isUsingAnimatedTexture(tTileEntity)) {
return mGetCurrentTextureSet_ACTIVE[3];
}
return mGetCurrentTextureSet[3];
}
if ((null != (tTileEntity = aWorld
- .getTileEntity(xCoord + (side == ForgeDirection.SOUTH ? 1 : -1), yCoord + 1, zCoord)))
- && ((tTileEntity instanceof IGregTechTileEntity))
- && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
- && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
- && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
+ .getTileEntity(xCoord + (side == ForgeDirection.SOUTH ? 1 : -1), yCoord + 1, zCoord)))
+ && ((tTileEntity instanceof IGregTechTileEntity))
+ && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
+ && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
+ && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
if (isUsingAnimatedTexture(tTileEntity)) {
return mGetCurrentTextureSet_ACTIVE[6];
}
return mGetCurrentTextureSet[6];
}
if ((null != (tTileEntity = aWorld.getTileEntity(xCoord, yCoord - 1, zCoord)))
- && ((tTileEntity instanceof IGregTechTileEntity))
- && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
- && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
- && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
+ && ((tTileEntity instanceof IGregTechTileEntity))
+ && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
+ && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
+ && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
if (isUsingAnimatedTexture(tTileEntity)) {
return mGetCurrentTextureSet_ACTIVE[1];
}
return mGetCurrentTextureSet[1];
}
if ((null != (tTileEntity = aWorld.getTileEntity(xCoord, yCoord + 1, zCoord)))
- && ((tTileEntity instanceof IGregTechTileEntity))
- && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
- && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
- && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
+ && ((tTileEntity instanceof IGregTechTileEntity))
+ && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
+ && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
+ && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
if (isUsingAnimatedTexture(tTileEntity)) {
return mGetCurrentTextureSet_ACTIVE[7];
}
return mGetCurrentTextureSet[7];
}
if ((null != (tTileEntity = aWorld
- .getTileEntity(xCoord + (side == ForgeDirection.NORTH ? 1 : -1), yCoord + 1, zCoord)))
- && ((tTileEntity instanceof IGregTechTileEntity))
- && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
- && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
- && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
+ .getTileEntity(xCoord + (side == ForgeDirection.NORTH ? 1 : -1), yCoord + 1, zCoord)))
+ && ((tTileEntity instanceof IGregTechTileEntity))
+ && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
+ && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
+ && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
if (isUsingAnimatedTexture(tTileEntity)) {
return mGetCurrentTextureSet_ACTIVE[8];
}
return mGetCurrentTextureSet[8];
}
if ((null != (tTileEntity = aWorld
- .getTileEntity(xCoord + (side == ForgeDirection.NORTH ? 1 : -1), yCoord, zCoord)))
- && ((tTileEntity instanceof IGregTechTileEntity))
- && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
- && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
- && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
+ .getTileEntity(xCoord + (side == ForgeDirection.NORTH ? 1 : -1), yCoord, zCoord)))
+ && ((tTileEntity instanceof IGregTechTileEntity))
+ && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
+ && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
+ && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
if (isUsingAnimatedTexture(tTileEntity)) {
return mGetCurrentTextureSet_ACTIVE[5];
}
return mGetCurrentTextureSet[5];
}
if ((null != (tTileEntity = aWorld
- .getTileEntity(xCoord + (side == ForgeDirection.NORTH ? 1 : -1), yCoord - 1, zCoord)))
- && ((tTileEntity instanceof IGregTechTileEntity))
- && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
- && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
- && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
+ .getTileEntity(xCoord + (side == ForgeDirection.NORTH ? 1 : -1), yCoord - 1, zCoord)))
+ && ((tTileEntity instanceof IGregTechTileEntity))
+ && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
+ && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
+ && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
if (isUsingAnimatedTexture(tTileEntity)) {
return mGetCurrentTextureSet_ACTIVE[2];
}
@@ -295,86 +291,86 @@ public class LargeTurbineTextureHandler {
TileEntity tTileEntity;
Object tMetaTileEntity;
if ((null != (tTileEntity = aWorld
- .getTileEntity(xCoord, yCoord - 1, zCoord + (side == ForgeDirection.WEST ? 1 : -1))))
- && ((tTileEntity instanceof IGregTechTileEntity))
- && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
- && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
- && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
+ .getTileEntity(xCoord, yCoord - 1, zCoord + (side == ForgeDirection.WEST ? 1 : -1))))
+ && ((tTileEntity instanceof IGregTechTileEntity))
+ && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
+ && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
+ && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
if (isUsingAnimatedTexture(tTileEntity)) {
return mGetCurrentTextureSet_ACTIVE[0];
}
return mGetCurrentTextureSet[0];
}
if ((null != (tTileEntity = aWorld
- .getTileEntity(xCoord, yCoord, zCoord + (side == ForgeDirection.WEST ? 1 : -1))))
- && ((tTileEntity instanceof IGregTechTileEntity))
- && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
- && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
- && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
+ .getTileEntity(xCoord, yCoord, zCoord + (side == ForgeDirection.WEST ? 1 : -1))))
+ && ((tTileEntity instanceof IGregTechTileEntity))
+ && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
+ && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
+ && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
if (isUsingAnimatedTexture(tTileEntity)) {
return mGetCurrentTextureSet_ACTIVE[3];
}
return mGetCurrentTextureSet[3];
}
if ((null != (tTileEntity = aWorld
- .getTileEntity(xCoord, yCoord + 1, zCoord + (side == ForgeDirection.WEST ? 1 : -1))))
- && ((tTileEntity instanceof IGregTechTileEntity))
- && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
- && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
- && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
+ .getTileEntity(xCoord, yCoord + 1, zCoord + (side == ForgeDirection.WEST ? 1 : -1))))
+ && ((tTileEntity instanceof IGregTechTileEntity))
+ && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
+ && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
+ && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
if (isUsingAnimatedTexture(tTileEntity)) {
return mGetCurrentTextureSet_ACTIVE[6];
}
return mGetCurrentTextureSet[6];
}
if ((null != (tTileEntity = aWorld.getTileEntity(xCoord, yCoord - 1, zCoord)))
- && ((tTileEntity instanceof IGregTechTileEntity))
- && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
- && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
- && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
+ && ((tTileEntity instanceof IGregTechTileEntity))
+ && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
+ && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
+ && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
if (isUsingAnimatedTexture(tTileEntity)) {
return mGetCurrentTextureSet_ACTIVE[1];
}
return mGetCurrentTextureSet[1];
}
if ((null != (tTileEntity = aWorld.getTileEntity(xCoord, yCoord + 1, zCoord)))
- && ((tTileEntity instanceof IGregTechTileEntity))
- && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
- && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
- && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
+ && ((tTileEntity instanceof IGregTechTileEntity))
+ && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
+ && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
+ && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
if (isUsingAnimatedTexture(tTileEntity)) {
return mGetCurrentTextureSet_ACTIVE[7];
}
return mGetCurrentTextureSet[7];
}
if ((null != (tTileEntity = aWorld
- .getTileEntity(xCoord, yCoord + 1, zCoord + (side == ForgeDirection.EAST ? 1 : -1))))
- && ((tTileEntity instanceof IGregTechTileEntity))
- && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
- && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
- && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
+ .getTileEntity(xCoord, yCoord + 1, zCoord + (side == ForgeDirection.EAST ? 1 : -1))))
+ && ((tTileEntity instanceof IGregTechTileEntity))
+ && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
+ && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
+ && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
if (isUsingAnimatedTexture(tTileEntity)) {
return mGetCurrentTextureSet_ACTIVE[8];
}
return mGetCurrentTextureSet[8];
}
if ((null != (tTileEntity = aWorld
- .getTileEntity(xCoord, yCoord, zCoord + (side == ForgeDirection.EAST ? 1 : -1))))
- && ((tTileEntity instanceof IGregTechTileEntity))
- && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
- && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
- && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
+ .getTileEntity(xCoord, yCoord, zCoord + (side == ForgeDirection.EAST ? 1 : -1))))
+ && ((tTileEntity instanceof IGregTechTileEntity))
+ && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
+ && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
+ && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
if (isUsingAnimatedTexture(tTileEntity)) {
return mGetCurrentTextureSet_ACTIVE[5];
}
return mGetCurrentTextureSet[5];
}
if ((null != (tTileEntity = aWorld
- .getTileEntity(xCoord, yCoord - 1, zCoord + (side == ForgeDirection.EAST ? 1 : -1))))
- && ((tTileEntity instanceof IGregTechTileEntity))
- && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
- && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
- && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
+ .getTileEntity(xCoord, yCoord - 1, zCoord + (side == ForgeDirection.EAST ? 1 : -1))))
+ && ((tTileEntity instanceof IGregTechTileEntity))
+ && (((IGregTechTileEntity) tTileEntity).getFrontFacing() == side)
+ && (null != (tMetaTileEntity = ((IGregTechTileEntity) tTileEntity).getMetaTileEntity()))
+ && ((tMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine))) {
if (isUsingAnimatedTexture(tTileEntity)) {
return mGetCurrentTextureSet_ACTIVE[2];
}
@@ -393,7 +389,8 @@ public class LargeTurbineTextureHandler {
if (aTile != null) {
final IMetaTileEntity aMetaTileEntity = aTile.getMetaTileEntity();
if (aMetaTileEntity != null && aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Turbine) {
- aVal = ((GT_MetaTileEntity_Hatch_Turbine) aMetaTileEntity).getBaseMetaTileEntity().isActive();
+ aVal = ((GT_MetaTileEntity_Hatch_Turbine) aMetaTileEntity).getBaseMetaTileEntity()
+ .isActive();
// Logger.INFO("Returning "+aVal+" as Rotor Assembly controller status");
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/covers/GTPP_Cover_Overflow.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/covers/GTPP_Cover_Overflow.java
index c92d223eb3..8b75f4f156 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/covers/GTPP_Cover_Overflow.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/covers/GTPP_Cover_Overflow.java
@@ -32,7 +32,7 @@ public class GTPP_Cover_Overflow extends GT_CoverBehavior {
}
public int doCoverThings(ForgeDirection side, byte aInputRedstone, int aCoverID, int aCoverVariable,
- ICoverable aTileEntity, long aTimer) {
+ ICoverable aTileEntity, long aTimer) {
if (aCoverVariable == 0) {
return aCoverVariable;
}
@@ -66,7 +66,7 @@ public class GTPP_Cover_Overflow extends GT_CoverBehavior {
}
public int onCoverScrewdriverclick(ForgeDirection side, int aCoverID, int aCoverVariable, ICoverable aTileEntity,
- EntityPlayer aPlayer, float aX, float aY, float aZ) {
+ EntityPlayer aPlayer, float aX, float aY, float aZ) {
if (GT_Utility.getClickedFacingCoords(side, aX, aY, aZ)[0] >= 0.5F) {
aCoverVariable += (mMaxTransferRate * (aPlayer.isSneaking() ? 0.1f : 0.01f));
} else {
@@ -79,13 +79,13 @@ public class GTPP_Cover_Overflow extends GT_CoverBehavior {
aCoverVariable = mMaxTransferRate;
}
GT_Utility.sendChatToPlayer(
- aPlayer,
- GT_Utility.trans("322", "Overflow point: ") + aCoverVariable + GT_Utility.trans("323", "L"));
+ aPlayer,
+ GT_Utility.trans("322", "Overflow point: ") + aCoverVariable + GT_Utility.trans("323", "L"));
return aCoverVariable;
}
public boolean onCoverRightclick(ForgeDirection side, int aCoverID, int aCoverVariable, ICoverable aTileEntity,
- EntityPlayer aPlayer, float aX, float aY, float aZ) {
+ EntityPlayer aPlayer, float aX, float aY, float aZ) {
boolean aShift = aPlayer.isSneaking();
int aAmount = aShift ? 128 : 8;
if (GT_Utility.getClickedFacingCoords(side, aX, aY, aZ)[0] >= 0.5F) {
@@ -100,8 +100,8 @@ public class GTPP_Cover_Overflow extends GT_CoverBehavior {
aCoverVariable = mMaxTransferRate;
}
GT_Utility.sendChatToPlayer(
- aPlayer,
- GT_Utility.trans("322", "Overflow point: ") + aCoverVariable + GT_Utility.trans("323", "L"));
+ aPlayer,
+ GT_Utility.trans("322", "Overflow point: ") + aCoverVariable + GT_Utility.trans("323", "L"));
aTileEntity.setCoverDataAtSide(side, new ISerializableObject.LegacyCoverData(aCoverVariable));
return true;
}
@@ -123,22 +123,22 @@ public class GTPP_Cover_Overflow extends GT_CoverBehavior {
}
public boolean letsItemsIn(ForgeDirection side, int aCoverID, int aCoverVariable, int aSlot,
- ICoverable aTileEntity) {
+ ICoverable aTileEntity) {
return true;
}
public boolean letsItemsOut(ForgeDirection side, int aCoverID, int aCoverVariable, int aSlot,
- ICoverable aTileEntity) {
+ ICoverable aTileEntity) {
return true;
}
public boolean letsFluidIn(ForgeDirection side, int aCoverID, int aCoverVariable, Fluid aFluid,
- ICoverable aTileEntity) {
+ ICoverable aTileEntity) {
return false;
}
public boolean letsFluidOut(ForgeDirection side, int aCoverID, int aCoverVariable, Fluid aFluid,
- ICoverable aTileEntity) {
+ ICoverable aTileEntity) {
return true;
}
@@ -183,20 +183,21 @@ public class GTPP_Cover_Overflow extends GT_CoverBehavior {
protected void addUIWidgets(ModularWindow.Builder builder) {
AtomicBoolean warn = new AtomicBoolean(false);
- builder.widget(
+ builder
+ .widget(
new CoverDataControllerWidget<>(this::getCoverData, this::setCoverData, GTPP_Cover_Overflow.this)
- .addFollower(
- new CoverDataFollower_NumericWidget<>(),
- coverData -> (double) convert(coverData),
- (coverData, state) -> new ISerializableObject.LegacyCoverData(state.intValue()),
- widget -> widget.setBounds(0, mMaxTransferRate).setScrollValues(1000, 144, 100000)
- .setFocusOnGuiOpen(true)
- .setPos(startX + spaceX * 0, startY + spaceY * 1 + 8)
- .setSize(spaceX * 4 - 3, 12)))
- .widget(
- new TextWidget(GT_Utility.trans("322", "Overflow point: "))
- .setDefaultColor(COLOR_TEXT_GRAY.get())
- .setPos(startX, 4 + startY + spaceY * 0 + 8));
+ .addFollower(
+ new CoverDataFollower_NumericWidget<>(),
+ coverData -> (double) convert(coverData),
+ (coverData, state) -> new ISerializableObject.LegacyCoverData(state.intValue()),
+ widget -> widget.setBounds(0, mMaxTransferRate)
+ .setScrollValues(1000, 144, 100000)
+ .setFocusOnGuiOpen(true)
+ .setPos(startX + spaceX * 0, startY + spaceY * 1 + 8)
+ .setSize(spaceX * 4 - 3, 12)))
+ .widget(
+ new TextWidget(GT_Utility.trans("322", "Overflow point: ")).setDefaultColor(COLOR_TEXT_GRAY.get())
+ .setPos(startX, 4 + startY + spaceY * 0 + 8));
}
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/covers/GTPP_Cover_ToggleVisual.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/covers/GTPP_Cover_ToggleVisual.java
index cea96cefea..42ab793c9c 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/covers/GTPP_Cover_ToggleVisual.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/covers/GTPP_Cover_ToggleVisual.java
@@ -29,7 +29,7 @@ public class GTPP_Cover_ToggleVisual extends GT_CoverBehavior {
public static String generateUniqueKey(ForgeDirection side, ICoverable aEntity) {
try {
BlockPos aPos = new BlockPos(
- aEntity.getIGregTechTileEntity(aEntity.getXCoord(), aEntity.getYCoord(), aEntity.getZCoord()));
+ aEntity.getIGregTechTileEntity(aEntity.getXCoord(), aEntity.getYCoord(), aEntity.getZCoord()));
String s = aEntity.getInventoryName() + "." + aPos.getUniqueIdentifier() + side.name();
return s;
@@ -39,14 +39,14 @@ public class GTPP_Cover_ToggleVisual extends GT_CoverBehavior {
}
public boolean onCoverRightclick(ForgeDirection side, int aCoverID, int aCoverVariable, ICoverable aTileEntity,
- EntityPlayer aPlayer, float aX, float aY, float aZ) {
+ EntityPlayer aPlayer, float aX, float aY, float aZ) {
PlayerUtils
- .messagePlayer(aPlayer, GT_Utility.trans("756", "Connectable: ") + getConnectionState(aCoverVariable));
+ .messagePlayer(aPlayer, GT_Utility.trans("756", "Connectable: ") + getConnectionState(aCoverVariable));
return super.onCoverRightclick(side, aCoverID, aCoverVariable, aTileEntity, aPlayer, aX, aY, aZ);
}
public int onCoverScrewdriverclick(ForgeDirection side, int aCoverID, int aCoverVariable, ICoverable aTileEntity,
- EntityPlayer aPlayer, float aX, float aY, float aZ) {
+ EntityPlayer aPlayer, float aX, float aY, float aZ) {
return super.onCoverScrewdriverclick(side, aCoverID, aCoverVariable, aTileEntity, aPlayer, aX, aY, aZ);
}
@@ -59,22 +59,22 @@ public class GTPP_Cover_ToggleVisual extends GT_CoverBehavior {
}
public boolean letsFluidIn(ForgeDirection side, int aCoverID, int aCoverVariable, Fluid aFluid,
- ICoverable aTileEntity) {
+ ICoverable aTileEntity) {
return getConnectionState(aCoverVariable);
}
public boolean letsFluidOut(ForgeDirection side, int aCoverID, int aCoverVariable, Fluid aFluid,
- ICoverable aTileEntity) {
+ ICoverable aTileEntity) {
return getConnectionState(aCoverVariable);
}
public boolean letsItemsIn(ForgeDirection side, int aCoverID, int aCoverVariable, int aSlot,
- ICoverable aTileEntity) {
+ ICoverable aTileEntity) {
return getConnectionState(aCoverVariable);
}
public boolean letsItemsOut(ForgeDirection side, int aCoverID, int aCoverVariable, int aSlot,
- ICoverable aTileEntity) {
+ ICoverable aTileEntity) {
return getConnectionState(aCoverVariable);
}
@@ -84,7 +84,7 @@ public class GTPP_Cover_ToggleVisual extends GT_CoverBehavior {
@Override
public int doCoverThings(ForgeDirection side, byte aInputRedstone, int aCoverID, int aCoverVariable,
- ICoverable aTileEntity, long aTimer) {
+ ICoverable aTileEntity, long aTimer) {
try {
String aKey = generateUniqueKey(side, aTileEntity);
Integer b = sConnectionStateForEntityMap.get(aKey);
@@ -120,7 +120,7 @@ public class GTPP_Cover_ToggleVisual extends GT_CoverBehavior {
@Override
public byte getRedstoneInput(ForgeDirection side, byte aInputRedstone, int aCoverID, int aCoverVariable,
- ICoverable aTileEntity) {
+ ICoverable aTileEntity) {
if (!getConnectionState(aCoverVariable)) {
return 0;
}
@@ -142,7 +142,7 @@ public class GTPP_Cover_ToggleVisual extends GT_CoverBehavior {
@Override
public boolean onCoverRemoval(ForgeDirection side, int aCoverID, int aCoverVariable, ICoverable aTileEntity,
- boolean aForced) {
+ boolean aForced) {
String aKey = generateUniqueKey(side, aTileEntity);
sConnectionStateForEntityMap.remove(aKey);
// Logger.INFO("Unmapping key "+aKey+".");
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/helpers/ChargingHelper.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/helpers/ChargingHelper.java
index 0551f66aa3..924484e098 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/helpers/ChargingHelper.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/helpers/ChargingHelper.java
@@ -77,9 +77,8 @@ public class ChargingHelper {
for (GregtechMetaWirelessCharger mEntityTemp : mChargerMap.values()) {
if (mEntityTemp != null) {
- if (mEntityTemp.getBaseMetaTileEntity() == null
- || !mEntityTemp.getBaseMetaTileEntity().isAllowedToWork())
- continue;
+ if (mEntityTemp.getBaseMetaTileEntity() == null || !mEntityTemp.getBaseMetaTileEntity()
+ .isAllowedToWork()) continue;
if (mPlayerMan.getEntityWorld().provider.dimensionId == mEntityTemp.getDimensionID()) {
mVoltage = mEntityTemp.maxEUInput();
mEuStored = mEntityTemp.getEUVar();
@@ -123,7 +122,8 @@ public class ChargingHelper {
if (!mChargerMap.isEmpty()) {
for (BlockPos aPos : mChargerMap.keySet()) {
GregtechMetaWirelessCharger r = mChargerMap.get(aPos);
- if (r == null || r.getBaseMetaTileEntity().isInvalidTileEntity()) {
+ if (r == null || r.getBaseMetaTileEntity()
+ .isInvalidTileEntity()) {
mChargerMap.remove(aPos);
}
}
@@ -179,7 +179,7 @@ public class ChargingHelper {
}
private boolean canCharge(GregtechMetaWirelessCharger charger, EntityPlayer chargeablePlayer,
- Map<String, UUID> longRangeChargers, Map<String, UUID> shortRangeChargers) {
+ Map<String, UUID> longRangeChargers, Map<String, UUID> shortRangeChargers) {
if (charger.getMode() == 0) {
return !longRangeChargers.isEmpty() && longRangeChargers.containsKey(chargeablePlayer.getDisplayName());
} else if (charger.getMode() == 1) {
@@ -197,8 +197,8 @@ public class ChargingHelper {
return 0;
}
return mEntityTemp.getDistanceBetweenTwoPositions(
- mEntityTemp.getTileEntityPosition(),
- mEntityTemp.getPositionOfEntity(mPlayerMan));
+ mEntityTemp.getTileEntityPosition(),
+ mEntityTemp.getPositionOfEntity(mPlayerMan));
}
private void chargeItems(@Nonnull GregtechMetaWirelessCharger mEntity, ItemStack[] mItems) {
@@ -235,13 +235,17 @@ public class ChargingHelper {
// Try to get charge direct from NBT for GT and IC2 stacks
if (mTemp.getItem() instanceof GT_MetaGenerated_Tool_01
- || mTemp.getItem() instanceof GT_MetaGenerated_Item_01
- || mTemp.getItem() instanceof GT_MetaGenerated_Item_02
- || mTemp.getItem() instanceof GT_MetaGenerated_Item_03
- || mTemp.getItem().getClass().getName()
- .equalsIgnoreCase(GT_MetaGenerated_Tool_01.class.getName())) {
+ || mTemp.getItem() instanceof GT_MetaGenerated_Item_01
+ || mTemp.getItem() instanceof GT_MetaGenerated_Item_02
+ || mTemp.getItem() instanceof GT_MetaGenerated_Item_03
+ || mTemp.getItem()
+ .getClass()
+ .getName()
+ .equalsIgnoreCase(GT_MetaGenerated_Tool_01.class.getName())) {
if (!NBTUtils.hasKey(mTemp, "GT.ItemCharge")) {
- if (!mTemp.getDisplayName().toLowerCase().contains("battery")) {
+ if (!mTemp.getDisplayName()
+ .toLowerCase()
+ .contains("battery")) {
if (!GT_ModHandler.isElectricItem(mTemp)) {
continue;
}
@@ -268,21 +272,20 @@ public class ChargingHelper {
if ((mitemCurrentCharge + (mVoltageIncrease * 20)) <= (mItemMaxCharge - (mVoltageIncrease * 20))) {
mMulti = 20;
} else if ((mitemCurrentCharge + (mVoltageIncrease * 10))
- <= (mItemMaxCharge - (mVoltageIncrease * 10))) {
- mMulti = 10;
- } else
- if ((mitemCurrentCharge + (mVoltageIncrease * 5))
- <= (mItemMaxCharge - (mVoltageIncrease * 5))) {
- mMulti = 5;
- } else {
- mMulti = 1;
- }
+ <= (mItemMaxCharge - (mVoltageIncrease * 10))) {
+ mMulti = 10;
+ } else if ((mitemCurrentCharge + (mVoltageIncrease * 5))
+ <= (mItemMaxCharge - (mVoltageIncrease * 5))) {
+ mMulti = 5;
+ } else {
+ mMulti = 1;
+ }
int mMultiVoltage = (int) (mMulti * mVoltageIncrease);
if ((mitemCurrentCharge + mMultiVoltage) <= mItemMaxCharge) {
if (GT_ModHandler.chargeElectricItem(mTemp, mMultiVoltage, Integer.MAX_VALUE, true, false)
- > 0) {
+ > 0) {
for (int i = 0; i < mMulti; i++) {
ElectricItem.manager.charge(mTemp, mVoltageIncrease, Integer.MAX_VALUE, false, false);
}
@@ -310,12 +313,12 @@ public class ChargingHelper {
IEnergyContainerItem rfItem = (IEnergyContainerItem) mTemp.getItem();
if (rfItem != null) {
long chargedPower = Math.min(
- rfItem.getMaxEnergyStored(mTemp) - rfItem.getEnergyStored(mTemp),
- mEntity.getEUVar() * mEUtoRF / 100L);
+ rfItem.getMaxEnergyStored(mTemp) - rfItem.getEnergyStored(mTemp),
+ mEntity.getEUVar() * mEUtoRF / 100L);
chargedPower = rfItem.receiveEnergy(
- mTemp,
- chargedPower > Integer.MAX_VALUE ? Integer.MAX_VALUE : (int) chargedPower,
- false);
+ mTemp,
+ chargedPower > Integer.MAX_VALUE ? Integer.MAX_VALUE : (int) chargedPower,
+ false);
chargedPower = chargedPower * 100L / mEUtoRF;
mEntity.setEUVar(Math.max(mEntity.getEUVar() - chargedPower, 0));
mEuStored = mEntity.getEUVar();
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/helpers/tesseract/TesseractHelper.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/helpers/tesseract/TesseractHelper.java
index a526e61107..3717f17554 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/helpers/tesseract/TesseractHelper.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/helpers/tesseract/TesseractHelper.java
@@ -26,7 +26,7 @@ public class TesseractHelper {
// Checks if a Generator is owned by a player.
public static final boolean isGeneratorOwnedByPlayer(EntityPlayer player,
- GT_MetaTileEntity_TesseractGenerator generator) {
+ GT_MetaTileEntity_TesseractGenerator generator) {
if (player == null) {
Logger.WARNING("Failed. [isGeneratorOwnedByPlayer]");
return false;
@@ -39,7 +39,8 @@ public class TesseractHelper {
Set<Entry<Integer, GT_MetaTileEntity_TesseractGenerator>> players = generators.entrySet();
for (Entry<Integer, GT_MetaTileEntity_TesseractGenerator> current : players) {
// Utils.LOG_WARNING("Success. [isGeneratorOwnedByPlayer] 3");
- if (current.getValue().equals(generator)) {
+ if (current.getValue()
+ .equals(generator)) {
// Utils.LOG_WARNING("Success. [isGeneratorOwnedByPlayer] 4");
return true;
}
@@ -51,7 +52,7 @@ public class TesseractHelper {
// Saves A Generator to the Players UUID map along with the Freq.
public static final boolean setGeneratorOwnershipByPlayer(EntityPlayer player, int freq,
- GT_MetaTileEntity_TesseractGenerator generator) {
+ GT_MetaTileEntity_TesseractGenerator generator) {
if (player == null) {
return false;
}
@@ -59,7 +60,7 @@ public class TesseractHelper {
Logger.WARNING("Setting Generator on " + freq + " for " + player.getDisplayName() + ".");
if (playerIdentifier != null) {
Map<Integer, GT_MetaTileEntity_TesseractGenerator> playerOwned = sTesseractGeneratorOwnershipMap
- .get(playerIdentifier);
+ .get(playerIdentifier);
if (playerOwned == null || playerOwned.isEmpty()) {
Map<Integer, GT_MetaTileEntity_TesseractGenerator> newOwnershipMap = new HashMap<>();
newOwnershipMap.put(freq, generator);
@@ -68,7 +69,7 @@ public class TesseractHelper {
return true;
} else if (sTesseractGeneratorOwnershipMap.containsKey(playerIdentifier)) {
Map<Integer, GT_MetaTileEntity_TesseractGenerator> ownershipMap = sTesseractGeneratorOwnershipMap
- .get(playerIdentifier);
+ .get(playerIdentifier);
if (!ownershipMap.containsKey(freq)) {
ownershipMap.put(freq, generator);
}
@@ -95,7 +96,8 @@ public class TesseractHelper {
Set<Entry<Integer, GT_MetaTileEntity_TesseractGenerator>> players = generators.entrySet();
for (Entry<Integer, GT_MetaTileEntity_TesseractGenerator> current : players) {
// Utils.LOG_WARNING("Success. [getGeneratorByFrequency] 2");
- if (current.getKey().equals(freq)) {
+ if (current.getKey()
+ .equals(freq)) {
// Utils.LOG_WARNING("Success. [getGeneratorByFrequency] 3");
Logger.WARNING("Success!");
return current.getValue();
@@ -113,7 +115,8 @@ public class TesseractHelper {
}
UUID playerIdentifier = player.getUniqueID();
if (!sTesseractGeneratorOwnershipMap.isEmpty() && playerIdentifier != null) {
- sTesseractGeneratorOwnershipMap.get(playerIdentifier).remove(frequency);
+ sTesseractGeneratorOwnershipMap.get(playerIdentifier)
+ .remove(frequency);
return true;
}
return false;
@@ -129,7 +132,7 @@ public class TesseractHelper {
// Checks if a Terminal is owned by a player.
public static final boolean isTerminalOwnedByPlayer(EntityPlayer player,
- GT_MetaTileEntity_TesseractTerminal generator) {
+ GT_MetaTileEntity_TesseractTerminal generator) {
if (player == null) {
return false;
}
@@ -138,7 +141,8 @@ public class TesseractHelper {
Map<Integer, GT_MetaTileEntity_TesseractTerminal> generators = getTerminalOwnershipByPlayer(player);
Set<Entry<Integer, GT_MetaTileEntity_TesseractTerminal>> players = generators.entrySet();
for (Entry<Integer, GT_MetaTileEntity_TesseractTerminal> current : players) {
- if (current.getValue().equals(generator)) {
+ if (current.getValue()
+ .equals(generator)) {
return true;
}
}
@@ -148,7 +152,7 @@ public class TesseractHelper {
// Saves A Terminal to the Players UUID map along with the Freq.
public static final boolean setTerminalOwnershipByPlayer(EntityPlayer player, int freq,
- GT_MetaTileEntity_TesseractTerminal generator) {
+ GT_MetaTileEntity_TesseractTerminal generator) {
if (player == null) {
return false;
}
@@ -156,7 +160,7 @@ public class TesseractHelper {
if (playerIdentifier != null) {
Logger.WARNING("Setting Terminal on " + freq + " for " + player.getDisplayName() + ".");
Map<Integer, GT_MetaTileEntity_TesseractTerminal> playerOwned = sTesseractTerminalOwnershipMap
- .get(playerIdentifier);
+ .get(playerIdentifier);
if (playerOwned == null || playerOwned.isEmpty()) {
Map<Integer, GT_MetaTileEntity_TesseractTerminal> newOwnershipMap = new HashMap<>();
newOwnershipMap.put(freq, generator);
@@ -165,7 +169,7 @@ public class TesseractHelper {
return true;
} else if (sTesseractTerminalOwnershipMap.containsKey(playerIdentifier)) {
Map<Integer, GT_MetaTileEntity_TesseractTerminal> ownershipMap = sTesseractTerminalOwnershipMap
- .get(playerIdentifier);
+ .get(playerIdentifier);
if (!ownershipMap.containsKey(freq)) {
ownershipMap.put(freq, generator);
}
@@ -189,7 +193,8 @@ public class TesseractHelper {
Map<Integer, GT_MetaTileEntity_TesseractTerminal> generators = getTerminalOwnershipByPlayer(player);
Set<Entry<Integer, GT_MetaTileEntity_TesseractTerminal>> players = generators.entrySet();
for (Entry<Integer, GT_MetaTileEntity_TesseractTerminal> current : players) {
- if (current.getKey().equals(freq)) {
+ if (current.getKey()
+ .equals(freq)) {
Logger.WARNING("Success!");
return current.getValue();
}
@@ -206,7 +211,8 @@ public class TesseractHelper {
}
UUID playerIdentifier = player.getUniqueID();
if (!sTesseractTerminalOwnershipMap.isEmpty() && playerIdentifier != null) {
- sTesseractTerminalOwnershipMap.get(playerIdentifier).remove(frequency);
+ sTesseractTerminalOwnershipMap.get(playerIdentifier)
+ .remove(frequency);
return true;
}
return false;
@@ -218,13 +224,14 @@ public class TesseractHelper {
*
*/
private static Map<Integer, GT_MetaTileEntity_TesseractGenerator> getGeneratorOwnershipByPlayer(
- EntityPlayer player) {
+ EntityPlayer player) {
UUID playerIdentifier = player.getUniqueID();
if (!sTesseractGeneratorOwnershipMap.isEmpty() && playerIdentifier != null) {
Set<Entry<UUID, Map<Integer, GT_MetaTileEntity_TesseractGenerator>>> players = sTesseractGeneratorOwnershipMap
- .entrySet();
+ .entrySet();
for (Entry<UUID, Map<Integer, GT_MetaTileEntity_TesseractGenerator>> current : players) {
- if (current.getKey().compareTo(playerIdentifier) == 0) {
+ if (current.getKey()
+ .compareTo(playerIdentifier) == 0) {
return current.getValue();
}
}
@@ -236,9 +243,10 @@ public class TesseractHelper {
UUID playerIdentifier = player.getUniqueID();
if (!sTesseractTerminalOwnershipMap.isEmpty() && playerIdentifier != null) {
Set<Entry<UUID, Map<Integer, GT_MetaTileEntity_TesseractTerminal>>> players = sTesseractTerminalOwnershipMap
- .entrySet();
+ .entrySet();
for (Entry<UUID, Map<Integer, GT_MetaTileEntity_TesseractTerminal>> current : players) {
- if (current.getKey().compareTo(playerIdentifier) == 0) {
+ if (current.getKey()
+ .compareTo(playerIdentifier) == 0) {
return current.getValue();
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/items/MetaCustomCoverItem.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/items/MetaCustomCoverItem.java
index 7126cb2480..8edb8c2cf9 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/items/MetaCustomCoverItem.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/items/MetaCustomCoverItem.java
@@ -37,7 +37,7 @@ public class MetaCustomCoverItem extends Item {
private final short[][] mRGB;
public MetaCustomCoverItem(String aModId, int aTextureCount, String aTextureSetName, IIconContainer[] aTextures,
- short[][] aRGB) {
+ short[][] aRGB) {
super();
icons = new IIcon[aTextureCount];
mModID = aModId;
@@ -53,12 +53,12 @@ public class MetaCustomCoverItem extends Item {
GameRegistry.registerItem(this, unlocalizedName);
registerCover();
Logger.INFO(
- "[Covers] Generated Custom covers for " + mModID
- + " using "
- + aTextureCount
- + " textures from "
- + mTextureSetName
- + ".");
+ "[Covers] Generated Custom covers for " + mModID
+ + " using "
+ + aTextureCount
+ + " textures from "
+ + mTextureSetName
+ + ".");
}
public boolean hide() {
@@ -73,9 +73,9 @@ public class MetaCustomCoverItem extends Item {
ItemUtils.hideItemFromNEI(thisStack);
}
GregTech_API.registerCover(
- thisStack,
- new GT_MultiTexture(new ITexture[] { new GT_RenderedTexture(mTextures[i]) }),
- new GTPP_Cover_ToggleVisual());
+ thisStack,
+ new GT_MultiTexture(new ITexture[] { new GT_RenderedTexture(mTextures[i]) }),
+ new GTPP_Cover_ToggleVisual());
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/items/MetaGeneratedGregtechItems.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/items/MetaGeneratedGregtechItems.java
index 204e05394d..8173a868aa 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/items/MetaGeneratedGregtechItems.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/items/MetaGeneratedGregtechItems.java
@@ -37,39 +37,39 @@ public class MetaGeneratedGregtechItems extends Gregtech_MetaItem_X32 {
// Extruder Shape
GregtechItemList.Shape_Extruder_WindmillShaft
- .set(this.addItem(40, "Extruder Shape (Shaft)", "Extruder Shape for making Windmill Shafts"));
+ .set(this.addItem(40, "Extruder Shape (Shaft)", "Extruder Shape for making Windmill Shafts"));
// Batteries
GregtechItemList.Battery_RE_EV_Sodium.set(
- this.addItem(
- tLastID = 50,
- "Quad Cell Sodium Battery",
- "Reusable",
- getTcAspectStack(TC_Aspects.ELECTRUM, 2L),
- getTcAspectStack(TC_Aspects.METALLUM, 2L),
- getTcAspectStack(TC_Aspects.POTENTIA, 2L)));
+ this.addItem(
+ tLastID = 50,
+ "Quad Cell Sodium Battery",
+ "Reusable",
+ getTcAspectStack(TC_Aspects.ELECTRUM, 2L),
+ getTcAspectStack(TC_Aspects.METALLUM, 2L),
+ getTcAspectStack(TC_Aspects.POTENTIA, 2L)));
this.setElectricStats(32000 + tLastID, 3200000L, GT_Values.V[4], 4L, -3L, true);
registerTieredTooltip(GregtechItemList.Battery_RE_EV_Sodium.get(1), EV);
GregtechItemList.Battery_RE_EV_Cadmium.set(
- this.addItem(
- tLastID = 52,
- "Quad Cell Cadmium Battery",
- "Reusable",
- getTcAspectStack(TC_Aspects.ELECTRUM, 1L),
- getTcAspectStack(TC_Aspects.METALLUM, 1L),
- getTcAspectStack(TC_Aspects.POTENTIA, 1L)));
+ this.addItem(
+ tLastID = 52,
+ "Quad Cell Cadmium Battery",
+ "Reusable",
+ getTcAspectStack(TC_Aspects.ELECTRUM, 1L),
+ getTcAspectStack(TC_Aspects.METALLUM, 1L),
+ getTcAspectStack(TC_Aspects.POTENTIA, 1L)));
this.setElectricStats(32000 + tLastID, 4800000L, GT_Values.V[4], 4L, -3L, true);
registerTieredTooltip(GregtechItemList.Battery_RE_EV_Cadmium.get(1), EV);
GregtechItemList.Battery_RE_EV_Lithium.set(
- this.addItem(
- tLastID = 54,
- "Quad Cell Lithium Battery",
- "Reusable",
- getTcAspectStack(TC_Aspects.ELECTRUM, 3L),
- getTcAspectStack(TC_Aspects.METALLUM, 3L),
- getTcAspectStack(TC_Aspects.POTENTIA, 3L)));
+ this.addItem(
+ tLastID = 54,
+ "Quad Cell Lithium Battery",
+ "Reusable",
+ getTcAspectStack(TC_Aspects.ELECTRUM, 3L),
+ getTcAspectStack(TC_Aspects.METALLUM, 3L),
+ getTcAspectStack(TC_Aspects.POTENTIA, 3L)));
this.setElectricStats(32000 + tLastID, 6400000L, GT_Values.V[4], 4L, -3L, true);
registerTieredTooltip(GregtechItemList.Battery_RE_EV_Lithium.get(1), EV);
@@ -77,66 +77,66 @@ public class MetaGeneratedGregtechItems extends Gregtech_MetaItem_X32 {
* Power Gems
*/
GregtechItemList.Battery_Gem_1.set(
- this.addItem(
- tLastID = 66,
- "Proton Cell",
- "Reusable",
- getTcAspectStack(TC_Aspects.ELECTRUM, 8L),
- getTcAspectStack(TC_Aspects.METALLUM, 24L),
- getTcAspectStack(TC_Aspects.POTENTIA, 16L)));
+ this.addItem(
+ tLastID = 66,
+ "Proton Cell",
+ "Reusable",
+ getTcAspectStack(TC_Aspects.ELECTRUM, 8L),
+ getTcAspectStack(TC_Aspects.METALLUM, 24L),
+ getTcAspectStack(TC_Aspects.POTENTIA, 16L)));
this.setElectricStats(32000 + tLastID, GT_Values.V[6] * 20 * 300 / 4, GT_Values.V[6], 6L, -3L, false);
GregtechItemList.Battery_Gem_2.set(
- this.addItem(
- tLastID = 68,
- "Electron Cell",
- "Reusable",
- getTcAspectStack(TC_Aspects.ELECTRUM, 16L),
- getTcAspectStack(TC_Aspects.METALLUM, 32L),
- getTcAspectStack(TC_Aspects.POTENTIA, 32L)));
+ this.addItem(
+ tLastID = 68,
+ "Electron Cell",
+ "Reusable",
+ getTcAspectStack(TC_Aspects.ELECTRUM, 16L),
+ getTcAspectStack(TC_Aspects.METALLUM, 32L),
+ getTcAspectStack(TC_Aspects.POTENTIA, 32L)));
this.setElectricStats(32000 + tLastID, GT_Values.V[7] * 20 * 300 / 4, GT_Values.V[7], 7L, -3L, false);
GregtechItemList.Battery_Gem_3.set(
- this.addItem(
- tLastID = 70,
- "Quark Entanglement",
- "Reusable",
- getTcAspectStack(TC_Aspects.ELECTRUM, 32L),
- getTcAspectStack(TC_Aspects.METALLUM, 48L),
- getTcAspectStack(TC_Aspects.POTENTIA, 64L)));
+ this.addItem(
+ tLastID = 70,
+ "Quark Entanglement",
+ "Reusable",
+ getTcAspectStack(TC_Aspects.ELECTRUM, 32L),
+ getTcAspectStack(TC_Aspects.METALLUM, 48L),
+ getTcAspectStack(TC_Aspects.POTENTIA, 64L)));
this.setElectricStats(32000 + tLastID, GT_Values.V[8] * 20 * 300 / 4, GT_Values.V[8], 8L, -3L, false);
// RTG Pellet
GregtechItemList.Pellet_RTG_PU238.set(
- this.addItem(
- 41,
- StringUtils.superscript("238") + "Pu Pellet",
- "",
- getTcAspectStack(TC_Aspects.RADIO, 4L),
- getTcAspectStack(TC_Aspects.POTENTIA, 2L),
- getTcAspectStack(TC_Aspects.METALLUM, 2L)));
+ this.addItem(
+ 41,
+ StringUtils.superscript("238") + "Pu Pellet",
+ "",
+ getTcAspectStack(TC_Aspects.RADIO, 4L),
+ getTcAspectStack(TC_Aspects.POTENTIA, 2L),
+ getTcAspectStack(TC_Aspects.METALLUM, 2L)));
GregtechItemList.Pellet_RTG_SR90.set(
- this.addItem(
- 42,
- StringUtils.superscript("90") + "Sr Pellet",
- "",
- getTcAspectStack(TC_Aspects.RADIO, 4L),
- getTcAspectStack(TC_Aspects.POTENTIA, 2L),
- getTcAspectStack(TC_Aspects.METALLUM, 2L)));
+ this.addItem(
+ 42,
+ StringUtils.superscript("90") + "Sr Pellet",
+ "",
+ getTcAspectStack(TC_Aspects.RADIO, 4L),
+ getTcAspectStack(TC_Aspects.POTENTIA, 2L),
+ getTcAspectStack(TC_Aspects.METALLUM, 2L)));
GregtechItemList.Pellet_RTG_PO210.set(
- this.addItem(
- 43,
- StringUtils.superscript("210") + "Po Pellet",
- "",
- getTcAspectStack(TC_Aspects.RADIO, 4L),
- getTcAspectStack(TC_Aspects.POTENTIA, 2L),
- getTcAspectStack(TC_Aspects.METALLUM, 2L)));
+ this.addItem(
+ 43,
+ StringUtils.superscript("210") + "Po Pellet",
+ "",
+ getTcAspectStack(TC_Aspects.RADIO, 4L),
+ getTcAspectStack(TC_Aspects.POTENTIA, 2L),
+ getTcAspectStack(TC_Aspects.METALLUM, 2L)));
GregtechItemList.Pellet_RTG_AM241.set(
- this.addItem(
- 44,
- StringUtils.superscript("241") + "Am Pellet",
- "",
- getTcAspectStack(TC_Aspects.RADIO, 4L),
- getTcAspectStack(TC_Aspects.POTENTIA, 2L),
- getTcAspectStack(TC_Aspects.METALLUM, 2L)));
+ this.addItem(
+ 44,
+ StringUtils.superscript("241") + "Am Pellet",
+ "",
+ getTcAspectStack(TC_Aspects.RADIO, 4L),
+ getTcAspectStack(TC_Aspects.POTENTIA, 2L),
+ getTcAspectStack(TC_Aspects.METALLUM, 2L)));
CORE.RA.addFuelForRTG(GregtechItemList.Pellet_RTG_PU238.get(1), MathUtils.roundToClosestInt(87.7f), 64);
CORE.RA.addFuelForRTG(GregtechItemList.Pellet_RTG_SR90.get(1), MathUtils.roundToClosestInt(28.8f), 32);
@@ -146,101 +146,101 @@ public class MetaGeneratedGregtechItems extends Gregtech_MetaItem_X32 {
// Computer Cube
GregtechItemList.Gregtech_Computer_Cube.set(
- this.addItem(
- tLastID = 55,
- "Gregtech Computer Cube",
- "Reusable",
- getTcAspectStack(TC_Aspects.ELECTRUM, 8L),
- getTcAspectStack(TC_Aspects.METALLUM, 8L),
- getTcAspectStack(TC_Aspects.POTENTIA, 8L)));
+ this.addItem(
+ tLastID = 55,
+ "Gregtech Computer Cube",
+ "Reusable",
+ getTcAspectStack(TC_Aspects.ELECTRUM, 8L),
+ getTcAspectStack(TC_Aspects.METALLUM, 8L),
+ getTcAspectStack(TC_Aspects.POTENTIA, 8L)));
this.setElectricStats(32000 + tLastID, GT_Values.V[6] * 10 * 60 * 20, GT_Values.V[5], 5L, -3L, false);
GregtechItemList.Cover_Overflow_LV.set(
- this.addItem(
- 72,
- "Overflow Valve (LV)",
- "Maximum void amount: 64,000",
- getTcAspectStack(TC_Aspects.ELECTRUM, 1L),
- getTcAspectStack(TC_Aspects.MACHINA, 1L),
- getTcAspectStack(TC_Aspects.ITER, 1L),
- getTcAspectStack(TC_Aspects.AQUA, 1L)));
+ this.addItem(
+ 72,
+ "Overflow Valve (LV)",
+ "Maximum void amount: 64,000",
+ getTcAspectStack(TC_Aspects.ELECTRUM, 1L),
+ getTcAspectStack(TC_Aspects.MACHINA, 1L),
+ getTcAspectStack(TC_Aspects.ITER, 1L),
+ getTcAspectStack(TC_Aspects.AQUA, 1L)));
GregtechItemList.Cover_Overflow_MV.set(
- this.addItem(
- 73,
- "Overflow Valve (MV)",
- "Maximum void amount: 512,000",
- getTcAspectStack(TC_Aspects.ELECTRUM, 1L),
- getTcAspectStack(TC_Aspects.MACHINA, 1L),
- getTcAspectStack(TC_Aspects.ITER, 1L),
- getTcAspectStack(TC_Aspects.AQUA, 1L)));
+ this.addItem(
+ 73,
+ "Overflow Valve (MV)",
+ "Maximum void amount: 512,000",
+ getTcAspectStack(TC_Aspects.ELECTRUM, 1L),
+ getTcAspectStack(TC_Aspects.MACHINA, 1L),
+ getTcAspectStack(TC_Aspects.ITER, 1L),
+ getTcAspectStack(TC_Aspects.AQUA, 1L)));
GregtechItemList.Cover_Overflow_HV.set(
- this.addItem(
- 74,
- "Overflow Valve (HV)",
- "Maximum void amount: 4,096,000",
- getTcAspectStack(TC_Aspects.ELECTRUM, 1L),
- getTcAspectStack(TC_Aspects.MACHINA, 1L),
- getTcAspectStack(TC_Aspects.ITER, 1L),
- getTcAspectStack(TC_Aspects.AQUA, 1L)));
+ this.addItem(
+ 74,
+ "Overflow Valve (HV)",
+ "Maximum void amount: 4,096,000",
+ getTcAspectStack(TC_Aspects.ELECTRUM, 1L),
+ getTcAspectStack(TC_Aspects.MACHINA, 1L),
+ getTcAspectStack(TC_Aspects.ITER, 1L),
+ getTcAspectStack(TC_Aspects.AQUA, 1L)));
GregtechItemList.Cover_Overflow_EV.set(
- this.addItem(
- 75,
- "Overflow Valve (EV)",
- "Maximum void amount: 32,768,000",
- getTcAspectStack(TC_Aspects.ELECTRUM, 1L),
- getTcAspectStack(TC_Aspects.MACHINA, 1L),
- getTcAspectStack(TC_Aspects.ITER, 1L),
- getTcAspectStack(TC_Aspects.AQUA, 1L)));
+ this.addItem(
+ 75,
+ "Overflow Valve (EV)",
+ "Maximum void amount: 32,768,000",
+ getTcAspectStack(TC_Aspects.ELECTRUM, 1L),
+ getTcAspectStack(TC_Aspects.MACHINA, 1L),
+ getTcAspectStack(TC_Aspects.ITER, 1L),
+ getTcAspectStack(TC_Aspects.AQUA, 1L)));
GregtechItemList.Cover_Overflow_IV.set(
- this.addItem(
- 76,
- "Overflow Valve (IV)",
- "Maximum void amount: 262,144,000",
- getTcAspectStack(TC_Aspects.ELECTRUM, 1L),
- getTcAspectStack(TC_Aspects.MACHINA, 1L),
- getTcAspectStack(TC_Aspects.ITER, 1L),
- getTcAspectStack(TC_Aspects.AQUA, 1L)));
+ this.addItem(
+ 76,
+ "Overflow Valve (IV)",
+ "Maximum void amount: 262,144,000",
+ getTcAspectStack(TC_Aspects.ELECTRUM, 1L),
+ getTcAspectStack(TC_Aspects.MACHINA, 1L),
+ getTcAspectStack(TC_Aspects.ITER, 1L),
+ getTcAspectStack(TC_Aspects.AQUA, 1L)));
GregTech_API.registerCover(
- GregtechItemList.Cover_Overflow_LV.get(1L),
- new GT_MultiTexture(
- Textures.BlockIcons.MACHINE_CASINGS[4][0],
- new GT_RenderedTexture(TexturesGtBlock.Overlay_Overflow_Valve)),
- new GTPP_Cover_Overflow(64));
+ GregtechItemList.Cover_Overflow_LV.get(1L),
+ new GT_MultiTexture(
+ Textures.BlockIcons.MACHINE_CASINGS[4][0],
+ new GT_RenderedTexture(TexturesGtBlock.Overlay_Overflow_Valve)),
+ new GTPP_Cover_Overflow(64));
GregTech_API.registerCover(
- GregtechItemList.Cover_Overflow_MV.get(1L),
- new GT_MultiTexture(
- Textures.BlockIcons.MACHINE_CASINGS[5][0],
- new GT_RenderedTexture(TexturesGtBlock.Overlay_Overflow_Valve)),
- new GTPP_Cover_Overflow(512));
+ GregtechItemList.Cover_Overflow_MV.get(1L),
+ new GT_MultiTexture(
+ Textures.BlockIcons.MACHINE_CASINGS[5][0],
+ new GT_RenderedTexture(TexturesGtBlock.Overlay_Overflow_Valve)),
+ new GTPP_Cover_Overflow(512));
GregTech_API.registerCover(
- GregtechItemList.Cover_Overflow_HV.get(1L),
- new GT_MultiTexture(
- Textures.BlockIcons.MACHINE_CASINGS[5][0],
- new GT_RenderedTexture(TexturesGtBlock.Overlay_Overflow_Valve)),
- new GTPP_Cover_Overflow(4096));
+ GregtechItemList.Cover_Overflow_HV.get(1L),
+ new GT_MultiTexture(
+ Textures.BlockIcons.MACHINE_CASINGS[5][0],
+ new GT_RenderedTexture(TexturesGtBlock.Overlay_Overflow_Valve)),
+ new GTPP_Cover_Overflow(4096));
GregTech_API.registerCover(
- GregtechItemList.Cover_Overflow_EV.get(1L),
- new GT_MultiTexture(
- Textures.BlockIcons.MACHINE_CASINGS[8][0],
- new GT_RenderedTexture(TexturesGtBlock.Overlay_Overflow_Valve)),
- new GTPP_Cover_Overflow(32768));
+ GregtechItemList.Cover_Overflow_EV.get(1L),
+ new GT_MultiTexture(
+ Textures.BlockIcons.MACHINE_CASINGS[8][0],
+ new GT_RenderedTexture(TexturesGtBlock.Overlay_Overflow_Valve)),
+ new GTPP_Cover_Overflow(32768));
GregTech_API.registerCover(
- GregtechItemList.Cover_Overflow_IV.get(1L),
- new GT_MultiTexture(
- Textures.BlockIcons.MACHINE_CASINGS[8][0],
- new GT_RenderedTexture(TexturesGtBlock.Overlay_Overflow_Valve)),
- new GTPP_Cover_Overflow(262144));
+ GregtechItemList.Cover_Overflow_IV.get(1L),
+ new GT_MultiTexture(
+ Textures.BlockIcons.MACHINE_CASINGS[8][0],
+ new GT_RenderedTexture(TexturesGtBlock.Overlay_Overflow_Valve)),
+ new GTPP_Cover_Overflow(262144));
// Fusion Reactor MK4 Singularity
GregtechItemList.Compressed_Fusion_Reactor.set(
- this.addItem(
- 100,
- "Hypervisor Matrix (Fusion)",
- "A memory unit containing an RI (Restricted Intelligence)"));
+ this.addItem(
+ 100,
+ "Hypervisor Matrix (Fusion)",
+ "A memory unit containing an RI (Restricted Intelligence)"));
GregtechItemList.Laser_Lens_Special
- .set(this.addItem(105, "Quantum Anomaly", "Probably should shoot it with lasers"));
+ .set(this.addItem(105, "Quantum Anomaly", "Probably should shoot it with lasers"));
GregtechItemList.Battery_Casing_Gem_1.set(this.addItem(106, "Containment Unit I", "Used in crafting"));
GregtechItemList.Battery_Casing_Gem_2.set(this.addItem(107, "Containment Unit II", "Used in crafting"));
@@ -248,13 +248,13 @@ public class MetaGeneratedGregtechItems extends Gregtech_MetaItem_X32 {
GregtechItemList.Battery_Casing_Gem_4.set(this.addItem(109, "Exotic Containment Unit", "Used in crafting"));
GregtechItemList.Battery_Gem_4.set(
- this.addItem(
- tLastID = 110,
- "Graviton Anomaly",
- "Reusable",
- getTcAspectStack(TC_Aspects.ELECTRUM, 64L),
- getTcAspectStack(TC_Aspects.METALLUM, 64L),
- getTcAspectStack(TC_Aspects.POTENTIA, 64L)));
+ this.addItem(
+ tLastID = 110,
+ "Graviton Anomaly",
+ "Reusable",
+ getTcAspectStack(TC_Aspects.ELECTRUM, 64L),
+ getTcAspectStack(TC_Aspects.METALLUM, 64L),
+ getTcAspectStack(TC_Aspects.POTENTIA, 64L)));
this.setElectricStats(32000 + tLastID, (64000000000L * 16), GT_Values.V[9], 9L, -3L, false);
/*
@@ -262,34 +262,31 @@ public class MetaGeneratedGregtechItems extends Gregtech_MetaItem_X32 {
*/
GregtechItemList.Laser_Lens_WoodsGlass.set(
- this.addItem(
- 140,
- "Wood's Glass Lens",
- "Allows UV & IF to pass through, blocks visible light spectrums"));
+ this.addItem(140, "Wood's Glass Lens", "Allows UV & IF to pass through, blocks visible light spectrums"));
// 141 now unused, was the ulv transmission component
int aStartID = 142;
GregtechItemList[] aTransParts = new GregtechItemList[] { GregtechItemList.TransmissionComponent_LV,
- GregtechItemList.TransmissionComponent_MV, GregtechItemList.TransmissionComponent_HV,
- GregtechItemList.TransmissionComponent_EV, GregtechItemList.TransmissionComponent_IV,
- GregtechItemList.TransmissionComponent_LuV, GregtechItemList.TransmissionComponent_ZPM,
- GregtechItemList.TransmissionComponent_UV, GregtechItemList.TransmissionComponent_UHV, };
+ GregtechItemList.TransmissionComponent_MV, GregtechItemList.TransmissionComponent_HV,
+ GregtechItemList.TransmissionComponent_EV, GregtechItemList.TransmissionComponent_IV,
+ GregtechItemList.TransmissionComponent_LuV, GregtechItemList.TransmissionComponent_ZPM,
+ GregtechItemList.TransmissionComponent_UV, GregtechItemList.TransmissionComponent_UHV, };
for (int tier = 1; tier < aTransParts.length + 1; tier++) {
aTransParts[tier - 1].set(
- this.addItem(
- aStartID++,
- "Transmission Component (" + GT_Values.VN[tier] + ")",
- "",
- getTcAspectStack(TC_Aspects.ELECTRUM, tier),
- getTcAspectStack(TC_Aspects.MACHINA, tier),
- getTcAspectStack(TC_Aspects.MAGNETO, tier)));
+ this.addItem(
+ aStartID++,
+ "Transmission Component (" + GT_Values.VN[tier] + ")",
+ "",
+ getTcAspectStack(TC_Aspects.ELECTRUM, tier),
+ getTcAspectStack(TC_Aspects.MACHINA, tier),
+ getTcAspectStack(TC_Aspects.MAGNETO, tier)));
}
// Distillus Chip
GregtechItemList.Distillus_Upgrade_Chip
- .set(this.addItem(151, "Distillus Upgrade Chip", "Used to upgrade Distillus to Tier 2"));
+ .set(this.addItem(151, "Distillus Upgrade Chip", "Used to upgrade Distillus to Tier 2"));
GregtechItemList.Maceration_Upgrade_Chip
- .set(this.addItem(152, "Maceration Upgrade Chip", "Used to upgrade Maceration Stack to Tier 2"));
+ .set(this.addItem(152, "Maceration Upgrade Chip", "Used to upgrade Maceration Stack to Tier 2"));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/items/MetaGeneratedGregtechTools.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/items/MetaGeneratedGregtechTools.java
index 5f39209178..30250a46f3 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/items/MetaGeneratedGregtechTools.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/items/MetaGeneratedGregtechTools.java
@@ -27,28 +27,28 @@ public class MetaGeneratedGregtechTools extends GT_MetaGenerated_Tool {
// Electric File
this.addTool(
- ANGLE_GRINDER,
- "Angle Grinder",
- "Hand-held electric filing device",
- new TOOL_Gregtech_AngleGrinder(),
- GregtechToolDictNames.craftingToolAngleGrinder,
- 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));
+ ANGLE_GRINDER,
+ "Angle Grinder",
+ "Hand-held electric filing device",
+ new TOOL_Gregtech_AngleGrinder(),
+ GregtechToolDictNames.craftingToolAngleGrinder,
+ 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));
// Electric Wire Cutter
GregTech_API.registerWireCutter(
- this.addTool(
- ELECTRIC_SNIPS,
- "Automatic Snips",
- "Hand-held electric wire cutter",
- new TOOL_Gregtech_ElectricSnips(),
- GregtechToolDictNames.craftingToolElectricSnips,
- ToolDictNames.craftingToolWireCutter,
- new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 4L),
- new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 4L),
- new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 4L)));
+ this.addTool(
+ ELECTRIC_SNIPS,
+ "Automatic Snips",
+ "Hand-held electric wire cutter",
+ new TOOL_Gregtech_ElectricSnips(),
+ GregtechToolDictNames.craftingToolElectricSnips,
+ ToolDictNames.craftingToolWireCutter,
+ new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 4L),
+ new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 4L),
+ new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 4L)));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/items/behaviours/Behaviour_Choocher.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/items/behaviours/Behaviour_Choocher.java
index 6a5bfb7838..f85822750d 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/items/behaviours/Behaviour_Choocher.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/items/behaviours/Behaviour_Choocher.java
@@ -20,20 +20,20 @@ public class Behaviour_Choocher extends Behaviour_None {
private final Behaviour_Wrench wrench = new Behaviour_Wrench(150);
private final Behaviour_Prospecting_Ex prospecting = new Behaviour_Prospecting_Ex(10, 1250);
private final String mTooltip1 = GT_LanguageManager
- .addStringLocalization("gt.behaviour.choochering1", "Current tool mode: ");
+ .addStringLocalization("gt.behaviour.choochering1", "Current tool mode: ");
private final String mTooltip2 = GT_LanguageManager
- .addStringLocalization("gt.behaviour.choochering2", "Change tool mode using Shift+Rightclick.");
+ .addStringLocalization("gt.behaviour.choochering2", "Change tool mode using Shift+Rightclick.");
private final String mTooltipH = GT_LanguageManager
- .addStringLocalization("gt.behaviour.prospectingEx", "Usable for Prospecting large areas.");
+ .addStringLocalization("gt.behaviour.prospectingEx", "Usable for Prospecting large areas.");
private final String mTooltipW = GT_LanguageManager
- .addStringLocalization("gt.behaviour.wrench", "Rotates Blocks on Rightclick.");
+ .addStringLocalization("gt.behaviour.wrench", "Rotates Blocks on Rightclick.");
public Behaviour_Choocher() {}
@Override
public boolean onItemUseFirst(final GT_MetaBase_Item aItem, final ItemStack aStack, final EntityPlayer aPlayer,
- final World aWorld, final int aX, final int aY, final int aZ, final ForgeDirection side, final float hitX,
- final float hitY, final float hitZ) {
+ final World aWorld, final int aX, final int aY, final int aZ, final ForgeDirection side, final float hitX,
+ final float hitY, final float hitZ) {
if (aWorld.isRemote) {
return false;
}
@@ -42,13 +42,15 @@ public class Behaviour_Choocher extends Behaviour_None {
if (NBTUtils.hasKey(aStack, "aMode")) {
inWrenchMode = NBTUtils.getBoolean(aStack, "aMode");
} else {
- aStack.getTagCompound().setBoolean("aMode", true);
+ aStack.getTagCompound()
+ .setBoolean("aMode", true);
inWrenchMode = true;
}
if (aPlayer.isSneaking()) {
boolean aModeNew = !inWrenchMode;
- aStack.getTagCompound().setBoolean("aMode", aModeNew);
+ aStack.getTagCompound()
+ .setBoolean("aMode", aModeNew);
PlayerUtils.messagePlayer(aPlayer, "Mode: " + (aModeNew ? "Wrench" : "Hammer"));
return true;
} else {
@@ -56,21 +58,22 @@ public class Behaviour_Choocher extends Behaviour_None {
return this.wrench.onItemUseFirst(aItem, aStack, aPlayer, aWorld, aX, aY, aZ, side, hitZ, hitZ, hitZ);
} else {
return this.prospecting
- .onItemUseFirst(aItem, aStack, aPlayer, aWorld, aX, aY, aZ, side, hitX, hitY, hitZ);
+ .onItemUseFirst(aItem, aStack, aPlayer, aWorld, aX, aY, aZ, side, hitX, hitY, hitZ);
}
}
}
@Override
public List<String> getAdditionalToolTips(final GT_MetaBase_Item aItem, final List<String> aList,
- final ItemStack aStack) {
+ final ItemStack aStack) {
boolean inWrenchMode;
if (NBTUtils.hasKey(aStack, "aMode")) {
inWrenchMode = NBTUtils.getBoolean(aStack, "aMode");
} else {
NBTUtils.setBoolean(aStack, "aMode", true);
- aStack.getTagCompound().setBoolean("aMode", true);
+ aStack.getTagCompound()
+ .setBoolean("aMode", true);
inWrenchMode = true;
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/items/behaviours/Behaviour_Electric_Lighter.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/items/behaviours/Behaviour_Electric_Lighter.java
index 6a4bd010fb..f3d7f87a86 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/items/behaviours/Behaviour_Electric_Lighter.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/items/behaviours/Behaviour_Electric_Lighter.java
@@ -29,11 +29,11 @@ import ic2.api.item.IElectricItemManager;
public class Behaviour_Electric_Lighter extends Behaviour_None {
private final String mTooltip = GT_LanguageManager
- .addStringLocalization("gt.behaviour.lighter.tooltip", "Can light things on Fire");
+ .addStringLocalization("gt.behaviour.lighter.tooltip", "Can light things on Fire");
private final String mTooltipUses = GT_LanguageManager
- .addStringLocalization("gt.behaviour.lighter.uses", "Remaining Uses:");
+ .addStringLocalization("gt.behaviour.lighter.uses", "Remaining Uses:");
private final String mTooltipUnstackable = GT_LanguageManager
- .addStringLocalization("gt.behaviour.unstackable", "Not usable when stacked!");
+ .addStringLocalization("gt.behaviour.unstackable", "Not usable when stacked!");
public Behaviour_Electric_Lighter() {}
@@ -44,13 +44,13 @@ public class Behaviour_Electric_Lighter extends Behaviour_None {
if (aEntity instanceof EntityCreeper) {
if (this.prepare(aStack) || aPlayer.capabilities.isCreativeMode) {
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();
rOutput = true;
}
@@ -63,7 +63,7 @@ public class Behaviour_Electric_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 ordinalSide, float hitX, float hitY, float hitZ) {
+ int aY, int aZ, int ordinalSide, float hitX, float hitY, float hitZ) {
if (!aWorld.isRemote && aStack != null && aStack.stackSize == 1) {
if (aPlayer.isSneaking()) {
Logger.INFO("Changing Mode");
@@ -71,20 +71,18 @@ public class Behaviour_Electric_Lighter extends Behaviour_None {
Logger.INFO("Is currently in Fireball mode? " + aCurrentMode);
boolean aNewMode = !aCurrentMode;
Logger.INFO("Is now set to Fireball mode? " + aNewMode);
- aStack.getTagCompound().setBoolean("aFireballMod", aNewMode);
+ aStack.getTagCompound()
+ .setBoolean("aFireballMod", aNewMode);
// NBTUtils.setBoolean(aStack, "aFireballMode", aNewMode);
PlayerUtils.messagePlayer(
- aPlayer,
- "Current Mode: " + EnumChatFormatting.RED + (aNewMode ? "Projectile" : "Fire Starter"));
+ aPlayer,
+ "Current Mode: " + EnumChatFormatting.RED + (aNewMode ? "Projectile" : "Fire Starter"));
} else {
boolean aCurrentMode = NBTUtils.getBoolean(aStack, "aFireballMode");
if (aCurrentMode) {
// Shoot Lightning Attack
- aWorld.playSoundAtEntity(
- aPlayer,
- "random.bow",
- 0.5F,
- 0.4F / (CORE.RANDOM.nextFloat() * 0.4F + 0.8F));
+ aWorld
+ .playSoundAtEntity(aPlayer, "random.bow", 0.5F, 0.4F / (CORE.RANDOM.nextFloat() * 0.4F + 0.8F));
if (!aWorld.isRemote) {
aWorld.spawnEntityInWorld(new EntityLightningAttack(aWorld, aPlayer, hitX, hitY, hitZ));
}
@@ -97,7 +95,7 @@ public class Behaviour_Electric_Lighter extends Behaviour_None {
aY += tDirection.offsetY;
aZ += tDirection.offsetZ;
if (GT_Utility.isBlockAir(aWorld, aX, aY, aZ)
- && aPlayer.canPlayerEdit(aX, aY, aZ, ordinalSide, aStack)) {
+ && aPlayer.canPlayerEdit(aX, aY, aZ, ordinalSide, aStack)) {
Logger.WARNING("Preparing Lighter b");
if (this.prepare(aStack) || aPlayer.capabilities.isCreativeMode) {
Logger.WARNING("Preparing Lighter c");
@@ -116,7 +114,7 @@ public class Behaviour_Electric_Lighter extends Behaviour_None {
}
public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX,
- int aY, int aZ, int ordinalSide, float hitX, float hitY, float hitZ) {
+ int aY, int aZ, int ordinalSide, float hitX, float hitY, float hitZ) {
if (!aWorld.isRemote && aStack != null && aStack.stackSize == 1) {
if (aPlayer.isSneaking()) {
Logger.INFO("Changing Mode");
@@ -124,20 +122,18 @@ public class Behaviour_Electric_Lighter extends Behaviour_None {
Logger.INFO("Is currently in Fireball mode? " + aCurrentMode);
boolean aNewMode = !aCurrentMode;
Logger.INFO("Is now set to Fireball mode? " + aNewMode);
- aStack.getTagCompound().setBoolean("aFireballMode", aNewMode);
+ aStack.getTagCompound()
+ .setBoolean("aFireballMode", aNewMode);
// NBTUtils.setBoolean(aStack, "aFireballMode", aNewMode);
PlayerUtils.messagePlayer(
- aPlayer,
- "Current Mode: " + EnumChatFormatting.RED + (aNewMode ? "Projectile" : "Fire Starter"));
+ aPlayer,
+ "Current Mode: " + EnumChatFormatting.RED + (aNewMode ? "Projectile" : "Fire Starter"));
} else {
boolean aCurrentMode = NBTUtils.getBoolean(aStack, "aFireballMode");
if (aCurrentMode) {
// Shoot Lightning Attack
- aWorld.playSoundAtEntity(
- aPlayer,
- "random.bow",
- 0.5F,
- 0.4F / (CORE.RANDOM.nextFloat() * 0.4F + 0.8F));
+ aWorld
+ .playSoundAtEntity(aPlayer, "random.bow", 0.5F, 0.4F / (CORE.RANDOM.nextFloat() * 0.4F + 0.8F));
if (!aWorld.isRemote) {
aWorld.spawnEntityInWorld(new EntityLightningAttack(aWorld, aPlayer, hitX, hitY, hitZ));
}
@@ -150,7 +146,7 @@ public class Behaviour_Electric_Lighter extends Behaviour_None {
aY += tDirection.offsetY;
aZ += tDirection.offsetZ;
if (GT_Utility.isBlockAir(aWorld, aX, aY, aZ)
- && aPlayer.canPlayerEdit(aX, aY, aZ, ordinalSide, aStack)) {
+ && aPlayer.canPlayerEdit(aX, aY, aZ, ordinalSide, aStack)) {
Logger.WARNING("Preparing Lighter b");
if (this.prepare(aStack) || aPlayer.capabilities.isCreativeMode) {
Logger.WARNING("Preparing Lighter c");
@@ -214,7 +210,8 @@ public class Behaviour_Electric_Lighter extends Behaviour_None {
if (NBTUtils.hasKey(aStack, "aFireballMode")) {
aCurrentMode = NBTUtils.getBoolean(aStack, "aFireballMode");
} else {
- aStack.getTagCompound().setBoolean("aFireballMode", false);
+ aStack.getTagCompound()
+ .setBoolean("aFireballMode", false);
aCurrentMode = false;
}
aList.add("Current Mode: " + EnumChatFormatting.RED + (aCurrentMode ? "Projectile" : "Fire Starter"));
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/items/behaviours/Behaviour_Prospecting_Ex.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/items/behaviours/Behaviour_Prospecting_Ex.java
index 7fd7de322c..5749204296 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/items/behaviours/Behaviour_Prospecting_Ex.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/items/behaviours/Behaviour_Prospecting_Ex.java
@@ -37,8 +37,8 @@ public class Behaviour_Prospecting_Ex extends Behaviour_Prospecting {
@Override
public boolean onItemUseFirst(final GT_MetaBase_Item aItem, final ItemStack aStack, final EntityPlayer aPlayer,
- final World aWorld, final int aX, final int aY, final int aZ, final ForgeDirection side, final float hitX,
- final float hitY, final float hitZ) {
+ final World aWorld, final int aX, final int aY, final int aZ, final ForgeDirection side, final float hitX,
+ final float hitY, final float hitZ) {
if (aWorld.isRemote) {
return false;
}
@@ -49,19 +49,19 @@ public class Behaviour_Prospecting_Ex extends Behaviour_Prospecting {
final byte aMeta = (byte) aWorld.getBlockMetadata(aX, aY, aZ);
ItemData tAssotiation = GT_OreDictUnificator.getAssociation(new ItemStack(aBlock, 1, aMeta));
- if ((tAssotiation != null) && (tAssotiation.mPrefix.toString().startsWith("ore"))) {
- GT_Utility.sendChatToPlayer(
- aPlayer,
- "This is " + tAssotiation.mMaterial.mMaterial.mDefaultLocalName + " Ore.");
+ if ((tAssotiation != null) && (tAssotiation.mPrefix.toString()
+ .startsWith("ore"))) {
+ GT_Utility
+ .sendChatToPlayer(aPlayer, "This is " + tAssotiation.mMaterial.mMaterial.mDefaultLocalName + " 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, GregTech_API.sBlockGranites))
- || (aBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.netherrack))
- || (aBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.end_stone))
- || (aBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.dirt))
- || (aBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.grass))) {
+ || (aBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, GregTech_API.sBlockGranites))
+ || (aBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.netherrack))
+ || (aBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.end_stone))
+ || (aBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.dirt))
+ || (aBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.grass))) {
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 tX = aX;
@@ -69,8 +69,8 @@ public class Behaviour_Prospecting_Ex extends Behaviour_Prospecting {
int tZ = aZ;
int tMetaID = 0;
final int tQuality = ((aItem instanceof GT_MetaGenerated_Tool)
- ? ((GT_MetaGenerated_Tool) aItem).getHarvestLevel(aStack, "")
- : 0) * 3;
+ ? ((GT_MetaGenerated_Tool) aItem).getHarvestLevel(aStack, "")
+ : 0) * 3;
int i = 0;
for (final int j = 6 + tQuality; i < j; i++) {
@@ -84,7 +84,7 @@ public class Behaviour_Prospecting_Ex extends Behaviour_Prospecting {
break;
}
if ((tBlock == Blocks.water) || (tBlock == Blocks.flowing_water)
- || ((tBlock instanceof IFluidBlock))) {
+ || ((tBlock instanceof IFluidBlock))) {
GT_Utility.sendChatToPlayer(aPlayer, "There is a Liquid behind this Block.");
break;
}
@@ -111,21 +111,22 @@ public class Behaviour_Prospecting_Ex extends Behaviour_Prospecting {
final TileEntity tTileEntity = aWorld.getTileEntity(tX, tY, tZ);
if ((tTileEntity instanceof GT_TileEntity_Ores)) {
final Materials tMaterial = GregTech_API.sGeneratedMaterials[(((GT_TileEntity_Ores) tTileEntity).mMetaData
- % 1000)];
+ % 1000)];
if ((tMaterial != null) && (tMaterial != Materials._NULL)) {
GT_Utility.sendChatToPlayer(
- aPlayer,
- "Found traces of " + tMaterial.mDefaultLocalName + " Ore.");
+ aPlayer,
+ "Found traces of " + tMaterial.mDefaultLocalName + " Ore.");
return true;
}
}
} else {
tMetaID = aWorld.getBlockMetadata(tX, tY, tZ);
tAssotiation = GT_OreDictUnificator.getAssociation(new ItemStack(tBlock, 1, tMetaID));
- if ((tAssotiation != null) && (tAssotiation.mPrefix.toString().startsWith("ore"))) {
+ if ((tAssotiation != null) && (tAssotiation.mPrefix.toString()
+ .startsWith("ore"))) {
GT_Utility.sendChatToPlayer(
- aPlayer,
- "Found traces of " + tAssotiation.mMaterial.mMaterial.mDefaultLocalName + " Ore.");
+ aPlayer,
+ "Found traces of " + tAssotiation.mMaterial.mMaterial.mDefaultLocalName + " Ore.");
return true;
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/items/covers/MetaItemCoverCasings.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/items/covers/MetaItemCoverCasings.java
index a660362461..987924952a 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/items/covers/MetaItemCoverCasings.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/items/covers/MetaItemCoverCasings.java
@@ -17,11 +17,11 @@ public class MetaItemCoverCasings extends MetaCustomCoverItem {
public MetaItemCoverCasings() {
super(
- GTPlusPlus.ID,
- Textures.BlockIcons.MACHINECASINGS_SIDE.length,
- "Gt Machine Casings",
- Textures.BlockIcons.MACHINECASINGS_SIDE,
- null);
+ GTPlusPlus.ID,
+ Textures.BlockIcons.MACHINECASINGS_SIDE.length,
+ "Gt Machine Casings",
+ Textures.BlockIcons.MACHINECASINGS_SIDE,
+ null);
}
@Override
@@ -44,8 +44,7 @@ public class MetaItemCoverCasings extends MetaCustomCoverItem {
@Override
public String getItemStackDisplayName(final ItemStack tItem) {
return EnumChatFormatting.LIGHT_PURPLE + StatCollector.translateToLocalFormatted(
- "item.itemCustomMetaCover.miscutils.GtMachineCasings",
- GT_Values.VOLTAGE_NAMES[MathUtils
- .balance(tItem.getItemDamage(), 0, GT_Values.VOLTAGE_NAMES.length - 1)]); // super.getItemStackDisplayName(tItem);
+ "item.itemCustomMetaCover.miscutils.GtMachineCasings",
+ GT_Values.VOLTAGE_NAMES[MathUtils.balance(tItem.getItemDamage(), 0, GT_Values.VOLTAGE_NAMES.length - 1)]); // super.getItemStackDisplayName(tItem);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/render/GTPP_CapeRenderer.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/render/GTPP_CapeRenderer.java
index 1e097f910b..a281a205d2 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/render/GTPP_CapeRenderer.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/render/GTPP_CapeRenderer.java
@@ -35,10 +35,10 @@ import gtPlusPlus.core.util.math.MathUtils;
public class GTPP_CapeRenderer extends RenderPlayer {
private static final ResourceLocation[] mCapes = { new ResourceLocation("miscutils:textures/OrangeHD.png"),
- new ResourceLocation("miscutils:textures/FancyCapeHD.png"),
- new ResourceLocation("miscutils:textures/TesterCapeHD.png"),
- new ResourceLocation("miscutils:textures/PatreonCapeHD.png"),
- new ResourceLocation("miscutils:textures/DevCapeHD.png"), };
+ new ResourceLocation("miscutils:textures/FancyCapeHD.png"),
+ new ResourceLocation("miscutils:textures/TesterCapeHD.png"),
+ new ResourceLocation("miscutils:textures/PatreonCapeHD.png"),
+ new ResourceLocation("miscutils:textures/DevCapeHD.png"), };
private final boolean mInit;
@@ -103,7 +103,9 @@ public class GTPP_CapeRenderer extends RenderPlayer {
if (!hasResourceChecked) {
// Get players UUID
- String aPlayerUUID = aPlayer != null ? aPlayer.getGameProfile().getId().toString() : "BAD";
+ String aPlayerUUID = aPlayer != null ? aPlayer.getGameProfile()
+ .getId()
+ .toString() : "BAD";
// If for whatever reason this fails, we just exit early.
if (aPlayerUUID.equals("BAD")) {
@@ -121,7 +123,8 @@ public class GTPP_CapeRenderer extends RenderPlayer {
// Check cape lists for the cape this player owns.
if (!hasCape) {
for (Pair<String, String> aData : CapeUtils.mOrangeCapes) {
- if (aData.getKey().equals(aPlayerUUID) || aPlayerName.equals(aData.getValue())) {
+ if (aData.getKey()
+ .equals(aPlayerUUID) || aPlayerName.equals(aData.getValue())) {
tResource = mCapes[0];
hasCape = true;
break;
@@ -130,7 +133,8 @@ public class GTPP_CapeRenderer extends RenderPlayer {
}
if (!hasCape) {
for (Pair<String, String> aData : CapeUtils.mMiscCapes) {
- if (aData.getKey().equals(aPlayerUUID) || aPlayerName.equals(aData.getValue())) {
+ if (aData.getKey()
+ .equals(aPlayerUUID) || aPlayerName.equals(aData.getValue())) {
tResource = mCapes[1];
hasCape = true;
break;
@@ -139,7 +143,8 @@ public class GTPP_CapeRenderer extends RenderPlayer {
}
if (!hasCape) {
for (Pair<String, String> aData : CapeUtils.mBetaTestCapes) {
- if (aData.getKey().equals(aPlayerUUID) || aPlayerName.equals(aData.getValue())) {
+ if (aData.getKey()
+ .equals(aPlayerUUID) || aPlayerName.equals(aData.getValue())) {
tResource = mCapes[2];
hasCape = true;
break;
@@ -148,7 +153,8 @@ public class GTPP_CapeRenderer extends RenderPlayer {
}
if (!hasCape) {
for (Pair<String, String> aData : CapeUtils.mPatreonCapes) {
- if (aData.getKey().equals(aPlayerUUID) || aPlayerName.equals(aData.getValue())) {
+ if (aData.getKey()
+ .equals(aPlayerUUID) || aPlayerName.equals(aData.getValue())) {
tResource = mCapes[3];
hasCape = true;
break;
@@ -157,7 +163,8 @@ public class GTPP_CapeRenderer extends RenderPlayer {
}
if (!hasCape) {
for (Pair<String, String> aData : CapeUtils.mDevCapes) {
- if (aData.getKey().equals(aPlayerUUID) || aPlayerName.equals(aData.getValue())) {
+ if (aData.getKey()
+ .equals(aPlayerUUID) || aPlayerName.equals(aData.getValue())) {
tResource = mCapes[4];
hasCape = true;
break;
@@ -183,7 +190,7 @@ public class GTPP_CapeRenderer extends RenderPlayer {
// If player is invisible, don't render.
if (GT_Utility.getFullInvisibility(aPlayer) || aPlayer.isInvisible()
- || GT_Utility.getPotion(aPlayer, Integer.valueOf(Potion.invisibility.id))) {
+ || GT_Utility.getPotion(aPlayer, Integer.valueOf(Potion.invisibility.id))) {
aEvent.setCanceled(true);
return false;
}
@@ -193,13 +200,13 @@ public class GTPP_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 * CORE.PI / 180.0F);
double d4 = -MathHelper.cos(f6 * CORE.PI / 180.0F);
float f7 = (float) d1 * 10.0F;
@@ -216,11 +223,10 @@ public class GTPP_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;
}
@@ -257,14 +263,15 @@ public class GTPP_CapeRenderer extends RenderPlayer {
if (CORE.DEVENV) {
return true;
}
- ForkJoinPool.commonPool().execute(() -> {
- try {
- if (shouldDownloadCapeList()) {
- downloadCapeList();
- }
- } catch (Exception ignored) {}
- cacheReady = true;
- });
+ ForkJoinPool.commonPool()
+ .execute(() -> {
+ try {
+ if (shouldDownloadCapeList()) {
+ downloadCapeList();
+ }
+ } catch (Exception ignored) {}
+ cacheReady = true;
+ });
return true;
}
@@ -358,7 +365,7 @@ public class GTPP_CapeRenderer extends RenderPlayer {
}
if (tempFile == null) {
tempFile = FileUtils
- .createFile("", "gtpp-" + MathUtils.randInt(Short.MAX_VALUE, (Integer.MAX_VALUE / 2)), "tmp");
+ .createFile("", "gtpp-" + MathUtils.randInt(Short.MAX_VALUE, (Integer.MAX_VALUE / 2)), "tmp");
}
tempFile.deleteOnExit();
return tempFile;
@@ -390,51 +397,51 @@ public class GTPP_CapeRenderer extends RenderPlayer {
if (aCapeTypeID2 != null) {
int aCapeTypeID = aCapeTypeID2;
Pair<String, String> aFinalString = new Pair<>(
- "UUID: " + aSplitData[1],
- "Username: " + (aSplitData[2] != null && aSplitData[0].length() > 0
- ? aSplitData[2]
- : "Not Specified"));
+ "UUID: " + aSplitData[1],
+ "Username: "
+ + (aSplitData[2] != null && aSplitData[0].length() > 0 ? aSplitData[2]
+ : "Not Specified"));
Logger.INFO("Cape Type: " + aCapeTypeID);
switch (aCapeTypeID) {
case 0 -> {
aCapeType1.add(aFinalString);
Logger.INFO(
- "Added user to map " + aCapeTypeID
- + ", map now holds "
- + aCapeType1.size()
- + " users.");
+ "Added user to map " + aCapeTypeID
+ + ", map now holds "
+ + aCapeType1.size()
+ + " users.");
}
case 1 -> {
aCapeType2.add(aFinalString);
Logger.INFO(
- "Added user to map " + aCapeTypeID
- + ", map now holds "
- + aCapeType2.size()
- + " users.");
+ "Added user to map " + aCapeTypeID
+ + ", map now holds "
+ + aCapeType2.size()
+ + " users.");
}
case 2 -> {
aCapeType3.add(aFinalString);
Logger.INFO(
- "Added user to map " + aCapeTypeID
- + ", map now holds "
- + aCapeType3.size()
- + " users.");
+ "Added user to map " + aCapeTypeID
+ + ", map now holds "
+ + aCapeType3.size()
+ + " users.");
}
case 3 -> {
aCapeType4.add(aFinalString);
Logger.INFO(
- "Added user to map " + aCapeTypeID
- + ", map now holds "
- + aCapeType4.size()
- + " users.");
+ "Added user to map " + aCapeTypeID
+ + ", map now holds "
+ + aCapeType4.size()
+ + " users.");
}
case 4 -> {
aCapeType5.add(aFinalString);
Logger.INFO(
- "Added user to map " + aCapeTypeID
- + ", map now holds "
- + aCapeType5.size()
- + " users.");
+ "Added user to map " + aCapeTypeID
+ + ", map now holds "
+ + aCapeType5.size()
+ + " users.");
}
default -> {}
}
@@ -443,9 +450,9 @@ public class GTPP_CapeRenderer extends RenderPlayer {
}
}
if (!aCapeType1.isEmpty() || !aCapeType2.isEmpty()
- || !aCapeType3.isEmpty()
- || !aCapeType4.isEmpty()
- || !aCapeType5.isEmpty()) {
+ || !aCapeType3.isEmpty()
+ || !aCapeType4.isEmpty()
+ || !aCapeType5.isEmpty()) {
didProcessStringData = true;
} else {
// did not process any data
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/render/GTPP_FlaskRenderer.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/render/GTPP_FlaskRenderer.java
index 93e139ef66..0c9e59e2f2 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/render/GTPP_FlaskRenderer.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/render/GTPP_FlaskRenderer.java
@@ -58,8 +58,10 @@ public final class GTPP_FlaskRenderer implements net.minecraftforge.client.IItem
FluidStack fs = cell.getFluid(item);
if (fs != null) {
IIcon iconWindow = cell.iconWindow;
- IIcon fluidicon = fs.getFluid().getIcon(fs);
- int fluidColor = fs.getFluid().getColor(fs);
+ IIcon fluidicon = fs.getFluid()
+ .getIcon(fs);
+ int fluidColor = fs.getFluid()
+ .getColor(fs);
Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationItemsTexture);
GL11.glBlendFunc(0, 1);
if (type.equals(ItemRenderType.INVENTORY)) {
@@ -90,14 +92,14 @@ public final class GTPP_FlaskRenderer implements net.minecraftforge.client.IItem
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(3008);
GL11.glDisable(3042);
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/render/GTPP_Render_MachineBlock.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/render/GTPP_Render_MachineBlock.java
index 4c51b1ff09..bfd16b4cc5 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/render/GTPP_Render_MachineBlock.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/render/GTPP_Render_MachineBlock.java
@@ -50,13 +50,13 @@ public class GTPP_Render_MachineBlock extends GT_Renderer_Block {
}
private static ITexture[] getTexture(IMetaTileEntity tile, ForgeDirection side, ForgeDirection facing,
- int colorIndex, boolean active, boolean arg5) {
+ int colorIndex, boolean active, boolean arg5) {
final IGregTechTileEntity gtTile = tile.getBaseMetaTileEntity();
return tile.getTexture(gtTile, side, facing, (byte) colorIndex, active, arg5);
}
private static ITexture[] getTexture(IMetaTileEntity tile, ForgeDirection side, int facingMask, int colorIndex,
- boolean active, boolean arg5) {
+ boolean active, boolean arg5) {
final MetaPipeEntity gtTile = (MetaPipeEntity) tile.getBaseMetaTileEntity();
return gtTile.getTexture((IGregTechTileEntity) tile, side, facingMask, colorIndex, active, arg5);
}
@@ -77,147 +77,147 @@ public class GTPP_Render_MachineBlock extends GT_Renderer_Block {
Tessellator.instance.startDrawingQuads();
Tessellator.instance.setNormal(0.0F, -1.0F, 0.0F);
renderNegativeYFacing(
- null,
- aRenderer,
- aBlock,
- 0,
- 0,
- 0,
- getTexture(tMetaTileEntity, DOWN, 0b001001, -1, false, false),
- true);
+ null,
+ aRenderer,
+ aBlock,
+ 0,
+ 0,
+ 0,
+ getTexture(tMetaTileEntity, DOWN, 0b001001, -1, false, false),
+ true);
Tessellator.instance.draw();
Tessellator.instance.startDrawingQuads();
Tessellator.instance.setNormal(0.0F, 1.0F, 0.0F);
renderPositiveYFacing(
- null,
- aRenderer,
- aBlock,
- 0,
- 0,
- 0,
- getTexture(tMetaTileEntity, UP, 0b001001, -1, false, false),
- true);
+ null,
+ aRenderer,
+ aBlock,
+ 0,
+ 0,
+ 0,
+ getTexture(tMetaTileEntity, UP, 0b001001, -1, false, false),
+ true);
Tessellator.instance.draw();
Tessellator.instance.startDrawingQuads();
Tessellator.instance.setNormal(0.0F, 0.0F, -1.0F);
renderNegativeZFacing(
- null,
- aRenderer,
- aBlock,
- 0,
- 0,
- 0,
- getTexture(tMetaTileEntity, ForgeDirection.NORTH, 0b001001, -1, false, false),
- true);
+ null,
+ aRenderer,
+ aBlock,
+ 0,
+ 0,
+ 0,
+ getTexture(tMetaTileEntity, ForgeDirection.NORTH, 0b001001, -1, false, false),
+ true);
Tessellator.instance.draw();
Tessellator.instance.startDrawingQuads();
Tessellator.instance.setNormal(0.0F, 0.0F, 1.0F);
renderPositiveZFacing(
- null,
- aRenderer,
- aBlock,
- 0,
- 0,
- 0,
- getTexture(tMetaTileEntity, ForgeDirection.SOUTH, 0b001001, -1, false, false),
- true);
+ null,
+ aRenderer,
+ aBlock,
+ 0,
+ 0,
+ 0,
+ getTexture(tMetaTileEntity, ForgeDirection.SOUTH, 0b001001, -1, false, false),
+ true);
Tessellator.instance.draw();
Tessellator.instance.startDrawingQuads();
Tessellator.instance.setNormal(-1.0F, 0.0F, 0.0F);
renderNegativeXFacing(
- null,
- aRenderer,
- aBlock,
- 0,
- 0,
- 0,
- getTexture(tMetaTileEntity, ForgeDirection.WEST, 0b001001, -1, true, false),
- true);
+ null,
+ aRenderer,
+ aBlock,
+ 0,
+ 0,
+ 0,
+ getTexture(tMetaTileEntity, ForgeDirection.WEST, 0b001001, -1, true, false),
+ true);
Tessellator.instance.draw();
Tessellator.instance.startDrawingQuads();
Tessellator.instance.setNormal(1.0F, 0.0F, 0.0F);
renderPositiveXFacing(
- null,
- aRenderer,
- aBlock,
- 0,
- 0,
- 0,
- getTexture(tMetaTileEntity, ForgeDirection.EAST, 0b001001, -1, true, false),
- true);
+ null,
+ aRenderer,
+ aBlock,
+ 0,
+ 0,
+ 0,
+ getTexture(tMetaTileEntity, ForgeDirection.EAST, 0b001001, -1, true, false),
+ true);
Tessellator.instance.draw();
} else {
Tessellator.instance.startDrawingQuads();
Tessellator.instance.setNormal(0.0F, -1.0F, 0.0F);
renderNegativeYFacing(
- null,
- aRenderer,
- aBlock,
- 0,
- 0,
- 0,
- getTexture(tMetaTileEntity, DOWN, ForgeDirection.WEST, -1, true, false),
- true);
+ null,
+ aRenderer,
+ aBlock,
+ 0,
+ 0,
+ 0,
+ getTexture(tMetaTileEntity, DOWN, ForgeDirection.WEST, -1, true, false),
+ true);
Tessellator.instance.draw();
Tessellator.instance.startDrawingQuads();
Tessellator.instance.setNormal(0.0F, 1.0F, 0.0F);
renderPositiveYFacing(
- null,
- aRenderer,
- aBlock,
- 0,
- 0,
- 0,
- getTexture(tMetaTileEntity, UP, ForgeDirection.WEST, -1, true, false),
- true);
+ null,
+ aRenderer,
+ aBlock,
+ 0,
+ 0,
+ 0,
+ getTexture(tMetaTileEntity, UP, ForgeDirection.WEST, -1, true, false),
+ true);
Tessellator.instance.draw();
Tessellator.instance.startDrawingQuads();
Tessellator.instance.setNormal(0.0F, 0.0F, -1.0F);
renderNegativeZFacing(
- null,
- aRenderer,
- aBlock,
- 0,
- 0,
- 0,
- getTexture(tMetaTileEntity, ForgeDirection.NORTH, ForgeDirection.WEST, -1, true, false),
- true);
+ null,
+ aRenderer,
+ aBlock,
+ 0,
+ 0,
+ 0,
+ getTexture(tMetaTileEntity, ForgeDirection.NORTH, ForgeDirection.WEST, -1, true, false),
+ true);
Tessellator.instance.draw();
Tessellator.instance.startDrawingQuads();
Tessellator.instance.setNormal(0.0F, 0.0F, 1.0F);
renderPositiveZFacing(
- null,
- aRenderer,
- aBlock,
- 0,
- 0,
- 0,
- getTexture(tMetaTileEntity, ForgeDirection.SOUTH, ForgeDirection.WEST, -1, true, false),
- true);
+ null,
+ aRenderer,
+ aBlock,
+ 0,
+ 0,
+ 0,
+ getTexture(tMetaTileEntity, ForgeDirection.SOUTH, ForgeDirection.WEST, -1, true, false),
+ true);
Tessellator.instance.draw();
Tessellator.instance.startDrawingQuads();
Tessellator.instance.setNormal(-1.0F, 0.0F, 0.0F);
renderNegativeXFacing(
- null,
- aRenderer,
- aBlock,
- 0,
- 0,
- 0,
- getTexture(tMetaTileEntity, ForgeDirection.WEST, ForgeDirection.WEST, -1, true, false),
- true);
+ null,
+ aRenderer,
+ aBlock,
+ 0,
+ 0,
+ 0,
+ getTexture(tMetaTileEntity, ForgeDirection.WEST, ForgeDirection.WEST, -1, true, false),
+ true);
Tessellator.instance.draw();
Tessellator.instance.startDrawingQuads();
Tessellator.instance.setNormal(1.0F, 0.0F, 0.0F);
renderPositiveXFacing(
- null,
- aRenderer,
- aBlock,
- 0,
- 0,
- 0,
- getTexture(tMetaTileEntity, ForgeDirection.EAST, ForgeDirection.WEST, -1, true, false),
- true);
+ null,
+ aRenderer,
+ aBlock,
+ 0,
+ 0,
+ 0,
+ getTexture(tMetaTileEntity, ForgeDirection.EAST, ForgeDirection.WEST, -1, true, false),
+ true);
Tessellator.instance.draw();
}
@@ -229,28 +229,28 @@ public class GTPP_Render_MachineBlock extends GT_Renderer_Block {
}
public boolean renderStandardBlock(IBlockAccess aWorld, int aX, int aY, int aZ, Block aBlock,
- RenderBlocks aRenderer) {
+ RenderBlocks aRenderer) {
TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
return tTileEntity instanceof ITexturedTileEntity
- ? renderStandardBlock(
- aWorld,
- aX,
- aY,
- aZ,
- aBlock,
- aRenderer,
- new ITexture[][] { GT_MethodHelper.getTexture(tTileEntity, aBlock, DOWN),
- GT_MethodHelper.getTexture(tTileEntity, aBlock, UP),
- GT_MethodHelper.getTexture(tTileEntity, aBlock, ForgeDirection.NORTH),
- GT_MethodHelper.getTexture(tTileEntity, aBlock, ForgeDirection.SOUTH),
- GT_MethodHelper.getTexture(tTileEntity, aBlock, ForgeDirection.WEST),
- GT_MethodHelper.getTexture(tTileEntity, aBlock, ForgeDirection.EAST) })
- : false;
+ ? renderStandardBlock(
+ aWorld,
+ aX,
+ aY,
+ aZ,
+ aBlock,
+ aRenderer,
+ new ITexture[][] { GT_MethodHelper.getTexture(tTileEntity, aBlock, DOWN),
+ GT_MethodHelper.getTexture(tTileEntity, aBlock, UP),
+ GT_MethodHelper.getTexture(tTileEntity, aBlock, ForgeDirection.NORTH),
+ GT_MethodHelper.getTexture(tTileEntity, aBlock, ForgeDirection.SOUTH),
+ GT_MethodHelper.getTexture(tTileEntity, aBlock, ForgeDirection.WEST),
+ GT_MethodHelper.getTexture(tTileEntity, aBlock, ForgeDirection.EAST) })
+ : false;
}
public boolean renderStandardBlock(IBlockAccess aWorld, int aX, int aY, int aZ, Block aBlock,
- RenderBlocks aRenderer, ITexture[][] aTextures) {
+ RenderBlocks aRenderer, ITexture[][] aTextures) {
aBlock.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
aRenderer.setRenderBoundsFromBlock(aBlock);
renderNegativeYFacing(aWorld, aRenderer, aBlock, aX, aY, aZ, aTextures[DOWN.ordinal()], true);
@@ -263,7 +263,7 @@ public class GTPP_Render_MachineBlock extends GT_Renderer_Block {
}
public boolean renderPipeBlock(IBlockAccess aWorld, int aX, int aY, int aZ, Block aBlock,
- IPipeRenderedTileEntity aTileEntity, RenderBlocks aRenderer) {
+ IPipeRenderedTileEntity aTileEntity, RenderBlocks aRenderer) {
final int aConnections = aTileEntity.getConnections();
if ((aConnections & HAS_FOAM) != 0) {
return renderStandardBlock(aWorld, aX, aY, aZ, aBlock, aRenderer);
@@ -303,64 +303,263 @@ public class GTPP_Render_MachineBlock extends GT_Renderer_Block {
aBlock.setBlockBounds(sp, sp, sp, sp + tThickness, sp + tThickness, sp + tThickness);
aRenderer.setRenderBoundsFromBlock(aBlock);
renderNegativeYFacing(
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(DOWN),
+ false);
+ renderPositiveYFacing(
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(UP),
+ false);
+ renderNegativeZFacing(
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(NORTH),
+ false);
+ renderPositiveZFacing(
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(SOUTH),
+ false);
+ renderNegativeXFacing(
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(WEST),
+ false);
+ renderPositiveXFacing(
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(EAST),
+ false);
+ }
+ case (CONNECTED_DOWN | CONNECTED_UP) -> {
+ aBlock.setBlockBounds(0.0F, sp, sp, 1.0F, sp + tThickness, sp + tThickness);
+ aRenderer.setRenderBoundsFromBlock(aBlock);
+ renderNegativeYFacing(
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(DOWN),
+ false);
+ renderPositiveYFacing(
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(UP),
+ false);
+ renderNegativeZFacing(
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(NORTH),
+ false);
+ renderPositiveZFacing(
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(SOUTH),
+ false);
+ if (!coveredSides.contains(WEST)) {
+ renderNegativeXFacing(
aWorld,
aRenderer,
aBlock,
aX,
aY,
aZ,
- textureUncovered.get(DOWN),
+ textureUncovered.get(WEST),
false);
- renderPositiveYFacing(
+ }
+ if (!coveredSides.contains(EAST)) {
+ renderPositiveXFacing(
aWorld,
aRenderer,
aBlock,
aX,
aY,
aZ,
- textureUncovered.get(UP),
+ textureUncovered.get(EAST),
false);
+ }
+ }
+ case (CONNECTED_NORTH | CONNECTED_SOUTH) -> {
+ aBlock.setBlockBounds(sp, 0.0F, sp, sp + tThickness, 1.0F, sp + tThickness);
+ aRenderer.setRenderBoundsFromBlock(aBlock);
renderNegativeZFacing(
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(NORTH),
+ false);
+ renderPositiveZFacing(
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(SOUTH),
+ false);
+ renderNegativeXFacing(
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(WEST),
+ false);
+ renderPositiveXFacing(
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(EAST),
+ false);
+ if (!coveredSides.contains(DOWN)) {
+ renderNegativeYFacing(
aWorld,
aRenderer,
aBlock,
aX,
aY,
aZ,
- textureUncovered.get(NORTH),
+ textureUncovered.get(DOWN),
false);
- renderPositiveZFacing(
+ }
+ if (!coveredSides.contains(UP)) {
+ renderPositiveYFacing(
aWorld,
aRenderer,
aBlock,
aX,
aY,
aZ,
- textureUncovered.get(SOUTH),
+ textureUncovered.get(UP),
false);
+ }
+ }
+ case (CONNECTED_WEST | CONNECTED_EAST) -> {
+ aBlock.setBlockBounds(sp, sp, 0.0F, sp + tThickness, sp + tThickness, 1.0F);
+ aRenderer.setRenderBoundsFromBlock(aBlock);
+ renderNegativeYFacing(
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(DOWN),
+ false);
+ renderPositiveYFacing(
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(UP),
+ false);
renderNegativeXFacing(
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(WEST),
+ false);
+ renderPositiveXFacing(
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(EAST),
+ false);
+ if (!coveredSides.contains(NORTH)) {
+ renderNegativeZFacing(
aWorld,
aRenderer,
aBlock,
aX,
aY,
aZ,
- textureUncovered.get(WEST),
+ textureUncovered.get(NORTH),
false);
- renderPositiveXFacing(
+ }
+ if (!coveredSides.contains(SOUTH)) {
+ renderPositiveZFacing(
aWorld,
aRenderer,
aBlock,
aX,
aY,
aZ,
- textureUncovered.get(EAST),
+ textureUncovered.get(SOUTH),
false);
+ }
}
- case (CONNECTED_DOWN | CONNECTED_UP) -> {
- aBlock.setBlockBounds(0.0F, sp, sp, 1.0F, sp + tThickness, sp + tThickness);
- aRenderer.setRenderBoundsFromBlock(aBlock);
- renderNegativeYFacing(
+ default -> {
+ if ((connexionSidesBits & CONNECTED_DOWN) == 0) {
+ aBlock.setBlockBounds(sp, sp, sp, sp + tThickness, sp + tThickness, sp + tThickness);
+ aRenderer.setRenderBoundsFromBlock(aBlock);
+ renderNegativeXFacing(
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(WEST),
+ false);
+ } else {
+ aBlock.setBlockBounds(0.0F, sp, sp, sp, sp + tThickness, sp + tThickness);
+ aRenderer.setRenderBoundsFromBlock(aBlock);
+ renderNegativeYFacing(
aWorld,
aRenderer,
aBlock,
@@ -369,7 +568,7 @@ public class GTPP_Render_MachineBlock extends GT_Renderer_Block {
aZ,
textureUncovered.get(DOWN),
false);
- renderPositiveYFacing(
+ renderPositiveYFacing(
aWorld,
aRenderer,
aBlock,
@@ -378,7 +577,7 @@ public class GTPP_Render_MachineBlock extends GT_Renderer_Block {
aZ,
textureUncovered.get(UP),
false);
- renderNegativeZFacing(
+ renderNegativeZFacing(
aWorld,
aRenderer,
aBlock,
@@ -387,7 +586,7 @@ public class GTPP_Render_MachineBlock extends GT_Renderer_Block {
aZ,
textureUncovered.get(NORTH),
false);
- renderPositiveZFacing(
+ renderPositiveZFacing(
aWorld,
aRenderer,
aBlock,
@@ -396,8 +595,8 @@ public class GTPP_Render_MachineBlock extends GT_Renderer_Block {
aZ,
textureUncovered.get(SOUTH),
false);
- if (!coveredSides.contains(WEST)) {
- renderNegativeXFacing(
+ if (!coveredSides.contains(WEST)) {
+ renderNegativeXFacing(
aWorld,
aRenderer,
aBlock,
@@ -406,85 +605,75 @@ public class GTPP_Render_MachineBlock extends GT_Renderer_Block {
aZ,
textureUncovered.get(WEST),
false);
+ }
}
- if (!coveredSides.contains(EAST)) {
+ if ((connexionSidesBits & CONNECTED_UP) == 0) {
+ aBlock.setBlockBounds(sp, sp, sp, sp + tThickness, sp + tThickness, sp + tThickness);
+ aRenderer.setRenderBoundsFromBlock(aBlock);
renderPositiveXFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(EAST),
- false);
- }
- }
- case (CONNECTED_NORTH | CONNECTED_SOUTH) -> {
- aBlock.setBlockBounds(sp, 0.0F, sp, sp + tThickness, 1.0F, sp + tThickness);
- aRenderer.setRenderBoundsFromBlock(aBlock);
- renderNegativeZFacing(
aWorld,
aRenderer,
aBlock,
aX,
aY,
aZ,
- textureUncovered.get(NORTH),
+ textureUncovered.get(EAST),
false);
- renderPositiveZFacing(
+ } else {
+ aBlock.setBlockBounds(sp + tThickness, sp, sp, 1.0F, sp + tThickness, sp + tThickness);
+ aRenderer.setRenderBoundsFromBlock(aBlock);
+ renderNegativeYFacing(
aWorld,
aRenderer,
aBlock,
aX,
aY,
aZ,
- textureUncovered.get(SOUTH),
+ textureUncovered.get(DOWN),
false);
- renderNegativeXFacing(
+ renderPositiveYFacing(
aWorld,
aRenderer,
aBlock,
aX,
aY,
aZ,
- textureUncovered.get(WEST),
+ textureUncovered.get(UP),
false);
- renderPositiveXFacing(
+ renderNegativeZFacing(
aWorld,
aRenderer,
aBlock,
aX,
aY,
aZ,
- textureUncovered.get(EAST),
+ textureUncovered.get(NORTH),
false);
- if (!coveredSides.contains(DOWN)) {
- renderNegativeYFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(DOWN),
- false);
- }
- if (!coveredSides.contains(UP)) {
- renderPositiveYFacing(
+ renderPositiveZFacing(
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(SOUTH),
+ false);
+ if (!coveredSides.contains(EAST)) {
+ renderPositiveXFacing(
aWorld,
aRenderer,
aBlock,
aX,
aY,
aZ,
- textureUncovered.get(UP),
+ textureUncovered.get(EAST),
false);
+ }
}
- }
- case (CONNECTED_WEST | CONNECTED_EAST) -> {
- aBlock.setBlockBounds(sp, sp, 0.0F, sp + tThickness, sp + tThickness, 1.0F);
- aRenderer.setRenderBoundsFromBlock(aBlock);
- renderNegativeYFacing(
+ if ((connexionSidesBits & CONNECTED_NORTH) == 0) {
+ aBlock.setBlockBounds(sp, sp, sp, sp + tThickness, sp + tThickness, sp + tThickness);
+ aRenderer.setRenderBoundsFromBlock(aBlock);
+ renderNegativeYFacing(
aWorld,
aRenderer,
aBlock,
@@ -493,16 +682,28 @@ public class GTPP_Render_MachineBlock extends GT_Renderer_Block {
aZ,
textureUncovered.get(DOWN),
false);
- renderPositiveYFacing(
+ } else {
+ aBlock.setBlockBounds(sp, 0.0F, sp, sp + tThickness, sp, sp + tThickness);
+ aRenderer.setRenderBoundsFromBlock(aBlock);
+ renderNegativeZFacing(
aWorld,
aRenderer,
aBlock,
aX,
aY,
aZ,
- textureUncovered.get(UP),
+ textureUncovered.get(NORTH),
false);
- renderNegativeXFacing(
+ renderPositiveZFacing(
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(SOUTH),
+ false);
+ renderNegativeXFacing(
aWorld,
aRenderer,
aBlock,
@@ -511,7 +712,7 @@ public class GTPP_Render_MachineBlock extends GT_Renderer_Block {
aZ,
textureUncovered.get(WEST),
false);
- renderPositiveXFacing(
+ renderPositiveXFacing(
aWorld,
aRenderer,
aBlock,
@@ -520,160 +721,8 @@ public class GTPP_Render_MachineBlock extends GT_Renderer_Block {
aZ,
textureUncovered.get(EAST),
false);
- if (!coveredSides.contains(NORTH)) {
- renderNegativeZFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(NORTH),
- false);
- }
- if (!coveredSides.contains(SOUTH)) {
- renderPositiveZFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(SOUTH),
- false);
- }
- }
- default -> {
- if ((connexionSidesBits & CONNECTED_DOWN) == 0) {
- aBlock.setBlockBounds(sp, sp, sp, sp + tThickness, sp + tThickness, sp + tThickness);
- aRenderer.setRenderBoundsFromBlock(aBlock);
- renderNegativeXFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(WEST),
- false);
- } else {
- aBlock.setBlockBounds(0.0F, sp, sp, sp, sp + tThickness, sp + tThickness);
- aRenderer.setRenderBoundsFromBlock(aBlock);
- renderNegativeYFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(DOWN),
- false);
- renderPositiveYFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(UP),
- false);
- renderNegativeZFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(NORTH),
- false);
- renderPositiveZFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(SOUTH),
- false);
- if (!coveredSides.contains(WEST)) {
- renderNegativeXFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(WEST),
- false);
- }
- }
- if ((connexionSidesBits & CONNECTED_UP) == 0) {
- aBlock.setBlockBounds(sp, sp, sp, sp + tThickness, sp + tThickness, sp + tThickness);
- aRenderer.setRenderBoundsFromBlock(aBlock);
- renderPositiveXFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(EAST),
- false);
- } else {
- aBlock.setBlockBounds(sp + tThickness, sp, sp, 1.0F, sp + tThickness, sp + tThickness);
- aRenderer.setRenderBoundsFromBlock(aBlock);
- renderNegativeYFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(DOWN),
- false);
- renderPositiveYFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(UP),
- false);
- renderNegativeZFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(NORTH),
- false);
- renderPositiveZFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(SOUTH),
- false);
- if (!coveredSides.contains(EAST)) {
- renderPositiveXFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(EAST),
- false);
- }
- }
- if ((connexionSidesBits & CONNECTED_NORTH) == 0) {
- aBlock.setBlockBounds(sp, sp, sp, sp + tThickness, sp + tThickness, sp + tThickness);
- aRenderer.setRenderBoundsFromBlock(aBlock);
- renderNegativeYFacing(
+ if (!coveredSides.contains(DOWN)) {
+ renderNegativeYFacing(
aWorld,
aRenderer,
aBlock,
@@ -682,244 +731,195 @@ public class GTPP_Render_MachineBlock extends GT_Renderer_Block {
aZ,
textureUncovered.get(DOWN),
false);
- } else {
- aBlock.setBlockBounds(sp, 0.0F, sp, sp + tThickness, sp, sp + tThickness);
- aRenderer.setRenderBoundsFromBlock(aBlock);
- renderNegativeZFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(NORTH),
- false);
- renderPositiveZFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(SOUTH),
- false);
- renderNegativeXFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(WEST),
- false);
- renderPositiveXFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(EAST),
- false);
- if (!coveredSides.contains(DOWN)) {
- renderNegativeYFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(DOWN),
- false);
}
}
if ((connexionSidesBits & CONNECTED_SOUTH) == 0) {
aBlock.setBlockBounds(sp, sp, sp, sp + tThickness, sp + tThickness, sp + tThickness);
aRenderer.setRenderBoundsFromBlock(aBlock);
renderPositiveYFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(UP),
- false);
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(UP),
+ false);
} else {
aBlock.setBlockBounds(sp, sp + tThickness, sp, sp + tThickness, 1.0F, sp + tThickness);
aRenderer.setRenderBoundsFromBlock(aBlock);
renderNegativeZFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(NORTH),
- false);
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(NORTH),
+ false);
renderPositiveZFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(SOUTH),
- false);
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(SOUTH),
+ false);
renderNegativeXFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(WEST),
- false);
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(WEST),
+ false);
renderPositiveXFacing(
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(EAST),
+ false);
+ if (!coveredSides.contains(UP)) {
+ renderPositiveYFacing(
aWorld,
aRenderer,
aBlock,
aX,
aY,
aZ,
- textureUncovered.get(EAST),
+ textureUncovered.get(UP),
false);
- if (!coveredSides.contains(UP)) {
- renderPositiveYFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(UP),
- false);
}
}
if ((connexionSidesBits & CONNECTED_WEST) == 0) {
aBlock.setBlockBounds(sp, sp, sp, sp + tThickness, sp + tThickness, sp + tThickness);
aRenderer.setRenderBoundsFromBlock(aBlock);
renderNegativeZFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(NORTH),
- false);
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(NORTH),
+ false);
} else {
aBlock.setBlockBounds(sp, sp, 0.0F, sp + tThickness, sp + tThickness, sp);
aRenderer.setRenderBoundsFromBlock(aBlock);
renderNegativeYFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(DOWN),
- false);
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(DOWN),
+ false);
renderPositiveYFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(UP),
- false);
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(UP),
+ false);
renderNegativeXFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(WEST),
- false);
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(WEST),
+ false);
renderPositiveXFacing(
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(EAST),
+ false);
+ if (!coveredSides.contains(NORTH)) {
+ renderNegativeZFacing(
aWorld,
aRenderer,
aBlock,
aX,
aY,
aZ,
- textureUncovered.get(EAST),
+ textureUncovered.get(NORTH),
false);
- if (!coveredSides.contains(NORTH)) {
- renderNegativeZFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(NORTH),
- false);
}
}
if ((connexionSidesBits & CONNECTED_EAST) == 0) {
aBlock.setBlockBounds(sp, sp, sp, sp + tThickness, sp + tThickness, sp + tThickness);
aRenderer.setRenderBoundsFromBlock(aBlock);
renderPositiveZFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(SOUTH),
- false);
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(SOUTH),
+ false);
} else {
aBlock.setBlockBounds(sp, sp, sp + tThickness, sp + tThickness, sp + tThickness, 1.0F);
aRenderer.setRenderBoundsFromBlock(aBlock);
renderNegativeYFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(DOWN),
- false);
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(DOWN),
+ false);
renderPositiveYFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(UP),
- false);
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(UP),
+ false);
renderNegativeXFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(WEST),
- false);
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(WEST),
+ false);
renderPositiveXFacing(
+ aWorld,
+ aRenderer,
+ aBlock,
+ aX,
+ aY,
+ aZ,
+ textureUncovered.get(EAST),
+ false);
+ if (!coveredSides.contains(SOUTH)) {
+ renderPositiveZFacing(
aWorld,
aRenderer,
aBlock,
aX,
aY,
aZ,
- textureUncovered.get(EAST),
+ textureUncovered.get(SOUTH),
false);
- if (!coveredSides.contains(SOUTH)) {
- renderPositiveZFacing(
- aWorld,
- aRenderer,
- aBlock,
- aX,
- aY,
- aZ,
- textureUncovered.get(SOUTH),
- false);
}
}
}
@@ -1068,14 +1068,14 @@ public class GTPP_Render_MachineBlock extends GT_Renderer_Block {
}
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));
+ .setBrightness(aBlock.getMixedBrightnessForBlock(aWorld, aX, aFullBlock ? aY - 1 : aY, aZ));
}
if (aIcon != null) {
@@ -1090,14 +1090,14 @@ public class GTPP_Render_MachineBlock extends GT_Renderer_Block {
}
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));
+ .setBrightness(aBlock.getMixedBrightnessForBlock(aWorld, aX, aFullBlock ? aY + 1 : aY, aZ));
}
if (aIcon != null) {
@@ -1112,14 +1112,14 @@ public class GTPP_Render_MachineBlock extends GT_Renderer_Block {
}
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));
+ .setBrightness(aBlock.getMixedBrightnessForBlock(aWorld, aX, aY, aFullBlock ? aZ - 1 : aZ));
}
aRenderer.flipTexture = !aFullBlock;
@@ -1135,14 +1135,14 @@ public class GTPP_Render_MachineBlock extends GT_Renderer_Block {
}
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));
+ .setBrightness(aBlock.getMixedBrightnessForBlock(aWorld, aX, aY, aFullBlock ? aZ + 1 : aZ));
}
if (aIcon != null) {
@@ -1157,14 +1157,14 @@ public class GTPP_Render_MachineBlock extends GT_Renderer_Block {
}
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));
+ .setBrightness(aBlock.getMixedBrightnessForBlock(aWorld, aFullBlock ? aX - 1 : aX, aY, aZ));
}
if (aIcon != null) {
@@ -1179,14 +1179,14 @@ public class GTPP_Render_MachineBlock extends GT_Renderer_Block {
}
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));
+ .setBrightness(aBlock.getMixedBrightnessForBlock(aWorld, aFullBlock ? aX + 1 : aX, aY, aZ));
}
aRenderer.flipTexture = !aFullBlock;
@@ -1206,8 +1206,8 @@ public class GTPP_Render_MachineBlock extends GT_Renderer_Block {
aMeta += 30400;
if (aBlock instanceof GT_Block_Machines) {
if (aMeta > 0 && aMeta < GregTech_API.METATILEENTITIES.length
- && GregTech_API.METATILEENTITIES[aMeta] != null
- && !GregTech_API.METATILEENTITIES[aMeta].renderInInventory(aBlock, aMeta, aRenderer)) {
+ && GregTech_API.METATILEENTITIES[aMeta] != null
+ && !GregTech_API.METATILEENTITIES[aMeta].renderInInventory(aBlock, aMeta, aRenderer)) {
renderNormalInventoryMetaTileEntity(aBlock, aMeta, aRenderer);
}
}
@@ -1218,24 +1218,24 @@ public class GTPP_Render_MachineBlock extends GT_Renderer_Block {
@Override
public boolean renderWorldBlock(IBlockAccess aWorld, int aX, int aY, int aZ, Block aBlock, int aModelID,
- RenderBlocks aRenderer) {
+ RenderBlocks aRenderer) {
TileEntity aTileEntity = aWorld.getTileEntity(aX, aY, aZ);
return aTileEntity == null ? false
- : (aTileEntity instanceof IGregTechTileEntity
- && ((IGregTechTileEntity) aTileEntity).getMetaTileEntity() != null
- && ((IGregTechTileEntity) aTileEntity).getMetaTileEntity()
- .renderInWorld(aWorld, aX, aY, aZ, aBlock, aRenderer)
- ? true
- : (aTileEntity instanceof IPipeRenderedTileEntity
- ? renderPipeBlock(
- aWorld,
- aX,
- aY,
- aZ,
- aBlock,
- (IPipeRenderedTileEntity) aTileEntity,
- aRenderer)
- : renderStandardBlock(aWorld, aX, aY, aZ, aBlock, aRenderer)));
+ : (aTileEntity instanceof IGregTechTileEntity
+ && ((IGregTechTileEntity) aTileEntity).getMetaTileEntity() != null
+ && ((IGregTechTileEntity) aTileEntity).getMetaTileEntity()
+ .renderInWorld(aWorld, aX, aY, aZ, aBlock, aRenderer)
+ ? true
+ : (aTileEntity instanceof IPipeRenderedTileEntity
+ ? renderPipeBlock(
+ aWorld,
+ aX,
+ aY,
+ aZ,
+ aBlock,
+ (IPipeRenderedTileEntity) aTileEntity,
+ aRenderer)
+ : renderStandardBlock(aWorld, aX, aY, aZ, aBlock, aRenderer)));
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_ElectricAutoWorkbench.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_ElectricAutoWorkbench.java
index 886500457b..87ae66b2ad 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_ElectricAutoWorkbench.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_ElectricAutoWorkbench.java
@@ -46,17 +46,17 @@ public class GT_MetaTileEntity_ElectricAutoWorkbench extends GT_MetaTileEntity_B
public GT_MetaTileEntity_ElectricAutoWorkbench(final int aID, final int aTier, final String aDescription) {
super(
- aID,
- "basicmachine.automation.autoworkbench.0" + aTier,
- "Auto Workbench (" + GT_Values.VN[aTier] + ")",
- aTier,
- 30,
- aDescription);
+ aID,
+ "basicmachine.automation.autoworkbench.0" + aTier,
+ "Auto Workbench (" + GT_Values.VN[aTier] + ")",
+ aTier,
+ 30,
+ aDescription);
mLocalName = "Auto Workbench (" + GT_Values.VN[aTier] + ")";
}
public GT_MetaTileEntity_ElectricAutoWorkbench(final String aName, final int aTier, final String[] aDescription,
- final ITexture[][][] aTextures) {
+ final ITexture[][][] aTextures) {
super(aName, aTier, 30, aDescription, aTextures);
}
@@ -149,10 +149,10 @@ public class GT_MetaTileEntity_ElectricAutoWorkbench extends GT_MetaTileEntity_B
@Override
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
return new GT_MetaTileEntity_ElectricAutoWorkbench(
- this.mName,
- this.mTier,
- this.mDescriptionArray,
- this.mTextures);
+ this.mName,
+ this.mTier,
+ this.mDescriptionArray,
+ this.mTextures);
}
@Override
@@ -212,13 +212,14 @@ public class GT_MetaTileEntity_ElectricAutoWorkbench extends GT_MetaTileEntity_B
public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
super.onPostTick(aBaseMetaTileEntity, aTick);
if (getBaseMetaTileEntity().isAllowedToWork() && getBaseMetaTileEntity().isServerSide()
- && getBaseMetaTileEntity().getUniversalEnergyStored() >= (mMode == 5 || mMode == 6 ? 128 : 2048)
- && (getBaseMetaTileEntity().hasWorkJustBeenEnabled() || --mTicksUntilNextUpdate < 1)) {
+ && getBaseMetaTileEntity().getUniversalEnergyStored() >= (mMode == 5 || mMode == 6 ? 128 : 2048)
+ && (getBaseMetaTileEntity().hasWorkJustBeenEnabled() || --mTicksUntilNextUpdate < 1)) {
mTicksUntilNextUpdate = 32;
for (byte i = 19; i < 28; i++) {
if (mInventory[i] != null && mInventory[i].isItemStackDamageable()
- && mInventory[i].getItem().hasContainerItem(mInventory[i])) {
+ && mInventory[i].getItem()
+ .hasContainerItem(mInventory[i])) {
mInventory[i].setItemDamage(OreDictionary.WILDCARD_VALUE);
}
}
@@ -229,9 +230,9 @@ public class GT_MetaTileEntity_ElectricAutoWorkbench extends GT_MetaTileEntity_B
if (tOutput != null) {
for (byte j = 0; j < 9; j++) {
if (mInventory[j] == null || (GT_Utility.areStacksEqual(tOutput, mInventory[j])
- && mInventory[j].stackSize + tOutput.stackSize <= tOutput.getMaxStackSize())) {
+ && mInventory[j].stackSize + tOutput.stackSize <= tOutput.getMaxStackSize())) {
mFluid.amount -= GT_Utility.getFluidForFilledItem(tOutput, true).amount
- * tOutput.stackSize;
+ * tOutput.stackSize;
getBaseMetaTileEntity().decrStackSize(i, 1);
if (mInventory[j] == null) {
mInventory[j] = tOutput;
@@ -262,7 +263,7 @@ public class GT_MetaTileEntity_ElectricAutoWorkbench extends GT_MetaTileEntity_B
switch (mMode) {
case 0 -> {
if (mInventory[mCurrentSlot] != null
- && !isItemTypeOrItsEmptyLiquidContainerInCraftingGrid(mInventory[mCurrentSlot])) {
+ && !isItemTypeOrItsEmptyLiquidContainerInCraftingGrid(mInventory[mCurrentSlot])) {
if (mInventory[18] == null && mThroughPut < 2 && mCurrentSlot < 8) {
mInventory[18] = mInventory[mCurrentSlot];
mInventory[mCurrentSlot] = null;
@@ -419,7 +420,7 @@ public class GT_MetaTileEntity_ElectricAutoWorkbench extends GT_MetaTileEntity_B
tRecipe[3] = tTempStack;
tRecipe[4] = tTempStack;
if (GT_ModHandler.getAllRecipeOutput(getBaseMetaTileEntity().getWorld(), tRecipe)
- == null) {
+ == null) {
if (mInventory[18] == null) {
mInventory[18] = mInventory[mCurrentSlot];
mInventory[mCurrentSlot] = null;
@@ -439,7 +440,7 @@ public class GT_MetaTileEntity_ElectricAutoWorkbench extends GT_MetaTileEntity_B
tRecipe[7] = tTempStack;
tRecipe[8] = tTempStack;
if (GT_ModHandler.getAllRecipeOutput(getBaseMetaTileEntity().getWorld(), tRecipe)
- == null) {
+ == null) {
if (mInventory[18] == null) {
mInventory[18] = mInventory[mCurrentSlot];
mInventory[mCurrentSlot] = null;
@@ -456,7 +457,7 @@ public class GT_MetaTileEntity_ElectricAutoWorkbench extends GT_MetaTileEntity_B
}
case 7 -> {
if (isItemTypeOrItsEmptyLiquidContainerInCraftingGrid(mInventory[mCurrentSlot])
- || !OrePrefixes.nugget.contains(mInventory[mCurrentSlot])) {
+ || !OrePrefixes.nugget.contains(mInventory[mCurrentSlot])) {
if (mInventory[18] == null && mThroughPut < 2) {
mInventory[18] = mInventory[mCurrentSlot];
mInventory[mCurrentSlot] = null;
@@ -485,8 +486,9 @@ public class GT_MetaTileEntity_ElectricAutoWorkbench extends GT_MetaTileEntity_B
}
case 8 -> {
if (isItemTypeOrItsEmptyLiquidContainerInCraftingGrid(mInventory[mCurrentSlot])
- || mInventory[mCurrentSlot].getItemDamage() <= 0
- || !mInventory[mCurrentSlot].getItem().isRepairable()) {
+ || mInventory[mCurrentSlot].getItemDamage() <= 0
+ || !mInventory[mCurrentSlot].getItem()
+ .isRepairable()) {
if (mInventory[18] == null && mThroughPut < 2) {
mInventory[18] = mInventory[mCurrentSlot];
mInventory[mCurrentSlot] = null;
@@ -498,12 +500,12 @@ public class GT_MetaTileEntity_ElectricAutoWorkbench extends GT_MetaTileEntity_B
tTempStack.stackSize = 1;
for (int i = mCurrentSlot + 1; i < 18; i++) {
if (mInventory[i] != null && mInventory[i].getItem() == tTempStack.getItem()
- && mInventory[mCurrentSlot].getItemDamage() + mInventory[i].getItemDamage()
- > tTempStack.getMaxDamage()) {
+ && mInventory[mCurrentSlot].getItemDamage() + mInventory[i].getItemDamage()
+ > tTempStack.getMaxDamage()) {
tRecipe[0] = tTempStack;
tRecipe[1] = GT_Utility.copy(mInventory[i]);
if (GT_ModHandler.getAllRecipeOutput(getBaseMetaTileEntity().getWorld(), tRecipe)
- == null) {
+ == null) {
if (mInventory[18] == null) {
mInventory[18] = mInventory[mCurrentSlot];
mInventory[mCurrentSlot] = null;
@@ -524,9 +526,9 @@ public class GT_MetaTileEntity_ElectricAutoWorkbench extends GT_MetaTileEntity_B
break;
}
for (byte i = 0, j = 0; i < 18 && j < 9
- && (j < 2 || GT_ModHandler
- .getAllRecipeOutput(getBaseMetaTileEntity().getWorld(), tRecipe)
- == null); i++) {
+ && (j < 2
+ || GT_ModHandler.getAllRecipeOutput(getBaseMetaTileEntity().getWorld(), tRecipe)
+ == null); i++) {
tRecipe[j] = mInventory[(mCurrentSlot + i) % 18];
if (tRecipe[j] != null) {
tRecipe[j] = GT_Utility.copy(tRecipe[j]);
@@ -579,17 +581,17 @@ public class GT_MetaTileEntity_ElectricAutoWorkbench extends GT_MetaTileEntity_B
if (tStack != null) {
getBaseMetaTileEntity().decrStackSize(j, 1);
if (!tStack.isItemStackDamageable()
- || tStack.getItemDamage() < tStack.getMaxDamage()) {
+ || tStack.getItemDamage() < tStack.getMaxDamage()) {
for (byte k = 9; k < 18; k++) {
if (mInventory[k] == null) {
mInventory[k] = GT_Utility.copy(tStack);
break;
} else if (GT_Utility.areStacksEqual(mInventory[k], tStack)
- && mInventory[k].stackSize + tStack.stackSize
- <= tStack.getMaxStackSize()) {
- mInventory[k].stackSize += tStack.stackSize;
- break;
- }
+ && mInventory[k].stackSize + tStack.stackSize
+ <= tStack.getMaxStackSize()) {
+ mInventory[k].stackSize += tStack.stackSize;
+ break;
+ }
}
}
} else {
@@ -602,9 +604,8 @@ public class GT_MetaTileEntity_ElectricAutoWorkbench extends GT_MetaTileEntity_B
}
mInventory[18] = GT_Utility.copy(tOutput);
- getBaseMetaTileEntity().decreaseStoredEnergyUnits(
- mMode == 5 || mMode == 6 || mMode == 7 ? 128 : 2048,
- true);
+ getBaseMetaTileEntity()
+ .decreaseStoredEnergyUnits(mMode == 5 || mMode == 6 || mMode == 7 ? 128 : 2048, true);
mTicksUntilNextUpdate = 1;
} else {
mLastCraftSuccessful = false;
@@ -620,7 +621,7 @@ public class GT_MetaTileEntity_ElectricAutoWorkbench extends GT_MetaTileEntity_B
for (byte i = 0; i < 8; i++) {
for (byte j = i; ++j < 9;) {
if (GT_Utility.areStacksEqual(mInventory[i], mInventory[j])
- && mInventory[i].getMaxStackSize() > 8) {
+ && mInventory[i].getMaxStackSize() > 8) {
mInventory[18] = mInventory[j];
mInventory[j] = null;
mTicksUntilNextUpdate = 1;
@@ -633,21 +634,19 @@ public class GT_MetaTileEntity_ElectricAutoWorkbench extends GT_MetaTileEntity_B
}
if (mThroughPut < 2) {
- getBaseMetaTileEntity()
- .decreaseStoredEnergyUnits(
- GT_Utility.moveOneItemStack(
- getBaseMetaTileEntity(),
- getBaseMetaTileEntity()
- .getIInventoryAtSide(getBaseMetaTileEntity().getBackFacing()),
- getBaseMetaTileEntity().getBackFacing(),
- getBaseMetaTileEntity().getFrontFacing(),
- null,
- false,
- (byte) 64,
- (byte) 1,
- (byte) 64,
- (byte) 1) * 10,
- true);
+ getBaseMetaTileEntity().decreaseStoredEnergyUnits(
+ GT_Utility.moveOneItemStack(
+ getBaseMetaTileEntity(),
+ getBaseMetaTileEntity().getIInventoryAtSide(getBaseMetaTileEntity().getBackFacing()),
+ getBaseMetaTileEntity().getBackFacing(),
+ getBaseMetaTileEntity().getFrontFacing(),
+ null,
+ false,
+ (byte) 64,
+ (byte) 1,
+ (byte) 64,
+ (byte) 1) * 10,
+ true);
}
}
}
@@ -702,13 +701,13 @@ public class GT_MetaTileEntity_ElectricAutoWorkbench extends GT_MetaTileEntity_B
@Override
public boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
return mMode == 0 ? aIndex >= 10 : aIndex >= 18;
}
@Override
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
return mMode == 0 ? aIndex < 9 : aIndex < 18;
}
@@ -730,8 +729,8 @@ public class GT_MetaTileEntity_ElectricAutoWorkbench extends GT_MetaTileEntity_B
@Override
public String[] getDescription() {
return new String[] { "Automatic Crafting Table Mk III",
- // this.mDescription,
- CORE.GT_Tooltip.get() };
+ // this.mDescription,
+ CORE.GT_Tooltip.get() };
}
@Override
@@ -754,7 +753,7 @@ public class GT_MetaTileEntity_ElectricAutoWorkbench extends GT_MetaTileEntity_B
@Override
public ITexture[] getTexture(final IGregTechTileEntity aBaseMetaTileEntity, final ForgeDirection side,
- final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
+ final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
if (side == facing) {
return this.mTextures[0][aColorIndex + 1];
} else if (side.getOpposite() == facing) {
@@ -766,12 +765,12 @@ public class GT_MetaTileEntity_ElectricAutoWorkbench extends GT_MetaTileEntity_B
public ITexture[] getFront(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Adv_Workbench_Crafting_Overlay) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Adv_Workbench_Crafting_Overlay) };
}
public ITexture[] getBack(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[mTier][aColor + 1],
- new GT_RenderedTexture(BlockIcons.OVERLAY_PIPE) };
+ new GT_RenderedTexture(BlockIcons.OVERLAY_PIPE) };
}
public ITexture[] getBottom(final byte aColor) {
@@ -780,12 +779,12 @@ public class GT_MetaTileEntity_ElectricAutoWorkbench extends GT_MetaTileEntity_B
public ITexture[] getTop(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Adv_Workbench_Crafting_Overlay) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Adv_Workbench_Crafting_Overlay) };
}
public ITexture[] getSides(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Adv_Workbench_Crafting_Overlay) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Adv_Workbench_Crafting_Overlay) };
}
@Override
@@ -796,49 +795,79 @@ public class GT_MetaTileEntity_ElectricAutoWorkbench extends GT_MetaTileEntity_B
@Override
public void addGregTechLogo(ModularWindow.Builder builder) {
builder.widget(
- new DrawableWidget().setDrawable(getGUITextureSet().getGregTechLogo()).setSize(17, 17).setPos(118, 22));
+ new DrawableWidget().setDrawable(getGUITextureSet().getGregTechLogo())
+ .setSize(17, 17)
+ .setPos(118, 22));
}
@Override
public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildContext) {
- builder.widget(SlotGroup.ofItemHandler(inventoryHandler, 3).endAtSlot(8).build().setPos(7, 4))
- .widget(
- SlotGroup.ofItemHandler(inventoryHandler, 9).startFromSlot(9).endAtSlot(17).canInsert(false)
- .background(GT_UITextures.SLOT_DARK_GRAY).applyForWidget(SlotWidget::disableShiftInsert)
- .build().setPos(7, 59))
- .widget(
- new SlotWidget(inventoryHandler, 18).setAccess(true, false)
- .setBackground(getGUITextureSet().getItemSlot(), GT_UITextures.OVERLAY_SLOT_OUT)
- .setPos(151, 40))
- .widget(
- new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SLOTS_HOLO_3BY3).setPos(62, 4)
- .setSize(54, 54))
- .widget(
- SlotGroup.ofItemHandler(inventoryHandler, 3).startFromSlot(19).endAtSlot(27).phantom(true)
- .background(GT_UITextures.TRANSPARENT).build().setPos(62, 4))
- .widget(
- SlotWidget.phantom(inventoryHandler, 28).disableInteraction()
- .setBackground(getGUITextureSet().getItemSlot(), GTPP_UITextures.OVERLAY_SLOT_ARROW_4)
- .setPos(151, 4));
builder.widget(
- new CycleButtonWidget().setGetter(() -> mThroughPut).setSetter(val -> mThroughPut = val)
- .setLength(MAX_THROUGHPUT).setTextureGetter(i -> GTPP_UITextures.OVERLAY_BUTTON_THROUGHPUT[i])
- .setBackground(GT_UITextures.BUTTON_STANDARD).setPos(120, 4).setSize(18, 18));
+ SlotGroup.ofItemHandler(inventoryHandler, 3)
+ .endAtSlot(8)
+ .build()
+ .setPos(7, 4))
+ .widget(
+ SlotGroup.ofItemHandler(inventoryHandler, 9)
+ .startFromSlot(9)
+ .endAtSlot(17)
+ .canInsert(false)
+ .background(GT_UITextures.SLOT_DARK_GRAY)
+ .applyForWidget(SlotWidget::disableShiftInsert)
+ .build()
+ .setPos(7, 59))
+ .widget(
+ new SlotWidget(inventoryHandler, 18).setAccess(true, false)
+ .setBackground(getGUITextureSet().getItemSlot(), GT_UITextures.OVERLAY_SLOT_OUT)
+ .setPos(151, 40))
+ .widget(
+ new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SLOTS_HOLO_3BY3)
+ .setPos(62, 4)
+ .setSize(54, 54))
+ .widget(
+ SlotGroup.ofItemHandler(inventoryHandler, 3)
+ .startFromSlot(19)
+ .endAtSlot(27)
+ .phantom(true)
+ .background(GT_UITextures.TRANSPARENT)
+ .build()
+ .setPos(62, 4))
+ .widget(
+ SlotWidget.phantom(inventoryHandler, 28)
+ .disableInteraction()
+ .setBackground(getGUITextureSet().getItemSlot(), GTPP_UITextures.OVERLAY_SLOT_ARROW_4)
+ .setPos(151, 4));
+ builder.widget(
+ new CycleButtonWidget().setGetter(() -> mThroughPut)
+ .setSetter(val -> mThroughPut = val)
+ .setLength(MAX_THROUGHPUT)
+ .setTextureGetter(i -> GTPP_UITextures.OVERLAY_BUTTON_THROUGHPUT[i])
+ .setBackground(GT_UITextures.BUTTON_STANDARD)
+ .setPos(120, 4)
+ .setSize(18, 18));
String[] mModeText = new String[] { "Normal Crafting Table", "???", "1x1", "2x2", "3x3", "Unifier", "Dust",
- "???", "Hammer?", "Circle" };
- CycleButtonWidget modeButton = new CycleButtonWidget().setGetter(() -> mMode).setSetter(val -> {
- mMode = val;
- switchMode();
- }).setLength(MAX_MODES).setTextureGetter(i -> GTPP_UITextures.OVERLAY_BUTTON_MODE[i]);
+ "???", "Hammer?", "Circle" };
+ CycleButtonWidget modeButton = new CycleButtonWidget().setGetter(() -> mMode)
+ .setSetter(val -> {
+ mMode = val;
+ switchMode();
+ })
+ .setLength(MAX_MODES)
+ .setTextureGetter(i -> GTPP_UITextures.OVERLAY_BUTTON_MODE[i]);
for (int i = 0; i < MAX_MODES; i++) {
modeButton.addTooltip(i, "Mode: " + mModeText[i]);
}
- builder.widget(modeButton.setBackground(GT_UITextures.BUTTON_STANDARD).setPos(120, 40).setSize(18, 18));
builder.widget(
- new DrawableWidget().setDrawable(GTPP_UITextures.PICTURE_WORKBENCH_CIRCLE).setPos(136, 23)
- .setSize(16, 16))
- .widget(
- new DrawableWidget().setDrawable(GTPP_UITextures.PICTURE_ARROW_WHITE_DOWN).setPos(155, 23)
- .setSize(10, 16));
+ modeButton.setBackground(GT_UITextures.BUTTON_STANDARD)
+ .setPos(120, 40)
+ .setSize(18, 18));
+ builder.widget(
+ new DrawableWidget().setDrawable(GTPP_UITextures.PICTURE_WORKBENCH_CIRCLE)
+ .setPos(136, 23)
+ .setSize(16, 16))
+ .widget(
+ new DrawableWidget().setDrawable(GTPP_UITextures.PICTURE_ARROW_WHITE_DOWN)
+ .setPos(155, 23)
+ .setSize(10, 16));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractGenerator.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractGenerator.java
index 25609343d3..7fc2b50f68 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractGenerator.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractGenerator.java
@@ -48,12 +48,12 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
public UUID mOwner;
public GT_MetaTileEntity_TesseractGenerator(final int aID, final String aName, final String aNameRegional,
- final int aTier) {
+ final int aTier) {
super(aID, aName, aNameRegional, aTier, 3, "");
}
public GT_MetaTileEntity_TesseractGenerator(final String aName, final int aTier, final String[] aDescription,
- final ITexture[][][] aTextures) {
+ final ITexture[][][] aTextures) {
super(aName, aTier, 3, aDescription, aTextures);
}
@@ -99,7 +99,8 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public boolean isOutputFacing(final ForgeDirection side) {
- return side == this.getBaseMetaTileEntity().getBackFacing();
+ return side == this.getBaseMetaTileEntity()
+ .getBackFacing();
}
@Override
@@ -109,7 +110,8 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public long getMinimumStoredEU() {
- return this.getBaseMetaTileEntity().getEUCapacity() / 2;
+ return this.getBaseMetaTileEntity()
+ .getEUCapacity() / 2;
}
@Override
@@ -145,7 +147,7 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public int getProgresstime() {
return (TesseractHelper.getGeneratorByFrequency(PlayerUtils.getPlayerOnServerFromUUID(mOwner), this.mFrequency)
- == this) && (this.isWorking >= 20) ? 999 : 0;
+ == this) && (this.isWorking >= 20) ? 999 : 0;
}
@Override
@@ -189,26 +191,38 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public boolean onRightclick(final IGregTechTileEntity aBaseMetaTileEntity, final EntityPlayer aPlayer,
- final ForgeDirection side, final float aX, final float aY, final float aZ) {
+ final ForgeDirection side, final float aX, final float aY, final float aZ) {
if (this.mOwner == null) {
- if (this.getBaseMetaTileEntity().getOwnerName() != null
- && !this.getBaseMetaTileEntity().getOwnerName().equals("")) {
- if (this.getBaseMetaTileEntity().getOwnerName().toLowerCase()
- .equals(aPlayer.getDisplayName().toLowerCase())) {
- this.mOwner = PlayerUtils.getPlayersUUIDByName(this.getBaseMetaTileEntity().getOwnerName());
+ if (this.getBaseMetaTileEntity()
+ .getOwnerName() != null
+ && !this.getBaseMetaTileEntity()
+ .getOwnerName()
+ .equals("")) {
+ if (this.getBaseMetaTileEntity()
+ .getOwnerName()
+ .toLowerCase()
+ .equals(
+ aPlayer.getDisplayName()
+ .toLowerCase())) {
+ this.mOwner = PlayerUtils.getPlayersUUIDByName(
+ this.getBaseMetaTileEntity()
+ .getOwnerName());
}
}
}
- if (side == this.getBaseMetaTileEntity().getFrontFacing()) {
- if (aPlayer.getUniqueID().compareTo(this.mOwner) == 0) {
+ if (side == this.getBaseMetaTileEntity()
+ .getFrontFacing()) {
+ if (aPlayer.getUniqueID()
+ .compareTo(this.mOwner) == 0) {
final float[] tCoords = GT_Utility.getClickedFacingCoords(side, aX, aY, aZ);
switch ((byte) ((byte) (int) (tCoords[0] * 2.0F) + (2 * (byte) (int) (tCoords[1] * 2.0F)))) {
case 0:
Logger.WARNING("Freq. -1 | " + this.mFrequency);
try {
- CORE.sTesseractGeneratorOwnershipMap.get(mOwner).remove(this.mFrequency);
+ CORE.sTesseractGeneratorOwnershipMap.get(mOwner)
+ .remove(this.mFrequency);
} catch (Throwable t) {}
this.mFrequency -= 1;
@@ -216,7 +230,8 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
case 1:
Logger.WARNING("Freq. +1 | " + this.mFrequency);
try {
- CORE.sTesseractGeneratorOwnershipMap.get(mOwner).remove(this.mFrequency);
+ CORE.sTesseractGeneratorOwnershipMap.get(mOwner)
+ .remove(this.mFrequency);
} catch (Throwable t) {}
this.mFrequency += 1;
default:
@@ -225,14 +240,15 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
}
if (getGeneratorEntity(this.mFrequency) != null && getGeneratorEntity(this.mFrequency) != this) {
GT_Utility.sendChatToPlayer(
- aPlayer,
- "Frequency: " + this.mFrequency + EnumChatFormatting.RED + " (Occupied)");
+ aPlayer,
+ "Frequency: " + this.mFrequency + EnumChatFormatting.RED + " (Occupied)");
} else {
GT_Utility.sendChatToPlayer(aPlayer, "Frequency: " + this.mFrequency);
}
- } else if (aPlayer.getUniqueID().compareTo(this.mOwner) != 0) {
- GT_Utility.sendChatToPlayer(aPlayer, "This is not your Tesseract Generator to configure.");
- }
+ } else if (aPlayer.getUniqueID()
+ .compareTo(this.mOwner) != 0) {
+ GT_Utility.sendChatToPlayer(aPlayer, "This is not your Tesseract Generator to configure.");
+ }
}
return true;
@@ -240,40 +256,46 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public void onScrewdriverRightClick(final ForgeDirection side, final EntityPlayer aPlayer, final float aX,
- final float aY, final float aZ) {
- if (aPlayer.getUniqueID().compareTo(this.mOwner) == 0) {
- if (side == this.getBaseMetaTileEntity().getFrontFacing()) {
+ final float aY, final float aZ) {
+ if (aPlayer.getUniqueID()
+ .compareTo(this.mOwner) == 0) {
+ if (side == this.getBaseMetaTileEntity()
+ .getFrontFacing()) {
final float[] tCoords = GT_Utility.getClickedFacingCoords(side, aX, aY, aZ);
switch ((byte) ((byte) (int) (tCoords[0] * 2.0F) + (2 * (byte) (int) (tCoords[1] * 2.0F)))) {
case 0 -> {
try {
- CORE.sTesseractGeneratorOwnershipMap.get(mOwner).remove(this.mFrequency);
+ CORE.sTesseractGeneratorOwnershipMap.get(mOwner)
+ .remove(this.mFrequency);
} catch (Throwable t) {}
this.mFrequency -= 64;
}
case 1 -> {
try {
- CORE.sTesseractGeneratorOwnershipMap.get(mOwner).remove(this.mFrequency);
+ CORE.sTesseractGeneratorOwnershipMap.get(mOwner)
+ .remove(this.mFrequency);
} catch (Throwable t) {}
this.mFrequency += 64;
}
case 2 -> {
try {
- CORE.sTesseractGeneratorOwnershipMap.get(mOwner).remove(this.mFrequency);
+ CORE.sTesseractGeneratorOwnershipMap.get(mOwner)
+ .remove(this.mFrequency);
} catch (Throwable t) {}
this.mFrequency -= 512;
}
case 3 -> {
try {
- CORE.sTesseractGeneratorOwnershipMap.get(mOwner).remove(this.mFrequency);
+ CORE.sTesseractGeneratorOwnershipMap.get(mOwner)
+ .remove(this.mFrequency);
} catch (Throwable t) {}
this.mFrequency += 512;
}
}
if (getGeneratorEntity(this.mFrequency) != null && getGeneratorEntity(this.mFrequency) != this) {
GT_Utility.sendChatToPlayer(
- aPlayer,
- "Frequency: " + this.mFrequency + EnumChatFormatting.RED + " (Occupied)");
+ aPlayer,
+ "Frequency: " + this.mFrequency + EnumChatFormatting.RED + " (Occupied)");
} else {
GT_Utility.sendChatToPlayer(aPlayer, "Frequency: " + this.mFrequency);
}
@@ -284,20 +306,24 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
}
public boolean allowCoverOnSide(final ForgeDirection side, final int aCoverID) {
- return side != this.getBaseMetaTileEntity().getFrontFacing();
+ return side != this.getBaseMetaTileEntity()
+ .getFrontFacing();
}
@Override
public String[] getInfoData() {
final TileEntity tTileEntity = this.getBaseMetaTileEntity()
- .getTileEntityAtSide(this.getBaseMetaTileEntity().getBackFacing());
- if ((tTileEntity != null) && (this.getBaseMetaTileEntity().isAllowedToWork())
- && ((tTileEntity instanceof IGregTechDeviceInformation))
- && (((IGregTechDeviceInformation) tTileEntity).isGivingInformation())) {
+ .getTileEntityAtSide(
+ this.getBaseMetaTileEntity()
+ .getBackFacing());
+ if ((tTileEntity != null) && (this.getBaseMetaTileEntity()
+ .isAllowedToWork())
+ && ((tTileEntity instanceof IGregTechDeviceInformation))
+ && (((IGregTechDeviceInformation) tTileEntity).isGivingInformation())) {
return ((IGregTechDeviceInformation) tTileEntity).getInfoData();
}
return new String[] { "Tesseract Generator", "Freqency:", "" + this.mFrequency,
- (getGeneratorEntity() == this) && (this.isWorking >= 20) ? "Active" : "Inactive" };
+ (getGeneratorEntity() == this) && (this.isWorking >= 20) ? "Active" : "Inactive" };
}
@Override
@@ -307,9 +333,11 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
public boolean isSendingInformation() {
final TileEntity tTileEntity = this.getBaseMetaTileEntity()
- .getTileEntityAtSide(this.getBaseMetaTileEntity().getBackFacing());
- if ((tTileEntity != null) && (this.getBaseMetaTileEntity().isAllowedToWork())
- && ((tTileEntity instanceof IGregTechDeviceInformation))) {
+ .getTileEntityAtSide(
+ this.getBaseMetaTileEntity()
+ .getBackFacing());
+ if ((tTileEntity != null) && (this.getBaseMetaTileEntity()
+ .isAllowedToWork()) && ((tTileEntity instanceof IGregTechDeviceInformation))) {
return ((IGregTechDeviceInformation) tTileEntity).isGivingInformation();
}
return false;
@@ -318,9 +346,11 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public boolean isDigitalChest() {
final TileEntity tTileEntity = this.getBaseMetaTileEntity()
- .getTileEntityAtSide(this.getBaseMetaTileEntity().getBackFacing());
- if ((tTileEntity != null) && (this.getBaseMetaTileEntity().isAllowedToWork())
- && ((tTileEntity instanceof IDigitalChest))) {
+ .getTileEntityAtSide(
+ this.getBaseMetaTileEntity()
+ .getBackFacing());
+ if ((tTileEntity != null) && (this.getBaseMetaTileEntity()
+ .isAllowedToWork()) && ((tTileEntity instanceof IDigitalChest))) {
return ((IDigitalChest) tTileEntity).isDigitalChest();
}
return false;
@@ -329,9 +359,11 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public ItemStack[] getStoredItemData() {
final TileEntity tTileEntity = this.getBaseMetaTileEntity()
- .getTileEntityAtSide(this.getBaseMetaTileEntity().getBackFacing());
- if ((tTileEntity != null) && (this.getBaseMetaTileEntity().isAllowedToWork())
- && ((tTileEntity instanceof IDigitalChest))) {
+ .getTileEntityAtSide(
+ this.getBaseMetaTileEntity()
+ .getBackFacing());
+ if ((tTileEntity != null) && (this.getBaseMetaTileEntity()
+ .isAllowedToWork()) && ((tTileEntity instanceof IDigitalChest))) {
return ((IDigitalChest) tTileEntity).getStoredItemData();
}
return new ItemStack[] {};
@@ -340,9 +372,11 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public void setItemCount(final int aCount) {
final TileEntity tTileEntity = this.getBaseMetaTileEntity()
- .getTileEntityAtSide(this.getBaseMetaTileEntity().getBackFacing());
- if ((tTileEntity != null) && (this.getBaseMetaTileEntity().isAllowedToWork())
- && ((tTileEntity instanceof IDigitalChest))) {
+ .getTileEntityAtSide(
+ this.getBaseMetaTileEntity()
+ .getBackFacing());
+ if ((tTileEntity != null) && (this.getBaseMetaTileEntity()
+ .isAllowedToWork()) && ((tTileEntity instanceof IDigitalChest))) {
((IDigitalChest) tTileEntity).setItemCount(aCount);
}
}
@@ -350,9 +384,11 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public int getMaxItemCount() {
final TileEntity tTileEntity = this.getBaseMetaTileEntity()
- .getTileEntityAtSide(this.getBaseMetaTileEntity().getBackFacing());
- if ((tTileEntity != null) && (this.getBaseMetaTileEntity().isAllowedToWork())
- && ((tTileEntity instanceof IDigitalChest))) {
+ .getTileEntityAtSide(
+ this.getBaseMetaTileEntity()
+ .getBackFacing());
+ if ((tTileEntity != null) && (this.getBaseMetaTileEntity()
+ .isAllowedToWork()) && ((tTileEntity instanceof IDigitalChest))) {
return ((IDigitalChest) tTileEntity).getMaxItemCount();
}
return 0;
@@ -361,8 +397,11 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public boolean isItemValidForSlot(final int aIndex, final ItemStack aStack) {
final IInventory tTileEntity = this.getBaseMetaTileEntity()
- .getIInventoryAtSide(this.getBaseMetaTileEntity().getBackFacing());
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ .getIInventoryAtSide(
+ this.getBaseMetaTileEntity()
+ .getBackFacing());
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return false;
}
return tTileEntity.isItemValidForSlot(aIndex, aStack);
@@ -371,8 +410,11 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public int[] getAccessibleSlotsFromSide(final int ordinalSide) {
final IInventory tTileEntity = this.getBaseMetaTileEntity()
- .getIInventoryAtSide(this.getBaseMetaTileEntity().getBackFacing());
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ .getIInventoryAtSide(
+ this.getBaseMetaTileEntity()
+ .getBackFacing());
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return new int[0];
}
if ((tTileEntity instanceof ISidedInventory)) {
@@ -388,8 +430,11 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public boolean canInsertItem(final int aIndex, final ItemStack aStack, final int ordinalSide) {
final IInventory tTileEntity = this.getBaseMetaTileEntity()
- .getIInventoryAtSide(this.getBaseMetaTileEntity().getBackFacing());
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ .getIInventoryAtSide(
+ this.getBaseMetaTileEntity()
+ .getBackFacing());
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return false;
}
if ((tTileEntity instanceof ISidedInventory)) {
@@ -401,8 +446,11 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public boolean canExtractItem(final int aIndex, final ItemStack aStack, final int ordinalSide) {
final IInventory tTileEntity = this.getBaseMetaTileEntity()
- .getIInventoryAtSide(this.getBaseMetaTileEntity().getBackFacing());
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ .getIInventoryAtSide(
+ this.getBaseMetaTileEntity()
+ .getBackFacing());
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return false;
}
if ((tTileEntity instanceof ISidedInventory)) {
@@ -414,8 +462,11 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public int getSizeInventory() {
final IInventory tTileEntity = this.getBaseMetaTileEntity()
- .getIInventoryAtSide(this.getBaseMetaTileEntity().getBackFacing());
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ .getIInventoryAtSide(
+ this.getBaseMetaTileEntity()
+ .getBackFacing());
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return 0;
}
return tTileEntity.getSizeInventory();
@@ -424,8 +475,11 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public ItemStack getStackInSlot(final int aIndex) {
final IInventory tTileEntity = this.getBaseMetaTileEntity()
- .getIInventoryAtSide(this.getBaseMetaTileEntity().getBackFacing());
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ .getIInventoryAtSide(
+ this.getBaseMetaTileEntity()
+ .getBackFacing());
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return null;
}
return tTileEntity.getStackInSlot(aIndex);
@@ -434,8 +488,11 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public void setInventorySlotContents(final int aIndex, final ItemStack aStack) {
final IInventory tTileEntity = this.getBaseMetaTileEntity()
- .getIInventoryAtSide(this.getBaseMetaTileEntity().getBackFacing());
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ .getIInventoryAtSide(
+ this.getBaseMetaTileEntity()
+ .getBackFacing());
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return;
}
tTileEntity.setInventorySlotContents(aIndex, aStack);
@@ -444,8 +501,11 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public ItemStack decrStackSize(final int aIndex, final int aAmount) {
final IInventory tTileEntity = this.getBaseMetaTileEntity()
- .getIInventoryAtSide(this.getBaseMetaTileEntity().getBackFacing());
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ .getIInventoryAtSide(
+ this.getBaseMetaTileEntity()
+ .getBackFacing());
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return null;
}
return tTileEntity.decrStackSize(aIndex, aAmount);
@@ -454,8 +514,11 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public String getInventoryName() {
final IInventory tTileEntity = this.getBaseMetaTileEntity()
- .getIInventoryAtSide(this.getBaseMetaTileEntity().getBackFacing());
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ .getIInventoryAtSide(
+ this.getBaseMetaTileEntity()
+ .getBackFacing());
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return "";
}
return tTileEntity.getInventoryName();
@@ -464,8 +527,11 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public int getInventoryStackLimit() {
final IInventory tTileEntity = this.getBaseMetaTileEntity()
- .getIInventoryAtSide(this.getBaseMetaTileEntity().getBackFacing());
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ .getIInventoryAtSide(
+ this.getBaseMetaTileEntity()
+ .getBackFacing());
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return 0;
}
return tTileEntity.getInventoryStackLimit();
@@ -474,8 +540,11 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public boolean canFill(final ForgeDirection aSide, final Fluid aFluid) {
final IFluidHandler tTileEntity = this.getBaseMetaTileEntity()
- .getITankContainerAtSide(this.getBaseMetaTileEntity().getBackFacing());
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ .getITankContainerAtSide(
+ this.getBaseMetaTileEntity()
+ .getBackFacing());
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return false;
}
return tTileEntity.canFill(aSide, aFluid);
@@ -484,8 +553,11 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public boolean canDrain(final ForgeDirection aSide, final Fluid aFluid) {
final IFluidHandler tTileEntity = this.getBaseMetaTileEntity()
- .getITankContainerAtSide(this.getBaseMetaTileEntity().getBackFacing());
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ .getITankContainerAtSide(
+ this.getBaseMetaTileEntity()
+ .getBackFacing());
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return false;
}
return tTileEntity.canDrain(aSide, aFluid);
@@ -494,8 +566,11 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public FluidTankInfo[] getTankInfo(final ForgeDirection aSide) {
final IFluidHandler tTileEntity = this.getBaseMetaTileEntity()
- .getITankContainerAtSide(this.getBaseMetaTileEntity().getBackFacing());
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ .getITankContainerAtSide(
+ this.getBaseMetaTileEntity()
+ .getBackFacing());
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return new FluidTankInfo[0];
}
return tTileEntity.getTankInfo(aSide);
@@ -504,8 +579,11 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public int fill_default(final ForgeDirection aDirection, final FluidStack aFluid, final boolean doFill) {
final IFluidHandler tTileEntity = this.getBaseMetaTileEntity()
- .getITankContainerAtSide(this.getBaseMetaTileEntity().getBackFacing());
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ .getITankContainerAtSide(
+ this.getBaseMetaTileEntity()
+ .getBackFacing());
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return 0;
}
return tTileEntity.fill(aDirection, aFluid, doFill);
@@ -514,8 +592,11 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public FluidStack drain(final ForgeDirection aDirection, final int maxDrain, final boolean doDrain) {
final IFluidHandler tTileEntity = this.getBaseMetaTileEntity()
- .getITankContainerAtSide(this.getBaseMetaTileEntity().getBackFacing());
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ .getITankContainerAtSide(
+ this.getBaseMetaTileEntity()
+ .getBackFacing());
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return null;
}
return tTileEntity.drain(aDirection, maxDrain, doDrain);
@@ -524,20 +605,25 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public FluidStack drain(final ForgeDirection aSide, final FluidStack aFluid, final boolean doDrain) {
final IFluidHandler tTileEntity = this.getBaseMetaTileEntity()
- .getITankContainerAtSide(this.getBaseMetaTileEntity().getBackFacing());
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ .getITankContainerAtSide(
+ this.getBaseMetaTileEntity()
+ .getBackFacing());
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return null;
}
return tTileEntity.drain(aSide, aFluid, doDrain);
}
public boolean addEnergyConsumption(final GT_MetaTileEntity_TesseractTerminal aTerminal) {
- if (!this.getBaseMetaTileEntity().isAllowedToWork()) {
+ if (!this.getBaseMetaTileEntity()
+ .isAllowedToWork()) {
return false;
}
- int J = (aTerminal.getBaseMetaTileEntity().getWorld() == this.getBaseMetaTileEntity().getWorld()
- ? TESSERACT_ENERGY_COST
- : TESSERACT_ENERGY_COST_DIMENSIONAL);
+ int J = (aTerminal.getBaseMetaTileEntity()
+ .getWorld()
+ == this.getBaseMetaTileEntity()
+ .getWorld() ? TESSERACT_ENERGY_COST : TESSERACT_ENERGY_COST_DIMENSIONAL);
J *= 4;
@@ -547,10 +633,14 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
}
public boolean isValidTesseractGenerator(final String aOwnerName, final boolean aWorkIrrelevant) {
- return (this.getBaseMetaTileEntity() != null) && (!this.getBaseMetaTileEntity().isInvalidTileEntity())
- && (this.getBaseMetaTileEntity().isAllowedToWork())
- && ((aOwnerName == null) || (this.getBaseMetaTileEntity().getOwnerName().equals(aOwnerName)))
- && ((aWorkIrrelevant) || (this.isWorking >= 20));
+ return (this.getBaseMetaTileEntity() != null) && (!this.getBaseMetaTileEntity()
+ .isInvalidTileEntity())
+ && (this.getBaseMetaTileEntity()
+ .isAllowedToWork())
+ && ((aOwnerName == null) || (this.getBaseMetaTileEntity()
+ .getOwnerName()
+ .equals(aOwnerName)))
+ && ((aWorkIrrelevant) || (this.isWorking >= 20));
}
@Override
@@ -562,13 +652,19 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
// Utils.LOG_WARNING("Ticking Generator. 0");
- if (this.getBaseMetaTileEntity().isServerSide()) {
+ if (this.getBaseMetaTileEntity()
+ .isServerSide()) {
// Utils.LOG_WARNING("Ticking Generator.");
// Set owner
- if (PlayerUtils.getPlayersUUIDByName(this.getBaseMetaTileEntity().getOwnerName()) != null) {
+ if (PlayerUtils.getPlayersUUIDByName(
+ this.getBaseMetaTileEntity()
+ .getOwnerName())
+ != null) {
if (this.mOwner == null) {
Logger.WARNING("Setting Generators Owner. 1");
- this.mOwner = PlayerUtils.getPlayersUUIDByName(this.getBaseMetaTileEntity().getOwnerName());
+ this.mOwner = PlayerUtils.getPlayersUUIDByName(
+ this.getBaseMetaTileEntity()
+ .getOwnerName());
}
}
@@ -578,29 +674,32 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
if (getGeneratorEntity() == this) {
getGeneratorEntity(this.oFrequency);
- this.getBaseMetaTileEntity().issueBlockUpdate();
+ this.getBaseMetaTileEntity()
+ .issueBlockUpdate();
Logger.WARNING("this Gen == oFreq on map - do block update");
}
Logger.WARNING("mFreq will be set to oFreq");
this.oFrequency = this.mFrequency;
}
- if ((this.getBaseMetaTileEntity().isAllowedToWork())
- && (this.getBaseMetaTileEntity().decreaseStoredEnergyUnits(this.mNeededEnergy, false))) {
+ if ((this.getBaseMetaTileEntity()
+ .isAllowedToWork())
+ && (this.getBaseMetaTileEntity()
+ .decreaseStoredEnergyUnits(this.mNeededEnergy, false))) {
// Utils.LOG_WARNING("Can Work & Has Energy");
if ((getGeneratorEntity(Integer.valueOf(this.mFrequency)) == null)
- || (!getGeneratorEntity(Integer.valueOf(this.mFrequency))
- .isValidTesseractGenerator(null, true))) {
+ || (!getGeneratorEntity(Integer.valueOf(this.mFrequency)).isValidTesseractGenerator(null, true))) {
// Utils.LOG_WARNING("storing TE I think to mFreq map?");
TesseractHelper.setGeneratorOwnershipByPlayer(
- PlayerUtils.getPlayerOnServerFromUUID(mOwner),
- this.mFrequency,
- this);
+ PlayerUtils.getPlayerOnServerFromUUID(mOwner),
+ this.mFrequency,
+ this);
}
} else {
if (getGeneratorEntity(Integer.valueOf(this.mFrequency)) == this) {
Logger.WARNING("this gen == mFreq on map - do block update");
TesseractHelper.removeGenerator(PlayerUtils.getPlayerOnServerFromUUID(mOwner), this.mFrequency);
- this.getBaseMetaTileEntity().issueBlockUpdate();
+ this.getBaseMetaTileEntity()
+ .issueBlockUpdate();
}
this.isWorking = 0;
}
@@ -610,7 +709,8 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
this.isWorking = ((byte) (this.isWorking + 1));
}
if (this.isWorking == 20) {
- this.getBaseMetaTileEntity().issueBlockUpdate();
+ this.getBaseMetaTileEntity()
+ .issueBlockUpdate();
this.isWorking = ((byte) (this.isWorking + 1));
}
} else {
@@ -624,23 +724,23 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public String[] getDescription() {
return ArrayUtils.addAll(
- this.mDescriptionArray,
- "Generates a Tesseract for the attached Inventory",
- "Connect with pipes to insert items",
- "Consumes " + TESSERACT_ENERGY_COST + "EU/t for same dimension transfers",
- "Consumes " + TESSERACT_ENERGY_COST_DIMENSIONAL + "EU/t for cross dimensional transfers",
- CORE.GT_Tooltip.get());
+ this.mDescriptionArray,
+ "Generates a Tesseract for the attached Inventory",
+ "Connect with pipes to insert items",
+ "Consumes " + TESSERACT_ENERGY_COST + "EU/t for same dimension transfers",
+ "Consumes " + TESSERACT_ENERGY_COST_DIMENSIONAL + "EU/t for cross dimensional transfers",
+ CORE.GT_Tooltip.get());
}
@Override
public boolean allowPullStack(final IGregTechTileEntity aBaseMetaTileEntity, final int aIndex,
- final ForgeDirection side, final ItemStack aStack) {
+ final ForgeDirection side, final ItemStack aStack) {
return false;
}
@Override
public boolean allowPutStack(final IGregTechTileEntity aBaseMetaTileEntity, final int aIndex,
- final ForgeDirection side, final ItemStack aStack) {
+ final ForgeDirection side, final ItemStack aStack) {
return false;
}
@@ -651,12 +751,12 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public ITexture[] getTexture(final IGregTechTileEntity aBaseMetaTileEntity, final ForgeDirection side,
- final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
+ final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
return side == facing
- ? new ITexture[] { new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Dimensional),
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Screen_Frequency) }
- : new ITexture[] { new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Dimensional),
- new GT_RenderedTexture(Textures.BlockIcons.VOID) };
+ ? new ITexture[] { new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Dimensional),
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Screen_Frequency) }
+ : new ITexture[] { new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Dimensional),
+ new GT_RenderedTexture(Textures.BlockIcons.VOID) };
}
// To-Do?
@@ -692,7 +792,7 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
private GT_MetaTileEntity_TesseractGenerator getGeneratorEntity() {
GT_MetaTileEntity_TesseractGenerator thisGenerator = TesseractHelper
- .getGeneratorByFrequency(PlayerUtils.getPlayerOnServerFromUUID(mOwner), this.mFrequency);
+ .getGeneratorByFrequency(PlayerUtils.getPlayerOnServerFromUUID(mOwner), this.mFrequency);
if (thisGenerator != null) {
return thisGenerator;
}
@@ -701,7 +801,7 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
private GT_MetaTileEntity_TesseractGenerator getGeneratorEntity(int frequency) {
GT_MetaTileEntity_TesseractGenerator thisGenerator = TesseractHelper
- .getGeneratorByFrequency(PlayerUtils.getPlayerOnServerFromUUID(mOwner), frequency);
+ .getGeneratorByFrequency(PlayerUtils.getPlayerOnServerFromUUID(mOwner), frequency);
if (thisGenerator != null) {
return thisGenerator;
}
@@ -710,9 +810,14 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public void onCreated(ItemStack aStack, World aWorld, EntityPlayer aPlayer) {
- if (this.getBaseMetaTileEntity().getOwnerName() != null
- && !this.getBaseMetaTileEntity().getOwnerName().equals("")) {
- this.mOwner = PlayerUtils.getPlayersUUIDByName(this.getBaseMetaTileEntity().getOwnerName());
+ if (this.getBaseMetaTileEntity()
+ .getOwnerName() != null
+ && !this.getBaseMetaTileEntity()
+ .getOwnerName()
+ .equals("")) {
+ this.mOwner = PlayerUtils.getPlayersUUIDByName(
+ this.getBaseMetaTileEntity()
+ .getOwnerName());
Logger.WARNING("Setting Generators Owner. 2");
}
super.onCreated(aStack, aWorld, aPlayer);
@@ -721,7 +826,8 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public void onRemoval() {
try {
- CORE.sTesseractGeneratorOwnershipMap.get(mOwner).remove(this.mFrequency);
+ CORE.sTesseractGeneratorOwnershipMap.get(mOwner)
+ .remove(this.mFrequency);
} catch (Throwable t) {}
super.onRemoval();
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractTerminal.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractTerminal.java
index 5b305950ff..659f34e0d8 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractTerminal.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractTerminal.java
@@ -37,12 +37,12 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
private static int TESSERACT_ENERGY_COST_DIMENSIONAL = 512;
public GT_MetaTileEntity_TesseractTerminal(final int aID, final String aName, final String aNameRegional,
- final int aTier) {
+ final int aTier) {
super(aID, aName, aNameRegional, aTier, 3, "");
}
public GT_MetaTileEntity_TesseractTerminal(final String aName, final int aTier, final String[] aDescription,
- final ITexture[][][] aTextures) {
+ final ITexture[][][] aTextures) {
super(aName, aTier, 3, aDescription, aTextures);
}
@@ -73,7 +73,8 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public boolean isOutputFacing(final ForgeDirection side) {
- return side == this.getBaseMetaTileEntity().getBackFacing();
+ return side == this.getBaseMetaTileEntity()
+ .getBackFacing();
}
@Override
@@ -83,7 +84,8 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public long getMinimumStoredEU() {
- return (this.getBaseMetaTileEntity().getEUCapacity() / 100);
+ return (this.getBaseMetaTileEntity()
+ .getEUCapacity() / 100);
}
@Override
@@ -142,106 +144,132 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public boolean onRightclick(final IGregTechTileEntity aBaseMetaTileEntity, final EntityPlayer aPlayer,
- final ForgeDirection side, final float aX, final float aY, final float aZ) {
+ final ForgeDirection side, final float aX, final float aY, final float aZ) {
if (this.mOwner == null) {
- if (this.getBaseMetaTileEntity().getOwnerName() != null
- && !this.getBaseMetaTileEntity().getOwnerName().equals("")) {
- if (this.getBaseMetaTileEntity().getOwnerName().toLowerCase()
- .equals(aPlayer.getDisplayName().toLowerCase())) {
- this.mOwner = PlayerUtils.getPlayersUUIDByName(this.getBaseMetaTileEntity().getOwnerName());
+ if (this.getBaseMetaTileEntity()
+ .getOwnerName() != null
+ && !this.getBaseMetaTileEntity()
+ .getOwnerName()
+ .equals("")) {
+ if (this.getBaseMetaTileEntity()
+ .getOwnerName()
+ .toLowerCase()
+ .equals(
+ aPlayer.getDisplayName()
+ .toLowerCase())) {
+ this.mOwner = PlayerUtils.getPlayersUUIDByName(
+ this.getBaseMetaTileEntity()
+ .getOwnerName());
}
}
}
- if (aPlayer.getUniqueID().compareTo(this.mOwner) == 0) {
- if (side == this.getBaseMetaTileEntity().getFrontFacing()) {
+ if (aPlayer.getUniqueID()
+ .compareTo(this.mOwner) == 0) {
+ if (side == this.getBaseMetaTileEntity()
+ .getFrontFacing()) {
final float[] tCoords = GT_Utility.getClickedFacingCoords(side, aX, aY, aZ);
switch ((byte) ((byte) (int) (tCoords[0] * 2.0F) + (2 * (byte) (int) (tCoords[1] * 2.0F)))) {
case 0:
// Utils.LOG_WARNING("Freq. -1 | " + this.mFrequency);
try {
- CORE.sTesseractTerminalOwnershipMap.get(mOwner).remove(this.mFrequency);
+ CORE.sTesseractTerminalOwnershipMap.get(mOwner)
+ .remove(this.mFrequency);
} catch (Throwable t) {}
this.mFrequency -= 1;
break;
case 1:
// Utils.LOG_WARNING("Freq. +1 | " + this.mFrequency);
try {
- CORE.sTesseractTerminalOwnershipMap.get(mOwner).remove(this.mFrequency);
+ CORE.sTesseractTerminalOwnershipMap.get(mOwner)
+ .remove(this.mFrequency);
} catch (Throwable t) {}
this.mFrequency += 1;
default:
// Utils.LOG_WARNING("Did not click the correct place.");
try {
- CORE.sTesseractTerminalOwnershipMap.get(mOwner).remove(this.mFrequency);
+ CORE.sTesseractTerminalOwnershipMap.get(mOwner)
+ .remove(this.mFrequency);
} catch (Throwable t) {}
break;
}
PlayerUtils.messagePlayer(aPlayer, "Frequency: " + this.mFrequency);
if (this.getTesseract(this.mFrequency, false) != null) {
PlayerUtils.messagePlayer(
- aPlayer,
- new StringBuilder().append(EnumChatFormatting.GREEN).append(" (Connected)").toString());
+ aPlayer,
+ new StringBuilder().append(EnumChatFormatting.GREEN)
+ .append(" (Connected)")
+ .toString());
}
}
- } else if (aPlayer.getUniqueID().compareTo(this.mOwner) != 0) {
- GT_Utility.sendChatToPlayer(aPlayer, "This is not your Tesseract Terminal to configure.");
- }
+ } else if (aPlayer.getUniqueID()
+ .compareTo(this.mOwner) != 0) {
+ GT_Utility.sendChatToPlayer(aPlayer, "This is not your Tesseract Terminal to configure.");
+ }
return true;
}
@Override
public void onScrewdriverRightClick(final ForgeDirection side, final EntityPlayer aPlayer, final float aX,
- final float aY, final float aZ) {
- if (aPlayer.getUniqueID().compareTo(this.mOwner) == 0) {
- if (side == this.getBaseMetaTileEntity().getFrontFacing()) {
+ final float aY, final float aZ) {
+ if (aPlayer.getUniqueID()
+ .compareTo(this.mOwner) == 0) {
+ if (side == this.getBaseMetaTileEntity()
+ .getFrontFacing()) {
final float[] tCoords = GT_Utility.getClickedFacingCoords(side, aX, aY, aZ);
switch ((byte) ((byte) (int) (tCoords[0] * 2.0F) + (2 * (byte) (int) (tCoords[1] * 2.0F)))) {
case 0 -> {
try {
- CORE.sTesseractTerminalOwnershipMap.get(mOwner).remove(this.mFrequency);
+ CORE.sTesseractTerminalOwnershipMap.get(mOwner)
+ .remove(this.mFrequency);
} catch (Throwable t) {}
this.mFrequency -= 64;
}
case 1 -> {
try {
- CORE.sTesseractTerminalOwnershipMap.get(mOwner).remove(this.mFrequency);
+ CORE.sTesseractTerminalOwnershipMap.get(mOwner)
+ .remove(this.mFrequency);
} catch (Throwable t) {}
this.mFrequency += 64;
}
case 2 -> {
try {
- CORE.sTesseractTerminalOwnershipMap.get(mOwner).remove(this.mFrequency);
+ CORE.sTesseractTerminalOwnershipMap.get(mOwner)
+ .remove(this.mFrequency);
} catch (Throwable t) {}
this.mFrequency -= 512;
}
case 3 -> {
try {
- CORE.sTesseractTerminalOwnershipMap.get(mOwner).remove(this.mFrequency);
+ CORE.sTesseractTerminalOwnershipMap.get(mOwner)
+ .remove(this.mFrequency);
} catch (Throwable t) {}
this.mFrequency += 512;
}
}
GT_Utility.sendChatToPlayer(
- aPlayer,
- "Frequency: " + this.mFrequency
- + (this.getTesseract(this.mFrequency, false) == null ? ""
- : new StringBuilder().append(EnumChatFormatting.GREEN).append(" (Connected)")
- .toString()));
+ aPlayer,
+ "Frequency: " + this.mFrequency
+ + (this.getTesseract(this.mFrequency, false) == null ? ""
+ : new StringBuilder().append(EnumChatFormatting.GREEN)
+ .append(" (Connected)")
+ .toString()));
+ }
+ } else if (aPlayer.getUniqueID()
+ .compareTo(this.mOwner) != 0) {
+ GT_Utility.sendChatToPlayer(aPlayer, "This is not your Tesseract Terminal to configure.");
}
- } else if (aPlayer.getUniqueID().compareTo(this.mOwner) != 0) {
- GT_Utility.sendChatToPlayer(aPlayer, "This is not your Tesseract Terminal to configure.");
- }
}
public boolean allowCoverOnSide(final ForgeDirection side, final int aCoverID) {
- return side != this.getBaseMetaTileEntity().getFrontFacing();
+ return side != this.getBaseMetaTileEntity()
+ .getFrontFacing();
}
public GT_MetaTileEntity_TesseractGenerator getTesseract(final int aFrequency, final boolean aWorkIrrelevant) {
final GT_MetaTileEntity_TesseractGenerator rTesseract = TesseractHelper
- .getGeneratorByFrequency(PlayerUtils.getPlayerOnServerFromUUID(mOwner), aFrequency);
+ .getGeneratorByFrequency(PlayerUtils.getPlayerOnServerFromUUID(mOwner), aFrequency);
if (rTesseract == null) {
return null;
}
@@ -250,16 +278,21 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
}
if (rTesseract.mFrequency != aFrequency) {
TesseractHelper.setTerminalOwnershipByPlayer(
- PlayerUtils.getPlayerOnServerFromUUID(mOwner),
- Integer.valueOf(aFrequency),
- null);
+ PlayerUtils.getPlayerOnServerFromUUID(mOwner),
+ Integer.valueOf(aFrequency),
+ null);
return null;
}
- if (!rTesseract.isValidTesseractGenerator(this.getBaseMetaTileEntity().getOwnerName(), aWorkIrrelevant)) {
+ if (!rTesseract.isValidTesseractGenerator(
+ this.getBaseMetaTileEntity()
+ .getOwnerName(),
+ aWorkIrrelevant)) {
return null;
}
- if ((!sInterDimensionalTesseractAllowed)
- && (rTesseract.getBaseMetaTileEntity().getWorld() != this.getBaseMetaTileEntity().getWorld())) {
+ if ((!sInterDimensionalTesseractAllowed) && (rTesseract.getBaseMetaTileEntity()
+ .getWorld()
+ != this.getBaseMetaTileEntity()
+ .getWorld())) {
return null;
}
return rTesseract;
@@ -268,12 +301,12 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public String[] getInfoData() {
final GT_MetaTileEntity_TesseractGenerator tTileEntity = this.getTesseract(this.mFrequency, false);
- if ((tTileEntity != null) && (this.getBaseMetaTileEntity().isAllowedToWork())
- && (tTileEntity.isSendingInformation())) {
+ if ((tTileEntity != null) && (this.getBaseMetaTileEntity()
+ .isAllowedToWork()) && (tTileEntity.isSendingInformation())) {
return tTileEntity.getInfoData();
}
return new String[] { "Tesseract Generator", "Freqency:", "" + this.mFrequency,
- this.getTesseract(this.mFrequency, false) != null ? "Active" : "Inactive" };
+ this.getTesseract(this.mFrequency, false) != null ? "Active" : "Inactive" };
}
@Override
@@ -284,7 +317,8 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public boolean isDigitalChest() {
final GT_MetaTileEntity_TesseractGenerator tTileEntity = this.getTesseract(this.mFrequency, false);
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return false;
}
return tTileEntity.isDigitalChest();
@@ -293,7 +327,8 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public ItemStack[] getStoredItemData() {
final GT_MetaTileEntity_TesseractGenerator tTileEntity = this.getTesseract(this.mFrequency, false);
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return null;
}
return tTileEntity.getStoredItemData();
@@ -302,7 +337,8 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public void setItemCount(final int aCount) {
final GT_MetaTileEntity_TesseractGenerator tTileEntity = this.getTesseract(this.mFrequency, false);
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return;
}
tTileEntity.setItemCount(aCount);
@@ -311,7 +347,8 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public int getMaxItemCount() {
final GT_MetaTileEntity_TesseractGenerator tTileEntity = this.getTesseract(this.mFrequency, false);
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return 0;
}
return tTileEntity.getMaxItemCount();
@@ -320,7 +357,8 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public boolean isItemValidForSlot(final int aIndex, final ItemStack aStack) {
final GT_MetaTileEntity_TesseractGenerator tTileEntity = this.getTesseract(this.mFrequency, false);
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return false;
}
return tTileEntity.isItemValidForSlot(aIndex, aStack);
@@ -329,7 +367,8 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public int[] getAccessibleSlotsFromSide(final int ordinalSide) {
final GT_MetaTileEntity_TesseractGenerator tTileEntity = this.getTesseract(this.mFrequency, false);
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return new int[0];
}
return tTileEntity.getAccessibleSlotsFromSide(ordinalSide);
@@ -338,7 +377,8 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public boolean canInsertItem(final int aIndex, final ItemStack aStack, final int ordinalSide) {
final GT_MetaTileEntity_TesseractGenerator tTileEntity = this.getTesseract(this.mFrequency, false);
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return false;
}
return tTileEntity.canInsertItem(aIndex, aStack, ordinalSide);
@@ -347,7 +387,8 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public boolean canExtractItem(final int aIndex, final ItemStack aStack, final int ordinalSide) {
final GT_MetaTileEntity_TesseractGenerator tTileEntity = this.getTesseract(this.mFrequency, false);
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return false;
}
return tTileEntity.canExtractItem(aIndex, aStack, ordinalSide);
@@ -356,7 +397,8 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public int getSizeInventory() {
final GT_MetaTileEntity_TesseractGenerator tTileEntity = this.getTesseract(this.mFrequency, false);
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return 0;
}
return tTileEntity.getSizeInventory();
@@ -365,7 +407,8 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public ItemStack getStackInSlot(final int aIndex) {
final GT_MetaTileEntity_TesseractGenerator tTileEntity = this.getTesseract(this.mFrequency, false);
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return null;
}
return tTileEntity.getStackInSlot(aIndex);
@@ -374,7 +417,8 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public void setInventorySlotContents(final int aIndex, final ItemStack aStack) {
final GT_MetaTileEntity_TesseractGenerator tTileEntity = this.getTesseract(this.mFrequency, false);
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return;
}
tTileEntity.setInventorySlotContents(aIndex, aStack);
@@ -383,7 +427,8 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public ItemStack decrStackSize(final int aIndex, final int aAmount) {
final GT_MetaTileEntity_TesseractGenerator tTileEntity = this.getTesseract(this.mFrequency, false);
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return null;
}
return tTileEntity.decrStackSize(aIndex, aAmount);
@@ -392,7 +437,8 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public String getInventoryName() {
final GT_MetaTileEntity_TesseractGenerator tTileEntity = this.getTesseract(this.mFrequency, false);
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return "";
}
return tTileEntity.getInventoryName();
@@ -401,7 +447,8 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public int getInventoryStackLimit() {
final GT_MetaTileEntity_TesseractGenerator tTileEntity = this.getTesseract(this.mFrequency, false);
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return 0;
}
return tTileEntity.getInventoryStackLimit();
@@ -410,7 +457,8 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public boolean canFill(final ForgeDirection aSide, final Fluid aFluid) {
final GT_MetaTileEntity_TesseractGenerator tTileEntity = this.getTesseract(this.mFrequency, false);
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return false;
}
return tTileEntity.canFill(aSide, aFluid);
@@ -419,7 +467,8 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public boolean canDrain(final ForgeDirection aSide, final Fluid aFluid) {
final GT_MetaTileEntity_TesseractGenerator tTileEntity = this.getTesseract(this.mFrequency, false);
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return false;
}
return tTileEntity.canDrain(aSide, aFluid);
@@ -428,7 +477,8 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public FluidTankInfo[] getTankInfo(final ForgeDirection aSide) {
final GT_MetaTileEntity_TesseractGenerator tTileEntity = this.getTesseract(this.mFrequency, false);
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return new FluidTankInfo[0];
}
return tTileEntity.getTankInfo(aSide);
@@ -437,7 +487,8 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public int fill_default(final ForgeDirection aDirection, final FluidStack aFluid, final boolean doFill) {
final GT_MetaTileEntity_TesseractGenerator tTileEntity = this.getTesseract(this.mFrequency, false);
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return 0;
}
return tTileEntity.fill(aDirection, aFluid, doFill);
@@ -446,7 +497,8 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public FluidStack drain(final ForgeDirection aDirection, final int maxDrain, final boolean doDrain) {
final GT_MetaTileEntity_TesseractGenerator tTileEntity = this.getTesseract(this.mFrequency, false);
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return null;
}
return tTileEntity.drain(aDirection, maxDrain, doDrain);
@@ -455,7 +507,8 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public FluidStack drain(final ForgeDirection aSide, final FluidStack aFluid, final boolean doDrain) {
final GT_MetaTileEntity_TesseractGenerator tTileEntity = this.getTesseract(this.mFrequency, false);
- if ((tTileEntity == null) || (!this.getBaseMetaTileEntity().isAllowedToWork())) {
+ if ((tTileEntity == null) || (!this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
return null;
}
return tTileEntity.drain(aSide, aFluid, doDrain);
@@ -463,11 +516,19 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
- if ((this.getBaseMetaTileEntity().isServerSide()) && (this.getBaseMetaTileEntity().isAllowedToWork())) {
+ if ((this.getBaseMetaTileEntity()
+ .isServerSide())
+ && (this.getBaseMetaTileEntity()
+ .isAllowedToWork())) {
// Set owner
- if (PlayerUtils.getPlayersUUIDByName(this.getBaseMetaTileEntity().getOwnerName()) != null) {
+ if (PlayerUtils.getPlayersUUIDByName(
+ this.getBaseMetaTileEntity()
+ .getOwnerName())
+ != null) {
if (this.mOwner == null) {
- this.mOwner = PlayerUtils.getPlayersUUIDByName(this.getBaseMetaTileEntity().getOwnerName());
+ this.mOwner = PlayerUtils.getPlayersUUIDByName(
+ this.getBaseMetaTileEntity()
+ .getOwnerName());
}
}
final GT_MetaTileEntity_TesseractGenerator tTileEntity = this.getTesseract(this.mFrequency, true);
@@ -475,12 +536,15 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
tTileEntity.addEnergyConsumption(this);
if ((!this.mDidWork) && (this.getTesseract(this.mFrequency, false) != null)) {
this.mDidWork = true;
- this.getBaseMetaTileEntity().issueBlockUpdate();
- this.getBaseMetaTileEntity().decreaseStoredEnergyUnits(128, false);
+ this.getBaseMetaTileEntity()
+ .issueBlockUpdate();
+ this.getBaseMetaTileEntity()
+ .decreaseStoredEnergyUnits(128, false);
}
} else if (this.mDidWork == true) {
this.mDidWork = false;
- this.getBaseMetaTileEntity().issueBlockUpdate();
+ this.getBaseMetaTileEntity()
+ .issueBlockUpdate();
}
}
}
@@ -488,24 +552,24 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public String[] getDescription() {
return ArrayUtils.addAll(
- this.mDescriptionArray,
- "Accesses Tesseract Generators remotely",
- "Connect with pipes to extract items or fluids",
- "Outputs from the back face",
- "Consumes " + TESSERACT_ENERGY_COST + "EU/t for same dimension transfers",
- "Consumes " + TESSERACT_ENERGY_COST_DIMENSIONAL + "EU/t for cross dimensional transfers",
- CORE.GT_Tooltip.get());
+ this.mDescriptionArray,
+ "Accesses Tesseract Generators remotely",
+ "Connect with pipes to extract items or fluids",
+ "Outputs from the back face",
+ "Consumes " + TESSERACT_ENERGY_COST + "EU/t for same dimension transfers",
+ "Consumes " + TESSERACT_ENERGY_COST_DIMENSIONAL + "EU/t for cross dimensional transfers",
+ CORE.GT_Tooltip.get());
}
@Override
public boolean allowPullStack(final IGregTechTileEntity aBaseMetaTileEntity, final int aIndex,
- final ForgeDirection side, final ItemStack aStack) {
+ final ForgeDirection side, final ItemStack aStack) {
return false;
}
@Override
public boolean allowPutStack(final IGregTechTileEntity aBaseMetaTileEntity, final int aIndex,
- final ForgeDirection side, final ItemStack aStack) {
+ final ForgeDirection side, final ItemStack aStack) {
return false;
}
@@ -516,12 +580,12 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public ITexture[] getTexture(final IGregTechTileEntity aBaseMetaTileEntity, final ForgeDirection side,
- final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
+ final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
return side == facing
- ? new ITexture[] { new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Dimensional),
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Screen_Frequency) }
- : new ITexture[] { new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Dimensional),
- new GT_RenderedTexture(Textures.BlockIcons.VOID) };
+ ? new ITexture[] { new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Dimensional),
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Screen_Frequency) }
+ : new ITexture[] { new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Dimensional),
+ new GT_RenderedTexture(Textures.BlockIcons.VOID) };
}
// To-Do?
@@ -557,9 +621,14 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public void onCreated(ItemStack aStack, World aWorld, EntityPlayer aPlayer) {
- if (this.getBaseMetaTileEntity().getOwnerName() != null
- && !this.getBaseMetaTileEntity().getOwnerName().equals("")) {
- this.mOwner = PlayerUtils.getPlayersUUIDByName(this.getBaseMetaTileEntity().getOwnerName());
+ if (this.getBaseMetaTileEntity()
+ .getOwnerName() != null
+ && !this.getBaseMetaTileEntity()
+ .getOwnerName()
+ .equals("")) {
+ this.mOwner = PlayerUtils.getPlayersUUIDByName(
+ this.getBaseMetaTileEntity()
+ .getOwnerName());
}
super.onCreated(aStack, aWorld, aPlayer);
}
@@ -567,7 +636,8 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public void onRemoval() {
try {
- CORE.sTesseractTerminalOwnershipMap.get(mOwner).remove(this.mFrequency);
+ CORE.sTesseractTerminalOwnershipMap.get(mOwner)
+ .remove(this.mFrequency);
} catch (Throwable t) {}
super.onRemoval();
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_Boiler_Base.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_Boiler_Base.java
index 95c5a7eeaf..b27c1a759a 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_Boiler_Base.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_Boiler_Base.java
@@ -33,10 +33,10 @@ public class GT_MetaTileEntity_Boiler_Base extends GT_MetaTileEntity_Boiler {
public GT_MetaTileEntity_Boiler_Base(int aID, String aNameRegional, int tier) {
super(
- aID,
- "electricboiler." + tier + ".tier.single",
- aNameRegional,
- "Produces " + (CORE.ConfigSwitches.boilerSteamPerSecond * tier) + "L of Steam per second");
+ aID,
+ "electricboiler." + tier + ".tier.single",
+ aNameRegional,
+ "Produces " + (CORE.ConfigSwitches.boilerSteamPerSecond * tier) + "L of Steam per second");
this.steamPerSecond = (CORE.ConfigSwitches.boilerSteamPerSecond * tier);
this.tier = tier;
}
@@ -50,12 +50,12 @@ public class GT_MetaTileEntity_Boiler_Base extends GT_MetaTileEntity_Boiler {
@Override
public String[] getDescription() {
return ArrayUtils.addAll(
- this.mDescriptionArray,
- "Produces " + getPollution() + " pollution/sec",
- "Consumes fuel only when temperature is less than 100C",
- "Fuel with burn time greater than 500 is more efficient.",
- "Doesn't explode if there's no water",
- CORE.GT_Tooltip.get());
+ this.mDescriptionArray,
+ "Produces " + getPollution() + " pollution/sec",
+ "Consumes fuel only when temperature is less than 100C",
+ "Fuel with burn time greater than 500 is more efficient.",
+ "Doesn't explode if there's no water",
+ CORE.GT_Tooltip.get());
}
public ITexture getOverlayIcon() {
@@ -92,12 +92,10 @@ public class GT_MetaTileEntity_Boiler_Base extends GT_MetaTileEntity_Boiler {
@Override
public ITexture[] getTexture(final IGregTechTileEntity aBaseMetaTileEntity, final ForgeDirection side,
- final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
- return this.mTextures[(aActive ? 5 : 0)
- + (side == facing ? 0
- : side == facing.getOpposite() ? 1
- : side == ForgeDirection.DOWN ? 2 : side == ForgeDirection.UP ? 3 : 4)][aColorIndex
- + 1];
+ final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
+ return this.mTextures[(aActive ? 5 : 0) + (side == facing ? 0
+ : side == facing.getOpposite() ? 1
+ : side == ForgeDirection.DOWN ? 2 : side == ForgeDirection.UP ? 3 : 4)][aColorIndex + 1];
}
public ITexture[] getFront(final byte aColor) {
@@ -142,7 +140,8 @@ public class GT_MetaTileEntity_Boiler_Base extends GT_MetaTileEntity_Boiler {
@Override
public boolean isOutputFacing(final ForgeDirection side) {
- return side != this.getBaseMetaTileEntity().getFrontFacing();
+ return side != this.getBaseMetaTileEntity()
+ .getFrontFacing();
}
@Override
@@ -216,25 +215,25 @@ public class GT_MetaTileEntity_Boiler_Base extends GT_MetaTileEntity_Boiler {
// support returning those different capacities.
public FluidTankInfo[] getTankInfo(ForgeDirection aSide) {
return new FluidTankInfo[] { new FluidTankInfo(this.mFluid, getCapacity()),
- new FluidTankInfo(this.mSteam, getSteamCapacity()) };
+ new FluidTankInfo(this.mSteam, getSteamCapacity()) };
}
@Override
public boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
return aIndex == 1 || aIndex == 3;
}
@Override
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
return aIndex == 2;
}
@Override
protected int getPollution() {
return (int) (CORE.ConfigSwitches.basePollutionPerSecondBoiler
- * CORE.ConfigSwitches.pollutionReleasedByTierBoiler[this.tier]);
+ * CORE.ConfigSwitches.pollutionReleasedByTierBoiler[this.tier]);
}
@Override
@@ -265,8 +264,12 @@ public class GT_MetaTileEntity_Boiler_Base extends GT_MetaTileEntity_Boiler {
tile.decrStackSize(2, 1);
if (tile.getRandomNumber(3) == 0) {
- if (fuel.getDisplayName().toLowerCase().contains("charcoal")
- || fuel.getDisplayName().toLowerCase().contains("coke")) {
+ if (fuel.getDisplayName()
+ .toLowerCase()
+ .contains("charcoal")
+ || fuel.getDisplayName()
+ .toLowerCase()
+ .contains("coke")) {
tile.addStackToSlot(3, GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Ash, 1L));
} else {
tile.addStackToSlot(3, GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 1L));
@@ -276,7 +279,8 @@ public class GT_MetaTileEntity_Boiler_Base extends GT_MetaTileEntity_Boiler {
@Override
public boolean allowCoverOnSide(ForgeDirection side, GT_ItemStack aCover) {
- if (side != this.getBaseMetaTileEntity().getFrontFacing()) {
+ if (side != this.getBaseMetaTileEntity()
+ .getFrontFacing()) {
return true;
}
return super.allowCoverOnSide(side, aCover);
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_Boiler_HV.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_Boiler_HV.java
index da6ef21dd3..e77915aa01 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_Boiler_HV.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_Boiler_HV.java
@@ -30,19 +30,19 @@ public class GT_MetaTileEntity_Boiler_HV extends GT_MetaTileEntity_Boiler_Base {
@Override
public ITexture[] getFront(final byte aColor) {
return new ITexture[] { super.getFront(aColor)[0], this.getCasingTexture(),
- new GT_RenderedTexture(Textures.BlockIcons.BOILER_FRONT) };
+ new GT_RenderedTexture(Textures.BlockIcons.BOILER_FRONT) };
}
@Override
public ITexture[] getTop(final byte aColor) {
return new ITexture[] { super.getTop(aColor)[0], this.getCasingTexture(),
- new GT_RenderedTexture(TexturesGtBlock.Casing_Material_Talonite) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Material_Talonite) };
}
@Override
public ITexture[] getFrontActive(final byte aColor) {
return new ITexture[] { super.getFrontActive(aColor)[0], this.getCasingTexture(),
- new GT_RenderedTexture(Textures.BlockIcons.BOILER_FRONT_ACTIVE) };
+ new GT_RenderedTexture(Textures.BlockIcons.BOILER_FRONT_ACTIVE) };
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_Boiler_LV.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_Boiler_LV.java
index 13d3e6ae87..23abfe1e3f 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_Boiler_LV.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_Boiler_LV.java
@@ -30,19 +30,19 @@ public class GT_MetaTileEntity_Boiler_LV extends GT_MetaTileEntity_Boiler_Base {
@Override
public ITexture[] getFront(final byte aColor) {
return new ITexture[] { super.getFront(aColor)[0], this.getCasingTexture(),
- new GT_RenderedTexture(Textures.BlockIcons.BOILER_FRONT) };
+ new GT_RenderedTexture(Textures.BlockIcons.BOILER_FRONT) };
}
@Override
public ITexture[] getTop(final byte aColor) {
return new ITexture[] { super.getTop(aColor)[0], this.getCasingTexture(),
- new GT_RenderedTexture(TexturesGtBlock.Casing_Material_Potin) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Material_Potin) };
}
@Override
public ITexture[] getFrontActive(final byte aColor) {
return new ITexture[] { super.getFrontActive(aColor)[0], this.getCasingTexture(),
- new GT_RenderedTexture(Textures.BlockIcons.BOILER_FRONT_ACTIVE) };
+ new GT_RenderedTexture(Textures.BlockIcons.BOILER_FRONT_ACTIVE) };
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_Boiler_MV.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_Boiler_MV.java
index b8214b0bbd..379f67b55d 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_Boiler_MV.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_Boiler_MV.java
@@ -30,19 +30,19 @@ public class GT_MetaTileEntity_Boiler_MV extends GT_MetaTileEntity_Boiler_Base {
@Override
public ITexture[] getFront(final byte aColor) {
return new ITexture[] { super.getFront(aColor)[0], this.getCasingTexture(),
- new GT_RenderedTexture(Textures.BlockIcons.BOILER_FRONT) };
+ new GT_RenderedTexture(Textures.BlockIcons.BOILER_FRONT) };
}
@Override
public ITexture[] getTop(final byte aColor) {
return new ITexture[] { super.getTop(aColor)[0], this.getCasingTexture(),
- new GT_RenderedTexture(TexturesGtBlock.Casing_Material_Tumbaga) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Material_Tumbaga) };
}
@Override
public ITexture[] getFrontActive(final byte aColor) {
return new ITexture[] { super.getFrontActive(aColor)[0], this.getCasingTexture(),
- new GT_RenderedTexture(Textures.BlockIcons.BOILER_FRONT_ACTIVE) };
+ new GT_RenderedTexture(Textures.BlockIcons.BOILER_FRONT_ACTIVE) };
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_SemiFluidGenerator.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_SemiFluidGenerator.java
index 16aa8a977f..993b0e9035 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_SemiFluidGenerator.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_SemiFluidGenerator.java
@@ -33,7 +33,7 @@ public class GT_MetaTileEntity_SemiFluidGenerator extends GT_MetaTileEntity_Basi
}
public GT_MetaTileEntity_SemiFluidGenerator(String aName, int aTier, String[] aDescription,
- ITexture[][][] aTextures) {
+ ITexture[][][] aTextures) {
super(aName, aTier, aDescription, aTextures);
onConfigLoad();
}
@@ -41,7 +41,7 @@ public class GT_MetaTileEntity_SemiFluidGenerator extends GT_MetaTileEntity_Basi
@Override
public int getPollution() {
return (int) (CORE.ConfigSwitches.basePollutionPerSecondSemiFluidGenerator
- * CORE.ConfigSwitches.pollutionReleasedByTierSemiFluidGenerator[this.mTier]);
+ * CORE.ConfigSwitches.pollutionReleasedByTierSemiFluidGenerator[this.mTier]);
}
@Override
@@ -51,9 +51,9 @@ public class GT_MetaTileEntity_SemiFluidGenerator extends GT_MetaTileEntity_Basi
public void onConfigLoad() {
this.mEfficiency = GregTech_API.sMachineFile.get(
- ConfigCategories.machineconfig,
- "SemiFluidGenerator.efficiency.tier." + this.mTier,
- 100 - (this.mTier * 5));
+ ConfigCategories.machineconfig,
+ "SemiFluidGenerator.efficiency.tier." + this.mTier,
+ 100 - (this.mTier * 5));
}
@Override
@@ -70,10 +70,10 @@ public class GT_MetaTileEntity_SemiFluidGenerator extends GT_MetaTileEntity_Basi
@Override
public String[] getDescription() {
return ArrayUtils.addAll(
- this.mDescriptionArray,
- "Produces " + (this.getPollution()) + " pollution/sec",
- "Fuel Efficiency: " + this.getEfficiency() + "%",
- CORE.GT_Tooltip.get());
+ this.mDescriptionArray,
+ "Produces " + (this.getPollution()) + " pollution/sec",
+ "Fuel Efficiency: " + this.getEfficiency() + "%",
+ CORE.GT_Tooltip.get());
}
@Override
@@ -88,7 +88,8 @@ public class GT_MetaTileEntity_SemiFluidGenerator extends GT_MetaTileEntity_Basi
@Override
public boolean allowCoverOnSide(ForgeDirection side, GT_ItemStack aCover) {
- if (side != this.getBaseMetaTileEntity().getFrontFacing()) {
+ if (side != this.getBaseMetaTileEntity()
+ .getFrontFacing()) {
return true;
}
return super.allowCoverOnSide(side, aCover);
@@ -111,62 +112,62 @@ public class GT_MetaTileEntity_SemiFluidGenerator extends GT_MetaTileEntity_Basi
@Override
public ITexture[] getFront(byte aColor) {
return new ITexture[] { super.getFront(aColor)[0],
- new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_FRONT),
- Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] };
+ new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_FRONT),
+ Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] };
}
@Override
public ITexture[] getBack(byte aColor) {
return new ITexture[] { super.getBack(aColor)[0],
- new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_TOP) };
+ new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_TOP) };
}
@Override
public ITexture[] getBottom(byte aColor) {
return new ITexture[] { super.getBottom(aColor)[0],
- new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_BOTTOM) };
+ new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_BOTTOM) };
}
@Override
public ITexture[] getTop(byte aColor) {
return new ITexture[] { super.getTop(aColor)[0],
- new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_SIDE) };
+ new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_SIDE) };
}
@Override
public ITexture[] getSides(byte aColor) {
return new ITexture[] { super.getSides(aColor)[0],
- new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_TOP) };
+ new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_TOP) };
}
@Override
public ITexture[] getFrontActive(byte aColor) {
return new ITexture[] { super.getFrontActive(aColor)[0],
- new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_FRONT_ACTIVE),
- Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] };
+ new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_FRONT_ACTIVE),
+ Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] };
}
@Override
public ITexture[] getBackActive(byte aColor) {
return new ITexture[] { super.getBackActive(aColor)[0],
- new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_TOP_ACTIVE) };
+ new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_TOP_ACTIVE) };
}
@Override
public ITexture[] getBottomActive(byte aColor) {
return new ITexture[] { super.getBottomActive(aColor)[0],
- new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_BOTTOM_ACTIVE) };
+ new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_BOTTOM_ACTIVE) };
}
@Override
public ITexture[] getTopActive(byte aColor) {
return new ITexture[] { super.getTopActive(aColor)[0],
- new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_SIDE_ACTIVE) };
+ new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_SIDE_ACTIVE) };
}
@Override
public ITexture[] getSidesActive(byte aColor) {
return new ITexture[] { super.getSidesActive(aColor)[0],
- new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_TOP_ACTIVE) };
+ new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_TOP_ACTIVE) };
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GregtechMetaTileEntityGeothermalGenerator.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GregtechMetaTileEntityGeothermalGenerator.java
index 8a476fceee..e1f1c8a2e6 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GregtechMetaTileEntityGeothermalGenerator.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GregtechMetaTileEntityGeothermalGenerator.java
@@ -28,13 +28,13 @@ public class GregtechMetaTileEntityGeothermalGenerator extends GT_MetaTileEntity
public int mEfficiency;
public GregtechMetaTileEntityGeothermalGenerator(final int aID, final String aName, final String aNameRegional,
- final int aTier) {
+ final int aTier) {
super(aID, aName, aNameRegional, aTier, "Requires Pahoehoe Lava or Normal Lava as Fuel", new ITexture[0]);
this.onConfigLoad();
}
public GregtechMetaTileEntityGeothermalGenerator(final String aName, final int aTier, final String[] aDescription,
- final ITexture[][][] aTextures) {
+ final ITexture[][][] aTextures) {
super(aName, aTier, aDescription, aTextures);
this.onConfigLoad();
}
@@ -43,10 +43,10 @@ public class GregtechMetaTileEntityGeothermalGenerator extends GT_MetaTileEntity
public String[] getDescription() {
String aPollution = "Causes " + this.getPollution() + " Pollution per second";
return ArrayUtils.addAll(
- this.mDescriptionArray,
- "Generates power at " + this.getEfficiency() + "% Efficiency per tick",
- aPollution,
- CORE.GT_Tooltip.get());
+ this.mDescriptionArray,
+ "Generates power at " + this.getEfficiency() + "% Efficiency per tick",
+ aPollution,
+ CORE.GT_Tooltip.get());
}
@Override
@@ -63,9 +63,9 @@ public class GregtechMetaTileEntityGeothermalGenerator extends GT_MetaTileEntity
public void onConfigLoad() {
this.mEfficiency = GregTech_API.sMachineFile.get(
- ConfigCategories.machineconfig,
- "ThermalGenerator.efficiency.tier." + this.mTier,
- (100 - (this.mTier * 7)));
+ ConfigCategories.machineconfig,
+ "ThermalGenerator.efficiency.tier." + this.mTier,
+ (100 - (this.mTier * 7)));
}
@Override
@@ -84,82 +84,83 @@ public class GregtechMetaTileEntityGeothermalGenerator extends GT_MetaTileEntity
@Override
public boolean isOutputFacing(final ForgeDirection side) {
- return side == this.getBaseMetaTileEntity().getFrontFacing();
+ return side == this.getBaseMetaTileEntity()
+ .getFrontFacing();
}
@Override
public MetaTileEntity newMetaEntity(final IGregTechTileEntity aTileEntity) {
return new GregtechMetaTileEntityGeothermalGenerator(
- this.mName,
- this.mTier,
- this.mDescriptionArray,
- this.mTextures);
+ this.mName,
+ this.mTier,
+ this.mDescriptionArray,
+ this.mTextures);
}
@Override
public ITexture[] getFront(final byte aColor) {
return new ITexture[] { super.getFront(aColor)[0],
- new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_SIDE),
- Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[this.mTier] };
+ new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_SIDE),
+ Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[this.mTier] };
}
@Override
public ITexture[] getBack(final byte aColor) {
return new ITexture[] { super.getBack(aColor)[0],
- new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_BACK),
- new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Diesel_Vertical) };
+ new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_BACK),
+ new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Diesel_Vertical) };
}
@Override
public ITexture[] getBottom(final byte aColor) {
return new ITexture[] { super.getBottom(aColor)[0],
- new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_BOTTOM) };
+ new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_BOTTOM) };
}
@Override
public ITexture[] getTop(final byte aColor) {
return new ITexture[] { super.getTop(aColor)[0],
- new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_SIDE),
- new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_ROCK_BREAKER) };
+ new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_SIDE),
+ new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_ROCK_BREAKER) };
}
@Override
public ITexture[] getSides(final byte aColor) {
return new ITexture[] { super.getSides(aColor)[0],
- new GT_RenderedTexture(Textures.BlockIcons.BOILER_LAVA_FRONT) };
+ new GT_RenderedTexture(Textures.BlockIcons.BOILER_LAVA_FRONT) };
}
@Override
public ITexture[] getFrontActive(final byte aColor) {
return new ITexture[] { super.getFrontActive(aColor)[0],
- new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_SIDE_ACTIVE),
- Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[this.mTier] };
+ new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_SIDE_ACTIVE),
+ Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[this.mTier] };
}
@Override
public ITexture[] getBackActive(final byte aColor) {
return new ITexture[] { super.getBackActive(aColor)[0],
- new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_BACK_ACTIVE),
- new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Diesel_Vertical_Active) };
+ new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_BACK_ACTIVE),
+ new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Diesel_Vertical_Active) };
}
@Override
public ITexture[] getBottomActive(final byte aColor) {
return new ITexture[] { super.getBottomActive(aColor)[0],
- new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_BOTTOM_ACTIVE) };
+ new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_BOTTOM_ACTIVE) };
}
@Override
public ITexture[] getTopActive(final byte aColor) {
return new ITexture[] { super.getTopActive(aColor)[0],
- new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_SIDE),
- new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_ROCK_BREAKER_ACTIVE) };
+ new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_SIDE),
+ new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_ROCK_BREAKER_ACTIVE) };
}
@Override
public ITexture[] getSidesActive(final byte aColor) {
return new ITexture[] { super.getSidesActive(aColor)[0],
- new GT_RenderedTexture(Textures.BlockIcons.BOILER_LAVA_FRONT_ACTIVE) };
+ new GT_RenderedTexture(Textures.BlockIcons.BOILER_LAVA_FRONT_ACTIVE) };
}
@Override
@@ -170,6 +171,6 @@ public class GregtechMetaTileEntityGeothermalGenerator extends GT_MetaTileEntity
@Override
public int getPollution() {
return (int) (CORE.ConfigSwitches.basePollutionPerSecondGeothermalGenerator
- * CORE.ConfigSwitches.pollutionReleasedByTierGeothermalGenerator[mTier]);
+ * CORE.ConfigSwitches.pollutionReleasedByTierGeothermalGenerator[mTier]);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GregtechMetaTileEntityRocketFuelGenerator.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GregtechMetaTileEntityRocketFuelGenerator.java
index 983e1d7881..45d4177709 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GregtechMetaTileEntityRocketFuelGenerator.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GregtechMetaTileEntityRocketFuelGenerator.java
@@ -23,29 +23,30 @@ public class GregtechMetaTileEntityRocketFuelGenerator extends GregtechRocketFue
public int mEfficiency;
public GregtechMetaTileEntityRocketFuelGenerator(final int aID, final String aName, final String aNameRegional,
- final int aTier) {
+ final int aTier) {
super(aID, aName, aNameRegional, aTier, "Requires GT++ Rocket Fuels", new ITexture[0]);
this.onConfigLoad();
}
public GregtechMetaTileEntityRocketFuelGenerator(final String aName, final int aTier, final String[] aDescription,
- final ITexture[][][] aTextures) {
+ final ITexture[][][] aTextures) {
super(aName, aTier, aDescription, aTextures);
this.onConfigLoad();
}
@Override
public boolean isOutputFacing(final ForgeDirection side) {
- return side == this.getBaseMetaTileEntity().getFrontFacing();
+ return side == this.getBaseMetaTileEntity()
+ .getFrontFacing();
}
@Override
public MetaTileEntity newMetaEntity(final IGregTechTileEntity aTileEntity) {
return new GregtechMetaTileEntityRocketFuelGenerator(
- this.mName,
- this.mTier,
- this.mDescriptionArray,
- this.mTextures);
+ this.mName,
+ this.mTier,
+ this.mDescriptionArray,
+ this.mTextures);
}
@Override
@@ -60,9 +61,9 @@ public class GregtechMetaTileEntityRocketFuelGenerator extends GregtechRocketFue
public void onConfigLoad() {
this.mEfficiency = GregTech_API.sMachineFile.get(
- ConfigCategories.machineconfig,
- "RocketEngine.efficiency.tier." + this.mTier,
- 80 - (10 * (this.mTier - 4)));
+ ConfigCategories.machineconfig,
+ "RocketEngine.efficiency.tier." + this.mTier,
+ 80 - (10 * (this.mTier - 4)));
}
@Override
@@ -96,60 +97,60 @@ public class GregtechMetaTileEntityRocketFuelGenerator extends GregtechRocketFue
@Override
public ITexture[] getFront(final byte aColor) {
return new ITexture[] { super.getFront(aColor)[0], this.getCasingTexture(),
- Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[this.mTier] };
+ Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[this.mTier] };
}
@Override
public ITexture[] getBack(final byte aColor) {
return new ITexture[] { super.getBack(aColor)[0], this.getCasingTexture(),
- new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Vent) };
+ new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Vent) };
}
@Override
public ITexture[] getBottom(final byte aColor) {
return new ITexture[] { super.getBottom(aColor)[0],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
}
@Override
public ITexture[] getTop(final byte aColor) {
return new ITexture[] { super.getTop(aColor)[0],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Redstone_Off) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Redstone_Off) };
}
@Override
public ITexture[] getSides(final byte aColor) {
return new ITexture[] { super.getSides(aColor)[0], this.getCasingTexture(),
- new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Diesel_Horizontal) };
+ new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Diesel_Horizontal) };
}
@Override
public ITexture[] getFrontActive(final byte aColor) {
return new ITexture[] { super.getFrontActive(aColor)[0], this.getCasingTexture(),
- Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[this.mTier] };
+ Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[this.mTier] };
}
@Override
public ITexture[] getBackActive(final byte aColor) {
return new ITexture[] { super.getBackActive(aColor)[0], this.getCasingTexture(),
- new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Vent_Fast) };
+ new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Vent_Fast) };
}
@Override
public ITexture[] getBottomActive(final byte aColor) {
return new ITexture[] { super.getBottomActive(aColor)[0],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
}
@Override
public ITexture[] getTopActive(final byte aColor) {
return new ITexture[] { super.getTopActive(aColor)[0],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Redstone_On) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Redstone_On) };
}
@Override
public ITexture[] getSidesActive(final byte aColor) {
return new ITexture[] { super.getSidesActive(aColor)[0], this.getCasingTexture(),
- new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Diesel_Horizontal_Active) };
+ new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Diesel_Horizontal_Active) };
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GregtechMetaTileEntity_RTG.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GregtechMetaTileEntity_RTG.java
index 9ad42e350d..32cf3a92cc 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GregtechMetaTileEntity_RTG.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GregtechMetaTileEntity_RTG.java
@@ -101,11 +101,11 @@ public class GregtechMetaTileEntity_RTG extends GT_MetaTileEntity_BasicGenerator
ItemStack lastUsedFuel = ItemStack.loadItemStackFromNBT(data);
if (lastUsedFuel != null) {
this.mCurrentRecipe = getRecipeMap().findRecipe(
- getBaseMetaTileEntity(),
- false,
- 9223372036854775807L,
- null,
- new ItemStack[] { lastUsedFuel });
+ getBaseMetaTileEntity(),
+ false,
+ 9223372036854775807L,
+ null,
+ new ItemStack[] { lastUsedFuel });
}
}
@@ -129,20 +129,20 @@ public class GregtechMetaTileEntity_RTG extends GT_MetaTileEntity_BasicGenerator
if (this.mInventory[getStackDisplaySlot()] == null)
this.mInventory[getStackDisplaySlot()] = new ItemStack(Blocks.fire, 1);
this.mInventory[getStackDisplaySlot()].setStackDisplayName(
- "Generating: "
- + GT_Utility.formatNumbers(
- aBaseMetaTileEntity.getUniversalEnergyStored() - getMinimumStoredEU())
- + " EU");
+ "Generating: "
+ + GT_Utility.formatNumbers(
+ aBaseMetaTileEntity.getUniversalEnergyStored() - getMinimumStoredEU())
+ + " EU");
}
} else {
int tFuelValue = getFuelValue(this.mFluid);
int tConsumed = consumedFluidPerOperation(this.mFluid);
if ((tFuelValue > 0) && (tConsumed > 0) && (this.mFluid.amount > tConsumed)) {
long tFluidAmountToUse = Math.min(
- this.mFluid.amount / tConsumed,
- (maxEUStore() - aBaseMetaTileEntity.getUniversalEnergyStored()) / tFuelValue);
+ this.mFluid.amount / tConsumed,
+ (maxEUStore() - aBaseMetaTileEntity.getUniversalEnergyStored()) / tFuelValue);
if ((tFluidAmountToUse > 0L)
- && (aBaseMetaTileEntity.increaseStoredEnergyUnits(tFluidAmountToUse * tFuelValue, true))) {
+ && (aBaseMetaTileEntity.increaseStoredEnergyUnits(tFluidAmountToUse * tFuelValue, true))) {
tProducedEU = tFluidAmountToUse * tFuelValue;
FluidStack tmp260_257 = this.mFluid;
tmp260_257.amount = (int) (tmp260_257.amount - (tFluidAmountToUse * tConsumed));
@@ -150,8 +150,8 @@ public class GregtechMetaTileEntity_RTG extends GT_MetaTileEntity_BasicGenerator
}
}
if ((this.mInventory[getInputSlot()] != null)
- && (aBaseMetaTileEntity.getUniversalEnergyStored() < maxEUOutput() * 20L + getMinimumStoredEU())
- && (GT_Utility.getFluidForFilledItem(this.mInventory[getInputSlot()], true) == null)) {
+ && (aBaseMetaTileEntity.getUniversalEnergyStored() < maxEUOutput() * 20L + getMinimumStoredEU())
+ && (GT_Utility.getFluidForFilledItem(this.mInventory[getInputSlot()], true) == null)) {
int tFuelValue = getFuelValue(this.mInventory[getInputSlot()]);
if (tFuelValue > 0) {
ItemStack tEmptyContainer = getEmptyContainer(this.mInventory[getInputSlot()]);
@@ -163,26 +163,25 @@ public class GregtechMetaTileEntity_RTG extends GT_MetaTileEntity_BasicGenerator
}
}
if ((tProducedEU > 0L) && (getPollution() > 0)) {
- PollutionUtils.addPollution(
- aBaseMetaTileEntity,
- (int) (tProducedEU * getPollution() / 500 * this.mTier + 1L));
+ PollutionUtils
+ .addPollution(aBaseMetaTileEntity, (int) (tProducedEU * getPollution() / 500 * this.mTier + 1L));
}
}
if (aBaseMetaTileEntity.isServerSide()) aBaseMetaTileEntity.setActive(
- (aBaseMetaTileEntity.isAllowedToWork())
- && (aBaseMetaTileEntity.getUniversalEnergyStored() >= maxEUOutput() + getMinimumStoredEU()));
+ (aBaseMetaTileEntity.isAllowedToWork())
+ && (aBaseMetaTileEntity.getUniversalEnergyStored() >= maxEUOutput() + getMinimumStoredEU()));
}
@Override
public String[] getDescription() {
return ArrayUtils.addAll(
- this.mDescriptionArray,
- "Fuel is measured in minecraft days (Check with Scanner)",
- "RTG changes output voltage depending on fuel",
- "Generates power at " + GT_Utility.formatNumbers(this.getEfficiency()) + "% Efficiency per tick",
- "Output Voltage: " + GT_Utility.formatNumbers(this.getOutputTier()) + " EU/t",
- CORE.GT_Tooltip.get());
+ this.mDescriptionArray,
+ "Fuel is measured in minecraft days (Check with Scanner)",
+ "RTG changes output voltage depending on fuel",
+ "Generates power at " + GT_Utility.formatNumbers(this.getEfficiency()) + "% Efficiency per tick",
+ "Output Voltage: " + GT_Utility.formatNumbers(this.getOutputTier()) + " EU/t",
+ CORE.GT_Tooltip.get());
}
public GregtechMetaTileEntity_RTG(int aID, String aName, String aNameRegional, int aTier) {
@@ -210,7 +209,7 @@ public class GregtechMetaTileEntity_RTG extends GT_MetaTileEntity_BasicGenerator
@Override
public boolean isOutputFacing(ForgeDirection side) {
return ((side.offsetY == 0) && (side != getBaseMetaTileEntity().getFrontFacing())
- && (side != getBaseMetaTileEntity().getBackFacing()));
+ && (side != getBaseMetaTileEntity().getBackFacing()));
}
@Override
@@ -236,67 +235,67 @@ public class GregtechMetaTileEntity_RTG extends GT_MetaTileEntity_BasicGenerator
@Override
public ITexture[] getFront(byte aColor) {
return new ITexture[] { super.getFront(aColor)[0],
- new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_TOP),
- new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_MASSFAB) };
+ new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_TOP),
+ new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_MASSFAB) };
}
@Override
public ITexture[] getBack(byte aColor) {
return new ITexture[] { super.getBack(aColor)[0],
- new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_TOP) };
+ new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_TOP) };
}
@Override
public ITexture[] getBottom(byte aColor) {
return new ITexture[] { super.getBottom(aColor)[0],
- new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_TOP) };
+ new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_TOP) };
}
@Override
public ITexture[] getTop(byte aColor) {
return new ITexture[] { super.getTop(aColor)[0],
- new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_TOP),
- new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_SIDE) };
+ new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_TOP),
+ new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_SIDE) };
}
@Override
public ITexture[] getSides(byte aColor) {
return new ITexture[] { gregtech.api.enums.Textures.BlockIcons.MACHINE_CASINGS[this.mTier][(0)],
- new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_TOP_ACTIVE),
- gregtech.api.enums.Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[getTier()] };
+ new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_TOP_ACTIVE),
+ gregtech.api.enums.Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[getTier()] };
}
@Override
public ITexture[] getFrontActive(byte aColor) {
return new ITexture[] { super.getFrontActive(aColor)[0],
- new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_TOP_ACTIVE),
- new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_MASSFAB_ACTIVE) };
+ new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_TOP_ACTIVE),
+ new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_MASSFAB_ACTIVE) };
}
@Override
public ITexture[] getBackActive(byte aColor) {
return new ITexture[] { super.getBackActive(aColor)[0],
- new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_TOP_ACTIVE) };
+ new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_TOP_ACTIVE) };
}
@Override
public ITexture[] getBottomActive(byte aColor) {
return new ITexture[] { super.getBottomActive(aColor)[0],
- new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_TOP_ACTIVE) };
+ new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_TOP_ACTIVE) };
}
@Override
public ITexture[] getTopActive(byte aColor) {
return new ITexture[] { super.getTopActive(aColor)[0],
- new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_TOP_ACTIVE),
- new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_SIDE_ACTIVE) };
+ new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_TOP_ACTIVE),
+ new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_SIDE_ACTIVE) };
}
@Override
public ITexture[] getSidesActive(byte aColor) {
return new ITexture[] { gregtech.api.enums.Textures.BlockIcons.MACHINE_CASINGS[this.mTier][(0)],
- new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_TOP_ACTIVE),
- gregtech.api.enums.Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[getTier()] };
+ new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_TOP_ACTIVE),
+ gregtech.api.enums.Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[getTier()] };
}
@Override
@@ -308,7 +307,7 @@ public class GregtechMetaTileEntity_RTG extends GT_MetaTileEntity_BasicGenerator
public int getFuelValue(ItemStack aStack) {
if ((GT_Utility.isStackInvalid(aStack)) || (getRecipeMap() == null)) return 0;
GT_Recipe tFuel = getRecipeMap()
- .findRecipe(getBaseMetaTileEntity(), false, 9223372036854775807L, null, new ItemStack[] { aStack });
+ .findRecipe(getBaseMetaTileEntity(), false, 9223372036854775807L, null, new ItemStack[] { aStack });
if (tFuel != null) {
this.mCurrentRecipe = tFuel;
int voltage = tFuel.mEUt;
@@ -370,12 +369,11 @@ public class GregtechMetaTileEntity_RTG extends GT_MetaTileEntity_BasicGenerator
@Override
public String[] getInfoData() {
- return new String[] { "RTG - Running at tier " + this.mTier,
- "Active: " + this.getBaseMetaTileEntity().isActive(),
- "Current Output: " + GT_Utility.formatNumbers(mVoltage) + " EU/t",
- "Days of Fuel remaining: " + GT_Utility.formatNumbers(mTicksToBurnFor / 20 / 60 / 20),
- "Hours of Fuel remaining: " + GT_Utility.formatNumbers(mTicksToBurnFor / 20 / 60 / 60),
- "Ticks of " + this.mVoltage + "v remaining: " + mTicksToBurnFor,
- this.mCurrentRecipe.mInputs[0].getDisplayName() + " x1" };
+ return new String[] { "RTG - Running at tier " + this.mTier, "Active: " + this.getBaseMetaTileEntity()
+ .isActive(), "Current Output: " + GT_Utility.formatNumbers(mVoltage) + " EU/t",
+ "Days of Fuel remaining: " + GT_Utility.formatNumbers(mTicksToBurnFor / 20 / 60 / 20),
+ "Hours of Fuel remaining: " + GT_Utility.formatNumbers(mTicksToBurnFor / 20 / 60 / 60),
+ "Ticks of " + this.mVoltage + "v remaining: " + mTicksToBurnFor,
+ this.mCurrentRecipe.mInputs[0].getDisplayName() + " x1" };
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/ULV/GT_MetaTileEntity_ULV_CombustionGenerator.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/ULV/GT_MetaTileEntity_ULV_CombustionGenerator.java
index 8696c97ee6..24770e9503 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/ULV/GT_MetaTileEntity_ULV_CombustionGenerator.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/ULV/GT_MetaTileEntity_ULV_CombustionGenerator.java
@@ -19,17 +19,17 @@ public class GT_MetaTileEntity_ULV_CombustionGenerator extends GT_MetaTileEntity
}
public GT_MetaTileEntity_ULV_CombustionGenerator(String aName, int aTier, String[] aDescription,
- ITexture[][][] aTextures) {
+ ITexture[][][] aTextures) {
super(aName, aTier, aDescription, aTextures);
}
@Override
public String[] getDescription() {
return ArrayUtils.addAll(
- this.mDescriptionArray,
- "Produces " + (this.getPollution() * 20) + " pollution/sec",
- "Fuel Efficiency: " + this.getEfficiency() + "%",
- CORE.GT_Tooltip.get());
+ this.mDescriptionArray,
+ "Produces " + (this.getPollution() * 20) + " pollution/sec",
+ "Fuel Efficiency: " + this.getEfficiency() + "%",
+ CORE.GT_Tooltip.get());
}
@Override
@@ -40,10 +40,10 @@ public class GT_MetaTileEntity_ULV_CombustionGenerator extends GT_MetaTileEntity
@Override
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
return new GT_MetaTileEntity_ULV_CombustionGenerator(
- this.mName,
- this.mTier,
- this.mDescriptionArray,
- this.mTextures);
+ this.mName,
+ this.mTier,
+ this.mDescriptionArray,
+ this.mTextures);
}
@Override
@@ -54,6 +54,6 @@ public class GT_MetaTileEntity_ULV_CombustionGenerator extends GT_MetaTileEntity
@Override
public void onConfigLoad() {
this.mEfficiency = GregTech_API.sMachineFile
- .get(ConfigCategories.machineconfig, "DieselGenerator.efficiency.tier." + this.mTier, 95);
+ .get(ConfigCategories.machineconfig, "DieselGenerator.efficiency.tier." + this.mTier, 95);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/ULV/GT_MetaTileEntity_ULV_SteamTurbine.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/ULV/GT_MetaTileEntity_ULV_SteamTurbine.java
index 9c7667abcd..26429b1486 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/ULV/GT_MetaTileEntity_ULV_SteamTurbine.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/ULV/GT_MetaTileEntity_ULV_SteamTurbine.java
@@ -37,6 +37,6 @@ public class GT_MetaTileEntity_ULV_SteamTurbine extends GT_MetaTileEntity_SteamT
@Override
public void onConfigLoad() {
this.mEfficiency = GregTech_API.sMachineFile
- .get(ConfigCategories.machineconfig, "SteamTurbine.efficiency.tier." + this.mTier, 6 + 1);
+ .get(ConfigCategories.machineconfig, "SteamTurbine.efficiency.tier." + this.mTier, 6 + 1);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_CropHarvestor.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_CropHarvestor.java
index af430c4a27..c592a68a40 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_CropHarvestor.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_CropHarvestor.java
@@ -57,16 +57,16 @@ public class GT_MetaTileEntity_CropHarvestor extends GT_MetaTileEntity_BasicTank
public GT_MetaTileEntity_CropHarvestor(final int aID, final int aTier, final String aDescription) {
super(
- aID,
- "basicmachine.cropharvester.0" + aTier,
- "Crop Manager (" + GT_Values.VN[aTier] + ")",
- aTier,
- 21,
- aDescription);
+ aID,
+ "basicmachine.cropharvester.0" + aTier,
+ "Crop Manager (" + GT_Values.VN[aTier] + ")",
+ aTier,
+ 21,
+ aDescription);
}
public GT_MetaTileEntity_CropHarvestor(final String aName, final int aTier, final String[] aDescription,
- final ITexture[][][] aTextures) {
+ final ITexture[][][] aTextures) {
super(aName, aTier, 21, aDescription, aTextures);
}
@@ -190,14 +190,17 @@ public class GT_MetaTileEntity_CropHarvestor extends GT_MetaTileEntity_BasicTank
public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
super.onPostTick(aBaseMetaTileEntity, aTick);
if (!getBaseMetaTileEntity().isServerSide() || !getBaseMetaTileEntity().isAllowedToWork()
- || (!getBaseMetaTileEntity().hasWorkJustBeenEnabled() && aTick % 100 != 0))
- return;
+ || (!getBaseMetaTileEntity().hasWorkJustBeenEnabled() && aTick % 100 != 0)) return;
- if (this.getBaseMetaTileEntity().getUniversalEnergyStored() < getMinimumStoredEU()) return;
+ if (this.getBaseMetaTileEntity()
+ .getUniversalEnergyStored() < getMinimumStoredEU()) return;
- int aTileX = this.getBaseMetaTileEntity().getXCoord();
- int aTileY = this.getBaseMetaTileEntity().getXCoord();
- int aTileZ = this.getBaseMetaTileEntity().getXCoord();
+ int aTileX = this.getBaseMetaTileEntity()
+ .getXCoord();
+ int aTileY = this.getBaseMetaTileEntity()
+ .getXCoord();
+ int aTileZ = this.getBaseMetaTileEntity()
+ .getXCoord();
int aRadius = 10 + getRange(this.mTier);
int aSide = (aRadius - 1) / 2;
@@ -257,11 +260,15 @@ public class GT_MetaTileEntity_CropHarvestor extends GT_MetaTileEntity_BasicTank
for (int i = SLOT_OUTPUT_START; i < this.getSizeInventory() && !aAllDrops.isEmpty(); i++) {
ItemStack invStack = mInventory[i];
if (invStack == null || GT_Utility.isStackInvalid(invStack) || invStack.stackSize == 0) {
- Iterator<Entry<ItemStack, Integer>> iter = aAllDrops.entrySet().iterator();
+ Iterator<Entry<ItemStack, Integer>> iter = aAllDrops.entrySet()
+ .iterator();
if (!iter.hasNext()) return;
Entry<ItemStack, Integer> e = iter.next();
int toAdd = e.getValue();
- int toAddThisSlot = Math.min(toAdd, e.getKey().getMaxStackSize());
+ int toAddThisSlot = Math.min(
+ toAdd,
+ e.getKey()
+ .getMaxStackSize());
getBaseMetaTileEntity().setInventorySlotContents(i, GT_Utility.copyAmount(toAddThisSlot, e.getKey()));
toAdd -= toAddThisSlot;
if (toAdd <= toAddThisSlot) {
@@ -333,22 +340,25 @@ public class GT_MetaTileEntity_CropHarvestor extends GT_MetaTileEntity_BasicTank
return;
}
if (hasFertilizer() && consumeFertilizer(true)
- && this.getBaseMetaTileEntity().getUniversalEnergyStored() >= getMinimumStoredEU()
- && getBaseMetaTileEntity().decreaseStoredEnergyUnits(powerUsageSecondary(), true)
- && applyFertilizer(aCrop)) {
+ && this.getBaseMetaTileEntity()
+ .getUniversalEnergyStored() >= getMinimumStoredEU()
+ && getBaseMetaTileEntity().decreaseStoredEnergyUnits(powerUsageSecondary(), true)
+ && applyFertilizer(aCrop)) {
if (consumeFertilizer(false)) {
// Logger.INFO("Consumed Fert.");
}
}
- if (this.getFluidAmount() > 0 && this.getBaseMetaTileEntity().getUniversalEnergyStored() >= getMinimumStoredEU()
- && getBaseMetaTileEntity().decreaseStoredEnergyUnits(powerUsageSecondary(), true)
- && applyHydration(aCrop)) {
+ if (this.getFluidAmount() > 0 && this.getBaseMetaTileEntity()
+ .getUniversalEnergyStored() >= getMinimumStoredEU()
+ && getBaseMetaTileEntity().decreaseStoredEnergyUnits(powerUsageSecondary(), true)
+ && applyHydration(aCrop)) {
// Logger.INFO("Consumed Water.");
}
if (hasWeedEX() && consumeWeedEX(true)
- && this.getBaseMetaTileEntity().getUniversalEnergyStored() >= getMinimumStoredEU()
- && getBaseMetaTileEntity().decreaseStoredEnergyUnits(powerUsageSecondary(), true)
- && applyWeedEx(aCrop)) {
+ && this.getBaseMetaTileEntity()
+ .getUniversalEnergyStored() >= getMinimumStoredEU()
+ && getBaseMetaTileEntity().decreaseStoredEnergyUnits(powerUsageSecondary(), true)
+ && applyWeedEx(aCrop)) {
if (consumeWeedEX(false)) {
// Logger.INFO("Consumed Weed-EX.");
}
@@ -360,9 +370,8 @@ public class GT_MetaTileEntity_CropHarvestor extends GT_MetaTileEntity_BasicTank
aCrop.setWeedExStorage(aCrop.getWeedExStorage() + 50);
boolean triggerDecline;
triggerDecline = aCrop.getWorld().rand.nextInt(3) == 0;
- if (aCrop.getCrop() != null && aCrop.getCrop().isWeed(aCrop)
- && aCrop.getWeedExStorage() >= 75
- && triggerDecline) {
+ if (aCrop.getCrop() != null && aCrop.getCrop()
+ .isWeed(aCrop) && aCrop.getWeedExStorage() >= 75 && triggerDecline) {
switch (aCrop.getWorld().rand.nextInt(5)) {
case 0:
if (aCrop.getGrowth() > 0) {
@@ -446,7 +455,7 @@ public class GT_MetaTileEntity_CropHarvestor extends GT_MetaTileEntity_BasicTank
ItemStack stack = this.mInventory[aSlot];
Item item = stack.getItem();
if (stack != null && item.isDamageable()
- && (ret == null || stack.getItem() == ret.getItem() && ItemStack.areItemStackTagsEqual(stack, ret))) {
+ && (ret == null || stack.getItem() == ret.getItem() && ItemStack.areItemStackTagsEqual(stack, ret))) {
if (simulate) {
stack = stack.copy();
}
@@ -480,19 +489,23 @@ public class GT_MetaTileEntity_CropHarvestor extends GT_MetaTileEntity_BasicTank
@Override
public boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
return aStack != null && aIndex >= SLOT_OUTPUT_START && aIndex < this.getSizeInventory();
}
@Override
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
if (aStack != null) {
- if (aStack.getItem().getUnlocalizedName().equals("ic2.itemFertilizer")) {
+ if (aStack.getItem()
+ .getUnlocalizedName()
+ .equals("ic2.itemFertilizer")) {
return aIndex >= SLOT_FERT_1 && aIndex <= SLOT_FERT_4;
- } else if (aStack.getItem().getUnlocalizedName().equals("ic2.itemWeedEx")) {
- return aIndex >= SLOT_WEEDEX_1 && aIndex <= SLOT_WEEDEX_2;
- }
+ } else if (aStack.getItem()
+ .getUnlocalizedName()
+ .equals("ic2.itemWeedEx")) {
+ return aIndex >= SLOT_WEEDEX_1 && aIndex <= SLOT_WEEDEX_2;
+ }
}
return false;
}
@@ -502,15 +515,15 @@ public class GT_MetaTileEntity_CropHarvestor extends GT_MetaTileEntity_BasicTank
int aRadius = 10 + getRange(this.mTier);
int aSide = (aRadius - 1) / 2;
return ArrayUtils.addAll(
- this.mDescriptionArray,
- "Secondary mode can Hydrate/Fertilize/Weed-EX",
- "Consumes " + powerUsage() + "eu per harvest",
- "Consumes " + powerUsageSecondary() + "eu per secondary operation",
- "Can harvest 1 block level above and below itself",
- "Radius: " + aSide + " blocks each side (" + aRadius + "x3x" + aRadius + ")",
- "Has " + (this.mTier * 5) + "% chance for extra drops",
- "Holds " + this.getCapacity() + "L of Water",
- CORE.GT_Tooltip.get());
+ this.mDescriptionArray,
+ "Secondary mode can Hydrate/Fertilize/Weed-EX",
+ "Consumes " + powerUsage() + "eu per harvest",
+ "Consumes " + powerUsageSecondary() + "eu per secondary operation",
+ "Can harvest 1 block level above and below itself",
+ "Radius: " + aSide + " blocks each side (" + aRadius + "x3x" + aRadius + ")",
+ "Has " + (this.mTier * 5) + "% chance for extra drops",
+ "Holds " + this.getCapacity() + "L of Water",
+ CORE.GT_Tooltip.get());
}
@Override
@@ -550,7 +563,7 @@ public class GT_MetaTileEntity_CropHarvestor extends GT_MetaTileEntity_BasicTank
@Override
public ITexture[] getTexture(final IGregTechTileEntity aBaseMetaTileEntity, final ForgeDirection side,
- final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
+ final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
if (side == ForgeDirection.DOWN || side == ForgeDirection.UP) {
return this.mTextures[3][aColorIndex + 1];
} else {
@@ -564,27 +577,27 @@ public class GT_MetaTileEntity_CropHarvestor extends GT_MetaTileEntity_BasicTank
public ITexture[] getFront(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_CropHarvester_Cutter) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_CropHarvester_Cutter) };
}
public ITexture[] getBack(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_CropHarvester_Cutter) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_CropHarvester_Cutter) };
}
public ITexture[] getBottom(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_CropHarvester_Boxes) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_CropHarvester_Boxes) };
}
public ITexture[] getTop(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_CropHarvester_Boxes) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_CropHarvester_Boxes) };
}
public ITexture[] getSides(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_CropHarvester_Cutter) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_CropHarvester_Cutter) };
}
@Override
@@ -641,56 +654,63 @@ public class GT_MetaTileEntity_CropHarvestor extends GT_MetaTileEntity_BasicTank
@Override
public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildContext) {
builder.widget(
- new CycleButtonWidget().setToggle(() -> mModeAlternative, val -> mModeAlternative = val)
- .setTexture(GTPP_UITextures.OVERLAY_BUTTON_HARVESTER_MODE)
- .addTooltip(0, "Enable Hydration/Fertilizing/Weed-EX")
- .addTooltip(1, "Disable Hydration/Fertilizing/Weed-EX")
- .setBackground(GT_UITextures.BUTTON_STANDARD).setPos(47, 63).setSize(18, 18));
- builder.widget(
- new CycleButtonWidget().setToggle(() -> mHarvestEnabled, val -> mHarvestEnabled = val)
- .setTexture(GTPP_UITextures.OVERLAY_BUTTON_HARVESTER_TOGGLE).addTooltip(0, "Enable Harvest")
- .addTooltip(1, "Disable Harvest").setBackground(GT_UITextures.BUTTON_STANDARD).setPos(67, 63)
- .setSize(18, 18));
+ new CycleButtonWidget().setToggle(() -> mModeAlternative, val -> mModeAlternative = val)
+ .setTexture(GTPP_UITextures.OVERLAY_BUTTON_HARVESTER_MODE)
+ .addTooltip(0, "Enable Hydration/Fertilizing/Weed-EX")
+ .addTooltip(1, "Disable Hydration/Fertilizing/Weed-EX")
+ .setBackground(GT_UITextures.BUTTON_STANDARD)
+ .setPos(47, 63)
+ .setSize(18, 18));
builder.widget(
- SlotGroup
- .ofItemHandler(inventoryHandler, 2).startFromSlot(
- SLOT_WEEDEX_1)
- .endAtSlot(SLOT_WEEDEX_2)
- .applyForWidget(
- widget -> widget.setFilter(
- stack -> stack != null
- && stack.getItem().getUnlocalizedName().equals("ic2.itemWeedEx"))
- .setBackground(
- getGUITextureSet().getItemSlot(),
- GTPP_UITextures.OVERLAY_SLOT_WEED_EX))
- .build().setPos(7, 13))
- .widget(
- SlotGroup
- .ofItemHandler(inventoryHandler, 2).startFromSlot(SLOT_FERT_1).endAtSlot(
- SLOT_FERT_4)
- .applyForWidget(
- widget -> widget.setFilter(
- stack -> stack != null && stack.getItem().getUnlocalizedName()
- .equals("ic2.itemFertilizer"))
- .setBackground(
- getGUITextureSet().getItemSlot(),
- GTPP_UITextures.OVERLAY_SLOT_FERTILIZER))
- .build().setPos(7, 31))
- .widget(
- SlotGroup.ofItemHandler(inventoryHandler, 6).startFromSlot(SLOT_OUTPUT_START)
- .endAtSlot(SLOT_OUTPUT_START + 6 * 3).canInsert(false).build().setPos(61, 7));
+ new CycleButtonWidget().setToggle(() -> mHarvestEnabled, val -> mHarvestEnabled = val)
+ .setTexture(GTPP_UITextures.OVERLAY_BUTTON_HARVESTER_TOGGLE)
+ .addTooltip(0, "Enable Harvest")
+ .addTooltip(1, "Disable Harvest")
+ .setBackground(GT_UITextures.BUTTON_STANDARD)
+ .setPos(67, 63)
+ .setSize(18, 18));
builder.widget(
+ SlotGroup.ofItemHandler(inventoryHandler, 2)
+ .startFromSlot(SLOT_WEEDEX_1)
+ .endAtSlot(SLOT_WEEDEX_2)
+ .applyForWidget(
+ widget -> widget.setFilter(
+ stack -> stack != null && stack.getItem()
+ .getUnlocalizedName()
+ .equals("ic2.itemWeedEx"))
+ .setBackground(getGUITextureSet().getItemSlot(), GTPP_UITextures.OVERLAY_SLOT_WEED_EX))
+ .build()
+ .setPos(7, 13))
+ .widget(
+ SlotGroup.ofItemHandler(inventoryHandler, 2)
+ .startFromSlot(SLOT_FERT_1)
+ .endAtSlot(SLOT_FERT_4)
+ .applyForWidget(
+ widget -> widget.setFilter(
+ stack -> stack != null && stack.getItem()
+ .getUnlocalizedName()
+ .equals("ic2.itemFertilizer"))
+ .setBackground(getGUITextureSet().getItemSlot(), GTPP_UITextures.OVERLAY_SLOT_FERTILIZER))
+ .build()
+ .setPos(7, 31))
+ .widget(
+ SlotGroup.ofItemHandler(inventoryHandler, 6)
+ .startFromSlot(SLOT_OUTPUT_START)
+ .endAtSlot(SLOT_OUTPUT_START + 6 * 3)
+ .canInsert(false)
+ .build()
+ .setPos(61, 7));
+ builder
+ .widget(
new ProgressBar()
- .setTexture(
- GTPP_UITextures.PROGRESSBAR_BOILER_EMPTY,
- GT_UITextures.PROGRESSBAR_BOILER_WATER,
- 54)
- .setDirection(ProgressBar.Direction.UP)
- .setProgress(() -> (float) getFluidAmount() / getCapacity()).setSynced(false, false)
- .dynamicTooltip(
- () -> Collections
- .singletonList("Water: " + getFluidAmount() + "L / " + getCapacity() + "L"))
- .setPos(47, 7).setSize(10, 54))
- .widget(new FakeSyncWidget.FluidStackSyncer(this::getDrainableStack, this::setDrainableStack));
+ .setTexture(GTPP_UITextures.PROGRESSBAR_BOILER_EMPTY, GT_UITextures.PROGRESSBAR_BOILER_WATER, 54)
+ .setDirection(ProgressBar.Direction.UP)
+ .setProgress(() -> (float) getFluidAmount() / getCapacity())
+ .setSynced(false, false)
+ .dynamicTooltip(
+ () -> Collections.singletonList("Water: " + getFluidAmount() + "L / " + getCapacity() + "L"))
+ .setPos(47, 7)
+ .setSize(10, 54))
+ .widget(new FakeSyncWidget.FluidStackSyncer(this::getDrainableStack, this::setDrainableStack));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaAtmosphericReconditioner.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaAtmosphericReconditioner.java
index 03b0fe9b13..9f2789b520 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaAtmosphericReconditioner.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaAtmosphericReconditioner.java
@@ -57,27 +57,27 @@ public class GregtechMetaAtmosphericReconditioner extends GT_MetaTileEntity_Basi
public GregtechMetaAtmosphericReconditioner(int aID, String aName, String aNameRegional, int aTier) {
super(
- aID,
- aName,
- aNameRegional,
- aTier,
- 2,
- "Making sure you don't live in Gwalior - Uses 2A",
- 3,
- 0,
- new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_MASSFAB_ACTIVE),
- new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_MASSFAB),
- new GT_RenderedTexture(TexturesGtBlock.Overlay_MatterFab_Active),
- new GT_RenderedTexture(TexturesGtBlock.Overlay_MatterFab),
- new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Vent_Fast),
- new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Vent),
- new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_MASSFAB_ACTIVE),
- new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_MASSFAB) });
+ aID,
+ aName,
+ aNameRegional,
+ aTier,
+ 2,
+ "Making sure you don't live in Gwalior - Uses 2A",
+ 3,
+ 0,
+ new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_MASSFAB_ACTIVE),
+ new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_MASSFAB),
+ new GT_RenderedTexture(TexturesGtBlock.Overlay_MatterFab_Active),
+ new GT_RenderedTexture(TexturesGtBlock.Overlay_MatterFab),
+ new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Vent_Fast),
+ new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Vent),
+ new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_MASSFAB_ACTIVE),
+ new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_MASSFAB) });
mPollutionEnabled = PollutionUtils.isPollutionEnabled();
}
public GregtechMetaAtmosphericReconditioner(String aName, int aTier, String[] aDescription,
- ITexture[][][] aTextures) {
+ ITexture[][][] aTextures) {
super(aName, aTier, 2, aDescription, aTextures, 2, 0);
mPollutionEnabled = PollutionUtils.isPollutionEnabled();
}
@@ -93,21 +93,21 @@ public class GregtechMetaAtmosphericReconditioner extends GT_MetaTileEntity_Basi
boolean highTier = this.mTier >= 7;
String[] A = ArrayUtils.addAll(
- this.mDescriptionArray,
- highTier ? "Will attempt to remove 1/4 pollution from 8 surrounding chunks" : "",
- highTier ? "If these chunks are not loaded, they will be ignored" : "",
- "Requires a turbine rotor and an Air Filter [T1/T2] to run.",
- "The turbine rotor must be manually inserted/replaced",
- "Can be configured with a soldering iron to change modes",
- "Low Efficiency: Removes half pollution, Turbine takes 50% dmg",
- "High Efficiency: Removes full pollution, Turbine takes 100% dmg",
- "Turbine Rotor will not break in LE mode",
- "Insert an equal tier Conveyor Module to enable automation");
+ this.mDescriptionArray,
+ highTier ? "Will attempt to remove 1/4 pollution from 8 surrounding chunks" : "",
+ highTier ? "If these chunks are not loaded, they will be ignored" : "",
+ "Requires a turbine rotor and an Air Filter [T1/T2] to run.",
+ "The turbine rotor must be manually inserted/replaced",
+ "Can be configured with a soldering iron to change modes",
+ "Low Efficiency: Removes half pollution, Turbine takes 50% dmg",
+ "High Efficiency: Removes full pollution, Turbine takes 100% dmg",
+ "Turbine Rotor will not break in LE mode",
+ "Insert an equal tier Conveyor Module to enable automation");
if (!mPollutionEnabled) {
String[] B = new String[] { "===============================================",
- "Pollution is disabled, scrubbers will now have a bonus use",
- "They are now able to remove ALL lingering pollution as GT ignores it",
- "and it will linger forever!", "===============================================", };
+ "Pollution is disabled, scrubbers will now have a bonus use",
+ "They are now able to remove ALL lingering pollution as GT ignores it", "and it will linger forever!",
+ "===============================================", };
A = ArrayUtils.addAll(A, B);
}
return A;
@@ -210,21 +210,23 @@ public class GregtechMetaAtmosphericReconditioner extends GT_MetaTileEntity_Basi
// Enable machine animation/graphic
if (hasRotor(stackRotor) && hasAirFilter(stackFilter) && this.mHasPollution) {
- if (!this.getBaseMetaTileEntity().isActive()) {
+ if (!this.getBaseMetaTileEntity()
+ .isActive()) {
Logger.INFO("Set Active.");
aBaseMetaTileEntity.setActive(true);
}
} else if (!this.mHasPollution || mCurrentPollution <= 0
- || stackRotor == null
- || stackFilter == null
- || !hasRotor(stackRotor)
- || !hasAirFilter(stackFilter)) {
- if (!this.getBaseMetaTileEntity().isActive()) {
- Logger.INFO("Set Inactive.");
- aBaseMetaTileEntity.setActive(false);
- this.sendSound((byte) -122);
- }
+ || stackRotor == null
+ || stackFilter == null
+ || !hasRotor(stackRotor)
+ || !hasAirFilter(stackFilter)) {
+ if (!this.getBaseMetaTileEntity()
+ .isActive()) {
+ Logger.INFO("Set Inactive.");
+ aBaseMetaTileEntity.setActive(false);
+ this.sendSound((byte) -122);
}
+ }
// If Active.
if (aBaseMetaTileEntity.isActive()) {
@@ -232,8 +234,8 @@ public class GregtechMetaAtmosphericReconditioner extends GT_MetaTileEntity_Basi
// Do nothing if there is no pollution.
if (this.mHasPollution && mCurrentPollution > 0) {
- Logger.INFO(
- "Has Pollution? " + mHasPollution + ", Current Pollution: " + mCurrentPollution);
+ Logger
+ .INFO("Has Pollution? " + mHasPollution + ", Current Pollution: " + mCurrentPollution);
// Only check every 30s.
if (!isIdle && aTick % (20L * 30) == 0L) {
@@ -278,8 +280,8 @@ public class GregtechMetaAtmosphericReconditioner extends GT_MetaTileEntity_Basi
// I stole this code
reduction = (MathUtils.safeInt((long) reduction * this.mBaseEff) / 100000)
- * mAirSides
- * Math.max((tTier - 2), 1);
+ * mAirSides
+ * Math.max((tTier - 2), 1);
Logger.INFO("reduction[2]:" + reduction);
reduction = MathUtils.safeInt(((long) reduction / 100) * this.mOptimalAirFlow);
Logger.INFO("reduction[3]:" + reduction);
@@ -331,20 +333,21 @@ public class GregtechMetaAtmosphericReconditioner extends GT_MetaTileEntity_Basi
else {
if (hasRotor(stackRotor) && hasAirFilter(stackFilter)
- && this.mHasPollution
- && !isIdle
- && aBaseMetaTileEntity.isAllowedToWork()) {
+ && this.mHasPollution
+ && !isIdle
+ && aBaseMetaTileEntity.isAllowedToWork()) {
aBaseMetaTileEntity.setActive(true);
} else if (isIdle || !this.mHasPollution
- || mCurrentPollution <= 0
- || stackRotor == null
- || stackFilter == null
- || !hasRotor(stackRotor)
- || !hasAirFilter(stackFilter)) {
- aBaseMetaTileEntity.setActive(false);
- }
+ || mCurrentPollution <= 0
+ || stackRotor == null
+ || stackFilter == null
+ || !hasRotor(stackRotor)
+ || !hasAirFilter(stackFilter)) {
+ aBaseMetaTileEntity.setActive(false);
+ }
}
- if (this.getBaseMetaTileEntity().isActive()) {
+ if (this.getBaseMetaTileEntity()
+ .isActive()) {
if (MathUtils.randInt(0, 5) <= 2) {
this.sendSound((byte) -120);
}
@@ -358,9 +361,12 @@ public class GregtechMetaAtmosphericReconditioner extends GT_MetaTileEntity_Basi
mCurrentChunkPollution = PollutionUtils.getPollution(getBaseMetaTileEntity());
} else {
AutoMap<Chunk> aSurrounding = new AutoMap<>();
- World aWorld = this.getBaseMetaTileEntity().getWorld();
- int xPos = this.getBaseMetaTileEntity().getXCoord();
- int zPos = this.getBaseMetaTileEntity().getZCoord();
+ World aWorld = this.getBaseMetaTileEntity()
+ .getWorld();
+ int xPos = this.getBaseMetaTileEntity()
+ .getXCoord();
+ int zPos = this.getBaseMetaTileEntity()
+ .getZCoord();
Chunk a1 = aWorld.getChunkFromBlockCoords(xPos - 32, zPos - 32);
Chunk a2 = aWorld.getChunkFromBlockCoords(xPos - 32, zPos);
Chunk a3 = aWorld.getChunkFromBlockCoords(xPos - 32, zPos + 32);
@@ -407,12 +413,12 @@ public class GregtechMetaAtmosphericReconditioner extends GT_MetaTileEntity_Basi
// Logger.INFO("Found Basic Turbine Rotor.");
return true;
} else if (rotorStack.getItem() instanceof GT_MetaGenerated_Tool && rotorStack.getItemDamage() >= 170
- && rotorStack.getItemDamage() <= 179) {
- // Logger.INFO("Found Turbine Rotor.");
- return true;
- } else {
- // Logger.INFO("Found: "+rotorStack.getDisplayName()+":"+rotorStack.getItemDamage());
- }
+ && rotorStack.getItemDamage() <= 179) {
+ // Logger.INFO("Found Turbine Rotor.");
+ return true;
+ } else {
+ // Logger.INFO("Found: "+rotorStack.getDisplayName()+":"+rotorStack.getItemDamage());
+ }
}
// Logger.INFO("Found No Turbine Rotor.");
return false;
@@ -460,14 +466,14 @@ public class GregtechMetaAtmosphericReconditioner extends GT_MetaTileEntity_Basi
}
if (mInventory[SLOT_ROTOR].getItem() instanceof GT_MetaGenerated_Tool_01
- && ((GT_MetaGenerated_Tool) mInventory[SLOT_ROTOR].getItem()).getToolStats(mInventory[SLOT_ROTOR])
- .getSpeedMultiplier() > 0
- && GT_MetaGenerated_Tool.getPrimaryMaterial(mInventory[SLOT_ROTOR]).mToolSpeed > 0) {
+ && ((GT_MetaGenerated_Tool) mInventory[SLOT_ROTOR].getItem()).getToolStats(mInventory[SLOT_ROTOR])
+ .getSpeedMultiplier() > 0
+ && GT_MetaGenerated_Tool.getPrimaryMaterial(mInventory[SLOT_ROTOR]).mToolSpeed > 0) {
long damageValue = (long) Math
- .floor(Math.abs(MathUtils.randFloat(1, 2) - MathUtils.randFloat(1, 3)) * (1 + 3 - 1) + 1);
- double fDam = Math.floor(
- Math.abs(MathUtils.randFloat(1f, 2f) - MathUtils.randFloat(1f, 2f)) * (1f + 2f - 1f) + 1f);
+ .floor(Math.abs(MathUtils.randFloat(1, 2) - MathUtils.randFloat(1, 3)) * (1 + 3 - 1) + 1);
+ double fDam = Math
+ .floor(Math.abs(MathUtils.randFloat(1f, 2f) - MathUtils.randFloat(1f, 2f)) * (1f + 2f - 1f) + 1f);
damageValue -= fDam;
// Logger.INFO("Trying to do "+damageValue+" damage to the rotor. ["+fDam+"]");
@@ -480,24 +486,24 @@ public class GregtechMetaAtmosphericReconditioner extends GT_MetaTileEntity_Basi
// Damage Rotor
// int rotorDurability = this.mInventory[this.SLOT_ROTOR].getItemDamage();
long rotorDamage = creativeRotor ? 0
- : GT_MetaGenerated_Tool.getToolDamage(this.mInventory[this.SLOT_ROTOR]);
+ : GT_MetaGenerated_Tool.getToolDamage(this.mInventory[this.SLOT_ROTOR]);
long rotorDurabilityMax = creativeRotor ? Integer.MAX_VALUE
- : GT_MetaGenerated_Tool.getToolMaxDamage(this.mInventory[this.SLOT_ROTOR]);
+ : GT_MetaGenerated_Tool.getToolMaxDamage(this.mInventory[this.SLOT_ROTOR]);
long rotorDurability = (rotorDurabilityMax - rotorDamage);
Logger.INFO(
- "Rotor Damage: " + rotorDamage
- + " | Max Durability: "
- + rotorDurabilityMax
- + " | "
- + " Remaining Durability: "
- + rotorDurability);
+ "Rotor Damage: " + rotorDamage
+ + " | Max Durability: "
+ + rotorDurabilityMax
+ + " | "
+ + " Remaining Durability: "
+ + rotorDurability);
if (rotorDurability >= damageValue) {
if (!mSaveRotor) {
Logger.INFO("Damaging Rotor.");
if (!creativeRotor) GT_ModHandler
- .damageOrDechargeItem(this.mInventory[this.SLOT_ROTOR], (int) damageValue, 0, null);
+ .damageOrDechargeItem(this.mInventory[this.SLOT_ROTOR], (int) damageValue, 0, null);
long tempDur = GT_MetaGenerated_Tool.getToolDamage(this.mInventory[this.SLOT_ROTOR]);
if (tempDur < rotorDurabilityMax) {
@@ -508,11 +514,8 @@ public class GregtechMetaAtmosphericReconditioner extends GT_MetaTileEntity_Basi
} else {
Logger.INFO("Damaging Rotor.");
if (rotorDurability > 1000) {
- if (!creativeRotor) GT_ModHandler.damageOrDechargeItem(
- this.mInventory[this.SLOT_ROTOR],
- (int) damageValue / 2,
- 0,
- null);
+ if (!creativeRotor) GT_ModHandler
+ .damageOrDechargeItem(this.mInventory[this.SLOT_ROTOR], (int) damageValue / 2, 0, null);
long tempDur = GT_MetaGenerated_Tool.getToolDamage(this.mInventory[this.SLOT_ROTOR]);
if (tempDur < rotorDurabilityMax) {
return true;
@@ -568,7 +571,9 @@ public class GregtechMetaAtmosphericReconditioner extends GT_MetaTileEntity_Basi
public boolean removePollution(int toRemove) {
- if (this == null || this.getBaseMetaTileEntity() == null || this.getBaseMetaTileEntity().getWorld() == null) {
+ if (this == null || this.getBaseMetaTileEntity() == null
+ || this.getBaseMetaTileEntity()
+ .getWorld() == null) {
return false;
}
@@ -583,15 +588,22 @@ public class GregtechMetaAtmosphericReconditioner extends GT_MetaTileEntity_Basi
int chunksWithRemoval = 0;
int totalRemoved = 0;
AutoMap<Chunk> aSurrounding = new AutoMap<>();
- Chunk aThisChunk = this.getBaseMetaTileEntity().getWorld().getChunkFromBlockCoords(
- this.getBaseMetaTileEntity().getXCoord(),
- this.getBaseMetaTileEntity().getZCoord());
+ Chunk aThisChunk = this.getBaseMetaTileEntity()
+ .getWorld()
+ .getChunkFromBlockCoords(
+ this.getBaseMetaTileEntity()
+ .getXCoord(),
+ this.getBaseMetaTileEntity()
+ .getZCoord());
int mainChunkX = aThisChunk.xPosition;
int mainChunkZ = aThisChunk.zPosition;
- World aWorld = this.getBaseMetaTileEntity().getWorld();
- int xPos = this.getBaseMetaTileEntity().getXCoord();
- int zPos = this.getBaseMetaTileEntity().getZCoord();
+ World aWorld = this.getBaseMetaTileEntity()
+ .getWorld();
+ int xPos = this.getBaseMetaTileEntity()
+ .getXCoord();
+ int zPos = this.getBaseMetaTileEntity()
+ .getZCoord();
Chunk a1 = aWorld.getChunkFromBlockCoords(xPos - 32, zPos - 32);
Chunk a2 = aWorld.getChunkFromBlockCoords(xPos - 32, zPos);
@@ -624,11 +636,11 @@ public class GregtechMetaAtmosphericReconditioner extends GT_MetaTileEntity_Basi
}
Logger.INFO(
- "Trying to remove pollution from chunk " + r.xPosition
- + ", "
- + r.zPosition
- + " | "
- + startPollution);
+ "Trying to remove pollution from chunk " + r.xPosition
+ + ", "
+ + r.zPosition
+ + " | "
+ + startPollution);
int after = 0;
boolean isMainChunk = r.isAtLocation(mainChunkX, mainChunkZ);
@@ -643,13 +655,13 @@ public class GregtechMetaAtmosphericReconditioner extends GT_MetaTileEntity_Basi
totalRemoved += (startPollution - after);
}
Logger.INFO(
- "Removed " + (startPollution - after)
- + " pollution from chunk "
- + r.xPosition
- + ", "
- + r.zPosition
- + " | "
- + after);
+ "Removed " + (startPollution - after)
+ + " pollution from chunk "
+ + r.xPosition
+ + ", "
+ + r.zPosition
+ + " | "
+ + after);
}
return totalRemoved > 0 && chunksWithRemoval > 0;
}
@@ -727,7 +739,7 @@ public class GregtechMetaAtmosphericReconditioner extends GT_MetaTileEntity_Basi
return true;
}
if (aStack.getItem() instanceof GT_MetaGenerated_Tool && aStack.getItemDamage() >= 170
- && aStack.getItemDamage() <= 179) {
+ && aStack.getItemDamage() <= 179) {
return true;
}
}
@@ -744,7 +756,7 @@ public class GregtechMetaAtmosphericReconditioner extends GT_MetaTileEntity_Basi
public void doSound(byte aIndex, double aX, double aY, double aZ) {
if (aIndex == -120) {
GT_Utility
- .doSoundAtClient(SoundResource.IC2_TOOLS_BATTERY_USE, MathUtils.randInt(5, 50), 0.05F, aX, aY, aZ);
+ .doSoundAtClient(SoundResource.IC2_TOOLS_BATTERY_USE, MathUtils.randInt(5, 50), 0.05F, aX, aY, aZ);
} else {
super.doSound((byte) 0, aX, aY, aZ);
}
@@ -764,7 +776,7 @@ public class GregtechMetaAtmosphericReconditioner extends GT_MetaTileEntity_Basi
byte tTier = (byte) Math.max(1, GT_Utility.getTier(tVoltage));
reduction += (((Math.max((tTier - 2), 1) * 2) * 50) * mAirSides);
reduction = (MathUtils.safeInt((long) reduction * this.mBaseEff) / 100000) * mAirSides
- * Math.max((tTier - 2), 1);
+ * Math.max((tTier - 2), 1);
reduction = MathUtils.safeInt(((long) reduction / 100) * this.mOptimalAirFlow);
aTooltipSuper.put("Maximum pollution removed per second: " + reduction);
@@ -813,19 +825,11 @@ public class GregtechMetaAtmosphericReconditioner extends GT_MetaTileEntity_Basi
if (sGregTurbines == null) {
sGregTurbines = new ItemStack[3];
sGregTurbines[0] = GT_MetaGenerated_Tool.sInstances.get("gt.metatool.01")
- .getToolWithStats(GT_MetaGenerated_Tool_01.TURBINE_SMALL, 1, Materials.Iron, Materials.Iron, null);
- sGregTurbines[1] = GT_MetaGenerated_Tool.sInstances.get("gt.metatool.01").getToolWithStats(
- GT_MetaGenerated_Tool_01.TURBINE_SMALL,
- 1,
- Materials.Bronze,
- Materials.Bronze,
- null);
- sGregTurbines[2] = GT_MetaGenerated_Tool.sInstances.get("gt.metatool.01").getToolWithStats(
- GT_MetaGenerated_Tool_01.TURBINE_SMALL,
- 1,
- Materials.Steel,
- Materials.Steel,
- null);
+ .getToolWithStats(GT_MetaGenerated_Tool_01.TURBINE_SMALL, 1, Materials.Iron, Materials.Iron, null);
+ sGregTurbines[1] = GT_MetaGenerated_Tool.sInstances.get("gt.metatool.01")
+ .getToolWithStats(GT_MetaGenerated_Tool_01.TURBINE_SMALL, 1, Materials.Bronze, Materials.Bronze, null);
+ sGregTurbines[2] = GT_MetaGenerated_Tool.sInstances.get("gt.metatool.01")
+ .getToolWithStats(GT_MetaGenerated_Tool_01.TURBINE_SMALL, 1, Materials.Steel, Materials.Steel, null);
} else {
return sGregTurbines[aTier];
}
@@ -838,7 +842,7 @@ public class GregtechMetaAtmosphericReconditioner extends GT_MetaTileEntity_Basi
return getBaseEfficiency(getTieredTurbine(aStackRotor.getItemDamage()));
}
return (int) ((50.0F
- + (10.0F * ((GT_MetaGenerated_Tool) aStackRotor.getItem()).getToolCombatDamage(aStackRotor))) * 100);
+ + (10.0F * ((GT_MetaGenerated_Tool) aStackRotor.getItem()).getToolCombatDamage(aStackRotor))) * 100);
}
public int getOptimalAirFlow(ItemStack aStackRotor) {
@@ -846,10 +850,9 @@ public class GregtechMetaAtmosphericReconditioner extends GT_MetaTileEntity_Basi
return getOptimalAirFlow(getTieredTurbine(aStackRotor.getItemDamage()));
}
return (int) Math.max(
- Float.MIN_NORMAL,
- ((GT_MetaGenerated_Tool) aStackRotor.getItem()).getToolStats(aStackRotor).getSpeedMultiplier()
- * GT_MetaGenerated_Tool.getPrimaryMaterial(aStackRotor).mToolSpeed
- * 50);
+ Float.MIN_NORMAL,
+ ((GT_MetaGenerated_Tool) aStackRotor.getItem()).getToolStats(aStackRotor)
+ .getSpeedMultiplier() * GT_MetaGenerated_Tool.getPrimaryMaterial(aStackRotor).mToolSpeed * 50);
}
@Override
@@ -864,26 +867,27 @@ public class GregtechMetaAtmosphericReconditioner extends GT_MetaTileEntity_Basi
return true;
}
return stack.getItem() instanceof GT_MetaGenerated_Tool && stack.getItemDamage() >= 170
- && stack.getItemDamage() <= 179;
- }).setBackground(getGUITextureSet().getItemSlot(), GTPP_UITextures.OVERLAY_SLOT_TURBINE).setPos(52, 24))
- .widget(
- new SlotWidget(inventoryHandler, SLOT_FILTER)
- .setFilter(stack -> stack.getItem() instanceof ItemAirFilter)
- .setBackground(getGUITextureSet().getItemSlot(), GT_UITextures.OVERLAY_SLOT_RECYCLE)
- .setPos(106, 24))
- .widget(
- new SlotWidget(inventoryHandler, 7)
- .setFilter(stack -> GT_Utility.areStacksEqual(stack, CI.getConveyor(mTier, 1), true))
- .setPos(124, 62));
+ && stack.getItemDamage() <= 179;
+ })
+ .setBackground(getGUITextureSet().getItemSlot(), GTPP_UITextures.OVERLAY_SLOT_TURBINE)
+ .setPos(52, 24))
+ .widget(
+ new SlotWidget(inventoryHandler, SLOT_FILTER)
+ .setFilter(stack -> stack.getItem() instanceof ItemAirFilter)
+ .setBackground(getGUITextureSet().getItemSlot(), GT_UITextures.OVERLAY_SLOT_RECYCLE)
+ .setPos(106, 24))
+ .widget(
+ new SlotWidget(inventoryHandler, 7)
+ .setFilter(stack -> GT_Utility.areStacksEqual(stack, CI.getConveyor(mTier, 1), true))
+ .setPos(124, 62));
builder.widget(
- new DrawableWidget().setDrawable(GT_UITextures.PICTURE_INFORMATION)
- .dynamicTooltip(() -> Collections.singletonList("Reduction: " + mPollutionReduction + "/s"))
- .attachSyncer(
- new FakeSyncWidget.IntegerSyncer(
- () -> mPollutionReduction,
- val -> mPollutionReduction = val),
- builder,
- (widget, val) -> widget.notifyTooltipChange())
- .setPos(163, 5).setSize(7, 18));
+ new DrawableWidget().setDrawable(GT_UITextures.PICTURE_INFORMATION)
+ .dynamicTooltip(() -> Collections.singletonList("Reduction: " + mPollutionReduction + "/s"))
+ .attachSyncer(
+ new FakeSyncWidget.IntegerSyncer(() -> mPollutionReduction, val -> mPollutionReduction = val),
+ builder,
+ (widget, val) -> widget.notifyTooltipChange())
+ .setPos(163, 5)
+ .setSize(7, 18));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaPollutionCreator.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaPollutionCreator.java
index 2e59750e08..d7b6b8fffd 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaPollutionCreator.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaPollutionCreator.java
@@ -27,12 +27,12 @@ public class GregtechMetaPollutionCreator extends GregtechMetaTileEntity {
private int mSecondTimer = 0;
public GregtechMetaPollutionCreator(final int aID, final String aName, final String aNameRegional, final int aTier,
- final String aDescription, final int aSlotCount) {
+ final String aDescription, final int aSlotCount) {
super(aID, aName, aNameRegional, aTier, aSlotCount, aDescription);
}
public GregtechMetaPollutionCreator(final String aName, final int aTier, final String aDescription,
- final ITexture[][][] aTextures, final int aSlotCount) {
+ final ITexture[][][] aTextures, final int aSlotCount) {
super(aName, aTier, aSlotCount, aDescription, aTextures);
}
@@ -61,62 +61,60 @@ public class GregtechMetaPollutionCreator extends GregtechMetaTileEntity {
@Override
public ITexture[] getTexture(final IGregTechTileEntity aBaseMetaTileEntity, final ForgeDirection side,
- final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
- return this.mTextures[(aActive ? 5 : 0)
- + (side == facing ? 0
- : side == facing.getOpposite() ? 1
- : side == ForgeDirection.DOWN ? 2 : side == ForgeDirection.UP ? 3 : 4)][aColorIndex
- + 1];
+ final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
+ return this.mTextures[(aActive ? 5 : 0) + (side == facing ? 0
+ : side == facing.getOpposite() ? 1
+ : side == ForgeDirection.DOWN ? 2 : side == ForgeDirection.UP ? 3 : 4)][aColorIndex + 1];
}
public ITexture[] getFront(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier + 3][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Screen_2) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Screen_2) };
}
public ITexture[] getBack(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier + 3][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
}
public ITexture[] getBottom(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier + 3][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
}
public ITexture[] getTop(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier + 3][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
}
public ITexture[] getSides(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier + 3][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
}
public ITexture[] getFrontActive(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier + 3][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Screen_2) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Screen_2) };
}
public ITexture[] getBackActive(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier + 3][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
}
public ITexture[] getBottomActive(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier + 3][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
}
public ITexture[] getTopActive(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier + 3][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
}
public ITexture[] getSidesActive(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier + 3][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
}
@Override
@@ -133,11 +131,11 @@ public class GregtechMetaPollutionCreator extends GregtechMetaTileEntity {
@Override
public IMetaTileEntity newMetaEntity(final IGregTechTileEntity aTileEntity) {
return new GregtechMetaPollutionCreator(
- this.mName,
- this.mTier,
- this.mDescription,
- this.mTextures,
- this.mInventory.length);
+ this.mName,
+ this.mTier,
+ this.mDescription,
+ this.mTextures,
+ this.mInventory.length);
}
@Override
@@ -172,12 +170,14 @@ public class GregtechMetaPollutionCreator extends GregtechMetaTileEntity {
@Override
public boolean isInputFacing(final ForgeDirection side) {
- return side != this.getBaseMetaTileEntity().getFrontFacing();
+ return side != this.getBaseMetaTileEntity()
+ .getFrontFacing();
}
@Override
public boolean isOutputFacing(final ForgeDirection side) {
- return side == this.getBaseMetaTileEntity().getFrontFacing();
+ return side == this.getBaseMetaTileEntity()
+ .getFrontFacing();
}
@Override
@@ -242,12 +242,14 @@ public class GregtechMetaPollutionCreator extends GregtechMetaTileEntity {
@Override
public int getProgresstime() {
- return (int) this.getBaseMetaTileEntity().getUniversalEnergyStored();
+ return (int) this.getBaseMetaTileEntity()
+ .getUniversalEnergyStored();
}
@Override
public int maxProgresstime() {
- return (int) this.getBaseMetaTileEntity().getUniversalEnergyCapacity();
+ return (int) this.getBaseMetaTileEntity()
+ .getUniversalEnergyCapacity();
}
@Override
@@ -272,7 +274,7 @@ public class GregtechMetaPollutionCreator extends GregtechMetaTileEntity {
} else {
addPollution();
PlayerUtils
- .messagePlayer(playerIn, "This chunk now contains " + getCurrentChunkPollution() + " pollution.");
+ .messagePlayer(playerIn, "This chunk now contains " + getCurrentChunkPollution() + " pollution.");
// PlayerUtils.messagePlayer(playerIn, "Average over last ten minutes: "+getAveragePollutionOverLastTen()+"
// pollution.");
}
@@ -285,13 +287,13 @@ public class GregtechMetaPollutionCreator extends GregtechMetaTileEntity {
@Override
public boolean allowPullStack(final IGregTechTileEntity aBaseMetaTileEntity, final int aIndex,
- final ForgeDirection side, final ItemStack aStack) {
+ final ForgeDirection side, final ItemStack aStack) {
return false;
}
@Override
public boolean allowPutStack(final IGregTechTileEntity aBaseMetaTileEntity, final int aIndex,
- final ForgeDirection side, final ItemStack aStack) {
+ final ForgeDirection side, final ItemStack aStack) {
return false;
}
@@ -306,7 +308,7 @@ public class GregtechMetaPollutionCreator extends GregtechMetaTileEntity {
@Override
public String[] getInfoData() {
return new String[] { this.getLocalName(), "Current Pollution: " + this.mCurrentPollution,
- "Average/10 minutes:" + getAveragePollutionOverLastTen() };
+ "Average/10 minutes:" + getAveragePollutionOverLastTen() };
}
@Override
@@ -407,7 +409,8 @@ public class GregtechMetaPollutionCreator extends GregtechMetaTileEntity {
@Override
public void onFirstTick(final IGregTechTileEntity aBaseMetaTileEntity) {
- if (this.getBaseMetaTileEntity().isServerSide()) {
+ if (this.getBaseMetaTileEntity()
+ .isServerSide()) {
if (this.mCurrentPollution == 0) {
this.mCurrentPollution = getCurrentChunkPollution();
}
@@ -421,7 +424,8 @@ public class GregtechMetaPollutionCreator extends GregtechMetaTileEntity {
@Override
public void onPostTick(final IGregTechTileEntity aBaseMetaTileEntity, final long aTick) {
super.onPostTick(aBaseMetaTileEntity, aTick);
- if (this.getBaseMetaTileEntity().isServerSide()) {
+ if (this.getBaseMetaTileEntity()
+ .isServerSide()) {
// TickTimer - 20 times a second
this.mTickTimer++;
if (mTickTimer % 20 == 0) {
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaPollutionDetector.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaPollutionDetector.java
index c4b93a83b7..92443d2658 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaPollutionDetector.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaPollutionDetector.java
@@ -30,30 +30,29 @@ public class GregtechMetaPollutionDetector extends GregtechMetaTileEntity {
private long mRedstoneLevel = 0;
public GregtechMetaPollutionDetector(final int aID, final String aName, final String aNameRegional, final int aTier,
- final String aDescription, final int aSlotCount) {
+ final String aDescription, final int aSlotCount) {
super(aID, aName, aNameRegional, aTier, aSlotCount, aDescription);
}
public GregtechMetaPollutionDetector(final String aName, final int aTier, final String aDescription,
- final ITexture[][][] aTextures, final int aSlotCount) {
+ final ITexture[][][] aTextures, final int aSlotCount) {
super(aName, aTier, aSlotCount, aDescription, aTextures);
}
@Override
public String[] getDescription() {
return new String[] { this.mDescription, "Right click to check pollution levels.",
- "Configure with screwdriver to set redstone output amount.", "Does not use power.",
- CORE.GT_Tooltip.get() };
+ "Configure with screwdriver to set redstone output amount.", "Does not use power.", CORE.GT_Tooltip.get() };
}
@Override
public ITexture[] getTexture(final IGregTechTileEntity aBaseMetaTileEntity, final ForgeDirection side,
- final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
+ final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
return side == facing
- ? new ITexture[] { new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Dimensional),
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Screen_Frequency) }
- : new ITexture[] { new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Dimensional),
- new GT_RenderedTexture(Textures.BlockIcons.VOID) };
+ ? new ITexture[] { new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Dimensional),
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Screen_Frequency) }
+ : new ITexture[] { new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Dimensional),
+ new GT_RenderedTexture(Textures.BlockIcons.VOID) };
}
@Override
@@ -83,62 +82,62 @@ public class GregtechMetaPollutionDetector extends GregtechMetaTileEntity {
public ITexture[] getFront(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Screen_2) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Screen_2) };
}
public ITexture[] getBack(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
}
public ITexture[] getBottom(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
}
public ITexture[] getTop(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
}
public ITexture[] getSides(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
}
public ITexture[] getFrontActive(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Screen_2) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Screen_2) };
}
public ITexture[] getBackActive(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
}
public ITexture[] getBottomActive(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
}
public ITexture[] getTopActive(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
}
public ITexture[] getSidesActive(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
}
@Override
public IMetaTileEntity newMetaEntity(final IGregTechTileEntity aTileEntity) {
return new GregtechMetaPollutionDetector(
- this.mName,
- this.mTier,
- this.mDescription,
- this.mTextures,
- this.mInventory.length);
+ this.mName,
+ this.mTier,
+ this.mDescription,
+ this.mTextures,
+ this.mInventory.length);
}
@Override
@@ -173,12 +172,14 @@ public class GregtechMetaPollutionDetector extends GregtechMetaTileEntity {
@Override
public boolean isInputFacing(final ForgeDirection side) {
- return side != this.getBaseMetaTileEntity().getFrontFacing();
+ return side != this.getBaseMetaTileEntity()
+ .getFrontFacing();
}
@Override
public boolean isOutputFacing(final ForgeDirection side) {
- return side == this.getBaseMetaTileEntity().getFrontFacing();
+ return side == this.getBaseMetaTileEntity()
+ .getFrontFacing();
}
@Override
@@ -243,12 +244,14 @@ public class GregtechMetaPollutionDetector extends GregtechMetaTileEntity {
@Override
public int getProgresstime() {
- return (int) this.getBaseMetaTileEntity().getUniversalEnergyStored();
+ return (int) this.getBaseMetaTileEntity()
+ .getUniversalEnergyStored();
}
@Override
public int maxProgresstime() {
- return (int) this.getBaseMetaTileEntity().getUniversalEnergyCapacity();
+ return (int) this.getBaseMetaTileEntity()
+ .getUniversalEnergyCapacity();
}
@Override
@@ -276,13 +279,13 @@ public class GregtechMetaPollutionDetector extends GregtechMetaTileEntity {
@Override
public boolean allowPullStack(final IGregTechTileEntity aBaseMetaTileEntity, final int aIndex,
- final ForgeDirection side, final ItemStack aStack) {
+ final ForgeDirection side, final ItemStack aStack) {
return false;
}
@Override
public boolean allowPutStack(final IGregTechTileEntity aBaseMetaTileEntity, final int aIndex,
- final ForgeDirection side, final ItemStack aStack) {
+ final ForgeDirection side, final ItemStack aStack) {
return false;
}
@@ -297,8 +300,7 @@ public class GregtechMetaPollutionDetector extends GregtechMetaTileEntity {
@Override
public String[] getInfoData() {
return new String[] { this.getLocalName(), "Current Pollution: " + this.mCurrentPollution,
- "Average/10 Sec: " + this.mAveragePollution,
- "Emit Redstone at pollution level: " + this.mRedstoneLevel };
+ "Average/10 Sec: " + this.mAveragePollution, "Emit Redstone at pollution level: " + this.mRedstoneLevel };
}
@Override
@@ -405,7 +407,8 @@ public class GregtechMetaPollutionDetector extends GregtechMetaTileEntity {
}
public boolean allowCoverOnSide(final ForgeDirection side, final int aCoverID) {
- return side != this.getBaseMetaTileEntity().getFrontFacing();
+ return side != this.getBaseMetaTileEntity()
+ .getFrontFacing();
}
@Override
@@ -413,18 +416,21 @@ public class GregtechMetaPollutionDetector extends GregtechMetaTileEntity {
super.onPostTick(aBaseMetaTileEntity, aTick);
// Only Calc server-side
- if (!this.getBaseMetaTileEntity().isServerSide()) {
+ if (!this.getBaseMetaTileEntity()
+ .isServerSide()) {
return;
}
// Emit Redstone
if (this.getCurrentChunkPollution() >= this.mRedstoneLevel) {
for (final ForgeDirection side : ForgeDirection.VALID_DIRECTIONS) {
- this.getBaseMetaTileEntity().setStrongOutputRedstoneSignal(side, (byte) 16);
+ this.getBaseMetaTileEntity()
+ .setStrongOutputRedstoneSignal(side, (byte) 16);
}
this.markDirty();
} else {
for (final ForgeDirection side : ForgeDirection.VALID_DIRECTIONS) {
- this.getBaseMetaTileEntity().setStrongOutputRedstoneSignal(side, (byte) 0);
+ this.getBaseMetaTileEntity()
+ .setStrongOutputRedstoneSignal(side, (byte) 0);
}
this.markDirty();
}
@@ -449,7 +455,8 @@ public class GregtechMetaPollutionDetector extends GregtechMetaTileEntity {
@Override
public void onScrewdriverRightClick(ForgeDirection side, EntityPlayer aPlayer, float aX, float aY, float aZ) {
- if (side == this.getBaseMetaTileEntity().getFrontFacing()) {
+ if (side == this.getBaseMetaTileEntity()
+ .getFrontFacing()) {
final float[] tCoords = GT_Utility.getClickedFacingCoords(side, aX, aY, aZ);
switch ((byte) ((byte) (int) (tCoords[0] * 2.0F) + (2 * (byte) (int) (tCoords[1] * 2.0F)))) {
case 0 -> this.mRedstoneLevel -= 5000;
@@ -475,7 +482,7 @@ public class GregtechMetaPollutionDetector extends GregtechMetaTileEntity {
@Override
public boolean onRightclick(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer, ForgeDirection side,
- float aX, float aY, float aZ) {
+ float aX, float aY, float aZ) {
return super.onRightclick(aBaseMetaTileEntity, aPlayer, side, aX, aY, aZ);
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaTileEntity_AutoChisel.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaTileEntity_AutoChisel.java
index 80a0aff5ee..751771f2b4 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaTileEntity_AutoChisel.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaTileEntity_AutoChisel.java
@@ -32,22 +32,22 @@ public class GregtechMetaTileEntity_AutoChisel extends GT_MetaTileEntity_BasicMa
public GregtechMetaTileEntity_AutoChisel(int aID, String aName, String aNameRegional, int aTier) {
super(
- aID,
- aName,
- aNameRegional,
- aTier,
- 1,
- "Chisels things, Gregtech style",
- 1,
- 1,
- new ITexture[] { new GT_RenderedTexture(BlockIcons.OVERLAY_SIDE_MASSFAB_ACTIVE),
- new GT_RenderedTexture(BlockIcons.OVERLAY_SIDE_MASSFAB),
- new GT_RenderedTexture(BlockIcons.OVERLAY_FRONT_MULTI_SMELTER_ACTIVE),
- new GT_RenderedTexture(BlockIcons.OVERLAY_FRONT_MULTI_SMELTER),
- new GT_RenderedTexture(TexturesGtBlock.Overlay_MatterFab_Active),
- new GT_RenderedTexture(TexturesGtBlock.Overlay_MatterFab),
- new GT_RenderedTexture(BlockIcons.OVERLAY_BOTTOM_MASSFAB_ACTIVE),
- new GT_RenderedTexture(BlockIcons.OVERLAY_BOTTOM_MASSFAB) });
+ aID,
+ aName,
+ aNameRegional,
+ aTier,
+ 1,
+ "Chisels things, Gregtech style",
+ 1,
+ 1,
+ new ITexture[] { new GT_RenderedTexture(BlockIcons.OVERLAY_SIDE_MASSFAB_ACTIVE),
+ new GT_RenderedTexture(BlockIcons.OVERLAY_SIDE_MASSFAB),
+ new GT_RenderedTexture(BlockIcons.OVERLAY_FRONT_MULTI_SMELTER_ACTIVE),
+ new GT_RenderedTexture(BlockIcons.OVERLAY_FRONT_MULTI_SMELTER),
+ new GT_RenderedTexture(TexturesGtBlock.Overlay_MatterFab_Active),
+ new GT_RenderedTexture(TexturesGtBlock.Overlay_MatterFab),
+ new GT_RenderedTexture(BlockIcons.OVERLAY_BOTTOM_MASSFAB_ACTIVE),
+ new GT_RenderedTexture(BlockIcons.OVERLAY_BOTTOM_MASSFAB) });
}
public GregtechMetaTileEntity_AutoChisel(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures) {
@@ -62,16 +62,16 @@ public class GregtechMetaTileEntity_AutoChisel extends GT_MetaTileEntity_BasicMa
@Override
public String[] getDescription() {
return ArrayUtils.addAll(
- this.mDescriptionArray,
- "What you want to chisel goes in slot 1",
- "What you want to get goes in the special slot (bottom right)",
- "If special slot is empty, first chisel result is used");
+ this.mDescriptionArray,
+ "What you want to chisel goes in slot 1",
+ "What you want to get goes in the special slot (bottom right)",
+ "If special slot is empty, first chisel result is used");
}
private boolean hasValidCache(ItemStack aStack, ItemStack aSpecialSlot, boolean aClearOnFailure) {
if (mInputCache != null && mOutputCache != null) {
if (GT_Utility.areStacksEqual(aStack, mInputCache)
- && GT_Utility.areStacksEqual(aSpecialSlot, mOutputCache)) {
+ && GT_Utility.areStacksEqual(aSpecialSlot, mOutputCache)) {
return true;
}
}
@@ -90,9 +90,9 @@ public class GregtechMetaTileEntity_AutoChisel extends GT_MetaTileEntity_BasicMa
@Override
protected boolean allowPutStackValidated(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
return hasValidCache(aStack, this.getSpecialSlot(), false) ? true
- : super.allowPutStackValidated(aBaseMetaTileEntity, aIndex, side, aStack) && hasChiselResults(aStack);
+ : super.allowPutStackValidated(aBaseMetaTileEntity, aIndex, side, aStack) && hasChiselResults(aStack);
}
// lets make sure the user isn't trying to make something from a block that doesn't have this as a valid target
@@ -167,22 +167,24 @@ public class GregtechMetaTileEntity_AutoChisel extends GT_MetaTileEntity_BasicMa
}
private static final FallbackableUITexture progressBarTexture = GT_UITextures
- .fallbackableProgressbar("auto_chisel", GT_UITextures.PROGRESSBAR_COMPRESS);
+ .fallbackableProgressbar("auto_chisel", GT_UITextures.PROGRESSBAR_COMPRESS);
@Override
protected BasicUIProperties getUIProperties() {
- return super.getUIProperties().toBuilder().progressBarTexture(progressBarTexture).build();
+ return super.getUIProperties().toBuilder()
+ .progressBarTexture(progressBarTexture)
+ .build();
}
@Override
protected SlotWidget createItemInputSlot(int index, IDrawable[] backgrounds, Pos2d pos) {
return (SlotWidget) super.createItemInputSlot(index, backgrounds, pos)
- .setBackground(getGUITextureSet().getItemSlot(), GT_UITextures.OVERLAY_SLOT_COMPRESSOR);
+ .setBackground(getGUITextureSet().getItemSlot(), GT_UITextures.OVERLAY_SLOT_COMPRESSOR);
}
@Override
protected SlotWidget createSpecialSlot(IDrawable[] backgrounds, Pos2d pos, BasicUIProperties uiProperties) {
return (SlotWidget) super.createSpecialSlot(backgrounds, pos, uiProperties)
- .setGTTooltip(() -> mTooltipCache.getData("GTPP.machines.chisel_slot.tooltip"));
+ .setGTTooltip(() -> mTooltipCache.getData("GTPP.machines.chisel_slot.tooltip"));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaWirelessCharger.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaWirelessCharger.java
index bd0cf2e098..b1289958a9 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaWirelessCharger.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaWirelessCharger.java
@@ -33,25 +33,24 @@ public class GregtechMetaWirelessCharger extends GregtechMetaTileEntity {
public boolean mLocked = true;
public GregtechMetaWirelessCharger(final int aID, final String aName, final String aNameRegional, final int aTier,
- final String aDescription, final int aSlotCount) {
+ final String aDescription, final int aSlotCount) {
super(aID, aName, aNameRegional, aTier, aSlotCount, aDescription);
}
public GregtechMetaWirelessCharger(final String aName, final int aTier, final String aDescription,
- final ITexture[][][] aTextures, final int aSlotCount) {
+ final ITexture[][][] aTextures, final int aSlotCount) {
super(aName, aTier, aSlotCount, aDescription, aTextures);
}
@Override
public String[] getDescription() {
return new String[] { this.mDescription, "Can be locked to the owner by sneaking with a screwdriver",
- "Can also be locked with a lock upgrade", "", "3 Modes, Long-Range, Local and Mixed.",
- "Long-Range: Can supply 2A of power to a single player up to " + (GT_Values.V[this.mTier] * 4)
- + "m away.",
- "Local: Can supply several Amps to each player within " + this.mTier * 20 + "m.",
- "Mixed: Provides both 2A of long range and 1A per player locally.",
- "Mixed mode is more conservative of power and as a result only",
- "Gets half the distances each singular mode gets.", CORE.GT_Tooltip.get() };
+ "Can also be locked with a lock upgrade", "", "3 Modes, Long-Range, Local and Mixed.",
+ "Long-Range: Can supply 2A of power to a single player up to " + (GT_Values.V[this.mTier] * 4) + "m away.",
+ "Local: Can supply several Amps to each player within " + this.mTier * 20 + "m.",
+ "Mixed: Provides both 2A of long range and 1A per player locally.",
+ "Mixed mode is more conservative of power and as a result only",
+ "Gets half the distances each singular mode gets.", CORE.GT_Tooltip.get() };
}
public int getTier() {
@@ -94,62 +93,60 @@ public class GregtechMetaWirelessCharger extends GregtechMetaTileEntity {
@Override
public ITexture[] getTexture(final IGregTechTileEntity aBaseMetaTileEntity, final ForgeDirection side,
- final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
- return this.mTextures[(aActive ? 5 : 0)
- + (side == facing ? 0
- : side == facing.getOpposite() ? 1
- : side == ForgeDirection.DOWN ? 2 : side == ForgeDirection.UP ? 3 : 4)][aColorIndex
- + 1];
+ final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
+ return this.mTextures[(aActive ? 5 : 0) + (side == facing ? 0
+ : side == facing.getOpposite() ? 1
+ : side == ForgeDirection.DOWN ? 2 : side == ForgeDirection.UP ? 3 : 4)][aColorIndex + 1];
}
public ITexture[] getFront(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Screen_2) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Screen_2) };
}
public ITexture[] getBack(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
}
public ITexture[] getBottom(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
}
public ITexture[] getTop(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
}
public ITexture[] getSides(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
}
public ITexture[] getFrontActive(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Screen_2) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Screen_2) };
}
public ITexture[] getBackActive(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
}
public ITexture[] getBottomActive(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
}
public ITexture[] getTopActive(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
}
public ITexture[] getSidesActive(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
+ new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Bottom) };
}
@Override
@@ -163,8 +160,10 @@ public class GregtechMetaWirelessCharger extends GregtechMetaTileEntity {
mWirelessChargingMap.clear();
mLocalChargingMap.clear();
- if (!this.getBaseMetaTileEntity().getWorld().playerEntities.isEmpty()) {
- for (Object mTempPlayer : this.getBaseMetaTileEntity().getWorld().playerEntities) {
+ if (!this.getBaseMetaTileEntity()
+ .getWorld().playerEntities.isEmpty()) {
+ for (Object mTempPlayer : this.getBaseMetaTileEntity()
+ .getWorld().playerEntities) {
if (mTempPlayer instanceof EntityPlayer || mTempPlayer instanceof EntityPlayerMP) {
EntityPlayer mTemp = (EntityPlayer) mTempPlayer;
ChargingHelper.removeValidPlayer(mTemp, this);
@@ -190,11 +189,11 @@ public class GregtechMetaWirelessCharger extends GregtechMetaTileEntity {
@Override
public IMetaTileEntity newMetaEntity(final IGregTechTileEntity aTileEntity) {
return new GregtechMetaWirelessCharger(
- this.mName,
- this.mTier,
- this.mDescription,
- this.mTextures,
- this.mInventory.length);
+ this.mName,
+ this.mTier,
+ this.mDescription,
+ this.mTextures,
+ this.mInventory.length);
}
@Override
@@ -229,12 +228,14 @@ public class GregtechMetaWirelessCharger extends GregtechMetaTileEntity {
@Override
public boolean isInputFacing(final ForgeDirection side) {
- return side != this.getBaseMetaTileEntity().getFrontFacing();
+ return side != this.getBaseMetaTileEntity()
+ .getFrontFacing();
}
@Override
public boolean isOutputFacing(final ForgeDirection side) {
- return side == this.getBaseMetaTileEntity().getFrontFacing();
+ return side == this.getBaseMetaTileEntity()
+ .getFrontFacing();
}
@Override
@@ -305,12 +306,14 @@ public class GregtechMetaWirelessCharger extends GregtechMetaTileEntity {
@Override
public int getProgresstime() {
- return (int) this.getBaseMetaTileEntity().getUniversalEnergyStored();
+ return (int) this.getBaseMetaTileEntity()
+ .getUniversalEnergyStored();
}
@Override
public int maxProgresstime() {
- return (int) this.getBaseMetaTileEntity().getUniversalEnergyCapacity();
+ return (int) this.getBaseMetaTileEntity()
+ .getUniversalEnergyCapacity();
}
@Override
@@ -328,13 +331,13 @@ public class GregtechMetaWirelessCharger extends GregtechMetaTileEntity {
@Override
public boolean allowPullStack(final IGregTechTileEntity aBaseMetaTileEntity, final int aIndex,
- final ForgeDirection side, final ItemStack aStack) {
+ final ForgeDirection side, final ItemStack aStack) {
return false;
}
@Override
public boolean allowPutStack(final IGregTechTileEntity aBaseMetaTileEntity, final int aIndex,
- final ForgeDirection side, final ItemStack aStack) {
+ final ForgeDirection side, final ItemStack aStack) {
return false;
}
@@ -452,7 +455,8 @@ public class GregtechMetaWirelessCharger extends GregtechMetaTileEntity {
private boolean isValidPlayer(EntityPlayer aPlayer) {
BaseMetaTileEntity aTile = (BaseMetaTileEntity) this.getBaseMetaTileEntity();
if (mLocked || (aTile != null && aTile.privateAccess())) {
- if (aPlayer.getUniqueID().equals(getBaseMetaTileEntity().getOwnerUuid())) {
+ if (aPlayer.getUniqueID()
+ .equals(getBaseMetaTileEntity().getOwnerUuid())) {
return true;
} else {
return false;
@@ -464,7 +468,8 @@ public class GregtechMetaWirelessCharger extends GregtechMetaTileEntity {
@Override
public void onPostTick(final IGregTechTileEntity aBaseMetaTileEntity, final long aTick) {
super.onPostTick(aBaseMetaTileEntity, aTick);
- if (this.getBaseMetaTileEntity().isServerSide()) {
+ if (this.getBaseMetaTileEntity()
+ .isServerSide()) {
if (this.mCurrentDimension != aBaseMetaTileEntity.getWorld().provider.dimensionId) {
this.mCurrentDimension = aBaseMetaTileEntity.getWorld().provider.dimensionId;
@@ -484,9 +489,9 @@ public class GregtechMetaWirelessCharger extends GregtechMetaTileEntity {
if (this.mMode == 1 || this.mMode == 2) {
int tempRange = (this.mMode == 1 ? this.mTier * 20 : this.mTier * 10);
if (getDistanceBetweenTwoPositions(getTileEntityPosition(), getPositionOfEntity(mTemp))
- < tempRange) {
+ < tempRange) {
if (isValidPlayer(mTemp)
- && !mLocalChargingMap.containsKey(mTemp.getDisplayName())) {
+ && !mLocalChargingMap.containsKey(mTemp.getDisplayName())) {
mLocalChargingMap.put(mTemp.getDisplayName(), mTemp.getPersistentID());
ChargingHelper.addValidPlayer(mTemp, this);
// PlayerUtils.messagePlayer(mTemp, "You have entered charging range.
@@ -504,25 +509,24 @@ public class GregtechMetaWirelessCharger extends GregtechMetaTileEntity {
}
if (this.mMode == 0 || this.mMode == 2) {
int tempRange = (int) (this.mMode == 0 ? 4 * GT_Values.V[this.mTier]
- : 2 * GT_Values.V[this.mTier]);
+ : 2 * GT_Values.V[this.mTier]);
if (getDistanceBetweenTwoPositions(getTileEntityPosition(), getPositionOfEntity(mTemp))
- <= tempRange) {
+ <= tempRange) {
if (!mWirelessChargingMap.containsKey(mTemp.getDisplayName())) {
if (isValidPlayer(mTemp)) {
mWirelessChargingMap.put(mTemp.getDisplayName(), mTemp.getPersistentID());
ChargingHelper.addValidPlayer(mTemp, this);
PlayerUtils.messagePlayer(
- mTemp,
- "You have entered charging range. [" + tempRange
- + "m - Long-Range].");
+ mTemp,
+ "You have entered charging range. [" + tempRange + "m - Long-Range].");
}
}
} else {
if (mWirelessChargingMap.containsKey(mTemp.getDisplayName())) {
if (mWirelessChargingMap.remove(mTemp.getDisplayName()) != null) {
PlayerUtils.messagePlayer(
- mTemp,
- "You have left charging range. [" + tempRange + "m - Long Range].");
+ mTemp,
+ "You have left charging range. [" + tempRange + "m - Long Range].");
ChargingHelper.removeValidPlayer(mTemp, this);
}
}
@@ -551,10 +555,14 @@ public class GregtechMetaWirelessCharger extends GregtechMetaTileEntity {
public BlockPos getTileEntityPosition() {
return new BlockPos(
- this.getBaseMetaTileEntity().getXCoord(),
- this.getBaseMetaTileEntity().getYCoord(),
- this.getBaseMetaTileEntity().getZCoord(),
- this.getBaseMetaTileEntity().getWorld());
+ this.getBaseMetaTileEntity()
+ .getXCoord(),
+ this.getBaseMetaTileEntity()
+ .getYCoord(),
+ this.getBaseMetaTileEntity()
+ .getZCoord(),
+ this.getBaseMetaTileEntity()
+ .getWorld());
}
public BlockPos getPositionOfEntity(Entity mEntity) {
@@ -572,9 +580,9 @@ public class GregtechMetaWirelessCharger extends GregtechMetaTileEntity {
int[] objectArray2 = new int[] { objectB.xPos, objectB.yPos, objectB.zPos };
final double distance = Math.sqrt(
- (objectArray2[0] - objectArray1[0]) * (objectArray2[0] - objectArray1[0])
- + (objectArray2[1] - objectArray1[1]) * (objectArray2[1] - objectArray1[1])
- + (objectArray2[2] - objectArray1[2]) * (objectArray2[2] - objectArray1[2]));
+ (objectArray2[0] - objectArray1[0]) * (objectArray2[0] - objectArray1[0])
+ + (objectArray2[1] - objectArray1[1]) * (objectArray2[1] - objectArray1[1])
+ + (objectArray2[2] - objectArray1[2]) * (objectArray2[2] - objectArray1[2]));
return distance;
}
@@ -585,8 +593,10 @@ public class GregtechMetaWirelessCharger extends GregtechMetaTileEntity {
mWirelessChargingMap.clear();
mLocalChargingMap.clear();
- if (!this.getBaseMetaTileEntity().getWorld().playerEntities.isEmpty()) {
- for (Object mTempPlayer : this.getBaseMetaTileEntity().getWorld().playerEntities) {
+ if (!this.getBaseMetaTileEntity()
+ .getWorld().playerEntities.isEmpty()) {
+ for (Object mTempPlayer : this.getBaseMetaTileEntity()
+ .getWorld().playerEntities) {
if (mTempPlayer instanceof EntityPlayer || mTempPlayer instanceof EntityPlayerMP) {
EntityPlayer mTemp = (EntityPlayer) mTempPlayer;
ChargingHelper.removeValidPlayer(mTemp, this);
@@ -599,7 +609,7 @@ public class GregtechMetaWirelessCharger extends GregtechMetaTileEntity {
@Override
public boolean onRightclick(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer, ForgeDirection side,
- float aX, float aY, float aZ) {
+ float aX, float aY, float aZ) {
int tempRange;
@@ -611,25 +621,29 @@ public class GregtechMetaWirelessCharger extends GregtechMetaTileEntity {
if (this.mMode == 2) {
PlayerUtils
- .messagePlayer(aPlayer, "Mixed Mode | Local: " + this.mTier * 10 + "m | Long: " + tempRange + "m");
+ .messagePlayer(aPlayer, "Mixed Mode | Local: " + this.mTier * 10 + "m | Long: " + tempRange + "m");
PlayerUtils.messagePlayer(aPlayer, "Players with access:");
- for (String name : this.getLocalMap().keySet()) {
+ for (String name : this.getLocalMap()
+ .keySet()) {
PlayerUtils.messagePlayer(aPlayer, "Local: " + name);
}
- for (String name : this.getLongRangeMap().keySet()) {
+ for (String name : this.getLongRangeMap()
+ .keySet()) {
PlayerUtils.messagePlayer(aPlayer, "Long: " + name);
}
} else if (this.mMode == 1) {
PlayerUtils.messagePlayer(aPlayer, "Local Mode: " + this.mTier * 20 + "m");
PlayerUtils.messagePlayer(aPlayer, "Players with access:");
- for (String name : this.getLocalMap().keySet()) {
+ for (String name : this.getLocalMap()
+ .keySet()) {
PlayerUtils.messagePlayer(aPlayer, "" + name);
}
} else {
PlayerUtils.messagePlayer(aPlayer, "Long-range Mode: " + tempRange + "m");
PlayerUtils.messagePlayer(aPlayer, "Players with access:");
- for (String name : this.getLongRangeMap().keySet()) {
+ for (String name : this.getLongRangeMap()
+ .keySet()) {
PlayerUtils.messagePlayer(aPlayer, "" + name);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/misc/GMTE_AmazonPackager.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/misc/GMTE_AmazonPackager.java
index 23e942737c..0e71c3b9b1 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/misc/GMTE_AmazonPackager.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/misc/GMTE_AmazonPackager.java
@@ -32,7 +32,7 @@ import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.Gregtech
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
public class GMTE_AmazonPackager extends GregtechMeta_MultiBlockBase<GMTE_AmazonPackager>
- implements ISurvivalConstructable {
+ implements ISurvivalConstructable {
private int mCasing;
@@ -60,18 +60,18 @@ public class GMTE_AmazonPackager extends GregtechMeta_MultiBlockBase<GMTE_Amazon
public IStructureDefinition<GMTE_AmazonPackager> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
STRUCTURE_DEFINITION = StructureDefinition.<GMTE_AmazonPackager>builder()
- .addShape(
- mName,
- transpose(
- new String[][] { { "CCC", "CCC", "CCC" }, { "C~C", "C-C", "CCC" },
- { "CCC", "CCC", "CCC" }, }))
- .addElement(
- 'C',
- buildHatchAdder(GMTE_AmazonPackager.class)
- .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler)
- .casingIndex(TAE.getIndexFromPage(2, 9)).dot(1).buildAndChain(
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings3Misc, 9))))
- .build();
+ .addShape(
+ mName,
+ transpose(
+ new String[][] { { "CCC", "CCC", "CCC" }, { "C~C", "C-C", "CCC" }, { "CCC", "CCC", "CCC" }, }))
+ .addElement(
+ 'C',
+ buildHatchAdder(GMTE_AmazonPackager.class)
+ .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler)
+ .casingIndex(TAE.getIndexFromPage(2, 9))
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings3Misc, 9))))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -79,17 +79,26 @@ public class GMTE_AmazonPackager extends GregtechMeta_MultiBlockBase<GMTE_Amazon
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for the Amazon Warehouse")
- .addInfo("This Multiblock is used for EXTREME packaging requirements")
- .addInfo("Dust Schematics are inserted into the input busses")
- .addInfo("If inserted into the controller, it is shared across all busses")
- .addInfo("1x, 2x, 3x & Other Schematics are to be placed into the controller GUI slot")
- .addInfo("500% faster than using single block machines of the same voltage")
- .addInfo("Only uses 75% of the EU/t normally required").addInfo("Processes 16 items per voltage tier")
- .addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(3, 3, 3, true)
- .addController("Front center").addCasingInfoMin("Supply Depot Casings", 10, false)
- .addInputBus("Any casing", 1).addOutputBus("Any casing", 1).addEnergyHatch("Any casing", 1)
- .addMaintenanceHatch("Any casing", 1).addMufflerHatch("Any casing", 1).toolTipFinisher("GT++");
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for the Amazon Warehouse")
+ .addInfo("This Multiblock is used for EXTREME packaging requirements")
+ .addInfo("Dust Schematics are inserted into the input busses")
+ .addInfo("If inserted into the controller, it is shared across all busses")
+ .addInfo("1x, 2x, 3x & Other Schematics are to be placed into the controller GUI slot")
+ .addInfo("500% faster than using single block machines of the same voltage")
+ .addInfo("Only uses 75% of the EU/t normally required")
+ .addInfo("Processes 16 items per voltage tier")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(3, 3, 3, true)
+ .addController("Front center")
+ .addCasingInfoMin("Supply Depot Casings", 10, false)
+ .addInputBus("Any casing", 1)
+ .addOutputBus("Any casing", 1)
+ .addEnergyHatch("Any casing", 1)
+ .addMaintenanceHatch("Any casing", 1)
+ .addMufflerHatch("Any casing", 1)
+ .toolTipFinisher("GT++");
return tt;
}
@@ -115,8 +124,9 @@ public class GMTE_AmazonPackager extends GregtechMeta_MultiBlockBase<GMTE_Amazon
@Override
protected ProcessingLogic createProcessingLogic() {
- return new ProcessingLogic().setSpeedBonus(1F / 6F).setEuModifier(0.75F)
- .setMaxParallelSupplier(this::getMaxParallelRecipes);
+ return new ProcessingLogic().setSpeedBonus(1F / 6F)
+ .setEuModifier(0.75F)
+ .setMaxParallelSupplier(this::getMaxParallelRecipes);
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialAlloySmelter.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialAlloySmelter.java
index 0ba3e569cc..e5d138dfda 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialAlloySmelter.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialAlloySmelter.java
@@ -38,7 +38,7 @@ import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.GregtechMeta_MultiBlockBase;
public class GregtechMetaTileEntity_IndustrialAlloySmelter extends
- GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialAlloySmelter> implements ISurvivalConstructable {
+ GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialAlloySmelter> implements ISurvivalConstructable {
public static int CASING_TEXTURE_ID;
private HeatingCoilLevel mHeatingCapacity;
@@ -114,17 +114,25 @@ public class GregtechMetaTileEntity_IndustrialAlloySmelter extends
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for the Industrial Alloy Smelter")
- .addInfo("Gains one parallel per voltage tier").addInfo("Gains one multiplier per coil tier")
- .addInfo("Parallel = Tier * Coil Tier").addInfo("Gains 5% speed bonus per coil tier")
- .addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(3, 5, 3, true)
- .addController("Bottom center").addCasingInfoMin("Inconel Reinforced Casings", 8, false)
- .addOtherStructurePart("Integral Encasement V", "Middle Layer")
- .addOtherStructurePart("Heating Coils", "Above and below Integral Encasements")
- .addInputBus("Any Inconel Reinforced Casing", 1).addOutputBus("Any Inconel Reinforced Casing", 1)
- .addEnergyHatch("Any Inconel Reinforced Casing", 1)
- .addMaintenanceHatch("Any Inconel Reinforced Casing", 1)
- .addMufflerHatch("Any Inconel Reinforced Casing", 1).toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for the Industrial Alloy Smelter")
+ .addInfo("Gains one parallel per voltage tier")
+ .addInfo("Gains one multiplier per coil tier")
+ .addInfo("Parallel = Tier * Coil Tier")
+ .addInfo("Gains 5% speed bonus per coil tier")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(3, 5, 3, true)
+ .addController("Bottom center")
+ .addCasingInfoMin("Inconel Reinforced Casings", 8, false)
+ .addOtherStructurePart("Integral Encasement V", "Middle Layer")
+ .addOtherStructurePart("Heating Coils", "Above and below Integral Encasements")
+ .addInputBus("Any Inconel Reinforced Casing", 1)
+ .addOutputBus("Any Inconel Reinforced Casing", 1)
+ .addEnergyHatch("Any Inconel Reinforced Casing", 1)
+ .addMaintenanceHatch("Any Inconel Reinforced Casing", 1)
+ .addMufflerHatch("Any Inconel Reinforced Casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -132,24 +140,25 @@ public class GregtechMetaTileEntity_IndustrialAlloySmelter extends
public IStructureDefinition<GregtechMetaTileEntity_IndustrialAlloySmelter> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_IndustrialAlloySmelter>builder()
- .addShape(
- mName,
- transpose(
- new String[][] { { "CCC", "CCC", "CCC" }, { "HHH", "H-H", "HHH" },
- { "VVV", "V-V", "VVV" }, { "HHH", "H-H", "HHH" },
- { "C~C", "CCC", "CCC" }, }))
- .addElement(
- 'C',
- buildHatchAdder(GregtechMetaTileEntity_IndustrialAlloySmelter.class)
- .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler)
- .casingIndex(CASING_TEXTURE_ID).dot(1).buildAndChain(
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings3Misc, 1))))
- .addElement(
- 'H',
- ofCoil(
- GregtechMetaTileEntity_IndustrialAlloySmelter::setCoilLevel,
- GregtechMetaTileEntity_IndustrialAlloySmelter::getCoilLevel))
- .addElement('V', ofBlock(ModBlocks.blockCasingsTieredGTPP, 4)).build();
+ .addShape(
+ mName,
+ transpose(
+ new String[][] { { "CCC", "CCC", "CCC" }, { "HHH", "H-H", "HHH" }, { "VVV", "V-V", "VVV" },
+ { "HHH", "H-H", "HHH" }, { "C~C", "CCC", "CCC" }, }))
+ .addElement(
+ 'C',
+ buildHatchAdder(GregtechMetaTileEntity_IndustrialAlloySmelter.class)
+ .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler)
+ .casingIndex(CASING_TEXTURE_ID)
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings3Misc, 1))))
+ .addElement(
+ 'H',
+ ofCoil(
+ GregtechMetaTileEntity_IndustrialAlloySmelter::setCoilLevel,
+ GregtechMetaTileEntity_IndustrialAlloySmelter::getCoilLevel))
+ .addElement('V', ofBlock(ModBlocks.blockCasingsTieredGTPP, 4))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -171,9 +180,9 @@ public class GregtechMetaTileEntity_IndustrialAlloySmelter extends
mLevel = 0;
setCoilLevel(HeatingCoilLevel.None);
return checkPiece(mName, 1, 4, 0) && mCasing >= 8
- && getCoilLevel() != HeatingCoilLevel.None
- && (mLevel = getCoilLevel().getTier() + 1) > 0
- && checkHatch();
+ && getCoilLevel() != HeatingCoilLevel.None
+ && (mLevel = getCoilLevel().getTier() + 1) > 0
+ && checkHatch();
}
@Override
@@ -189,11 +198,12 @@ public class GregtechMetaTileEntity_IndustrialAlloySmelter extends
@Override
protected GT_OverclockCalculator createOverclockCalculator(@NotNull GT_Recipe recipe) {
return super.createOverclockCalculator(recipe).setSpeedBoost(100F / (100F + 5F * mLevel))
- .setHeatOC(true).setRecipeHeat(0)
- // Need to multiply by 2 because heat OC is done only once every 1800 and this one does it once
- // every
- // 900
- .setMachineHeat((int) (getCoilLevel().getHeat() * 2));
+ .setHeatOC(true)
+ .setRecipeHeat(0)
+ // Need to multiply by 2 because heat OC is done only once every 1800 and this one does it once
+ // every
+ // 900
+ .setMachineHeat((int) (getCoilLevel().getHeat() * 2));
}
}.setMaxParallelSupplier(this::getMaxParallelRecipes);
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialArcFurnace.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialArcFurnace.java
index 8ecd7548b7..c27422fb93 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialArcFurnace.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialArcFurnace.java
@@ -44,8 +44,8 @@ import gtPlusPlus.core.util.minecraft.PlayerUtils;
import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.GregtechMeta_MultiBlockBase;
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
-public class GregtechMetaTileEntity_IndustrialArcFurnace extends
- GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialArcFurnace> implements ISurvivalConstructable {
+public class GregtechMetaTileEntity_IndustrialArcFurnace
+ extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialArcFurnace> implements ISurvivalConstructable {
// 862
private static final int mCasingTextureID = TAE.getIndexFromPage(3, 3);
@@ -76,16 +76,26 @@ public class GregtechMetaTileEntity_IndustrialArcFurnace extends
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for Industrial Arc Furnace")
- .addInfo("250% faster than using single block machines of the same voltage")
- .addInfo("Processes 8 items per voltage tier * W/L")
- .addInfo("Right-click controller with a Screwdriver to change modes")
- .addInfo("Max Size required to process Plasma recipes").addPollutionAmount(getPollutionPerSecond(null))
- .addSeparator().addController("Top center").addStructureInfo("Size: nxnx3 [WxHxL] (Hollow)")
- .addStructureInfo("n can be 3, 5 or 7").addCasingInfoMin(mCasingName, 10, false)
- .addInputBus("Any Casing", 1).addOutputBus("Any Casing", 1).addInputHatch("Any Casing", 1)
- .addOutputHatch("Any Casing", 1).addEnergyHatch("Any Casing", 1).addMaintenanceHatch("Any Casing", 1)
- .addMufflerHatch("Any Casing", 1).toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for Industrial Arc Furnace")
+ .addInfo("250% faster than using single block machines of the same voltage")
+ .addInfo("Processes 8 items per voltage tier * W/L")
+ .addInfo("Right-click controller with a Screwdriver to change modes")
+ .addInfo("Max Size required to process Plasma recipes")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .addController("Top center")
+ .addStructureInfo("Size: nxnx3 [WxHxL] (Hollow)")
+ .addStructureInfo("n can be 3, 5 or 7")
+ .addCasingInfoMin(mCasingName, 10, false)
+ .addInputBus("Any Casing", 1)
+ .addOutputBus("Any Casing", 1)
+ .addInputHatch("Any Casing", 1)
+ .addOutputHatch("Any Casing", 1)
+ .addEnergyHatch("Any Casing", 1)
+ .addMaintenanceHatch("Any Casing", 1)
+ .addMufflerHatch("Any Casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -103,34 +113,29 @@ public class GregtechMetaTileEntity_IndustrialArcFurnace extends
public IStructureDefinition<GregtechMetaTileEntity_IndustrialArcFurnace> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_IndustrialArcFurnace>builder()
- .addShape(STRUCTURE_PIECE_FRONT + 1, new String[][] { { "CCC", "C~C", "CCC" } })
- .addShape(
- STRUCTURE_PIECE_FRONT + 2,
- new String[][] { { "CCCCC", "C C", "C C", "C C", "CCCCC" } })
- .addShape(
- STRUCTURE_PIECE_FRONT + 3,
- new String[][] {
- { "CCCCCCC", "C C", "C C", "C C", "C C", "C C", "CCCCCCC" }, })
- .addShape(
- STRUCTURE_PIECE_REST + 1,
- new String[][] { { "CCC", "C-C", "CCC" }, { "CCC", "CCC", "CCC" } })
- .addShape(
- STRUCTURE_PIECE_REST + 2,
- new String[][] { { "CCCCC", "C---C", "C---C", "C---C", "CCCCC" },
- { "CCCCC", "CCCCC", "CCCCC", "CCCCC", "CCCCC" } })
- .addShape(
- STRUCTURE_PIECE_REST + 3,
- new String[][] {
- { "CCCCCCC", "C-----C", "C-----C", "C-----C", "C-----C", "C-----C", "CCCCCCC" },
- { "CCCCCCC", "CCCCCCC", "CCCCCCC", "CCCCCCC", "CCCCCCC", "CCCCCCC", "CCCCCCC" }, })
- .addElement(
- 'C',
- buildHatchAdder(GregtechMetaTileEntity_IndustrialArcFurnace.class)
- .atLeast(InputBus, InputHatch, OutputBus, OutputHatch, Maintenance, Energy, Muffler)
- .casingIndex(getCasingTextureIndex()).dot(1).allowOnly(ForgeDirection.NORTH)
- .buildAndChain(
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings4Misc, 3))))
- .build();
+ .addShape(STRUCTURE_PIECE_FRONT + 1, new String[][] { { "CCC", "C~C", "CCC" } })
+ .addShape(STRUCTURE_PIECE_FRONT + 2, new String[][] { { "CCCCC", "C C", "C C", "C C", "CCCCC" } })
+ .addShape(
+ STRUCTURE_PIECE_FRONT + 3,
+ new String[][] { { "CCCCCCC", "C C", "C C", "C C", "C C", "C C", "CCCCCCC" }, })
+ .addShape(STRUCTURE_PIECE_REST + 1, new String[][] { { "CCC", "C-C", "CCC" }, { "CCC", "CCC", "CCC" } })
+ .addShape(
+ STRUCTURE_PIECE_REST + 2,
+ new String[][] { { "CCCCC", "C---C", "C---C", "C---C", "CCCCC" },
+ { "CCCCC", "CCCCC", "CCCCC", "CCCCC", "CCCCC" } })
+ .addShape(
+ STRUCTURE_PIECE_REST + 3,
+ new String[][] { { "CCCCCCC", "C-----C", "C-----C", "C-----C", "C-----C", "C-----C", "CCCCCCC" },
+ { "CCCCCCC", "CCCCCCC", "CCCCCCC", "CCCCCCC", "CCCCCCC", "CCCCCCC", "CCCCCCC" }, })
+ .addElement(
+ 'C',
+ buildHatchAdder(GregtechMetaTileEntity_IndustrialArcFurnace.class)
+ .atLeast(InputBus, InputHatch, OutputBus, OutputHatch, Maintenance, Energy, Muffler)
+ .casingIndex(getCasingTextureIndex())
+ .dot(1)
+ .allowOnly(ForgeDirection.NORTH)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings4Misc, 3))))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -158,28 +163,28 @@ public class GregtechMetaTileEntity_IndustrialArcFurnace extends
int built;
for (int tier = 1; tier <= maxTier; tier++) {
built = survivialBuildPiece(
- STRUCTURE_PIECE_FRONT + tier,
- stackSize,
- tier,
- tier,
- 0,
- elementBudget,
- env,
- false,
- true);
- if (built >= 0) return built;
- }
-
- return survivialBuildPiece(
- STRUCTURE_PIECE_REST + maxTier,
+ STRUCTURE_PIECE_FRONT + tier,
stackSize,
- maxTier,
- maxTier,
- -1,
+ tier,
+ tier,
+ 0,
elementBudget,
env,
false,
true);
+ if (built >= 0) return built;
+ }
+
+ return survivialBuildPiece(
+ STRUCTURE_PIECE_REST + maxTier,
+ stackSize,
+ maxTier,
+ maxTier,
+ -1,
+ elementBudget,
+ env,
+ false,
+ true);
}
@Override
@@ -236,7 +241,8 @@ public class GregtechMetaTileEntity_IndustrialArcFurnace extends
@Override
protected ProcessingLogic createProcessingLogic() {
- return new ProcessingLogic().setSpeedBonus(1F / 3.5F).setMaxParallelSupplier(this::getMaxParallelRecipes);
+ return new ProcessingLogic().setSpeedBonus(1F / 3.5F)
+ .setMaxParallelSupplier(this::getMaxParallelRecipes);
}
@Override
@@ -277,35 +283,35 @@ public class GregtechMetaTileEntity_IndustrialArcFurnace extends
this.mPlasmaMode = !mPlasmaMode;
if (mPlasmaMode) {
PlayerUtils.messagePlayer(
- aPlayer,
- "[" + EnumChatFormatting.RED
- + "MODE"
- + EnumChatFormatting.RESET
- + "] "
- + EnumChatFormatting.LIGHT_PURPLE
- + "Plasma"
- + EnumChatFormatting.RESET);
+ aPlayer,
+ "[" + EnumChatFormatting.RED
+ + "MODE"
+ + EnumChatFormatting.RESET
+ + "] "
+ + EnumChatFormatting.LIGHT_PURPLE
+ + "Plasma"
+ + EnumChatFormatting.RESET);
} else {
PlayerUtils.messagePlayer(
- aPlayer,
- "[" + EnumChatFormatting.RED
- + "MODE"
- + EnumChatFormatting.RESET
- + "] "
- + EnumChatFormatting.YELLOW
- + "Electric"
- + EnumChatFormatting.RESET);
+ aPlayer,
+ "[" + EnumChatFormatting.RED
+ + "MODE"
+ + EnumChatFormatting.RESET
+ + "] "
+ + EnumChatFormatting.YELLOW
+ + "Electric"
+ + EnumChatFormatting.RESET);
}
} else {
PlayerUtils.messagePlayer(
- aPlayer,
- "[" + EnumChatFormatting.RED
- + "MODE"
- + EnumChatFormatting.RESET
- + "] "
- + EnumChatFormatting.GRAY
- + "Cannot change mode, structure not large enough."
- + EnumChatFormatting.RESET);
+ aPlayer,
+ "[" + EnumChatFormatting.RED
+ + "MODE"
+ + EnumChatFormatting.RESET
+ + "] "
+ + EnumChatFormatting.GRAY
+ + "Cannot change mode, structure not large enough."
+ + EnumChatFormatting.RESET);
}
mLastRecipe = null;
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialCentrifuge.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialCentrifuge.java
index acb69536f2..c04620d4b4 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialCentrifuge.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialCentrifuge.java
@@ -39,8 +39,8 @@ import gtPlusPlus.core.util.minecraft.PlayerUtils;
import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.GregtechMeta_MultiBlockBase;
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock.CustomIcon;
-public class GregtechMetaTileEntity_IndustrialCentrifuge extends
- GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialCentrifuge> implements ISurvivalConstructable {
+public class GregtechMetaTileEntity_IndustrialCentrifuge
+ extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialCentrifuge> implements ISurvivalConstructable {
private boolean mIsAnimated;
private static final CustomIcon frontFaceActive = new CustomIcon("iconsets/LARGECENTRIFUGE_ACTIVE5");
@@ -72,15 +72,25 @@ public class GregtechMetaTileEntity_IndustrialCentrifuge extends
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for the Industrial Centrifuge")
- .addInfo("125% faster than using single block machines of the same voltage")
- .addInfo("Disable animations with a screwdriver").addInfo("Only uses 90% of the EU/t normally required")
- .addInfo("Processes six items per voltage tier").addPollutionAmount(getPollutionPerSecond(null))
- .addSeparator().beginStructureBlock(3, 3, 3, true).addController("Front Center")
- .addCasingInfoMin("Centrifuge Casings", 6, false).addInputBus("Any Casing", 1)
- .addOutputBus("Any Casing", 1).addInputHatch("Any Casing", 1).addOutputHatch("Any Casing", 1)
- .addEnergyHatch("Any Casing", 1).addMaintenanceHatch("Any Casing", 1).addMufflerHatch("Any Casing", 1)
- .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for the Industrial Centrifuge")
+ .addInfo("125% faster than using single block machines of the same voltage")
+ .addInfo("Disable animations with a screwdriver")
+ .addInfo("Only uses 90% of the EU/t normally required")
+ .addInfo("Processes six items per voltage tier")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(3, 3, 3, true)
+ .addController("Front Center")
+ .addCasingInfoMin("Centrifuge Casings", 6, false)
+ .addInputBus("Any Casing", 1)
+ .addOutputBus("Any Casing", 1)
+ .addInputHatch("Any Casing", 1)
+ .addOutputHatch("Any Casing", 1)
+ .addEnergyHatch("Any Casing", 1)
+ .addMaintenanceHatch("Any Casing", 1)
+ .addMufflerHatch("Any Casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -88,18 +98,18 @@ public class GregtechMetaTileEntity_IndustrialCentrifuge extends
public IStructureDefinition<GregtechMetaTileEntity_IndustrialCentrifuge> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_IndustrialCentrifuge>builder()
- .addShape(
- mName,
- transpose(
- new String[][] { { "CCC", "CCC", "CCC" }, { "C~C", "C-C", "CCC" },
- { "CCC", "CCC", "CCC" }, }))
- .addElement(
- 'C',
- buildHatchAdder(GregtechMetaTileEntity_IndustrialCentrifuge.class)
- .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler, InputHatch, OutputHatch)
- .casingIndex(getCasingTextureIndex()).dot(1).buildAndChain(
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasingsMisc, 0))))
- .build();
+ .addShape(
+ mName,
+ transpose(
+ new String[][] { { "CCC", "CCC", "CCC" }, { "C~C", "C-C", "CCC" }, { "CCC", "CCC", "CCC" }, }))
+ .addElement(
+ 'C',
+ buildHatchAdder(GregtechMetaTileEntity_IndustrialCentrifuge.class)
+ .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler, InputHatch, OutputHatch)
+ .casingIndex(getCasingTextureIndex())
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasingsMisc, 0))))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -147,8 +157,9 @@ public class GregtechMetaTileEntity_IndustrialCentrifuge extends
@Override
protected ProcessingLogic createProcessingLogic() {
- return new ProcessingLogic().setEuModifier(0.9F).setSpeedBonus(1F / 2.25F)
- .setMaxParallelSupplier(this::getMaxParallelRecipes);
+ return new ProcessingLogic().setEuModifier(0.9F)
+ .setSpeedBonus(1F / 2.25F)
+ .setMaxParallelSupplier(this::getMaxParallelRecipes);
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialChisel.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialChisel.java
index f7c91835e9..a9f18dfce8 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialChisel.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialChisel.java
@@ -46,7 +46,7 @@ import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
import team.chisel.carving.Carving;
public class GregtechMetaTileEntity_IndustrialChisel
- extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialChisel> implements ISurvivalConstructable {
+ extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialChisel> implements ISurvivalConstructable {
private int mCasing;
@@ -77,40 +77,48 @@ public class GregtechMetaTileEntity_IndustrialChisel
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Factory Grade Auto Chisel")
- .addInfo("Target block goes in Controller slot for common Input Buses")
- .addInfo("You can also set a target block in each Chisel Input Bus and use them as an Input Bus")
- .addInfo("If no target is provided for common buses, the result of the first chisel is used")
- .addInfo("Speed: +200% | EU Usage: 75% | Parallel: Tier x 16")
- .addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(3, 3, 3, true)
- .addController("Front center").addCasingInfoMin("Sturdy Printer Casing", 6, false)
- .addInputBus("Any casing", 1).addOutputBus("Any casing", 1).addEnergyHatch("Any casing", 1)
- .addMaintenanceHatch("Any casing", 1).addMufflerHatch("Any casing", 1)
- .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Factory Grade Auto Chisel")
+ .addInfo("Target block goes in Controller slot for common Input Buses")
+ .addInfo("You can also set a target block in each Chisel Input Bus and use them as an Input Bus")
+ .addInfo("If no target is provided for common buses, the result of the first chisel is used")
+ .addInfo("Speed: +200% | EU Usage: 75% | Parallel: Tier x 16")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(3, 3, 3, true)
+ .addController("Front center")
+ .addCasingInfoMin("Sturdy Printer Casing", 6, false)
+ .addInputBus("Any casing", 1)
+ .addOutputBus("Any casing", 1)
+ .addEnergyHatch("Any casing", 1)
+ .addMaintenanceHatch("Any casing", 1)
+ .addMufflerHatch("Any casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@Override
public IStructureDefinition<GregtechMetaTileEntity_IndustrialChisel> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
- STRUCTURE_DEFINITION = StructureDefinition
- .<GregtechMetaTileEntity_IndustrialChisel>builder().addShape(
- mName,
- transpose(
- // spotless:off
+ STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_IndustrialChisel>builder()
+ .addShape(
+ mName,
+ transpose(
+ // spotless:off
new String[][] {
{ "CCC", "CCC", "CCC" },
{ "C~C", "C-C", "CCC" },
{ "CCC", "CCC", "CCC" },
}))
// spotless:on
- .addElement(
- 'C',
- buildHatchAdder(GregtechMetaTileEntity_IndustrialChisel.class)
- .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler).casingIndex(90).dot(1)
- .buildAndChain(
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings5Misc, 5))))
- .build();
+ .addElement(
+ 'C',
+ buildHatchAdder(GregtechMetaTileEntity_IndustrialChisel.class)
+ .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler)
+ .casingIndex(90)
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings5Misc, 5))))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -155,7 +163,7 @@ public class GregtechMetaTileEntity_IndustrialChisel
private boolean hasValidCache(ItemStack aStack, ItemStack aSpecialSlot, boolean aClearOnFailure) {
if (mInputCache != null && mOutputCache != null && mCachedRecipe != null) {
if (GT_Utility.areStacksEqual(aStack, mInputCache)
- && GT_Utility.areStacksEqual(aSpecialSlot, mOutputCache)) {
+ && GT_Utility.areStacksEqual(aSpecialSlot, mOutputCache)) {
return true;
}
}
@@ -213,21 +221,21 @@ public class GregtechMetaTileEntity_IndustrialChisel
ItemStack tOutput = tIsCached ? mOutputCache.copy() : getChiselOutput(aInput, this.target);
if (tOutput != null) {
if (mCachedRecipe != null && GT_Utility.areStacksEqual(aInput, mInputCache)
- && GT_Utility.areStacksEqual(tOutput, mOutputCache)) {
+ && GT_Utility.areStacksEqual(tOutput, mOutputCache)) {
return mCachedRecipe;
}
// We can chisel this
GT_Recipe aRecipe = new GT_Recipe(
- false,
- new ItemStack[] { ItemUtils.getSimpleStack(aInput, 1) },
- new ItemStack[] { ItemUtils.getSimpleStack(tOutput, 1) },
- null,
- new int[] { 10000 },
- new FluidStack[] {},
- new FluidStack[] {},
- 20,
- 16,
- 0);
+ false,
+ new ItemStack[] { ItemUtils.getSimpleStack(aInput, 1) },
+ new ItemStack[] { ItemUtils.getSimpleStack(tOutput, 1) },
+ null,
+ new int[] { 10000 },
+ new FluidStack[] {},
+ new FluidStack[] {},
+ 20,
+ 16,
+ 0);
// Cache it
cacheItem(aInput, tOutput, aRecipe);
@@ -278,7 +286,9 @@ public class GregtechMetaTileEntity_IndustrialChisel
protected Stream<GT_Recipe> findRecipeMatches(@Nullable RecipeMap<?> map) {
return GT_StreamUtil.ofNullable(getRecipe());
}
- }.setSpeedBonus(1F / 3F).setEuModifier(0.75F).setMaxParallelSupplier(this::getMaxParallelRecipes);
+ }.setSpeedBonus(1F / 3F)
+ .setEuModifier(0.75F)
+ .setMaxParallelSupplier(this::getMaxParallelRecipes);
}
@Override
@@ -304,9 +314,9 @@ public class GregtechMetaTileEntity_IndustrialChisel
public void doSound(byte aIndex, double aX, double aY, double aZ) {
switch (aIndex) {
case PROCESS_START_SOUND_INDEX -> GT_Utility
- .doSoundAtClient(getChiselSound(), getTimeBetweenProcessSounds(), 1.0F, 1.0F, aX, aY, aZ);
+ .doSoundAtClient(getChiselSound(), getTimeBetweenProcessSounds(), 1.0F, 1.0F, aX, aY, aZ);
case INTERRUPT_SOUND_INDEX -> GT_Utility
- .doSoundAtClient(SoundResource.IC2_MACHINES_INTERRUPT_ONE, 100, 1.0F, aX, aY, aZ);
+ .doSoundAtClient(SoundResource.IC2_MACHINES_INTERRUPT_ONE, 100, 1.0F, aX, aY, aZ);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialCokeOven.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialCokeOven.java
index 2b5f90a5ca..b71600e3fd 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialCokeOven.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialCokeOven.java
@@ -35,8 +35,8 @@ import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.GregtechMeta_MultiBlockBase;
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
-public class GregtechMetaTileEntity_IndustrialCokeOven extends
- GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialCokeOven> implements ISurvivalConstructable {
+public class GregtechMetaTileEntity_IndustrialCokeOven
+ extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialCokeOven> implements ISurvivalConstructable {
private int mLevel = 0;
private int mCasing;
@@ -65,20 +65,26 @@ public class GregtechMetaTileEntity_IndustrialCokeOven extends
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Processes Logs and Coal into Charcoal and Coal Coke.")
- .addInfo("Controller Block for the Industrial Coke Oven")
- .addInfo("Gain 4% energy discount per voltage tier")
- .addInfo("Process 12x materials with Heat Resistant Casings")
- .addInfo("Or 24x materials with Heat Proof Casings").addPollutionAmount(getPollutionPerSecond(null))
- .addSeparator().beginStructureBlock(3, 3, 3, true).addController("Front middle at bottom")
- .addCasingInfoMin("Structural Coke Oven Casings", 8, false)
- .addCasingInfoMin("Heat Resistant/Proof Coke Oven Casings", 8, false)
- .addInputBus("Any Structural Coke Oven Casing", 1).addOutputBus("Any Structural Coke Oven Casing", 1)
- .addInputHatch("Any Structural Coke Oven Casing", 1)
- .addOutputHatch("Any Structural Coke Oven Casing", 1)
- .addEnergyHatch("Any Structural Coke Oven Casing", 1)
- .addMaintenanceHatch("Any Structural Coke Oven Casing", 1)
- .addMufflerHatch("Any Structural Coke Oven Casing", 1).toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Processes Logs and Coal into Charcoal and Coal Coke.")
+ .addInfo("Controller Block for the Industrial Coke Oven")
+ .addInfo("Gain 4% energy discount per voltage tier")
+ .addInfo("Process 12x materials with Heat Resistant Casings")
+ .addInfo("Or 24x materials with Heat Proof Casings")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(3, 3, 3, true)
+ .addController("Front middle at bottom")
+ .addCasingInfoMin("Structural Coke Oven Casings", 8, false)
+ .addCasingInfoMin("Heat Resistant/Proof Coke Oven Casings", 8, false)
+ .addInputBus("Any Structural Coke Oven Casing", 1)
+ .addOutputBus("Any Structural Coke Oven Casing", 1)
+ .addInputHatch("Any Structural Coke Oven Casing", 1)
+ .addOutputHatch("Any Structural Coke Oven Casing", 1)
+ .addEnergyHatch("Any Structural Coke Oven Casing", 1)
+ .addMaintenanceHatch("Any Structural Coke Oven Casing", 1)
+ .addMufflerHatch("Any Structural Coke Oven Casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -86,34 +92,33 @@ public class GregtechMetaTileEntity_IndustrialCokeOven extends
public IStructureDefinition<GregtechMetaTileEntity_IndustrialCokeOven> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_IndustrialCokeOven>builder()
- .addShape(
- mName,
- transpose(
- new String[][] { { "CCC", "CCC", "CCC" }, { "HHH", "H-H", "HHH" },
- { "C~C", "CCC", "CCC" }, }))
- .addShape(
- mName + "1",
- transpose(
- new String[][] { { "CCC", "CCC", "CCC" }, { "aaa", "a-a", "aaa" },
- { "C~C", "CCC", "CCC" }, }))
- .addShape(
- mName + "2",
- transpose(
- new String[][] { { "CCC", "CCC", "CCC" }, { "bbb", "b-b", "bbb" },
- { "C~C", "CCC", "CCC" }, }))
- .addElement(
- 'C',
- buildHatchAdder(GregtechMetaTileEntity_IndustrialCokeOven.class)
- .atLeast(InputBus, OutputBus, InputHatch, OutputHatch, Maintenance, Energy, Muffler)
- .casingIndex(TAE.GTPP_INDEX(1)).dot(1).buildAndChain(
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasingsMisc, 1))))
- .addElement(
- 'H',
- ofChain(
- onElementPass(x -> ++x.mCasing1, ofBlock(ModBlocks.blockCasingsMisc, 2)),
- onElementPass(x -> ++x.mCasing2, ofBlock(ModBlocks.blockCasingsMisc, 3))))
- .addElement('a', ofBlock(ModBlocks.blockCasingsMisc, 2))
- .addElement('b', ofBlock(ModBlocks.blockCasingsMisc, 3)).build();
+ .addShape(
+ mName,
+ transpose(
+ new String[][] { { "CCC", "CCC", "CCC" }, { "HHH", "H-H", "HHH" }, { "C~C", "CCC", "CCC" }, }))
+ .addShape(
+ mName + "1",
+ transpose(
+ new String[][] { { "CCC", "CCC", "CCC" }, { "aaa", "a-a", "aaa" }, { "C~C", "CCC", "CCC" }, }))
+ .addShape(
+ mName + "2",
+ transpose(
+ new String[][] { { "CCC", "CCC", "CCC" }, { "bbb", "b-b", "bbb" }, { "C~C", "CCC", "CCC" }, }))
+ .addElement(
+ 'C',
+ buildHatchAdder(GregtechMetaTileEntity_IndustrialCokeOven.class)
+ .atLeast(InputBus, OutputBus, InputHatch, OutputHatch, Maintenance, Energy, Muffler)
+ .casingIndex(TAE.GTPP_INDEX(1))
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasingsMisc, 1))))
+ .addElement(
+ 'H',
+ ofChain(
+ onElementPass(x -> ++x.mCasing1, ofBlock(ModBlocks.blockCasingsMisc, 2)),
+ onElementPass(x -> ++x.mCasing2, ofBlock(ModBlocks.blockCasingsMisc, 3))))
+ .addElement('a', ofBlock(ModBlocks.blockCasingsMisc, 2))
+ .addElement('b', ofBlock(ModBlocks.blockCasingsMisc, 3))
+ .build();
}
return STRUCTURE_DEFINITION;
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialCuttingMachine.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialCuttingMachine.java
index e729b23ac1..295f195d55 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialCuttingMachine.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialCuttingMachine.java
@@ -43,14 +43,14 @@ import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.Gregtech
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
public class GregtechMetaTileEntity_IndustrialCuttingMachine extends
- GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialCuttingMachine> implements ISurvivalConstructable {
+ GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialCuttingMachine> implements ISurvivalConstructable {
private boolean mCuttingMode = true;
private int mCasing;
private static IStructureDefinition<GregtechMetaTileEntity_IndustrialCuttingMachine> STRUCTURE_DEFINITION = null;
public GregtechMetaTileEntity_IndustrialCuttingMachine(final int aID, final String aName,
- final String aNameRegional) {
+ final String aNameRegional) {
super(aID, aName, aNameRegional);
}
@@ -71,14 +71,23 @@ public class GregtechMetaTileEntity_IndustrialCuttingMachine extends
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for the Industrial Cutting Factory")
- .addInfo("200% faster than using single block machines of the same voltage")
- .addInfo("Only uses 75% of the EU/t normally required").addInfo("Processes four items per voltage tier")
- .addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(3, 3, 5, true)
- .addController("Front Center").addCasingInfoMin("Cutting Factory Frames", 14, false)
- .addInputBus("Any Casing", 1).addOutputBus("Any Casing", 1).addInputHatch("Any Casing", 1)
- .addEnergyHatch("Any Casing", 1).addMaintenanceHatch("Any Casing", 1).addMufflerHatch("Any Casing", 1)
- .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for the Industrial Cutting Factory")
+ .addInfo("200% faster than using single block machines of the same voltage")
+ .addInfo("Only uses 75% of the EU/t normally required")
+ .addInfo("Processes four items per voltage tier")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(3, 3, 5, true)
+ .addController("Front Center")
+ .addCasingInfoMin("Cutting Factory Frames", 14, false)
+ .addInputBus("Any Casing", 1)
+ .addOutputBus("Any Casing", 1)
+ .addInputHatch("Any Casing", 1)
+ .addEnergyHatch("Any Casing", 1)
+ .addMaintenanceHatch("Any Casing", 1)
+ .addMufflerHatch("Any Casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -86,19 +95,19 @@ public class GregtechMetaTileEntity_IndustrialCuttingMachine extends
public IStructureDefinition<GregtechMetaTileEntity_IndustrialCuttingMachine> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_IndustrialCuttingMachine>builder()
- .addShape(
- mName,
- transpose(
- new String[][] { { "CCC", "CCC", "CCC", "CCC", "CCC" },
- { "C~C", "C-C", "C-C", "C-C", "CCC" },
- { "CCC", "CCC", "CCC", "CCC", "CCC" }, }))
- .addElement(
- 'C',
- buildHatchAdder(GregtechMetaTileEntity_IndustrialCuttingMachine.class)
- .atLeast(InputBus, InputHatch, OutputBus, Maintenance, Energy, Muffler)
- .casingIndex(getCasingTextureIndex()).dot(1).buildAndChain(
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings2Misc, 13))))
- .build();
+ .addShape(
+ mName,
+ transpose(
+ new String[][] { { "CCC", "CCC", "CCC", "CCC", "CCC" }, { "C~C", "C-C", "C-C", "C-C", "CCC" },
+ { "CCC", "CCC", "CCC", "CCC", "CCC" }, }))
+ .addElement(
+ 'C',
+ buildHatchAdder(GregtechMetaTileEntity_IndustrialCuttingMachine.class)
+ .atLeast(InputBus, InputHatch, OutputBus, Maintenance, Energy, Muffler)
+ .casingIndex(getCasingTextureIndex())
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings2Misc, 13))))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -153,8 +162,9 @@ public class GregtechMetaTileEntity_IndustrialCuttingMachine extends
@Override
protected ProcessingLogic createProcessingLogic() {
- return new ProcessingLogic().setSpeedBonus(1F / 3F).setEuModifier(0.75F)
- .setMaxParallelSupplier(this::getMaxParallelRecipes);
+ return new ProcessingLogic().setSpeedBonus(1F / 3F)
+ .setEuModifier(0.75F)
+ .setMaxParallelSupplier(this::getMaxParallelRecipes);
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialDehydrator.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialDehydrator.java
index 318b8cdac2..9122090f89 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialDehydrator.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialDehydrator.java
@@ -49,8 +49,8 @@ import gtPlusPlus.core.util.minecraft.PlayerUtils;
import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.GregtechMeta_MultiBlockBase;
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
-public class GregtechMetaTileEntity_IndustrialDehydrator extends
- GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialDehydrator> implements ISurvivalConstructable {
+public class GregtechMetaTileEntity_IndustrialDehydrator
+ extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialDehydrator> implements ISurvivalConstructable {
private static int CASING_TEXTURE_ID;
private static String mCasingName = "Vacuum Casing";
@@ -77,41 +77,52 @@ public class GregtechMetaTileEntity_IndustrialDehydrator extends
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Factory Grade Vacuum Furnace")
- .addInfo("Can toggle the operation temperature with a Screwdriver")
- .addInfo("All Dehydrator recipes are Low Temp recipes")
- .addInfo("Speed: +120% | EU Usage: 50% | Parallel: 4")
- .addInfo("Each 900K over the min. Heat Capacity grants 5% speedup (multiplicatively)")
- .addInfo("Each 1800K over the min. Heat Capacity allows for one upgraded overclock")
- .addInfo("Upgraded overclocks reduce recipe time to 25% and increase EU/t to 400%")
- .addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(3, 5, 3, true)
- .addController("Bottom Center").addCasingInfoMin(mCasingName, 5, false).addInputBus("Any Casing", 1)
- .addOutputBus("Any Casing", 1).addInputHatch("Any Casing", 1).addOutputHatch("Any Casing", 1)
- .addEnergyHatch("Any Casing", 1).addMaintenanceHatch("Any Casing", 1).addMufflerHatch("Any Casing", 1)
- .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Factory Grade Vacuum Furnace")
+ .addInfo("Can toggle the operation temperature with a Screwdriver")
+ .addInfo("All Dehydrator recipes are Low Temp recipes")
+ .addInfo("Speed: +120% | EU Usage: 50% | Parallel: 4")
+ .addInfo("Each 900K over the min. Heat Capacity grants 5% speedup (multiplicatively)")
+ .addInfo("Each 1800K over the min. Heat Capacity allows for one upgraded overclock")
+ .addInfo("Upgraded overclocks reduce recipe time to 25% and increase EU/t to 400%")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(3, 5, 3, true)
+ .addController("Bottom Center")
+ .addCasingInfoMin(mCasingName, 5, false)
+ .addInputBus("Any Casing", 1)
+ .addOutputBus("Any Casing", 1)
+ .addInputHatch("Any Casing", 1)
+ .addOutputHatch("Any Casing", 1)
+ .addEnergyHatch("Any Casing", 1)
+ .addMaintenanceHatch("Any Casing", 1)
+ .addMufflerHatch("Any Casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@Override
public IStructureDefinition<GregtechMetaTileEntity_IndustrialDehydrator> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
- STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_IndustrialDehydrator>builder().addShape(
+ STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_IndustrialDehydrator>builder()
+ .addShape(
mName,
transpose(
- new String[][] { { "CCC", "CCC", "CCC" }, { "HHH", "H-H", "HHH" }, { "HHH", "H-H", "HHH" },
- { "HHH", "H-H", "HHH" }, { "C~C", "CCC", "CCC" }, }))
- .addElement(
- 'C',
- buildHatchAdder(GregtechMetaTileEntity_IndustrialDehydrator.class)
- .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler, InputHatch, OutputHatch)
- .casingIndex(CASING_TEXTURE_ID).dot(1).buildAndChain(
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings4Misc, 10))))
- .addElement(
- 'H',
- ofCoil(
- GregtechMetaTileEntity_IndustrialDehydrator::setCoilLevel,
- GregtechMetaTileEntity_IndustrialDehydrator::getCoilLevel))
- .build();
+ new String[][] { { "CCC", "CCC", "CCC" }, { "HHH", "H-H", "HHH" }, { "HHH", "H-H", "HHH" },
+ { "HHH", "H-H", "HHH" }, { "C~C", "CCC", "CCC" }, }))
+ .addElement(
+ 'C',
+ buildHatchAdder(GregtechMetaTileEntity_IndustrialDehydrator.class)
+ .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler, InputHatch, OutputHatch)
+ .casingIndex(CASING_TEXTURE_ID)
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings4Misc, 10))))
+ .addElement(
+ 'H',
+ ofCoil(
+ GregtechMetaTileEntity_IndustrialDehydrator::setCoilLevel,
+ GregtechMetaTileEntity_IndustrialDehydrator::getCoilLevel))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -193,16 +204,20 @@ public class GregtechMetaTileEntity_IndustrialDehydrator extends
@Override
protected CheckRecipeResult validateRecipe(@NotNull GT_Recipe recipe) {
return recipe.mSpecialValue <= getCoilLevel().getHeat() ? CheckRecipeResultRegistry.SUCCESSFUL
- : CheckRecipeResultRegistry.insufficientHeat(recipe.mSpecialValue);
+ : CheckRecipeResultRegistry.insufficientHeat(recipe.mSpecialValue);
}
@NotNull
@Override
protected GT_OverclockCalculator createOverclockCalculator(@NotNull GT_Recipe recipe) {
- return super.createOverclockCalculator(recipe).setHeatOC(true).setHeatDiscount(true)
- .setRecipeHeat(recipe.mSpecialValue).setMachineHeat((int) getCoilLevel().getHeat());
+ return super.createOverclockCalculator(recipe).setHeatOC(true)
+ .setHeatDiscount(true)
+ .setRecipeHeat(recipe.mSpecialValue)
+ .setMachineHeat((int) getCoilLevel().getHeat());
}
- }.setSpeedBonus(1F / 2.2F).setEuModifier(0.5F).setMaxParallelSupplier(this::getMaxParallelRecipes);
+ }.setSpeedBonus(1F / 2.2F)
+ .setEuModifier(0.5F)
+ .setMaxParallelSupplier(this::getMaxParallelRecipes);
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialElectrolyzer.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialElectrolyzer.java
index 0092f43c21..f12007b952 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialElectrolyzer.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialElectrolyzer.java
@@ -34,13 +34,13 @@ import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.Gregtech
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
public class GregtechMetaTileEntity_IndustrialElectrolyzer extends
- GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialElectrolyzer> implements ISurvivalConstructable {
+ GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialElectrolyzer> implements ISurvivalConstructable {
private int mCasing;
private static IStructureDefinition<GregtechMetaTileEntity_IndustrialElectrolyzer> STRUCTURE_DEFINITION = null;
public GregtechMetaTileEntity_IndustrialElectrolyzer(final int aID, final String aName,
- final String aNameRegional) {
+ final String aNameRegional) {
super(aID, aName, aNameRegional);
}
@@ -61,14 +61,24 @@ public class GregtechMetaTileEntity_IndustrialElectrolyzer extends
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for the Industrial Electrolyzer")
- .addInfo("180% faster than using single block machines of the same voltage")
- .addInfo("Only uses 90% of the EU/t normally required").addInfo("Processes two items per voltage tier")
- .addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(3, 3, 3, true)
- .addController("Front Center").addCasingInfoMin("Electrolyzer Casings", 6, false)
- .addInputBus("Any Casing", 1).addOutputBus("Any Casing", 1).addInputHatch("Any Casing", 1)
- .addOutputHatch("Any Casing", 1).addEnergyHatch("Any Casing", 1).addMaintenanceHatch("Any Casing", 1)
- .addMufflerHatch("Any Casing", 1).toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for the Industrial Electrolyzer")
+ .addInfo("180% faster than using single block machines of the same voltage")
+ .addInfo("Only uses 90% of the EU/t normally required")
+ .addInfo("Processes two items per voltage tier")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(3, 3, 3, true)
+ .addController("Front Center")
+ .addCasingInfoMin("Electrolyzer Casings", 6, false)
+ .addInputBus("Any Casing", 1)
+ .addOutputBus("Any Casing", 1)
+ .addInputHatch("Any Casing", 1)
+ .addOutputHatch("Any Casing", 1)
+ .addEnergyHatch("Any Casing", 1)
+ .addMaintenanceHatch("Any Casing", 1)
+ .addMufflerHatch("Any Casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -76,18 +86,18 @@ public class GregtechMetaTileEntity_IndustrialElectrolyzer extends
public IStructureDefinition<GregtechMetaTileEntity_IndustrialElectrolyzer> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_IndustrialElectrolyzer>builder()
- .addShape(
- mName,
- transpose(
- new String[][] { { "CCC", "CCC", "CCC" }, { "C~C", "C-C", "CCC" },
- { "CCC", "CCC", "CCC" }, }))
- .addElement(
- 'C',
- buildHatchAdder(GregtechMetaTileEntity_IndustrialElectrolyzer.class)
- .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler, InputHatch, OutputHatch)
- .casingIndex(TAE.GTPP_INDEX(5)).dot(1).buildAndChain(
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasingsMisc, 5))))
- .build();
+ .addShape(
+ mName,
+ transpose(
+ new String[][] { { "CCC", "CCC", "CCC" }, { "C~C", "C-C", "CCC" }, { "CCC", "CCC", "CCC" }, }))
+ .addElement(
+ 'C',
+ buildHatchAdder(GregtechMetaTileEntity_IndustrialElectrolyzer.class)
+ .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler, InputHatch, OutputHatch)
+ .casingIndex(TAE.GTPP_INDEX(5))
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasingsMisc, 5))))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -131,8 +141,9 @@ public class GregtechMetaTileEntity_IndustrialElectrolyzer extends
@Override
protected ProcessingLogic createProcessingLogic() {
- return new ProcessingLogic().setSpeedBonus(1F / 2.8F).setEuModifier(0.9F)
- .setMaxParallelSupplier(this::getMaxParallelRecipes);
+ return new ProcessingLogic().setSpeedBonus(1F / 2.8F)
+ .setEuModifier(0.9F)
+ .setMaxParallelSupplier(this::getMaxParallelRecipes);
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialExtruder.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialExtruder.java
index 149d1a8017..ea61048f33 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialExtruder.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialExtruder.java
@@ -33,8 +33,8 @@ import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.GregtechMeta_MultiBlockBase;
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
-public class GregtechMetaTileEntity_IndustrialExtruder extends
- GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialExtruder> implements ISurvivalConstructable {
+public class GregtechMetaTileEntity_IndustrialExtruder
+ extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialExtruder> implements ISurvivalConstructable {
private int mCasing;
private static IStructureDefinition<GregtechMetaTileEntity_IndustrialExtruder> STRUCTURE_DEFINITION = null;
@@ -60,37 +60,44 @@ public class GregtechMetaTileEntity_IndustrialExtruder extends
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for the Material Extruder")
- .addInfo("250% faster than using single block machines of the same voltage")
- .addInfo("Processes four items per voltage tier")
- .addInfo("Extrusion Shape for recipe goes in the Input Bus")
- .addInfo("Each Input Bus can have a different shape!")
- .addInfo("You can use several input buses per multiblock")
- .addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(3, 3, 5, true)
- .addController("Front Center").addCasingInfoMin("Inconel Reinforced Casings", 14, false)
- .addInputBus("Any Casing", 1).addOutputBus("Any Casing", 1).addEnergyHatch("Any Casing", 1)
- .addMaintenanceHatch("Any Casing", 1).addMufflerHatch("Any Casing", 1)
- .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for the Material Extruder")
+ .addInfo("250% faster than using single block machines of the same voltage")
+ .addInfo("Processes four items per voltage tier")
+ .addInfo("Extrusion Shape for recipe goes in the Input Bus")
+ .addInfo("Each Input Bus can have a different shape!")
+ .addInfo("You can use several input buses per multiblock")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(3, 3, 5, true)
+ .addController("Front Center")
+ .addCasingInfoMin("Inconel Reinforced Casings", 14, false)
+ .addInputBus("Any Casing", 1)
+ .addOutputBus("Any Casing", 1)
+ .addEnergyHatch("Any Casing", 1)
+ .addMaintenanceHatch("Any Casing", 1)
+ .addMufflerHatch("Any Casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@Override
public IStructureDefinition<GregtechMetaTileEntity_IndustrialExtruder> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
- STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_IndustrialExtruder>builder().addShape(
+ STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_IndustrialExtruder>builder()
+ .addShape(
mName,
transpose(
- new String[][] { { "CCC", "CCC", "CCC", "CCC", "CCC" },
- { "C~C", "C-C", "C-C", "C-C", "CCC" }, { "CCC", "CCC", "CCC", "CCC", "CCC" }, }))
- .addElement(
- 'C',
- buildHatchAdder(GregtechMetaTileEntity_IndustrialExtruder.class)
- .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler)
- .casingIndex(getCasingTextureIndex()).dot(1).buildAndChain(
- onElementPass(
- x -> ++x.mCasing,
- ofBlock(getCasingBlock(), getCasingMeta()))))
- .build();
+ new String[][] { { "CCC", "CCC", "CCC", "CCC", "CCC" }, { "C~C", "C-C", "C-C", "C-C", "CCC" },
+ { "CCC", "CCC", "CCC", "CCC", "CCC" }, }))
+ .addElement(
+ 'C',
+ buildHatchAdder(GregtechMetaTileEntity_IndustrialExtruder.class)
+ .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler)
+ .casingIndex(getCasingTextureIndex())
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(getCasingBlock(), getCasingMeta()))))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -144,7 +151,8 @@ public class GregtechMetaTileEntity_IndustrialExtruder extends
@Override
protected ProcessingLogic createProcessingLogic() {
- return new ProcessingLogic().setSpeedBonus(1F / 3.5F).setMaxParallelSupplier(this::getMaxParallelRecipes);
+ return new ProcessingLogic().setSpeedBonus(1F / 3.5F)
+ .setMaxParallelSupplier(this::getMaxParallelRecipes);
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialFluidHeater.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialFluidHeater.java
index 94c950ba50..a34532ee83 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialFluidHeater.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialFluidHeater.java
@@ -35,7 +35,7 @@ import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.Gregtech
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
public class GregtechMetaTileEntity_IndustrialFluidHeater extends
- GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialFluidHeater> implements ISurvivalConstructable {
+ GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialFluidHeater> implements ISurvivalConstructable {
private int mCasing1;
private static IStructureDefinition<GregtechMetaTileEntity_IndustrialFluidHeater> STRUCTURE_DEFINITION = null;
@@ -61,17 +61,25 @@ public class GregtechMetaTileEntity_IndustrialFluidHeater extends
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for the Industrial Fluid Heater")
- .addInfo("120% faster than using single block machines of the same voltage")
- .addInfo("Only uses 90% of the EU/t normally required")
- .addInfo("Processes eight items per voltage tier").addPollutionAmount(getPollutionPerSecond(null))
- .addSeparator().beginStructureBlock(5, 6, 5, true).addController("Front Center")
- .addCasingInfoMin("Top/Bottom layer: Multi-use Casings", 34, false)
- .addCasingInfoMin("Middle layers: Thermal Containment Casing", 47, false)
- .addInputBus("Bottom Layer (optional)", 1).addInputHatch("Bottom Layer", 1)
- .addOutputBus("Top Layer (optional)", 1).addOutputHatch("Top Layer", 1)
- .addEnergyHatch("Any Multi-use Casing", 1).addMaintenanceHatch("Any Multi-use Casing", 1)
- .addMufflerHatch("Any Multi-use Casing", 1).toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for the Industrial Fluid Heater")
+ .addInfo("120% faster than using single block machines of the same voltage")
+ .addInfo("Only uses 90% of the EU/t normally required")
+ .addInfo("Processes eight items per voltage tier")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(5, 6, 5, true)
+ .addController("Front Center")
+ .addCasingInfoMin("Top/Bottom layer: Multi-use Casings", 34, false)
+ .addCasingInfoMin("Middle layers: Thermal Containment Casing", 47, false)
+ .addInputBus("Bottom Layer (optional)", 1)
+ .addInputHatch("Bottom Layer", 1)
+ .addOutputBus("Top Layer (optional)", 1)
+ .addOutputHatch("Top Layer", 1)
+ .addEnergyHatch("Any Multi-use Casing", 1)
+ .addMaintenanceHatch("Any Multi-use Casing", 1)
+ .addMufflerHatch("Any Multi-use Casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -79,33 +87,31 @@ public class GregtechMetaTileEntity_IndustrialFluidHeater extends
public IStructureDefinition<GregtechMetaTileEntity_IndustrialFluidHeater> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_IndustrialFluidHeater>builder()
- .addShape(
- mName,
- transpose(
- new String[][] { { " TTT ", "TTTTT", "TTTTT", "TTTTT", " TTT " },
- { " XXX ", "X---X", "X---X", "X---X", " XXX " },
- { " XXX ", "X---X", "X---X", "X---X", " XXX " },
- { " XXX ", "X---X", "X---X", "X---X", " XXX " },
- { " X~X ", "X---X", "X---X", "X---X", " XXX " },
- { " BBB ", "BBBBB", "BBBBB", "BBBBB", " BBB " }, }))
- .addElement(
- 'B',
- buildHatchAdder(GregtechMetaTileEntity_IndustrialFluidHeater.class)
- .atLeast(InputBus, InputHatch, Maintenance, Energy, Muffler)
- .casingIndex(getCasingTextureIndex()).dot(1).buildAndChain(
- onElementPass(
- x -> ++x.mCasing1,
- ofBlock(getCasingBlock2(), getCasingMeta2()))))
- .addElement('X', ofBlock(getCasingBlock1(), getCasingMeta1()))
- .addElement(
- 'T',
- buildHatchAdder(GregtechMetaTileEntity_IndustrialFluidHeater.class)
- .atLeast(OutputBus, OutputHatch, Maintenance, Energy, Muffler)
- .casingIndex(getCasingTextureIndex()).dot(1).buildAndChain(
- onElementPass(
- x -> ++x.mCasing1,
- ofBlock(getCasingBlock2(), getCasingMeta2()))))
- .build();
+ .addShape(
+ mName,
+ transpose(
+ new String[][] { { " TTT ", "TTTTT", "TTTTT", "TTTTT", " TTT " },
+ { " XXX ", "X---X", "X---X", "X---X", " XXX " },
+ { " XXX ", "X---X", "X---X", "X---X", " XXX " },
+ { " XXX ", "X---X", "X---X", "X---X", " XXX " },
+ { " X~X ", "X---X", "X---X", "X---X", " XXX " },
+ { " BBB ", "BBBBB", "BBBBB", "BBBBB", " BBB " }, }))
+ .addElement(
+ 'B',
+ buildHatchAdder(GregtechMetaTileEntity_IndustrialFluidHeater.class)
+ .atLeast(InputBus, InputHatch, Maintenance, Energy, Muffler)
+ .casingIndex(getCasingTextureIndex())
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing1, ofBlock(getCasingBlock2(), getCasingMeta2()))))
+ .addElement('X', ofBlock(getCasingBlock1(), getCasingMeta1()))
+ .addElement(
+ 'T',
+ buildHatchAdder(GregtechMetaTileEntity_IndustrialFluidHeater.class)
+ .atLeast(OutputBus, OutputHatch, Maintenance, Energy, Muffler)
+ .casingIndex(getCasingTextureIndex())
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing1, ofBlock(getCasingBlock2(), getCasingMeta2()))))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -151,8 +157,9 @@ public class GregtechMetaTileEntity_IndustrialFluidHeater extends
@Override
protected ProcessingLogic createProcessingLogic() {
- return new ProcessingLogic().setSpeedBonus(1F / 2.2F).setEuModifier(0.9F)
- .setMaxParallelSupplier(this::getMaxParallelRecipes);
+ return new ProcessingLogic().setSpeedBonus(1F / 2.2F)
+ .setEuModifier(0.9F)
+ .setMaxParallelSupplier(this::getMaxParallelRecipes);
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialForgeHammer.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialForgeHammer.java
index d7a182e483..8e2f040d75 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialForgeHammer.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialForgeHammer.java
@@ -51,7 +51,7 @@ import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
@SuppressWarnings("SpellCheckingInspection")
public class GregtechMetaTileEntity_IndustrialForgeHammer extends
- GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialForgeHammer> implements ISurvivalConstructable {
+ GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialForgeHammer> implements ISurvivalConstructable {
private int mCasing;
private int mAnvilTier = 0;
@@ -78,9 +78,10 @@ public class GregtechMetaTileEntity_IndustrialForgeHammer extends
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for the Industrial Forge Hammer")
- .addInfo("Speed: +100% | EU Usage: 100% | Parallel: Tier x Anvil Tier x 8")
- .addInfo("T1 - Vanilla Anvil");
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for the Industrial Forge Hammer")
+ .addInfo("Speed: +100% | EU Usage: 100% | Parallel: Tier x Anvil Tier x 8")
+ .addInfo("T1 - Vanilla Anvil");
if (Railcraft.isModLoaded()) {
tt.addInfo("T2 - Steel Anvil");
}
@@ -92,12 +93,20 @@ public class GregtechMetaTileEntity_IndustrialForgeHammer extends
tt.addInfo("T4 - Void Metal Anvil");
}
- tt.addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(3, 3, 3, true)
- .addController("Front Center").addCasingInfoMin("Forge Casing", 6, false).addInputBus("Any Casing", 1)
- .addOutputBus("Any Casing", 1).addInputHatch("Any Casing", 1).addOutputHatch("Any Casing", 1)
- .addEnergyHatch("Any Casing", 1).addMaintenanceHatch("Any Casing", 1).addMufflerHatch("Any Casing", 1)
- .addOtherStructurePart("Anvil", "In the center of 3x3x3 structure", 2)
- .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(3, 3, 3, true)
+ .addController("Front Center")
+ .addCasingInfoMin("Forge Casing", 6, false)
+ .addInputBus("Any Casing", 1)
+ .addOutputBus("Any Casing", 1)
+ .addInputHatch("Any Casing", 1)
+ .addOutputHatch("Any Casing", 1)
+ .addEnergyHatch("Any Casing", 1)
+ .addMaintenanceHatch("Any Casing", 1)
+ .addMufflerHatch("Any Casing", 1)
+ .addOtherStructurePart("Anvil", "In the center of 3x3x3 structure", 2)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -122,32 +131,35 @@ public class GregtechMetaTileEntity_IndustrialForgeHammer extends
}
STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_IndustrialForgeHammer>builder()
- .addShape(
- mName,
- transpose(
- new String[][] { { "CCC", "CCC", "CCC" }, { "C~C", "CAC", "CCC" },
- { "CCC", "CCC", "CCC" }, }))
- .addElement(
- 'C',
- buildHatchAdder(GregtechMetaTileEntity_IndustrialForgeHammer.class)
- .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler, InputHatch, OutputHatch)
- .casingIndex(TAE.getIndexFromPage(1, 11)).dot(1).buildAndChain(
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings5Misc, 6))))
- .addElement(
- 'A',
- ofBlocksTiered(
- anvilTierConverter(anvilTiers),
- getAllAnvilTiers(anvilTiers),
- 0,
- GregtechMetaTileEntity_IndustrialForgeHammer::setAnvilTier,
- GregtechMetaTileEntity_IndustrialForgeHammer::getAnvilTier))
- .build();
+ .addShape(
+ mName,
+ transpose(
+ new String[][] { { "CCC", "CCC", "CCC" }, { "C~C", "CAC", "CCC" }, { "CCC", "CCC", "CCC" }, }))
+ .addElement(
+ 'C',
+ buildHatchAdder(GregtechMetaTileEntity_IndustrialForgeHammer.class)
+ .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler, InputHatch, OutputHatch)
+ .casingIndex(TAE.getIndexFromPage(1, 11))
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings5Misc, 6))))
+ .addElement(
+ 'A',
+ ofBlocksTiered(
+ anvilTierConverter(anvilTiers),
+ getAllAnvilTiers(anvilTiers),
+ 0,
+ GregtechMetaTileEntity_IndustrialForgeHammer::setAnvilTier,
+ GregtechMetaTileEntity_IndustrialForgeHammer::getAnvilTier))
+ .build();
}
return STRUCTURE_DEFINITION;
}
private static List<Pair<Block, Integer>> getAllAnvilTiers(Map<Block, Integer> anvilTiers) {
- return anvilTiers.entrySet().stream().map(e -> Pair.of(e.getKey(), e.getValue())).collect(Collectors.toList());
+ return anvilTiers.entrySet()
+ .stream()
+ .map(e -> Pair.of(e.getKey(), e.getValue()))
+ .collect(Collectors.toList());
}
private static ITierConverter<Integer> anvilTierConverter(Map<Block, Integer> anvilTiers) {
@@ -198,7 +210,8 @@ public class GregtechMetaTileEntity_IndustrialForgeHammer extends
@Override
protected ProcessingLogic createProcessingLogic() {
- return new ProcessingLogic().setSpeedBonus(1 / 2F).setMaxParallelSupplier(this::getMaxParallelRecipes);
+ return new ProcessingLogic().setSpeedBonus(1 / 2F)
+ .setMaxParallelSupplier(this::getMaxParallelRecipes);
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialMacerator.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialMacerator.java
index 3f291b38d6..5591b9fbe8 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialMacerator.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialMacerator.java
@@ -50,8 +50,8 @@ import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
import mcp.mobius.waila.api.IWailaConfigHandler;
import mcp.mobius.waila.api.IWailaDataAccessor;
-public class GregtechMetaTileEntity_IndustrialMacerator extends
- GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialMacerator> implements ISurvivalConstructable {
+public class GregtechMetaTileEntity_IndustrialMacerator
+ extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialMacerator> implements ISurvivalConstructable {
private int controllerTier = 1;
private int mCasing;
@@ -79,16 +79,23 @@ public class GregtechMetaTileEntity_IndustrialMacerator extends
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller block for the Industrial Maceration Stack")
- .addInfo("60% faster than using single block machines of the same voltage")
- .addInfo("Maximum of n*tier parallels, LV = Tier 1, MV = Tier 2, etc.")
- .addInfo("n=2 initially. n=8 after inserting Maceration Upgrade Chip.")
- .addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(3, 6, 3, true)
- .addController("Bottom center").addCasingInfoMin("Maceration Stack Casings (After upgrade)", 26, false)
- .addCasingInfoMin("Stable Titanium Casings (Before upgrade)", 26, false).addInputBus("Bottom casing", 1)
- .addEnergyHatch("Any casing", 1).addMaintenanceHatch("Any casing", 1)
- .addOutputBus("One per layer except bottom layer", 2)
- .addMufflerHatch("Any casing except bottom layer", 2).toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller block for the Industrial Maceration Stack")
+ .addInfo("60% faster than using single block machines of the same voltage")
+ .addInfo("Maximum of n*tier parallels, LV = Tier 1, MV = Tier 2, etc.")
+ .addInfo("n=2 initially. n=8 after inserting Maceration Upgrade Chip.")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(3, 6, 3, true)
+ .addController("Bottom center")
+ .addCasingInfoMin("Maceration Stack Casings (After upgrade)", 26, false)
+ .addCasingInfoMin("Stable Titanium Casings (Before upgrade)", 26, false)
+ .addInputBus("Bottom casing", 1)
+ .addEnergyHatch("Any casing", 1)
+ .addMaintenanceHatch("Any casing", 1)
+ .addOutputBus("One per layer except bottom layer", 2)
+ .addMufflerHatch("Any casing except bottom layer", 2)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -96,59 +103,65 @@ public class GregtechMetaTileEntity_IndustrialMacerator extends
public IStructureDefinition<GregtechMetaTileEntity_IndustrialMacerator> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_IndustrialMacerator>builder()
- .addShape(mName + "top1", transpose(new String[][] { { "ccc", "ccc", "ccc" }, }))
- .addShape(mName + "mid1", transpose(new String[][] { { "ccc", "c-c", "ccc" }, }))
- .addShape(mName + "bottom1", transpose(new String[][] { { "b~b", "bbb", "bbb" }, }))
- .addShape(mName + "top2", transpose(new String[][] { { "CCC", "CCC", "CCC" }, }))
- .addShape(
- mName + "mid2",
- transpose(new String[][] { { "CCC", "C-C", "CCC" }, }))
- .addShape(mName + "bottom2", transpose(new String[][] { { "B~B", "BBB", "BBB" }, }))
- .addElement(
- 'C',
- ofChain(
- buildHatchAdder(GregtechMetaTileEntity_IndustrialMacerator.class).anyOf(OutputBus)
- .shouldReject(t -> t.mPerLayer + 1 == t.mOutputBusses.size())
- .disallowOnly(ForgeDirection.UP, ForgeDirection.DOWN)
- .casingIndex(TAE.GTPP_INDEX(7)).dot(2).build(),
- buildHatchAdder(GregtechMetaTileEntity_IndustrialMacerator.class)
- .atLeast(Energy, Maintenance, Muffler)
- .disallowOnly(ForgeDirection.UP, ForgeDirection.DOWN)
- .casingIndex(TAE.GTPP_INDEX(7)).dot(2).build(),
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasingsMisc, 7))))
- .addElement(
- 'B',
- ofChain(
- buildHatchAdder(GregtechMetaTileEntity_IndustrialMacerator.class)
- .atLeast(Energy, Maintenance, InputBus).disallowOnly(ForgeDirection.UP)
- .casingIndex(TAE.GTPP_INDEX(7)).dot(2).build(),
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasingsMisc, 7))))
- .addElement(
- 'c',
- ofChain(
- buildHatchAdder(GregtechMetaTileEntity_IndustrialMacerator.class).anyOf(OutputBus)
- .shouldReject(t -> t.mPerLayer + 1 == t.mOutputBusses.size())
- .disallowOnly(ForgeDirection.UP, ForgeDirection.DOWN)
- .casingIndex(
- GT_Utility.getCasingTextureIndex(GregTech_API.sBlockCasings4, 2))
- .dot(2).build(),
- buildHatchAdder(GregtechMetaTileEntity_IndustrialMacerator.class)
- .atLeast(Energy, Maintenance, Muffler)
- .disallowOnly(ForgeDirection.UP, ForgeDirection.DOWN)
- .casingIndex(
- GT_Utility.getCasingTextureIndex(GregTech_API.sBlockCasings4, 2))
- .dot(2).build(),
- onElementPass(x -> ++x.mCasing, ofBlock(GregTech_API.sBlockCasings4, 2))))
- .addElement(
- 'b',
- ofChain(
- buildHatchAdder(GregtechMetaTileEntity_IndustrialMacerator.class)
- .atLeast(Energy, Maintenance, InputBus).disallowOnly(ForgeDirection.UP)
- .casingIndex(
- GT_Utility.getCasingTextureIndex(GregTech_API.sBlockCasings4, 2))
- .dot(2).build(),
- onElementPass(x -> ++x.mCasing, ofBlock(GregTech_API.sBlockCasings4, 2))))
- .build();
+ .addShape(mName + "top1", transpose(new String[][] { { "ccc", "ccc", "ccc" }, }))
+ .addShape(mName + "mid1", transpose(new String[][] { { "ccc", "c-c", "ccc" }, }))
+ .addShape(mName + "bottom1", transpose(new String[][] { { "b~b", "bbb", "bbb" }, }))
+ .addShape(mName + "top2", transpose(new String[][] { { "CCC", "CCC", "CCC" }, }))
+ .addShape(mName + "mid2", transpose(new String[][] { { "CCC", "C-C", "CCC" }, }))
+ .addShape(mName + "bottom2", transpose(new String[][] { { "B~B", "BBB", "BBB" }, }))
+ .addElement(
+ 'C',
+ ofChain(
+ buildHatchAdder(GregtechMetaTileEntity_IndustrialMacerator.class).anyOf(OutputBus)
+ .shouldReject(t -> t.mPerLayer + 1 == t.mOutputBusses.size())
+ .disallowOnly(ForgeDirection.UP, ForgeDirection.DOWN)
+ .casingIndex(TAE.GTPP_INDEX(7))
+ .dot(2)
+ .build(),
+ buildHatchAdder(GregtechMetaTileEntity_IndustrialMacerator.class)
+ .atLeast(Energy, Maintenance, Muffler)
+ .disallowOnly(ForgeDirection.UP, ForgeDirection.DOWN)
+ .casingIndex(TAE.GTPP_INDEX(7))
+ .dot(2)
+ .build(),
+ onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasingsMisc, 7))))
+ .addElement(
+ 'B',
+ ofChain(
+ buildHatchAdder(GregtechMetaTileEntity_IndustrialMacerator.class)
+ .atLeast(Energy, Maintenance, InputBus)
+ .disallowOnly(ForgeDirection.UP)
+ .casingIndex(TAE.GTPP_INDEX(7))
+ .dot(2)
+ .build(),
+ onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasingsMisc, 7))))
+ .addElement(
+ 'c',
+ ofChain(
+ buildHatchAdder(GregtechMetaTileEntity_IndustrialMacerator.class).anyOf(OutputBus)
+ .shouldReject(t -> t.mPerLayer + 1 == t.mOutputBusses.size())
+ .disallowOnly(ForgeDirection.UP, ForgeDirection.DOWN)
+ .casingIndex(GT_Utility.getCasingTextureIndex(GregTech_API.sBlockCasings4, 2))
+ .dot(2)
+ .build(),
+ buildHatchAdder(GregtechMetaTileEntity_IndustrialMacerator.class)
+ .atLeast(Energy, Maintenance, Muffler)
+ .disallowOnly(ForgeDirection.UP, ForgeDirection.DOWN)
+ .casingIndex(GT_Utility.getCasingTextureIndex(GregTech_API.sBlockCasings4, 2))
+ .dot(2)
+ .build(),
+ onElementPass(x -> ++x.mCasing, ofBlock(GregTech_API.sBlockCasings4, 2))))
+ .addElement(
+ 'b',
+ ofChain(
+ buildHatchAdder(GregtechMetaTileEntity_IndustrialMacerator.class)
+ .atLeast(Energy, Maintenance, InputBus)
+ .disallowOnly(ForgeDirection.UP)
+ .casingIndex(GT_Utility.getCasingTextureIndex(GregTech_API.sBlockCasings4, 2))
+ .dot(2)
+ .build(),
+ onElementPass(x -> ++x.mCasing, ofBlock(GregTech_API.sBlockCasings4, 2))))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -168,63 +181,63 @@ public class GregtechMetaTileEntity_IndustrialMacerator extends
if (mMachine) return -1;
int built;
built = survivialBuildPiece(
- mName + "bottom" + controllerTier,
- stackSize,
- 1,
- 0,
- 0,
- elementBudget,
- env,
- false,
- true);
+ mName + "bottom" + controllerTier,
+ stackSize,
+ 1,
+ 0,
+ 0,
+ elementBudget,
+ env,
+ false,
+ true);
mPerLayer = 0;
if (built >= 0) return built;
built = survivialBuildPiece(
- mName + "mid" + controllerTier,
- stackSize,
- 1,
- 1,
- 0,
- elementBudget,
- env,
- false,
- true);
+ mName + "mid" + controllerTier,
+ stackSize,
+ 1,
+ 1,
+ 0,
+ elementBudget,
+ env,
+ false,
+ true);
mPerLayer = 1;
if (built >= 0) return built;
built = survivialBuildPiece(
- mName + "mid" + controllerTier,
- stackSize,
- 1,
- 2,
- 0,
- elementBudget,
- env,
- false,
- true);
+ mName + "mid" + controllerTier,
+ stackSize,
+ 1,
+ 2,
+ 0,
+ elementBudget,
+ env,
+ false,
+ true);
if (built >= 0) return built;
mPerLayer = 2;
built = survivialBuildPiece(
- mName + "mid" + controllerTier,
- stackSize,
- 1,
- 3,
- 0,
- elementBudget,
- env,
- false,
- true);
+ mName + "mid" + controllerTier,
+ stackSize,
+ 1,
+ 3,
+ 0,
+ elementBudget,
+ env,
+ false,
+ true);
if (built >= 0) return built;
mPerLayer = 3;
built = survivialBuildPiece(
- mName + "mid" + controllerTier,
- stackSize,
- 1,
- 4,
- 0,
- elementBudget,
- env,
- false,
- true);
+ mName + "mid" + controllerTier,
+ stackSize,
+ 1,
+ 4,
+ 0,
+ elementBudget,
+ env,
+ false,
+ true);
if (built >= 0) return built;
mPerLayer = 4;
return survivialBuildPiece(mName + "top" + controllerTier, stackSize, 1, 5, 0, elementBudget, env, false, true);
@@ -237,13 +250,12 @@ public class GregtechMetaTileEntity_IndustrialMacerator extends
if (checkPiece(mName + "bottom" + controllerTier, 1, 0, 0)) {
while (mPerLayer < 4) {
if (!checkPiece(mName + "mid" + controllerTier, 1, mPerLayer + 1, 0)
- || mPerLayer + 1 != mOutputBusses.size())
- return false;
+ || mPerLayer + 1 != mOutputBusses.size()) return false;
mPerLayer++;
}
return checkPiece(mName + "top" + controllerTier, 1, 5, 0) && mOutputBusses.size() == 5
- && mCasing >= 26
- && checkHatch();
+ && mCasing >= 26
+ && checkHatch();
}
return false;
}
@@ -285,11 +297,12 @@ public class GregtechMetaTileEntity_IndustrialMacerator extends
public void onPreTick(final IGregTechTileEntity aBaseMetaTileEntity, final long aTick) {
super.onPreTick(aBaseMetaTileEntity, aTick);
if ((aBaseMetaTileEntity.isClientSide()) && (aBaseMetaTileEntity.isActive())
- && (aBaseMetaTileEntity.getFrontFacing() != ForgeDirection.UP)
- && (aBaseMetaTileEntity.getCoverIDAtSide(ForgeDirection.UP) == 0)
- && (!aBaseMetaTileEntity.getOpacityAtSide(ForgeDirection.UP))) {
+ && (aBaseMetaTileEntity.getFrontFacing() != ForgeDirection.UP)
+ && (aBaseMetaTileEntity.getCoverIDAtSide(ForgeDirection.UP) == 0)
+ && (!aBaseMetaTileEntity.getOpacityAtSide(ForgeDirection.UP))) {
final Random tRandom = aBaseMetaTileEntity.getWorld().rand;
- aBaseMetaTileEntity.getWorld().spawnParticle(
+ aBaseMetaTileEntity.getWorld()
+ .spawnParticle(
"smoke",
(aBaseMetaTileEntity.getXCoord() + 0.8F) - (tRandom.nextFloat() * 0.6F),
aBaseMetaTileEntity.getYCoord() + 0.3f + (tRandom.nextFloat() * 0.2F),
@@ -317,7 +330,7 @@ public class GregtechMetaTileEntity_IndustrialMacerator extends
@Override
public boolean onRightclick(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer, ForgeDirection side,
- float aX, float aY, float aZ) {
+ float aX, float aY, float aZ) {
if (controllerTier == 1 && !aPlayer.isSneaking()) {
ItemStack heldItem = aPlayer.getHeldItem();
if (GregtechItemList.Maceration_Upgrade_Chip.isStackEqual(heldItem, false, true)) {
@@ -392,7 +405,8 @@ public class GregtechMetaTileEntity_IndustrialMacerator extends
@Override
protected ProcessingLogic createProcessingLogic() {
- return new ProcessingLogic().setSpeedBonus(1F / 1.6F).setMaxParallelSupplier(this::getMaxParallelRecipes);
+ return new ProcessingLogic().setSpeedBonus(1F / 1.6F)
+ .setMaxParallelSupplier(this::getMaxParallelRecipes);
}
@Override
@@ -424,21 +438,21 @@ public class GregtechMetaTileEntity_IndustrialMacerator extends
@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("tier", controllerTier);
}
@Override
public void getWailaBody(ItemStack itemStack, List<String> currentTip, IWailaDataAccessor accessor,
- IWailaConfigHandler config) {
+ IWailaConfigHandler config) {
super.getWailaBody(itemStack, currentTip, accessor, config);
final NBTTagCompound tag = accessor.getNBTData();
if (tag.hasKey("tier")) {
currentTip.add(
- "Tier: " + EnumChatFormatting.YELLOW
- + GT_Utility.formatNumbers(tag.getInteger("tier"))
- + EnumChatFormatting.RESET);
+ "Tier: " + EnumChatFormatting.YELLOW
+ + GT_Utility.formatNumbers(tag.getInteger("tier"))
+ + EnumChatFormatting.RESET);
}
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialMixer.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialMixer.java
index e9172ae5a9..3f4c4ccfa4 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialMixer.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialMixer.java
@@ -40,7 +40,7 @@ import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.Gregtech
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
public class GregtechMetaTileEntity_IndustrialMixer
- extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialMixer> implements ISurvivalConstructable {
+ extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialMixer> implements ISurvivalConstructable {
public static int CASING_TEXTURE_ID;
public static String mCasingName = "Multi-Use Casing";
@@ -87,14 +87,24 @@ public class GregtechMetaTileEntity_IndustrialMixer
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for the Industrial Mixer")
- .addInfo("250% faster than using single block machines of the same voltage")
- .addInfo("Processes eight recipes per voltage tier").addPollutionAmount(getPollutionPerSecond(null))
- .addSeparator().beginStructureBlock(3, 4, 3, false).addController("Second Layer Center")
- .addCasingInfoMin(mCasingName, 6, false).addCasingInfoMin(mCasingName2, 2, false)
- .addInputBus("Any Casing", 1).addOutputBus("Any Casing", 1).addInputHatch("Any Casing", 1)
- .addOutputHatch("Any Casing", 1).addEnergyHatch("Any Casing", 1).addMaintenanceHatch("Any Casing", 1)
- .addMufflerHatch("Any Casing", 1).toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for the Industrial Mixer")
+ .addInfo("250% faster than using single block machines of the same voltage")
+ .addInfo("Processes eight recipes per voltage tier")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(3, 4, 3, false)
+ .addController("Second Layer Center")
+ .addCasingInfoMin(mCasingName, 6, false)
+ .addCasingInfoMin(mCasingName2, 2, false)
+ .addInputBus("Any Casing", 1)
+ .addOutputBus("Any Casing", 1)
+ .addInputHatch("Any Casing", 1)
+ .addOutputHatch("Any Casing", 1)
+ .addEnergyHatch("Any Casing", 1)
+ .addMaintenanceHatch("Any Casing", 1)
+ .addMufflerHatch("Any Casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -102,18 +112,20 @@ public class GregtechMetaTileEntity_IndustrialMixer
public IStructureDefinition<GregtechMetaTileEntity_IndustrialMixer> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_IndustrialMixer>builder()
- .addShape(
- mName,
- transpose(
- new String[][] { { "CCC", "CCC", "CCC" }, { "CCC", "CMC", "CCC" },
- { "C~C", "CMC", "CCC" }, { "CCC", "CCC", "CCC" }, }))
- .addElement(
- 'C',
- buildHatchAdder(GregtechMetaTileEntity_IndustrialMixer.class)
- .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler, InputHatch, OutputHatch)
- .casingIndex(CASING_TEXTURE_ID).dot(1).buildAndChain(
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings3Misc, 2))))
- .addElement('M', ofBlock(GregTech_API.sBlockCasings4, 11)).build();
+ .addShape(
+ mName,
+ transpose(
+ new String[][] { { "CCC", "CCC", "CCC" }, { "CCC", "CMC", "CCC" }, { "C~C", "CMC", "CCC" },
+ { "CCC", "CCC", "CCC" }, }))
+ .addElement(
+ 'C',
+ buildHatchAdder(GregtechMetaTileEntity_IndustrialMixer.class)
+ .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler, InputHatch, OutputHatch)
+ .casingIndex(CASING_TEXTURE_ID)
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings3Misc, 2))))
+ .addElement('M', ofBlock(GregTech_API.sBlockCasings4, 11))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -162,7 +174,8 @@ public class GregtechMetaTileEntity_IndustrialMixer
@Override
protected ProcessingLogic createProcessingLogic() {
- return new ProcessingLogic().setSpeedBonus(1F / 3.5F).setMaxParallelSupplier(this::getMaxParallelRecipes);
+ return new ProcessingLogic().setSpeedBonus(1F / 3.5F)
+ .setMaxParallelSupplier(this::getMaxParallelRecipes);
}
@Override
@@ -184,8 +197,8 @@ public class GregtechMetaTileEntity_IndustrialMixer
public void onModeChangeByScrewdriver(ForgeDirection side, 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/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialMolecularTransformer.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialMolecularTransformer.java
index d1613dc290..02b0bcf978 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialMolecularTransformer.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialMolecularTransformer.java
@@ -33,14 +33,14 @@ import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.Gregtech
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
public class GregtechMetaTileEntity_IndustrialMolecularTransformer
- extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialMolecularTransformer>
- implements ISurvivalConstructable {
+ extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialMolecularTransformer>
+ implements ISurvivalConstructable {
private static final int CASING_TEXTURE_ID = 48;
private int mCasing = 0;
public GregtechMetaTileEntity_IndustrialMolecularTransformer(final int aID, final String aName,
- final String aNameRegional) {
+ final String aNameRegional) {
super(aID, aName, aNameRegional);
}
@@ -62,21 +62,26 @@ public class GregtechMetaTileEntity_IndustrialMolecularTransformer
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Changes the structure of items to produce new ones")
- .addInfo("Maximum 1x of each bus/hatch.").addPollutionAmount(getPollutionPerSecond(null)).addSeparator()
- .beginStructureBlock(7, 7, 7, false).addController("Top Center")
- .addCasingInfoMin("Robust Tungstensteel Machine Casing", 40, false)
- .addCasingInfoMin("Tungstensteel Coils", 16, false)
- .addCasingInfoMin("Molecular Containment Casing", 52, false)
- .addCasingInfoMin("High Voltage Current Capacitor", 32, false)
- .addCasingInfoMin("Particle Containment Casing", 4, false)
- .addCasingInfoMin("Resonance Chamber I", 5, false).addCasingInfoMin("Modulator I", 4, false)
- .addInputBus("Any Robust Tungstensteel Machine Casing", 1)
- .addOutputBus("Any Robust Tungstensteel Machine Casing", 1)
- .addEnergyHatch("Any Robust Tungstensteel Machine Casing", 1)
- .addMaintenanceHatch("Any Robust Tungstensteel Machine Casing", 1)
- .addMufflerHatch("Any Robust Tungstensteel Machine Casing", 1)
- .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Changes the structure of items to produce new ones")
+ .addInfo("Maximum 1x of each bus/hatch.")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(7, 7, 7, false)
+ .addController("Top Center")
+ .addCasingInfoMin("Robust Tungstensteel Machine Casing", 40, false)
+ .addCasingInfoMin("Tungstensteel Coils", 16, false)
+ .addCasingInfoMin("Molecular Containment Casing", 52, false)
+ .addCasingInfoMin("High Voltage Current Capacitor", 32, false)
+ .addCasingInfoMin("Particle Containment Casing", 4, false)
+ .addCasingInfoMin("Resonance Chamber I", 5, false)
+ .addCasingInfoMin("Modulator I", 4, false)
+ .addInputBus("Any Robust Tungstensteel Machine Casing", 1)
+ .addOutputBus("Any Robust Tungstensteel Machine Casing", 1)
+ .addEnergyHatch("Any Robust Tungstensteel Machine Casing", 1)
+ .addMaintenanceHatch("Any Robust Tungstensteel Machine Casing", 1)
+ .addMufflerHatch("Any Robust Tungstensteel Machine Casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -87,31 +92,31 @@ public class GregtechMetaTileEntity_IndustrialMolecularTransformer
public IStructureDefinition<GregtechMetaTileEntity_IndustrialMolecularTransformer> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_IndustrialMolecularTransformer>builder()
- .addShape(
- STRUCTURE_PIECE_MAIN,
- (new String[][] {
- { " ", " ", " xxx ", " x~x ", " xxx ", " ", " " },
- { " ", " xxx ", " xyyyx ", " xyzyx ", " xyyyx ", " xxx ", " " },
- { " ", " xxx ", " xyyyx ", " xyzyx ", " xyyyx ", " xxx ", " " },
- { " ", " xxx ", " xyyyx ", " xyzyx ", " xyyyx ", " xxx ", " " },
- { " t ", " ttxtt ", " tyyyt ", "txyzyxt", " tyyyt ", " ttxtt ", " t " },
- { " c ", " ccecc ", " cxfxc ", "cefefec", " cxfxc ", " ccecc ", " c " },
- { " h ", " hhhhh ", " hhhhh ", "hhhhhhh", " hhhhh ", " hhhhh ", " h " }, }))
- .addElement('x', ofBlock(getCasingBlock(), getCasingMeta()))
- .addElement('y', ofBlock(getCasingBlock(), getCasingMeta2()))
- .addElement('z', ofBlock(getCasingBlock(), getCasingMeta3()))
- .addElement('e', ofBlock(getCasingBlock2(), 0)).addElement('f', ofBlock(getCasingBlock2(), 4))
- .addElement('c', ofBlock(getCoilBlock(), 3))
- .addElement('t', ofBlock(getCasingBlock3(), getTungstenCasingMeta()))
- .addElement(
- 'h',
- buildHatchAdder(GregtechMetaTileEntity_IndustrialMolecularTransformer.class)
- .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler)
- .casingIndex(getCasingTextureIndex()).dot(1).buildAndChain(
- onElementPass(
- x -> ++x.mCasing,
- ofBlock(getCasingBlock3(), getTungstenCasingMeta()))))
- .build();
+ .addShape(
+ STRUCTURE_PIECE_MAIN,
+ (new String[][] { { " ", " ", " xxx ", " x~x ", " xxx ", " ", " " },
+ { " ", " xxx ", " xyyyx ", " xyzyx ", " xyyyx ", " xxx ", " " },
+ { " ", " xxx ", " xyyyx ", " xyzyx ", " xyyyx ", " xxx ", " " },
+ { " ", " xxx ", " xyyyx ", " xyzyx ", " xyyyx ", " xxx ", " " },
+ { " t ", " ttxtt ", " tyyyt ", "txyzyxt", " tyyyt ", " ttxtt ", " t " },
+ { " c ", " ccecc ", " cxfxc ", "cefefec", " cxfxc ", " ccecc ", " c " },
+ { " h ", " hhhhh ", " hhhhh ", "hhhhhhh", " hhhhh ", " hhhhh ", " h " }, }))
+ .addElement('x', ofBlock(getCasingBlock(), getCasingMeta()))
+ .addElement('y', ofBlock(getCasingBlock(), getCasingMeta2()))
+ .addElement('z', ofBlock(getCasingBlock(), getCasingMeta3()))
+ .addElement('e', ofBlock(getCasingBlock2(), 0))
+ .addElement('f', ofBlock(getCasingBlock2(), 4))
+ .addElement('c', ofBlock(getCoilBlock(), 3))
+ .addElement('t', ofBlock(getCasingBlock3(), getTungstenCasingMeta()))
+ .addElement(
+ 'h',
+ buildHatchAdder(GregtechMetaTileEntity_IndustrialMolecularTransformer.class)
+ .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler)
+ .casingIndex(getCasingTextureIndex())
+ .dot(1)
+ .buildAndChain(
+ onElementPass(x -> ++x.mCasing, ofBlock(getCasingBlock3(), getTungstenCasingMeta()))))
+ .build();
}
return STRUCTURE_DEFINITION;
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialMultiMachine.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialMultiMachine.java
index 17e1572cb1..52c7736ae3 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialMultiMachine.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialMultiMachine.java
@@ -70,7 +70,7 @@ import mcp.mobius.waila.api.IWailaConfigHandler;
import mcp.mobius.waila.api.IWailaDataAccessor;
public class GregtechMetaTileEntity_IndustrialMultiMachine extends
- GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialMultiMachine> implements ISurvivalConstructable {
+ GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialMultiMachine> implements ISurvivalConstructable {
protected int mInternalMode = 0;
private static final int MODE_COMPRESSOR = 0;
@@ -98,7 +98,7 @@ public class GregtechMetaTileEntity_IndustrialMultiMachine extends
}
public GregtechMetaTileEntity_IndustrialMultiMachine(final int aID, final String aName,
- final String aNameRegional) {
+ final String aNameRegional) {
super(aID, aName, aNameRegional);
}
@@ -124,30 +124,31 @@ public class GregtechMetaTileEntity_IndustrialMultiMachine extends
aBuiltStrings[2] = aToolTipNames[6] + ", " + aToolTipNames[7] + ", " + aToolTipNames[8];
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for the Industrial Multi-Machine")
- .addInfo("250% faster than using single block machines of the same voltage")
- .addInfo("Only uses 80% of the EU/t normally required").addInfo("Processes two items per voltage tier")
- .addInfo(
- "Machine Type: Metal - " + EnumChatFormatting.YELLOW
- + aBuiltStrings[0]
- + EnumChatFormatting.RESET)
- .addInfo(
- "Machine Type: Fluid - " + EnumChatFormatting.YELLOW
- + aBuiltStrings[1]
- + EnumChatFormatting.RESET)
- .addInfo(
- "Machine Type: Misc - " + EnumChatFormatting.YELLOW
- + aBuiltStrings[2]
- + EnumChatFormatting.RESET)
- .addInfo("Read Multi-Machine Manual for extra information")
- .addInfo(
- EnumChatFormatting.AQUA + "You can use Solidifier Hatch to solidify multiple liquids."
- + EnumChatFormatting.RESET)
- .addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(3, 3, 3, true)
- .addController("Front Center").addCasingInfoMin("Multi-Use Casings", 6, false)
- .addInputBus("Any Casing", 1).addOutputBus("Any Casing", 1).addInputHatch("Any Casing", 1)
- .addOutputHatch("Any Casing", 1).addEnergyHatch("Any Casing", 1).addMaintenanceHatch("Any Casing", 1)
- .addMufflerHatch("Any Casing", 1).toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for the Industrial Multi-Machine")
+ .addInfo("250% faster than using single block machines of the same voltage")
+ .addInfo("Only uses 80% of the EU/t normally required")
+ .addInfo("Processes two items per voltage tier")
+ .addInfo("Machine Type: Metal - " + EnumChatFormatting.YELLOW + aBuiltStrings[0] + EnumChatFormatting.RESET)
+ .addInfo("Machine Type: Fluid - " + EnumChatFormatting.YELLOW + aBuiltStrings[1] + EnumChatFormatting.RESET)
+ .addInfo("Machine Type: Misc - " + EnumChatFormatting.YELLOW + aBuiltStrings[2] + EnumChatFormatting.RESET)
+ .addInfo("Read Multi-Machine Manual for extra information")
+ .addInfo(
+ EnumChatFormatting.AQUA + "You can use Solidifier Hatch to solidify multiple liquids."
+ + EnumChatFormatting.RESET)
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(3, 3, 3, true)
+ .addController("Front Center")
+ .addCasingInfoMin("Multi-Use Casings", 6, false)
+ .addInputBus("Any Casing", 1)
+ .addOutputBus("Any Casing", 1)
+ .addInputHatch("Any Casing", 1)
+ .addOutputHatch("Any Casing", 1)
+ .addEnergyHatch("Any Casing", 1)
+ .addMaintenanceHatch("Any Casing", 1)
+ .addMufflerHatch("Any Casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -155,18 +156,18 @@ public class GregtechMetaTileEntity_IndustrialMultiMachine extends
public IStructureDefinition<GregtechMetaTileEntity_IndustrialMultiMachine> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_IndustrialMultiMachine>builder()
- .addShape(
- mName,
- transpose(
- new String[][] { { "CCC", "CCC", "CCC" }, { "C~C", "C-C", "CCC" },
- { "CCC", "CCC", "CCC" }, }))
- .addElement(
- 'C',
- buildHatchAdder(GregtechMetaTileEntity_IndustrialMultiMachine.class)
- .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler, InputHatch, OutputHatch)
- .casingIndex(getTextureIndex()).dot(1).buildAndChain(
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings3Misc, 2))))
- .build();
+ .addShape(
+ mName,
+ transpose(
+ new String[][] { { "CCC", "CCC", "CCC" }, { "C~C", "C-C", "CCC" }, { "CCC", "CCC", "CCC" }, }))
+ .addElement(
+ 'C',
+ buildHatchAdder(GregtechMetaTileEntity_IndustrialMultiMachine.class)
+ .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler, InputHatch, OutputHatch)
+ .casingIndex(getTextureIndex())
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings3Misc, 2))))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -235,7 +236,8 @@ public class GregtechMetaTileEntity_IndustrialMultiMachine extends
private ItemStack getCircuit(ItemStack[] t) {
for (ItemStack j : t) {
- if (j.getItem() == CI.getNumberedCircuit(0).getItem()) {
+ if (j.getItem() == CI.getNumberedCircuit(0)
+ .getItem()) {
if (j.getItemDamage() >= 20 && j.getItemDamage() <= 22) {
return j;
}
@@ -259,15 +261,15 @@ public class GregtechMetaTileEntity_IndustrialMultiMachine extends
@Override
public Collection<RecipeMap<?>> getAvailableRecipeMaps() {
return Arrays.asList(
- RecipeMaps.compressorRecipes,
- RecipeMaps.latheRecipes,
- RecipeMaps.polarizerRecipes,
- RecipeMaps.fermentingRecipes,
- RecipeMaps.fluidExtractionRecipes,
- RecipeMaps.extractorRecipes,
- RecipeMaps.laserEngraverRecipes,
- RecipeMaps.autoclaveRecipes,
- RecipeMaps.fluidSolidifierRecipes);
+ RecipeMaps.compressorRecipes,
+ RecipeMaps.latheRecipes,
+ RecipeMaps.polarizerRecipes,
+ RecipeMaps.fermentingRecipes,
+ RecipeMaps.fluidExtractionRecipes,
+ RecipeMaps.extractorRecipes,
+ RecipeMaps.laserEngraverRecipes,
+ RecipeMaps.autoclaveRecipes,
+ RecipeMaps.fluidSolidifierRecipes);
}
@Override
@@ -322,7 +324,9 @@ public class GregtechMetaTileEntity_IndustrialMultiMachine extends
}
return super.findRecipeMatches(foundMap);
}
- }.setSpeedBonus(1F / 3.5F).setEuModifier(0.8F).setMaxParallelSupplier(this::getMaxParallelRecipes);
+ }.setSpeedBonus(1F / 3.5F)
+ .setEuModifier(0.8F)
+ .setMaxParallelSupplier(this::getMaxParallelRecipes);
}
@Override
@@ -333,7 +337,7 @@ public class GregtechMetaTileEntity_IndustrialMultiMachine extends
mInternalMode = 0;
}
String mModeString = (mInternalMode == 0 ? "Metal"
- : mInternalMode == 1 ? "Fluid" : mInternalMode == 2 ? "Misc." : "null");
+ : mInternalMode == 1 ? "Fluid" : mInternalMode == 2 ? "Misc." : "null");
PlayerUtils.messagePlayer(aPlayer, "Multi-Machine is now in " + mModeString + " mode.");
mLastRecipe = null;
}
@@ -373,7 +377,7 @@ public class GregtechMetaTileEntity_IndustrialMultiMachine extends
@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("mode", mInternalMode);
}
@@ -496,7 +500,7 @@ public class GregtechMetaTileEntity_IndustrialMultiMachine extends
@Override
public void getWailaBody(ItemStack itemStack, List<String> currentTip, IWailaDataAccessor accessor,
- IWailaConfigHandler config) {
+ IWailaConfigHandler config) {
super.getWailaBody(itemStack, currentTip, accessor, config);
final NBTTagCompound tag = accessor.getNBTData();
if (tag.hasKey("mode")) {
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialPlatePress.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialPlatePress.java
index 8ea7787c35..972cf492b6 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialPlatePress.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialPlatePress.java
@@ -40,8 +40,8 @@ import gtPlusPlus.core.util.minecraft.PlayerUtils;
import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.GregtechMeta_MultiBlockBase;
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
-public class GregtechMetaTileEntity_IndustrialPlatePress extends
- GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialPlatePress> implements ISurvivalConstructable {
+public class GregtechMetaTileEntity_IndustrialPlatePress
+ extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialPlatePress> implements ISurvivalConstructable {
private boolean mFormingMode = false;
private int mCasing;
@@ -68,15 +68,23 @@ public class GregtechMetaTileEntity_IndustrialPlatePress extends
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for Advanced Bending & Forming")
- .addInfo("500% faster than using single block machines of the same voltage")
- .addInfo("Processes four items per voltage tier").addInfo("Circuit for recipe goes in the Input Bus")
- .addInfo("Each Input Bus can have a different Circuit/Shape!")
- .addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(3, 3, 3, true)
- .addController("Front Center").addCasingInfoMin("Material Press Machine Casings", 6, false)
- .addInputBus("Any Casing", 1).addOutputBus("Any Casing", 1).addEnergyHatch("Any Casing", 1)
- .addMaintenanceHatch("Any Casing", 1).addMufflerHatch("Any Casing", 1)
- .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for Advanced Bending & Forming")
+ .addInfo("500% faster than using single block machines of the same voltage")
+ .addInfo("Processes four items per voltage tier")
+ .addInfo("Circuit for recipe goes in the Input Bus")
+ .addInfo("Each Input Bus can have a different Circuit/Shape!")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(3, 3, 3, true)
+ .addController("Front Center")
+ .addCasingInfoMin("Material Press Machine Casings", 6, false)
+ .addInputBus("Any Casing", 1)
+ .addOutputBus("Any Casing", 1)
+ .addEnergyHatch("Any Casing", 1)
+ .addMaintenanceHatch("Any Casing", 1)
+ .addMufflerHatch("Any Casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -84,18 +92,18 @@ public class GregtechMetaTileEntity_IndustrialPlatePress extends
public IStructureDefinition<GregtechMetaTileEntity_IndustrialPlatePress> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_IndustrialPlatePress>builder()
- .addShape(
- mName,
- transpose(
- new String[][] { { "CCC", "CCC", "CCC" }, { "C~C", "C-C", "CCC" },
- { "CCC", "CCC", "CCC" }, }))
- .addElement(
- 'C',
- buildHatchAdder(GregtechMetaTileEntity_IndustrialPlatePress.class)
- .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler).casingIndex(50).dot(1)
- .buildAndChain(
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasingsMisc, 4))))
- .build();
+ .addShape(
+ mName,
+ transpose(
+ new String[][] { { "CCC", "CCC", "CCC" }, { "C~C", "C-C", "CCC" }, { "CCC", "CCC", "CCC" }, }))
+ .addElement(
+ 'C',
+ buildHatchAdder(GregtechMetaTileEntity_IndustrialPlatePress.class)
+ .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler)
+ .casingIndex(50)
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasingsMisc, 4))))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -155,7 +163,8 @@ public class GregtechMetaTileEntity_IndustrialPlatePress extends
@Override
protected ProcessingLogic createProcessingLogic() {
- return new ProcessingLogic().setSpeedBonus(1F / 6F).setMaxParallelSupplier(this::getMaxParallelRecipes);
+ return new ProcessingLogic().setSpeedBonus(1F / 6F)
+ .setMaxParallelSupplier(this::getMaxParallelRecipes);
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialSifter.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialSifter.java
index cad24dac77..e4dd3d11ba 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialSifter.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialSifter.java
@@ -37,7 +37,7 @@ import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.Gregtech
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
public class GregtechMetaTileEntity_IndustrialSifter
- extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialSifter> implements ISurvivalConstructable {
+ extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialSifter> implements ISurvivalConstructable {
private int mCasing;
private static IStructureDefinition<GregtechMetaTileEntity_IndustrialSifter> STRUCTURE_DEFINITION = null;
@@ -63,15 +63,25 @@ public class GregtechMetaTileEntity_IndustrialSifter
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for the Industrial Sifter")
- .addInfo("400% faster than single-block machines of the same voltage")
- .addInfo("Only uses 75% of the EU/t normally required").addInfo("Processes four items per voltage tier")
- .addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(5, 3, 5, false)
- .addController("Bottom Center").addCasingInfoMin("Sieve Grate", 18, false)
- .addCasingInfoMin("Sieve Casings", 35, false).addInputBus("Any Casing", 1).addOutputBus("Any Casing", 1)
- .addInputHatch("Any Casing", 1).addOutputHatch("Any Casing", 1).addEnergyHatch("Any Casing", 1)
- .addMaintenanceHatch("Any Casing", 1).addMufflerHatch("Any Casing", 1)
- .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for the Industrial Sifter")
+ .addInfo("400% faster than single-block machines of the same voltage")
+ .addInfo("Only uses 75% of the EU/t normally required")
+ .addInfo("Processes four items per voltage tier")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(5, 3, 5, false)
+ .addController("Bottom Center")
+ .addCasingInfoMin("Sieve Grate", 18, false)
+ .addCasingInfoMin("Sieve Casings", 35, false)
+ .addInputBus("Any Casing", 1)
+ .addOutputBus("Any Casing", 1)
+ .addInputHatch("Any Casing", 1)
+ .addOutputHatch("Any Casing", 1)
+ .addEnergyHatch("Any Casing", 1)
+ .addMaintenanceHatch("Any Casing", 1)
+ .addMufflerHatch("Any Casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -79,19 +89,21 @@ public class GregtechMetaTileEntity_IndustrialSifter
public IStructureDefinition<GregtechMetaTileEntity_IndustrialSifter> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_IndustrialSifter>builder()
- .addShape(
- mName,
- transpose(
- new String[][] { { "CCCCC", "CMMMC", "CMMMC", "CMMMC", "CCCCC" },
- { "CCCCC", "CMMMC", "CMMMC", "CMMMC", "CCCCC" },
- { "CC~CC", "CCCCC", "CCCCC", "CCCCC", "CCCCC" }, }))
- .addElement(
- 'C',
- buildHatchAdder(GregtechMetaTileEntity_IndustrialSifter.class)
- .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler, InputHatch, OutputHatch)
- .casingIndex(TAE.GTPP_INDEX(21)).dot(1).buildAndChain(
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings2Misc, 5))))
- .addElement('M', ofBlock(ModBlocks.blockCasings2Misc, 6)).build();
+ .addShape(
+ mName,
+ transpose(
+ new String[][] { { "CCCCC", "CMMMC", "CMMMC", "CMMMC", "CCCCC" },
+ { "CCCCC", "CMMMC", "CMMMC", "CMMMC", "CCCCC" },
+ { "CC~CC", "CCCCC", "CCCCC", "CCCCC", "CCCCC" }, }))
+ .addElement(
+ 'C',
+ buildHatchAdder(GregtechMetaTileEntity_IndustrialSifter.class)
+ .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler, InputHatch, OutputHatch)
+ .casingIndex(TAE.GTPP_INDEX(21))
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings2Misc, 5))))
+ .addElement('M', ofBlock(ModBlocks.blockCasings2Misc, 6))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -142,16 +154,17 @@ public class GregtechMetaTileEntity_IndustrialSifter
public void onPreTick(final IGregTechTileEntity aBaseMetaTileEntity, final long aTick) {
super.onPreTick(aBaseMetaTileEntity, aTick);
if ((aBaseMetaTileEntity.isClientSide()) && (aBaseMetaTileEntity.isActive())
- && (aBaseMetaTileEntity.getFrontFacing() != ForgeDirection.UP)
- && (aBaseMetaTileEntity.getCoverIDAtSide(ForgeDirection.UP) == 0)
- && (!aBaseMetaTileEntity.getOpacityAtSide(ForgeDirection.UP))) {
+ && (aBaseMetaTileEntity.getFrontFacing() != ForgeDirection.UP)
+ && (aBaseMetaTileEntity.getCoverIDAtSide(ForgeDirection.UP) == 0)
+ && (!aBaseMetaTileEntity.getOpacityAtSide(ForgeDirection.UP))) {
final Random tRandom = aBaseMetaTileEntity.getWorld().rand;
if (tRandom.nextFloat() > 0.4) return;
final int xDir = aBaseMetaTileEntity.getBackFacing().offsetX * 2;
final int zDir = aBaseMetaTileEntity.getBackFacing().offsetZ * 2;
- aBaseMetaTileEntity.getWorld().spawnParticle(
+ aBaseMetaTileEntity.getWorld()
+ .spawnParticle(
"smoke",
(aBaseMetaTileEntity.getXCoord() + xDir + 2.1F) - (tRandom.nextFloat() * 3.2F),
aBaseMetaTileEntity.getYCoord() + 2.5f + (tRandom.nextFloat() * 1.2F),
@@ -164,8 +177,9 @@ public class GregtechMetaTileEntity_IndustrialSifter
@Override
protected ProcessingLogic createProcessingLogic() {
- return new ProcessingLogic().setSpeedBonus(1F / 5F).setEuModifier(0.75F)
- .setMaxParallelSupplier(this::getMaxParallelRecipes);
+ return new ProcessingLogic().setSpeedBonus(1F / 5F)
+ .setEuModifier(0.75F)
+ .setMaxParallelSupplier(this::getMaxParallelRecipes);
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialThermalCentrifuge.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialThermalCentrifuge.java
index f207264eed..14ff4ebb6d 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialThermalCentrifuge.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialThermalCentrifuge.java
@@ -34,15 +34,14 @@ import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.GregtechMeta_MultiBlockBase;
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
-public class GregtechMetaTileEntity_IndustrialThermalCentrifuge
- extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialThermalCentrifuge>
- implements ISurvivalConstructable {
+public class GregtechMetaTileEntity_IndustrialThermalCentrifuge extends
+ GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialThermalCentrifuge> implements ISurvivalConstructable {
private int mCasing;
private static IStructureDefinition<GregtechMetaTileEntity_IndustrialThermalCentrifuge> STRUCTURE_DEFINITION = null;
public GregtechMetaTileEntity_IndustrialThermalCentrifuge(final int aID, final String aName,
- final String aNameRegional) {
+ final String aNameRegional) {
super(aID, aName, aNameRegional);
}
@@ -63,15 +62,22 @@ public class GregtechMetaTileEntity_IndustrialThermalCentrifuge
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for the Industrial Thermal Centrifuge")
- .addInfo("150% faster than using single block machines of the same voltage")
- .addInfo("Only uses 80% of the EU/t normally required")
- .addInfo("Processes eight items per voltage tier").addPollutionAmount(getPollutionPerSecond(null))
- .addSeparator().beginStructureBlock(3, 2, 3, false).addController("Front Center")
- .addCasingInfoMin("Thermal Processing Casings/Noise Hazard Sign Blocks", 8, false)
- .addInputBus("Bottom Casing", 1).addOutputBus("Bottom Casing", 1).addEnergyHatch("Bottom Casing", 1)
- .addMaintenanceHatch("Bottom Casing", 1).addMufflerHatch("Bottom Casing", 1)
- .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for the Industrial Thermal Centrifuge")
+ .addInfo("150% faster than using single block machines of the same voltage")
+ .addInfo("Only uses 80% of the EU/t normally required")
+ .addInfo("Processes eight items per voltage tier")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(3, 2, 3, false)
+ .addController("Front Center")
+ .addCasingInfoMin("Thermal Processing Casings/Noise Hazard Sign Blocks", 8, false)
+ .addInputBus("Bottom Casing", 1)
+ .addOutputBus("Bottom Casing", 1)
+ .addEnergyHatch("Bottom Casing", 1)
+ .addMaintenanceHatch("Bottom Casing", 1)
+ .addMufflerHatch("Bottom Casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -79,21 +85,23 @@ public class GregtechMetaTileEntity_IndustrialThermalCentrifuge
public IStructureDefinition<GregtechMetaTileEntity_IndustrialThermalCentrifuge> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_IndustrialThermalCentrifuge>builder()
- .addShape(mName, transpose(new String[][] { { "X~X", "XXX", "XXX" }, { "CCC", "CCC", "CCC" }, }))
- .addElement(
- 'C',
- ofChain(
- buildHatchAdder(GregtechMetaTileEntity_IndustrialThermalCentrifuge.class)
- .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler)
- .casingIndex(getCasingTextureIndex()).dot(1).build(),
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings2Misc, 0)),
- onElementPass(x -> ++x.mCasing, ofBlock(GregTech_API.sBlockCasings3, 9))))
- .addElement(
- 'X',
- ofChain(
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings2Misc, 0)),
- onElementPass(x -> ++x.mCasing, ofBlock(GregTech_API.sBlockCasings3, 9))))
- .build();
+ .addShape(mName, transpose(new String[][] { { "X~X", "XXX", "XXX" }, { "CCC", "CCC", "CCC" }, }))
+ .addElement(
+ 'C',
+ ofChain(
+ buildHatchAdder(GregtechMetaTileEntity_IndustrialThermalCentrifuge.class)
+ .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler)
+ .casingIndex(getCasingTextureIndex())
+ .dot(1)
+ .build(),
+ onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings2Misc, 0)),
+ onElementPass(x -> ++x.mCasing, ofBlock(GregTech_API.sBlockCasings3, 9))))
+ .addElement(
+ 'X',
+ ofChain(
+ onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings2Misc, 0)),
+ onElementPass(x -> ++x.mCasing, ofBlock(GregTech_API.sBlockCasings3, 9))))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -137,8 +145,9 @@ public class GregtechMetaTileEntity_IndustrialThermalCentrifuge
@Override
protected ProcessingLogic createProcessingLogic() {
- return new ProcessingLogic().setSpeedBonus(1F / 2.5F).setEuModifier(0.8F)
- .setMaxParallelSupplier(this::getMaxParallelRecipes);
+ return new ProcessingLogic().setSpeedBonus(1F / 2.5F)
+ .setEuModifier(0.8F)
+ .setMaxParallelSupplier(this::getMaxParallelRecipes);
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialVacuumFreezer.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialVacuumFreezer.java
index 592033de2c..aba508e183 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialVacuumFreezer.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialVacuumFreezer.java
@@ -42,7 +42,7 @@ import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.Gregtech
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
public class GregtechMetaTileEntity_IndustrialVacuumFreezer extends
- GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialVacuumFreezer> implements ISurvivalConstructable {
+ GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialVacuumFreezer> implements ISurvivalConstructable {
public static int CASING_TEXTURE_ID;
public static String mCryoFuelName = "Gelid Cryotheum";
@@ -55,7 +55,7 @@ public class GregtechMetaTileEntity_IndustrialVacuumFreezer extends
private final ArrayList<GT_MetaTileEntity_Hatch_CustomFluidBase> mCryotheumHatches = new ArrayList<>();
public GregtechMetaTileEntity_IndustrialVacuumFreezer(final int aID, final String aName,
- final String aNameRegional) {
+ final String aNameRegional) {
super(aID, aName, aNameRegional);
mFuelStack = FluidUtils.getFluidStack("cryotheum", 1);
CASING_TEXTURE_ID = TAE.getIndexFromPage(2, 10);
@@ -80,15 +80,25 @@ public class GregtechMetaTileEntity_IndustrialVacuumFreezer extends
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Factory Grade Advanced Vacuum Freezer")
- .addInfo("Speed: +100% | EU Usage: 100% | Parallel: 4")
- .addInfo("Consumes 20L of " + mCryoFuelName + "/s during operation")
- .addInfo("Constructed exactly the same as a normal Vacuum Freezer")
- .addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(3, 3, 3, true)
- .addController("Front Center").addCasingInfoMin(mCasingName, 10, false).addInputBus("Any Casing", 1)
- .addOutputBus("Any Casing", 1).addInputHatch("Any Casing", 1).addOutputHatch("Any Casing", 1)
- .addEnergyHatch("Any Casing", 1).addMufflerHatch("Any Casing", 1).addMaintenanceHatch("Any Casing", 1)
- .addOtherStructurePart(mHatchName, "Any Casing", 1).toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Factory Grade Advanced Vacuum Freezer")
+ .addInfo("Speed: +100% | EU Usage: 100% | Parallel: 4")
+ .addInfo("Consumes 20L of " + mCryoFuelName + "/s during operation")
+ .addInfo("Constructed exactly the same as a normal Vacuum Freezer")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(3, 3, 3, true)
+ .addController("Front Center")
+ .addCasingInfoMin(mCasingName, 10, false)
+ .addInputBus("Any Casing", 1)
+ .addOutputBus("Any Casing", 1)
+ .addInputHatch("Any Casing", 1)
+ .addOutputHatch("Any Casing", 1)
+ .addEnergyHatch("Any Casing", 1)
+ .addMufflerHatch("Any Casing", 1)
+ .addMaintenanceHatch("Any Casing", 1)
+ .addOtherStructurePart(mHatchName, "Any Casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -96,28 +106,27 @@ public class GregtechMetaTileEntity_IndustrialVacuumFreezer extends
public IStructureDefinition<GregtechMetaTileEntity_IndustrialVacuumFreezer> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_IndustrialVacuumFreezer>builder()
- .addShape(
- mName,
- transpose(
- new String[][] { { "CCC", "CCC", "CCC" }, { "C~C", "C-C", "CCC" },
- { "CCC", "CCC", "CCC" }, }))
- .addElement(
- 'C',
- ofChain(
- buildHatchAdder(GregtechMetaTileEntity_IndustrialVacuumFreezer.class)
- .adder(GregtechMetaTileEntity_IndustrialVacuumFreezer::addCryotheumHatch)
- .hatchId(967).shouldReject(t -> !t.mCryotheumHatches.isEmpty())
- .casingIndex(CASING_TEXTURE_ID).dot(1).build(),
- buildHatchAdder(GregtechMetaTileEntity_IndustrialVacuumFreezer.class).atLeast(
- InputBus,
- OutputBus,
- Maintenance,
- Energy,
- Muffler,
- InputHatch,
- OutputHatch).casingIndex(CASING_TEXTURE_ID).dot(1).build(),
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings3Misc, 10))))
- .build();
+ .addShape(
+ mName,
+ transpose(
+ new String[][] { { "CCC", "CCC", "CCC" }, { "C~C", "C-C", "CCC" }, { "CCC", "CCC", "CCC" }, }))
+ .addElement(
+ 'C',
+ ofChain(
+ buildHatchAdder(GregtechMetaTileEntity_IndustrialVacuumFreezer.class)
+ .adder(GregtechMetaTileEntity_IndustrialVacuumFreezer::addCryotheumHatch)
+ .hatchId(967)
+ .shouldReject(t -> !t.mCryotheumHatches.isEmpty())
+ .casingIndex(CASING_TEXTURE_ID)
+ .dot(1)
+ .build(),
+ buildHatchAdder(GregtechMetaTileEntity_IndustrialVacuumFreezer.class)
+ .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler, InputHatch, OutputHatch)
+ .casingIndex(CASING_TEXTURE_ID)
+ .dot(1)
+ .build(),
+ onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings3Misc, 10))))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -151,7 +160,8 @@ public class GregtechMetaTileEntity_IndustrialVacuumFreezer extends
} else {
IMetaTileEntity aMetaTileEntity = aTileEntity.getMetaTileEntity();
if (aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_CustomFluidBase
- && aMetaTileEntity.getBaseMetaTileEntity().getMetaTileID() == 967) {
+ && aMetaTileEntity.getBaseMetaTileEntity()
+ .getMetaTileID() == 967) {
return addToMachineListInternal(mCryotheumHatches, aTileEntity, aBaseCasingIndex);
}
}
@@ -191,7 +201,8 @@ public class GregtechMetaTileEntity_IndustrialVacuumFreezer extends
@Override
protected ProcessingLogic createProcessingLogic() {
- return new ProcessingLogic().setSpeedBonus(1F / 2F).setMaxParallelSupplier(this::getMaxParallelRecipes);
+ return new ProcessingLogic().setSpeedBonus(1F / 2F)
+ .setMaxParallelSupplier(this::getMaxParallelRecipes);
}
@Override
@@ -230,15 +241,16 @@ public class GregtechMetaTileEntity_IndustrialVacuumFreezer extends
super.onPostTick(aBaseMetaTileEntity, aTick);
if (this.mStartUpCheck < 0) {
- if (this.mMaxProgresstime > 0 && this.mProgresstime != 0
- || this.getBaseMetaTileEntity().hasWorkJustBeenEnabled()) {
- if (aTick % 10 == 0 || this.getBaseMetaTileEntity().hasWorkJustBeenEnabled()) {
+ if (this.mMaxProgresstime > 0 && this.mProgresstime != 0 || this.getBaseMetaTileEntity()
+ .hasWorkJustBeenEnabled()) {
+ if (aTick % 10 == 0 || this.getBaseMetaTileEntity()
+ .hasWorkJustBeenEnabled()) {
if (!this.depleteInputFromRestrictedHatches(this.mCryotheumHatches, 10)) {
if (mGraceTimer-- == 0) {
this.causeMaintenanceIssue();
this.stopMachine(
- ShutDownReasonRegistry.outOfFluid(
- Objects.requireNonNull(FluidUtils.getFluidStack("cryotheum", 20))));
+ ShutDownReasonRegistry
+ .outOfFluid(Objects.requireNonNull(FluidUtils.getFluidStack("cryotheum", 20))));
mGraceTimer = 2;
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialWashPlant.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialWashPlant.java
index f5d8fd7bbb..a12db63f4e 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialWashPlant.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialWashPlant.java
@@ -60,8 +60,8 @@ import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
import ic2.core.init.BlocksItems;
import ic2.core.init.InternalName;
-public class GregtechMetaTileEntity_IndustrialWashPlant extends
- GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialWashPlant> implements ISurvivalConstructable {
+public class GregtechMetaTileEntity_IndustrialWashPlant
+ extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialWashPlant> implements ISurvivalConstructable {
private int mMode = 0;
private int mCasing;
@@ -88,17 +88,27 @@ public class GregtechMetaTileEntity_IndustrialWashPlant extends
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for the Industrial Wash Plant")
- .addInfo("Can be configured with a screwdriver to also do Simple Washer and process Chemical Bathing")
- .addInfo("400% faster than using single block machines of the same voltage")
- .addInfo("Processes four item per voltage tier")
- .addInfo("Always requires an Input Hatch full of water to refill structure")
- .addInfo("Need to be filled with water.").addInfo("Will automatically fill water from input hatch.")
- .addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(5, 3, 7, true)
- .addController("Front Center").addCasingInfoMin("Wash Plant Casings", 40, false)
- .addInputBus("Any Casing", 1).addOutputBus("Any Casing", 1).addInputHatch("Any Casing", 1)
- .addOutputHatch("Any Casing", 1).addEnergyHatch("Any Casing", 1).addMaintenanceHatch("Any Casing", 1)
- .addMufflerHatch("Any Casing", 1).toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for the Industrial Wash Plant")
+ .addInfo("Can be configured with a screwdriver to also do Simple Washer and process Chemical Bathing")
+ .addInfo("400% faster than using single block machines of the same voltage")
+ .addInfo("Processes four item per voltage tier")
+ .addInfo("Always requires an Input Hatch full of water to refill structure")
+ .addInfo("Need to be filled with water.")
+ .addInfo("Will automatically fill water from input hatch.")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(5, 3, 7, true)
+ .addController("Front Center")
+ .addCasingInfoMin("Wash Plant Casings", 40, false)
+ .addInputBus("Any Casing", 1)
+ .addOutputBus("Any Casing", 1)
+ .addInputHatch("Any Casing", 1)
+ .addOutputHatch("Any Casing", 1)
+ .addEnergyHatch("Any Casing", 1)
+ .addMaintenanceHatch("Any Casing", 1)
+ .addMufflerHatch("Any Casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -106,28 +116,27 @@ public class GregtechMetaTileEntity_IndustrialWashPlant extends
public IStructureDefinition<GregtechMetaTileEntity_IndustrialWashPlant> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_IndustrialWashPlant>builder()
- .addShape(
- mName,
- transpose(
- new String[][] { { "CCCCC", "CwwwC", "CwwwC", "CwwwC", "CwwwC", "CwwwC", "CCCCC" },
- { "CC~CC", "CwwwC", "CwwwC", "CwwwC", "CwwwC", "CwwwC", "CCCCC" },
- { "CCCCC", "CCCCC", "CCCCC", "CCCCC", "CCCCC", "CCCCC", "CCCCC" }, }))
- .addElement(
- 'C',
- buildHatchAdder(GregtechMetaTileEntity_IndustrialWashPlant.class)
- .atLeast(InputBus, InputHatch, OutputHatch, OutputBus, Maintenance, Energy, Muffler)
- .casingIndex(getCasingTextureIndex()).dot(1).buildAndChain(
- onElementPass(
- x -> ++x.mCasing,
- ofBlock(getCasingBlock(), getCasingMeta()))))
- .addElement(
- 'w',
- ofChain(
- isAir(),
- ofBlockAnyMeta(Blocks.water),
- ofBlockAnyMeta(Blocks.flowing_water),
- ofBlockAnyMeta(BlocksItems.getFluidBlock(InternalName.fluidDistilledWater))))
- .build();
+ .addShape(
+ mName,
+ transpose(
+ new String[][] { { "CCCCC", "CwwwC", "CwwwC", "CwwwC", "CwwwC", "CwwwC", "CCCCC" },
+ { "CC~CC", "CwwwC", "CwwwC", "CwwwC", "CwwwC", "CwwwC", "CCCCC" },
+ { "CCCCC", "CCCCC", "CCCCC", "CCCCC", "CCCCC", "CCCCC", "CCCCC" }, }))
+ .addElement(
+ 'C',
+ buildHatchAdder(GregtechMetaTileEntity_IndustrialWashPlant.class)
+ .atLeast(InputBus, InputHatch, OutputHatch, OutputBus, Maintenance, Energy, Muffler)
+ .casingIndex(getCasingTextureIndex())
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(getCasingBlock(), getCasingMeta()))))
+ .addElement(
+ 'w',
+ ofChain(
+ isAir(),
+ ofBlockAnyMeta(Blocks.water),
+ ofBlockAnyMeta(Blocks.flowing_water),
+ ofBlockAnyMeta(BlocksItems.getFluidBlock(InternalName.fluidDistilledWater))))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -173,16 +182,14 @@ public class GregtechMetaTileEntity_IndustrialWashPlant extends
@Override
public RecipeMap<?> getRecipeMap() {
return mMode == 0 ? RecipeMaps.oreWasherRecipes
- : mMode == 1 ? GTPPRecipeMaps.simpleWasherRecipes : RecipeMaps.chemicalBathRecipes;
+ : mMode == 1 ? GTPPRecipeMaps.simpleWasherRecipes : RecipeMaps.chemicalBathRecipes;
}
@Nonnull
@Override
public Collection<RecipeMap<?>> getAvailableRecipeMaps() {
- return Arrays.asList(
- RecipeMaps.oreWasherRecipes,
- GTPPRecipeMaps.simpleWasherRecipes,
- RecipeMaps.chemicalBathRecipes);
+ return Arrays
+ .asList(RecipeMaps.oreWasherRecipes, GTPPRecipeMaps.simpleWasherRecipes, RecipeMaps.chemicalBathRecipes);
}
@Override
@@ -202,7 +209,8 @@ public class GregtechMetaTileEntity_IndustrialWashPlant extends
}
return SimpleCheckRecipeResult.ofFailure("no_water");
}
- }.setSpeedBonus(1F / 5F).setMaxParallelSupplier(this::getMaxParallelRecipes);
+ }.setSpeedBonus(1F / 5F)
+ .setMaxParallelSupplier(this::getMaxParallelRecipes);
}
@Override
@@ -291,7 +299,8 @@ public class GregtechMetaTileEntity_IndustrialWashPlant extends
if (tBlock == Blocks.water) {
fluidUsed = BlocksItems.getFluidBlock(InternalName.fluidDistilledWater);
}
- aBaseMetaTileEntity.getWorld().setBlock(
+ aBaseMetaTileEntity.getWorld()
+ .setBlock(
aBaseMetaTileEntity.getXCoord() + xDir + i,
aBaseMetaTileEntity.getYCoord() + h,
aBaseMetaTileEntity.getZCoord() + zDir + j,
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialWireMill.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialWireMill.java
index 13500d7df2..15ae5a96f8 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialWireMill.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialWireMill.java
@@ -37,8 +37,8 @@ import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.GregtechMeta_MultiBlockBase;
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
-public class GregtechMetaTileEntity_IndustrialWireMill extends
- GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialWireMill> implements ISurvivalConstructable {
+public class GregtechMetaTileEntity_IndustrialWireMill
+ extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialWireMill> implements ISurvivalConstructable {
private int mCasing;
private static IStructureDefinition<GregtechMetaTileEntity_IndustrialWireMill> STRUCTURE_DEFINITION = null;
@@ -66,34 +66,42 @@ public class GregtechMetaTileEntity_IndustrialWireMill extends
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for the Industrial Wire Factory")
- .addInfo("200% faster than using single block machines of the same voltage")
- .addInfo("Only uses 75% of the EU/t normally required").addInfo("Processes four items per voltage tier")
- .addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(3, 3, 5, true)
- .addController("Front Center").addCasingInfoMin("Wire Factory Casings", 14, false)
- .addInputBus("Any Casing", 1).addOutputBus("Any Casing", 1).addEnergyHatch("Any Casing", 1)
- .addMaintenanceHatch("Any Casing", 1).addMufflerHatch("Any Casing", 1)
- .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for the Industrial Wire Factory")
+ .addInfo("200% faster than using single block machines of the same voltage")
+ .addInfo("Only uses 75% of the EU/t normally required")
+ .addInfo("Processes four items per voltage tier")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(3, 3, 5, true)
+ .addController("Front Center")
+ .addCasingInfoMin("Wire Factory Casings", 14, false)
+ .addInputBus("Any Casing", 1)
+ .addOutputBus("Any Casing", 1)
+ .addEnergyHatch("Any Casing", 1)
+ .addMaintenanceHatch("Any Casing", 1)
+ .addMufflerHatch("Any Casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@Override
public IStructureDefinition<GregtechMetaTileEntity_IndustrialWireMill> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
- STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_IndustrialWireMill>builder().addShape(
+ STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_IndustrialWireMill>builder()
+ .addShape(
mName,
transpose(
- new String[][] { { "CCC", "CCC", "CCC", "CCC", "CCC" },
- { "C~C", "C-C", "C-C", "C-C", "CCC" }, { "CCC", "CCC", "CCC", "CCC", "CCC" }, }))
- .addElement(
- 'C',
- buildHatchAdder(GregtechMetaTileEntity_IndustrialWireMill.class)
- .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler)
- .casingIndex(getCasingTextureIndex()).dot(1).buildAndChain(
- onElementPass(
- x -> ++x.mCasing,
- ofBlock(getCasingBlock(), getCasingMeta()))))
- .build();
+ new String[][] { { "CCC", "CCC", "CCC", "CCC", "CCC" }, { "C~C", "C-C", "C-C", "C-C", "CCC" },
+ { "CCC", "CCC", "CCC", "CCC", "CCC" }, }))
+ .addElement(
+ 'C',
+ buildHatchAdder(GregtechMetaTileEntity_IndustrialWireMill.class)
+ .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler)
+ .casingIndex(getCasingTextureIndex())
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(getCasingBlock(), getCasingMeta()))))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -147,17 +155,17 @@ public class GregtechMetaTileEntity_IndustrialWireMill extends
@Override
protected ProcessingLogic createProcessingLogic() {
- return new ProcessingLogic().setSpeedBonus(1F / 3F).setEuModifier(0.75F)
- .setMaxParallelSupplier(this::getMaxParallelRecipes);
+ return new ProcessingLogic().setSpeedBonus(1F / 3F)
+ .setEuModifier(0.75F)
+ .setMaxParallelSupplier(this::getMaxParallelRecipes);
}
@Override
public void onModeChangeByScrewdriver(ForgeDirection side, EntityPlayer aPlayer, float aX, float aY, float aZ) {
inputSeparation = !inputSeparation;
aPlayer.addChatMessage(
- new ChatComponentTranslation(
- inputSeparation ? "interaction.separateBusses.enabled"
- : "interaction.separateBusses.disabled"));
+ new ChatComponentTranslation(
+ inputSeparation ? "interaction.separateBusses.enabled" : "interaction.separateBusses.disabled"));
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IsaMill.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IsaMill.java
index b3de3a2426..c14cae9b88 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IsaMill.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IsaMill.java
@@ -63,7 +63,7 @@ import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.nbthandlers.G
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock.CustomIcon;
public class GregtechMetaTileEntity_IsaMill extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IsaMill>
- implements ISurvivalConstructable {
+ implements ISurvivalConstructable {
protected boolean boostEu = false;
private int mCasing;
@@ -86,47 +86,56 @@ public class GregtechMetaTileEntity_IsaMill extends GregtechMeta_MultiBlockBase<
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for the Large Grinding Machine")
- .addInfo("Grind ores.").addPollutionAmount(getPollutionPerSecond(null)).addSeparator()
- .beginStructureBlock(3, 3, 7, false).addController("Front Center")
- .addCasingInfoMin("IsaMill Exterior Casing", 40, false)
- .addOtherStructurePart("IsaMill Gearbox", "5x, Inner Blocks")
- .addOtherStructurePart("IsaMill Piping", "8x, ring around controller")
- .addStructureInfo("IsaMill Pipings must not be obstructed in front (only air blocks)")
- .addOtherStructurePart("Milling Ball Hatch", "Any Casing").addInputBus("Any Casing", 1)
- .addOutputBus("Any Casing", 1).addEnergyHatch("Any Casing", 1).addMaintenanceHatch("Any Casing", 1)
- .addMufflerHatch("Any Casing", 1).toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for the Large Grinding Machine")
+ .addInfo("Grind ores.")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(3, 3, 7, false)
+ .addController("Front Center")
+ .addCasingInfoMin("IsaMill Exterior Casing", 40, false)
+ .addOtherStructurePart("IsaMill Gearbox", "5x, Inner Blocks")
+ .addOtherStructurePart("IsaMill Piping", "8x, ring around controller")
+ .addStructureInfo("IsaMill Pipings must not be obstructed in front (only air blocks)")
+ .addOtherStructurePart("Milling Ball Hatch", "Any Casing")
+ .addInputBus("Any Casing", 1)
+ .addOutputBus("Any Casing", 1)
+ .addEnergyHatch("Any Casing", 1)
+ .addMaintenanceHatch("Any Casing", 1)
+ .addMufflerHatch("Any Casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@Override
public IStructureDefinition<GregtechMetaTileEntity_IsaMill> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
- STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_IsaMill>builder().addShape(
+ STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_IsaMill>builder()
+ .addShape(
mName,
transpose(
- new String[][] { { "DDD", "CCC", "CCC", "CCC", "CCC", "CCC", "CCC" },
- { "D~D", "CGC", "CGC", "CGC", "CGC", "CGC", "CCC" },
- { "DDD", "CCC", "CCC", "CCC", "CCC", "CCC", "CCC" }, }))
- .addElement(
- 'C',
- ofChain(
- buildHatchAdder(GregtechMetaTileEntity_IsaMill.class)
- .adder(GregtechMetaTileEntity_IsaMill::addMillingBallsHatch)
- .hatchClass(GT_MetaTileEntity_Hatch_MillingBalls.class)
- .shouldReject(t -> !t.mMillingBallBuses.isEmpty())
- .casingIndex(getCasingTextureIndex()).dot(1).build(),
- buildHatchAdder(GregtechMetaTileEntity_IsaMill.class).atLeast(
- InputBus,
- OutputBus,
- InputHatch,
- OutputHatch,
- Maintenance,
- Energy,
- Muffler).casingIndex(getCasingTextureIndex()).dot(1).build(),
- onElementPass(x -> ++x.mCasing, ofBlock(getCasingBlock(), getCasingMeta()))))
- .addElement('D', ofBlock(getIntakeBlock(), getIntakeMeta()))
- .addElement('G', ofBlock(getGearboxBlock(), getGearboxMeta())).build();
+ new String[][] { { "DDD", "CCC", "CCC", "CCC", "CCC", "CCC", "CCC" },
+ { "D~D", "CGC", "CGC", "CGC", "CGC", "CGC", "CCC" },
+ { "DDD", "CCC", "CCC", "CCC", "CCC", "CCC", "CCC" }, }))
+ .addElement(
+ 'C',
+ ofChain(
+ buildHatchAdder(GregtechMetaTileEntity_IsaMill.class)
+ .adder(GregtechMetaTileEntity_IsaMill::addMillingBallsHatch)
+ .hatchClass(GT_MetaTileEntity_Hatch_MillingBalls.class)
+ .shouldReject(t -> !t.mMillingBallBuses.isEmpty())
+ .casingIndex(getCasingTextureIndex())
+ .dot(1)
+ .build(),
+ buildHatchAdder(GregtechMetaTileEntity_IsaMill.class)
+ .atLeast(InputBus, OutputBus, InputHatch, OutputHatch, Maintenance, Energy, Muffler)
+ .casingIndex(getCasingTextureIndex())
+ .dot(1)
+ .build(),
+ onElementPass(x -> ++x.mCasing, ofBlock(getCasingBlock(), getCasingMeta()))))
+ .addElement('D', ofBlock(getIntakeBlock(), getIntakeMeta()))
+ .addElement('G', ofBlock(getGearboxBlock(), getGearboxMeta()))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -261,9 +270,9 @@ public class GregtechMetaTileEntity_IsaMill extends GregtechMeta_MultiBlockBase<
}
} else if (aFoundEntity.getHealth() > 0) {
EntityUtils.doDamage(
- aFoundEntity,
- mIsaMillDamageSource,
- Math.max(1, (int) (aFoundEntity.getMaxHealth() / 3)));
+ aFoundEntity,
+ mIsaMillDamageSource,
+ Math.max(1, (int) (aFoundEntity.getMaxHealth() / 3)));
if ((aBaseMetaTileEntity.isClientSide()) && (aBaseMetaTileEntity.isActive())) {
generateParticles(aFoundEntity);
}
@@ -329,13 +338,13 @@ public class GregtechMetaTileEntity_IsaMill extends GregtechMeta_MultiBlockBase<
float aOffsetY = MathUtils.randFloat(-0.25f, 0.35f);
float aOffsetZ = MathUtils.randFloat(-0.35f, 0.35f);
aEntity.worldObj.spawnParticle(
- "reddust",
- aEffectPos.xPos + aOffsetX,
- aEffectPos.yPos + 0.3f + aOffsetY,
- aEffectPos.zPos + aOffsetZ,
- 0.0D,
- 0.0D,
- 0.0D);
+ "reddust",
+ aEffectPos.xPos + aOffsetX,
+ aEffectPos.yPos + 0.3f + aOffsetY,
+ aEffectPos.zPos + aOffsetZ,
+ 0.0D,
+ 0.0D,
+ 0.0D);
}
}
@@ -405,7 +414,7 @@ public class GregtechMetaTileEntity_IsaMill extends GregtechMeta_MultiBlockBase<
@Override
public String[] getExtraInfoData() {
return new String[] { "IsaMill Grinding Machine", "Current Efficiency: " + (mEfficiency / 100) + "%",
- getIdealStatus() == getRepairStatus() ? "No Maintainance issues" : "Needs Maintainance" };
+ getIdealStatus() == getRepairStatus() ? "No Maintainance issues" : "Needs Maintainance" };
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_NuclearSaltProcessingPlant.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_NuclearSaltProcessingPlant.java
index bcfe53c41c..6d1593bec9 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_NuclearSaltProcessingPlant.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_NuclearSaltProcessingPlant.java
@@ -35,9 +35,8 @@ import gtPlusPlus.core.block.ModBlocks;
import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.GregtechMeta_MultiBlockBase;
-public class GregtechMetaTileEntity_NuclearSaltProcessingPlant
- extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_NuclearSaltProcessingPlant>
- implements ISurvivalConstructable {
+public class GregtechMetaTileEntity_NuclearSaltProcessingPlant extends
+ GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_NuclearSaltProcessingPlant> implements ISurvivalConstructable {
protected GT_Recipe lastRecipeToBuffer;
private int casing;
@@ -74,22 +73,30 @@ public class GregtechMetaTileEntity_NuclearSaltProcessingPlant
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for the Nuclear Salt Processing Plant")
- .addInfo("Processes depleted nuclear salts that come from the LFTR")
- .addInfo("Handles the recipes of the Reactor Processor Unit and Cold Trap")
- .addInfo("Only Thermally Insulated Casings can be replaced with hatches")
- .addInfo("Mufflers on top, Energy Hatches on bottom, exactly 2 of each are required")
- .addInfo("Maintenance Hatch goes on the back, opposite of the controller block")
- .addInfo("Inputs go on the left side of the multi, outputs on the right side")
- .addInfo("150% faster than using single block machines of the same voltage")
- .addInfo("Processes two items per voltage tier").addPollutionAmount(getPollutionPerSecond(null))
- .addSeparator().beginStructureBlock(3, 3, 3, true).addController("Front Center")
- .addCasingInfoMin("IV Machine Casing", 58, false)
- .addCasingInfoMin("Thermally Insulated Casing", 1, false).addInputBus("Left Half", 2)
- .addInputHatch("Left Half", 2).addOutputBus("Right Half", 3).addOutputHatch("Right Half", 3)
- .addMufflerHatch("Top Side, 2 Required", 4).addEnergyHatch("Bottom Side, 2 Required", 5)
- .addMaintenanceHatch("Back Side, Opposite of Controller", 6)
- .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for the Nuclear Salt Processing Plant")
+ .addInfo("Processes depleted nuclear salts that come from the LFTR")
+ .addInfo("Handles the recipes of the Reactor Processor Unit and Cold Trap")
+ .addInfo("Only Thermally Insulated Casings can be replaced with hatches")
+ .addInfo("Mufflers on top, Energy Hatches on bottom, exactly 2 of each are required")
+ .addInfo("Maintenance Hatch goes on the back, opposite of the controller block")
+ .addInfo("Inputs go on the left side of the multi, outputs on the right side")
+ .addInfo("150% faster than using single block machines of the same voltage")
+ .addInfo("Processes two items per voltage tier")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(3, 3, 3, true)
+ .addController("Front Center")
+ .addCasingInfoMin("IV Machine Casing", 58, false)
+ .addCasingInfoMin("Thermally Insulated Casing", 1, false)
+ .addInputBus("Left Half", 2)
+ .addInputHatch("Left Half", 2)
+ .addOutputBus("Right Half", 3)
+ .addOutputHatch("Right Half", 3)
+ .addMufflerHatch("Top Side, 2 Required", 4)
+ .addEnergyHatch("Bottom Side, 2 Required", 5)
+ .addMaintenanceHatch("Back Side, Opposite of Controller", 6)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -112,53 +119,46 @@ public class GregtechMetaTileEntity_NuclearSaltProcessingPlant
public IStructureDefinition<GregtechMetaTileEntity_NuclearSaltProcessingPlant> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_NuclearSaltProcessingPlant>builder()
- .addShape(
- mName,
- transpose(
- new String[][] { { "AAA AAA", "ADA ADA", "AAA AAA" },
- { "ABBA ACCA", "B AAA C", "ABBA ACCA" },
- { "ABBB~CCCA", "B C", "ABBBFCCCA" },
- { "ABBA ACCA", "B AAA C", "ABBA ACCA" },
- { "AAA AAA", "AEA AEA", "AAA AAA" } }))
- .addElement('A', ofBlock(GregTech_API.sBlockCasings1, 5))
- .addElement(
- 'B',
- buildHatchAdder(GregtechMetaTileEntity_NuclearSaltProcessingPlant.class)
- .atLeast(InputBus, InputHatch).casingIndex(TAE.getIndexFromPage(0, 10)).dot(2)
- .buildAndChain(
- onElementPass(
- x -> ++x.casing,
- ofBlock(ModBlocks.blockSpecialMultiCasings, 8))))
- .addElement(
- 'C',
- buildHatchAdder(GregtechMetaTileEntity_NuclearSaltProcessingPlant.class)
- .atLeast(OutputBus, OutputHatch).casingIndex(TAE.getIndexFromPage(0, 10)).dot(3)
- .buildAndChain(
- onElementPass(
- x -> ++x.casing,
- ofBlock(ModBlocks.blockSpecialMultiCasings, 8))))
- .addElement(
- 'D',
- buildHatchAdder(GregtechMetaTileEntity_NuclearSaltProcessingPlant.class).atLeast(Muffler)
- .casingIndex(TAE.getIndexFromPage(0, 10)).dot(4).buildAndChain(
- onElementPass(
- x -> ++x.casing,
- ofBlock(ModBlocks.blockSpecialMultiCasings, 8))))
- .addElement(
- 'E',
- buildHatchAdder(GregtechMetaTileEntity_NuclearSaltProcessingPlant.class).atLeast(Energy)
- .casingIndex(TAE.getIndexFromPage(0, 10)).dot(5).buildAndChain(
- onElementPass(
- x -> ++x.casing,
- ofBlock(ModBlocks.blockSpecialMultiCasings, 8))))
- .addElement(
- 'F',
- buildHatchAdder(GregtechMetaTileEntity_NuclearSaltProcessingPlant.class)
- .atLeast(Maintenance).casingIndex(TAE.getIndexFromPage(0, 10)).dot(6).buildAndChain(
- onElementPass(
- x -> ++x.casing,
- ofBlock(ModBlocks.blockSpecialMultiCasings, 8))))
- .build();
+ .addShape(
+ mName,
+ transpose(
+ new String[][] { { "AAA AAA", "ADA ADA", "AAA AAA" },
+ { "ABBA ACCA", "B AAA C", "ABBA ACCA" }, { "ABBB~CCCA", "B C", "ABBBFCCCA" },
+ { "ABBA ACCA", "B AAA C", "ABBA ACCA" }, { "AAA AAA", "AEA AEA", "AAA AAA" } }))
+ .addElement('A', ofBlock(GregTech_API.sBlockCasings1, 5))
+ .addElement(
+ 'B',
+ buildHatchAdder(GregtechMetaTileEntity_NuclearSaltProcessingPlant.class)
+ .atLeast(InputBus, InputHatch)
+ .casingIndex(TAE.getIndexFromPage(0, 10))
+ .dot(2)
+ .buildAndChain(onElementPass(x -> ++x.casing, ofBlock(ModBlocks.blockSpecialMultiCasings, 8))))
+ .addElement(
+ 'C',
+ buildHatchAdder(GregtechMetaTileEntity_NuclearSaltProcessingPlant.class)
+ .atLeast(OutputBus, OutputHatch)
+ .casingIndex(TAE.getIndexFromPage(0, 10))
+ .dot(3)
+ .buildAndChain(onElementPass(x -> ++x.casing, ofBlock(ModBlocks.blockSpecialMultiCasings, 8))))
+ .addElement(
+ 'D',
+ buildHatchAdder(GregtechMetaTileEntity_NuclearSaltProcessingPlant.class).atLeast(Muffler)
+ .casingIndex(TAE.getIndexFromPage(0, 10))
+ .dot(4)
+ .buildAndChain(onElementPass(x -> ++x.casing, ofBlock(ModBlocks.blockSpecialMultiCasings, 8))))
+ .addElement(
+ 'E',
+ buildHatchAdder(GregtechMetaTileEntity_NuclearSaltProcessingPlant.class).atLeast(Energy)
+ .casingIndex(TAE.getIndexFromPage(0, 10))
+ .dot(5)
+ .buildAndChain(onElementPass(x -> ++x.casing, ofBlock(ModBlocks.blockSpecialMultiCasings, 8))))
+ .addElement(
+ 'F',
+ buildHatchAdder(GregtechMetaTileEntity_NuclearSaltProcessingPlant.class).atLeast(Maintenance)
+ .casingIndex(TAE.getIndexFromPage(0, 10))
+ .dot(6)
+ .buildAndChain(onElementPass(x -> ++x.casing, ofBlock(ModBlocks.blockSpecialMultiCasings, 8))))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -192,7 +192,8 @@ public class GregtechMetaTileEntity_NuclearSaltProcessingPlant
@Override
protected ProcessingLogic createProcessingLogic() {
- return new ProcessingLogic().setSpeedBonus(1F / 2.5F).setMaxParallelSupplier(this::getMaxParallelRecipes);
+ return new ProcessingLogic().setSpeedBonus(1F / 2.5F)
+ .setMaxParallelSupplier(this::getMaxParallelRecipes);
}
@Override
@@ -204,7 +205,7 @@ public class GregtechMetaTileEntity_NuclearSaltProcessingPlant
public String[] getExtraInfoData() {
final String running = (this.mMaxProgresstime > 0 ? "Salt Plant running" : "Salt Plant stopped");
final String maintenance = (this.getIdealStatus() == this.getRepairStatus() ? "No Maintenance issues"
- : "Needs Maintenance");
+ : "Needs Maintenance");
String tSpecialText;
if (lastRecipeToBuffer != null && lastRecipeToBuffer.mOutputs[0].getDisplayName() != null) {
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_SpargeTower.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_SpargeTower.java
index 17f59331ed..5f4203b99e 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_SpargeTower.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_SpargeTower.java
@@ -54,7 +54,7 @@ import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.Gregtech
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
public class GregtechMetaTileEntity_SpargeTower extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_SpargeTower>
- implements ISurvivalConstructable {
+ implements ISurvivalConstructable {
protected static final String STRUCTURE_PIECE_BASE = "base";
protected static final String STRUCTURE_PIECE_LAYER = "layer";
@@ -64,56 +64,52 @@ public class GregtechMetaTileEntity_SpargeTower extends GregtechMeta_MultiBlockB
static {
IHatchElement<GregtechMetaTileEntity_SpargeTower> layeredOutputHatch = OutputHatch
- .withCount(GregtechMetaTileEntity_SpargeTower::getCurrentLayerOutputHatchCount)
- .withAdder(GregtechMetaTileEntity_SpargeTower::addLayerOutputHatch);
+ .withCount(GregtechMetaTileEntity_SpargeTower::getCurrentLayerOutputHatchCount)
+ .withAdder(GregtechMetaTileEntity_SpargeTower::addLayerOutputHatch);
STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_SpargeTower>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',
- buildHatchAdder(GregtechMetaTileEntity_SpargeTower.class)
- .atLeast(Energy, InputHatch, InputBus, Maintenance).disallowOnly(ForgeDirection.UP)
- .casingIndex(getCasingIndex()).dot(1).buildAndChain(
- onElementPass(
- GregtechMetaTileEntity_SpargeTower::onCasingFound,
- ofBlock(ModBlocks.blockCasings5Misc, 4))))
- .addElement(
- 'l',
- ofChain(
- buildHatchAdder(GregtechMetaTileEntity_SpargeTower.class).atLeast(layeredOutputHatch)
- .disallowOnly(ForgeDirection.UP, ForgeDirection.DOWN)
- .casingIndex(getCasingIndex()).dot(2).build(),
- ofHatchAdder(
- GregtechMetaTileEntity_SpargeTower::addEnergyInputToMachineList,
- getCasingIndex(),
- 2),
- ofHatchAdder(
- GregtechMetaTileEntity_SpargeTower::addMaintenanceToMachineList,
- getCasingIndex(),
- 2),
- onElementPass(
- GregtechMetaTileEntity_SpargeTower::onCasingFound,
- ofBlock(ModBlocks.blockCasings5Misc, 4))))
- .addElement(
- 'c',
- ofChain(
- onElementPass(
- t -> t.onTopLayerFound(false),
- ofHatchAdder(
- GregtechMetaTileEntity_SpargeTower::addOutputToMachineList,
- getCasingIndex(),
- 3)),
- onElementPass(
- t -> t.onTopLayerFound(false),
- ofHatchAdder(
- GregtechMetaTileEntity_SpargeTower::addMaintenanceToMachineList,
- getCasingIndex(),
- 3)),
- onElementPass(t -> t.onTopLayerFound(true), ofBlock(ModBlocks.blockCasings5Misc, 4)),
- 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',
+ buildHatchAdder(GregtechMetaTileEntity_SpargeTower.class)
+ .atLeast(Energy, InputHatch, InputBus, Maintenance)
+ .disallowOnly(ForgeDirection.UP)
+ .casingIndex(getCasingIndex())
+ .dot(1)
+ .buildAndChain(
+ onElementPass(
+ GregtechMetaTileEntity_SpargeTower::onCasingFound,
+ ofBlock(ModBlocks.blockCasings5Misc, 4))))
+ .addElement(
+ 'l',
+ ofChain(
+ buildHatchAdder(GregtechMetaTileEntity_SpargeTower.class).atLeast(layeredOutputHatch)
+ .disallowOnly(ForgeDirection.UP, ForgeDirection.DOWN)
+ .casingIndex(getCasingIndex())
+ .dot(2)
+ .build(),
+ ofHatchAdder(GregtechMetaTileEntity_SpargeTower::addEnergyInputToMachineList, getCasingIndex(), 2),
+ ofHatchAdder(GregtechMetaTileEntity_SpargeTower::addMaintenanceToMachineList, getCasingIndex(), 2),
+ onElementPass(
+ GregtechMetaTileEntity_SpargeTower::onCasingFound,
+ ofBlock(ModBlocks.blockCasings5Misc, 4))))
+ .addElement(
+ 'c',
+ ofChain(
+ onElementPass(
+ t -> t.onTopLayerFound(false),
+ ofHatchAdder(GregtechMetaTileEntity_SpargeTower::addOutputToMachineList, getCasingIndex(), 3)),
+ onElementPass(
+ t -> t.onTopLayerFound(false),
+ ofHatchAdder(
+ GregtechMetaTileEntity_SpargeTower::addMaintenanceToMachineList,
+ getCasingIndex(),
+ 3)),
+ onElementPass(t -> t.onTopLayerFound(true), ofBlock(ModBlocks.blockCasings5Misc, 4)),
+ isAir()))
+ .build();
}
protected final List<List<GT_MetaTileEntity_Hatch_Output>> mOutputHatchesByLayer = new ArrayList<>();
@@ -141,17 +137,21 @@ public class GregtechMetaTileEntity_SpargeTower extends GregtechMeta_MultiBlockB
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType("Gas Sparge Tower").addInfo("Controller block for the Sparging Tower")
- .addInfo("Runs gases through depleted molten salts to extract precious fluids")
- .addInfo("Works the same way as the Distillation Tower, but with a fixed height of 8")
- .addInfo("Fluids are only put out at the correct height")
- .addInfo("The correct height equals the slot number in the NEI recipe").addSeparator()
- .beginStructureBlock(3, 8, 3, true).addController("Front bottom")
- .addOtherStructurePart("Sparge Tower Exterior Casing", "45 (minimum)")
- .addEnergyHatch("Any casing", 1, 2).addMaintenanceHatch("Any casing", 1, 2, 3)
- .addInputHatch("2x Input Hatches (Any bottom layer casing)", 1)
- .addOutputHatch("6x Output Hatches (At least one per layer except bottom layer)", 2, 3)
- .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType("Gas Sparge Tower")
+ .addInfo("Controller block for the Sparging Tower")
+ .addInfo("Runs gases through depleted molten salts to extract precious fluids")
+ .addInfo("Works the same way as the Distillation Tower, but with a fixed height of 8")
+ .addInfo("Fluids are only put out at the correct height")
+ .addInfo("The correct height equals the slot number in the NEI recipe")
+ .addSeparator()
+ .beginStructureBlock(3, 8, 3, true)
+ .addController("Front bottom")
+ .addOtherStructurePart("Sparge Tower Exterior Casing", "45 (minimum)")
+ .addEnergyHatch("Any casing", 1, 2)
+ .addMaintenanceHatch("Any casing", 1, 2, 3)
+ .addInputHatch("2x Input Hatches (Any bottom layer casing)", 1)
+ .addOutputHatch("6x Output Hatches (At least one per layer except bottom layer)", 2, 3)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -172,7 +172,8 @@ public class GregtechMetaTileEntity_SpargeTower extends GregtechMeta_MultiBlockB
@Override
public RecipeMap<?> getRecipeMap() {
- if (GTPPRecipeMaps.spargeTowerFakeRecipes.getAllRecipes().isEmpty()) {
+ if (GTPPRecipeMaps.spargeTowerFakeRecipes.getAllRecipes()
+ .isEmpty()) {
generateRecipes();
}
return GTPPRecipeMaps.spargeTowerFakeRecipes;
@@ -181,19 +182,20 @@ public class GregtechMetaTileEntity_SpargeTower extends GregtechMeta_MultiBlockB
private static boolean generateRecipes() {
for (GasSpargingRecipe aRecipe : GasSpargingRecipeMap.mRecipes) {
GT_Recipe newRecipe = new GT_Recipe(
- false,
- new ItemStack[] {},
- new ItemStack[] {},
- null,
- null,
- aRecipe.mFluidInputs.clone(),
- new FluidStack[] {},
- aRecipe.mDuration,
- aRecipe.mEUt,
- 0);
+ false,
+ new ItemStack[] {},
+ new ItemStack[] {},
+ null,
+ null,
+ aRecipe.mFluidInputs.clone(),
+ new FluidStack[] {},
+ aRecipe.mDuration,
+ aRecipe.mEUt,
+ 0);
GTPPRecipeMaps.spargeTowerFakeRecipes.add(newRecipe);
}
- return !GTPPRecipeMaps.spargeTowerFakeRecipes.getAllRecipes().isEmpty();
+ return !GTPPRecipeMaps.spargeTowerFakeRecipes.getAllRecipes()
+ .isEmpty();
}
@Override
@@ -209,11 +211,11 @@ public class GregtechMetaTileEntity_SpargeTower extends GregtechMeta_MultiBlockB
FluidStack[] tFluids = tFluidList.toArray(new FluidStack[0]);
if (tFluids.length > 0) {
GT_Recipe tRecipe = getRecipeMap()
- .findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[tTier], tFluids);
+ .findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[tTier], tFluids);
if (tRecipe != null) {
FluidStack[] possibleOutputs = getPossibleByproductsOfSparge(
- tRecipe.mFluidInputs[0],
- tRecipe.mFluidInputs[1]).toArray(new FluidStack[0]);
+ tRecipe.mFluidInputs[0],
+ tRecipe.mFluidInputs[1]).toArray(new FluidStack[0]);
if (canOutputAll(possibleOutputs) && tRecipe.isRecipeInputEqual(true, tFluids)) {
this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
this.mEfficiencyIncrease = 10000;
@@ -221,8 +223,8 @@ public class GregtechMetaTileEntity_SpargeTower extends GregtechMeta_MultiBlockB
calculateOverclockedNessMulti((long) tRecipe.mEUt, tRecipe.mDuration, 1, tVoltage);
mMaxProgresstime = Math.max(1, mMaxProgresstime);
ArrayList<FluidStack> aFluidOutputs = getByproductsOfSparge(
- tRecipe.mFluidInputs[0],
- tRecipe.mFluidInputs[1]);
+ tRecipe.mFluidInputs[0],
+ tRecipe.mFluidInputs[1]);
this.mOutputFluids = aFluidOutputs.toArray(new FluidStack[0]);
updateSlots();
@@ -240,7 +242,7 @@ public class GregtechMetaTileEntity_SpargeTower extends GregtechMeta_MultiBlockB
}
private static List<FluidStack> getPossibleByproductsOfSparge(final FluidStack aSpargeGas,
- final FluidStack aSpentFuel) {
+ final FluidStack aSpentFuel) {
GasSpargingRecipe aSpargeRecipe = GasSpargingRecipeMap.findRecipe(aSpargeGas, aSpentFuel);
ArrayList<FluidStack> aOutputGases = new ArrayList<>();
if (aSpargeRecipe == null) {
@@ -264,7 +266,7 @@ public class GregtechMetaTileEntity_SpargeTower extends GregtechMeta_MultiBlockB
}
private static ArrayList<FluidStack> getByproductsOfSparge(final FluidStack aSpargeGas,
- final FluidStack aSpentFuel) {
+ final FluidStack aSpentFuel) {
GasSpargingRecipe aSpargeRecipe = GasSpargingRecipeMap.findRecipe(aSpargeGas, aSpentFuel);
ArrayList<FluidStack> aOutputGases = new ArrayList<>();
if (aSpargeRecipe == null) {
@@ -309,12 +311,13 @@ public class GregtechMetaTileEntity_SpargeTower extends GregtechMeta_MultiBlockB
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)) {
+ || !(aTileEntity.getMetaTileEntity() instanceof GT_MetaTileEntity_Hatch_Output tHatch)) {
Logger.INFO("Bad Output Hatch");
return false;
}
@@ -322,7 +325,8 @@ public class GregtechMetaTileEntity_SpargeTower extends GregtechMeta_MultiBlockB
mOutputHatchesByLayer.add(new ArrayList<>());
}
tHatch.updateTexture(aBaseCasingIndex);
- boolean addedHatch = mOutputHatchesByLayer.get(mHeight - 1).add(tHatch);
+ boolean addedHatch = mOutputHatchesByLayer.get(mHeight - 1)
+ .add(tHatch);
Logger.INFO("Added Hatch: " + addedHatch);
return addedHatch;
}
@@ -359,7 +363,8 @@ public class GregtechMetaTileEntity_SpargeTower extends GregtechMeta_MultiBlockB
// check each layer
while (mHeight < 8 && checkPiece(STRUCTURE_PIECE_LAYER, 1, mHeight, 0) && !mTopLayerFound) {
- if (mOutputHatchesByLayer.get(mHeight - 1).isEmpty()) {
+ if (mOutputHatchesByLayer.get(mHeight - 1)
+ .isEmpty()) {
// layer without output hatch
Logger.INFO("Height: " + mHeight + " - Missing output on " + (mHeight - 1));
return false;
@@ -429,28 +434,28 @@ public class GregtechMetaTileEntity_SpargeTower extends GregtechMeta_MultiBlockB
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
@@ -466,23 +471,22 @@ public class GregtechMetaTileEntity_SpargeTower extends GregtechMeta_MultiBlockB
@Override
public boolean onPlungerRightClick(EntityPlayer aPlayer, ForgeDirection side, float aX, float aY, float aZ) {
int aLayerIndex = 0;
- PlayerUtils.messagePlayer(
- aPlayer,
- "Trying to clear " + mOutputHatchesByLayer.size() + " layers of output hatches.");
+ PlayerUtils
+ .messagePlayer(aPlayer, "Trying to clear " + mOutputHatchesByLayer.size() + " layers of output hatches.");
for (List<GT_MetaTileEntity_Hatch_Output> layer : this.mOutputHatchesByLayer) {
int aHatchIndex = 0;
for (GT_MetaTileEntity_Hatch_Output hatch : layer) {
if (hatch.mFluid != null) {
PlayerUtils.messagePlayer(
- aPlayer,
- "Clearing " + hatch.mFluid.amount
- + "L of "
- + hatch.mFluid.getLocalizedName()
- + " from hatch "
- + aHatchIndex
- + " on layer "
- + aLayerIndex
- + ".");
+ aPlayer,
+ "Clearing " + hatch.mFluid.amount
+ + "L of "
+ + hatch.mFluid.getLocalizedName()
+ + " from hatch "
+ + aHatchIndex
+ + " on layer "
+ + aLayerIndex
+ + ".");
hatch.mFluid = null;
}
aHatchIndex++;
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/advanced/GregtechMetaTileEntity_Adv_DistillationTower.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/advanced/GregtechMetaTileEntity_Adv_DistillationTower.java
index 1c84c7886b..8296b8e7cb 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/advanced/GregtechMetaTileEntity_Adv_DistillationTower.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/advanced/GregtechMetaTileEntity_Adv_DistillationTower.java
@@ -56,7 +56,7 @@ import gtPlusPlus.xmod.gregtech.api.enums.GregtechItemList;
import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.GregtechMeta_MultiBlockBase;
public class GregtechMetaTileEntity_Adv_DistillationTower extends
- GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_Adv_DistillationTower> implements ISurvivalConstructable {
+ GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_Adv_DistillationTower> implements ISurvivalConstructable {
private Mode mMode = Mode.DistillationTower;
private boolean mUpgraded = false;
@@ -90,81 +90,88 @@ public class GregtechMetaTileEntity_Adv_DistillationTower extends
public IStructureDefinition<GregtechMetaTileEntity_Adv_DistillationTower> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
IHatchElement<GregtechMetaTileEntity_Adv_DistillationTower> layeredOutputHatch = OutputHatch
- .withCount(GregtechMetaTileEntity_Adv_DistillationTower::getCurrentLayerOutputHatchCount)
- .withAdder(GregtechMetaTileEntity_Adv_DistillationTower::addLayerOutputHatch);
+ .withCount(GregtechMetaTileEntity_Adv_DistillationTower::getCurrentLayerOutputHatchCount)
+ .withAdder(GregtechMetaTileEntity_Adv_DistillationTower::addLayerOutputHatch);
STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_Adv_DistillationTower>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[][] { { "ttt", "ttt", "ttt" }, }))
- .addElement(
- 'b',
- ofChain(
- buildHatchAdder(GregtechMetaTileEntity_Adv_DistillationTower.class)
- .atLeast(Energy, OutputBus, InputHatch, InputBus, Maintenance)
- .disallowOnly(ForgeDirection.UP).casingIndex(getCasingTextureId()).dot(1)
- .build(),
- ofBlock(GregTech_API.sBlockCasings4, 1)))
- .addElement(
- 'l',
- ofChain(
- buildHatchAdder(GregtechMetaTileEntity_Adv_DistillationTower.class)
- .atLeast(layeredOutputHatch, Energy, Maintenance)
- .disallowOnly(ForgeDirection.UP, ForgeDirection.DOWN)
- .casingIndex(getCasingTextureId()).dot(2).build(),
- ofHatchAdder(
- GregtechMetaTileEntity_Adv_DistillationTower::addMufflerToMachineList,
- getCasingTextureId(),
- 3),
- ofBlock(GregTech_API.sBlockCasings4, 1)))
- .addElement(
- 'c',
- ofChain(
- onElementPass(
- GregtechMetaTileEntity_Adv_DistillationTower::onTopLayerFound,
- ofHatchAdder(
- GregtechMetaTileEntity_Adv_DistillationTower::addMufflerToMachineList,
- getCasingTextureId(),
- 3)),
- onElementPass(
- GregtechMetaTileEntity_Adv_DistillationTower::onTopLayerFound,
- ofHatchAdder(
- GregtechMetaTileEntity_Adv_DistillationTower::addOutputToMachineList,
- getCasingTextureId(),
- 3)),
- onElementPass(
- GregtechMetaTileEntity_Adv_DistillationTower::onTopLayerFound,
- ofHatchAdder(
- GregtechMetaTileEntity_Adv_DistillationTower::addMaintenanceToMachineList,
- getCasingTextureId(),
- 3)),
- onElementPass(
- GregtechMetaTileEntity_Adv_DistillationTower::onTopLayerFound,
- ofBlock(GregTech_API.sBlockCasings4, 1)),
- isAir()))
- .addElement(
- 't',
- buildHatchAdder(GregtechMetaTileEntity_Adv_DistillationTower.class)
- .atLeast(layeredOutputHatch, Muffler).disallowOnly(ForgeDirection.DOWN)
- .casingIndex(getCasingTextureId()).dot(2)
- .buildAndChain(GregTech_API.sBlockCasings4, 1))
- .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[][] { { "ttt", "ttt", "ttt" }, }))
+ .addElement(
+ 'b',
+ ofChain(
+ buildHatchAdder(GregtechMetaTileEntity_Adv_DistillationTower.class)
+ .atLeast(Energy, OutputBus, InputHatch, InputBus, Maintenance)
+ .disallowOnly(ForgeDirection.UP)
+ .casingIndex(getCasingTextureId())
+ .dot(1)
+ .build(),
+ ofBlock(GregTech_API.sBlockCasings4, 1)))
+ .addElement(
+ 'l',
+ ofChain(
+ buildHatchAdder(GregtechMetaTileEntity_Adv_DistillationTower.class)
+ .atLeast(layeredOutputHatch, Energy, Maintenance)
+ .disallowOnly(ForgeDirection.UP, ForgeDirection.DOWN)
+ .casingIndex(getCasingTextureId())
+ .dot(2)
+ .build(),
+ ofHatchAdder(
+ GregtechMetaTileEntity_Adv_DistillationTower::addMufflerToMachineList,
+ getCasingTextureId(),
+ 3),
+ ofBlock(GregTech_API.sBlockCasings4, 1)))
+ .addElement(
+ 'c',
+ ofChain(
+ onElementPass(
+ GregtechMetaTileEntity_Adv_DistillationTower::onTopLayerFound,
+ ofHatchAdder(
+ GregtechMetaTileEntity_Adv_DistillationTower::addMufflerToMachineList,
+ getCasingTextureId(),
+ 3)),
+ onElementPass(
+ GregtechMetaTileEntity_Adv_DistillationTower::onTopLayerFound,
+ ofHatchAdder(
+ GregtechMetaTileEntity_Adv_DistillationTower::addOutputToMachineList,
+ getCasingTextureId(),
+ 3)),
+ onElementPass(
+ GregtechMetaTileEntity_Adv_DistillationTower::onTopLayerFound,
+ ofHatchAdder(
+ GregtechMetaTileEntity_Adv_DistillationTower::addMaintenanceToMachineList,
+ getCasingTextureId(),
+ 3)),
+ onElementPass(
+ GregtechMetaTileEntity_Adv_DistillationTower::onTopLayerFound,
+ ofBlock(GregTech_API.sBlockCasings4, 1)),
+ isAir()))
+ .addElement(
+ 't',
+ buildHatchAdder(GregtechMetaTileEntity_Adv_DistillationTower.class)
+ .atLeast(layeredOutputHatch, Muffler)
+ .disallowOnly(ForgeDirection.DOWN)
+ .casingIndex(getCasingTextureId())
+ .dot(2)
+ .buildAndChain(GregTech_API.sBlockCasings4, 1))
+ .build();
}
return STRUCTURE_DEFINITION;
}
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) && mOutputHatches.add(tHatch);
+ return mOutputHatchesByLayer.get(mHeight - 1)
+ .add(tHatch) && mOutputHatches.add(tHatch);
}
protected void onTopLayerFound() {
@@ -174,17 +181,26 @@ public class GregtechMetaTileEntity_Adv_DistillationTower extends
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for the Advanced Distillation Tower")
- .addInfo("Use 85% less energy in distillery mode").addInfo("250%/100% faster in DT/distillery mode")
- .addInfo("Right click the controller with screwdriver to change mode.")
- .addInfo("Max parallel dictated by tower tier and mode").addInfo("DTower Mode: T1=4, T2=12")
- .addInfo("Distilery Mode: Tower Tier * (4*InputTier)")
- .addInfo("Distilery Mode require a full height tower").addPollutionAmount(getPollutionPerSecond(null))
- .addSeparator().addCasingInfoMin("Clean Stainless Steel Machine Casing", 7, false)
- .addInputBus("Bottom Casing", 1).addOutputBus("Bottom Casing", 1).addInputHatch("Bottom Casing", 1)
- .addMaintenanceHatch("Any Casing", 1).addEnergyHatch("Any Casing", 1)
- .addOutputHatch("One per layer except bottom", 2).addMufflerHatch("Top Casing", 3)
- .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for the Advanced Distillation Tower")
+ .addInfo("Use 85% less energy in distillery mode")
+ .addInfo("250%/100% faster in DT/distillery mode")
+ .addInfo("Right click the controller with screwdriver to change mode.")
+ .addInfo("Max parallel dictated by tower tier and mode")
+ .addInfo("DTower Mode: T1=4, T2=12")
+ .addInfo("Distilery Mode: Tower Tier * (4*InputTier)")
+ .addInfo("Distilery Mode require a full height tower")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .addCasingInfoMin("Clean Stainless Steel Machine Casing", 7, false)
+ .addInputBus("Bottom Casing", 1)
+ .addOutputBus("Bottom Casing", 1)
+ .addInputHatch("Bottom Casing", 1)
+ .addMaintenanceHatch("Any Casing", 1)
+ .addEnergyHatch("Any Casing", 1)
+ .addOutputHatch("One per layer except bottom", 2)
+ .addMufflerHatch("Top Casing", 3)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -207,28 +223,28 @@ public class GregtechMetaTileEntity_Adv_DistillationTower extends
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
@@ -246,7 +262,8 @@ public class GregtechMetaTileEntity_Adv_DistillationTower extends
if (!checkPiece(STRUCTURE_PIECE_LAYER, 1, mHeight, 0)) {
return false;
}
- if (mOutputHatchesByLayer.size() < mHeight || mOutputHatchesByLayer.get(mHeight - 1).isEmpty())
+ if (mOutputHatchesByLayer.size() < mHeight || mOutputHatchesByLayer.get(mHeight - 1)
+ .isEmpty())
// layer without output hatch
return false;
if (mTopLayerFound || !mMufflerHatches.isEmpty()) {
@@ -430,9 +447,10 @@ public class GregtechMetaTileEntity_Adv_DistillationTower extends
@Override
public boolean canDumpFluidToME() {
// All fluids can be dumped to ME only if each layer contains a ME Output Hatch.
- return this.mOutputHatchesByLayer.stream().allMatch(
+ return this.mOutputHatchesByLayer.stream()
+ .allMatch(
tLayerOutputHatches -> tLayerOutputHatches.stream()
- .anyMatch(tHatch -> tHatch instanceof GT_MetaTileEntity_Hatch_Output_ME));
+ .anyMatch(tHatch -> tHatch instanceof GT_MetaTileEntity_Hatch_Output_ME));
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/advanced/GregtechMetaTileEntity_Adv_EBF.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/advanced/GregtechMetaTileEntity_Adv_EBF.java
index 31880e0266..89c219c14e 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/advanced/GregtechMetaTileEntity_Adv_EBF.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/advanced/GregtechMetaTileEntity_Adv_EBF.java
@@ -56,7 +56,7 @@ import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.Gregtech
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
public class GregtechMetaTileEntity_Adv_EBF extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_Adv_EBF>
- implements ISurvivalConstructable {
+ implements ISurvivalConstructable {
public static int CASING_TEXTURE_ID;
public static String mHotFuelName = "Blazing Pyrotheum";
@@ -91,57 +91,65 @@ public class GregtechMetaTileEntity_Adv_EBF extends GregtechMeta_MultiBlockBase<
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Factory Grade Advanced Blast Furnace")
- .addInfo("Speed: +120% | EU Usage: 90% | Parallel: 8")
- .addInfo("Consumes 10L of " + mHotFuelName + " per second during operation")
- .addInfo("Constructed exactly the same as a normal EBF").addPollutionAmount(getPollutionPerSecond(null))
- .addSeparator().addController("Bottom center").addCasingInfoMin(mCasingName, 8, false)
- .addInputHatch("Any Casing", 1).addInputBus("Any Casing", 1).addOutputBus("Any Casing", 1)
- .addOutputHatch("Any Casing", 1).addEnergyHatch("Any Casing", 1).addMufflerHatch("Any Casing", 1)
- .addMaintenanceHatch("Any Casing", 1).addOtherStructurePart(mHatchName, "Any Casing", 1)
- .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Factory Grade Advanced Blast Furnace")
+ .addInfo("Speed: +120% | EU Usage: 90% | Parallel: 8")
+ .addInfo("Consumes 10L of " + mHotFuelName + " per second during operation")
+ .addInfo("Constructed exactly the same as a normal EBF")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .addController("Bottom center")
+ .addCasingInfoMin(mCasingName, 8, false)
+ .addInputHatch("Any Casing", 1)
+ .addInputBus("Any Casing", 1)
+ .addOutputBus("Any Casing", 1)
+ .addOutputHatch("Any Casing", 1)
+ .addEnergyHatch("Any Casing", 1)
+ .addMufflerHatch("Any Casing", 1)
+ .addMaintenanceHatch("Any Casing", 1)
+ .addOtherStructurePart(mHatchName, "Any Casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@Override
public String[] getExtraInfoData() {
return new String[] { StatCollector.translateToLocal("GT5U.EBF.heat") + ": "
- + EnumChatFormatting.GREEN
- + GT_Utility.formatNumbers(mHeatingCapacity.getHeat())
- + EnumChatFormatting.RESET
- + " K" };
+ + EnumChatFormatting.GREEN
+ + GT_Utility.formatNumbers(mHeatingCapacity.getHeat())
+ + EnumChatFormatting.RESET
+ + " K" };
}
@Override
public IStructureDefinition<GregtechMetaTileEntity_Adv_EBF> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
- STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_Adv_EBF>builder().addShape(
+ STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_Adv_EBF>builder()
+ .addShape(
mName,
transpose(
- new String[][] { { "CCC", "CCC", "CCC" }, { "HHH", "H-H", "HHH" }, { "HHH", "H-H", "HHH" },
- { "C~C", "CCC", "CCC" }, }))
- .addElement(
- 'C',
- ofChain(
- buildHatchAdder(GregtechMetaTileEntity_Adv_EBF.class)
- .adder(GregtechMetaTileEntity_Adv_EBF::addPyrotheumHatch).hatchId(968)
- .shouldReject(x -> !x.mPyrotheumHatches.isEmpty())
- .casingIndex(CASING_TEXTURE_ID).dot(1).build(),
- buildHatchAdder(GregtechMetaTileEntity_Adv_EBF.class).atLeast(
- InputBus,
- OutputBus,
- Maintenance,
- Energy,
- Muffler,
- InputHatch,
- OutputHatch).casingIndex(CASING_TEXTURE_ID).dot(1).build(),
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings3Misc, 11))))
- .addElement(
- 'H',
- ofCoil(
- GregtechMetaTileEntity_Adv_EBF::setCoilLevel,
- GregtechMetaTileEntity_Adv_EBF::getCoilLevel))
- .build();
+ new String[][] { { "CCC", "CCC", "CCC" }, { "HHH", "H-H", "HHH" }, { "HHH", "H-H", "HHH" },
+ { "C~C", "CCC", "CCC" }, }))
+ .addElement(
+ 'C',
+ ofChain(
+ buildHatchAdder(GregtechMetaTileEntity_Adv_EBF.class)
+ .adder(GregtechMetaTileEntity_Adv_EBF::addPyrotheumHatch)
+ .hatchId(968)
+ .shouldReject(x -> !x.mPyrotheumHatches.isEmpty())
+ .casingIndex(CASING_TEXTURE_ID)
+ .dot(1)
+ .build(),
+ buildHatchAdder(GregtechMetaTileEntity_Adv_EBF.class)
+ .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler, InputHatch, OutputHatch)
+ .casingIndex(CASING_TEXTURE_ID)
+ .dot(1)
+ .build(),
+ onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings3Misc, 11))))
+ .addElement(
+ 'H',
+ ofCoil(GregtechMetaTileEntity_Adv_EBF::setCoilLevel, GregtechMetaTileEntity_Adv_EBF::getCoilLevel))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -176,7 +184,8 @@ public class GregtechMetaTileEntity_Adv_EBF extends GregtechMeta_MultiBlockBase<
} else {
IMetaTileEntity aMetaTileEntity = aTileEntity.getMetaTileEntity();
if (aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_CustomFluidBase
- && aMetaTileEntity.getBaseMetaTileEntity().getMetaTileID() == 968) {
+ && aMetaTileEntity.getBaseMetaTileEntity()
+ .getMetaTileID() == 968) {
return addToMachineListInternal(mPyrotheumHatches, aTileEntity, aBaseCasingIndex);
}
}
@@ -227,16 +236,20 @@ public class GregtechMetaTileEntity_Adv_EBF extends GregtechMeta_MultiBlockBase<
@Override
protected CheckRecipeResult validateRecipe(@NotNull GT_Recipe recipe) {
return recipe.mSpecialValue <= getCoilLevel().getHeat() ? CheckRecipeResultRegistry.SUCCESSFUL
- : CheckRecipeResultRegistry.insufficientHeat(recipe.mSpecialValue);
+ : CheckRecipeResultRegistry.insufficientHeat(recipe.mSpecialValue);
}
@NotNull
@Override
protected GT_OverclockCalculator createOverclockCalculator(@NotNull GT_Recipe recipe) {
- return super.createOverclockCalculator(recipe).setHeatOC(true).setHeatDiscount(true)
- .setRecipeHeat(recipe.mSpecialValue).setMachineHeat((int) getCoilLevel().getHeat());
+ return super.createOverclockCalculator(recipe).setHeatOC(true)
+ .setHeatDiscount(true)
+ .setRecipeHeat(recipe.mSpecialValue)
+ .setMachineHeat((int) getCoilLevel().getHeat());
}
- }.setSpeedBonus(1F / 2.2F).setEuModifier(0.9F).setMaxParallelSupplier(this::getMaxParallelRecipes);
+ }.setSpeedBonus(1F / 2.2F)
+ .setEuModifier(0.9F)
+ .setMaxParallelSupplier(this::getMaxParallelRecipes);
}
@Override
@@ -266,15 +279,16 @@ public class GregtechMetaTileEntity_Adv_EBF extends GregtechMeta_MultiBlockBase<
super.onPostTick(aBaseMetaTileEntity, aTick);
// Try dry Pyrotheum after all other logic
if (this.mStartUpCheck < 0) {
- if (this.mMaxProgresstime > 0 && this.mProgresstime != 0
- || this.getBaseMetaTileEntity().hasWorkJustBeenEnabled()) {
- if (aTick % 10 == 0 || this.getBaseMetaTileEntity().hasWorkJustBeenEnabled()) {
+ if (this.mMaxProgresstime > 0 && this.mProgresstime != 0 || this.getBaseMetaTileEntity()
+ .hasWorkJustBeenEnabled()) {
+ if (aTick % 10 == 0 || this.getBaseMetaTileEntity()
+ .hasWorkJustBeenEnabled()) {
if (!this.depleteInputFromRestrictedHatches(this.mPyrotheumHatches, 5)) {
if (mGraceTimer-- == 0) {
this.causeMaintenanceIssue();
this.stopMachine(
- ShutDownReasonRegistry.outOfFluid(
- Objects.requireNonNull(FluidUtils.getFluidStack("pyrotheum", 10))));
+ ShutDownReasonRegistry
+ .outOfFluid(Objects.requireNonNull(FluidUtils.getFluidStack("pyrotheum", 10))));
mGraceTimer = 2;
}
}
@@ -292,9 +306,8 @@ public class GregtechMetaTileEntity_Adv_EBF extends GregtechMeta_MultiBlockBase<
public void onModeChangeByScrewdriver(ForgeDirection side, EntityPlayer aPlayer, float aX, float aY, float aZ) {
inputSeparation = !inputSeparation;
aPlayer.addChatMessage(
- new ChatComponentTranslation(
- inputSeparation ? "interaction.separateBusses.enabled"
- : "interaction.separateBusses.disabled"));
+ new ChatComponentTranslation(
+ inputSeparation ? "interaction.separateBusses.enabled" : "interaction.separateBusses.disabled"));
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/advanced/GregtechMetaTileEntity_Adv_Fusion_MK4.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/advanced/GregtechMetaTileEntity_Adv_Fusion_MK4.java
index ee4db3c76e..0981a34b85 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/advanced/GregtechMetaTileEntity_Adv_Fusion_MK4.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/advanced/GregtechMetaTileEntity_Adv_Fusion_MK4.java
@@ -52,18 +52,24 @@ public class GregtechMetaTileEntity_Adv_Fusion_MK4 extends GT_MetaTileEntity_Fus
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType("Fusion Reactor").addInfo("HARNESSING THE POWER OF A BLUE GIANT")
- .addInfo("Controller block for the Fusion Reactor Mk IV")
- .addInfo("131072EU/t and 320M 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").addInfo("Performs 4/4 overclocks")
- .addSeparator().beginStructureBlock(15, 3, 15, false).addController("See diagram when placed")
- .addCasingInfoMin("Fusion Machine Casings MK III", 79, false)
- .addStructureInfo("Cover the coils with casing")
- .addOtherStructurePart("Advanced Fusion Coils", "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 UHV or better")
- .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType("Fusion Reactor")
+ .addInfo("HARNESSING THE POWER OF A BLUE GIANT")
+ .addInfo("Controller block for the Fusion Reactor Mk IV")
+ .addInfo("131072EU/t and 320M 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")
+ .addInfo("Performs 4/4 overclocks")
+ .addSeparator()
+ .beginStructureBlock(15, 3, 15, false)
+ .addController("See diagram when placed")
+ .addCasingInfoMin("Fusion Machine Casings MK III", 79, false)
+ .addStructureInfo("Cover the coils with casing")
+ .addOtherStructurePart("Advanced Fusion Coils", "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 UHV or better")
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -119,34 +125,37 @@ public class GregtechMetaTileEntity_Adv_Fusion_MK4 extends GT_MetaTileEntity_Fus
@Override
public ITexture[] getTexture(final IGregTechTileEntity aBaseMetaTileEntity, final ForgeDirection side,
- final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
+ final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
if (side == facing) {
return new ITexture[] {
- new GT_RenderedTexture(
- Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS,
- Dyes.getModulation(-1, Dyes._NULL.mRGBa)),
- TextureFactory.builder().addIcon(this.getIconOverlay()).extFacing().build() };
+ new GT_RenderedTexture(
+ Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS,
+ Dyes.getModulation(-1, Dyes._NULL.mRGBa)),
+ TextureFactory.builder()
+ .addIcon(this.getIconOverlay())
+ .extFacing()
+ .build() };
} else if (!aActive) {
return new ITexture[] { new GT_RenderedTexture(
- Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS,
- Dyes.getModulation(-1, Dyes._NULL.mRGBa)) };
+ Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS,
+ Dyes.getModulation(-1, Dyes._NULL.mRGBa)) };
} else {
return new ITexture[] { new GT_RenderedTexture(
- TexturesGtBlock.TEXTURE_CASING_FUSION_CASING_ULTRA,
- Dyes.getModulation(-1, Dyes._NULL.mRGBa)) };
+ TexturesGtBlock.TEXTURE_CASING_FUSION_CASING_ULTRA,
+ Dyes.getModulation(-1, Dyes._NULL.mRGBa)) };
}
}
@Override
public ITexture getTextureOverlay() {
return new GT_RenderedTexture(
- this.getBaseMetaTileEntity().isActive() ? TexturesGtBlock.Casing_Machine_Screen_3
- : TexturesGtBlock.Casing_Machine_Screen_1);
+ this.getBaseMetaTileEntity()
+ .isActive() ? TexturesGtBlock.Casing_Machine_Screen_3 : TexturesGtBlock.Casing_Machine_Screen_1);
}
public IIconContainer getIconOverlay() {
- return this.getBaseMetaTileEntity().isActive() ? TexturesGtBlock.Casing_Machine_Screen_3
- : TexturesGtBlock.Casing_Machine_Screen_1;
+ return this.getBaseMetaTileEntity()
+ .isActive() ? TexturesGtBlock.Casing_Machine_Screen_3 : TexturesGtBlock.Casing_Machine_Screen_1;
}
@Override
@@ -186,6 +195,6 @@ public class GregtechMetaTileEntity_Adv_Fusion_MK4 extends GT_MetaTileEntity_Fus
}
return new String[] { "Fusion Reactor MK " + tier, "EU Required: " + powerRequired + "EU/t",
- "Stored EU: " + mEUStore + " / " + maxEUStore(), "Plasma Output: " + plasmaOut + "L/t" };
+ "Stored EU: " + mEUStore + " / " + maxEUStore(), "Plasma Output: " + plasmaOut + "L/t" };
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/advanced/GregtechMetaTileEntity_Adv_Fusion_MK5.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/advanced/GregtechMetaTileEntity_Adv_Fusion_MK5.java
index 5d546b5bfb..b2c2e5eb27 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/advanced/GregtechMetaTileEntity_Adv_Fusion_MK5.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/advanced/GregtechMetaTileEntity_Adv_Fusion_MK5.java
@@ -52,18 +52,24 @@ public class GregtechMetaTileEntity_Adv_Fusion_MK5 extends GT_MetaTileEntity_Fus
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType("Fusion Reactor").addInfo("HARNESSING THE POWER OF A NEUTRON STAR")
- .addInfo("Controller block for the Fusion Reactor Mk V")
- .addInfo("524,288EU/t and 1.28B 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").addInfo("Performs 4/4 overclocks")
- .addSeparator().beginStructureBlock(15, 3, 15, false).addController("See diagram when placed")
- .addCasingInfoMin("Fusion Machine Casings MK IV", 79, false)
- .addStructureInfo("Cover the coils with casing")
- .addOtherStructurePart("Advanced Fusion Coils II", "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 UEV or better")
- .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType("Fusion Reactor")
+ .addInfo("HARNESSING THE POWER OF A NEUTRON STAR")
+ .addInfo("Controller block for the Fusion Reactor Mk V")
+ .addInfo("524,288EU/t and 1.28B 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")
+ .addInfo("Performs 4/4 overclocks")
+ .addSeparator()
+ .beginStructureBlock(15, 3, 15, false)
+ .addController("See diagram when placed")
+ .addCasingInfoMin("Fusion Machine Casings MK IV", 79, false)
+ .addStructureInfo("Cover the coils with casing")
+ .addOtherStructurePart("Advanced Fusion Coils II", "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 UEV or better")
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -119,34 +125,37 @@ public class GregtechMetaTileEntity_Adv_Fusion_MK5 extends GT_MetaTileEntity_Fus
@Override
public ITexture[] getTexture(final IGregTechTileEntity aBaseMetaTileEntity, final ForgeDirection side,
- final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
+ final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
if (side == facing) {
return new ITexture[] {
- new GT_RenderedTexture(
- Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS,
- Dyes.getModulation(-1, Dyes._NULL.mRGBa)),
- TextureFactory.builder().addIcon(this.getIconOverlay()).extFacing().build() };
+ new GT_RenderedTexture(
+ Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS,
+ Dyes.getModulation(-1, Dyes._NULL.mRGBa)),
+ TextureFactory.builder()
+ .addIcon(this.getIconOverlay())
+ .extFacing()
+ .build() };
} else if (!aActive) {
return new ITexture[] { new GT_RenderedTexture(
- Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS,
- Dyes.getModulation(-1, Dyes._NULL.mRGBa)) };
+ Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS,
+ Dyes.getModulation(-1, Dyes._NULL.mRGBa)) };
} else {
return new ITexture[] { new GT_RenderedTexture(
- TexturesGtBlock.TEXTURE_CASING_FUSION_CASING_HYPER,
- Dyes.getModulation(-1, Dyes._NULL.mRGBa)) };
+ TexturesGtBlock.TEXTURE_CASING_FUSION_CASING_HYPER,
+ Dyes.getModulation(-1, Dyes._NULL.mRGBa)) };
}
}
@Override
public ITexture getTextureOverlay() {
return new GT_RenderedTexture(
- this.getBaseMetaTileEntity().isActive() ? TexturesGtBlock.Casing_Machine_Screen_Rainbow
- : TexturesGtBlock.Casing_Machine_Screen_1);
+ this.getBaseMetaTileEntity()
+ .isActive() ? TexturesGtBlock.Casing_Machine_Screen_Rainbow : TexturesGtBlock.Casing_Machine_Screen_1);
}
public IIconContainer getIconOverlay() {
- return this.getBaseMetaTileEntity().isActive() ? TexturesGtBlock.Casing_Machine_Screen_Rainbow
- : TexturesGtBlock.Casing_Machine_Screen_1;
+ return this.getBaseMetaTileEntity()
+ .isActive() ? TexturesGtBlock.Casing_Machine_Screen_Rainbow : TexturesGtBlock.Casing_Machine_Screen_1;
}
@Override
@@ -186,6 +195,6 @@ public class GregtechMetaTileEntity_Adv_Fusion_MK5 extends GT_MetaTileEntity_Fus
}
return new String[] { "Fusion Reactor MK " + tier, "EU Required: " + powerRequired + "EU/t",
- "Stored EU: " + mEUStore + " / " + maxEUStore(), "Plasma Output: " + plasmaOut + "L/t" };
+ "Stored EU: " + mEUStore + " / " + maxEUStore(), "Plasma Output: " + plasmaOut + "L/t" };
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/advanced/GregtechMetaTileEntity_Adv_HeatExchanger.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/advanced/GregtechMetaTileEntity_Adv_HeatExchanger.java
index 6a1edc3d08..e4340c4d28 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/advanced/GregtechMetaTileEntity_Adv_HeatExchanger.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/advanced/GregtechMetaTileEntity_Adv_HeatExchanger.java
@@ -43,71 +43,57 @@ import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.Gregtech
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
public class GregtechMetaTileEntity_Adv_HeatExchanger
- extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_Adv_HeatExchanger> {
+ extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_Adv_HeatExchanger> {
private static final int CASING_INDEX = TAE.getIndexFromPage(1, 12);
private static final String STRUCTURE_PIECE_MAIN = "main";
private static final IStructureDefinition<GregtechMetaTileEntity_Adv_HeatExchanger> STRUCTURE_DEFINITION = StructureDefinition
- .<GregtechMetaTileEntity_Adv_HeatExchanger>builder()
- .addShape(
- STRUCTURE_PIECE_MAIN,
- transpose(
- new String[][] { { " ccc ", "cCCCc", "cCCCc", "cCCCc", " ccc " },
- { " ccc ", "cPPPc", "cPPPc", "cPPPc", " ccc " },
- { " ccc ", "cPPPc", "cPPPc", "cPPPc", " ccc " },
- { " ccc ", "cPPPc", "cPPPc", "cPPPc", " ccc " },
- { " ccc ", "cPPPc", "cPPPc", "cPPPc", " ccc " },
- { " c~c ", "cPPPc", "cPPPc", "cPPPc", " ccc " },
- { " hhh ", "hHHHh", "hHHHh", "hHHHh", " hhh " },
- { " f f ", "f f", " ", "f f", " f f " },
- { " f f ", "f f", " ", "f f", " f f " }, }))
- .addElement('P', ofBlock(GregTech_API.sBlockCasings2, 15)).addElement('f', ofBlock(getFrame(), 0))
- .addElement(
- 'C',
- ofChain(
- ofHatchAdder(
- GregtechMetaTileEntity_Adv_HeatExchanger::addColdFluidOutputToMachineList,
- CASING_INDEX,
- 2),
- onElementPass(
- GregtechMetaTileEntity_Adv_HeatExchanger::onCasingAdded,
- ofBlock(ModBlocks.blockSpecialMultiCasings, 14))))
- .addElement(
- 'H',
- ofChain(
- ofHatchAdder(
- GregtechMetaTileEntity_Adv_HeatExchanger::addHotFluidInputToMachineList,
- CASING_INDEX,
- 3),
- onElementPass(
- GregtechMetaTileEntity_Adv_HeatExchanger::onCasingAdded,
- ofBlock(ModBlocks.blockSpecialMultiCasings, 14))))
- .addElement(
- 'h',
- ofChain(
- ofHatchAdder(
- GregtechMetaTileEntity_Adv_HeatExchanger::addInputToMachineList,
- CASING_INDEX,
- 1),
- ofHatchAdder(
- GregtechMetaTileEntity_Adv_HeatExchanger::addOutputToMachineList,
- CASING_INDEX,
- 1),
- ofHatchAdder(
- GregtechMetaTileEntity_Adv_HeatExchanger::addMaintenanceToMachineList,
- CASING_INDEX,
- 1),
- onElementPass(
- GregtechMetaTileEntity_Adv_HeatExchanger::onCasingAdded,
- ofBlock(ModBlocks.blockSpecialMultiCasings, 14))))
- .addElement(
- 'c',
- ofChain(
- onElementPass(
- GregtechMetaTileEntity_Adv_HeatExchanger::onCasingAdded,
- ofBlock(ModBlocks.blockSpecialMultiCasings, 14))))
- .build();
+ .<GregtechMetaTileEntity_Adv_HeatExchanger>builder()
+ .addShape(
+ STRUCTURE_PIECE_MAIN,
+ transpose(
+ new String[][] { { " ccc ", "cCCCc", "cCCCc", "cCCCc", " ccc " },
+ { " ccc ", "cPPPc", "cPPPc", "cPPPc", " ccc " }, { " ccc ", "cPPPc", "cPPPc", "cPPPc", " ccc " },
+ { " ccc ", "cPPPc", "cPPPc", "cPPPc", " ccc " }, { " ccc ", "cPPPc", "cPPPc", "cPPPc", " ccc " },
+ { " c~c ", "cPPPc", "cPPPc", "cPPPc", " ccc " }, { " hhh ", "hHHHh", "hHHHh", "hHHHh", " hhh " },
+ { " f f ", "f f", " ", "f f", " f f " },
+ { " f f ", "f f", " ", "f f", " f f " }, }))
+ .addElement('P', ofBlock(GregTech_API.sBlockCasings2, 15))
+ .addElement('f', ofBlock(getFrame(), 0))
+ .addElement(
+ 'C',
+ ofChain(
+ ofHatchAdder(
+ GregtechMetaTileEntity_Adv_HeatExchanger::addColdFluidOutputToMachineList,
+ CASING_INDEX,
+ 2),
+ onElementPass(
+ GregtechMetaTileEntity_Adv_HeatExchanger::onCasingAdded,
+ ofBlock(ModBlocks.blockSpecialMultiCasings, 14))))
+ .addElement(
+ 'H',
+ ofChain(
+ ofHatchAdder(GregtechMetaTileEntity_Adv_HeatExchanger::addHotFluidInputToMachineList, CASING_INDEX, 3),
+ onElementPass(
+ GregtechMetaTileEntity_Adv_HeatExchanger::onCasingAdded,
+ ofBlock(ModBlocks.blockSpecialMultiCasings, 14))))
+ .addElement(
+ 'h',
+ ofChain(
+ ofHatchAdder(GregtechMetaTileEntity_Adv_HeatExchanger::addInputToMachineList, CASING_INDEX, 1),
+ ofHatchAdder(GregtechMetaTileEntity_Adv_HeatExchanger::addOutputToMachineList, CASING_INDEX, 1),
+ ofHatchAdder(GregtechMetaTileEntity_Adv_HeatExchanger::addMaintenanceToMachineList, CASING_INDEX, 1),
+ onElementPass(
+ GregtechMetaTileEntity_Adv_HeatExchanger::onCasingAdded,
+ ofBlock(ModBlocks.blockSpecialMultiCasings, 14))))
+ .addElement(
+ 'c',
+ ofChain(
+ onElementPass(
+ GregtechMetaTileEntity_Adv_HeatExchanger::onCasingAdded,
+ ofBlock(ModBlocks.blockSpecialMultiCasings, 14))))
+ .build();
public static float penalty_per_config = 0.015f; // penalize 1.5% efficiency per circuitry level (1-25)
private GT_MetaTileEntity_Hatch_Input mInputHotFluidHatch;
@@ -128,24 +114,30 @@ public class GregtechMetaTileEntity_Adv_HeatExchanger
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for the XL Heat Exchanger")
- .addInfo("More complicated than a Fusion Reactor. Seriously")
- .addInfo("But you know this by now, right?").addInfo("Works as fast as 32 Large Heat Exchangers")
- .addSeparator().addInfo("Inputs are Hot Coolant or Lava")
- .addInfo("Outputs Coolant or Pahoehoe Lava and SH Steam/Steam")
- .addInfo("Outputs SH Steam if input flow is equal to or above a certain value:")
- .addInfo("Hot Coolant: 25,600 L/s, maximum 51,200 L/s, max output 10,240,000 SH Steam/s")
- .addInfo("Lava: 32,000 L/s, maximum 64,000 L/s, max output 5,120,000 SH Steam/s")
- .addInfo("A circuit in the controller lowers the SH Steam threshold and efficiency")
- .addInfo("3.75% reduction and 1.5% efficiency loss per circuit config over 1").addSeparator()
- .beginStructureBlock(5, 9, 5, false).addController("Front bottom")
- .addCasingInfoMin("Reinforced Heat Exchanger Casing", 90, false)
- .addOtherStructurePart("Tungstensteel Pipe Casing", "Center 3x5x3 (45 blocks)")
- .addMaintenanceHatch("Any casing", 1).addInputHatch("Hot fluid, bottom center", 2)
- .addInputHatch("Distilled water, any bottom layer casing", 1)
- .addOutputHatch("Cold fluid, top center", 3)
- .addOutputHatch("Steam/SH Steam, any bottom layer casing", 1)
- .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for the XL Heat Exchanger")
+ .addInfo("More complicated than a Fusion Reactor. Seriously")
+ .addInfo("But you know this by now, right?")
+ .addInfo("Works as fast as 32 Large Heat Exchangers")
+ .addSeparator()
+ .addInfo("Inputs are Hot Coolant or Lava")
+ .addInfo("Outputs Coolant or Pahoehoe Lava and SH Steam/Steam")
+ .addInfo("Outputs SH Steam if input flow is equal to or above a certain value:")
+ .addInfo("Hot Coolant: 25,600 L/s, maximum 51,200 L/s, max output 10,240,000 SH Steam/s")
+ .addInfo("Lava: 32,000 L/s, maximum 64,000 L/s, max output 5,120,000 SH Steam/s")
+ .addInfo("A circuit in the controller lowers the SH Steam threshold and efficiency")
+ .addInfo("3.75% reduction and 1.5% efficiency loss per circuit config over 1")
+ .addSeparator()
+ .beginStructureBlock(5, 9, 5, false)
+ .addController("Front bottom")
+ .addCasingInfoMin("Reinforced Heat Exchanger Casing", 90, false)
+ .addOtherStructurePart("Tungstensteel Pipe Casing", "Center 3x5x3 (45 blocks)")
+ .addMaintenanceHatch("Any casing", 1)
+ .addInputHatch("Hot fluid, bottom center", 2)
+ .addInputHatch("Distilled water, any bottom layer casing", 1)
+ .addOutputHatch("Cold fluid, top center", 3)
+ .addOutputHatch("Steam/SH Steam, any bottom layer casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -202,7 +194,8 @@ public class GregtechMetaTileEntity_Adv_HeatExchanger
boolean do_lava = false;
// Do we have an integrated circuit with a valid configuration?
- if (mInventory[1] != null && mInventory[1].getUnlocalizedName().startsWith("gt.integrated_circuit")) {
+ if (mInventory[1] != null && mInventory[1].getUnlocalizedName()
+ .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.
@@ -217,14 +210,16 @@ public class GregtechMetaTileEntity_Adv_HeatExchanger
steam_output_multiplier /= 5f; // lava is not boosted
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.
- } else {
- // If we're working with neither, fail out
- superheated_threshold = 0;
- return CheckRecipeResultRegistry.NO_RECIPE;
- }
+ } 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.
+ } else {
+ // If we're working with neither, fail out
+ superheated_threshold = 0;
+ return CheckRecipeResultRegistry.NO_RECIPE;
+ }
superheated = fluidAmountToConsume >= superheated_threshold; // set the internal superheated flag if we have
// enough hot fluid. Used in the
@@ -354,43 +349,43 @@ public class GregtechMetaTileEntity_Adv_HeatExchanger
@Override
public String[] getExtraInfoData() {
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 * lEUt : -lEUt)
- + 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 * lEUt : -lEUt)
+ + 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/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/advanced/GregtechMetaTileEntity_Adv_Implosion.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/advanced/GregtechMetaTileEntity_Adv_Implosion.java
index 3a8093edaa..432ce23e74 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/advanced/GregtechMetaTileEntity_Adv_Implosion.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/advanced/GregtechMetaTileEntity_Adv_Implosion.java
@@ -31,7 +31,7 @@ import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.Gregtech
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
public class GregtechMetaTileEntity_Adv_Implosion
- extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_Adv_Implosion> {
+ extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_Adv_Implosion> {
private int mCasing;
private static IStructureDefinition<GregtechMetaTileEntity_Adv_Implosion> STRUCTURE_DEFINITION = null;
@@ -57,14 +57,21 @@ public class GregtechMetaTileEntity_Adv_Implosion
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Factory Grade Advanced Implosion Compressor")
- .addInfo("Speed: +100% | EU Usage: 100% | Parallel: ((Tier/2)+1)")
- .addInfo("Constructed exactly the same as a normal Implosion Compressor")
- .addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(3, 3, 3, true)
- .addController("Front center").addCasingInfoMin("Robust TungstenSteel Casing", 10, false)
- .addInputBus("Any casing", 1).addOutputBus("Any casing", 1).addEnergyHatch("Any casing", 1)
- .addMaintenanceHatch("Any casing", 1).addMufflerHatch("Any casing", 1)
- .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Factory Grade Advanced Implosion Compressor")
+ .addInfo("Speed: +100% | EU Usage: 100% | Parallel: ((Tier/2)+1)")
+ .addInfo("Constructed exactly the same as a normal Implosion Compressor")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(3, 3, 3, true)
+ .addController("Front center")
+ .addCasingInfoMin("Robust TungstenSteel Casing", 10, false)
+ .addInputBus("Any casing", 1)
+ .addOutputBus("Any casing", 1)
+ .addEnergyHatch("Any casing", 1)
+ .addMaintenanceHatch("Any casing", 1)
+ .addMufflerHatch("Any casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -72,19 +79,20 @@ public class GregtechMetaTileEntity_Adv_Implosion
public IStructureDefinition<GregtechMetaTileEntity_Adv_Implosion> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_Adv_Implosion>builder()
- .addShape(
- mName,
- transpose(
- new String[][] { { "CCC", "CCC", "CCC" }, { "C~C", "C-C", "CCC" },
- { "CCC", "CCC", "CCC" }, }))
- .addElement(
- 'C',
- ofChain(
- buildHatchAdder(GregtechMetaTileEntity_Adv_Implosion.class)
- .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler).casingIndex(48)
- .dot(1).build(),
- onElementPass(x -> ++x.mCasing, ofBlock(sBlockCasings4, 0))))
- .build();
+ .addShape(
+ mName,
+ transpose(
+ new String[][] { { "CCC", "CCC", "CCC" }, { "C~C", "C-C", "CCC" }, { "CCC", "CCC", "CCC" }, }))
+ .addElement(
+ 'C',
+ ofChain(
+ buildHatchAdder(GregtechMetaTileEntity_Adv_Implosion.class)
+ .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler)
+ .casingIndex(48)
+ .dot(1)
+ .build(),
+ onElementPass(x -> ++x.mCasing, ofBlock(sBlockCasings4, 0))))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -132,7 +140,8 @@ public class GregtechMetaTileEntity_Adv_Implosion
@Override
protected ProcessingLogic createProcessingLogic() {
- return new ProcessingLogic().setSpeedBonus(1F / 2F).setMaxParallelSupplier(this::getMaxParallelRecipes);
+ return new ProcessingLogic().setSpeedBonus(1F / 2F)
+ .setMaxParallelSupplier(this::getMaxParallelRecipes);
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/steam/GregtechMetaTileEntity_SteamCompressor.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/steam/GregtechMetaTileEntity_SteamCompressor.java
index b3b15ca5f7..0845c7f061 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/steam/GregtechMetaTileEntity_SteamCompressor.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/steam/GregtechMetaTileEntity_SteamCompressor.java
@@ -32,7 +32,7 @@ import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.GregtechMeta_SteamMultiBase;
public class GregtechMetaTileEntity_SteamCompressor
- extends GregtechMeta_SteamMultiBase<GregtechMetaTileEntity_SteamCompressor> implements ISurvivalConstructable {
+ extends GregtechMeta_SteamMultiBase<GregtechMetaTileEntity_SteamCompressor> implements ISurvivalConstructable {
private String mCasingName = "Bronze Plated Bricks";
private static IStructureDefinition<GregtechMetaTileEntity_SteamCompressor> STRUCTURE_DEFINITION = null;
@@ -69,35 +69,44 @@ public class GregtechMetaTileEntity_SteamCompressor
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for the Steam Compressor")
- .addInfo("33.3% faster than using a single block Steam Compressor.")
- .addInfo("Uses only 66.6% of the steam/s compared to a single block Steam Compressor.")
- .addInfo("Compresses up to " + getMaxParallelRecipes() + " things at a time").addSeparator()
- .beginStructureBlock(3, 3, 4, true).addController("Front center")
- .addCasingInfoMin(mCasingName, 28, false).addOtherStructurePart(TT_steaminputbus, "Any casing", 1)
- .addOtherStructurePart(TT_steamoutputbus, "Any casing", 1)
- .addOtherStructurePart(TT_steamhatch, "Any casing", 1).toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for the Steam Compressor")
+ .addInfo("33.3% faster than using a single block Steam Compressor.")
+ .addInfo("Uses only 66.6% of the steam/s compared to a single block Steam Compressor.")
+ .addInfo("Compresses up to " + getMaxParallelRecipes() + " things at a time")
+ .addSeparator()
+ .beginStructureBlock(3, 3, 4, true)
+ .addController("Front center")
+ .addCasingInfoMin(mCasingName, 28, false)
+ .addOtherStructurePart(TT_steaminputbus, "Any casing", 1)
+ .addOtherStructurePart(TT_steamoutputbus, "Any casing", 1)
+ .addOtherStructurePart(TT_steamhatch, "Any casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@Override
public IStructureDefinition<GregtechMetaTileEntity_SteamCompressor> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
- STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_SteamCompressor>builder().addShape(
+ STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_SteamCompressor>builder()
+ .addShape(
mName,
transpose(
- new String[][] { { "CCC", "CCC", "CCC", "CCC" }, { "C~C", "C-C", "C-C", "CCC" },
- { "CCC", "CCC", "CCC", "CCC" }, }))
- .addElement(
- 'C',
- ofChain(
- buildSteamInput(GregtechMetaTileEntity_SteamCompressor.class).casingIndex(10).dot(1)
- .build(),
- buildHatchAdder(GregtechMetaTileEntity_SteamCompressor.class).atLeast(
- SteamHatchElement.InputBus_Steam,
- SteamHatchElement.OutputBus_Steam).casingIndex(10).dot(1).build(),
- onElementPass(x -> ++x.mCasing, ofBlock(sBlockCasings1, 10))))
- .build();
+ new String[][] { { "CCC", "CCC", "CCC", "CCC" }, { "C~C", "C-C", "C-C", "CCC" },
+ { "CCC", "CCC", "CCC", "CCC" }, }))
+ .addElement(
+ 'C',
+ ofChain(
+ buildSteamInput(GregtechMetaTileEntity_SteamCompressor.class).casingIndex(10)
+ .dot(1)
+ .build(),
+ buildHatchAdder(GregtechMetaTileEntity_SteamCompressor.class)
+ .atLeast(SteamHatchElement.InputBus_Steam, SteamHatchElement.OutputBus_Steam)
+ .casingIndex(10)
+ .dot(1)
+ .build(),
+ onElementPass(x -> ++x.mCasing, ofBlock(sBlockCasings1, 10))))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -137,7 +146,9 @@ public class GregtechMetaTileEntity_SteamCompressor
@Override
@Nonnull
protected GT_OverclockCalculator createOverclockCalculator(@NotNull GT_Recipe recipe) {
- return GT_OverclockCalculator.ofNoOverclock(recipe).setEUtDiscount(1.33F).setSpeedBoost(1.5F);
+ return GT_OverclockCalculator.ofNoOverclock(recipe)
+ .setEUtDiscount(1.33F)
+ .setSpeedBoost(1.5F);
}
}.setMaxParallel(getMaxParallelRecipes());
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/steam/GregtechMetaTileEntity_SteamMacerator.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/steam/GregtechMetaTileEntity_SteamMacerator.java
index e1c4fec434..dce362fa14 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/steam/GregtechMetaTileEntity_SteamMacerator.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/steam/GregtechMetaTileEntity_SteamMacerator.java
@@ -33,7 +33,7 @@ import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.GregtechMeta_SteamMultiBase;
public class GregtechMetaTileEntity_SteamMacerator
- extends GregtechMeta_SteamMultiBase<GregtechMetaTileEntity_SteamMacerator> implements ISurvivalConstructable {
+ extends GregtechMeta_SteamMultiBase<GregtechMetaTileEntity_SteamMacerator> implements ISurvivalConstructable {
private String mCasingName = "Bronze Plated Bricks";
private static IStructureDefinition<GregtechMetaTileEntity_SteamMacerator> STRUCTURE_DEFINITION = null;
@@ -70,38 +70,47 @@ public class GregtechMetaTileEntity_SteamMacerator
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
if (mCasingName.contains("gt.blockcasings")) {
- mCasingName = ItemList.Casing_BronzePlatedBricks.get(1).getDisplayName();
+ mCasingName = ItemList.Casing_BronzePlatedBricks.get(1)
+ .getDisplayName();
}
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for the Steam Macerator")
- .addInfo("33.3% faster than using a single block Steam Macerator.")
- .addInfo("Uses only 66.6% of the steam/s required compared to a single block Steam Macerator.")
- .addInfo("Macerates up to " + getMaxParallelRecipes() + " things at a time").addSeparator()
- .beginStructureBlock(3, 3, 3, true).addController("Front center")
- .addCasingInfoMin(mCasingName, 14, false).addOtherStructurePart(TT_steaminputbus, "Any casing", 1)
- .addOtherStructurePart(TT_steamoutputbus, "Any casing", 1)
- .addOtherStructurePart(TT_steamhatch, "Any casing", 1).toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for the Steam Macerator")
+ .addInfo("33.3% faster than using a single block Steam Macerator.")
+ .addInfo("Uses only 66.6% of the steam/s required compared to a single block Steam Macerator.")
+ .addInfo("Macerates up to " + getMaxParallelRecipes() + " things at a time")
+ .addSeparator()
+ .beginStructureBlock(3, 3, 3, true)
+ .addController("Front center")
+ .addCasingInfoMin(mCasingName, 14, false)
+ .addOtherStructurePart(TT_steaminputbus, "Any casing", 1)
+ .addOtherStructurePart(TT_steamoutputbus, "Any casing", 1)
+ .addOtherStructurePart(TT_steamhatch, "Any casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@Override
public IStructureDefinition<GregtechMetaTileEntity_SteamMacerator> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
- STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_SteamMacerator>builder().addShape(
+ STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_SteamMacerator>builder()
+ .addShape(
mName,
transpose(
- new String[][] { { "CCC", "CCC", "CCC" }, { "C~C", "C-C", "CCC" },
- { "CCC", "CCC", "CCC" }, }))
- .addElement(
- 'C',
- ofChain(
- buildSteamInput(GregtechMetaTileEntity_SteamMacerator.class).casingIndex(10).dot(1)
- .build(),
- buildHatchAdder(GregtechMetaTileEntity_SteamMacerator.class).atLeast(
- SteamHatchElement.InputBus_Steam,
- SteamHatchElement.OutputBus_Steam).casingIndex(10).dot(1).build(),
- onElementPass(x -> ++x.mCasing, ofBlock(sBlockCasings1, 10))))
- .build();
+ new String[][] { { "CCC", "CCC", "CCC" }, { "C~C", "C-C", "CCC" }, { "CCC", "CCC", "CCC" }, }))
+ .addElement(
+ 'C',
+ ofChain(
+ buildSteamInput(GregtechMetaTileEntity_SteamMacerator.class).casingIndex(10)
+ .dot(1)
+ .build(),
+ buildHatchAdder(GregtechMetaTileEntity_SteamMacerator.class)
+ .atLeast(SteamHatchElement.InputBus_Steam, SteamHatchElement.OutputBus_Steam)
+ .casingIndex(10)
+ .dot(1)
+ .build(),
+ onElementPass(x -> ++x.mCasing, ofBlock(sBlockCasings1, 10))))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -141,7 +150,9 @@ public class GregtechMetaTileEntity_SteamMacerator
@Override
@Nonnull
protected GT_OverclockCalculator createOverclockCalculator(@NotNull GT_Recipe recipe) {
- return GT_OverclockCalculator.ofNoOverclock(recipe).setEUtDiscount(1.33F).setSpeedBoost(1.5F);
+ return GT_OverclockCalculator.ofNoOverclock(recipe)
+ .setEUtDiscount(1.33F)
+ .setSpeedBoost(1.5F);
}
}.setMaxParallel(getMaxParallelRecipes());
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GT4Entity_AutoCrafter.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GT4Entity_AutoCrafter.java
index 62972b3957..6cae5e4bcd 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GT4Entity_AutoCrafter.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GT4Entity_AutoCrafter.java
@@ -34,7 +34,7 @@ import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.GregtechMeta_MultiBlockBase;
public class GT4Entity_AutoCrafter extends GregtechMeta_MultiBlockBase<GT4Entity_AutoCrafter>
- implements ISurvivalConstructable {
+ implements ISurvivalConstructable {
protected GT_Recipe lastRecipeToBuffer;
private int casing;
@@ -86,14 +86,22 @@ public class GT4Entity_AutoCrafter extends GregtechMeta_MultiBlockBase<GT4Entity
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Highly Advanced Assembling Machine")
- .addInfo("200% faster than using single block machines of the same voltage")
- .addInfo("Processes two items per voltage tier").addPollutionAmount(getPollutionPerSecond(null))
- .addSeparator().beginStructureBlock(3, 3, 3, true).addController("Front Center")
- .addCasingInfoRange("Bulk Production Frame", 10, 25, false).addInputBus("Any Casing", 1)
- .addOutputBus("Any Casing", 1).addInputHatch("Any Casing", 1).addEnergyHatch("Any Casing", 1)
- .addMaintenanceHatch("Any Casing", 1).addMufflerHatch("Any Casing", 1)
- .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Highly Advanced Assembling Machine")
+ .addInfo("200% faster than using single block machines of the same voltage")
+ .addInfo("Processes two items per voltage tier")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(3, 3, 3, true)
+ .addController("Front Center")
+ .addCasingInfoRange("Bulk Production Frame", 10, 25, false)
+ .addInputBus("Any Casing", 1)
+ .addOutputBus("Any Casing", 1)
+ .addInputHatch("Any Casing", 1)
+ .addEnergyHatch("Any Casing", 1)
+ .addMaintenanceHatch("Any Casing", 1)
+ .addMufflerHatch("Any Casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -116,18 +124,18 @@ public class GT4Entity_AutoCrafter extends GregtechMeta_MultiBlockBase<GT4Entity
public IStructureDefinition<GT4Entity_AutoCrafter> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
STRUCTURE_DEFINITION = StructureDefinition.<GT4Entity_AutoCrafter>builder()
- .addShape(
- mName,
- transpose(
- new String[][] { { "CCC", "CCC", "CCC" }, { "C~C", "C-C", "CCC" },
- { "CCC", "CCC", "CCC" }, }))
- .addElement(
- 'C',
- buildHatchAdder(GT4Entity_AutoCrafter.class)
- .atLeast(InputBus, OutputBus, InputHatch, Maintenance, Energy, Muffler)
- .casingIndex(TAE.getIndexFromPage(0, 10)).dot(1).buildAndChain(
- onElementPass(x -> ++x.casing, ofBlock(ModBlocks.blockCasings2Misc, 12))))
- .build();
+ .addShape(
+ mName,
+ transpose(
+ new String[][] { { "CCC", "CCC", "CCC" }, { "C~C", "C-C", "CCC" }, { "CCC", "CCC", "CCC" }, }))
+ .addElement(
+ 'C',
+ buildHatchAdder(GT4Entity_AutoCrafter.class)
+ .atLeast(InputBus, OutputBus, InputHatch, Maintenance, Energy, Muffler)
+ .casingIndex(TAE.getIndexFromPage(0, 10))
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.casing, ofBlock(ModBlocks.blockCasings2Misc, 12))))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -156,7 +164,8 @@ public class GT4Entity_AutoCrafter extends GregtechMeta_MultiBlockBase<GT4Entity
@Override
protected ProcessingLogic createProcessingLogic() {
- return new ProcessingLogic().setSpeedBonus(1F / 3F).setMaxParallelSupplier(this::getMaxParallelRecipes);
+ return new ProcessingLogic().setSpeedBonus(1F / 3F)
+ .setMaxParallelSupplier(this::getMaxParallelRecipes);
}
@Override
@@ -168,7 +177,7 @@ public class GT4Entity_AutoCrafter extends GregtechMeta_MultiBlockBase<GT4Entity
public String[] getExtraInfoData() {
final String running = (this.mMaxProgresstime > 0 ? "Auto-Crafter running" : "Auto-Crafter stopped");
final String maintenance = (this.getIdealStatus() == this.getRepairStatus() ? "No Maintenance issues"
- : "Needs Maintenance");
+ : "Needs Maintenance");
String tSpecialText;
if (lastRecipeToBuffer != null && lastRecipeToBuffer.mOutputs[0].getDisplayName() != null) {
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GT4Entity_ThermalBoiler.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GT4Entity_ThermalBoiler.java
index 39266717b7..b7a4afb878 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GT4Entity_ThermalBoiler.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GT4Entity_ThermalBoiler.java
@@ -51,7 +51,7 @@ import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.Gregtech
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
public class GT4Entity_ThermalBoiler extends GregtechMeta_MultiBlockBase<GT4Entity_ThermalBoiler>
- implements ISurvivalConstructable {
+ implements ISurvivalConstructable {
private int mCasing;
private static IStructureDefinition<GT4Entity_ThermalBoiler> STRUCTURE_DEFINITION = null;
@@ -63,9 +63,12 @@ public class GT4Entity_ThermalBoiler extends GregtechMeta_MultiBlockBase<GT4Enti
private static final Item itemLavaFilter = ItemList.Component_LavaFilter.getItem();
private static final Item itemObsidian = Item.getItemFromBlock(Blocks.obsidian);
private static final Fluid fluidWater = FluidRegistry.WATER;
- private static final Fluid fluidDistilledWater = FluidUtils.getDistilledWater(1).getFluid();
- private static final Fluid fluidSteam = FluidUtils.getSteam(1).getFluid();
- private static final Fluid fluidSHSteam = FluidUtils.getSuperHeatedSteam(1).getFluid();
+ private static final Fluid fluidDistilledWater = FluidUtils.getDistilledWater(1)
+ .getFluid();
+ private static final Fluid fluidSteam = FluidUtils.getSteam(1)
+ .getFluid();
+ private static final Fluid fluidSHSteam = FluidUtils.getSuperHeatedSteam(1)
+ .getFluid();
public GT4Entity_ThermalBoiler(int aID, String aName, String aNameRegional) {
super(aID, aName, aNameRegional);
@@ -125,7 +128,9 @@ public class GT4Entity_ThermalBoiler extends GregtechMeta_MultiBlockBase<GT4Enti
if (map == null) {
return Stream.empty();
}
- return map.getAllRecipes().stream().filter(recipe -> depleteInput(recipe.mFluidInputs[0], true));
+ return map.getAllRecipes()
+ .stream()
+ .filter(recipe -> depleteInput(recipe.mFluidInputs[0], true));
}
@NotNull
@@ -136,7 +141,7 @@ public class GT4Entity_ThermalBoiler extends GregtechMeta_MultiBlockBase<GT4Enti
// Hack the recipe logic to not consume water, so that we can explode.
for (FluidStack inputFluid : adjustedRecipe.mFluidInputs) {
if (inputFluid != null
- && (inputFluid.getFluid() == fluidWater || inputFluid.getFluid() == fluidDistilledWater)) {
+ && (inputFluid.getFluid() == fluidWater || inputFluid.getFluid() == fluidDistilledWater)) {
inputFluid.amount = 0;
}
}
@@ -168,7 +173,7 @@ public class GT4Entity_ThermalBoiler extends GregtechMeta_MultiBlockBase<GT4Enti
if (mOutputFluids != null) {
for (FluidStack outputFluid : mOutputFluids) {
if (outputFluid != null
- && (outputFluid.getFluid() == fluidSteam || outputFluid.getFluid() == fluidSHSteam)) {
+ && (outputFluid.getFluid() == fluidSteam || outputFluid.getFluid() == fluidSHSteam)) {
// Purely for display reasons, we don't actually make any EU.
if (outputFluid.getFluid() == fluidSteam) {
@@ -181,7 +186,7 @@ public class GT4Entity_ThermalBoiler extends GregtechMeta_MultiBlockBase<GT4Enti
// TODO: This is not reflected in the GUI while the player has it open??
if (mEfficiency < getMaxEfficiency(null)) {
outputFluid.amount = Math
- .max(1, (outputFluid.amount * mEfficiency) / getMaxEfficiency(null));
+ .max(1, (outputFluid.amount * mEfficiency) / getMaxEfficiency(null));
}
// Consume water to run recipe.
@@ -274,14 +279,23 @@ public class GT4Entity_ThermalBoiler extends GregtechMeta_MultiBlockBase<GT4Enti
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Thermal Boiler Controller")
- .addInfo("Converts Water & Heat into Steam").addInfo("Filters raw materials from lava")
- .addInfo("Explodes if water is not supplied").addInfo("Consult user manual for more information")
- .addPollutionAmount(getPollutionPerSecond(null)).beginStructureBlock(3, 3, 3, true)
- .addController("Front Center").addCasingInfoMin("Thermal Containment Casings", 10, false)
- .addInputBus("Any Casing", 1).addOutputBus("Any Casing", 1).addInputHatch("Any Casing", 1)
- .addOutputHatch("Any Casing", 1).addMaintenanceHatch("Any Casing", 1).addMufflerHatch("Any Casing", 1)
- .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Thermal Boiler Controller")
+ .addInfo("Converts Water & Heat into Steam")
+ .addInfo("Filters raw materials from lava")
+ .addInfo("Explodes if water is not supplied")
+ .addInfo("Consult user manual for more information")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .beginStructureBlock(3, 3, 3, true)
+ .addController("Front Center")
+ .addCasingInfoMin("Thermal Containment Casings", 10, false)
+ .addInputBus("Any Casing", 1)
+ .addOutputBus("Any Casing", 1)
+ .addInputHatch("Any Casing", 1)
+ .addOutputHatch("Any Casing", 1)
+ .addMaintenanceHatch("Any Casing", 1)
+ .addMufflerHatch("Any Casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -304,18 +318,18 @@ public class GT4Entity_ThermalBoiler extends GregtechMeta_MultiBlockBase<GT4Enti
public IStructureDefinition<GT4Entity_ThermalBoiler> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
STRUCTURE_DEFINITION = StructureDefinition.<GT4Entity_ThermalBoiler>builder()
- .addShape(
- mName,
- transpose(
- new String[][] { { "CCC", "CCC", "CCC" }, { "C~C", "C-C", "CCC" },
- { "CCC", "CCC", "CCC" }, }))
- .addElement(
- 'C',
- buildHatchAdder(GT4Entity_ThermalBoiler.class)
- .atLeast(InputBus, OutputBus, InputHatch, OutputHatch, Maintenance, Muffler)
- .casingIndex(TAE.getIndexFromPage(0, 1)).dot(1).buildAndChain(
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings2Misc, 11))))
- .build();
+ .addShape(
+ mName,
+ transpose(
+ new String[][] { { "CCC", "CCC", "CCC" }, { "C~C", "C-C", "CCC" }, { "CCC", "CCC", "CCC" }, }))
+ .addElement(
+ 'C',
+ buildHatchAdder(GT4Entity_ThermalBoiler.class)
+ .atLeast(InputBus, OutputBus, InputHatch, OutputHatch, Maintenance, Muffler)
+ .casingIndex(TAE.getIndexFromPage(0, 1))
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings2Misc, 11))))
+ .build();
}
return STRUCTURE_DEFINITION;
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMTE_ElementalDuplicator.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMTE_ElementalDuplicator.java
index 15d144c4a5..d835d9be4c 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMTE_ElementalDuplicator.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMTE_ElementalDuplicator.java
@@ -42,7 +42,7 @@ import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.Gregtech
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
public class GregtechMTE_ElementalDuplicator extends GregtechMeta_MultiBlockBase<GregtechMTE_ElementalDuplicator>
- implements ISurvivalConstructable {
+ implements ISurvivalConstructable {
private final ArrayList<GT_MetaTileEntity_Hatch_ElementalDataOrbHolder> mReplicatorDataOrbHatches = new ArrayList<>();
private static final int CASING_TEXTURE_ID = TAE.getIndexFromPage(0, 3);
@@ -70,21 +70,31 @@ public class GregtechMTE_ElementalDuplicator extends GregtechMeta_MultiBlockBase
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Produces Elemental Material from UU Matter")
- .addInfo("Speed: +100% | EU Usage: 100% | Parallel: 8 * Tier").addInfo("Maximum 1x of each bus/hatch.")
- .addInfo("Requires circuit 1-16 in your Data Orb Repository")
- .addInfo("depending on what Data Orb you want to prioritize")
- .addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(9, 6, 9, true)
- .addController("Top Center").addCasingInfoMin("Elemental Confinement Shell", 138, false)
- .addCasingInfoMin("Matter Fabricator Casing", 24, false)
- .addCasingInfoMin("Particle Containment Casing", 24, false)
- .addCasingInfoMin("Matter Generation Coil", 24, false)
- .addCasingInfoMin("High Voltage Current Capacitor", 20, false)
- .addCasingInfoMin("Resonance Chamber III", 24, false).addCasingInfoMin("Modulator III", 16, false)
- .addOtherStructurePart("Data Orb Repository", "1x", 1).addInputHatch("Any 1 dot hint", 1)
- .addOutputBus("Any 1 dot hint", 1).addOutputHatch("Any 1 dot hint", 1)
- .addEnergyHatch("Any 1 dot hint", 1).addMaintenanceHatch("Any 1 dot hint", 1)
- .addMufflerHatch("Any 1 dot hint", 1).toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Produces Elemental Material from UU Matter")
+ .addInfo("Speed: +100% | EU Usage: 100% | Parallel: 8 * Tier")
+ .addInfo("Maximum 1x of each bus/hatch.")
+ .addInfo("Requires circuit 1-16 in your Data Orb Repository")
+ .addInfo("depending on what Data Orb you want to prioritize")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(9, 6, 9, true)
+ .addController("Top Center")
+ .addCasingInfoMin("Elemental Confinement Shell", 138, false)
+ .addCasingInfoMin("Matter Fabricator Casing", 24, false)
+ .addCasingInfoMin("Particle Containment Casing", 24, false)
+ .addCasingInfoMin("Matter Generation Coil", 24, false)
+ .addCasingInfoMin("High Voltage Current Capacitor", 20, false)
+ .addCasingInfoMin("Resonance Chamber III", 24, false)
+ .addCasingInfoMin("Modulator III", 16, false)
+ .addOtherStructurePart("Data Orb Repository", "1x", 1)
+ .addInputHatch("Any 1 dot hint", 1)
+ .addOutputBus("Any 1 dot hint", 1)
+ .addOutputHatch("Any 1 dot hint", 1)
+ .addEnergyHatch("Any 1 dot hint", 1)
+ .addMaintenanceHatch("Any 1 dot hint", 1)
+ .addMufflerHatch("Any 1 dot hint", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -96,62 +106,58 @@ public class GregtechMTE_ElementalDuplicator extends GregtechMeta_MultiBlockBase
if (STRUCTURE_DEFINITION == null) {
STRUCTURE_DEFINITION = StructureDefinition.<GregtechMTE_ElementalDuplicator>builder()
- // h = Hatch
- // c = Casing
-
- // a = MF Casing 1
- // b = Matter Gen Coil
-
- // d = Current Capacitor
- // e = Particle
-
- // f = Resonance III
- // g = Modulator III
-
- .addShape(
- STRUCTURE_PIECE_MAIN,
- (new String[][] {
- { " ccc ", " ccccc ", " ccccccc ", "ccchhhccc", "ccch~hccc", "ccchhhccc",
- " ccccccc ", " ccccc ", " ccc " },
- { " cac ", " abfba ", " abfgfba ", "cbfgdgfbc", "afgdddgfa", "cbfgdgfbc",
- " abfgfba ", " abfba ", " cac " },
- { " cec ", " e e ", " e e ", "c d c", "e ddd e", "c d c",
- " e e ", " e e ", " cec " },
- { " cec ", " e e ", " e e ", "c d c", "e ddd e", "c d c",
- " e e ", " e e ", " cec " },
- { " cac ", " abfba ", " abfgfba ", "cbfgdgfbc", "afgdddgfa", "cbfgdgfbc",
- " abfgfba ", " abfba ", " cac " },
- { " ccc ", " ccccc ", " ccccccc ", "ccchhhccc", "ccchhhccc", "ccchhhccc",
- " ccccccc ", " ccccc ", " ccc " }, }))
- .addElement('a', ofBlock(getCasingBlock4(), getCasingMeta6()))
- .addElement('b', ofBlock(getCasingBlock4(), getCasingMeta7()))
- .addElement('d', ofBlock(getCasingBlock2(), getCasingMeta2()))
- .addElement('e', ofBlock(getCasingBlock2(), getCasingMeta3()))
- .addElement('f', ofBlock(getCasingBlock3(), getCasingMeta4()))
- .addElement('g', ofBlock(getCasingBlock3(), getCasingMeta5()))
- .addElement(
- 'c',
- lazy(t -> onElementPass(x -> ++x.mCasing, ofBlock(getCasingBlock(), getCasingMeta()))))
- .addElement(
- 'h',
- lazy(
- t -> ofChain(
- buildHatchAdder(GregtechMTE_ElementalDuplicator.class).atLeast(
- InputHatch,
- OutputBus,
- OutputHatch,
- Maintenance,
- Muffler,
- Energy).casingIndex(getCasingTextureIndex()).dot(1).build(),
- buildHatchAdder(GregtechMTE_ElementalDuplicator.class)
- .hatchClass(GT_MetaTileEntity_Hatch_ElementalDataOrbHolder.class)
- .shouldReject(x -> x.mReplicatorDataOrbHatches.size() >= 1)
- .adder(GregtechMTE_ElementalDuplicator::addDataOrbHatch)
- .casingIndex(getCasingTextureIndex()).dot(1).build(),
- onElementPass(
- x -> ++x.mCasing,
- ofBlock(getCasingBlock(), getCasingMeta())))))
- .build();
+ // h = Hatch
+ // c = Casing
+
+ // a = MF Casing 1
+ // b = Matter Gen Coil
+
+ // d = Current Capacitor
+ // e = Particle
+
+ // f = Resonance III
+ // g = Modulator III
+
+ .addShape(
+ STRUCTURE_PIECE_MAIN,
+ (new String[][] {
+ { " ccc ", " ccccc ", " ccccccc ", "ccchhhccc", "ccch~hccc", "ccchhhccc", " ccccccc ",
+ " ccccc ", " ccc " },
+ { " cac ", " abfba ", " abfgfba ", "cbfgdgfbc", "afgdddgfa", "cbfgdgfbc", " abfgfba ",
+ " abfba ", " cac " },
+ { " cec ", " e e ", " e e ", "c d c", "e ddd e", "c d c", " e e ",
+ " e e ", " cec " },
+ { " cec ", " e e ", " e e ", "c d c", "e ddd e", "c d c", " e e ",
+ " e e ", " cec " },
+ { " cac ", " abfba ", " abfgfba ", "cbfgdgfbc", "afgdddgfa", "cbfgdgfbc", " abfgfba ",
+ " abfba ", " cac " },
+ { " ccc ", " ccccc ", " ccccccc ", "ccchhhccc", "ccchhhccc", "ccchhhccc", " ccccccc ",
+ " ccccc ", " ccc " }, }))
+ .addElement('a', ofBlock(getCasingBlock4(), getCasingMeta6()))
+ .addElement('b', ofBlock(getCasingBlock4(), getCasingMeta7()))
+ .addElement('d', ofBlock(getCasingBlock2(), getCasingMeta2()))
+ .addElement('e', ofBlock(getCasingBlock2(), getCasingMeta3()))
+ .addElement('f', ofBlock(getCasingBlock3(), getCasingMeta4()))
+ .addElement('g', ofBlock(getCasingBlock3(), getCasingMeta5()))
+ .addElement('c', lazy(t -> onElementPass(x -> ++x.mCasing, ofBlock(getCasingBlock(), getCasingMeta()))))
+ .addElement(
+ 'h',
+ lazy(
+ t -> ofChain(
+ buildHatchAdder(GregtechMTE_ElementalDuplicator.class)
+ .atLeast(InputHatch, OutputBus, OutputHatch, Maintenance, Muffler, Energy)
+ .casingIndex(getCasingTextureIndex())
+ .dot(1)
+ .build(),
+ buildHatchAdder(GregtechMTE_ElementalDuplicator.class)
+ .hatchClass(GT_MetaTileEntity_Hatch_ElementalDataOrbHolder.class)
+ .shouldReject(x -> x.mReplicatorDataOrbHatches.size() >= 1)
+ .adder(GregtechMTE_ElementalDuplicator::addDataOrbHatch)
+ .casingIndex(getCasingTextureIndex())
+ .dot(1)
+ .build(),
+ onElementPass(x -> ++x.mCasing, ofBlock(getCasingBlock(), getCasingMeta())))))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -166,8 +172,8 @@ public class GregtechMTE_ElementalDuplicator extends GregtechMeta_MultiBlockBase
mCasing = 0;
boolean aDidBuild = checkPiece(STRUCTURE_PIECE_MAIN, 4, 4, 0);
if (this.mInputHatches.size() != 1 || (this.mOutputBusses.size() != 1 && this.mOutputHatches.size() != 0)
- || this.mEnergyHatches.size() != 1
- || this.mReplicatorDataOrbHatches.size() != 1) {
+ || this.mEnergyHatches.size() != 1
+ || this.mReplicatorDataOrbHatches.size() != 1) {
return false;
}
log("Casings: " + mCasing);
@@ -279,8 +285,9 @@ public class GregtechMTE_ElementalDuplicator extends GregtechMeta_MultiBlockBase
@Override
protected ProcessingLogic createProcessingLogic() {
- return new ProcessingLogic().setSpeedBonus(1F / 2F).enablePerfectOverclock()
- .setMaxParallelSupplier(this::getMaxParallelRecipes);
+ return new ProcessingLogic().setSpeedBonus(1F / 2F)
+ .enablePerfectOverclock()
+ .setMaxParallelSupplier(this::getMaxParallelRecipes);
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMTE_FrothFlotationCell.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMTE_FrothFlotationCell.java
index 47a6d40c4e..8f807b94fd 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMTE_FrothFlotationCell.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMTE_FrothFlotationCell.java
@@ -50,7 +50,7 @@ import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
import gtPlusPlus.xmod.gregtech.common.helpers.FlotationRecipeHandler;
public class GregtechMTE_FrothFlotationCell extends GregtechMeta_MultiBlockBase<GregtechMTE_FrothFlotationCell>
- implements ISurvivalConstructable {
+ implements ISurvivalConstructable {
private int mCasing;
private static IStructureDefinition<GregtechMTE_FrothFlotationCell> STRUCTURE_DEFINITION = null;
@@ -76,13 +76,21 @@ public class GregtechMTE_FrothFlotationCell extends GregtechMeta_MultiBlockBase<
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Process that milled ore!")
- .addInfo("You can only ever process one type of material per controller")
- .addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(7, 9, 7, true)
- .addController("Front Center").addCasingInfoMin("Inconel Reinforced Casing", 68, false)
- .addCasingInfoMin("Flotation Casing", 52, false).addInputBus("Bottom Casing", 1)
- .addInputHatch("Bottom Casing", 1).addOutputHatch("Bottom Casing", 1).addEnergyHatch("Bottom Casing", 1)
- .addMaintenanceHatch("Bottom Casing", 1).toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Process that milled ore!")
+ .addInfo("You can only ever process one type of material per controller")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(7, 9, 7, true)
+ .addController("Front Center")
+ .addCasingInfoMin("Inconel Reinforced Casing", 68, false)
+ .addCasingInfoMin("Flotation Casing", 52, false)
+ .addInputBus("Bottom Casing", 1)
+ .addInputHatch("Bottom Casing", 1)
+ .addOutputHatch("Bottom Casing", 1)
+ .addEnergyHatch("Bottom Casing", 1)
+ .addMaintenanceHatch("Bottom Casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -119,25 +127,28 @@ public class GregtechMTE_FrothFlotationCell extends GregtechMeta_MultiBlockBase<
@Override
public IStructureDefinition<GregtechMTE_FrothFlotationCell> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
- STRUCTURE_DEFINITION = StructureDefinition.<GregtechMTE_FrothFlotationCell>builder().addShape(
+ STRUCTURE_DEFINITION = StructureDefinition.<GregtechMTE_FrothFlotationCell>builder()
+ .addShape(
mName,
new String[][] { { " ", " ", " X ", " X~X ", " X ", " ", " " },
- { " ", " F ", " FFF ", " FF FF ", " FFF ", " F ", " " },
- { " ", " F ", " F F ", " F F ", " F F ", " F ", " " },
- { " ", " F ", " F F ", " F F ", " F F ", " F ", " " },
- { " ", " F ", " F F ", " F F ", " F F ", " F ", " " },
- { " ", " F ", " F F ", " F F ", " F F ", " F ", " " },
- { " ", " F ", " F F ", " F F ", " F F ", " F ", " " },
- { " CCC ", " CCCCC ", "CCCCCCC", "CCCCCCC", "CCCCCCC", " CCCCC ", " CCC " },
- { " CCC ", " CCCCC ", "CCCCCCC", "CCCCCCC", "CCCCCCC", " CCCCC ", " CCC " }, })
- .addElement(
- 'C',
- buildHatchAdder(GregtechMTE_FrothFlotationCell.class)
- .atLeast(InputBus, InputHatch, OutputHatch, Maintenance, Energy)
- .casingIndex(getCasingTextureId()).dot(1).buildAndChain(
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings3Misc, 1))))
- .addElement('F', ofBlock(ModBlocks.blockSpecialMultiCasings, 9))
- .addElement('X', ofBlock(ModBlocks.blockCasings3Misc, 1)).build();
+ { " ", " F ", " FFF ", " FF FF ", " FFF ", " F ", " " },
+ { " ", " F ", " F F ", " F F ", " F F ", " F ", " " },
+ { " ", " F ", " F F ", " F F ", " F F ", " F ", " " },
+ { " ", " F ", " F F ", " F F ", " F F ", " F ", " " },
+ { " ", " F ", " F F ", " F F ", " F F ", " F ", " " },
+ { " ", " F ", " F F ", " F F ", " F F ", " F ", " " },
+ { " CCC ", " CCCCC ", "CCCCCCC", "CCCCCCC", "CCCCCCC", " CCCCC ", " CCC " },
+ { " CCC ", " CCCCC ", "CCCCCCC", "CCCCCCC", "CCCCCCC", " CCCCC ", " CCC " }, })
+ .addElement(
+ 'C',
+ buildHatchAdder(GregtechMTE_FrothFlotationCell.class)
+ .atLeast(InputBus, InputHatch, OutputHatch, Maintenance, Energy)
+ .casingIndex(getCasingTextureId())
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings3Misc, 1))))
+ .addElement('F', ofBlock(ModBlocks.blockSpecialMultiCasings, 9))
+ .addElement('X', ofBlock(ModBlocks.blockCasings3Misc, 1))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -192,7 +203,7 @@ public class GregtechMTE_FrothFlotationCell extends GregtechMeta_MultiBlockBase<
* material now.
*/
Material foundMaterial = FlotationRecipeHandler
- .getMaterialOfMilledProduct(FlotationRecipeHandler.findMilledStack(recipe));
+ .getMaterialOfMilledProduct(FlotationRecipeHandler.findMilledStack(recipe));
String foundMaterialName = null;
if (foundMaterial != null) {
foundMaterialName = foundMaterial.getUnlocalizedName();
@@ -248,10 +259,13 @@ public class GregtechMTE_FrothFlotationCell extends GregtechMeta_MultiBlockBase<
@Override
public void addAdditionalTooltipInformation(ItemStack stack, List<String> tooltip) {
- if (stack.hasTagCompound() && stack.getTagCompound().hasKey("lockedMaterialName")) {
+ if (stack.hasTagCompound() && stack.getTagCompound()
+ .hasKey("lockedMaterialName")) {
tooltip.add(
- StatCollector.translateToLocal("tooltip.flotationCell.lockedTo") + " "
- + StatCollector.translateToLocal(stack.getTagCompound().getString("lockedMaterialName")));
+ StatCollector.translateToLocal("tooltip.flotationCell.lockedTo") + " "
+ + StatCollector.translateToLocal(
+ stack.getTagCompound()
+ .getString("lockedMaterialName")));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMTE_NuclearReactor.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMTE_NuclearReactor.java
index 18db519622..2faccc9697 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMTE_NuclearReactor.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMTE_NuclearReactor.java
@@ -55,7 +55,7 @@ import gtPlusPlus.core.util.math.MathUtils;
import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.GregtechMeta_MultiBlockBase;
public class GregtechMTE_NuclearReactor extends GregtechMeta_MultiBlockBase<GregtechMTE_NuclearReactor>
- implements ISurvivalConstructable {
+ implements ISurvivalConstructable {
protected int mFuelRemaining = 0;
@@ -88,22 +88,30 @@ public class GregtechMTE_NuclearReactor extends GregtechMeta_MultiBlockBase<Greg
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for the Liquid Fluoride Thorium Reactor.")
- .addInfo("Produces energy and new elements from Radioactive Beta Decay!")
- .addInfo("Input LFTB and a molten salt as fuel, and match the 4 Buffered Dynamo Hatches:")
- .addInfo("LFTR Fuel 1 (4 EV Hatches), LFTR Fuel 2 (4 IV Hatches), LFTR Fuel 3 (4 LuV Hatches)")
- .addInfo("If using better hatches for a worse fuel, only 1 hatch will output EU")
- .addInfo("Outputs U233 every 10 seconds, on average, while the reactor is running")
- .addInfo("Check NEI to see the other 3 outputs - they differ between fuels")
- .addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(7, 4, 7, true)
- .addController("Bottom Center").addCasingInfoMin("Hastelloy-N Reactor Casing", 27, false)
- .addCasingInfoMin("Zeron-100 Reactor Shielding", 26, false)
- .addInputHatch("Top or bottom layer edges", 1).addOutputHatch("Top or bottom layer edges", 1)
- .addDynamoHatch("Top or bottom layer edges", 1).addMaintenanceHatch("Top or bottom layer edges", 1)
- .addMufflerHatch("Top 3x3", 2).addStructureInfo("All dynamos must be between EV and LuV tier.")
- .addStructureInfo("All other hatches must be IV+ tier.")
- .addStructureInfo("4x Output Hatches or 1x Output Hatch (ME), 1+ Input Hatches, 4x Dynamo Hatches")
- .addStructureInfo("2x Maintenance Hatches, 4x Mufflers").toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for the Liquid Fluoride Thorium Reactor.")
+ .addInfo("Produces energy and new elements from Radioactive Beta Decay!")
+ .addInfo("Input LFTB and a molten salt as fuel, and match the 4 Buffered Dynamo Hatches:")
+ .addInfo("LFTR Fuel 1 (4 EV Hatches), LFTR Fuel 2 (4 IV Hatches), LFTR Fuel 3 (4 LuV Hatches)")
+ .addInfo("If using better hatches for a worse fuel, only 1 hatch will output EU")
+ .addInfo("Outputs U233 every 10 seconds, on average, while the reactor is running")
+ .addInfo("Check NEI to see the other 3 outputs - they differ between fuels")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(7, 4, 7, true)
+ .addController("Bottom Center")
+ .addCasingInfoMin("Hastelloy-N Reactor Casing", 27, false)
+ .addCasingInfoMin("Zeron-100 Reactor Shielding", 26, false)
+ .addInputHatch("Top or bottom layer edges", 1)
+ .addOutputHatch("Top or bottom layer edges", 1)
+ .addDynamoHatch("Top or bottom layer edges", 1)
+ .addMaintenanceHatch("Top or bottom layer edges", 1)
+ .addMufflerHatch("Top 3x3", 2)
+ .addStructureInfo("All dynamos must be between EV and LuV tier.")
+ .addStructureInfo("All other hatches must be IV+ tier.")
+ .addStructureInfo("4x Output Hatches or 1x Output Hatch (ME), 1+ Input Hatches, 4x Dynamo Hatches")
+ .addStructureInfo("2x Maintenance Hatches, 4x Mufflers")
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -111,39 +119,50 @@ public class GregtechMTE_NuclearReactor extends GregtechMeta_MultiBlockBase<Greg
public String[] getExtraInfoData() {
final String tRunning = (this.mMaxProgresstime > 0 ? "Reactor running" : "Reactor stopped");
final String tMaintainance = (this.getIdealStatus() == this.getRepairStatus() ? "No Maintainance issues"
- : "Needs Maintainance");
+ : "Needs Maintainance");
return new String[] { "Liquid Fluoride Thorium Reactor", tRunning, tMaintainance,
- "Current Output: " + this.lEUt + " EU/t", "Fuel Remaining: " + this.mFuelRemaining + " Litres",
- "Current Efficiency: " + (this.mEfficiency / 5) + "%",
- "Current Efficiency (Raw): " + (this.mEfficiency), "It requires you to have 100% Efficiency." };
+ "Current Output: " + this.lEUt + " EU/t", "Fuel Remaining: " + this.mFuelRemaining + " Litres",
+ "Current Efficiency: " + (this.mEfficiency / 5) + "%", "Current Efficiency (Raw): " + (this.mEfficiency),
+ "It requires you to have 100% Efficiency." };
}
@Override
public boolean allowCoverOnSide(final ForgeDirection side, final GT_ItemStack aStack) {
- return side != this.getBaseMetaTileEntity().getFrontFacing();
+ return side != this.getBaseMetaTileEntity()
+ .getFrontFacing();
}
@Override
public ITexture[] getTexture(final IGregTechTileEntity aBaseMetaTileEntity, final ForgeDirection side,
- final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
+ final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
boolean aWarmedUp = this.mEfficiency == this.getMaxEfficiency(null);
if (!aBaseMetaTileEntity.isActive() || !aWarmedUp) {
if (side == facing) {
if (aActive) return new ITexture[] { Textures.BlockIcons.getCasingTextureForId(TAE.GTPP_INDEX(12)),
- TextureFactory.builder().addIcon(Textures.BlockIcons.OVERLAY_FRONT_REPLICATOR_ACTIVE)
- .extFacing().build() };
- return new ITexture[] { Textures.BlockIcons.getCasingTextureForId(TAE.GTPP_INDEX(12)), TextureFactory
- .builder().addIcon(Textures.BlockIcons.OVERLAY_FRONT_REPLICATOR).extFacing().build() };
+ TextureFactory.builder()
+ .addIcon(Textures.BlockIcons.OVERLAY_FRONT_REPLICATOR_ACTIVE)
+ .extFacing()
+ .build() };
+ return new ITexture[] { Textures.BlockIcons.getCasingTextureForId(TAE.GTPP_INDEX(12)),
+ TextureFactory.builder()
+ .addIcon(Textures.BlockIcons.OVERLAY_FRONT_REPLICATOR)
+ .extFacing()
+ .build() };
}
return new ITexture[] { Textures.BlockIcons.getCasingTextureForId(TAE.GTPP_INDEX(12)) };
} else if (aBaseMetaTileEntity.isActive() && aWarmedUp) {
if (side == facing) {
if (aActive) return new ITexture[] { Textures.BlockIcons.getCasingTextureForId(TAE.GTPP_INDEX(13)),
- TextureFactory.builder().addIcon(Textures.BlockIcons.OVERLAY_FRONT_REPLICATOR_ACTIVE)
- .extFacing().build() };
- return new ITexture[] { Textures.BlockIcons.getCasingTextureForId(TAE.GTPP_INDEX(13)), TextureFactory
- .builder().addIcon(Textures.BlockIcons.OVERLAY_FRONT_REPLICATOR).extFacing().build() };
+ TextureFactory.builder()
+ .addIcon(Textures.BlockIcons.OVERLAY_FRONT_REPLICATOR_ACTIVE)
+ .extFacing()
+ .build() };
+ return new ITexture[] { Textures.BlockIcons.getCasingTextureForId(TAE.GTPP_INDEX(13)),
+ TextureFactory.builder()
+ .addIcon(Textures.BlockIcons.OVERLAY_FRONT_REPLICATOR)
+ .extFacing()
+ .build() };
}
return new ITexture[] { Textures.BlockIcons.getCasingTextureForId(TAE.GTPP_INDEX(13)) };
}
@@ -158,18 +177,16 @@ public class GregtechMTE_NuclearReactor extends GregtechMeta_MultiBlockBase<Greg
if (aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Maintenance) {
return addToMachineList(aTileEntity, aBaseCasingIndex);
} else if (aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Dynamo dynamo
- && dynamo.getTierForStructure() >= 4
- && dynamo.getTierForStructure() <= 6) {
+ && dynamo.getTierForStructure() >= 4
+ && dynamo.getTierForStructure() <= 6) {
+ return addToMachineList(aTileEntity, aBaseCasingIndex);
+ } else if (aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Input hatch
+ && hatch.getTierForStructure() >= 5) {
return addToMachineList(aTileEntity, aBaseCasingIndex);
- } else
- if (aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Input hatch
+ } else if (aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Output hatch
&& hatch.getTierForStructure() >= 5) {
return addToMachineList(aTileEntity, aBaseCasingIndex);
- } else
- if (aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Output hatch
- && hatch.getTierForStructure() >= 5) {
- return addToMachineList(aTileEntity, aBaseCasingIndex);
- }
+ }
}
return false;
}
@@ -189,37 +206,46 @@ public class GregtechMTE_NuclearReactor extends GregtechMeta_MultiBlockBase<Greg
@Override
public IStructureDefinition<GregtechMTE_NuclearReactor> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
- STRUCTURE_DEFINITION = StructureDefinition.<GregtechMTE_NuclearReactor>builder().addShape(
+ STRUCTURE_DEFINITION = StructureDefinition.<GregtechMTE_NuclearReactor>builder()
+ .addShape(
mName,
transpose(
- new String[][] {
- { "CCCCCCC", "COOOOOC", "COXXXOC", "COXXXOC", "COXXXOC", "COOOOOC", "CCCCCCC" },
- { "GGGGGGG", "G-----G", "G-----G", "G-----G", "G-----G", "G-----G", "GGGGGGG" },
- { "GGGGGGG", "G-----G", "G-----G", "G-----G", "G-----G", "G-----G", "GGGGGGG" },
- { "CCC~CCC", "COOOOOC", "COOOOOC", "COOOOOC", "COOOOOC", "COOOOOC", "CCCCCCC" }, }))
- .addElement(
- 'C',
- ofChain(
- buildHatchAdder(GregtechMTE_NuclearReactor.class).atLeast(Maintenance)
- .casingIndex(TAE.GTPP_INDEX(12)).dot(1).build(),
- buildHatchAdder(GregtechMTE_NuclearReactor.class).atLeast(InputHatch, OutputHatch)
- .adder(GregtechMTE_NuclearReactor::addNuclearReactorEdgeList)
- .hatchItemFilterAnd(t -> filterByMTETier(5, Integer.MAX_VALUE))
- .casingIndex(TAE.GTPP_INDEX(12)).dot(1).build(),
- buildHatchAdder(GregtechMTE_NuclearReactor.class).atLeast(Dynamo)
- .adder(GregtechMTE_NuclearReactor::addNuclearReactorEdgeList)
- .hatchItemFilterAnd(t -> filterByMTETier(4, 6))
- .casingIndex(TAE.GTPP_INDEX(12)).dot(1).build(),
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasingsMisc, 12))))
- .addElement(
- 'X',
- buildHatchAdder(GregtechMTE_NuclearReactor.class).atLeast(Muffler)
- .adder(GregtechMTE_NuclearReactor::addNuclearReactorTopList)
- .hatchItemFilterAnd(t -> filterByMTETier(5, Integer.MAX_VALUE))
- .casingIndex(TAE.GTPP_INDEX(12)).dot(1).buildAndChain(
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasingsMisc, 12))))
- .addElement('O', ofBlock(ModBlocks.blockCasingsMisc, 12))
- .addElement('G', ofBlock(ModBlocks.blockCasingsMisc, 13)).build();
+ new String[][] {
+ { "CCCCCCC", "COOOOOC", "COXXXOC", "COXXXOC", "COXXXOC", "COOOOOC", "CCCCCCC" },
+ { "GGGGGGG", "G-----G", "G-----G", "G-----G", "G-----G", "G-----G", "GGGGGGG" },
+ { "GGGGGGG", "G-----G", "G-----G", "G-----G", "G-----G", "G-----G", "GGGGGGG" },
+ { "CCC~CCC", "COOOOOC", "COOOOOC", "COOOOOC", "COOOOOC", "COOOOOC", "CCCCCCC" }, }))
+ .addElement(
+ 'C',
+ ofChain(
+ buildHatchAdder(GregtechMTE_NuclearReactor.class).atLeast(Maintenance)
+ .casingIndex(TAE.GTPP_INDEX(12))
+ .dot(1)
+ .build(),
+ buildHatchAdder(GregtechMTE_NuclearReactor.class).atLeast(InputHatch, OutputHatch)
+ .adder(GregtechMTE_NuclearReactor::addNuclearReactorEdgeList)
+ .hatchItemFilterAnd(t -> filterByMTETier(5, Integer.MAX_VALUE))
+ .casingIndex(TAE.GTPP_INDEX(12))
+ .dot(1)
+ .build(),
+ buildHatchAdder(GregtechMTE_NuclearReactor.class).atLeast(Dynamo)
+ .adder(GregtechMTE_NuclearReactor::addNuclearReactorEdgeList)
+ .hatchItemFilterAnd(t -> filterByMTETier(4, 6))
+ .casingIndex(TAE.GTPP_INDEX(12))
+ .dot(1)
+ .build(),
+ onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasingsMisc, 12))))
+ .addElement(
+ 'X',
+ buildHatchAdder(GregtechMTE_NuclearReactor.class).atLeast(Muffler)
+ .adder(GregtechMTE_NuclearReactor::addNuclearReactorTopList)
+ .hatchItemFilterAnd(t -> filterByMTETier(5, Integer.MAX_VALUE))
+ .casingIndex(TAE.GTPP_INDEX(12))
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasingsMisc, 12))))
+ .addElement('O', ofBlock(ModBlocks.blockCasingsMisc, 12))
+ .addElement('G', ofBlock(ModBlocks.blockCasingsMisc, 13))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -240,9 +266,9 @@ public class GregtechMTE_NuclearReactor extends GregtechMeta_MultiBlockBase<Greg
mCasing = 0;
if (checkPiece(mName, 3, 3, 0) && mCasing >= 27) {
if ((mOutputHatches.size() >= 3 || canDumpFluidToME()) && mInputHatches.size() >= 1
- && mDynamoHatches.size() == 4
- && mMufflerHatches.size() == 4
- && mMaintenanceHatches.size() == 2) {
+ && mDynamoHatches.size() == 4
+ && mMufflerHatches.size() == 4
+ && mMaintenanceHatches.size() == 2) {
fixAllMaintenanceIssue();
this.turnCasingActive(false);
return true;
@@ -350,7 +376,8 @@ public class GregtechMTE_NuclearReactor extends GregtechMeta_MultiBlockBase<Greg
int li2bef4 = 0;
FluidStack aFuelFluid = null;
for (FluidStack aFluidInput : recipe.mFluidInputs) {
- if (!aFluidInput.getFluid().equals(NUCLIDE.Li2BeF4.getFluid())) {
+ if (!aFluidInput.getFluid()
+ .equals(NUCLIDE.Li2BeF4.getFluid())) {
aFuelFluid = aFluidInput;
break;
}
@@ -359,9 +386,10 @@ public class GregtechMTE_NuclearReactor extends GregtechMeta_MultiBlockBase<Greg
for (FluidStack fluidStack : getStoredFluids()) {
if (fluidStack.isFluidEqual(aFuelFluid)) {
mFuelRemaining += fluidStack.amount;
- } else if (fluidStack.getFluid().equals(NUCLIDE.Li2BeF4.getFluid())) {
- li2bef4 += fluidStack.amount;
- }
+ } else if (fluidStack.getFluid()
+ .equals(NUCLIDE.Li2BeF4.getFluid())) {
+ li2bef4 += fluidStack.amount;
+ }
}
}
if (mFuelRemaining < 100) {
@@ -410,38 +438,47 @@ public class GregtechMTE_NuclearReactor extends GregtechMeta_MultiBlockBase<Greg
long explodevalue = MathUtils.randLong(Integer.MAX_VALUE, 8589934588L);
for (final MetaTileEntity tTileEntity : this.mInputBusses) {
explodevalue = MathUtils.randLong(Integer.MAX_VALUE, 8589934588L);
- tTileEntity.getBaseMetaTileEntity().doExplosion(explodevalue);
+ tTileEntity.getBaseMetaTileEntity()
+ .doExplosion(explodevalue);
}
for (final MetaTileEntity tTileEntity : this.mOutputBusses) {
explodevalue = MathUtils.randLong(Integer.MAX_VALUE, 8589934588L);
- tTileEntity.getBaseMetaTileEntity().doExplosion(explodevalue);
+ tTileEntity.getBaseMetaTileEntity()
+ .doExplosion(explodevalue);
}
for (final MetaTileEntity tTileEntity : this.mInputHatches) {
explodevalue = MathUtils.randLong(Integer.MAX_VALUE, 8589934588L);
- tTileEntity.getBaseMetaTileEntity().doExplosion(explodevalue);
+ tTileEntity.getBaseMetaTileEntity()
+ .doExplosion(explodevalue);
}
for (final MetaTileEntity tTileEntity : this.mOutputHatches) {
explodevalue = MathUtils.randLong(Integer.MAX_VALUE, 8589934588L);
- tTileEntity.getBaseMetaTileEntity().doExplosion(explodevalue);
+ tTileEntity.getBaseMetaTileEntity()
+ .doExplosion(explodevalue);
}
for (final MetaTileEntity tTileEntity : this.mDynamoHatches) {
explodevalue = MathUtils.randLong(Integer.MAX_VALUE, 8589934588L);
- tTileEntity.getBaseMetaTileEntity().doExplosion(explodevalue);
+ tTileEntity.getBaseMetaTileEntity()
+ .doExplosion(explodevalue);
}
for (final MetaTileEntity tTileEntity : this.mMufflerHatches) {
explodevalue = MathUtils.randLong(Integer.MAX_VALUE, 8589934588L);
- tTileEntity.getBaseMetaTileEntity().doExplosion(explodevalue);
+ tTileEntity.getBaseMetaTileEntity()
+ .doExplosion(explodevalue);
}
for (final MetaTileEntity tTileEntity : this.mEnergyHatches) {
explodevalue = MathUtils.randLong(Integer.MAX_VALUE, 8589934588L);
- tTileEntity.getBaseMetaTileEntity().doExplosion(explodevalue);
+ tTileEntity.getBaseMetaTileEntity()
+ .doExplosion(explodevalue);
}
for (final MetaTileEntity tTileEntity : this.mMaintenanceHatches) {
explodevalue = MathUtils.randLong(Integer.MAX_VALUE, 8589934588L);
- tTileEntity.getBaseMetaTileEntity().doExplosion(explodevalue);
+ tTileEntity.getBaseMetaTileEntity()
+ .doExplosion(explodevalue);
}
explodevalue = MathUtils.randLong(Integer.MAX_VALUE, 8589934588L);
- this.getBaseMetaTileEntity().doExplosion(explodevalue);
+ this.getBaseMetaTileEntity()
+ .doExplosion(explodevalue);
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntityTreeFarm.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntityTreeFarm.java
index bc53dbeab5..0441907f40 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntityTreeFarm.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntityTreeFarm.java
@@ -66,7 +66,7 @@ import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
import gtPlusPlus.xmod.gregtech.common.items.MetaGeneratedGregtechTools;
public class GregtechMetaTileEntityTreeFarm extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntityTreeFarm>
- implements ISurvivalConstructable {
+ implements ISurvivalConstructable {
public static int CASING_TEXTURE_ID;
private static final int TICKS_PER_OPERATION = 100;
@@ -100,23 +100,35 @@ public class GregtechMetaTileEntityTreeFarm extends GregtechMeta_MultiBlockBase<
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller block for the Tree Growth Simulator")
- .addInfo("Farms and harvests trees using EU").addInfo("Place a sapling in the controller slot")
- .addInfo("Place a tool in an input bus").addInfo("Different tools are required for different outputs")
- .addInfo("Advanced tools multiply output amount")
- .addInfo(" Logs: Saw (1x), Buzzsaw (2x), Chainsaw (4x)")
- .addInfo(" Saplings: Branch Cutter (1x), Grafter (3x)")
- .addInfo(" Leaves: Shears (1x), Wire Cutter (2x), Automatic Snips (4x)").addInfo(" Fruit: Knife (1x)")
- .addInfo("Multiple tools can be used at the same time").addSeparator()
- .addInfo("Work time is fixed at 5 seconds").addInfo("Energy input tier multiplies output further")
- .addInfo("Output multiplier is equal to: 2*tier^2 - 2*tier + 5")
- .addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(3, 3, 3, true)
- .addController("Front center").addCasingInfoMin(mCasingName, 8, false).addInputBus("Any casing", 1)
- .addStructureInfo(
- EnumChatFormatting.YELLOW
- + "Stocking Input Busses and Crafting Input Busses/Buffers are not allowed!")
- .addOutputBus("Any casing", 1).addEnergyHatch("Any casing", 1).addMaintenanceHatch("Any casing", 1)
- .addMufflerHatch("Any casing", 1).toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller block for the Tree Growth Simulator")
+ .addInfo("Farms and harvests trees using EU")
+ .addInfo("Place a sapling in the controller slot")
+ .addInfo("Place a tool in an input bus")
+ .addInfo("Different tools are required for different outputs")
+ .addInfo("Advanced tools multiply output amount")
+ .addInfo(" Logs: Saw (1x), Buzzsaw (2x), Chainsaw (4x)")
+ .addInfo(" Saplings: Branch Cutter (1x), Grafter (3x)")
+ .addInfo(" Leaves: Shears (1x), Wire Cutter (2x), Automatic Snips (4x)")
+ .addInfo(" Fruit: Knife (1x)")
+ .addInfo("Multiple tools can be used at the same time")
+ .addSeparator()
+ .addInfo("Work time is fixed at 5 seconds")
+ .addInfo("Energy input tier multiplies output further")
+ .addInfo("Output multiplier is equal to: 2*tier^2 - 2*tier + 5")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(3, 3, 3, true)
+ .addController("Front center")
+ .addCasingInfoMin(mCasingName, 8, false)
+ .addInputBus("Any casing", 1)
+ .addStructureInfo(
+ EnumChatFormatting.YELLOW + "Stocking Input Busses and Crafting Input Busses/Buffers are not allowed!")
+ .addOutputBus("Any casing", 1)
+ .addEnergyHatch("Any casing", 1)
+ .addMaintenanceHatch("Any casing", 1)
+ .addMufflerHatch("Any casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -192,23 +204,25 @@ public class GregtechMetaTileEntityTreeFarm extends GregtechMeta_MultiBlockBase<
public IStructureDefinition<GregtechMetaTileEntityTreeFarm> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntityTreeFarm>builder()
- .addShape(
- mName,
- transpose(
- new String[][] { { "CCC", "CCC", "CCC" }, { "C~C", "C-C", "CCC" },
- { "CCC", "CCC", "CCC" }, }))
- .addElement(
- 'C',
- buildHatchAdder(GregtechMetaTileEntityTreeFarm.class).atLeast(
- InputHatch,
- OutputHatch,
- InputBus,
- OutputBus,
- Maintenance,
- Energy.or(TTEnergy),
- Muffler).casingIndex(CASING_TEXTURE_ID).dot(1).buildAndChain(
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings2Misc, 15))))
- .build();
+ .addShape(
+ mName,
+ transpose(
+ new String[][] { { "CCC", "CCC", "CCC" }, { "C~C", "C-C", "CCC" }, { "CCC", "CCC", "CCC" }, }))
+ .addElement(
+ 'C',
+ buildHatchAdder(GregtechMetaTileEntityTreeFarm.class)
+ .atLeast(
+ InputHatch,
+ OutputHatch,
+ InputBus,
+ OutputBus,
+ Maintenance,
+ Energy.or(TTEnergy),
+ Muffler)
+ .casingIndex(CASING_TEXTURE_ID)
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings2Misc, 15))))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -339,7 +353,8 @@ public class GregtechMetaTileEntityTreeFarm extends GregtechMeta_MultiBlockBase<
outputItems = outputs.toArray(new ItemStack[0]);
VoidProtectionHelper voidProtection = new VoidProtectionHelper().setMachine(machine)
- .setItemOutputs(outputItems).build();
+ .setItemOutputs(outputItems)
+ .build();
if (voidProtection.isItemFull()) {
return CheckRecipeResultRegistry.ITEM_OUTPUT_FULL;
}
@@ -365,11 +380,11 @@ public class GregtechMetaTileEntityTreeFarm extends GregtechMeta_MultiBlockBase<
int toolMultiplier = getToolMultiplier(stack, mode);
if (toolMultiplier < 0) continue;
boolean canDamage = GT_ModHandler
- .damageOrDechargeItem(stack, TOOL_DAMAGE_PER_OPERATION, TOOL_CHARGE_PER_OPERATION, null);
+ .damageOrDechargeItem(stack, TOOL_DAMAGE_PER_OPERATION, TOOL_CHARGE_PER_OPERATION, null);
if (canDamage) {
// Tool was used.
if (GT_ModHandler.isElectricItem(stack)
- && !GT_ModHandler.canUseElectricItem(stack, TOOL_CHARGE_PER_OPERATION)) {
+ && !GT_ModHandler.canUseElectricItem(stack, TOOL_CHARGE_PER_OPERATION)) {
// Tool is out of charge, move it to output.
depleteInput(stack);
addOutput(stack);
@@ -537,7 +552,7 @@ public class GregtechMetaTileEntityTreeFarm extends GregtechMeta_MultiBlockBase<
if (stack == null) return false;
String registryName = Item.itemRegistry.getNameForObject(stack.getItem());
return treeProductsMap.containsKey(registryName + ":" + stack.getItemDamage())
- || "Forestry:sapling".equals(registryName);
+ || "Forestry:sapling".equals(registryName);
}
/**
@@ -585,8 +600,12 @@ public class GregtechMetaTileEntityTreeFarm extends GregtechMeta_MultiBlockBase<
ItemStack log = defaultMap.get(Mode.LOG);
if (log != null) {
- double height = Math.max(3 * (tree.getGenome().getHeight() - 1), 0) + 1;
- double girth = tree.getGenome().getGirth();
+ double height = Math.max(
+ 3 * (tree.getGenome()
+ .getHeight() - 1),
+ 0) + 1;
+ double girth = tree.getGenome()
+ .getGirth();
log = log.copy();
log.stackSize = (int) (log.stackSize * height * girth);
@@ -596,7 +615,8 @@ public class GregtechMetaTileEntityTreeFarm extends GregtechMeta_MultiBlockBase<
ItemStack saplingOut = defaultMap.get(Mode.SAPLING);
if (saplingOut != null) {
// Lowest = 0.01 ... Average = 0.05 ... Highest = 0.3
- double fertility = tree.getGenome().getFertility() * 10;
+ double fertility = tree.getGenome()
+ .getFertility() * 10;
// Return a copy of the *input* sapling, retaining its genetics.
int stackSize = Math.max(1, (int) (saplingOut.stackSize * fertility));
@@ -613,7 +633,8 @@ public class GregtechMetaTileEntityTreeFarm extends GregtechMeta_MultiBlockBase<
ItemStack fruit = defaultMap.get(Mode.FRUIT);
if (fruit != null) {
// Lowest = 0.025 ... Average = 0.2 ... Highest = 0.4
- double yield = tree.getGenome().getYield() * 10;
+ double yield = tree.getGenome()
+ .getYield() * 10;
fruit = fruit.copy();
fruit.stackSize = (int) (fruit.stackSize * yield);
@@ -650,7 +671,7 @@ public class GregtechMetaTileEntityTreeFarm extends GregtechMeta_MultiBlockBase<
* @param fruit ItemStack to output in mode FRUIT.
*/
public static void registerTreeProducts(ItemStack saplingIn, ItemStack log, ItemStack saplingOut, ItemStack leaves,
- ItemStack fruit) {
+ ItemStack fruit) {
String key = Item.itemRegistry.getNameForObject(saplingIn.getItem()) + ":" + saplingIn.getItemDamage();
EnumMap<Mode, ItemStack> map = new EnumMap<>(Mode.class);
if (log != null) map.put(Mode.LOG, log);
@@ -670,7 +691,7 @@ public class GregtechMetaTileEntityTreeFarm extends GregtechMeta_MultiBlockBase<
* to the stats of the real sapling that is in the controller slot.
*/
public static void registerForestryTree(String speciesUID, ItemStack sapling, ItemStack log, ItemStack leaves,
- ItemStack fruit) {
+ ItemStack fruit) {
String key = "Forestry:sapling:" + speciesUID;
EnumMap<Mode, ItemStack> map = new EnumMap<>(Mode.class);
map.put(Mode.LOG, log);
@@ -687,11 +708,11 @@ public class GregtechMetaTileEntityTreeFarm extends GregtechMeta_MultiBlockBase<
return;
}
addFakeRecipeToNEI(
- sapling,
- map.get(Mode.LOG),
- map.get(Mode.SAPLING),
- map.get(Mode.LEAVES),
- map.get(Mode.FRUIT));
+ sapling,
+ map.get(Mode.LOG),
+ map.get(Mode.SAPLING),
+ map.get(Mode.LEAVES),
+ map.get(Mode.FRUIT));
}
/**
@@ -701,29 +722,28 @@ public class GregtechMetaTileEntityTreeFarm extends GregtechMeta_MultiBlockBase<
static {
GT_MetaGenerated_Tool toolInstance = GT_MetaGenerated_Tool_01.INSTANCE;
altToolsForNEI = new ItemStack[][] {
- // Mode.LOG
- { toolInstance.getToolWithStats(GT_MetaGenerated_Tool_01.SAW, 1, null, null, null),
- toolInstance.getToolWithStats(GT_MetaGenerated_Tool_01.POCKET_SAW, 1, null, null, null),
- toolInstance.getToolWithStats(GT_MetaGenerated_Tool_01.BUZZSAW_LV, 1, null, null, null),
- toolInstance.getToolWithStats(GT_MetaGenerated_Tool_01.CHAINSAW_LV, 1, null, null, null),
- toolInstance.getToolWithStats(GT_MetaGenerated_Tool_01.BUZZSAW_MV, 1, null, null, null),
- toolInstance.getToolWithStats(GT_MetaGenerated_Tool_01.CHAINSAW_MV, 1, null, null, null),
- toolInstance.getToolWithStats(GT_MetaGenerated_Tool_01.BUZZSAW_HV, 1, null, null, null),
- toolInstance.getToolWithStats(GT_MetaGenerated_Tool_01.CHAINSAW_HV, 1, null, null, null), },
- // Mode.SAPLING
- { toolInstance.getToolWithStats(GT_MetaGenerated_Tool_01.BRANCHCUTTER, 1, null, null, null),
- toolInstance
- .getToolWithStats(GT_MetaGenerated_Tool_01.POCKET_BRANCHCUTTER, 1, null, null, null),
- GT_ModHandler.getModItem(Mods.Forestry.ID, "grafter", 1, 0), },
- // Mode.LEAVES
- { new ItemStack(Items.shears),
- toolInstance.getToolWithStats(GT_MetaGenerated_Tool_01.WIRECUTTER, 1, null, null, null),
- toolInstance.getToolWithStats(GT_MetaGenerated_Tool_01.POCKET_WIRECUTTER, 1, null, null, null),
- MetaGeneratedGregtechTools.getInstance()
- .getToolWithStats(MetaGeneratedGregtechTools.ELECTRIC_SNIPS, 1, null, null, null), },
- // Mode.FRUIT
- { toolInstance.getToolWithStats(GT_MetaGenerated_Tool_01.KNIFE, 1, null, null, null),
- toolInstance.getToolWithStats(GT_MetaGenerated_Tool_01.POCKET_KNIFE, 1, null, null, null), } };
+ // Mode.LOG
+ { toolInstance.getToolWithStats(GT_MetaGenerated_Tool_01.SAW, 1, null, null, null),
+ toolInstance.getToolWithStats(GT_MetaGenerated_Tool_01.POCKET_SAW, 1, null, null, null),
+ toolInstance.getToolWithStats(GT_MetaGenerated_Tool_01.BUZZSAW_LV, 1, null, null, null),
+ toolInstance.getToolWithStats(GT_MetaGenerated_Tool_01.CHAINSAW_LV, 1, null, null, null),
+ toolInstance.getToolWithStats(GT_MetaGenerated_Tool_01.BUZZSAW_MV, 1, null, null, null),
+ toolInstance.getToolWithStats(GT_MetaGenerated_Tool_01.CHAINSAW_MV, 1, null, null, null),
+ toolInstance.getToolWithStats(GT_MetaGenerated_Tool_01.BUZZSAW_HV, 1, null, null, null),
+ toolInstance.getToolWithStats(GT_MetaGenerated_Tool_01.CHAINSAW_HV, 1, null, null, null), },
+ // Mode.SAPLING
+ { toolInstance.getToolWithStats(GT_MetaGenerated_Tool_01.BRANCHCUTTER, 1, null, null, null),
+ toolInstance.getToolWithStats(GT_MetaGenerated_Tool_01.POCKET_BRANCHCUTTER, 1, null, null, null),
+ GT_ModHandler.getModItem(Mods.Forestry.ID, "grafter", 1, 0), },
+ // Mode.LEAVES
+ { new ItemStack(Items.shears),
+ toolInstance.getToolWithStats(GT_MetaGenerated_Tool_01.WIRECUTTER, 1, null, null, null),
+ toolInstance.getToolWithStats(GT_MetaGenerated_Tool_01.POCKET_WIRECUTTER, 1, null, null, null),
+ MetaGeneratedGregtechTools.getInstance()
+ .getToolWithStats(MetaGeneratedGregtechTools.ELECTRIC_SNIPS, 1, null, null, null), },
+ // Mode.FRUIT
+ { toolInstance.getToolWithStats(GT_MetaGenerated_Tool_01.KNIFE, 1, null, null, null),
+ toolInstance.getToolWithStats(GT_MetaGenerated_Tool_01.POCKET_KNIFE, 1, null, null, null), } };
}
/**
@@ -732,8 +752,9 @@ public class GregtechMetaTileEntityTreeFarm extends GregtechMeta_MultiBlockBase<
* @return True if the recipe was added successfully.
*/
public static boolean addFakeRecipeToNEI(ItemStack saplingIn, ItemStack log, ItemStack saplingOut, ItemStack leaves,
- ItemStack fruit) {
- int recipeCount = GTPPRecipeMaps.treeGrowthSimulatorFakeRecipes.getAllRecipes().size();
+ ItemStack fruit) {
+ int recipeCount = GTPPRecipeMaps.treeGrowthSimulatorFakeRecipes.getAllRecipes()
+ .size();
// Sapling goes into the "special" slot.
ItemStack specialStack = saplingIn.copy();
@@ -763,25 +784,26 @@ public class GregtechMetaTileEntityTreeFarm extends GregtechMeta_MultiBlockBase<
}
Logger.INFO(
- "Adding Tree Growth Simulation NEI recipe for " + specialStack.getDisplayName()
- + " -> "
- + ItemUtils.getArrayStackNames(outputStacks));
+ "Adding Tree Growth Simulation NEI recipe for " + specialStack.getDisplayName()
+ + " -> "
+ + ItemUtils.getArrayStackNames(outputStacks));
GTPPRecipeMaps.treeGrowthSimulatorFakeRecipes.addFakeRecipe(
+ false,
+ new GT_Recipe.GT_Recipe_WithAlt(
false,
- new GT_Recipe.GT_Recipe_WithAlt(
- false,
- null, // All inputs are taken from aAtl argument.
- outputStacks,
- specialStack,
- null,
- null,
- null,
- TICKS_PER_OPERATION,
- 0,
- recipeCount, // special value, also sorts recipes correctly in order of addition.
- inputStacks));
-
- return GTPPRecipeMaps.treeGrowthSimulatorFakeRecipes.getAllRecipes().size() > recipeCount;
+ null, // All inputs are taken from aAtl argument.
+ outputStacks,
+ specialStack,
+ null,
+ null,
+ null,
+ TICKS_PER_OPERATION,
+ 0,
+ recipeCount, // special value, also sorts recipes correctly in order of addition.
+ inputStacks));
+
+ return GTPPRecipeMaps.treeGrowthSimulatorFakeRecipes.getAllRecipes()
+ .size() > recipeCount;
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_AlloyBlastSmelter.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_AlloyBlastSmelter.java
index 93602ad5f2..580efdcdab 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_AlloyBlastSmelter.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_AlloyBlastSmelter.java
@@ -41,8 +41,8 @@ import gtPlusPlus.core.recipe.common.CI;
import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.GregtechMeta_MultiBlockBase;
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
-public class GregtechMetaTileEntity_AlloyBlastSmelter extends
- GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_AlloyBlastSmelter> implements ISurvivalConstructable {
+public class GregtechMetaTileEntity_AlloyBlastSmelter
+ extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_AlloyBlastSmelter> implements ISurvivalConstructable {
private int mMode = 0;
private boolean isUsingControllerCircuit = false;
@@ -79,16 +79,25 @@ public class GregtechMetaTileEntity_AlloyBlastSmelter extends
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for the Alloy Blast Smelter")
- .addInfo("20% Faster than the Electric Blast Furnace")
- .addInfo("Allows Complex GT++ alloys to be created").addInfo("Accepts only one Energy Hatch")
- .addInfo("Circuit for recipe goes in the Input Bus or GUI slot")
- .addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(3, 4, 3, true)
- .addController("Bottom Center").addCasingInfoMin("Blast Smelter Casings", 5, false)
- .addCasingInfoMin("Blast Smelter Heat Containment Coils", 16, false).addInputBus("Any Casing", 1)
- .addInputHatch("Any Casing", 1).addOutputHatch("Any Casing", 1).addEnergyHatch("Any Casing", 1)
- .addMaintenanceHatch("Any Casing", 1).addMufflerHatch("Any Casing", 1)
- .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for the Alloy Blast Smelter")
+ .addInfo("20% Faster than the Electric Blast Furnace")
+ .addInfo("Allows Complex GT++ alloys to be created")
+ .addInfo("Accepts only one Energy Hatch")
+ .addInfo("Circuit for recipe goes in the Input Bus or GUI slot")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(3, 4, 3, true)
+ .addController("Bottom Center")
+ .addCasingInfoMin("Blast Smelter Casings", 5, false)
+ .addCasingInfoMin("Blast Smelter Heat Containment Coils", 16, false)
+ .addInputBus("Any Casing", 1)
+ .addInputHatch("Any Casing", 1)
+ .addOutputHatch("Any Casing", 1)
+ .addEnergyHatch("Any Casing", 1)
+ .addMaintenanceHatch("Any Casing", 1)
+ .addMufflerHatch("Any Casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -96,18 +105,20 @@ public class GregtechMetaTileEntity_AlloyBlastSmelter extends
public IStructureDefinition<GregtechMetaTileEntity_AlloyBlastSmelter> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_AlloyBlastSmelter>builder()
- .addShape(
- mName,
- transpose(
- new String[][] { { "CCC", "CCC", "CCC" }, { "HHH", "H-H", "HHH" },
- { "HHH", "H-H", "HHH" }, { "C~C", "CCC", "CCC" }, }))
- .addElement(
- 'C',
- buildHatchAdder(GregtechMetaTileEntity_AlloyBlastSmelter.class)
- .atLeast(InputBus, InputHatch, OutputBus, OutputHatch, Maintenance, Energy, Muffler)
- .casingIndex(TAE.GTPP_INDEX(15)).dot(1).buildAndChain(
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasingsMisc, 15))))
- .addElement('H', ofBlock(ModBlocks.blockCasingsMisc, 14)).build();
+ .addShape(
+ mName,
+ transpose(
+ new String[][] { { "CCC", "CCC", "CCC" }, { "HHH", "H-H", "HHH" }, { "HHH", "H-H", "HHH" },
+ { "C~C", "CCC", "CCC" }, }))
+ .addElement(
+ 'C',
+ buildHatchAdder(GregtechMetaTileEntity_AlloyBlastSmelter.class)
+ .atLeast(InputBus, InputHatch, OutputBus, OutputHatch, Maintenance, Energy, Muffler)
+ .casingIndex(TAE.GTPP_INDEX(15))
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasingsMisc, 15))))
+ .addElement('H', ofBlock(ModBlocks.blockCasingsMisc, 14))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -156,10 +167,12 @@ public class GregtechMetaTileEntity_AlloyBlastSmelter extends
@Override
public boolean isCorrectMachinePart(final ItemStack aStack) {
- if (this.getBaseMetaTileEntity().isServerSide()) {
+ if (this.getBaseMetaTileEntity()
+ .isServerSide()) {
// Get Controller Circuit
if (circuit == null) {
- circuit = CI.getNumberedCircuit(0).getItem();
+ circuit = CI.getNumberedCircuit(0)
+ .getItem();
}
if (aStack != null && aStack.getItem() == circuit) {
this.mMode = aStack.getItemDamage();
@@ -186,8 +199,8 @@ public class GregtechMetaTileEntity_AlloyBlastSmelter extends
public void onModeChangeByScrewdriver(ForgeDirection side, 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/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_Cyclotron.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_Cyclotron.java
index f42641c80e..5861885bd0 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_Cyclotron.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_Cyclotron.java
@@ -43,7 +43,7 @@ import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.Gregtech
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
public class GregtechMetaTileEntity_Cyclotron extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_Cyclotron>
- implements ISurvivalConstructable {
+ implements ISurvivalConstructable {
private int mCasing;
private static IStructureDefinition<GregtechMetaTileEntity_Cyclotron> STRUCTURE_DEFINITION = null;
@@ -93,31 +93,32 @@ public class GregtechMetaTileEntity_Cyclotron extends GregtechMeta_MultiBlockBas
@Override
public IStructureDefinition<GregtechMetaTileEntity_Cyclotron> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
- STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_Cyclotron>builder().addShape(
+ STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_Cyclotron>builder()
+ .addShape(
mName,
transpose(
- new String[][] {
- { " ", " hhh ", " hh hh ", " h h ",
- " h h ", " h h ", " h h ", " h h ",
- " h h ", " h h ", " h h ", " h h ",
- " hh hh ", " hhh ", " ", },
- { " hhh ", " hhccchh ", " hcchhhcch ", " hchh hhch ",
- " hch hch ", " hch hch ", "hch hch", "hch hch",
- "hch hch", " hch hch ", " hch hch ", " hchh hhch ",
- " hcch~hcch ", " hhccchh ", " hhh ", },
- { " ", " hhh ", " hh hh ", " h h ",
- " h h ", " h h ", " h h ", " h h ",
- " h h ", " h h ", " h h ", " h h ",
- " hh hh ", " hhh ", " ", } }))
- .addElement(
- 'h',
- buildHatchAdder(GregtechMetaTileEntity_Cyclotron.class)
- .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler, InputHatch, OutputHatch)
- .casingIndex(44).dot(1).buildAndChain(
- onElementPass(
- x -> ++x.mCasing,
- ofBlock(getCasingBlock(), getCasingMeta()))))
- .addElement('c', ofBlock(getCyclotronCoil(), getCyclotronCoilMeta())).build();
+ new String[][] {
+ { " ", " hhh ", " hh hh ", " h h ",
+ " h h ", " h h ", " h h ", " h h ",
+ " h h ", " h h ", " h h ", " h h ",
+ " hh hh ", " hhh ", " ", },
+ { " hhh ", " hhccchh ", " hcchhhcch ", " hchh hhch ",
+ " hch hch ", " hch hch ", "hch hch", "hch hch",
+ "hch hch", " hch hch ", " hch hch ", " hchh hhch ",
+ " hcch~hcch ", " hhccchh ", " hhh ", },
+ { " ", " hhh ", " hh hh ", " h h ",
+ " h h ", " h h ", " h h ", " h h ",
+ " h h ", " h h ", " h h ", " h h ",
+ " hh hh ", " hhh ", " ", } }))
+ .addElement(
+ 'h',
+ buildHatchAdder(GregtechMetaTileEntity_Cyclotron.class)
+ .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler, InputHatch, OutputHatch)
+ .casingIndex(44)
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(getCasingBlock(), getCasingMeta()))))
+ .addElement('c', ofBlock(getCyclotronCoil(), getCyclotronCoilMeta()))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -163,19 +164,29 @@ public class GregtechMetaTileEntity_Cyclotron extends GregtechMeta_MultiBlockBas
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Super Magnetic Speed Shooter").addSeparator()
- .addInfo("Particles are accelerated over 186 revolutions to 80% light speed")
- .addInfo("Can produce a continuous beam current of 2.2 mA at 590 MeV")
- .addInfo("Which will be extracted from the Isochronous Cyclotron").addSeparator()
- .addInfo("Consists of the same layout as a Fusion Reactor")
- .addInfo("Any external casing can be a hatch/bus, unlike Fusion")
- .addInfo("Cyclotron Machine Casings around Cyclotron Coil Blocks")
- .addInfo("All Hatches must be IV or better").addPollutionAmount(getPollutionPerSecond(null))
- .addSeparator().addCasingInfoMin("Cyclotron Machine Casings", 40, false)
- .addCasingInfoMin("Cyclotron Coil", 32, false).addInputBus("Any Casing", 1)
- .addOutputBus("Any Casing", 1).addInputHatch("Any Casing", 1).addOutputHatch("Any Casing", 1)
- .addEnergyHatch("Any Casing", 1).addMaintenanceHatch("Any Casing", 1).addMufflerHatch("Any Casing", 1)
- .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Super Magnetic Speed Shooter")
+ .addSeparator()
+ .addInfo("Particles are accelerated over 186 revolutions to 80% light speed")
+ .addInfo("Can produce a continuous beam current of 2.2 mA at 590 MeV")
+ .addInfo("Which will be extracted from the Isochronous Cyclotron")
+ .addSeparator()
+ .addInfo("Consists of the same layout as a Fusion Reactor")
+ .addInfo("Any external casing can be a hatch/bus, unlike Fusion")
+ .addInfo("Cyclotron Machine Casings around Cyclotron Coil Blocks")
+ .addInfo("All Hatches must be IV or better")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .addCasingInfoMin("Cyclotron Machine Casings", 40, false)
+ .addCasingInfoMin("Cyclotron Coil", 32, false)
+ .addInputBus("Any Casing", 1)
+ .addOutputBus("Any Casing", 1)
+ .addInputHatch("Any Casing", 1)
+ .addOutputHatch("Any Casing", 1)
+ .addEnergyHatch("Any Casing", 1)
+ .addMaintenanceHatch("Any Casing", 1)
+ .addMufflerHatch("Any Casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -195,7 +206,8 @@ public class GregtechMetaTileEntity_Cyclotron extends GregtechMeta_MultiBlockBas
}
public IIconContainer getIconOverlay() {
- if (this.getBaseMetaTileEntity().isActive()) {
+ if (this.getBaseMetaTileEntity()
+ .isActive()) {
return TexturesGtBlock.Overlay_MatterFab_Active_Animated;
}
return TexturesGtBlock.Overlay_MatterFab_Animated;
@@ -227,12 +239,12 @@ public class GregtechMetaTileEntity_Cyclotron extends GregtechMeta_MultiBlockBas
long aCharge = IonParticles.getChargeState(s);
if (aCharge == 0) {
IonParticles.setChargeState(
- s,
- MathUtils.getRandomFromArray(
- new int[] { -5, -5, -4, -4, -4, -3, -3, -3, -3, -3, -2, -2, -2, -2,
- -2, -2, -2, -1, -1, -1, -1, -1, -1, -1, -1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6 }));
+ s,
+ MathUtils.getRandomFromArray(
+ new int[] { -5, -5, -4, -4, -4, -3, -3, -3, -3, -3, -2, -2, -2, -2, -2, -2,
+ -2, -1, -1, -1, -1, -1, -1, -1, -1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4,
+ 5, 5, 5, 6, 6 }));
}
}
}
@@ -259,12 +271,12 @@ public class GregtechMetaTileEntity_Cyclotron extends GregtechMeta_MultiBlockBas
long aCharge = IonParticles.getChargeState(s);
if (aCharge == 0) {
IonParticles.setChargeState(
- s,
- MathUtils.getRandomFromArray(
- new int[] { -5, -5, -4, -4, -4, -3, -3, -3, -3, -3, -2, -2, -2, -2,
- -2, -2, -2, -1, -1, -1, -1, -1, -1, -1, -1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6 }));
+ s,
+ MathUtils.getRandomFromArray(
+ new int[] { -5, -5, -4, -4, -4, -3, -3, -3, -3, -3, -2, -2, -2, -2, -2, -2,
+ -2, -1, -1, -1, -1, -1, -1, -1, -1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4,
+ 5, 5, 5, 6, 6 }));
}
}
}
@@ -309,7 +321,7 @@ public class GregtechMetaTileEntity_Cyclotron extends GregtechMeta_MultiBlockBas
}
return new String[] { "COMET - Compact Cyclotron MK " + tier, "EU Required: " + powerRequired + "EU/t",
- "Stored EU: " + this.getEUVar() + " / " + maxEUStore() };
+ "Stored EU: " + this.getEUVar() + " / " + maxEUStore() };
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_IndustrialFishingPond.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_IndustrialFishingPond.java
index 3504afb8bd..78e4a17274 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_IndustrialFishingPond.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_IndustrialFishingPond.java
@@ -59,10 +59,11 @@ import ic2.core.init.BlocksItems;
import ic2.core.init.InternalName;
public class GregtechMetaTileEntity_IndustrialFishingPond extends
- GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialFishingPond> implements ISurvivalConstructable {
+ GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialFishingPond> implements ISurvivalConstructable {
private boolean isUsingControllerCircuit = false;
- private static final Item circuit = CI.getNumberedCircuit(0).getItem();
+ private static final Item circuit = CI.getNumberedCircuit(0)
+ .getItem();
private int mCasing;
private static IStructureDefinition<GregtechMetaTileEntity_IndustrialFishingPond> STRUCTURE_DEFINITION = null;
private static final Class<?> cofhWater;
@@ -92,15 +93,27 @@ public class GregtechMetaTileEntity_IndustrialFishingPond extends
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for the Fishing Pond")
- .addInfo("Can process (Tier + 1) * 2 recipes").addInfo("Put a numbered circuit into the input bus.")
- .addInfo("Circuit 14 for Fish").addInfo("Circuit 15 for Junk").addInfo("Circuit 16 for Treasure")
- .addInfo("Need to be filled with water.").addInfo("Will automatically fill water from input hatch.")
- .addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(9, 3, 9, true)
- .addController("Front Center").addCasingInfoMin("Aquatic Casings", 64, false)
- .addInputBus("Any Casing", 1).addOutputBus("Any Casing", 1).addInputHatch("Any Casing", 1)
- .addEnergyHatch("Any Casing", 1).addMaintenanceHatch("Any Casing", 1).addMufflerHatch("Any Casing", 1)
- .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for the Fishing Pond")
+ .addInfo("Can process (Tier + 1) * 2 recipes")
+ .addInfo("Put a numbered circuit into the input bus.")
+ .addInfo("Circuit 14 for Fish")
+ .addInfo("Circuit 15 for Junk")
+ .addInfo("Circuit 16 for Treasure")
+ .addInfo("Need to be filled with water.")
+ .addInfo("Will automatically fill water from input hatch.")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(9, 3, 9, true)
+ .addController("Front Center")
+ .addCasingInfoMin("Aquatic Casings", 64, false)
+ .addInputBus("Any Casing", 1)
+ .addOutputBus("Any Casing", 1)
+ .addInputHatch("Any Casing", 1)
+ .addEnergyHatch("Any Casing", 1)
+ .addMaintenanceHatch("Any Casing", 1)
+ .addMufflerHatch("Any Casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -113,25 +126,24 @@ public class GregtechMetaTileEntity_IndustrialFishingPond extends
public IStructureDefinition<GregtechMetaTileEntity_IndustrialFishingPond> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_IndustrialFishingPond>builder()
- .addShape(
- mName,
- transpose(
- new String[][] {
- { "XXXXXXXXX", "X X", "X X", "X X", "X X",
- "X X", "X X", "X X", "XXXXXXXXX" },
- { "XXXX~XXXX", "X X", "X X", "X X", "X X",
- "X X", "X X", "X X", "XXXXXXXXX" },
- { "XXXXXXXXX", "XXXXXXXXX", "XXXXXXXXX", "XXXXXXXXX", "XXXXXXXXX",
- "XXXXXXXXX", "XXXXXXXXX", "XXXXXXXXX", "XXXXXXXXX" }, }))
- .addElement(
- 'X',
- buildHatchAdder(GregtechMetaTileEntity_IndustrialFishingPond.class)
- .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler, InputHatch)
- .casingIndex(getCasingTextureIndex()).dot(1).buildAndChain(
- onElementPass(
- x -> ++x.mCasing,
- ofBlock(getCasingBlock(), getCasingMeta()))))
- .build();
+ .addShape(
+ mName,
+ transpose(
+ new String[][] {
+ { "XXXXXXXXX", "X X", "X X", "X X", "X X", "X X", "X X",
+ "X X", "XXXXXXXXX" },
+ { "XXXX~XXXX", "X X", "X X", "X X", "X X", "X X", "X X",
+ "X X", "XXXXXXXXX" },
+ { "XXXXXXXXX", "XXXXXXXXX", "XXXXXXXXX", "XXXXXXXXX", "XXXXXXXXX", "XXXXXXXXX", "XXXXXXXXX",
+ "XXXXXXXXX", "XXXXXXXXX" }, }))
+ .addElement(
+ 'X',
+ buildHatchAdder(GregtechMetaTileEntity_IndustrialFishingPond.class)
+ .atLeast(InputBus, OutputBus, Maintenance, Energy, Muffler, InputHatch)
+ .casingIndex(getCasingTextureIndex())
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(getCasingBlock(), getCasingMeta()))))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -211,22 +223,29 @@ public class GregtechMetaTileEntity_IndustrialFishingPond extends
ItemStack[] mFishOutput = generateLoot(this.mMode);
mFishOutput = removeNulls(mFishOutput);
GT_Recipe g = new GT_Recipe(
- true,
- new ItemStack[] {},
- mFishOutput,
- null,
- new int[] {},
- tFluidInputs,
- null,
- 200,
- 16,
- 0);
- GT_OverclockCalculator calculator = new GT_OverclockCalculator().setRecipeEUt(g.mEUt).setEUt(tEnergy)
- .setDuration(g.mDuration);
- GT_ParallelHelper helper = new GT_ParallelHelper().setRecipe(g).setItemInputs(tItemInputs)
- .setFluidInputs(tFluidInputs).setAvailableEUt(tEnergy).setMaxParallel(getMaxParallelRecipes())
- .setConsumption(true).setOutputCalculation(true).setMachine(this).enableBatchMode(batchMode ? 128 : 1)
- .setCalculator(calculator);
+ true,
+ new ItemStack[] {},
+ mFishOutput,
+ null,
+ new int[] {},
+ tFluidInputs,
+ null,
+ 200,
+ 16,
+ 0);
+ GT_OverclockCalculator calculator = new GT_OverclockCalculator().setRecipeEUt(g.mEUt)
+ .setEUt(tEnergy)
+ .setDuration(g.mDuration);
+ GT_ParallelHelper helper = new GT_ParallelHelper().setRecipe(g)
+ .setItemInputs(tItemInputs)
+ .setFluidInputs(tFluidInputs)
+ .setAvailableEUt(tEnergy)
+ .setMaxParallel(getMaxParallelRecipes())
+ .setConsumption(true)
+ .setOutputCalculation(true)
+ .setMachine(this)
+ .enableBatchMode(batchMode ? 128 : 1)
+ .setCalculator(calculator);
helper.build();
@@ -318,7 +337,8 @@ public class GregtechMetaTileEntity_IndustrialFishingPond extends
// Utils.LOG_WARNING("Going to try swap an air block for water from inut bus.");
stored.amount -= 1000;
Block fluidUsed = Blocks.water;
- aBaseMetaTileEntity.getWorld().setBlock(
+ aBaseMetaTileEntity.getWorld()
+ .setBlock(
aBaseMetaTileEntity.getXCoord() + xDir + i,
aBaseMetaTileEntity.getYCoord() + h,
aBaseMetaTileEntity.getZCoord() + zDir + j,
@@ -341,8 +361,8 @@ public class GregtechMetaTileEntity_IndustrialFishingPond extends
private boolean isNotStaticWater(Block block, byte meta) {
return block == Blocks.air || block == Blocks.flowing_water
- || block == BlocksItems.getFluidBlock(InternalName.fluidDistilledWater)
- || (cofhWater != null && cofhWater.isAssignableFrom(block.getClass()) && meta != 0);
+ || block == BlocksItems.getFluidBlock(InternalName.fluidDistilledWater)
+ || (cofhWater != null && cofhWater.isAssignableFrom(block.getClass()) && meta != 0);
}
private static AutoMap<AutoMap<WeightedRandomFishable>> categories = new AutoMap<>();
@@ -374,7 +394,8 @@ public class GregtechMetaTileEntity_IndustrialFishingPond extends
private int getCircuit(ItemStack[] t) {
if (!this.isUsingControllerCircuit) {
for (ItemStack j : t) {
- if (j.getItem() == CI.getNumberedCircuit(0).getItem()) {
+ if (j.getItem() == CI.getNumberedCircuit(0)
+ .getItem()) {
// Fish
if (j.getItemDamage() == 14) {
mMax = 8 + (this.getMaxParallelRecipes() - 2);
@@ -416,7 +437,8 @@ public class GregtechMetaTileEntity_IndustrialFishingPond extends
}
ItemStack t;
try {
- t = (ItemStack) ReflectionUtils.getField(WeightedRandomFishable.class, "field_150711_b").get(y);
+ t = (ItemStack) ReflectionUtils.getField(WeightedRandomFishable.class, "field_150711_b")
+ .get(y);
ItemStack k = ItemUtils.getSimpleStack(t, 1);
reflectiveFishMap.put(y, k);
return t;
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_IndustrialRockBreaker.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_IndustrialRockBreaker.java
index 833e347ce2..e7e74ac061 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_IndustrialRockBreaker.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_IndustrialRockBreaker.java
@@ -52,7 +52,7 @@ import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.Gregtech
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
public class GregtechMetaTileEntity_IndustrialRockBreaker extends
- GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialRockBreaker> implements ISurvivalConstructable {
+ GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_IndustrialRockBreaker> implements ISurvivalConstructable {
private int mCasing;
private static IStructureDefinition<GregtechMetaTileEntity_IndustrialRockBreaker> STRUCTURE_DEFINITION = null;
@@ -77,21 +77,31 @@ public class GregtechMetaTileEntity_IndustrialRockBreaker extends
private static final String casingBaseName = GT_LanguageManager.getTranslation("gtplusplus.blockcasings.2.0.name");
private static final String casingMiddleName = GT_LanguageManager
- .getTranslation("gtplusplus.blockcasings.2.11.name");
+ .getTranslation("gtplusplus.blockcasings.2.11.name");
private static final String anyBaseCasing = "Any " + casingBaseName;
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for the Industrial Rock Breaker")
- .addInfo("Speed: +200% | EU Usage: 75% | Parallel: Tier x 8").addInfo("Circuit goes in the GUI slot")
- .addInfo("1 = cobble, 2 = stone, 3 = obsidian").addInfo("Supply Water/Lava")
- .addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(3, 4, 3, true)
- .addController("Bottom Center").addCasingInfoMin(casingBaseName, 9, false)
- .addCasingInfoExactly(casingMiddleName, 16, false).addInputBus(anyBaseCasing, 1)
- .addInputHatch(anyBaseCasing, 1).addOutputBus(anyBaseCasing, 1).addEnergyHatch(anyBaseCasing, 1)
- .addMaintenanceHatch(anyBaseCasing, 1).addMufflerHatch(anyBaseCasing, 1)
- .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for the Industrial Rock Breaker")
+ .addInfo("Speed: +200% | EU Usage: 75% | Parallel: Tier x 8")
+ .addInfo("Circuit goes in the GUI slot")
+ .addInfo("1 = cobble, 2 = stone, 3 = obsidian")
+ .addInfo("Supply Water/Lava")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(3, 4, 3, true)
+ .addController("Bottom Center")
+ .addCasingInfoMin(casingBaseName, 9, false)
+ .addCasingInfoExactly(casingMiddleName, 16, false)
+ .addInputBus(anyBaseCasing, 1)
+ .addInputHatch(anyBaseCasing, 1)
+ .addOutputBus(anyBaseCasing, 1)
+ .addEnergyHatch(anyBaseCasing, 1)
+ .addMaintenanceHatch(anyBaseCasing, 1)
+ .addMufflerHatch(anyBaseCasing, 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -99,18 +109,20 @@ public class GregtechMetaTileEntity_IndustrialRockBreaker extends
public IStructureDefinition<GregtechMetaTileEntity_IndustrialRockBreaker> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_IndustrialRockBreaker>builder()
- .addShape(
- mName,
- transpose(
- new String[][] { { "CCC", "CCC", "CCC" }, { "HHH", "H-H", "HHH" },
- { "HHH", "H-H", "HHH" }, { "C~C", "CCC", "CCC" }, }))
- .addElement(
- 'C',
- buildHatchAdder(GregtechMetaTileEntity_IndustrialRockBreaker.class)
- .atLeast(InputBus, InputHatch, OutputBus, Maintenance, Energy, Muffler)
- .casingIndex(TAE.GTPP_INDEX(16)).dot(1).buildAndChain(
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings2Misc, 0))))
- .addElement('H', ofBlock(ModBlocks.blockCasings2Misc, 11)).build();
+ .addShape(
+ mName,
+ transpose(
+ new String[][] { { "CCC", "CCC", "CCC" }, { "HHH", "H-H", "HHH" }, { "HHH", "H-H", "HHH" },
+ { "C~C", "CCC", "CCC" }, }))
+ .addElement(
+ 'C',
+ buildHatchAdder(GregtechMetaTileEntity_IndustrialRockBreaker.class)
+ .atLeast(InputBus, InputHatch, OutputBus, Maintenance, Energy, Muffler)
+ .casingIndex(TAE.GTPP_INDEX(16))
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings2Misc, 0))))
+ .addElement('H', ofBlock(ModBlocks.blockCasings2Misc, 11))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -177,39 +189,39 @@ public class GregtechMetaTileEntity_IndustrialRockBreaker extends
private static void generateRecipes() {
sRecipe_Cobblestone = new GT_Recipe(
- false,
- new ItemStack[] { CI.getNumberedCircuit(1) },
- new ItemStack[] { ItemUtils.getSimpleStack(Blocks.cobblestone) },
- null,
- new int[] { 10000 },
- null,
- null,
- 16,
- 32,
- 0);
+ false,
+ new ItemStack[] { CI.getNumberedCircuit(1) },
+ new ItemStack[] { ItemUtils.getSimpleStack(Blocks.cobblestone) },
+ null,
+ new int[] { 10000 },
+ null,
+ null,
+ 16,
+ 32,
+ 0);
sRecipe_SmoothStone = new GT_Recipe(
- false,
- new ItemStack[] { CI.getNumberedCircuit(2) },
- new ItemStack[] { ItemUtils.getSimpleStack(Blocks.stone) },
- null,
- new int[] { 10000 },
- null,
- null,
- 16,
- 32,
- 0);
+ false,
+ new ItemStack[] { CI.getNumberedCircuit(2) },
+ new ItemStack[] { ItemUtils.getSimpleStack(Blocks.stone) },
+ null,
+ new int[] { 10000 },
+ null,
+ null,
+ 16,
+ 32,
+ 0);
sRecipe_Redstone = new GT_Recipe(
- false,
- new ItemStack[] { CI.getNumberedCircuit(3),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L) },
- new ItemStack[] { ItemUtils.getSimpleStack(Blocks.obsidian) },
- null,
- new int[] { 10000 },
- null,
- null,
- 128,
- 32,
- 0);
+ false,
+ new ItemStack[] { CI.getNumberedCircuit(3),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L) },
+ new ItemStack[] { ItemUtils.getSimpleStack(Blocks.obsidian) },
+ null,
+ new int[] { 10000 },
+ null,
+ null,
+ 128,
+ 32,
+ 0);
}
@Override
@@ -233,7 +245,7 @@ public class GregtechMetaTileEntity_IndustrialRockBreaker extends
if (!aItems.isEmpty()) {
for (ItemStack aItem : aItems) {
if (GT_Utility
- .areStacksEqual(aItem, GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L))) {
+ .areStacksEqual(aItem, GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L))) {
aHasRedstone = true;
break;
}
@@ -279,9 +291,15 @@ public class GregtechMetaTileEntity_IndustrialRockBreaker extends
// Remember last recipe - an optimization for findRecipe()
this.mLastRecipe = tRecipe;
- GT_ParallelHelper helper = new GT_ParallelHelper().setRecipe(tRecipe).setItemInputs(aItemInputs)
- .setFluidInputs(aFluidInputs).setAvailableEUt(tEnergy).setMaxParallel(getMaxParallelRecipes())
- .setConsumption(true).setOutputCalculation(true).setEUtModifier(0.75F).setMachine(this);
+ GT_ParallelHelper helper = new GT_ParallelHelper().setRecipe(tRecipe)
+ .setItemInputs(aItemInputs)
+ .setFluidInputs(aFluidInputs)
+ .setAvailableEUt(tEnergy)
+ .setMaxParallel(getMaxParallelRecipes())
+ .setConsumption(true)
+ .setOutputCalculation(true)
+ .setEUtModifier(0.75F)
+ .setMachine(this);
if (batchMode) {
helper.enableBatchMode(128);
@@ -296,10 +314,13 @@ public class GregtechMetaTileEntity_IndustrialRockBreaker extends
this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
this.mEfficiencyIncrease = 10000;
- GT_OverclockCalculator calculator = new GT_OverclockCalculator().setRecipeEUt(tRecipe.mEUt).setEUt(tEnergy)
- .setDuration(tRecipe.mDuration).setEUtDiscount(0.75F).setSpeedBoost(1F / 3F)
- .setParallel((int) Math.floor(helper.getCurrentParallel() / helper.getDurationMultiplierDouble()))
- .calculate();
+ GT_OverclockCalculator calculator = new GT_OverclockCalculator().setRecipeEUt(tRecipe.mEUt)
+ .setEUt(tEnergy)
+ .setDuration(tRecipe.mDuration)
+ .setEUtDiscount(0.75F)
+ .setSpeedBoost(1F / 3F)
+ .setParallel((int) Math.floor(helper.getCurrentParallel() / helper.getDurationMultiplierDouble()))
+ .calculate();
lEUt = -calculator.getConsumption();
mMaxProgresstime = (int) Math.ceil(calculator.getDuration() * helper.getDurationMultiplierDouble());
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_LargeRocketEngine.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_LargeRocketEngine.java
index ba037c9654..e77ac454ee 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_LargeRocketEngine.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_LargeRocketEngine.java
@@ -52,8 +52,8 @@ import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.GT_MetaTileEn
import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.GregtechMeta_MultiBlockBase;
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
-public class GregtechMetaTileEntity_LargeRocketEngine extends
- GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_LargeRocketEngine> implements ISurvivalConstructable {
+public class GregtechMetaTileEntity_LargeRocketEngine
+ extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_LargeRocketEngine> implements ISurvivalConstructable {
protected int fuelConsumption;
protected int fuelValue;
@@ -98,30 +98,36 @@ public class GregtechMetaTileEntity_LargeRocketEngine extends
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for the Large Rocket Engine")
- .addInfo("Generating Power from Rocket Fuels - Supports TecTech Multi-Amp Dynamos!")
- .addInfo("Supply GT++ Rocket Fuels and 1000L of " + mLubricantName + " per hour")
- .addInfo("Produces as much energy as you put fuel in, with optional boosting")
- .addInfo("This multi doesn't accept fluids if not enabled - enable it first!")
- .addInfo("Consumes 2000L/s of air and pollutes 1500 gibbl/s per 16384 eu/t produced")
- .addInfo("Place 1-8 Air Intake Hatches on the sides to maintain Air input")
- .addInfo("If it runs out of air, it will shut down and have to be manually restarted")
- .addInfo("Supply 3L of " + mCoolantName + " per second, per 1000 EU/t to boost")
- .addInfo("Takes 3x the amount of " + mLubricantName + " and maintains efficiency")
- .addInfo("Fuel efficiency starts at ~160%, falls more slowly at higher EU/t if boosted")
- .addInfo("If producing more than 30k EU/t, fuel efficiency will be lower:")
- .addInfo("(These thresholds are 3x higher when boosted, boosted values displayed second)")
- .addInfo("- 75% of max fuel efficiency at 53k or 159k EU/t output energy")
- .addInfo("- 50% of max fuel efficiency at 69k or 207k EU/t output energy")
- .addInfo("- 25% of max fuel efficiency at 98k or 294k EU/t output energy")
- .addInfo("formula: x = input of energy (30000^(1/3)/ x^(1/3)) * (80000^(1/3)/ x^(1/3))").addSeparator()
- .beginStructureBlock(3, 3, 10, false).addController("Front Center")
- .addCasingInfoMin(mCasingName, 64, false).addCasingInfoMin(mGearboxName, 8, false)
- .addStructureHint("Air Intake Hatch", 1).addInputBus("Side center line", 1)
- .addInputHatch("Side center line", 1)
- .addMaintenanceHatch("Any Block Touching Inconel Reinforced Casing", 1)
- .addDynamoHatch("Top center line", 2).addMufflerHatch("Back Center", 3)
- .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for the Large Rocket Engine")
+ .addInfo("Generating Power from Rocket Fuels - Supports TecTech Multi-Amp Dynamos!")
+ .addInfo("Supply GT++ Rocket Fuels and 1000L of " + mLubricantName + " per hour")
+ .addInfo("Produces as much energy as you put fuel in, with optional boosting")
+ .addInfo("This multi doesn't accept fluids if not enabled - enable it first!")
+ .addInfo("Consumes 2000L/s of air and pollutes 1500 gibbl/s per 16384 eu/t produced")
+ .addInfo("Place 1-8 Air Intake Hatches on the sides to maintain Air input")
+ .addInfo("If it runs out of air, it will shut down and have to be manually restarted")
+ .addInfo("Supply 3L of " + mCoolantName + " per second, per 1000 EU/t to boost")
+ .addInfo("Takes 3x the amount of " + mLubricantName + " and maintains efficiency")
+ .addInfo("Fuel efficiency starts at ~160%, falls more slowly at higher EU/t if boosted")
+ .addInfo("If producing more than 30k EU/t, fuel efficiency will be lower:")
+ .addInfo("(These thresholds are 3x higher when boosted, boosted values displayed second)")
+ .addInfo("- 75% of max fuel efficiency at 53k or 159k EU/t output energy")
+ .addInfo("- 50% of max fuel efficiency at 69k or 207k EU/t output energy")
+ .addInfo("- 25% of max fuel efficiency at 98k or 294k EU/t output energy")
+ .addInfo("formula: x = input of energy (30000^(1/3)/ x^(1/3)) * (80000^(1/3)/ x^(1/3))")
+ .addSeparator()
+ .beginStructureBlock(3, 3, 10, false)
+ .addController("Front Center")
+ .addCasingInfoMin(mCasingName, 64, false)
+ .addCasingInfoMin(mGearboxName, 8, false)
+ .addStructureHint("Air Intake Hatch", 1)
+ .addInputBus("Side center line", 1)
+ .addInputHatch("Side center line", 1)
+ .addMaintenanceHatch("Any Block Touching Inconel Reinforced Casing", 1)
+ .addDynamoHatch("Top center line", 2)
+ .addMufflerHatch("Back Center", 3)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -129,35 +135,32 @@ public class GregtechMetaTileEntity_LargeRocketEngine extends
public IStructureDefinition<GregtechMetaTileEntity_LargeRocketEngine> getStructureDefinition() {
if (this.STRUCTURE_DEFINITION == null) {
this.STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_LargeRocketEngine>builder()
- .addShape(
- this.mName,
- transpose(
- new String[][] {
- { "CTC", "CTC", "CTC", "CTC", "CTC", "CTC", "CTC", "CTC", "CTC", "CTC" },
- { "C~C", "SIS", "SIS", "SIS", "SIS", "SIS", "SIS", "SIS", "SIS", "CMC" },
- { "CCC", "CSC", "CSC", "CSC", "CSC", "CSC", "CSC", "CSC", "CSC",
- "CCC" }, }))
- .addElement('C', ofBlock(getCasingBlock(), getCasingMeta()))
- .addElement('I', ofBlock(getGearboxBlock(), getGearboxMeta()))
- // side
- .addElement(
- 'S',
- buildHatchAdder(GregtechMetaTileEntity_LargeRocketEngine.class)
- .atLeast(ImmutableMap.of(AirIntake, 8, InputBus, 1, InputHatch, 3, Maintenance, 1))
- .casingIndex(getCasingTextureIndex()).dot(1).buildAndChain(
- onElementPass(
- x -> ++x.mCasing,
- ofBlock(getCasingBlock(), getCasingMeta()))))
- // top
- .addElement(
- 'T',
- buildHatchAdder(GregtechMetaTileEntity_LargeRocketEngine.class)
- .atLeast(ImmutableMap.of(AirIntake, 8, Dynamo.or(TTDynamo), 1, Maintenance, 1))
- .casingIndex(getCasingTextureIndex()).dot(2).buildAndChain(
- onElementPass(
- x -> ++x.mCasing,
- ofBlock(getCasingBlock(), getCasingMeta()))))
- .addElement('M', Muffler.newAny(getCasingTextureIndex(), 3)).build();
+ .addShape(
+ this.mName,
+ transpose(
+ new String[][] { { "CTC", "CTC", "CTC", "CTC", "CTC", "CTC", "CTC", "CTC", "CTC", "CTC" },
+ { "C~C", "SIS", "SIS", "SIS", "SIS", "SIS", "SIS", "SIS", "SIS", "CMC" },
+ { "CCC", "CSC", "CSC", "CSC", "CSC", "CSC", "CSC", "CSC", "CSC", "CCC" }, }))
+ .addElement('C', ofBlock(getCasingBlock(), getCasingMeta()))
+ .addElement('I', ofBlock(getGearboxBlock(), getGearboxMeta()))
+ // side
+ .addElement(
+ 'S',
+ buildHatchAdder(GregtechMetaTileEntity_LargeRocketEngine.class)
+ .atLeast(ImmutableMap.of(AirIntake, 8, InputBus, 1, InputHatch, 3, Maintenance, 1))
+ .casingIndex(getCasingTextureIndex())
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(getCasingBlock(), getCasingMeta()))))
+ // top
+ .addElement(
+ 'T',
+ buildHatchAdder(GregtechMetaTileEntity_LargeRocketEngine.class)
+ .atLeast(ImmutableMap.of(AirIntake, 8, Dynamo.or(TTDynamo), 1, Maintenance, 1))
+ .casingIndex(getCasingTextureIndex())
+ .dot(2)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(getCasingBlock(), getCasingMeta()))))
+ .addElement('M', Muffler.newAny(getCasingTextureIndex(), 3))
+ .build();
}
return this.STRUCTURE_DEFINITION;
}
@@ -180,8 +183,8 @@ public class GregtechMetaTileEntity_LargeRocketEngine extends
this.mAllDynamoHatches.clear();
this.mAirIntakes.clear();
return checkPiece(this.mName, 1, 1, 0) && this.mCasing >= 64 - 48
- && this.mAirIntakes.size() >= 1
- && checkHatch();
+ && this.mAirIntakes.size() >= 1
+ && checkHatch();
}
@Override
@@ -358,7 +361,7 @@ public class GregtechMetaTileEntity_LargeRocketEngine extends
public boolean consumeCO2() {
return this.depleteInput(MISC_MATERIALS.CARBON_DIOXIDE.getFluidStack(this.boostEu ? 3 : 1))
- || this.depleteInput(FluidUtils.getFluidStack("carbondioxide", (this.boostEu ? 3 : 1)));
+ || this.depleteInput(FluidUtils.getFluidStack("carbondioxide", (this.boostEu ? 3 : 1)));
}
public boolean consumeLOH() {
@@ -421,7 +424,8 @@ public class GregtechMetaTileEntity_LargeRocketEngine extends
} else {
powerGain = aVoltage;
}
- aDynamo.getBaseMetaTileEntity().increaseStoredEnergyUnits(powerGain, false);
+ aDynamo.getBaseMetaTileEntity()
+ .increaseStoredEnergyUnits(powerGain, false);
injected += powerGain;
}
}
@@ -490,13 +494,12 @@ public class GregtechMetaTileEntity_LargeRocketEngine extends
@Override
public String[] getExtraInfoData() {
return new String[] { "Rocket Engine", "Current Air: " + getAir(),
- "Current Pollution: " + getPollutionPerTick(null),
- "Time until next fuel consumption: " + this.freeFuelTicks,
- "Current Output: " + this.lEUt * this.mEfficiency / 10000 + " EU/t",
- "Fuel Consumption: " + (this.fuelConsumption) + "L/s", "Fuel Value: " + this.fuelValue + " EU/L",
- "Fuel Remaining: " + this.fuelRemaining + " Litres",
- "Current Efficiency: " + this.mEfficiency / 100 + "%",
- (this.getIdealStatus() == this.getRepairStatus()) ? "No Maintainance issues" : "Needs Maintainance" };
+ "Current Pollution: " + getPollutionPerTick(null),
+ "Time until next fuel consumption: " + this.freeFuelTicks,
+ "Current Output: " + this.lEUt * this.mEfficiency / 10000 + " EU/t",
+ "Fuel Consumption: " + (this.fuelConsumption) + "L/s", "Fuel Value: " + this.fuelValue + " EU/L",
+ "Fuel Remaining: " + this.fuelRemaining + " Litres", "Current Efficiency: " + this.mEfficiency / 100 + "%",
+ (this.getIdealStatus() == this.getRepairStatus()) ? "No Maintainance issues" : "Needs Maintainance" };
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_LargeSemifluidGenerator.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_LargeSemifluidGenerator.java
index 351920f2b7..4403779d09 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_LargeSemifluidGenerator.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_LargeSemifluidGenerator.java
@@ -44,7 +44,7 @@ import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.GregtechMeta_MultiBlockBase;
public class GregtechMetaTileEntity_LargeSemifluidGenerator extends
- GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_LargeSemifluidGenerator> implements ISurvivalConstructable {
+ GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_LargeSemifluidGenerator> implements ISurvivalConstructable {
private int mCasing;
private static IStructureDefinition<GregtechMetaTileEntity_LargeSemifluidGenerator> STRUCTURE_DEFINITION = null;
@@ -65,18 +65,25 @@ public class GregtechMetaTileEntity_LargeSemifluidGenerator extends
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for the Large Semifluid Generator")
- .addInfo("Engine Intake Casings must not be obstructed in front (only air blocks)")
- .addInfo("Supply Semifluid Fuels and 2000L of Lubricant per hour to run.")
- .addInfo("Supply 80L of Oxygen per second to boost output (optional).")
- .addInfo("Default: Produces 2048EU/t at 100% efficiency")
- .addInfo("Boosted: Produces 6144EU/t at 150% efficiency")
- .addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(3, 3, 4, false)
- .addController("Front Center").addCasingInfoMin("Stable Titanium Machine Casing", 16, false)
- .addCasingInfoMin("Steel Gear Box Machine Casing", 2, false)
- .addCasingInfoMin("Engine Intake Machine Casing", 8, false).addInputHatch("Any Casing", 1)
- .addMaintenanceHatch("Any Casing", 1).addMufflerHatch("Any Casing", 1).addDynamoHatch("Back Center", 2)
- .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for the Large Semifluid Generator")
+ .addInfo("Engine Intake Casings must not be obstructed in front (only air blocks)")
+ .addInfo("Supply Semifluid Fuels and 2000L of Lubricant per hour to run.")
+ .addInfo("Supply 80L of Oxygen per second to boost output (optional).")
+ .addInfo("Default: Produces 2048EU/t at 100% efficiency")
+ .addInfo("Boosted: Produces 6144EU/t at 150% efficiency")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(3, 3, 4, false)
+ .addController("Front Center")
+ .addCasingInfoMin("Stable Titanium Machine Casing", 16, false)
+ .addCasingInfoMin("Steel Gear Box Machine Casing", 2, false)
+ .addCasingInfoMin("Engine Intake Machine Casing", 8, false)
+ .addInputHatch("Any Casing", 1)
+ .addMaintenanceHatch("Any Casing", 1)
+ .addMufflerHatch("Any Casing", 1)
+ .addDynamoHatch("Back Center", 2)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -123,7 +130,8 @@ public class GregtechMetaTileEntity_LargeSemifluidGenerator extends
}
for (FluidStack hatchFluid : tFluids) { // Loops through hatches
- GT_Recipe aFuel = GTPPRecipeMaps.semiFluidFuels.getBackend().findFuel(hatchFluid);
+ GT_Recipe aFuel = GTPPRecipeMaps.semiFluidFuels.getBackend()
+ .findFuel(hatchFluid);
if (aFuel == null) {
// Not a valid semi-fluid fuel.
continue;
@@ -166,22 +174,25 @@ public class GregtechMetaTileEntity_LargeSemifluidGenerator extends
public IStructureDefinition<GregtechMetaTileEntity_LargeSemifluidGenerator> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_LargeSemifluidGenerator>builder()
- .addShape(
- mName,
- transpose(
- new String[][] { { "III", "CCC", "CCC", "CCC" }, { "I~I", "CGC", "CGC", "CMC" },
- { "III", "CCC", "CCC", "CCC" }, }))
- .addElement(
- 'C',
- buildHatchAdder(GregtechMetaTileEntity_LargeSemifluidGenerator.class)
- .atLeast(Muffler, InputHatch, Maintenance).casingIndex(getCasingTextureIndex())
- .dot(1).buildAndChain(
- onElementPass(
- x -> ++x.mCasing,
- ofBlock(getCasingBlock(), getCasingMeta()))))
- .addElement('G', ofBlock(getGearboxBlock(), getGearboxMeta()))
- .addElement('I', ofBlock(getIntakeBlock(), getIntakeMeta()))
- .addElement('M', Dynamo.or(TTDynamo).newAny(getCasingTextureIndex(), 2)).build();
+ .addShape(
+ mName,
+ transpose(
+ new String[][] { { "III", "CCC", "CCC", "CCC" }, { "I~I", "CGC", "CGC", "CMC" },
+ { "III", "CCC", "CCC", "CCC" }, }))
+ .addElement(
+ 'C',
+ buildHatchAdder(GregtechMetaTileEntity_LargeSemifluidGenerator.class)
+ .atLeast(Muffler, InputHatch, Maintenance)
+ .casingIndex(getCasingTextureIndex())
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(getCasingBlock(), getCasingMeta()))))
+ .addElement('G', ofBlock(getGearboxBlock(), getGearboxMeta()))
+ .addElement('I', ofBlock(getIntakeBlock(), getIntakeMeta()))
+ .addElement(
+ 'M',
+ Dynamo.or(TTDynamo)
+ .newAny(getCasingTextureIndex(), 2))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -298,9 +309,9 @@ public class GregtechMetaTileEntity_LargeSemifluidGenerator extends
@Override
public String[] getExtraInfoData() {
return new String[] { "Large Semifluid Generator", "Current Output: " + lEUt * mEfficiency / 10000 + " EU/t",
- "Fuel Consumption: " + fuelConsumption + "L/t", "Fuel Value: " + fuelValue + " EU/L",
- "Fuel Remaining: " + fuelRemaining + " Litres", "Current Efficiency: " + (mEfficiency / 100) + "%",
- getIdealStatus() == getRepairStatus() ? "No Maintainance issues" : "Needs Maintainance" };
+ "Fuel Consumption: " + fuelConsumption + "L/t", "Fuel Value: " + fuelValue + " EU/L",
+ "Fuel Remaining: " + fuelRemaining + " Litres", "Current Efficiency: " + (mEfficiency / 100) + "%",
+ getIdealStatus() == getRepairStatus() ? "No Maintainance issues" : "Needs Maintainance" };
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_MassFabricator.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_MassFabricator.java
index 20d6ba93c3..69042b7982 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_MassFabricator.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_MassFabricator.java
@@ -59,7 +59,7 @@ import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.Gregtech
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
public class GregtechMetaTileEntity_MassFabricator
- extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_MassFabricator> implements ISurvivalConstructable {
+ extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_MassFabricator> implements ISurvivalConstructable {
public static int sUUAperUUM = 1;
public static int sUUASpeedBonus = 4;
@@ -97,15 +97,27 @@ public class GregtechMetaTileEntity_MassFabricator
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for the Matter Fabricator")
- .addInfo("Speed: +0% | EU Usage: 80%").addInfo("Parallel: Scrap = 64 | UU = 8 * Tier")
- .addInfo("Produces UU-A, UU-M & Scrap").addInfo("Change mode with screwdriver")
- .addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(5, 4, 5, true)
- .addController("Front Center").addCasingInfoMin(mCasingName3, 9, false)
- .addCasingInfoMin(mCasingName2, 24, false).addCasingInfoMin(mCasingName1, 36, false)
- .addInputBus("Any Casing", 1).addOutputBus("Any Casing", 1).addInputHatch("Any Casing", 1)
- .addOutputHatch("Any Casing", 1).addEnergyHatch("Any Casing", 1).addMaintenanceHatch("Any Casing", 1)
- .addMufflerHatch("Any Casing", 1).toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for the Matter Fabricator")
+ .addInfo("Speed: +0% | EU Usage: 80%")
+ .addInfo("Parallel: Scrap = 64 | UU = 8 * Tier")
+ .addInfo("Produces UU-A, UU-M & Scrap")
+ .addInfo("Change mode with screwdriver")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(5, 4, 5, true)
+ .addController("Front Center")
+ .addCasingInfoMin(mCasingName3, 9, false)
+ .addCasingInfoMin(mCasingName2, 24, false)
+ .addCasingInfoMin(mCasingName1, 36, false)
+ .addInputBus("Any Casing", 1)
+ .addOutputBus("Any Casing", 1)
+ .addInputHatch("Any Casing", 1)
+ .addOutputHatch("Any Casing", 1)
+ .addEnergyHatch("Any Casing", 1)
+ .addMaintenanceHatch("Any Casing", 1)
+ .addMufflerHatch("Any Casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -128,7 +140,7 @@ public class GregtechMetaTileEntity_MassFabricator
public void onConfigLoad(final GT_Config aConfig) {
super.onConfigLoad(aConfig);
sDurationMultiplier = aConfig
- .get(ConfigCategories.machineconfig, "Massfabricator.UUM_Duration_Multiplier", sDurationMultiplier);
+ .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);
@@ -159,21 +171,23 @@ public class GregtechMetaTileEntity_MassFabricator
public IStructureDefinition<GregtechMetaTileEntity_MassFabricator> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_MassFabricator>builder()
- .addShape(
- mName,
- transpose(
- new String[][] { { "CCCCC", "CCCCC", "CCCCC", "CCCCC", "CCCCC" },
- { "CGGGC", "G---G", "G---G", "G---G", "CGGGC" },
- { "CGGGC", "G---G", "G---G", "G---G", "CGGGC" },
- { "CC~CC", "CHHHC", "CHHHC", "CHHHC", "CCCCC" }, }))
- .addElement(
- 'C',
- buildHatchAdder(GregtechMetaTileEntity_MassFabricator.class)
- .atLeast(InputBus, OutputBus, InputHatch, OutputHatch, Maintenance, Energy, Muffler)
- .casingIndex(TAE.GTPP_INDEX(9)).dot(1).buildAndChain(
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasingsMisc, 9))))
- .addElement('H', ofBlock(ModBlocks.blockCasingsMisc, 8))
- .addElement('G', ofBlock(ModBlocks.blockCasings3Misc, 15)).build();
+ .addShape(
+ mName,
+ transpose(
+ new String[][] { { "CCCCC", "CCCCC", "CCCCC", "CCCCC", "CCCCC" },
+ { "CGGGC", "G---G", "G---G", "G---G", "CGGGC" },
+ { "CGGGC", "G---G", "G---G", "G---G", "CGGGC" },
+ { "CC~CC", "CHHHC", "CHHHC", "CHHHC", "CCCCC" }, }))
+ .addElement(
+ 'C',
+ buildHatchAdder(GregtechMetaTileEntity_MassFabricator.class)
+ .atLeast(InputBus, OutputBus, InputHatch, OutputHatch, Maintenance, Energy, Muffler)
+ .casingIndex(TAE.GTPP_INDEX(9))
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasingsMisc, 9))))
+ .addElement('H', ofBlock(ModBlocks.blockCasingsMisc, 8))
+ .addElement('G', ofBlock(ModBlocks.blockCasings3Misc, 15))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -259,18 +273,18 @@ public class GregtechMetaTileEntity_MassFabricator
for (ItemStack item : inputItems) {
if (item == null || item.stackSize == 0) continue;
ItemStack aPotentialOutput = GT_ModHandler
- .getRecyclerOutput(GT_Utility.copyAmount(1, item), 0);
+ .getRecyclerOutput(GT_Utility.copyAmount(1, item), 0);
GT_Recipe recipe = new GT_Recipe(
- false,
- new ItemStack[] { GT_Utility.copyAmount(1, item) },
- aPotentialOutput == null ? null : new ItemStack[] { aPotentialOutput },
- null,
- new int[] { 2000 },
- null,
- null,
- 40,
- MaterialUtils.getVoltageForTier(1),
- 0);
+ false,
+ new ItemStack[] { GT_Utility.copyAmount(1, item) },
+ aPotentialOutput == null ? null : new ItemStack[] { aPotentialOutput },
+ null,
+ new int[] { 2000 },
+ null,
+ null,
+ 40,
+ MaterialUtils.getVoltageForTier(1),
+ 0);
return Stream.of(recipe);
}
}
@@ -278,7 +292,8 @@ public class GregtechMetaTileEntity_MassFabricator
}
return super.findRecipeMatches(map);
}
- }.setEuModifier(0.8F).setMaxParallelSupplier(this::getMaxParallelRecipes);
+ }.setEuModifier(0.8F)
+ .setMaxParallelSupplier(this::getMaxParallelRecipes);
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_QuantumForceTransformer.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_QuantumForceTransformer.java
index 803d0f0a9c..bd5e579cd2 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_QuantumForceTransformer.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_QuantumForceTransformer.java
@@ -82,8 +82,8 @@ import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
@SuppressWarnings("SpellCheckingInspection")
public class GregtechMetaTileEntity_QuantumForceTransformer
- extends GT_MetaTileEntity_ExtendedPowerMultiBlockBase<GregtechMetaTileEntity_QuantumForceTransformer>
- implements ISurvivalConstructable {
+ extends GT_MetaTileEntity_ExtendedPowerMultiBlockBase<GregtechMetaTileEntity_QuantumForceTransformer>
+ implements ISurvivalConstructable {
private int mCasing;
protected int mCraftingTier = 0;
@@ -96,152 +96,142 @@ public class GregtechMetaTileEntity_QuantumForceTransformer
private GT_MetaTileEntity_Hatch_Input mNeptuniumHatch;
private GT_MetaTileEntity_Hatch_Input mFermiumHatch;
private static final IStructureDefinition<GregtechMetaTileEntity_QuantumForceTransformer> STRUCTURE_DEFINITION = StructureDefinition
- .<GregtechMetaTileEntity_QuantumForceTransformer>builder().addShape(
- MAIN_PIECE,
- new String[][] { // A - 142, B - 234, C - 177, D - 96, E - 224, H - 36, M - 21
- { " ", " ", " ", " ",
- " ", " ", " ", " ",
- " ", " ", " ", " ",
- " ", " BAB ", " BBBBABBBB ", " BAAAAAAAB ",
- " BABBABBAB ", " BA AB ", " A A ", " A A ",
- " A A " },
- { " ", " ", " ", " ",
- " ", " ", " ", " ",
- " ", " ", " ", " ",
- " BAB ", " AAABBBAAA ", " BAAAAAAAAAB ", " B B ",
- " A A ", " A A ", " ", " ",
- " " },
- { " ", " ", " ", " ",
- " ", " ", " ", " ",
- " ", " ", " ", " BAB ",
- " AA AA ", " AA AA ", " BAA AAB ", " B B ",
- " A A ", " A A ", " ", " ",
- " " },
- { " ", " ", " ", " ",
- " ", " ", " ", " ",
- " ", " ", " ", " BAAAB ",
- " AA AA ", " AA AA ", "BAA AAB", "B B",
- "A A", "A A", "A A", "A A",
- "A A" },
- { " TTT ", " EEE ", " EEE ", " EEE ",
- " DDD ", " EEE ", " DDD ", " EEE ",
- " EEE ", " EEE ", " DDD ", " BAEEEAB ",
- " AA EEE AA ", " A EEE A ", "BA DDD AB", "B EEE B",
- "B DDD B", " EEE ", " EEE ", " EEE ",
- " Z~X " },
- { " TTTTT ", " ECCCE ", " ECCCE ", " ECCCE ",
- " D D ", " ECCCE ", " D D ", " ECCCE ",
- " ECCCE ", " ECCCE ", " D D ", " BAECCCEAB ",
- " A ECCCE A ", " A ECCCE A ", "BA D D AB", "B ECCCE B",
- "B D D B", "B ECCCE B", " ECCCE ", " ECCCE ",
- " HHHHH " },
- { " TTTTTTT ", " ECCCCCE ", " EC CE ", " EC CE ",
- " D D ", " EC CE ", " D D ", " EC CE ",
- " EC CE ", " EC CE ", " D D ", " BAEC CEAB ",
- " B EC CE B ", "BB EC CE BB", "BA D D AB", "A EC CE A",
- "A D D A", "A EC CE A", " EC CE ", " EC CE ",
- " HHHHHHH " },
- { " TTTTTTT ", " ECCCCCE ", " EC CE ", " EC CE ",
- " D D ", " EC CE ", " D D ", " EC CE ",
- " EC CE ", " EC CE ", " D D ", " AAEC CEAA ",
- " A EC CE A ", "AB EC CE BA", "AA D D AA", "A EC CE A",
- "A D D A", " EC CE ", " EC CE ", " EC CE ",
- " HHHHHHH " },
- { " TTTTTTT ", " ECCCCCE ", " EC CE ", " EC CE ",
- " D D ", " EC CE ", " D D ", " EC CE ",
- " EC CE ", " EC CE ", " D D ", " BAEC CEAB ",
- " B EC CE B ", "BB EC CE BB", "BA D D AB", "A EC CE A",
- "A D D A", "A EC CE A", " EC CE ", " EC CE ",
- " HHHHHHH " },
- { " TTTTT ", " ECCCE ", " ECCCE ", " ECCCE ",
- " D D ", " ECCCE ", " D D ", " ECCCE ",
- " ECCCE ", " ECCCE ", " D D ", " BAECCCEAB ",
- " A ECCCE A ", " A ECCCE A ", "BA D D AB", "B ECCCE B",
- "B D D B", "B ECCCE B", " ECCCE ", " ECCCE ",
- " HHHHH " },
- { " TTT ", " EEE ", " EEE ", " EEE ",
- " DDD ", " EEE ", " DDD ", " EEE ",
- " EEE ", " EEE ", " DDD ", " BAEEEAB ",
- " AA EEE AA ", " A EEE A ", "BA DDD AB", "B EEE B",
- "B DDD B", " EEE ", " EEE ", " EEE ",
- " HHH " },
- { " ", " ", " ", " ",
- " ", " ", " ", " ",
- " ", " ", " ", " BAAAB ",
- " AA AA ", " AA AA ", "BAA AAB", "B B",
- "A A", "A A", "A A", "A A",
- "A A" },
- { " ", " ", " ", " ",
- " ", " ", " ", " ",
- " ", " ", " ", " BAB ",
- " AA AA ", " AA AA ", " BAA AAB ", " B B ",
- " A A ", " A A ", " ", " ",
- " " },
- { " ", " ", " ", " ",
- " ", " ", " ", " ",
- " ", " ", " ", " ",
- " BAB ", " AAABBBAAA ", " BAAAAAAAAAB ", " B B ",
- " A A ", " A A ", " ", " ",
- " " },
- { " ", " ", " ", " ",
- " ", " ", " ", " ",
- " ", " ", " ", " ",
- " ", " BAB ", " BBBBABBBB ", " BBBAAABBB ",
- " ABBAAABBA ", " A BA AB A ", " A A ", " A A ",
- " A A " }, })
- .addElement(
- 'A',
- withChannel(
- "manipulator",
- StructureUtility.ofBlocksTiered(
- craftingTierConverter(),
- getAllCraftingTiers(),
- 0,
- GregtechMetaTileEntity_QuantumForceTransformer::setCraftingTier,
- GregtechMetaTileEntity_QuantumForceTransformer::getCraftingTier)))
- .addElement(
- 'B',
- withChannel(
- "shielding",
- StructureUtility.ofBlocksTiered(
- focusingTierConverter(),
- getAllFocusingTiers(),
- 0,
- GregtechMetaTileEntity_QuantumForceTransformer::setFocusingTier,
- GregtechMetaTileEntity_QuantumForceTransformer::getFocusingTier)))
- .addElement('C', ofBlock(ModBlocks.blockCasings4Misc, 4))
- .addElement('D', ofBlock(ModBlocks.blockCasings2Misc, 12))
- .addElement('E', lazy(t -> ofBlock(t.getCasingBlock1(), t.getCasingMeta1())))
- .addElement(
- 'H',
- buildHatchAdder(GregtechMetaTileEntity_QuantumForceTransformer.class)
- .atLeast(InputBus, InputHatch, Maintenance, Energy.or(ExoticEnergy))
- .casingIndex(TAE.getIndexFromPage(0, 10)).dot(4)
- .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings2Misc, 12))))
- .addElement(
- 'T',
- buildHatchAdder(GregtechMetaTileEntity_QuantumForceTransformer.class)
- .atLeast(OutputBus, OutputHatch, Maintenance).casingIndex(TAE.getIndexFromPage(0, 10))
- .dot(5)
- .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings2Misc, 12))))
- .addElement(
- 'Z',
- buildHatchAdder(GregtechMetaTileEntity_QuantumForceTransformer.class)
- .hatchClass(GT_MetaTileEntity_Hatch_Input.class)
- .adder(GregtechMetaTileEntity_QuantumForceTransformer::addNeptuniumHatch)
- .casingIndex(TAE.getIndexFromPage(0, 10)).dot(5)
- .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings2Misc, 12))))
- .addElement(
- 'X',
- buildHatchAdder(GregtechMetaTileEntity_QuantumForceTransformer.class)
- .hatchClass(GT_MetaTileEntity_Hatch_Input.class)
- .adder(GregtechMetaTileEntity_QuantumForceTransformer::addFermiumHatch)
- .casingIndex(TAE.getIndexFromPage(0, 10)).dot(5)
- .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings2Misc, 12))))
- .build();
+ .<GregtechMetaTileEntity_QuantumForceTransformer>builder()
+ .addShape(
+ MAIN_PIECE,
+ new String[][] { // A - 142, B - 234, C - 177, D - 96, E - 224, H - 36, M - 21
+ { " ", " ", " ", " ", " ",
+ " ", " ", " ", " ", " ",
+ " ", " ", " ", " BAB ", " BBBBABBBB ",
+ " BAAAAAAAB ", " BABBABBAB ", " BA AB ", " A A ", " A A ",
+ " A A " },
+ { " ", " ", " ", " ", " ",
+ " ", " ", " ", " ", " ",
+ " ", " ", " BAB ", " AAABBBAAA ", " BAAAAAAAAAB ",
+ " B B ", " A A ", " A A ", " ", " ",
+ " " },
+ { " ", " ", " ", " ", " ",
+ " ", " ", " ", " ", " ",
+ " ", " BAB ", " AA AA ", " AA AA ", " BAA AAB ",
+ " B B ", " A A ", " A A ", " ", " ",
+ " " },
+ { " ", " ", " ", " ", " ",
+ " ", " ", " ", " ", " ",
+ " ", " BAAAB ", " AA AA ", " AA AA ", "BAA AAB",
+ "B B", "A A", "A A", "A A", "A A",
+ "A A" },
+ { " TTT ", " EEE ", " EEE ", " EEE ", " DDD ",
+ " EEE ", " DDD ", " EEE ", " EEE ", " EEE ",
+ " DDD ", " BAEEEAB ", " AA EEE AA ", " A EEE A ", "BA DDD AB",
+ "B EEE B", "B DDD B", " EEE ", " EEE ", " EEE ",
+ " Z~X " },
+ { " TTTTT ", " ECCCE ", " ECCCE ", " ECCCE ", " D D ",
+ " ECCCE ", " D D ", " ECCCE ", " ECCCE ", " ECCCE ",
+ " D D ", " BAECCCEAB ", " A ECCCE A ", " A ECCCE A ", "BA D D AB",
+ "B ECCCE B", "B D D B", "B ECCCE B", " ECCCE ", " ECCCE ",
+ " HHHHH " },
+ { " TTTTTTT ", " ECCCCCE ", " EC CE ", " EC CE ", " D D ",
+ " EC CE ", " D D ", " EC CE ", " EC CE ", " EC CE ",
+ " D D ", " BAEC CEAB ", " B EC CE B ", "BB EC CE BB", "BA D D AB",
+ "A EC CE A", "A D D A", "A EC CE A", " EC CE ", " EC CE ",
+ " HHHHHHH " },
+ { " TTTTTTT ", " ECCCCCE ", " EC CE ", " EC CE ", " D D ",
+ " EC CE ", " D D ", " EC CE ", " EC CE ", " EC CE ",
+ " D D ", " AAEC CEAA ", " A EC CE A ", "AB EC CE BA", "AA D D AA",
+ "A EC CE A", "A D D A", " EC CE ", " EC CE ", " EC CE ",
+ " HHHHHHH " },
+ { " TTTTTTT ", " ECCCCCE ", " EC CE ", " EC CE ", " D D ",
+ " EC CE ", " D D ", " EC CE ", " EC CE ", " EC CE ",
+ " D D ", " BAEC CEAB ", " B EC CE B ", "BB EC CE BB", "BA D D AB",
+ "A EC CE A", "A D D A", "A EC CE A", " EC CE ", " EC CE ",
+ " HHHHHHH " },
+ { " TTTTT ", " ECCCE ", " ECCCE ", " ECCCE ", " D D ",
+ " ECCCE ", " D D ", " ECCCE ", " ECCCE ", " ECCCE ",
+ " D D ", " BAECCCEAB ", " A ECCCE A ", " A ECCCE A ", "BA D D AB",
+ "B ECCCE B", "B D D B", "B ECCCE B", " ECCCE ", " ECCCE ",
+ " HHHHH " },
+ { " TTT ", " EEE ", " EEE ", " EEE ", " DDD ",
+ " EEE ", " DDD ", " EEE ", " EEE ", " EEE ",
+ " DDD ", " BAEEEAB ", " AA EEE AA ", " A EEE A ", "BA DDD AB",
+ "B EEE B", "B DDD B", " EEE ", " EEE ", " EEE ",
+ " HHH " },
+ { " ", " ", " ", " ", " ",
+ " ", " ", " ", " ", " ",
+ " ", " BAAAB ", " AA AA ", " AA AA ", "BAA AAB",
+ "B B", "A A", "A A", "A A", "A A",
+ "A A" },
+ { " ", " ", " ", " ", " ",
+ " ", " ", " ", " ", " ",
+ " ", " BAB ", " AA AA ", " AA AA ", " BAA AAB ",
+ " B B ", " A A ", " A A ", " ", " ",
+ " " },
+ { " ", " ", " ", " ", " ",
+ " ", " ", " ", " ", " ",
+ " ", " ", " BAB ", " AAABBBAAA ", " BAAAAAAAAAB ",
+ " B B ", " A A ", " A A ", " ", " ",
+ " " },
+ { " ", " ", " ", " ", " ",
+ " ", " ", " ", " ", " ",
+ " ", " ", " ", " BAB ", " BBBBABBBB ",
+ " BBBAAABBB ", " ABBAAABBA ", " A BA AB A ", " A A ", " A A ",
+ " A A " }, })
+ .addElement(
+ 'A',
+ withChannel(
+ "manipulator",
+ StructureUtility.ofBlocksTiered(
+ craftingTierConverter(),
+ getAllCraftingTiers(),
+ 0,
+ GregtechMetaTileEntity_QuantumForceTransformer::setCraftingTier,
+ GregtechMetaTileEntity_QuantumForceTransformer::getCraftingTier)))
+ .addElement(
+ 'B',
+ withChannel(
+ "shielding",
+ StructureUtility.ofBlocksTiered(
+ focusingTierConverter(),
+ getAllFocusingTiers(),
+ 0,
+ GregtechMetaTileEntity_QuantumForceTransformer::setFocusingTier,
+ GregtechMetaTileEntity_QuantumForceTransformer::getFocusingTier)))
+ .addElement('C', ofBlock(ModBlocks.blockCasings4Misc, 4))
+ .addElement('D', ofBlock(ModBlocks.blockCasings2Misc, 12))
+ .addElement('E', lazy(t -> ofBlock(t.getCasingBlock1(), t.getCasingMeta1())))
+ .addElement(
+ 'H',
+ buildHatchAdder(GregtechMetaTileEntity_QuantumForceTransformer.class)
+ .atLeast(InputBus, InputHatch, Maintenance, Energy.or(ExoticEnergy))
+ .casingIndex(TAE.getIndexFromPage(0, 10))
+ .dot(4)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings2Misc, 12))))
+ .addElement(
+ 'T',
+ buildHatchAdder(GregtechMetaTileEntity_QuantumForceTransformer.class)
+ .atLeast(OutputBus, OutputHatch, Maintenance)
+ .casingIndex(TAE.getIndexFromPage(0, 10))
+ .dot(5)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings2Misc, 12))))
+ .addElement(
+ 'Z',
+ buildHatchAdder(GregtechMetaTileEntity_QuantumForceTransformer.class)
+ .hatchClass(GT_MetaTileEntity_Hatch_Input.class)
+ .adder(GregtechMetaTileEntity_QuantumForceTransformer::addNeptuniumHatch)
+ .casingIndex(TAE.getIndexFromPage(0, 10))
+ .dot(5)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings2Misc, 12))))
+ .addElement(
+ 'X',
+ buildHatchAdder(GregtechMetaTileEntity_QuantumForceTransformer.class)
+ .hatchClass(GT_MetaTileEntity_Hatch_Input.class)
+ .adder(GregtechMetaTileEntity_QuantumForceTransformer::addFermiumHatch)
+ .casingIndex(TAE.getIndexFromPage(0, 10))
+ .dot(5)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings2Misc, 12))))
+ .build();
public GregtechMetaTileEntity_QuantumForceTransformer(final int aID, final String aName,
- final String aNameRegional) {
+ final String aNameRegional) {
super(aID, aName, aNameRegional);
}
@@ -257,61 +247,66 @@ public class GregtechMetaTileEntity_QuantumForceTransformer
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType("Quantum Force Transformer").addInfo("Controller Block for the Quantum Force Transformer")
- .addInfo("Allows Complex chemical lines to be performed instantly in one step")
- .addInfo("Every recipe requires a catalyst, each catalyst adds 1 parallel and lasts forever")
- .addInfo("Accepts TecTech Energy and Laser Hatches")
- .addInfo("All inputs go on the bottom, all outputs go on the top")
- .addInfo("Put a circuit in the controller to specify the focused output")
- .addInfo("Check NEI to see the order of outputs, and which circuit number you need.")
- .addInfo("If separate input busses are enabled put the circuit in the circuit slot of the bus")
- .addInfo("Uses FocusTier*4*sqrt(parallels) Neptunium Plasma if focusing")
- .addInfo("Can use FocusTier*4*sqrt(parallels) Fermium Plasma for additional chance output")
- .addInfo("Use a screwdriver to enable Fluid mode")
- .addInfo(
- "Fluid mode turns all possible outputs into their fluid variant, those which can't are left as they were.")
- .addInfo("This multi gets improved when all casings of some types are upgraded")
- .addInfo("Casing functions:")
- .addInfo("Pulse Manipulators: Recipe Tier Allowed (check NEI for the tier of each recipe)")
- .addInfo("Shielding Cores: Focusing Tier (equal to or higher than recipe tier to allow focus)")
- .addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(15, 21, 15, true)
- .addController("Bottom Center").addCasingInfoMin("Bulk Production Frame", 80, false)
- .addCasingInfoMin("Quantum Force Conductor", 177, false)
- .addCasingInfoMin("Force Field Glass", 224, false).addCasingInfoMin("Pulse Manipulators", 236, true)
- .addCasingInfoMin("Shielding Cores", 142, true)
- .addInputBus(EnumChatFormatting.BLUE + "Bottom" + EnumChatFormatting.GRAY + " Layer", 4)
- .addInputHatch(EnumChatFormatting.BLUE + "Bottom" + EnumChatFormatting.GRAY + " Layer", 4)
- .addOutputHatch(EnumChatFormatting.AQUA + "Top" + EnumChatFormatting.GRAY + " Layer", 5)
- .addOutputBus(EnumChatFormatting.AQUA + "Top" + EnumChatFormatting.GRAY + " Layer", 5)
- .addEnergyHatch(EnumChatFormatting.BLUE + "Bottom" + EnumChatFormatting.GRAY + " Layer", 4)
- .addMaintenanceHatch(
- EnumChatFormatting.BLUE + "Bottom"
- + EnumChatFormatting.GRAY
- + " or "
- + EnumChatFormatting.AQUA
- + "Top"
- + EnumChatFormatting.GRAY
- + " Layer",
- 4,
- 5)
- .addStructureInfo(
- EnumChatFormatting.WHITE + "Neptunium Plasma Hatch: "
- + EnumChatFormatting.GREEN
- + "Left"
- + EnumChatFormatting.GRAY
- + " side of Controller")
- .addStructureInfo(
- EnumChatFormatting.WHITE + "Fermium Plasma Hatch: "
- + EnumChatFormatting.DARK_GREEN
- + "Right"
- + EnumChatFormatting.GRAY
- + " side of Controller")
- .toolTipFinisher(
- GT_Values.AuthorBlueWeabo + EnumChatFormatting.RESET
- + EnumChatFormatting.GREEN
- + " + Steelux"
- + EnumChatFormatting.RESET
- + " - [GT++]");
+ tt.addMachineType("Quantum Force Transformer")
+ .addInfo("Controller Block for the Quantum Force Transformer")
+ .addInfo("Allows Complex chemical lines to be performed instantly in one step")
+ .addInfo("Every recipe requires a catalyst, each catalyst adds 1 parallel and lasts forever")
+ .addInfo("Accepts TecTech Energy and Laser Hatches")
+ .addInfo("All inputs go on the bottom, all outputs go on the top")
+ .addInfo("Put a circuit in the controller to specify the focused output")
+ .addInfo("Check NEI to see the order of outputs, and which circuit number you need.")
+ .addInfo("If separate input busses are enabled put the circuit in the circuit slot of the bus")
+ .addInfo("Uses FocusTier*4*sqrt(parallels) Neptunium Plasma if focusing")
+ .addInfo("Can use FocusTier*4*sqrt(parallels) Fermium Plasma for additional chance output")
+ .addInfo("Use a screwdriver to enable Fluid mode")
+ .addInfo(
+ "Fluid mode turns all possible outputs into their fluid variant, those which can't are left as they were.")
+ .addInfo("This multi gets improved when all casings of some types are upgraded")
+ .addInfo("Casing functions:")
+ .addInfo("Pulse Manipulators: Recipe Tier Allowed (check NEI for the tier of each recipe)")
+ .addInfo("Shielding Cores: Focusing Tier (equal to or higher than recipe tier to allow focus)")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(15, 21, 15, true)
+ .addController("Bottom Center")
+ .addCasingInfoMin("Bulk Production Frame", 80, false)
+ .addCasingInfoMin("Quantum Force Conductor", 177, false)
+ .addCasingInfoMin("Force Field Glass", 224, false)
+ .addCasingInfoMin("Pulse Manipulators", 236, true)
+ .addCasingInfoMin("Shielding Cores", 142, true)
+ .addInputBus(EnumChatFormatting.BLUE + "Bottom" + EnumChatFormatting.GRAY + " Layer", 4)
+ .addInputHatch(EnumChatFormatting.BLUE + "Bottom" + EnumChatFormatting.GRAY + " Layer", 4)
+ .addOutputHatch(EnumChatFormatting.AQUA + "Top" + EnumChatFormatting.GRAY + " Layer", 5)
+ .addOutputBus(EnumChatFormatting.AQUA + "Top" + EnumChatFormatting.GRAY + " Layer", 5)
+ .addEnergyHatch(EnumChatFormatting.BLUE + "Bottom" + EnumChatFormatting.GRAY + " Layer", 4)
+ .addMaintenanceHatch(
+ EnumChatFormatting.BLUE + "Bottom"
+ + EnumChatFormatting.GRAY
+ + " or "
+ + EnumChatFormatting.AQUA
+ + "Top"
+ + EnumChatFormatting.GRAY
+ + " Layer",
+ 4,
+ 5)
+ .addStructureInfo(
+ EnumChatFormatting.WHITE + "Neptunium Plasma Hatch: "
+ + EnumChatFormatting.GREEN
+ + "Left"
+ + EnumChatFormatting.GRAY
+ + " side of Controller")
+ .addStructureInfo(
+ EnumChatFormatting.WHITE + "Fermium Plasma Hatch: "
+ + EnumChatFormatting.DARK_GREEN
+ + "Right"
+ + EnumChatFormatting.GRAY
+ + " side of Controller")
+ .toolTipFinisher(
+ GT_Values.AuthorBlueWeabo + EnumChatFormatting.RESET
+ + EnumChatFormatting.GREEN
+ + " + Steelux"
+ + EnumChatFormatting.RESET
+ + " - [GT++]");
return tt;
}
@@ -542,34 +537,35 @@ public class GregtechMetaTileEntity_QuantumForceTransformer
}
return items.toArray(new ItemStack[0]);
- }).setCustomFluidOutputCalculation(parallel -> {
- ArrayList<FluidStack> fluids = new ArrayList<>();
+ })
+ .setCustomFluidOutputCalculation(parallel -> {
+ ArrayList<FluidStack> fluids = new ArrayList<>();
+
+ if (mFluidMode) {
+ for (int i = 0; i < recipe.mOutputs.length; i++) {
+ FluidStack fluid = fluidModeItems[i];
+ if (fluid == null) continue;
+ FluidStack fluidToAdd = fluid.copy();
+ double outputMultiplier = calculateChancedOutputMultiplier(chances[i], parallel);
+ int itemAmount = recipe.mOutputs[i].stackSize;
+ long fluidAmount = (long) (fluidToAdd.amount * outputMultiplier * itemAmount);
+ addFluidsLong(fluids, fluidToAdd, fluidAmount);
+ }
+ }
- if (mFluidMode) {
- for (int i = 0; i < recipe.mOutputs.length; i++) {
- FluidStack fluid = fluidModeItems[i];
+ for (int i = 0; i < recipe.mFluidOutputs.length; i++) {
+ FluidStack fluid = recipe.getFluidOutput(i);
if (fluid == null) continue;
FluidStack fluidToAdd = fluid.copy();
- double outputMultiplier = calculateChancedOutputMultiplier(chances[i], parallel);
- int itemAmount = recipe.mOutputs[i].stackSize;
- long fluidAmount = (long) (fluidToAdd.amount * outputMultiplier * itemAmount);
- addFluidsLong(fluids, fluidToAdd, fluidAmount);
- }
- }
-
- for (int i = 0; i < recipe.mFluidOutputs.length; i++) {
- FluidStack fluid = recipe.getFluidOutput(i);
- if (fluid == null) continue;
- FluidStack fluidToAdd = fluid.copy();
- double outputMultiplier = calculateChancedOutputMultiplier(
+ double outputMultiplier = calculateChancedOutputMultiplier(
chances[i + recipe.mOutputs.length],
parallel);
- long fluidAmount = (long) (fluidToAdd.amount * outputMultiplier);
- addFluidsLong(fluids, fluidToAdd, fluidAmount);
- }
+ long fluidAmount = (long) (fluidToAdd.amount * outputMultiplier);
+ addFluidsLong(fluids, fluidToAdd, fluidAmount);
+ }
- return fluids.toArray(new FluidStack[0]);
- });
+ return fluids.toArray(new FluidStack[0]);
+ });
}
private int findProgrammedCircuitNumber() {
@@ -583,7 +579,7 @@ public class GregtechMetaTileEntity_QuantumForceTransformer
} else {
final ItemStack controllerStack = getControllerSlot();
return GT_Utility.isAnyIntegratedCircuit(controllerStack) ? controllerStack.getItemDamage() - 1
- : -1;
+ : -1;
}
}
};
@@ -605,7 +601,7 @@ public class GregtechMetaTileEntity_QuantumForceTransformer
if (runningTick % 20 == 0) {
int amount = (int) (getFocusingTier() * 4
- * Math.sqrt(Math.min(mMaxParallel, processingLogic.getCurrentParallels())));
+ * Math.sqrt(Math.min(mMaxParallel, processingLogic.getCurrentParallels())));
if (doFermium) {
FluidStack fermiumToConsume = new FluidStack(mFermium, amount);
if (!drain(mFermiumHatch, fermiumToConsume, true)) {
@@ -723,8 +719,8 @@ public class GregtechMetaTileEntity_QuantumForceTransformer
public void onScrewdriverRightClick(ForgeDirection side, EntityPlayer aPlayer, float aX, float aY, float aZ) {
mFluidMode = !mFluidMode;
GT_Utility.sendChatToPlayer(
- aPlayer,
- StatCollector.translateToLocal("miscutils.machines.QFTFluidMode") + " " + mFluidMode);
+ aPlayer,
+ StatCollector.translateToLocal("miscutils.machines.QFTFluidMode") + " " + mFluidMode);
}
public boolean addNeptuniumHatch(IGregTechTileEntity aTileEntity, short aBaseCasingIndex) {
@@ -787,12 +783,16 @@ public class GregtechMetaTileEntity_QuantumForceTransformer
@Override
public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, ForgeDirection side, ForgeDirection facing,
- int aColorIndex, boolean aActive, boolean aRedstone) {
+ int aColorIndex, boolean aActive, boolean aRedstone) {
if (side == facing) {
- if (aActive) return new ITexture[] { getCasingTexture(),
- TextureFactory.builder().addIcon(getActiveOverlay()).extFacing().build() };
- return new ITexture[] { getCasingTexture(),
- TextureFactory.builder().addIcon(getInactiveOverlay()).extFacing().build() };
+ if (aActive) return new ITexture[] { getCasingTexture(), TextureFactory.builder()
+ .addIcon(getActiveOverlay())
+ .extFacing()
+ .build() };
+ return new ITexture[] { getCasingTexture(), TextureFactory.builder()
+ .addIcon(getInactiveOverlay())
+ .extFacing()
+ .build() };
}
return new ITexture[] { getCasingTexture() };
}
@@ -803,7 +803,7 @@ public class GregtechMetaTileEntity_QuantumForceTransformer
@SideOnly(Side.CLIENT)
private void renderForceField(double x, double y, double z, int side, double minU, double maxU, double minV,
- double maxV) {
+ double maxV) {
// spotless:off
Tessellator tes = Tessellator.instance;
switch (side) {
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_Refinery.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_Refinery.java
index f60f835c34..8a6564858e 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_Refinery.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_Refinery.java
@@ -35,7 +35,7 @@ import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.GregtechMeta_MultiBlockBase;
public class GregtechMetaTileEntity_Refinery extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_Refinery>
- implements ISurvivalConstructable {
+ implements ISurvivalConstructable {
private int mCasing;
private static IStructureDefinition<GregtechMetaTileEntity_Refinery> STRUCTURE_DEFINITION = null;
@@ -56,23 +56,30 @@ public class GregtechMetaTileEntity_Refinery extends GregtechMeta_MultiBlockBase
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for the Fission Fuel Processing Unit")
- .addInfo("Refines fluorides and Uranium into nuclear fuel for the LFTR")
- .addInfo("LFTR Fuel 2 and Fuel 3 have alternative, much more efficient recipes")
- .addInfo("However, they require fission breeding outputs from the LFTR itself")
- .addInfo("Only one Energy Hatch is allowed per Processing Unit")
- .addInfo("All recipe times in this multi are very long, watch out!")
- .addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(3, 9, 3, false)
- .addController("Bottom Center").addCasingInfoMin("Hastelloy-X Structural Block", 7, false)
- .addCasingInfoMin("Incoloy-DS Fluid Containment Block", 5, false)
- .addCasingInfoMin("Zeron-100 Reactor Shielding", 4, false)
- .addCasingInfoMin("Hastelloy-N Sealant Blocks", 17, false).addInputHatch("Base platform", 1)
- .addOutputHatch("Base platform", 1).addMufflerHatch("Base platform", 1)
- .addMaintenanceHatch("Base platform", 1).addEnergyHatch("Base platform", 1)
- .addStructureInfo("Muffler's Tier must be IV+")
- .addStructureInfo("2-4x Input Hatches, 1-2x Output Hatches")
- .addStructureInfo("1x Muffler, 1x Maintenance Hatch, 1x Energy Hatch")
- .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for the Fission Fuel Processing Unit")
+ .addInfo("Refines fluorides and Uranium into nuclear fuel for the LFTR")
+ .addInfo("LFTR Fuel 2 and Fuel 3 have alternative, much more efficient recipes")
+ .addInfo("However, they require fission breeding outputs from the LFTR itself")
+ .addInfo("Only one Energy Hatch is allowed per Processing Unit")
+ .addInfo("All recipe times in this multi are very long, watch out!")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(3, 9, 3, false)
+ .addController("Bottom Center")
+ .addCasingInfoMin("Hastelloy-X Structural Block", 7, false)
+ .addCasingInfoMin("Incoloy-DS Fluid Containment Block", 5, false)
+ .addCasingInfoMin("Zeron-100 Reactor Shielding", 4, false)
+ .addCasingInfoMin("Hastelloy-N Sealant Blocks", 17, false)
+ .addInputHatch("Base platform", 1)
+ .addOutputHatch("Base platform", 1)
+ .addMufflerHatch("Base platform", 1)
+ .addMaintenanceHatch("Base platform", 1)
+ .addEnergyHatch("Base platform", 1)
+ .addStructureInfo("Muffler's Tier must be IV+")
+ .addStructureInfo("2-4x Input Hatches, 1-2x Output Hatches")
+ .addStructureInfo("1x Muffler, 1x Maintenance Hatch, 1x Energy Hatch")
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -113,7 +120,7 @@ public class GregtechMetaTileEntity_Refinery extends GregtechMeta_MultiBlockBase
} else {
IMetaTileEntity aMetaTileEntity = aTileEntity.getMetaTileEntity();
if (aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Muffler
- && ((GT_MetaTileEntity_Hatch_Muffler) aMetaTileEntity).mTier >= 5) {
+ && ((GT_MetaTileEntity_Hatch_Muffler) aMetaTileEntity).mTier >= 5) {
return addToMachineList(aTileEntity, aBaseCasingIndex);
}
}
@@ -123,26 +130,32 @@ public class GregtechMetaTileEntity_Refinery extends GregtechMeta_MultiBlockBase
@Override
public IStructureDefinition<GregtechMetaTileEntity_Refinery> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
- STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_Refinery>builder().addShape(
+ STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_Refinery>builder()
+ .addShape(
mName,
transpose(
- new String[][] { { " ", " N ", " " }, { " N ", "NIN", " N " }, { " N ", "NIN", " N " },
- { " N ", "NIN", " N " }, { " Z ", "ZIZ", " Z " }, { " N ", "NIN", " N " },
- { "XXX", "XXX", "XXX" }, { "X~X", "XXX", "XXX" }, }))
- .addElement(
- 'X',
- ofChain(
- buildHatchAdder(GregtechMetaTileEntity_Refinery.class)
- .atLeast(Energy, Maintenance, OutputHatch, OutputBus, InputHatch)
- .casingIndex(TAE.GTPP_INDEX(18)).dot(1).build(),
- buildHatchAdder(GregtechMetaTileEntity_Refinery.class).atLeast(Muffler)
- .adder(GregtechMetaTileEntity_Refinery::addMufflerToMachineList)
- .hatchItemFilterAnd(t -> filterByMTETier(6, Integer.MAX_VALUE))
- .casingIndex(TAE.GTPP_INDEX(18)).dot(1).build(),
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings2Misc, 2))))
- .addElement('I', ofBlock(ModBlocks.blockCasings2Misc, 3))
- .addElement('N', ofBlock(ModBlocks.blockCasings2Misc, 1))
- .addElement('Z', ofBlock(ModBlocks.blockCasingsMisc, 13)).build();
+ new String[][] { { " ", " N ", " " }, { " N ", "NIN", " N " }, { " N ", "NIN", " N " },
+ { " N ", "NIN", " N " }, { " Z ", "ZIZ", " Z " }, { " N ", "NIN", " N " },
+ { "XXX", "XXX", "XXX" }, { "X~X", "XXX", "XXX" }, }))
+ .addElement(
+ 'X',
+ ofChain(
+ buildHatchAdder(GregtechMetaTileEntity_Refinery.class)
+ .atLeast(Energy, Maintenance, OutputHatch, OutputBus, InputHatch)
+ .casingIndex(TAE.GTPP_INDEX(18))
+ .dot(1)
+ .build(),
+ buildHatchAdder(GregtechMetaTileEntity_Refinery.class).atLeast(Muffler)
+ .adder(GregtechMetaTileEntity_Refinery::addMufflerToMachineList)
+ .hatchItemFilterAnd(t -> filterByMTETier(6, Integer.MAX_VALUE))
+ .casingIndex(TAE.GTPP_INDEX(18))
+ .dot(1)
+ .build(),
+ onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings2Misc, 2))))
+ .addElement('I', ofBlock(ModBlocks.blockCasings2Misc, 3))
+ .addElement('N', ofBlock(ModBlocks.blockCasings2Misc, 1))
+ .addElement('Z', ofBlock(ModBlocks.blockCasingsMisc, 13))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -163,11 +176,11 @@ public class GregtechMetaTileEntity_Refinery extends GregtechMeta_MultiBlockBase
mCasing = 0;
if (checkPiece(mName, 1, 7, 0) && mCasing >= 7) {
if (this.mInputHatches.size() >= 2 && this.mInputHatches.size() <= 4
- && this.mOutputHatches.size() >= 1
- && this.mOutputHatches.size() <= 2
- && this.mMufflerHatches.size() == 1
- && this.mMaintenanceHatches.size() == 1
- && this.mEnergyHatches.size() == 1) {
+ && this.mOutputHatches.size() >= 1
+ && this.mOutputHatches.size() <= 2
+ && this.mMufflerHatches.size() == 1
+ && this.mMaintenanceHatches.size() == 1
+ && this.mEnergyHatches.size() == 1) {
this.resetRecipeMapForAllInputHatches(this.getRecipeMap());
return true;
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_SolarTower.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_SolarTower.java
index a232910d1c..0395ab5a01 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_SolarTower.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GregtechMetaTileEntity_SolarTower.java
@@ -49,7 +49,7 @@ import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
import gtPlusPlus.xmod.gregtech.common.tileentities.misc.TileEntitySolarHeater;
public class GregtechMetaTileEntity_SolarTower extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_SolarTower>
- implements ISurvivalConstructable {
+ implements ISurvivalConstructable {
// 862
private static final int mCasingTextureID = TAE.getIndexFromPage(3, 9);
@@ -82,30 +82,35 @@ public class GregtechMetaTileEntity_SolarTower extends GregtechMeta_MultiBlockBa
@Override
protected final GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Contributing Green Energy towards the future")
- .addInfo("Surround with rings of Solar Reflectors")
- .addInfo("The Reflectors increase the internal heat value of the Tower (see below for formula)")
- .addInfo("Each Reflector ring increases tier, the first ring is required for the Tower to work")
- .addInfo("Input: " + MISC_MATERIALS.SOLAR_SALT_COLD.getLocalizedName())
- .addInfo("Output: " + MISC_MATERIALS.SOLAR_SALT_HOT.getLocalizedName())
- .addInfo("Every cycle (10 seconds), heat increases and all the Cold Solar Salt is heated")
- .addInfo("Converting Cold to Hot Solar Salt reduces heat, equal to the amount converted")
- .addInfo("This conversion only happens if heat >= 30000 and controller efficiency = 100%")
- .addInfo("If there's more Cold Salt than heat, all the heat is used up and returns to 0")
- .addInfo("The heat increase is most efficient at exactly half of maximum heat")
- .addInfo("Minimum efficiency at 0 or 100000 heat, maximum efficiency at 50000")
- .addInfo("Heat Efficiency formula: ( 7000 - [|currentHeat - 50000| ^ 0.8]) / 7000")
- .addInfo("Heat gain per cycle: numberHeaters * heatEfficiency * (10 + bonus)")
- .addInfo("Bonus: 1 ring = +1, 2 rings = +2, 3 rings = +4, 4 rings = +8, 5 rings = +16")
- .addInfo("Total number of reflectors based on how many rings are built:")
- .addInfo("1 ring = 36, 2 rings = 88, 3 rings = 156, 4 rings = 240, 5 rings = 340").addSeparator()
- .beginVariableStructureBlock(15, 31, 28, 28, 15, 31, false).addController("Top Middle")
- .addCasingInfoMin("Structural Solar Casing", 229, false)
- .addCasingInfoMin("Thermally Insulated Casing", 60, false)
- .addCasingInfoMin("Salt Containment Casing", 66, false)
- .addCasingInfoMin("Thermal Containment Casing", 60, false).addInputHatch("Any 2 dot hint(min 1)", 2)
- .addOutputHatch("Any 2 dot hint(min 1)", 2).addMaintenanceHatch("Any 2 dot hint", 2)
- .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Contributing Green Energy towards the future")
+ .addInfo("Surround with rings of Solar Reflectors")
+ .addInfo("The Reflectors increase the internal heat value of the Tower (see below for formula)")
+ .addInfo("Each Reflector ring increases tier, the first ring is required for the Tower to work")
+ .addInfo("Input: " + MISC_MATERIALS.SOLAR_SALT_COLD.getLocalizedName())
+ .addInfo("Output: " + MISC_MATERIALS.SOLAR_SALT_HOT.getLocalizedName())
+ .addInfo("Every cycle (10 seconds), heat increases and all the Cold Solar Salt is heated")
+ .addInfo("Converting Cold to Hot Solar Salt reduces heat, equal to the amount converted")
+ .addInfo("This conversion only happens if heat >= 30000 and controller efficiency = 100%")
+ .addInfo("If there's more Cold Salt than heat, all the heat is used up and returns to 0")
+ .addInfo("The heat increase is most efficient at exactly half of maximum heat")
+ .addInfo("Minimum efficiency at 0 or 100000 heat, maximum efficiency at 50000")
+ .addInfo("Heat Efficiency formula: ( 7000 - [|currentHeat - 50000| ^ 0.8]) / 7000")
+ .addInfo("Heat gain per cycle: numberHeaters * heatEfficiency * (10 + bonus)")
+ .addInfo("Bonus: 1 ring = +1, 2 rings = +2, 3 rings = +4, 4 rings = +8, 5 rings = +16")
+ .addInfo("Total number of reflectors based on how many rings are built:")
+ .addInfo("1 ring = 36, 2 rings = 88, 3 rings = 156, 4 rings = 240, 5 rings = 340")
+ .addSeparator()
+ .beginVariableStructureBlock(15, 31, 28, 28, 15, 31, false)
+ .addController("Top Middle")
+ .addCasingInfoMin("Structural Solar Casing", 229, false)
+ .addCasingInfoMin("Thermally Insulated Casing", 60, false)
+ .addCasingInfoMin("Salt Containment Casing", 66, false)
+ .addCasingInfoMin("Thermal Containment Casing", 60, false)
+ .addInputHatch("Any 2 dot hint(min 1)", 2)
+ .addOutputHatch("Any 2 dot hint(min 1)", 2)
+ .addMaintenanceHatch("Any 2 dot hint", 2)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -126,149 +131,131 @@ public class GregtechMetaTileEntity_SolarTower extends GregtechMeta_MultiBlockBa
protected IStructureDefinition<GregtechMetaTileEntity_SolarTower> computeValue(Class<?> type) {
return StructureDefinition.<GregtechMetaTileEntity_SolarTower>builder()
- // s = salt
- // c = thermal containment
- // i = thermal insulated
- // t = solar structural
- // h = hatch
- // g = solar heater
-
- .addShape(
- STRUCTURE_PIECE_TOP,
- (new String[][] { { " ", " ", " ~ ", " ", " " },
- { " ", " s ", " sss ", " s ", " " },
- { " c ", " ccc ", "ccscc", " ccc ", " c " },
- { " c ", " ccc ", "ccscc", " ccc ", " c " },
- { " c ", " ccc ", "ccscc", " ccc ", " c " },
- { " c ", " ccc ", "ccscc", " ccc ", " c " },
- { " c ", " ccc ", "ccscc", " ccc ", " c " }, }))
- .addShape(
- STRUCTURE_PIECE_TOWER,
- (new String[][] { { " i ", "isi", " i " }, { " i ", "isi", " i " }, { " i ", "isi", " i " },
- { " i ", "isi", " i " }, { " i ", "isi", " i " }, { " i ", "isi", " i " },
- { " i ", "isi", " i " }, { " i ", "isi", " i " }, { " i ", "isi", " i " },
- { " i ", "isi", " i " }, { " i ", "isi", " i " }, { " i ", "isi", " i " },
- { " i ", "isi", " i " }, { " i ", "isi", " i " }, { " i ", "isi", " i " }, }))
- .addShape(
- STRUCTURE_PIECE_BASE,
- (new String[][] {
- { " ", " ", " t ", " ttt ", " ttstt ",
- " ttssstt ", " ttstt ", " ttt ", " t ", " ",
- " " },
- { " ", " ", " t ", " ttt ", " tssst ",
- " ttssstt ", " tssst ", " ttt ", " t ", " ",
- " " },
- { " ", " t ", " ttt ", " ttttt ", " ttssstt ",
- " tttsssttt ", " ttssstt ", " ttttt ", " ttt ", " t ",
- " " },
- { " ", " t ", " ttt ", " ttttt ", " ttssstt ",
- " tttsssttt ", " ttssstt ", " ttttt ", " ttt ", " t ",
- " " },
- { " hhh ", " ttttt ", " ttttttt ", " ttttttttt ", "htttsssttth",
- "htttsssttth", "htttsssttth", " ttttttttt ", " ttttttt ", " ttttt ",
- " hhh " },
- { " hhh ", " ttttt ", " ttttttt ", " ttttttttt ", "httttttttth",
- "httttttttth", "httttttttth", " ttttttttt ", " ttttttt ", " ttttt ",
- " hhh " }, }))
- .addShape(
- SOLAR_HEATER_RING_1,
- (new String[][] { { " ggggg ", " g g ", " g g ",
- " g g ", " g g ", "g g", "g g",
- "g g", "g g", "g g", " g g ",
- " g g ", " g g ", " g g ", " ggggg ", } }))
- .addShape(
- SOLAR_HEATER_RING_2,
- (new String[][] { { " ggggggggg ", " g g ", " g g ",
- " g g ", " g g ", "g g",
- "g g", "g g", "g g",
- "g g", "g g", "g g",
- "g g", "g g", " g g ",
- " g g ", " g g ", " g g ",
- " ggggggggg ", } }))
- .addShape(
- SOLAR_HEATER_RING_3,
- (new String[][] { { " ggggggggggggg ", " g g ",
- " g g ", " g g ", " g g ",
- "g g", "g g", "g g",
- "g g", "g g", "g g",
- "g g", "g g", "g g",
- "g g", "g g", "g g",
- "g g", " g g ", " g g ",
- " g g ", " g g ",
- " ggggggggggggg ", } }))
- .addShape(
- SOLAR_HEATER_RING_4,
- (new String[][] { { " ggggggggggggggggg ", " g g ",
- " g g ", " g g ",
- " g g ", "g g",
- "g g", "g g",
- "g g", "g g",
- "g g", "g g",
- "g g", "g g",
- "g g", "g g",
- "g g", "g g",
- "g g", "g g",
- "g g", "g g",
- " g g ", " g g ",
- " g g ", " g g ",
- " ggggggggggggggggg ", } }))
- .addShape(
- SOLAR_HEATER_RING_5,
- (new String[][] { { " ggggggggggggggggggggg ", " g g ",
- " g g ", " g g ",
- " g g ", "g g",
- "g g", "g g",
- "g g", "g g",
- "g g", "g g",
- "g g", "g g",
- "g g", "g g",
- "g g", "g g",
- "g g", "g g",
- "g g", "g g",
- "g g", "g g",
- "g g", "g g",
- " g g ", " g g ",
- " g g ", " g g ",
- " ggggggggggggggggggggg ", } }))
- .addElement(
- 'g',
- lazy(
- t -> buildHatchAdder(GregtechMetaTileEntity_SolarTower.class)
- .hatchClass(TileEntitySolarHeater.class)
- .adder(GregtechMetaTileEntity_SolarTower::addSolarHeater)
- // Use a positive casing index to make adder builder happy
- .casingIndex(1).dot(1).continueIfSuccess().build()))
- .addElement(
- 't',
- lazy(t -> onElementPass(x -> ++x.mCasing1, ofBlock(t.getCasingBlock(), t.getCasingMeta()))))
- .addElement(
- 'i',
- lazy(
- t -> onElementPass(
- x -> ++x.mCasing2,
- ofBlock(t.getCasingBlock(), t.getCasingMeta2()))))
- .addElement(
- 's',
- lazy(
- t -> onElementPass(
- x -> ++x.mCasing3,
- ofBlock(t.getCasingBlock(), t.getCasingMeta3()))))
- .addElement(
- 'c',
- lazy(
- t -> onElementPass(
- x -> ++x.mCasing4,
- ofBlock(t.getCasingBlock2(), t.getCasingMeta4()))))
- .addElement(
- 'h',
- lazy(
- t -> buildHatchAdder(GregtechMetaTileEntity_SolarTower.class)
- .atLeast(InputHatch, OutputHatch, Maintenance)
- .casingIndex(t.getCasingTextureIndex()).dot(2).buildAndChain(
- onElementPass(
- x -> ++x.mCasing1,
- ofBlock(t.getCasingBlock(), t.getCasingMeta())))))
- .build();
+ // s = salt
+ // c = thermal containment
+ // i = thermal insulated
+ // t = solar structural
+ // h = hatch
+ // g = solar heater
+
+ .addShape(
+ STRUCTURE_PIECE_TOP,
+ (new String[][] { { " ", " ", " ~ ", " ", " " },
+ { " ", " s ", " sss ", " s ", " " },
+ { " c ", " ccc ", "ccscc", " ccc ", " c " },
+ { " c ", " ccc ", "ccscc", " ccc ", " c " },
+ { " c ", " ccc ", "ccscc", " ccc ", " c " },
+ { " c ", " ccc ", "ccscc", " ccc ", " c " },
+ { " c ", " ccc ", "ccscc", " ccc ", " c " }, }))
+ .addShape(
+ STRUCTURE_PIECE_TOWER,
+ (new String[][] { { " i ", "isi", " i " }, { " i ", "isi", " i " }, { " i ", "isi", " i " },
+ { " i ", "isi", " i " }, { " i ", "isi", " i " }, { " i ", "isi", " i " },
+ { " i ", "isi", " i " }, { " i ", "isi", " i " }, { " i ", "isi", " i " },
+ { " i ", "isi", " i " }, { " i ", "isi", " i " }, { " i ", "isi", " i " },
+ { " i ", "isi", " i " }, { " i ", "isi", " i " }, { " i ", "isi", " i " }, }))
+ .addShape(
+ STRUCTURE_PIECE_BASE,
+ (new String[][] {
+ { " ", " ", " t ", " ttt ", " ttstt ", " ttssstt ",
+ " ttstt ", " ttt ", " t ", " ", " " },
+ { " ", " ", " t ", " ttt ", " tssst ", " ttssstt ",
+ " tssst ", " ttt ", " t ", " ", " " },
+ { " ", " t ", " ttt ", " ttttt ", " ttssstt ", " tttsssttt ",
+ " ttssstt ", " ttttt ", " ttt ", " t ", " " },
+ { " ", " t ", " ttt ", " ttttt ", " ttssstt ", " tttsssttt ",
+ " ttssstt ", " ttttt ", " ttt ", " t ", " " },
+ { " hhh ", " ttttt ", " ttttttt ", " ttttttttt ", "htttsssttth", "htttsssttth",
+ "htttsssttth", " ttttttttt ", " ttttttt ", " ttttt ", " hhh " },
+ { " hhh ", " ttttt ", " ttttttt ", " ttttttttt ", "httttttttth", "httttttttth",
+ "httttttttth", " ttttttttt ", " ttttttt ", " ttttt ", " hhh " }, }))
+ .addShape(
+ SOLAR_HEATER_RING_1,
+ (new String[][] { { " ggggg ", " g g ", " g g ", " g g ",
+ " g g ", "g g", "g g", "g g", "g g",
+ "g g", " g g ", " g g ", " g g ", " g g ",
+ " ggggg ", } }))
+ .addShape(
+ SOLAR_HEATER_RING_2,
+ (new String[][] {
+ { " ggggggggg ", " g g ", " g g ", " g g ",
+ " g g ", "g g", "g g", "g g",
+ "g g", "g g", "g g", "g g",
+ "g g", "g g", " g g ", " g g ",
+ " g g ", " g g ", " ggggggggg ", } }))
+ .addShape(
+ SOLAR_HEATER_RING_3,
+ (new String[][] { { " ggggggggggggg ", " g g ", " g g ",
+ " g g ", " g g ", "g g",
+ "g g", "g g", "g g",
+ "g g", "g g", "g g",
+ "g g", "g g", "g g",
+ "g g", "g g", "g g",
+ " g g ", " g g ", " g g ",
+ " g g ", " ggggggggggggg ", } }))
+ .addShape(
+ SOLAR_HEATER_RING_4,
+ (new String[][] { { " ggggggggggggggggg ", " g g ",
+ " g g ", " g g ", " g g ",
+ "g g", "g g", "g g",
+ "g g", "g g", "g g",
+ "g g", "g g", "g g",
+ "g g", "g g", "g g",
+ "g g", "g g", "g g",
+ "g g", "g g", " g g ",
+ " g g ", " g g ", " g g ",
+ " ggggggggggggggggg ", } }))
+ .addShape(
+ SOLAR_HEATER_RING_5,
+ (new String[][] { { " ggggggggggggggggggggg ", " g g ",
+ " g g ", " g g ",
+ " g g ", "g g",
+ "g g", "g g",
+ "g g", "g g",
+ "g g", "g g",
+ "g g", "g g",
+ "g g", "g g",
+ "g g", "g g",
+ "g g", "g g",
+ "g g", "g g",
+ "g g", "g g",
+ "g g", "g g",
+ " g g ", " g g ",
+ " g g ", " g g ",
+ " ggggggggggggggggggggg ", } }))
+ .addElement(
+ 'g',
+ lazy(
+ t -> buildHatchAdder(GregtechMetaTileEntity_SolarTower.class)
+ .hatchClass(TileEntitySolarHeater.class)
+ .adder(GregtechMetaTileEntity_SolarTower::addSolarHeater)
+ // Use a positive casing index to make adder builder happy
+ .casingIndex(1)
+ .dot(1)
+ .continueIfSuccess()
+ .build()))
+ .addElement(
+ 't',
+ lazy(t -> onElementPass(x -> ++x.mCasing1, ofBlock(t.getCasingBlock(), t.getCasingMeta()))))
+ .addElement(
+ 'i',
+ lazy(t -> onElementPass(x -> ++x.mCasing2, ofBlock(t.getCasingBlock(), t.getCasingMeta2()))))
+ .addElement(
+ 's',
+ lazy(t -> onElementPass(x -> ++x.mCasing3, ofBlock(t.getCasingBlock(), t.getCasingMeta3()))))
+ .addElement(
+ 'c',
+ lazy(t -> onElementPass(x -> ++x.mCasing4, ofBlock(t.getCasingBlock2(), t.getCasingMeta4()))))
+ .addElement(
+ 'h',
+ lazy(
+ t -> buildHatchAdder(GregtechMetaTileEntity_SolarTower.class)
+ .atLeast(InputHatch, OutputHatch, Maintenance)
+ .casingIndex(t.getCasingTextureIndex())
+ .dot(2)
+ .buildAndChain(
+ onElementPass(x -> ++x.mCasing1, ofBlock(t.getCasingBlock(), t.getCasingMeta())))))
+ .build();
}
};
@@ -296,52 +283,52 @@ public class GregtechMetaTileEntity_SolarTower extends GregtechMeta_MultiBlockBa
boolean aAllStructure = aStructureTop && aStructureTower && aStructureBase;
boolean aAllCasings = aCasingCount1 && aCasingCount2 && aCasingCount3 && aCasingCount4;
if (!aAllCasings || !aAllStructure
- || mMaintenanceHatches.size() != 1
- || mInputHatches.size() < 1
- || mOutputHatches.size() < 1) {
+ || mMaintenanceHatches.size() != 1
+ || mInputHatches.size() < 1
+ || mOutputHatches.size() < 1) {
log(
- "Bad Hatches - Solar Heaters: " + mSolarHeaters.size()
- + ", Maint: "
- + mMaintenanceHatches.size()
- + ", Input Hatches: "
- + mInputHatches.size()
- + ", Output Hatches: "
- + mOutputHatches.size()
- + ", Top: "
- + aStructureTop
- + ", Tower: "
- + aStructureTower
- + ", Base: "
- + aStructureBase
- + ", Casing Count: "
- + aCasingCount1
- + " | Found: "
- + mCasing1
- + ", Casing Count: "
- + aCasingCount2
- + " | Found: "
- + mCasing2
- + ", Casing Count: "
- + aCasingCount3
- + " | Found: "
- + mCasing3
- + ", Casing Count: "
- + aCasingCount4
- + " | Found: "
- + mCasing4);
+ "Bad Hatches - Solar Heaters: " + mSolarHeaters.size()
+ + ", Maint: "
+ + mMaintenanceHatches.size()
+ + ", Input Hatches: "
+ + mInputHatches.size()
+ + ", Output Hatches: "
+ + mOutputHatches.size()
+ + ", Top: "
+ + aStructureTop
+ + ", Tower: "
+ + aStructureTower
+ + ", Base: "
+ + aStructureBase
+ + ", Casing Count: "
+ + aCasingCount1
+ + " | Found: "
+ + mCasing1
+ + ", Casing Count: "
+ + aCasingCount2
+ + " | Found: "
+ + mCasing2
+ + ", Casing Count: "
+ + aCasingCount3
+ + " | Found: "
+ + mCasing3
+ + ", Casing Count: "
+ + aCasingCount4
+ + " | Found: "
+ + mCasing4);
return false;
}
log(
- "Built " + this.getLocalName()
- + " with "
- + mCasing1
- + " Structural Solar casings, "
- + mCasing2
- + " Thermally Insulated casings, "
- + mCasing3
- + " Salt Containment casings, "
- + mCasing4
- + " Thermal Containment casings.");
+ "Built " + this.getLocalName()
+ + " with "
+ + mCasing1
+ + " Structural Solar casings, "
+ + mCasing2
+ + " Thermally Insulated casings, "
+ + mCasing3
+ + " Salt Containment casings, "
+ + mCasing4
+ + " Thermal Containment casings.");
return aAllCasings && aAllStructure;
}
@@ -411,13 +398,18 @@ public class GregtechMetaTileEntity_SolarTower extends GregtechMeta_MultiBlockBa
@Override
public ITexture[] getTexture(final IGregTechTileEntity aBaseMetaTileEntity, final ForgeDirection side,
- final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
+ final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
if (side == ForgeDirection.DOWN || side == ForgeDirection.UP) {
if (aActive) return new ITexture[] { Textures.BlockIcons.getCasingTextureForId(TAE.GTPP_INDEX(12)),
- TextureFactory.builder().addIcon(TexturesGtBlock.Overlay_Machine_Controller_Default_Active)
- .extFacing().build() };
- return new ITexture[] { Textures.BlockIcons.getCasingTextureForId(TAE.GTPP_INDEX(12)), TextureFactory
- .builder().addIcon(TexturesGtBlock.Overlay_Machine_Controller_Default).extFacing().build() };
+ TextureFactory.builder()
+ .addIcon(TexturesGtBlock.Overlay_Machine_Controller_Default_Active)
+ .extFacing()
+ .build() };
+ return new ITexture[] { Textures.BlockIcons.getCasingTextureForId(TAE.GTPP_INDEX(12)),
+ TextureFactory.builder()
+ .addIcon(TexturesGtBlock.Overlay_Machine_Controller_Default)
+ .extFacing()
+ .build() };
}
return new ITexture[] { Textures.BlockIcons.getCasingTextureForId(TAE.GTPP_INDEX(12)) };
}
@@ -530,7 +522,7 @@ public class GregtechMetaTileEntity_SolarTower extends GregtechMeta_MultiBlockBa
this.mMaxProgresstime = 200;
if (this.mSolarHeaters.isEmpty() || this.mSolarHeaters.size() < 340
- || this.getTotalRuntimeInTicks() % 200 == 0) {
+ || this.getTotalRuntimeInTicks() % 200 == 0) {
getConnectedSolarReflectors();
}
@@ -543,13 +535,15 @@ public class GregtechMetaTileEntity_SolarTower extends GregtechMeta_MultiBlockBa
// Min efficiency is 0.179, at mHeatLevel = 0 or 100000
double aEfficiency = (-Math.pow(Math.abs(this.mHeatLevel - 50000), 0.8) + 7000) / 7000;
- World w = this.getBaseMetaTileEntity().getWorld();
+ World w = this.getBaseMetaTileEntity()
+ .getWorld();
// Manage Heat every 10s
// Add Heat First, if sources available and it's daytime, heat gain is halved if raining
if (w != null) {
if (aHeaters > 0 && w.isDaytime()) {
- if (w.isRaining() && this.getBaseMetaTileEntity().getBiome().rainfall > 0.0F) {
+ if (w.isRaining() && this.getBaseMetaTileEntity()
+ .getBiome().rainfall > 0.0F) {
this.mHeatLevel += GT_Utility.safeInt((long) ((aHeaters / 2) * aEfficiency * (10 + aTier)));
} else {
this.mHeatLevel += GT_Utility.safeInt((long) (aHeaters * aEfficiency * (10 + aTier)));
@@ -575,7 +569,8 @@ public class GregtechMetaTileEntity_SolarTower extends GregtechMeta_MultiBlockBa
}
ArrayList<FluidStack> aFluids = this.getStoredFluids();
for (FluidStack aFluid : aFluids) {
- if (aFluid.getFluid().equals(mColdSalt)) {
+ if (aFluid.getFluid()
+ .equals(mColdSalt)) {
int aFluidAmount = Math.min(aFluid.amount, this.mHeatLevel);
this.mHeatLevel -= aFluidAmount;
@@ -670,7 +665,7 @@ public class GregtechMetaTileEntity_SolarTower extends GregtechMeta_MultiBlockBa
@Override
public String[] getExtraInfoData() {
return new String[] { "Internal Heat Level: " + this.mHeatLevel,
- "Connected Solar Reflectors: " + this.mSolarHeaters.size() };
+ "Connected Solar Reflectors: " + this.mSolarHeaters.size() };
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/algae/GregtechMTE_AlgaePondBase.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/algae/GregtechMTE_AlgaePondBase.java
index 2269166732..8a3442b5e7 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/algae/GregtechMTE_AlgaePondBase.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/algae/GregtechMTE_AlgaePondBase.java
@@ -56,7 +56,7 @@ import ic2.core.init.BlocksItems;
import ic2.core.init.InternalName;
public class GregtechMTE_AlgaePondBase extends GregtechMeta_MultiBlockBase<GregtechMTE_AlgaePondBase>
- implements ISurvivalConstructable {
+ implements ISurvivalConstructable {
private int mLevel = -1;
private int mCasing;
@@ -90,17 +90,24 @@ public class GregtechMTE_AlgaePondBase extends GregtechMeta_MultiBlockBase<Gregt
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Grows Algae!").addInfo("Controller Block for the Algae Farm")
- .addInfo("Provide compost to boost production by one tier")
- .addInfo("Does not require power or maintenance")
- .addInfo("All Machine Casings must be the same tier, this dictates machine speed.")
- .addInfo("All Buses/Hatches must, at least, match the tier of the Casings")
- .addInfo("Fill Input Hatch with Water to fill the inside of the multiblock.")
- .addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(9, 3, 9, true)
- .addController("Front Center").addCasingInfoMin("Machine Casings", 64, true)
- .addCasingInfoMin("Sterile Farm Casings", 64, false).addInputBus("Any Casing", 1)
- .addOutputBus("Any Casing", 1).addInputHatch("Any Casing", 1)
- .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Grows Algae!")
+ .addInfo("Controller Block for the Algae Farm")
+ .addInfo("Provide compost to boost production by one tier")
+ .addInfo("Does not require power or maintenance")
+ .addInfo("All Machine Casings must be the same tier, this dictates machine speed.")
+ .addInfo("All Buses/Hatches must, at least, match the tier of the Casings")
+ .addInfo("Fill Input Hatch with Water to fill the inside of the multiblock.")
+ .addPollutionAmount(getPollutionPerSecond(null))
+ .addSeparator()
+ .beginStructureBlock(9, 3, 9, true)
+ .addController("Front Center")
+ .addCasingInfoMin("Machine Casings", 64, true)
+ .addCasingInfoMin("Sterile Farm Casings", 64, false)
+ .addInputBus("Any Casing", 1)
+ .addOutputBus("Any Casing", 1)
+ .addInputHatch("Any Casing", 1)
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -116,30 +123,32 @@ public class GregtechMTE_AlgaePondBase extends GregtechMeta_MultiBlockBase<Gregt
public IStructureDefinition<GregtechMTE_AlgaePondBase> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
STRUCTURE_DEFINITION = StructureDefinition.<GregtechMTE_AlgaePondBase>builder()
- .addShape(
- mName,
- transpose(
- new String[][] {
- { "XXXXXXXXX", "X X", "X X", "X X", "X X",
- "X X", "X X", "X X", "XXXXXXXXX" },
- { "XXXXXXXXX", "X X", "X X", "X X", "X X",
- "X X", "X X", "X X", "XXXXXXXXX" },
- { "CCCC~CCCC", "CCCCCCCCC", "CCCCCCCCC", "CCCCCCCCC", "CCCCCCCCC",
- "CCCCCCCCC", "CCCCCCCCC", "CCCCCCCCC", "CCCCCCCCC" }, }))
- .addElement(
- 'C',
- ofChain(
- buildHatchAdder(GregtechMTE_AlgaePondBase.class)
- .atLeast(InputHatch, InputBus, OutputBus)
- .casingIndex(TAE.getIndexFromPage(1, 15)).dot(1).build(),
- onElementPass(
- x -> ++x.mCasing,
- addTieredBlock(
- GregTech_API.sBlockCasings1,
- GregtechMTE_AlgaePondBase::setMeta,
- GregtechMTE_AlgaePondBase::getMeta,
- 10))))
- .addElement('X', ofBlock(ModBlocks.blockCasings2Misc, 15)).build();
+ .addShape(
+ mName,
+ transpose(
+ new String[][] {
+ { "XXXXXXXXX", "X X", "X X", "X X", "X X", "X X", "X X",
+ "X X", "XXXXXXXXX" },
+ { "XXXXXXXXX", "X X", "X X", "X X", "X X", "X X", "X X",
+ "X X", "XXXXXXXXX" },
+ { "CCCC~CCCC", "CCCCCCCCC", "CCCCCCCCC", "CCCCCCCCC", "CCCCCCCCC", "CCCCCCCCC", "CCCCCCCCC",
+ "CCCCCCCCC", "CCCCCCCCC" }, }))
+ .addElement(
+ 'C',
+ ofChain(
+ buildHatchAdder(GregtechMTE_AlgaePondBase.class).atLeast(InputHatch, InputBus, OutputBus)
+ .casingIndex(TAE.getIndexFromPage(1, 15))
+ .dot(1)
+ .build(),
+ onElementPass(
+ x -> ++x.mCasing,
+ addTieredBlock(
+ GregTech_API.sBlockCasings1,
+ GregtechMTE_AlgaePondBase::setMeta,
+ GregtechMTE_AlgaePondBase::getMeta,
+ 10))))
+ .addElement('X', ofBlock(ModBlocks.blockCasings2Misc, 15))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -241,7 +250,8 @@ public class GregtechMTE_AlgaePondBase extends GregtechMeta_MultiBlockBase<Gregt
// Utils.LOG_WARNING("Going to try swap an air block for water from inut bus.");
stored.amount -= 1000;
Block fluidUsed = Blocks.water;
- aBaseMetaTileEntity.getWorld().setBlock(
+ aBaseMetaTileEntity.getWorld()
+ .setBlock(
aBaseMetaTileEntity.getXCoord() + xDir + i,
aBaseMetaTileEntity.getYCoord() + h,
aBaseMetaTileEntity.getZCoord() + zDir + j,
@@ -272,8 +282,8 @@ public class GregtechMTE_AlgaePondBase extends GregtechMeta_MultiBlockBase<Gregt
private boolean isNotStaticWater(Block block, byte meta) {
return block == Blocks.air || block == Blocks.flowing_water
- || block == BlocksItems.getFluidBlock(InternalName.fluidDistilledWater)
- || (cofhWater != null && cofhWater.isAssignableFrom(block.getClass()) && meta != 0);
+ || block == BlocksItems.getFluidBlock(InternalName.fluidDistilledWater)
+ || (cofhWater != null && cofhWater.isAssignableFrom(block.getClass()) && meta != 0);
}
@Override
@@ -313,8 +323,8 @@ public class GregtechMTE_AlgaePondBase extends GregtechMeta_MultiBlockBase<Gregt
@Nonnull
@Override
protected Stream<GT_Recipe> findRecipeMatches(@Nullable RecipeMap<?> map) {
- return GT_StreamUtil.ofNullable(
- RecipeLoader_AlgaeFarm.getTieredRecipeFromCache(mLevel, isUsingCompost(inputItems)));
+ return GT_StreamUtil
+ .ofNullable(RecipeLoader_AlgaeFarm.getTieredRecipeFromCache(mLevel, isUsingCompost(inputItems)));
}
@NotNull
@@ -325,7 +335,8 @@ public class GregtechMTE_AlgaePondBase extends GregtechMeta_MultiBlockBase<Gregt
}
return CheckRecipeResultRegistry.SUCCESSFUL;
}
- }.setEuModifier(0F).setMaxParallelSupplier(this::getMaxParallelRecipes);
+ }.setEuModifier(0F)
+ .setMaxParallelSupplier(this::getMaxParallelRecipes);
}
private boolean isUsingCompost(ItemStack[] aItemInputs) {
@@ -341,7 +352,8 @@ public class GregtechMTE_AlgaePondBase extends GregtechMeta_MultiBlockBase<Gregt
}
private int getCasingTier() {
- if (this.getBaseMetaTileEntity().getWorld() == null) {
+ if (this.getBaseMetaTileEntity()
+ .getWorld() == null) {
return 0;
}
try {
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/chemplant/GregtechMTE_ChemicalPlant.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/chemplant/GregtechMTE_ChemicalPlant.java
index 6471a5e262..30d2f75457 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/chemplant/GregtechMTE_ChemicalPlant.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/chemplant/GregtechMTE_ChemicalPlant.java
@@ -75,7 +75,7 @@ import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.nbthandlers.G
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
public class GregtechMTE_ChemicalPlant extends GregtechMeta_MultiBlockBase<GregtechMTE_ChemicalPlant>
- implements ISurvivalConstructable {
+ implements ISurvivalConstructable {
private int mSolidCasingTier = 0;
private int mMachineCasingTier = 0;
@@ -105,8 +105,8 @@ public class GregtechMTE_ChemicalPlant extends GregtechMeta_MultiBlockBase<Gregt
Triplet<Block, Integer, Integer> aCasingData = new Triplet<>(aBlock, aMeta, aCasingTextureID);
if (mTieredBlockRegistry.containsKey(aTier)) {
CORE.crash(
- "Tried to register a Machine casing for tier " + aTier
- + " to the Chemical Plant, however this tier already contains one.");
+ "Tried to register a Machine casing for tier " + aTier
+ + " to the Chemical Plant, however this tier already contains one.");
}
mTieredBlockRegistry.put(aTier, aCasingData);
return true;
@@ -116,7 +116,8 @@ public class GregtechMTE_ChemicalPlant extends GregtechMeta_MultiBlockBase<Gregt
if (!mTieredBlockRegistry.containsKey(aTier)) {
return 10;
}
- int aCasingID = mTieredBlockRegistry.get(aTier).getValue_3();
+ int aCasingID = mTieredBlockRegistry.get(aTier)
+ .getValue_3();
// Logger.INFO("Found casing texture ID "+aCasingID+" for tier "+aTier);
return aCasingID;
}
@@ -134,15 +135,24 @@ public class GregtechMTE_ChemicalPlant extends GregtechMeta_MultiBlockBase<Gregt
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for the Chemical Plant")
- .addInfo("Heavy Industry, now right at your doorstep!")
- .addInfo("Please read the user manual for more information on construction and usage").addSeparator()
- .addController("Bottom Center").addStructureHint("Catalyst Housing", 1).addInputBus("Bottom Casing", 1)
- .addOutputBus("Bottom Casing", 1).addInputHatch("Bottom Casing", 1).addOutputHatch("Bottom Casing", 1)
- .addEnergyHatch("Bottom Casing", 1).addMaintenanceHatch("Bottom Casing", 1)
- .addSubChannelUsage("casing", "metal machine casing")
- .addSubChannelUsage("machine", "tier machine casing").addSubChannelUsage("coil", "heating coil blocks")
- .addSubChannelUsage("pipe", "pipe casing blocks").toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for the Chemical Plant")
+ .addInfo("Heavy Industry, now right at your doorstep!")
+ .addInfo("Please read the user manual for more information on construction and usage")
+ .addSeparator()
+ .addController("Bottom Center")
+ .addStructureHint("Catalyst Housing", 1)
+ .addInputBus("Bottom Casing", 1)
+ .addOutputBus("Bottom Casing", 1)
+ .addInputHatch("Bottom Casing", 1)
+ .addOutputHatch("Bottom Casing", 1)
+ .addEnergyHatch("Bottom Casing", 1)
+ .addMaintenanceHatch("Bottom Casing", 1)
+ .addSubChannelUsage("casing", "metal machine casing")
+ .addSubChannelUsage("machine", "tier machine casing")
+ .addSubChannelUsage("coil", "heating coil blocks")
+ .addSubChannelUsage("pipe", "pipe casing blocks")
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@@ -174,68 +184,74 @@ public class GregtechMTE_ChemicalPlant extends GregtechMeta_MultiBlockBase<Gregt
public IStructureDefinition<GregtechMTE_ChemicalPlant> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
IStructureElement<GregtechMTE_ChemicalPlant> allCasingsElement = withChannel(
- "casing",
- ofChain(
- IntStream.range(0, 8).mapToObj(GregtechMTE_ChemicalPlant::ofSolidCasing)
- .collect(Collectors.toList())));
- STRUCTURE_DEFINITION = StructureDefinition.<GregtechMTE_ChemicalPlant>builder().addShape(
+ "casing",
+ ofChain(
+ IntStream.range(0, 8)
+ .mapToObj(GregtechMTE_ChemicalPlant::ofSolidCasing)
+ .collect(Collectors.toList())));
+ STRUCTURE_DEFINITION = StructureDefinition.<GregtechMTE_ChemicalPlant>builder()
+ .addShape(
mName,
transpose(
- new String[][] {
- { "XXXXXXX", "XXXXXXX", "XXXXXXX", "XXXXXXX", "XXXXXXX", "XXXXXXX", "XXXXXXX" },
- { "X X", " MMMMM ", " MHHHM ", " MHHHM ", " MHHHM ", " MMMMM ", "X X" },
- { "X X", " ", " PPP ", " PPP ", " PPP ", " ", "X X" },
- { "X X", " ", " HHH ", " HHH ", " HHH ", " ", "X X" },
- { "X X", " ", " PPP ", " PPP ", " PPP ", " ", "X X" },
- { "X X", " MMMMM ", " MHHHM ", " MHHHM ", " MHHHM ", " MMMMM ", "X X" },
- { "CCC~CCC", "CMMMMMC", "CMMMMMC", "CMMMMMC", "CMMMMMC", "CMMMMMC", "CCCCCCC" }, }))
- .addElement(
- 'C',
- ofChain(
- buildHatchAdder(GregtechMTE_ChemicalPlant.class).atLeast(Maintenance)
- .casingIndex(getCasingTextureID()).dot(1).build(),
- buildHatchAdder(GregtechMTE_ChemicalPlant.class)
- .atLeast(InputHatch, OutputHatch, InputBus, OutputBus)
- .adder(GregtechMTE_ChemicalPlant::addChemicalPlantList)
- .hatchItemFilterAnd(
- (t, s) -> filterByMTETier(
- Integer.MIN_VALUE,
- s.stackSize >= 10 ? Integer.MAX_VALUE : s.stackSize))
- .casingIndex(getCasingTextureID()).dot(1).build(),
- buildHatchAdder(GregtechMTE_ChemicalPlant.class)
- .hatchClass(GT_MetaTileEntity_Hatch_Catalysts.class)
- .shouldReject(t -> t.mCatalystBuses.size() >= 1)
- .adder(GregtechMTE_ChemicalPlant::addChemicalPlantList)
- .casingIndex(getCasingTextureID()).dot(1).build(),
- allCasingsElement))
- .addElement('X', allCasingsElement)
- .addElement(
- 'M',
- withChannel(
- "machine",
- addTieredBlock(
- GregTech_API.sBlockCasings1,
- GregtechMTE_ChemicalPlant::setMachineMeta,
- GregtechMTE_ChemicalPlant::getMachineMeta,
- 10)))
- .addElement(
- 'H',
- withChannel(
- "coil",
- ofCoil(
- GregtechMTE_ChemicalPlant::setCoilMeta,
- GregtechMTE_ChemicalPlant::getCoilMeta)))
- .addElement(
- 'P',
- withChannel(
- "pipe",
- addTieredBlock(
- GregTech_API.sBlockCasings2,
- GregtechMTE_ChemicalPlant::setPipeMeta,
- GregtechMTE_ChemicalPlant::getPipeMeta,
- 12,
- 16)))
- .build();
+ new String[][] {
+ { "XXXXXXX", "XXXXXXX", "XXXXXXX", "XXXXXXX", "XXXXXXX", "XXXXXXX", "XXXXXXX" },
+ { "X X", " MMMMM ", " MHHHM ", " MHHHM ", " MHHHM ", " MMMMM ", "X X" },
+ { "X X", " ", " PPP ", " PPP ", " PPP ", " ", "X X" },
+ { "X X", " ", " HHH ", " HHH ", " HHH ", " ", "X X" },
+ { "X X", " ", " PPP ", " PPP ", " PPP ", " ", "X X" },
+ { "X X", " MMMMM ", " MHHHM ", " MHHHM ", " MHHHM ", " MMMMM ", "X X" },
+ { "CCC~CCC", "CMMMMMC", "CMMMMMC", "CMMMMMC", "CMMMMMC", "CMMMMMC", "CCCCCCC" }, }))
+ .addElement(
+ 'C',
+ ofChain(
+ buildHatchAdder(GregtechMTE_ChemicalPlant.class).atLeast(Maintenance)
+ .casingIndex(getCasingTextureID())
+ .dot(1)
+ .build(),
+ buildHatchAdder(GregtechMTE_ChemicalPlant.class)
+ .atLeast(InputHatch, OutputHatch, InputBus, OutputBus)
+ .adder(GregtechMTE_ChemicalPlant::addChemicalPlantList)
+ .hatchItemFilterAnd(
+ (t, s) -> filterByMTETier(
+ Integer.MIN_VALUE,
+ s.stackSize >= 10 ? Integer.MAX_VALUE : s.stackSize))
+ .casingIndex(getCasingTextureID())
+ .dot(1)
+ .build(),
+ buildHatchAdder(GregtechMTE_ChemicalPlant.class)
+ .hatchClass(GT_MetaTileEntity_Hatch_Catalysts.class)
+ .shouldReject(t -> t.mCatalystBuses.size() >= 1)
+ .adder(GregtechMTE_ChemicalPlant::addChemicalPlantList)
+ .casingIndex(getCasingTextureID())
+ .dot(1)
+ .build(),
+ allCasingsElement))
+ .addElement('X', allCasingsElement)
+ .addElement(
+ 'M',
+ withChannel(
+ "machine",
+ addTieredBlock(
+ GregTech_API.sBlockCasings1,
+ GregtechMTE_ChemicalPlant::setMachineMeta,
+ GregtechMTE_ChemicalPlant::getMachineMeta,
+ 10)))
+ .addElement(
+ 'H',
+ withChannel(
+ "coil",
+ ofCoil(GregtechMTE_ChemicalPlant::setCoilMeta, GregtechMTE_ChemicalPlant::getCoilMeta)))
+ .addElement(
+ 'P',
+ withChannel(
+ "pipe",
+ addTieredBlock(
+ GregTech_API.sBlockCasings2,
+ GregtechMTE_ChemicalPlant::setPipeMeta,
+ GregtechMTE_ChemicalPlant::getPipeMeta,
+ 12,
+ 16)))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -255,8 +271,10 @@ public class GregtechMTE_ChemicalPlant extends GregtechMeta_MultiBlockBase<Gregt
private boolean check(int aIndex, World world, int x, int y, int z) {
Block block = world.getBlock(x, y, z);
int meta = world.getBlockMetadata(x, y, z);
- Block target = mTieredBlockRegistry.get(aIndex).getValue_1();
- int targetMeta = mTieredBlockRegistry.get(aIndex).getValue_2();
+ Block target = mTieredBlockRegistry.get(aIndex)
+ .getValue_1();
+ int targetMeta = mTieredBlockRegistry.get(aIndex)
+ .getValue_2();
return target.equals(block) && meta == targetMeta;
}
@@ -268,50 +286,58 @@ public class GregtechMTE_ChemicalPlant extends GregtechMeta_MultiBlockBase<Gregt
@Override
public boolean spawnHint(GregtechMTE_ChemicalPlant t, World world, int x, int y, int z, ItemStack trigger) {
StructureLibAPI.hintParticle(
- world,
- x,
- y,
- z,
- mTieredBlockRegistry.get(getIndex(trigger.stackSize)).getValue_1(),
- mTieredBlockRegistry.get(getIndex(trigger.stackSize)).getValue_2());
+ world,
+ x,
+ y,
+ z,
+ mTieredBlockRegistry.get(getIndex(trigger.stackSize))
+ .getValue_1(),
+ mTieredBlockRegistry.get(getIndex(trigger.stackSize))
+ .getValue_2());
return true;
}
@Override
public boolean placeBlock(GregtechMTE_ChemicalPlant t, World world, int x, int y, int z,
- ItemStack trigger) {
+ ItemStack trigger) {
return world.setBlock(
- x,
- y,
- z,
- mTieredBlockRegistry.get(getIndex(trigger.stackSize)).getValue_1(),
- mTieredBlockRegistry.get(getIndex(trigger.stackSize)).getValue_2(),
- 3);
+ x,
+ y,
+ z,
+ mTieredBlockRegistry.get(getIndex(trigger.stackSize))
+ .getValue_1(),
+ mTieredBlockRegistry.get(getIndex(trigger.stackSize))
+ .getValue_2(),
+ 3);
}
@Nullable
@Override
public BlocksToPlace getBlocksToPlace(GregtechMTE_ChemicalPlant gregtechMTE_chemicalPlant, World world,
- int x, int y, int z, ItemStack trigger, AutoPlaceEnvironment env) {
+ int x, int y, int z, ItemStack trigger, AutoPlaceEnvironment env) {
return BlocksToPlace.create(
- mTieredBlockRegistry.get(getIndex(trigger.stackSize)).getValue_1(),
- mTieredBlockRegistry.get(getIndex(trigger.stackSize)).getValue_2());
+ mTieredBlockRegistry.get(getIndex(trigger.stackSize))
+ .getValue_1(),
+ mTieredBlockRegistry.get(getIndex(trigger.stackSize))
+ .getValue_2());
}
@Override
public PlaceResult survivalPlaceBlock(GregtechMTE_ChemicalPlant t, World world, int x, int y, int z,
- ItemStack trigger, AutoPlaceEnvironment env) {
+ ItemStack trigger, AutoPlaceEnvironment env) {
if (check(getIndex(trigger.stackSize), world, x, y, z)) return PlaceResult.SKIP;
return StructureUtility.survivalPlaceBlock(
- mTieredBlockRegistry.get(getIndex(trigger.stackSize)).getValue_1(),
- mTieredBlockRegistry.get(getIndex(trigger.stackSize)).getValue_2(),
- world,
- x,
- y,
- z,
- env.getSource(),
- env.getActor(),
- env.getChatter());
+ mTieredBlockRegistry.get(getIndex(trigger.stackSize))
+ .getValue_1(),
+ mTieredBlockRegistry.get(getIndex(trigger.stackSize))
+ .getValue_2(),
+ world,
+ x,
+ y,
+ z,
+ env.getSource(),
+ env.getActor(),
+ env.getChatter());
}
};
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/mega/GregTechMetaTileEntity_MegaAlloyBlastSmelter.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/mega/GregTechMetaTileEntity_MegaAlloyBlastSmelter.java
index 40a8b322b0..1679629c88 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/mega/GregTechMetaTileEntity_MegaAlloyBlastSmelter.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/mega/GregTechMetaTileEntity_MegaAlloyBlastSmelter.java
@@ -57,8 +57,8 @@ import gtPlusPlus.core.block.ModBlocks;
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;
public class GregTechMetaTileEntity_MegaAlloyBlastSmelter
- extends GT_MetaTileEntity_ExtendedPowerMultiBlockBase<GregTechMetaTileEntity_MegaAlloyBlastSmelter>
- implements ISurvivalConstructable {
+ extends GT_MetaTileEntity_ExtendedPowerMultiBlockBase<GregTechMetaTileEntity_MegaAlloyBlastSmelter>
+ implements ISurvivalConstructable {
private static final int MAX_PARALLELS = 256;
private HeatingCoilLevel coilLevel;
@@ -66,87 +66,88 @@ public class GregTechMetaTileEntity_MegaAlloyBlastSmelter
private boolean hasNormalCoils;
private static final IStructureDefinition<GregTechMetaTileEntity_MegaAlloyBlastSmelter> STRUCTURE_DEFINITION = StructureDefinition
- .<GregTechMetaTileEntity_MegaAlloyBlastSmelter>builder()
- .addShape(
- "main",
- new String[][] {
- { " ", " ", " ", " ", " ", " ",
- " ", " ", " ", " ", " ",
- " ", " ", " DDDDD ", " CCCCC ", " AEEEA ",
- " AE~EA ", " AEEEA ", " CCCCC ", " ZZZZZ " },
- { " DDDDD ", " AAAAA ", " AAAAA ", " AAAAA ", " AAAAA ", " AAAAA ",
- " AAAAA ", " AAAAA ", " AAAAA ", " AAAAA ", " AAAAA ",
- " AAAAA ", " DDDDD ", " D D ", " C C ", " A A ",
- " A A ", " A A ", " C C ", " ZZZZZZZ " },
- { " DDDDDDD ", " ABBBBBA ", " ABBBBBA ", " ABBBBBA ", " ABBBBBA ", " ABBBBBA ",
- " ABBBBBA ", " ABBBBBA ", " ABBBBBA ", " ABBBBBA ", " ABBBBBA ",
- " ABBBBBA ", " DBBBBBD ", " D BBBBB D ", " C BBBBB C ", " A BBBBB A ",
- " A BBBBB A ", " A BBBBB A ", " C BBBBB C ", " ZZZZZZZZZ " },
- { " DDDDDDDDD ", " AB BA ", " AB BA ", " AB BA ", " AB BA ", " AB BA ",
- " AB BA ", " AB BA ", " AB BA ", " AB BA ", " AB BA ",
- " AB BA ", " DB BD ", "D B B D", "C B B C", "A B B A",
- "A B B A", "A B B A", "C B B C", "ZZZZZZZZZZZ" },
- { " DDDDDDDDD ", " AB BA ", " AB BA ", " AB BA ", " AB BA ", " AB BA ",
- " AB BA ", " AB BA ", " AB BA ", " AB BA ", " AB BA ",
- " AB BA ", " DB BD ", "D B B D", "C B B C", "A B B A",
- "A B B A", "A B B A", "C B B C", "ZZZZZZZZZZZ" },
- { " DDDDFDDDD ", " AB BA ", " AB BA ", " AB BA ", " AB BA ", " AB BA ",
- " AB BA ", " AB BA ", " AB BA ", " AB BA ", " AB BA ",
- " AB BA ", " DB BD ", "D B B D", "C B B C", "A B B A",
- "A B B A", "A B B A", "C B B C", "ZZZZZZZZZZZ" },
- { " DDDDDDDDD ", " AB BA ", " AB BA ", " AB BA ", " AB BA ", " AB BA ",
- " AB BA ", " AB BA ", " AB BA ", " AB BA ", " AB BA ",
- " AB BA ", " DB BD ", "D B B D", "C B B C", "A B B A",
- "A B B A", "A B B A", "C B B C", "ZZZZZZZZZZZ" },
- { " DDDDDDDDD ", " AB BA ", " AB BA ", " AB BA ", " AB BA ", " AB BA ",
- " AB BA ", " AB BA ", " AB BA ", " AB BA ", " AB BA ",
- " AB BA ", " DB BD ", "D B B D", "C B B C", "A B B A",
- "A B B A", "A B B A", "C B B C", "ZZZZZZZZZZZ" },
- { " DDDDDDD ", " ABBBBBA ", " ABBBBBA ", " ABBBBBA ", " ABBBBBA ", " ABBBBBA ",
- " ABBBBBA ", " ABBBBBA ", " ABBBBBA ", " ABBBBBA ", " ABBBBBA ",
- " ABBBBBA ", " DBBBBBD ", " D BBBBB D ", " C BBBBB C ", " A BBBBB A ",
- " A BBBBB A ", " A BBBBB A ", " C BBBBB C ", " ZZZZZZZZZ " },
- { " DDDDD ", " AAAAA ", " AAAAA ", " AAAAA ", " AAAAA ", " AAAAA ",
- " AAAAA ", " AAAAA ", " AAAAA ", " AAAAA ", " AAAAA ",
- " AAAAA ", " DDDDD ", " D D ", " C C ", " A A ",
- " A A ", " A A ", " C C ", " ZZZZZZZ " },
- { " ", " ", " ", " ", " ", " ",
- " ", " ", " ", " ", " ",
- " ", " ", " DDDDD ", " CCCCC ", " AAAAA ",
- " AAAAA ", " AAAAA ", " CCCCC ", " ZZZZZ " } })
- .addElement(
- 'B',
- withChannel(
- "coil",
- ofChain(
- onElementPass(
- te -> te.hasNormalCoils = false,
- ofCoil(
- GregTechMetaTileEntity_MegaAlloyBlastSmelter::setCoilLevel,
- GregTechMetaTileEntity_MegaAlloyBlastSmelter::getCoilLevel)),
- onElementPass(
- te -> te.hasNormalCoils = true,
- ofBlock(ModBlocks.blockCasingsMisc, 14)))))
-
- .addElement(
- 'Z',
- buildHatchAdder(GregTechMetaTileEntity_MegaAlloyBlastSmelter.class)
- .atLeast(InputHatch, OutputHatch, InputBus, OutputBus, Energy, ExoticEnergy)
- .casingIndex(TAE.GTPP_INDEX(15)).dot(1)
- .buildAndChain(ofBlock(ModBlocks.blockCasingsMisc, 15)))
- .addElement(
- 'E',
- buildHatchAdder(GregTechMetaTileEntity_MegaAlloyBlastSmelter.class).atLeast(Maintenance)
- .casingIndex(TAE.GTPP_INDEX(15)).dot(2)
- .buildAndChain(ofBlock(ModBlocks.blockCasingsMisc, 15)))
- .addElement('D', ofBlock(ModBlocks.blockCasingsMisc, 15))
- .addElement('C', ofBlock(ModBlocks.blockCasingsMisc, 14))
- .addElement(
- 'A',
- withChannel(
- "glass",
- BorosilicateGlass.ofBoroGlass((byte) -1, (te, t) -> te.glassTier = t, te -> te.glassTier)))
- .addElement('F', Muffler.newAny(TAE.GTPP_INDEX(15), 3)).build();
+ .<GregTechMetaTileEntity_MegaAlloyBlastSmelter>builder()
+ .addShape(
+ "main",
+ new String[][] {
+ { " ", " ", " ", " ", " ", " ",
+ " ", " ", " ", " ", " ", " ",
+ " ", " DDDDD ", " CCCCC ", " AEEEA ", " AE~EA ", " AEEEA ",
+ " CCCCC ", " ZZZZZ " },
+ { " DDDDD ", " AAAAA ", " AAAAA ", " AAAAA ", " AAAAA ", " AAAAA ",
+ " AAAAA ", " AAAAA ", " AAAAA ", " AAAAA ", " AAAAA ", " AAAAA ",
+ " DDDDD ", " D D ", " C C ", " A A ", " A A ", " A A ",
+ " C C ", " ZZZZZZZ " },
+ { " DDDDDDD ", " ABBBBBA ", " ABBBBBA ", " ABBBBBA ", " ABBBBBA ", " ABBBBBA ",
+ " ABBBBBA ", " ABBBBBA ", " ABBBBBA ", " ABBBBBA ", " ABBBBBA ", " ABBBBBA ",
+ " DBBBBBD ", " D BBBBB D ", " C BBBBB C ", " A BBBBB A ", " A BBBBB A ", " A BBBBB A ",
+ " C BBBBB C ", " ZZZZZZZZZ " },
+ { " DDDDDDDDD ", " AB BA ", " AB BA ", " AB BA ", " AB BA ", " AB BA ",
+ " AB BA ", " AB BA ", " AB BA ", " AB BA ", " AB BA ", " AB BA ",
+ " DB BD ", "D B B D", "C B B C", "A B B A", "A B B A", "A B B A",
+ "C B B C", "ZZZZZZZZZZZ" },
+ { " DDDDDDDDD ", " AB BA ", " AB BA ", " AB BA ", " AB BA ", " AB BA ",
+ " AB BA ", " AB BA ", " AB BA ", " AB BA ", " AB BA ", " AB BA ",
+ " DB BD ", "D B B D", "C B B C", "A B B A", "A B B A", "A B B A",
+ "C B B C", "ZZZZZZZZZZZ" },
+ { " DDDDFDDDD ", " AB BA ", " AB BA ", " AB BA ", " AB BA ", " AB BA ",
+ " AB BA ", " AB BA ", " AB BA ", " AB BA ", " AB BA ", " AB BA ",
+ " DB BD ", "D B B D", "C B B C", "A B B A", "A B B A", "A B B A",
+ "C B B C", "ZZZZZZZZZZZ" },
+ { " DDDDDDDDD ", " AB BA ", " AB BA ", " AB BA ", " AB BA ", " AB BA ",
+ " AB BA ", " AB BA ", " AB BA ", " AB BA ", " AB BA ", " AB BA ",
+ " DB BD ", "D B B D", "C B B C", "A B B A", "A B B A", "A B B A",
+ "C B B C", "ZZZZZZZZZZZ" },
+ { " DDDDDDDDD ", " AB BA ", " AB BA ", " AB BA ", " AB BA ", " AB BA ",
+ " AB BA ", " AB BA ", " AB BA ", " AB BA ", " AB BA ", " AB BA ",
+ " DB BD ", "D B B D", "C B B C", "A B B A", "A B B A", "A B B A",
+ "C B B C", "ZZZZZZZZZZZ" },
+ { " DDDDDDD ", " ABBBBBA ", " ABBBBBA ", " ABBBBBA ", " ABBBBBA ", " ABBBBBA ",
+ " ABBBBBA ", " ABBBBBA ", " ABBBBBA ", " ABBBBBA ", " ABBBBBA ", " ABBBBBA ",
+ " DBBBBBD ", " D BBBBB D ", " C BBBBB C ", " A BBBBB A ", " A BBBBB A ", " A BBBBB A ",
+ " C BBBBB C ", " ZZZZZZZZZ " },
+ { " DDDDD ", " AAAAA ", " AAAAA ", " AAAAA ", " AAAAA ", " AAAAA ",
+ " AAAAA ", " AAAAA ", " AAAAA ", " AAAAA ", " AAAAA ", " AAAAA ",
+ " DDDDD ", " D D ", " C C ", " A A ", " A A ", " A A ",
+ " C C ", " ZZZZZZZ " },
+ { " ", " ", " ", " ", " ", " ",
+ " ", " ", " ", " ", " ", " ",
+ " ", " DDDDD ", " CCCCC ", " AAAAA ", " AAAAA ", " AAAAA ",
+ " CCCCC ", " ZZZZZ " } })
+ .addElement(
+ 'B',
+ withChannel(
+ "coil",
+ ofChain(
+ onElementPass(
+ te -> te.hasNormalCoils = false,
+ ofCoil(
+ GregTechMetaTileEntity_MegaAlloyBlastSmelter::setCoilLevel,
+ GregTechMetaTileEntity_MegaAlloyBlastSmelter::getCoilLevel)),
+ onElementPass(te -> te.hasNormalCoils = true, ofBlock(ModBlocks.blockCasingsMisc, 14)))))
+
+ .addElement(
+ 'Z',
+ buildHatchAdder(GregTechMetaTileEntity_MegaAlloyBlastSmelter.class)
+ .atLeast(InputHatch, OutputHatch, InputBus, OutputBus, Energy, ExoticEnergy)
+ .casingIndex(TAE.GTPP_INDEX(15))
+ .dot(1)
+ .buildAndChain(ofBlock(ModBlocks.blockCasingsMisc, 15)))
+ .addElement(
+ 'E',
+ buildHatchAdder(GregTechMetaTileEntity_MegaAlloyBlastSmelter.class).atLeast(Maintenance)
+ .casingIndex(TAE.GTPP_INDEX(15))
+ .dot(2)
+ .buildAndChain(ofBlock(ModBlocks.blockCasingsMisc, 15)))
+ .addElement('D', ofBlock(ModBlocks.blockCasingsMisc, 15))
+ .addElement('C', ofBlock(ModBlocks.blockCasingsMisc, 14))
+ .addElement(
+ 'A',
+ withChannel(
+ "glass",
+ BorosilicateGlass.ofBoroGlass((byte) -1, (te, t) -> te.glassTier = t, te -> te.glassTier)))
+ .addElement('F', Muffler.newAny(TAE.GTPP_INDEX(15), 3))
+ .build();
public GregTechMetaTileEntity_MegaAlloyBlastSmelter(int aID, String aName, String aNameRegional) {
super(aID, aName, aNameRegional);
@@ -178,7 +179,7 @@ public class GregTechMetaTileEntity_MegaAlloyBlastSmelter
@Override
protected GT_OverclockCalculator createOverclockCalculator(@NotNull GT_Recipe recipe) {
return super.createOverclockCalculator(recipe)
- .setSpeedBoost((float) (1.0 - getCoilDiscount(coilLevel)));
+ .setSpeedBoost((float) (1.0 - getCoilDiscount(coilLevel)));
}
}.setMaxParallel(MAX_PARALLELS);
}
@@ -271,40 +272,39 @@ public class GregTechMetaTileEntity_MegaAlloyBlastSmelter
@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType("Fluid Alloy Cooker").addInfo("Controller block for the Mega Alloy Blast Smelter")
- .addInfo(
- "Runs the same recipes as the normal ABS, except with up to " + EnumChatFormatting.BOLD
- + EnumChatFormatting.UNDERLINE
- + MAX_PARALLELS
- + EnumChatFormatting.RESET
- + EnumChatFormatting.GRAY
- + " parallels.")
- .addInfo("Every coil tier above cupronickel grants a speed bonus, based on this function:")
- .addInfo("Bonus = TIER / 150, rounded to the nearest thousandth.")
- .addInfo(
- EnumChatFormatting.ITALIC
- + "Can also use normal ABS coils in their place instead, if you don't like the bonuses :)"
- + EnumChatFormatting.RESET
- + EnumChatFormatting.GRAY)
- .addInfo("The glass limits the tier of the energy hatch. UEV glass unlocks all tiers.")
- .addInfo("UV glass required for TecTech laser hatches.")
- .addInfo(
- EnumChatFormatting.ITALIC + "\"all it does is make metals hot\""
- + EnumChatFormatting.RESET
- + EnumChatFormatting.GRAY)
- .beginStructureBlock(11, 20, 11, false)
- .addStructureInfo("This structure is too complex! See schematic for details.")
- .addMaintenanceHatch("Around the controller", 2)
- .addOtherStructurePart(
- "Input Bus, Output Bus, Input Hatch, Output Bus, Energy Hatch",
- "Bottom Casing",
- 1)
- .addMufflerHatch("1 in the center of the top layer", 3).toolTipFinisher(
- EnumChatFormatting.AQUA + "MadMan310 "
- + EnumChatFormatting.GRAY
- + "via "
- + EnumChatFormatting.RED
- + "GT++");
+ tt.addMachineType("Fluid Alloy Cooker")
+ .addInfo("Controller block for the Mega Alloy Blast Smelter")
+ .addInfo(
+ "Runs the same recipes as the normal ABS, except with up to " + EnumChatFormatting.BOLD
+ + EnumChatFormatting.UNDERLINE
+ + MAX_PARALLELS
+ + EnumChatFormatting.RESET
+ + EnumChatFormatting.GRAY
+ + " parallels.")
+ .addInfo("Every coil tier above cupronickel grants a speed bonus, based on this function:")
+ .addInfo("Bonus = TIER / 150, rounded to the nearest thousandth.")
+ .addInfo(
+ EnumChatFormatting.ITALIC
+ + "Can also use normal ABS coils in their place instead, if you don't like the bonuses :)"
+ + EnumChatFormatting.RESET
+ + EnumChatFormatting.GRAY)
+ .addInfo("The glass limits the tier of the energy hatch. UEV glass unlocks all tiers.")
+ .addInfo("UV glass required for TecTech laser hatches.")
+ .addInfo(
+ EnumChatFormatting.ITALIC + "\"all it does is make metals hot\""
+ + EnumChatFormatting.RESET
+ + EnumChatFormatting.GRAY)
+ .beginStructureBlock(11, 20, 11, false)
+ .addStructureInfo("This structure is too complex! See schematic for details.")
+ .addMaintenanceHatch("Around the controller", 2)
+ .addOtherStructurePart("Input Bus, Output Bus, Input Hatch, Output Bus, Energy Hatch", "Bottom Casing", 1)
+ .addMufflerHatch("1 in the center of the top layer", 3)
+ .toolTipFinisher(
+ EnumChatFormatting.AQUA + "MadMan310 "
+ + EnumChatFormatting.GRAY
+ + "via "
+ + EnumChatFormatting.RED
+ + "GT++");
return tt;
}
@@ -316,51 +316,53 @@ public class GregTechMetaTileEntity_MegaAlloyBlastSmelter
int discountP = (int) (getCoilDiscount(coilLevel) * 1000) / 10;
for (GT_MetaTileEntity_Hatch tHatch : filterValidMTEs(mExoticEnergyHatches)) {
- storedEnergy += tHatch.getBaseMetaTileEntity().getStoredEU();
- maxEnergy += tHatch.getBaseMetaTileEntity().getEUCapacity();
+ storedEnergy += tHatch.getBaseMetaTileEntity()
+ .getStoredEU();
+ maxEnergy += tHatch.getBaseMetaTileEntity()
+ .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(-lEUt)
- + EnumChatFormatting.RESET
- + " EU/t",
- StatCollector.translateToLocal("GT5U.multiblock.mei") + ": "
- + EnumChatFormatting.YELLOW
- + GT_Utility.formatNumbers(getAverageInputVoltage())
- + EnumChatFormatting.RESET
- + " EU/t(*"
- + EnumChatFormatting.YELLOW
- + GT_Utility.formatNumbers(getMaxInputAmps())
- + EnumChatFormatting.RESET
- + "A) "
- + StatCollector.translateToLocal("GT5U.machines.tier")
- + ": "
- + EnumChatFormatting.YELLOW
- + GT_Values.VN[GT_Utility.getTier(getAverageInputVoltage())]
- + EnumChatFormatting.RESET,
- "Parallels: " + EnumChatFormatting.BLUE + paras + EnumChatFormatting.RESET,
- "Coil Discount: " + EnumChatFormatting.BLUE + discountP + "%" + 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(-lEUt)
+ + EnumChatFormatting.RESET
+ + " EU/t",
+ StatCollector.translateToLocal("GT5U.multiblock.mei") + ": "
+ + EnumChatFormatting.YELLOW
+ + GT_Utility.formatNumbers(getAverageInputVoltage())
+ + EnumChatFormatting.RESET
+ + " EU/t(*"
+ + EnumChatFormatting.YELLOW
+ + GT_Utility.formatNumbers(getMaxInputAmps())
+ + EnumChatFormatting.RESET
+ + "A) "
+ + StatCollector.translateToLocal("GT5U.machines.tier")
+ + ": "
+ + EnumChatFormatting.YELLOW
+ + GT_Values.VN[GT_Utility.getTier(getAverageInputVoltage())]
+ + EnumChatFormatting.RESET,
+ "Parallels: " + EnumChatFormatting.BLUE + paras + EnumChatFormatting.RESET,
+ "Coil Discount: " + EnumChatFormatting.BLUE + discountP + "%" + EnumChatFormatting.RESET,
+ "-----------------------------------------" };
}
@Override
@@ -370,15 +372,20 @@ public class GregTechMetaTileEntity_MegaAlloyBlastSmelter
@Override
public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, ForgeDirection side, ForgeDirection facing,
- int aColorIndex, boolean aActive, boolean aRedstone) {
+ int aColorIndex, boolean aActive, boolean aRedstone) {
if (side == facing) {
if (aActive) {
return new ITexture[] { Textures.BlockIcons.getCasingTextureForId(TAE.GTPP_INDEX(15)),
- TextureFactory.builder().addIcon(TexturesGtBlock.Overlay_Machine_Controller_Advanced_Active)
- .extFacing().build() };
+ TextureFactory.builder()
+ .addIcon(TexturesGtBlock.Overlay_Machine_Controller_Advanced_Active)
+ .extFacing()
+ .build() };
}
- return new ITexture[] { Textures.BlockIcons.getCasingTextureForId(TAE.GTPP_INDEX(15)), TextureFactory
- .builder().addIcon(TexturesGtBlock.Overlay_Machine_Controller_Advanced).extFacing().build() };
+ return new ITexture[] { Textures.BlockIcons.getCasingTextureForId(TAE.GTPP_INDEX(15)),
+ TextureFactory.builder()
+ .addIcon(TexturesGtBlock.Overlay_Machine_Controller_Advanced)
+ .extFacing()
+ .build() };
}
return new ITexture[] { Textures.BlockIcons.getCasingTextureForId(TAE.GTPP_INDEX(15)) };
}
@@ -404,14 +411,14 @@ public class GregTechMetaTileEntity_MegaAlloyBlastSmelter
} else {
inputSeparation = !inputSeparation;
GT_Utility.sendChatToPlayer(
- aPlayer,
- StatCollector.translateToLocal("GT5U.machines.separatebus") + " " + inputSeparation);
+ aPlayer,
+ StatCollector.translateToLocal("GT5U.machines.separatebus") + " " + inputSeparation);
}
}
@Override
public boolean onWireCutterRightClick(ForgeDirection side, ForgeDirection wrenchingSide, EntityPlayer aPlayer,
- float aX, float aY, float aZ, ItemStack aTool) {
+ float aX, float aY, float aZ, ItemStack aTool) {
if (aPlayer.isSneaking()) {
batchMode = !batchMode;
if (batchMode) {
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GT_MTE_LargeTurbine_Gas.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GT_MTE_LargeTurbine_Gas.java
index c1491c7bf6..84fac40265 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GT_MTE_LargeTurbine_Gas.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GT_MTE_LargeTurbine_Gas.java
@@ -33,7 +33,9 @@ public class GT_MTE_LargeTurbine_Gas extends GregtechMetaTileEntity_LargerTurbin
private static final HashSet<Fluid> BLACKLIST = new HashSet<>();
static {
- BLACKLIST.add(Materials.Benzene.getFluid(0).getFluid());
+ BLACKLIST.add(
+ Materials.Benzene.getFluid(0)
+ .getFluid());
}
public GT_MTE_LargeTurbine_Gas(int aID, String aName, String aNameRegional) {
@@ -74,7 +76,8 @@ public class GT_MTE_LargeTurbine_Gas extends GregtechMetaTileEntity_LargerTurbin
if (aLiquid == null) {
return 0;
}
- GT_Recipe tFuel = getRecipeMap().getBackend().findFuel(aLiquid);
+ GT_Recipe tFuel = getRecipeMap().getBackend()
+ .findFuel(aLiquid);
if (tFuel != null) {
return tFuel.mSpecialValue;
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GT_MTE_LargeTurbine_Plasma.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GT_MTE_LargeTurbine_Plasma.java
index f6293920b5..db99b52be1 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GT_MTE_LargeTurbine_Plasma.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GT_MTE_LargeTurbine_Plasma.java
@@ -71,7 +71,8 @@ public class GT_MTE_LargeTurbine_Plasma extends GregtechMetaTileEntity_LargerTur
if (aLiquid == null) {
return 0;
}
- GT_Recipe tFuel = getRecipeMap().getBackend().findFuel(aLiquid);
+ GT_Recipe tFuel = getRecipeMap().getBackend()
+ .findFuel(aLiquid);
if (tFuel != null) {
return tFuel.mSpecialValue;
}
@@ -127,31 +128,32 @@ public class GT_MTE_LargeTurbine_Plasma extends GregtechMetaTileEntity_LargerTur
}
}
if (baseEff == 0 || optFlow == 0
- || counter >= 512
- || this.getBaseMetaTileEntity().hasWorkJustBeenEnabled()
- || this.getBaseMetaTileEntity().hasInventoryBeenModified()) {
+ || counter >= 512
+ || this.getBaseMetaTileEntity()
+ .hasWorkJustBeenEnabled()
+ || this.getBaseMetaTileEntity()
+ .hasInventoryBeenModified()) {
counter = 0;
float aTotalBaseEff = 0;
float aTotalOptimalFlow = 0;
- ItemStack aStack = getFullTurbineAssemblies().get(0).getTurbine();
+ ItemStack aStack = getFullTurbineAssemblies().get(0)
+ .getTurbine();
aTotalBaseEff += GT_Utility.safeInt(
- (long) ((5F + ((GT_MetaGenerated_Tool) aStack.getItem()).getToolCombatDamage(aStack))
- * 1000F));
+ (long) ((5F + ((GT_MetaGenerated_Tool) aStack.getItem()).getToolCombatDamage(aStack)) * 1000F));
aTotalOptimalFlow += GT_Utility.safeInt(
- (long) Math.max(
- Float.MIN_NORMAL,
- ((GT_MetaGenerated_Tool) aStack.getItem()).getToolStats(aStack).getSpeedMultiplier()
- * GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mToolSpeed
- * 50));
+ (long) Math.max(
+ Float.MIN_NORMAL,
+ ((GT_MetaGenerated_Tool) aStack.getItem()).getToolStats(aStack)
+ .getSpeedMultiplier() * GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mToolSpeed
+ * 50));
// Calculate total EU/t (as shown on turbine tooltip (Fast mode doesn't affect))
double aEUPerTurbine = aTotalOptimalFlow * 40
- * 0.0105
- * GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mPlasmaMultiplier
- * (50.0f + (10.0f
- * ((GT_MetaGenerated_Tool) aStack.getItem()).getToolCombatDamage(aStack)));
+ * 0.0105
+ * GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mPlasmaMultiplier
+ * (50.0f + (10.0f * ((GT_MetaGenerated_Tool) aStack.getItem()).getToolCombatDamage(aStack)));
aTotalOptimalFlow *= getSpeedMultiplier();
if (aTotalOptimalFlow < 0) {
@@ -231,7 +233,7 @@ public class GT_MTE_LargeTurbine_Plasma extends GregtechMetaTileEntity_LargerTur
// Doesn't matter which one. Ignore the rest!
int fuelValue = getFuelValue(firstFuelType);
actualOptimalFlow = GT_Utility
- .safeInt((long) Math.ceil((double) aOptFlow * (double) flowMultipliers[2] / (double) fuelValue));
+ .safeInt((long) Math.ceil((double) aOptFlow * (double) flowMultipliers[2] / (double) fuelValue));
this.realOptFlow = actualOptimalFlow; // For scanner info
int remainingFlow = GT_Utility.safeInt((long) (actualOptimalFlow * 1.25f)); // Allowed to use up to 125% of
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GT_MTE_LargeTurbine_SHSteam.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GT_MTE_LargeTurbine_SHSteam.java
index dded1d04d9..d1346d3a51 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GT_MTE_LargeTurbine_SHSteam.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GT_MTE_LargeTurbine_SHSteam.java
@@ -92,7 +92,9 @@ public class GT_MTE_LargeTurbine_SHSteam extends GregtechMetaTileEntity_LargerTu
storedFluid = 0;
for (int i = 0; i < aFluids.size() && remainingFlow > 0; i++) {
- String fluidName = aFluids.get(i).getFluid().getUnlocalizedName(aFluids.get(i));
+ String fluidName = aFluids.get(i)
+ .getFluid()
+ .getUnlocalizedName(aFluids.get(i));
if (fluidName.equals("ic2.fluidSuperheatedSteam")) {
flow = Math.min(aFluids.get(i).amount, remainingFlow); // try to use up w/o exceeding remainingFlow
depleteInput(new FluidStack(aFluids.get(i), flow)); // deplete that amount
@@ -102,16 +104,19 @@ public class GT_MTE_LargeTurbine_SHSteam extends GregtechMetaTileEntity_LargerTu
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 e) {}
achievement = true;
}
} else if (fluidName.equals("fluid.steam") || fluidName.equals("ic2.fluidSteam")
- || fluidName.equals("fluid.mfr.steam.still.name")) {
- depleteInput(new FluidStack(aFluids.get(i), aFluids.get(i).amount));
- }
+ || fluidName.equals("fluid.mfr.steam.still.name")) {
+ depleteInput(new FluidStack(aFluids.get(i), aFluids.get(i).amount));
+ }
}
if (totalFlow <= 0) return 0;
tEU = totalFlow;
@@ -137,8 +142,8 @@ public class GT_MTE_LargeTurbine_SHSteam extends GregtechMetaTileEntity_LargerTu
if (side == getBaseMetaTileEntity().getFrontFacing()) {
looseFit ^= true;
GT_Utility.sendChatToPlayer(
- aPlayer,
- looseFit ? "Fitting is Loose (Higher Flow)" : "Fitting is Tight (Higher Efficiency)");
+ aPlayer,
+ looseFit ? "Fitting is Loose (Higher Flow)" : "Fitting is Tight (Higher Efficiency)");
}
if (looseFit) {
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GT_MTE_LargeTurbine_Steam.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GT_MTE_LargeTurbine_Steam.java
index cb8bc06124..c882b84aab 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GT_MTE_LargeTurbine_Steam.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GT_MTE_LargeTurbine_Steam.java
@@ -104,9 +104,11 @@ public class GT_MTE_LargeTurbine_Steam extends GregtechMetaTileEntity_LargerTurb
storedFluid = 0;
for (int i = 0; i < aFluids.size() && remainingFlow > 0; i++) { // loop through each hatch; extract inputs and
// track totals.
- String fluidName = aFluids.get(i).getFluid().getUnlocalizedName(aFluids.get(i));
+ String fluidName = aFluids.get(i)
+ .getFluid()
+ .getUnlocalizedName(aFluids.get(i));
if (fluidName.equals("fluid.steam") || fluidName.equals("ic2.fluidSteam")
- || fluidName.equals("fluid.mfr.steam.still.name")) {
+ || fluidName.equals("fluid.mfr.steam.still.name")) {
flow = Math.min(aFluids.get(i).amount, remainingFlow); // try to use up w/o exceeding remainingFlow
depleteInput(new FluidStack(aFluids.get(i), flow)); // deplete that amount
this.storedFluid += aFluids.get(i).amount;
@@ -114,9 +116,12 @@ public class GT_MTE_LargeTurbine_Steam extends GregtechMetaTileEntity_LargerTurb
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 (fluidName.equals("ic2.fluidSuperheatedSteam")) {
@@ -148,8 +153,8 @@ public class GT_MTE_LargeTurbine_Steam extends GregtechMetaTileEntity_LargerTurb
if (side == getBaseMetaTileEntity().getFrontFacing()) {
looseFit ^= true;
GT_Utility.sendChatToPlayer(
- aPlayer,
- looseFit ? "Fitting: Loose - More Flow" : "Fitting: Tight - More Efficiency");
+ aPlayer,
+ looseFit ? "Fitting: Loose - More Flow" : "Fitting: Tight - More Efficiency");
}
if (looseFit) {
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GregtechMetaTileEntity_LargerTurbineBase.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GregtechMetaTileEntity_LargerTurbineBase.java
index adb35cc0dd..eec137cea2 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GregtechMetaTileEntity_LargerTurbineBase.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GregtechMetaTileEntity_LargerTurbineBase.java
@@ -58,8 +58,8 @@ import gtPlusPlus.core.util.minecraft.gregtech.PollutionUtils;
import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch_Turbine;
import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.GregtechMeta_MultiBlockBase;
-public abstract class GregtechMetaTileEntity_LargerTurbineBase extends
- GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_LargerTurbineBase> implements ISurvivalConstructable {
+public abstract class GregtechMetaTileEntity_LargerTurbineBase
+ extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_LargerTurbineBase> implements ISurvivalConstructable {
protected int baseEff = 0;
protected long optFlow = 0;
@@ -101,28 +101,35 @@ public abstract class GregtechMetaTileEntity_LargerTurbineBase extends
@Override
protected final GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
- tt.addMachineType(getMachineType()).addInfo("Controller Block for the XL " + getTurbineType() + " Turbine")
- .addInfo("Runs as fast as 16 Large Turbines of the same type, takes the space of 12")
- .addInfo("Right-click with screwdriver to enable Fast Mode, to run it even faster")
- .addInfo("Optimal flow will increase or decrease accordingly on mode switch")
- .addInfo("Fast Mode increases speed to 48x instead of 16x, with some penalties")
- .addInfo("Maintenance problems and turbine damage happen 12x as often in Fast Mode");
+ tt.addMachineType(getMachineType())
+ .addInfo("Controller Block for the XL " + getTurbineType() + " Turbine")
+ .addInfo("Runs as fast as 16 Large Turbines of the same type, takes the space of 12")
+ .addInfo("Right-click with screwdriver to enable Fast Mode, to run it even faster")
+ .addInfo("Optimal flow will increase or decrease accordingly on mode switch")
+ .addInfo("Fast Mode increases speed to 48x instead of 16x, with some penalties")
+ .addInfo("Maintenance problems and turbine damage happen 12x as often in Fast Mode");
if (getTurbineType().contains("Steam")) {
tt.addInfo("XL Steam Turbines can use Loose Mode with either Slow or Fast Mode");
}
if (getTurbineType().equals("Plasma")) {
tt.addInfo("Plasma fuel efficiency is lower for high tier turbines when using low-grade plasmas")
- .addInfo("Efficiency = ((FuelValue / 200,000)^2) / (EU per Turbine)");
- }
- tt.addPollutionAmount(getPollutionPerSecond(null)).addInfo("Pollution is 3x higher in Fast Mode").addSeparator()
- .beginStructureBlock(7, 9, 7, false).addController("Top Middle")
- .addCasingInfoMin(getCasingName(), 360, false).addCasingInfoMin("Rotor Shaft", 30, false)
- .addOtherStructurePart("Rotor Assembly", "Any 1 dot hint", 1).addInputBus("Any 4 dot hint (min 1)", 4)
- .addInputHatch("Any 4 dot hint(min 1)", 4);
+ .addInfo("Efficiency = ((FuelValue / 200,000)^2) / (EU per Turbine)");
+ }
+ tt.addPollutionAmount(getPollutionPerSecond(null))
+ .addInfo("Pollution is 3x higher in Fast Mode")
+ .addSeparator()
+ .beginStructureBlock(7, 9, 7, false)
+ .addController("Top Middle")
+ .addCasingInfoMin(getCasingName(), 360, false)
+ .addCasingInfoMin("Rotor Shaft", 30, false)
+ .addOtherStructurePart("Rotor Assembly", "Any 1 dot hint", 1)
+ .addInputBus("Any 4 dot hint (min 1)", 4)
+ .addInputHatch("Any 4 dot hint(min 1)", 4);
if (requiresOutputHatch()) {
tt.addOutputHatch("Any 4 dot hint(min 1)", 4);
}
- tt.addDynamoHatch("Any 4 dot hint(min 1)", 4).addMaintenanceHatch("Any 4 dot hint(min 1)", 4);
+ tt.addDynamoHatch("Any 4 dot hint(min 1)", 4)
+ .addMaintenanceHatch("Any 4 dot hint(min 1)", 4);
if (requiresMufflers()) {
tt.addMufflerHatch("Any 7 dot hint (x4)", 7);
}
@@ -137,51 +144,49 @@ public abstract class GregtechMetaTileEntity_LargerTurbineBase extends
@SuppressWarnings("SpellCheckingInspection")
protected IStructureDefinition<GregtechMetaTileEntity_LargerTurbineBase> computeValue(Class<?> type) {
return StructureDefinition.<GregtechMetaTileEntity_LargerTurbineBase>builder()
- // c = turbine casing
- // s = turbine shaft
- // t = turbine housing
- // h = dynamo/maint
- // m = muffler
- .addShape(
- STRUCTURE_PIECE_MAIN,
- (new String[][] {
- { "ccchccc", "ccccccc", "ccmmmcc", "ccm~mcc", "ccmmmcc", "ccccccc", "ccchccc" },
- { "ctchctc", "cscccsc", "cscccsc", "cscccsc", "cscccsc", "cscccsc", "ctchctc" },
- { "ccchccc", "ccccccc", "ccccccc", "ccccccc", "ccccccc", "ccccccc", "ccchccc" },
- { "ccchccc", "ccccccc", "ccccccc", "ccccccc", "ccccccc", "ccccccc", "ccchccc" },
- { "ctchctc", "cscccsc", "cscccsc", "cscccsc", "cscccsc", "cscccsc", "ctchctc" },
- { "ccchccc", "ccccccc", "ccccccc", "ccccccc", "ccccccc", "ccccccc", "ccchccc" },
- { "ccchccc", "ccccccc", "ccccccc", "ccccccc", "ccccccc", "ccccccc", "ccchccc" },
- { "ctchctc", "cscccsc", "cscccsc", "cscccsc", "cscccsc", "cscccsc", "ctchctc" },
- { "ccchccc", "ccccccc", "ccccccc", "ccccccc", "ccccccc", "ccccccc", "ccchccc" }, }))
- .addElement('c', lazy(t -> ofBlock(t.getCasingBlock(), t.getCasingMeta())))
- .addElement('s', lazy(t -> ofBlock(t.getShaftBlock(), t.getTurbineShaftMeta())))
- .addElement(
- 't',
- lazy(
- t -> buildHatchAdder(GregtechMetaTileEntity_LargerTurbineBase.class)
- .adder(GregtechMetaTileEntity_LargerTurbineBase::addTurbineHatch)
- .hatchClass(GT_MetaTileEntity_Hatch_Turbine.class)
- .casingIndex(t.getCasingTextureIndex()).dot(1).build()))
- .addElement(
- 'h',
- lazy(
- t -> buildHatchAdder(GregtechMetaTileEntity_LargerTurbineBase.class)
- .atLeast(
- InputBus,
- InputHatch,
- OutputHatch,
- Dynamo.or(TTDynamo),
- Maintenance)
- .casingIndex(t.getCasingTextureIndex()).dot(4)
- .buildAndChain(t.getCasingBlock(), t.getCasingMeta())))
- .addElement(
- 'm',
- lazy(
- t -> buildHatchAdder(GregtechMetaTileEntity_LargerTurbineBase.class)
- .atLeast(Muffler).casingIndex(t.getCasingTextureIndex()).dot(7)
- .buildAndChain(t.getCasingBlock(), t.getCasingMeta())))
- .build();
+ // c = turbine casing
+ // s = turbine shaft
+ // t = turbine housing
+ // h = dynamo/maint
+ // m = muffler
+ .addShape(
+ STRUCTURE_PIECE_MAIN,
+ (new String[][] { { "ccchccc", "ccccccc", "ccmmmcc", "ccm~mcc", "ccmmmcc", "ccccccc", "ccchccc" },
+ { "ctchctc", "cscccsc", "cscccsc", "cscccsc", "cscccsc", "cscccsc", "ctchctc" },
+ { "ccchccc", "ccccccc", "ccccccc", "ccccccc", "ccccccc", "ccccccc", "ccchccc" },
+ { "ccchccc", "ccccccc", "ccccccc", "ccccccc", "ccccccc", "ccccccc", "ccchccc" },
+ { "ctchctc", "cscccsc", "cscccsc", "cscccsc", "cscccsc", "cscccsc", "ctchctc" },
+ { "ccchccc", "ccccccc", "ccccccc", "ccccccc", "ccccccc", "ccccccc", "ccchccc" },
+ { "ccchccc", "ccccccc", "ccccccc", "ccccccc", "ccccccc", "ccccccc", "ccchccc" },
+ { "ctchctc", "cscccsc", "cscccsc", "cscccsc", "cscccsc", "cscccsc", "ctchctc" },
+ { "ccchccc", "ccccccc", "ccccccc", "ccccccc", "ccccccc", "ccccccc", "ccchccc" }, }))
+ .addElement('c', lazy(t -> ofBlock(t.getCasingBlock(), t.getCasingMeta())))
+ .addElement('s', lazy(t -> ofBlock(t.getShaftBlock(), t.getTurbineShaftMeta())))
+ .addElement(
+ 't',
+ lazy(
+ t -> buildHatchAdder(GregtechMetaTileEntity_LargerTurbineBase.class)
+ .adder(GregtechMetaTileEntity_LargerTurbineBase::addTurbineHatch)
+ .hatchClass(GT_MetaTileEntity_Hatch_Turbine.class)
+ .casingIndex(t.getCasingTextureIndex())
+ .dot(1)
+ .build()))
+ .addElement(
+ 'h',
+ lazy(
+ t -> buildHatchAdder(GregtechMetaTileEntity_LargerTurbineBase.class)
+ .atLeast(InputBus, InputHatch, OutputHatch, Dynamo.or(TTDynamo), Maintenance)
+ .casingIndex(t.getCasingTextureIndex())
+ .dot(4)
+ .buildAndChain(t.getCasingBlock(), t.getCasingMeta())))
+ .addElement(
+ 'm',
+ lazy(
+ t -> buildHatchAdder(GregtechMetaTileEntity_LargerTurbineBase.class).atLeast(Muffler)
+ .casingIndex(t.getCasingTextureIndex())
+ .dot(7)
+ .buildAndChain(t.getCasingBlock(), t.getCasingMeta())))
+ .build();
}
};
@@ -217,25 +222,25 @@ public abstract class GregtechMetaTileEntity_LargerTurbineBase extends
boolean aStructure = checkPiece(STRUCTURE_PIECE_MAIN, 3, 3, 0);
log("Structure Check: " + aStructure);
if (mTurbineRotorHatches.size() != 12 || mMaintenanceHatches.size() != 1
- || (mDynamoHatches.size() < 1 && mTecTechDynamoHatches.size() < 1)
- || (requiresMufflers() && mMufflerHatches.size() != 4)
- || mInputBusses.size() < 1
- || mInputHatches.size() < 1
- || (requiresOutputHatch() && mOutputHatches.size() < 1)) {
+ || (mDynamoHatches.size() < 1 && mTecTechDynamoHatches.size() < 1)
+ || (requiresMufflers() && mMufflerHatches.size() != 4)
+ || mInputBusses.size() < 1
+ || mInputHatches.size() < 1
+ || (requiresOutputHatch() && mOutputHatches.size() < 1)) {
log(
- "Bad Hatches - Turbine Housings: " + mTurbineRotorHatches.size()
- + ", Maint: "
- + mMaintenanceHatches.size()
- + ", Dynamo: "
- + mDynamoHatches.size()
- + ", Muffler: "
- + mMufflerHatches.size()
- + ", Input Buses: "
- + mInputBusses.size()
- + ", Input Hatches: "
- + mInputHatches.size()
- + ", Output Hatches: "
- + mOutputHatches.size());
+ "Bad Hatches - Turbine Housings: " + mTurbineRotorHatches.size()
+ + ", Maint: "
+ + mMaintenanceHatches.size()
+ + ", Dynamo: "
+ + mDynamoHatches.size()
+ + ", Muffler: "
+ + mMufflerHatches.size()
+ + ", Input Buses: "
+ + mInputBusses.size()
+ + ", Input Hatches: "
+ + mInputHatches.size()
+ + ", Output Hatches: "
+ + mOutputHatches.size());
return false;
}
mufflerReduction = getMufflerReduction();
@@ -303,8 +308,8 @@ public abstract class GregtechMetaTileEntity_LargerTurbineBase extends
public static boolean isValidTurbine(ItemStack aTurbine) {
return (aTurbine != null && aTurbine.getItem() instanceof GT_MetaGenerated_Tool
- && aTurbine.getItemDamage() >= 170
- && aTurbine.getItemDamage() <= 176);
+ && aTurbine.getItemDamage() >= 170
+ && aTurbine.getItemDamage() <= 176);
}
protected ArrayList<ItemStack> getAllBufferedTurbines() {
@@ -448,24 +453,26 @@ public abstract class GregtechMetaTileEntity_LargerTurbineBase extends
if (tFluids.size() > 0) {
if (baseEff == 0 || optFlow == 0
- || counter >= 512
- || this.getBaseMetaTileEntity().hasWorkJustBeenEnabled()
- || this.getBaseMetaTileEntity().hasInventoryBeenModified()) {
+ || counter >= 512
+ || this.getBaseMetaTileEntity()
+ .hasWorkJustBeenEnabled()
+ || this.getBaseMetaTileEntity()
+ .hasInventoryBeenModified()) {
counter = 0;
float aTotalBaseEff = 0;
float aTotalOptimalFlow = 0;
- ItemStack aStack = getFullTurbineAssemblies().get(0).getTurbine();
+ ItemStack aStack = getFullTurbineAssemblies().get(0)
+ .getTurbine();
aTotalBaseEff += GT_Utility.safeInt(
- (long) ((5F + ((GT_MetaGenerated_Tool) aStack.getItem()).getToolCombatDamage(aStack))
- * 1000F));
+ (long) ((5F + ((GT_MetaGenerated_Tool) aStack.getItem()).getToolCombatDamage(aStack)) * 1000F));
aTotalOptimalFlow += GT_Utility.safeInt(
- (long) Math.max(
- Float.MIN_NORMAL,
- ((GT_MetaGenerated_Tool) aStack.getItem()).getToolStats(aStack).getSpeedMultiplier()
- * GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mToolSpeed
- * 50)
- * getSpeedMultiplier());
+ (long) Math.max(
+ Float.MIN_NORMAL,
+ ((GT_MetaGenerated_Tool) aStack.getItem()).getToolStats(aStack)
+ .getSpeedMultiplier() * GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mToolSpeed
+ * 50)
+ * getSpeedMultiplier());
if (aTotalOptimalFlow < 0) {
aTotalOptimalFlow = 100;
}
@@ -582,85 +589,92 @@ public abstract class GregtechMetaTileEntity_LargerTurbineBase extends
int mPollutionReduction = (int) (100 * mufflerReduction);
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 tMaintenance = 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;
StringBuilder aTurbineDamage = new StringBuilder();
for (GT_MetaTileEntity_Hatch_Turbine aHatch : this.getFullTurbineAssemblies()) {
ItemStack aTurbine = aHatch.getTurbine();
tDura = MathUtils.safeInt(
- (long) (100.0f / GT_MetaGenerated_Tool.getToolMaxDamage(aTurbine)
- * (GT_MetaGenerated_Tool.getToolDamage(aTurbine)) + 1));
- aTurbineDamage.append(EnumChatFormatting.RED).append(GT_Utility.formatNumbers(tDura))
- .append(EnumChatFormatting.RESET).append("% | ");
+ (long) (100.0f / GT_MetaGenerated_Tool.getToolMaxDamage(aTurbine)
+ * (GT_MetaGenerated_Tool.getToolDamage(aTurbine)) + 1));
+ aTurbineDamage.append(EnumChatFormatting.RED)
+ .append(GT_Utility.formatNumbers(tDura))
+ .append(EnumChatFormatting.RESET)
+ .append("% | ");
}
long storedEnergy = 0;
long maxEnergy = 0;
for (GT_MetaTileEntity_Hatch_Dynamo tHatch : filterValidMTEs(mDynamoHatches)) {
- storedEnergy += tHatch.getBaseMetaTileEntity().getStoredEU();
- maxEnergy += tHatch.getBaseMetaTileEntity().getEUCapacity();
+ storedEnergy += tHatch.getBaseMetaTileEntity()
+ .getStoredEU();
+ maxEnergy += tHatch.getBaseMetaTileEntity()
+ .getEUCapacity();
}
- boolean aIsSteam = this.getClass().getName().toLowerCase().contains("steam");
+ boolean aIsSteam = this.getClass()
+ .getName()
+ .toLowerCase()
+ .contains("steam");
String[] ret = new String[] {
- // 8 Lines available for information panels
- tRunning + ": "
- + EnumChatFormatting.RED
- + GT_Utility.formatNumbers(((lEUt * mEfficiency) / 10000))
- + EnumChatFormatting.RESET
- + " EU/t",
- tMaintenance,
- StatCollector.translateToLocal("GT5U.turbine.efficiency") + ": "
- + EnumChatFormatting.YELLOW
- + GT_Utility.formatNumbers((mEfficiency / 100F))
- + 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",
- StatCollector.translateToLocal("GT5U.turbine.flow") + ": "
- + EnumChatFormatting.YELLOW
- + GT_Utility.formatNumbers(MathUtils.safeInt((long) realOptFlow))
- + EnumChatFormatting.RESET
- + " L/s"
- + EnumChatFormatting.YELLOW
- + " ("
- + (isLooseMode() ? StatCollector.translateToLocal("GT5U.turbine.loose")
- : StatCollector.translateToLocal("GT5U.turbine.tight"))
- + ")",
- StatCollector.translateToLocal("GT5U.turbine.fuel") + ": "
- + EnumChatFormatting.GOLD
- + GT_Utility.formatNumbers(storedFluid)
- + EnumChatFormatting.RESET
- + "L",
- StatCollector.translateToLocal("GT5U.turbine.dmg") + ": " + aTurbineDamage,
- StatCollector.translateToLocal("GT5U.multiblock.pollution") + ": "
- + EnumChatFormatting.GREEN
- + GT_Utility.formatNumbers(mPollutionReduction)
- + EnumChatFormatting.RESET
- + " %" };
- if (!aIsSteam) ret[4] = StatCollector.translateToLocal("GT5U.turbine.flow") + ": "
+ // 8 Lines available for information panels
+ tRunning + ": "
+ + EnumChatFormatting.RED
+ + GT_Utility.formatNumbers(((lEUt * mEfficiency) / 10000))
+ + EnumChatFormatting.RESET
+ + " EU/t",
+ tMaintenance,
+ StatCollector.translateToLocal("GT5U.turbine.efficiency") + ": "
+ + EnumChatFormatting.YELLOW
+ + GT_Utility.formatNumbers((mEfficiency / 100F))
+ + 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",
+ StatCollector.translateToLocal("GT5U.turbine.flow") + ": "
+ EnumChatFormatting.YELLOW
+ GT_Utility.formatNumbers(MathUtils.safeInt((long) realOptFlow))
+ EnumChatFormatting.RESET
- + " L/t";
+ + " L/s"
+ + EnumChatFormatting.YELLOW
+ + " ("
+ + (isLooseMode() ? StatCollector.translateToLocal("GT5U.turbine.loose")
+ : StatCollector.translateToLocal("GT5U.turbine.tight"))
+ + ")",
+ StatCollector.translateToLocal("GT5U.turbine.fuel") + ": "
+ + EnumChatFormatting.GOLD
+ + GT_Utility.formatNumbers(storedFluid)
+ + EnumChatFormatting.RESET
+ + "L",
+ StatCollector.translateToLocal("GT5U.turbine.dmg") + ": " + aTurbineDamage,
+ StatCollector.translateToLocal("GT5U.multiblock.pollution") + ": "
+ + EnumChatFormatting.GREEN
+ + GT_Utility.formatNumbers(mPollutionReduction)
+ + EnumChatFormatting.RESET
+ + " %" };
+ if (!aIsSteam) ret[4] = StatCollector.translateToLocal("GT5U.turbine.flow") + ": "
+ + EnumChatFormatting.YELLOW
+ + GT_Utility.formatNumbers(MathUtils.safeInt((long) realOptFlow))
+ + EnumChatFormatting.RESET
+ + " L/t";
return ret;
}
@@ -720,10 +734,10 @@ public abstract class GregtechMetaTileEntity_LargerTurbineBase extends
}
public final ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, ForgeDirection side,
- ForgeDirection facing, int aColorIndex, boolean aActive, boolean aRedstone) {
+ ForgeDirection facing, int aColorIndex, boolean aActive, boolean aRedstone) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[1][aColorIndex + 1],
- facing == side ? getFrontFacingTurbineTexture(aActive)
- : Textures.BlockIcons.getCasingTextureForId(getCasingTextureIndex()) };
+ facing == side ? getFrontFacingTurbineTexture(aActive)
+ : Textures.BlockIcons.getCasingTextureForId(getCasingTextureIndex()) };
}
protected ITexture getFrontFacingTurbineTexture(boolean isActive) {
@@ -737,7 +751,8 @@ public abstract class GregtechMetaTileEntity_LargerTurbineBase extends
public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
super.onPostTick(aBaseMetaTileEntity, aTick);
if (aBaseMetaTileEntity.isServerSide()) {
- if (this.maxProgresstime() > 0 || this.getBaseMetaTileEntity().hasWorkJustBeenEnabled()) {
+ if (this.maxProgresstime() > 0 || this.getBaseMetaTileEntity()
+ .hasWorkJustBeenEnabled()) {
enableAllTurbineHatches();
}
if (this.maxProgresstime() <= 0) {
@@ -841,12 +856,14 @@ public abstract class GregtechMetaTileEntity_LargerTurbineBase extends
ampsOnCurrentHatch = (int) Math.min(aDynamo.maxAmperesOut(), aAmpsToInject);
// add full amps
- aDynamo.getBaseMetaTileEntity().increaseStoredEnergyUnits(aVoltage * ampsOnCurrentHatch, false);
+ aDynamo.getBaseMetaTileEntity()
+ .increaseStoredEnergyUnits(aVoltage * ampsOnCurrentHatch, false);
injected += aVoltage * ampsOnCurrentHatch;
// add reminder
if (aRemainder > 0 && ampsOnCurrentHatch < aDynamo.maxAmperesOut()) {
- aDynamo.getBaseMetaTileEntity().increaseStoredEnergyUnits(aRemainder, false);
+ aDynamo.getBaseMetaTileEntity()
+ .increaseStoredEnergyUnits(aRemainder, false);
injected += aRemainder;
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/storage/GregtechMetaTileEntity_PowerSubStationController.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/storage/GregtechMetaTileEntity_PowerSubStationController.java
index 8d56d35265..67244cb399 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/storage/GregtechMetaTileEntity_PowerSubStationController.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/storage/GregtechMetaTileEntity_PowerSubStationController.java
@@ -79,9 +79,8 @@ import gtPlusPlus.preloader.asm.AsmConfig;
import gtPlusPlus.xmod.gregtech.api.gui.GTPP_UITextures;
import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.GregtechMeta_MultiBlockBase;
-public class GregtechMetaTileEntity_PowerSubStationController
- extends GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_PowerSubStationController>
- implements ISurvivalConstructable {
+public class GregtechMetaTileEntity_PowerSubStationController extends
+ GregtechMeta_MultiBlockBase<GregtechMetaTileEntity_PowerSubStationController> implements ISurvivalConstructable {
private static enum TopState {
MayBeTop,
@@ -106,7 +105,7 @@ public class GregtechMetaTileEntity_PowerSubStationController
private static IStructureDefinition<GregtechMetaTileEntity_PowerSubStationController> STRUCTURE_DEFINITION = null;
public GregtechMetaTileEntity_PowerSubStationController(final int aID, final String aName,
- final String aNameRegional) {
+ final String aNameRegional) {
super(aID, aName, aNameRegional);
}
@@ -123,36 +122,38 @@ public class GregtechMetaTileEntity_PowerSubStationController
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
tt.addMachineType(getMachineType())
- .addInfo("Consumes " + this.ENERGY_TAX + "% of the average voltage of all energy type hatches")
- .addInfo("Does not require maintenance")
- .addInfo(
- "Can be built with variable height between " + (CELL_HEIGHT_MIN + 2)
- + "-"
- + (CELL_HEIGHT_MAX + 2)
- + "")
- .addInfo("Hatches can be placed nearly anywhere")
- .addInfo("HV Energy/Dynamo Hatches are the lowest tier you can use")
- .addInfo("Supports voltages >= UHV using MAX tier components.").addSeparator()
- .addController("Bottom Center").addCasingInfoMin("Sub-Station External Casings", 10, false)
- .addDynamoHatch("Any Casing", 1).addEnergyHatch("Any Casing", 1)
- .addSubChannelUsage("capacitor", "Vanadium Capacitor Cell Tier")
- .addSubChannelUsage("height", "Height of structure").toolTipFinisher(CORE.GT_Tooltip_Builder.get());
+ .addInfo("Consumes " + this.ENERGY_TAX + "% of the average voltage of all energy type hatches")
+ .addInfo("Does not require maintenance")
+ .addInfo(
+ "Can be built with variable height between " + (CELL_HEIGHT_MIN + 2) + "-" + (CELL_HEIGHT_MAX + 2) + "")
+ .addInfo("Hatches can be placed nearly anywhere")
+ .addInfo("HV Energy/Dynamo Hatches are the lowest tier you can use")
+ .addInfo("Supports voltages >= UHV using MAX tier components.")
+ .addSeparator()
+ .addController("Bottom Center")
+ .addCasingInfoMin("Sub-Station External Casings", 10, false)
+ .addDynamoHatch("Any Casing", 1)
+ .addEnergyHatch("Any Casing", 1)
+ .addSubChannelUsage("capacitor", "Vanadium Capacitor Cell Tier")
+ .addSubChannelUsage("height", "Height of structure")
+ .toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}
@Override
public ITexture[] getTexture(final IGregTechTileEntity aBaseMetaTileEntity, final ForgeDirection side,
- final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
+ final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
if (side == facing) {
return new ITexture[] { Textures.BlockIcons.getCasingTextureForId(TAE.GTPP_INDEX(24)),
- new GT_RenderedTexture(
- aActive ? Textures.BlockIcons.OVERLAY_FRONT_DISASSEMBLER_ACTIVE
- : Textures.BlockIcons.OVERLAY_FRONT_DISASSEMBLER) };
+ new GT_RenderedTexture(
+ aActive ? Textures.BlockIcons.OVERLAY_FRONT_DISASSEMBLER_ACTIVE
+ : Textures.BlockIcons.OVERLAY_FRONT_DISASSEMBLER) };
}
- if (side == this.getBaseMetaTileEntity().getBackFacing()) {
+ if (side == this.getBaseMetaTileEntity()
+ .getBackFacing()) {
return new ITexture[] { Textures.BlockIcons.getCasingTextureForId(TAE.GTPP_INDEX(24)),
- mIsOutputtingPower ? Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[(int) this.getOutputTier()]
- : Textures.BlockIcons.OVERLAYS_ENERGY_IN_MULTI[(int) this.getInputTier()] };
+ mIsOutputtingPower ? Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[(int) this.getOutputTier()]
+ : Textures.BlockIcons.OVERLAYS_ENERGY_IN_MULTI[(int) this.getInputTier()] };
}
return new ITexture[] { Textures.BlockIcons.getCasingTextureForId(TAE.GTPP_INDEX(23)) };
}
@@ -233,68 +234,66 @@ public class GregtechMetaTileEntity_PowerSubStationController
public IStructureDefinition<GregtechMetaTileEntity_PowerSubStationController> getStructureDefinition() {
if (STRUCTURE_DEFINITION == null) {
STRUCTURE_DEFINITION = StructureDefinition.<GregtechMetaTileEntity_PowerSubStationController>builder()
- .addShape(
- mName + "bottom",
- transpose(new String[][] { { "BB~BB", "BBBBB", "BBBBB", "BBBBB", "BBBBB" } }))
- .addShape(
- mName + "layer",
- transpose(new String[][] { { "CCCCC", "CIIIC", "CIIIC", "CIIIC", "CCCCC" } }))
- .addShape(
- mName + "mid",
- transpose(new String[][] { { "CCCCC", "CHHHC", "CHHHC", "CHHHC", "CCCCC" } }))
- .addShape(
- mName + "top",
- transpose(new String[][] { { "TTTTT", "TTTTT", "TTTTT", "TTTTT", "TTTTT" } }))
- .addElement(
- 'C',
- buildHatchAdder(GregtechMetaTileEntity_PowerSubStationController.class)
- .atLeast(Energy.or(TTEnergy), Dynamo.or(TTDynamo), Maintenance)
- .disallowOnly(ForgeDirection.UP, ForgeDirection.DOWN)
- .casingIndex(TAE.GTPP_INDEX(24)).dot(1).buildAndChain(
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings2Misc, 8))))
- .addElement(
- 'B',
- buildHatchAdder(GregtechMetaTileEntity_PowerSubStationController.class)
- .atLeast(Energy.or(TTEnergy), Dynamo.or(TTDynamo), Maintenance)
- .disallowOnly(ForgeDirection.UP).casingIndex(TAE.GTPP_INDEX(24)).dot(1)
- .buildAndChain(
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings2Misc, 8))))
- .addElement(
- 'T',
- buildHatchAdder(GregtechMetaTileEntity_PowerSubStationController.class)
- .atLeast(Energy.or(TTEnergy), Dynamo.or(TTDynamo), Maintenance)
- .disallowOnly(ForgeDirection.DOWN).casingIndex(TAE.GTPP_INDEX(24)).dot(1)
- .buildAndChain(
- onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings2Misc, 8))))
- .addElement(
- 'I',
- withChannel(
- "cell",
+ .addShape(
+ mName + "bottom",
+ transpose(new String[][] { { "BB~BB", "BBBBB", "BBBBB", "BBBBB", "BBBBB" } }))
+ .addShape(
+ mName + "layer",
+ transpose(new String[][] { { "CCCCC", "CIIIC", "CIIIC", "CIIIC", "CCCCC" } }))
+ .addShape(mName + "mid", transpose(new String[][] { { "CCCCC", "CHHHC", "CHHHC", "CHHHC", "CCCCC" } }))
+ .addShape(mName + "top", transpose(new String[][] { { "TTTTT", "TTTTT", "TTTTT", "TTTTT", "TTTTT" } }))
+ .addElement(
+ 'C',
+ buildHatchAdder(GregtechMetaTileEntity_PowerSubStationController.class)
+ .atLeast(Energy.or(TTEnergy), Dynamo.or(TTDynamo), Maintenance)
+ .disallowOnly(ForgeDirection.UP, ForgeDirection.DOWN)
+ .casingIndex(TAE.GTPP_INDEX(24))
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings2Misc, 8))))
+ .addElement(
+ 'B',
+ buildHatchAdder(GregtechMetaTileEntity_PowerSubStationController.class)
+ .atLeast(Energy.or(TTEnergy), Dynamo.or(TTDynamo), Maintenance)
+ .disallowOnly(ForgeDirection.UP)
+ .casingIndex(TAE.GTPP_INDEX(24))
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings2Misc, 8))))
+ .addElement(
+ 'T',
+ buildHatchAdder(GregtechMetaTileEntity_PowerSubStationController.class)
+ .atLeast(Energy.or(TTEnergy), Dynamo.or(TTDynamo), Maintenance)
+ .disallowOnly(ForgeDirection.DOWN)
+ .casingIndex(TAE.GTPP_INDEX(24))
+ .dot(1)
+ .buildAndChain(onElementPass(x -> ++x.mCasing, ofBlock(ModBlocks.blockCasings2Misc, 8))))
+ .addElement(
+ 'I',
+ withChannel(
+ "cell",
+ ofChain(
+ onlyIf(
+ x -> x.topState != TopState.NotTop,
+ onElementPass(
+ x -> x.topState = TopState.Top,
+ ofHatchAdderOptional(
+ GregtechMetaTileEntity_PowerSubStationController::addPowerSubStationList,
+ TAE.GTPP_INDEX(24),
+ 1,
+ ModBlocks.blockCasings2Misc,
+ 8))),
+ onlyIf(
+ x -> x.topState != TopState.Top,
+ onElementPass(
+ x -> x.topState = TopState.NotTop,
ofChain(
- onlyIf(
- x -> x.topState != TopState.NotTop,
- onElementPass(
- x -> x.topState = TopState.Top,
- ofHatchAdderOptional(
- GregtechMetaTileEntity_PowerSubStationController::addPowerSubStationList,
- TAE.GTPP_INDEX(24),
- 1,
- ModBlocks.blockCasings2Misc,
- 8))),
- onlyIf(
- x -> x.topState != TopState.Top,
- onElementPass(
- x -> x.topState = TopState.NotTop,
- ofChain(
- onElementPass(x -> ++x.cellCount[0], ofCell(4)),
- onElementPass(x -> ++x.cellCount[1], ofCell(5)),
- onElementPass(x -> ++x.cellCount[2], ofCell(6)),
- onElementPass(x -> ++x.cellCount[3], ofCell(7)),
- onElementPass(x -> ++x.cellCount[4], ofCell(8)),
- onElementPass(
- x -> ++x.cellCount[5],
- ofCell(9))))))))
- .addElement('H', ofCell(4)).build();
+ onElementPass(x -> ++x.cellCount[0], ofCell(4)),
+ onElementPass(x -> ++x.cellCount[1], ofCell(5)),
+ onElementPass(x -> ++x.cellCount[2], ofCell(6)),
+ onElementPass(x -> ++x.cellCount[3], ofCell(7)),
+ onElementPass(x -> ++x.cellCount[4], ofCell(8)),
+ onElementPass(x -> ++x.cellCount[5], ofCell(9))))))))
+ .addElement('H', ofCell(4))
+ .build();
}
return STRUCTURE_DEFINITION;
}
@@ -318,50 +317,50 @@ public class GregtechMetaTileEntity_PowerSubStationController
@Override
public boolean spawnHint(T t, World world, int x, int y, int z, ItemStack trigger) {
StructureLibAPI.hintParticle(
- world,
- x,
- y,
- z,
- getBlockFromTier(getIndex(trigger.stackSize)),
- getMetaFromTier(getIndex(trigger.stackSize)));
+ world,
+ x,
+ y,
+ z,
+ getBlockFromTier(getIndex(trigger.stackSize)),
+ getMetaFromTier(getIndex(trigger.stackSize)));
return true;
}
@Override
public boolean placeBlock(T t, World world, int x, int y, int z, ItemStack trigger) {
return world.setBlock(
- x,
- y,
- z,
- getBlockFromTier(getIndex(trigger.stackSize)),
- getMetaFromTier(getIndex(trigger.stackSize)),
- 3);
+ x,
+ y,
+ z,
+ getBlockFromTier(getIndex(trigger.stackSize)),
+ getMetaFromTier(getIndex(trigger.stackSize)),
+ 3);
}
@Nullable
@Override
public BlocksToPlace getBlocksToPlace(T t, World world, int x, int y, int z, ItemStack trigger,
- AutoPlaceEnvironment env) {
+ AutoPlaceEnvironment env) {
return BlocksToPlace.create(getBlockFromTier(trigger.stackSize), getMetaFromTier(trigger.stackSize));
}
@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);
int meta = world.getBlockMetadata(x, y, z);
int tier = getCellTier(block, meta);
if (tier >= 0) return PlaceResult.SKIP;
return StructureUtility.survivalPlaceBlock(
- getBlockFromTier(getIndex(trigger.stackSize)),
- getMetaFromTier(getIndex(trigger.stackSize)),
- world,
- x,
- y,
- z,
- env.getSource(),
- env.getActor(),
- env.getChatter());
+ getBlockFromTier(getIndex(trigger.stackSize)),
+ getMetaFromTier(getIndex(trigger.stackSize)),
+ world,
+ x,
+ y,
+ z,
+ env.getSource(),
+ env.getActor(),
+ env.getChatter());
}
};
}
@@ -578,7 +577,8 @@ public class GregtechMetaTileEntity_PowerSubStationController
return 0;
}
- if (this.getBaseMetaTileEntity().increaseStoredEnergyUnits(voltage, false)) {
+ if (this.getBaseMetaTileEntity()
+ .increaseStoredEnergyUnits(voltage, false)) {
aHatch.setEUVar((stored - voltage));
this.mTotalEnergyAdded += voltage;
return voltage;
@@ -593,8 +593,10 @@ public class GregtechMetaTileEntity_PowerSubStationController
return 0;
}
- if (this.getBaseMetaTileEntity().decreaseStoredEnergyUnits(voltage, false)) {
- aHatch.getBaseMetaTileEntity().increaseStoredEnergyUnits(voltage, false);
+ if (this.getBaseMetaTileEntity()
+ .decreaseStoredEnergyUnits(voltage, false)) {
+ aHatch.getBaseMetaTileEntity()
+ .increaseStoredEnergyUnits(voltage, false);
this.mTotalEnergyConsumed += voltage;
return voltage;
}
@@ -689,53 +691,54 @@ public class GregtechMetaTileEntity_PowerSubStationController
String storedEnergyText;
if (this.getEUVar() > this.mBatteryCapacity) {
storedEnergyText = EnumChatFormatting.RED + GT_Utility.formatNumbers(this.getEUVar())
- + EnumChatFormatting.RESET;
+ + EnumChatFormatting.RESET;
} else {
storedEnergyText = EnumChatFormatting.GREEN + GT_Utility.formatNumbers(this.getEUVar())
- + EnumChatFormatting.RESET;
+ + EnumChatFormatting.RESET;
}
- int errorCode = this.getBaseMetaTileEntity().getErrorDisplayID();
+ int errorCode = this.getBaseMetaTileEntity()
+ .getErrorDisplayID();
boolean mMaint = (errorCode != 0);
return new String[] { "Ergon Energy - District Sub-Station", "Stored EU: " + storedEnergyText,
- "Capacity: " + EnumChatFormatting.YELLOW
- + GT_Utility.formatNumbers(this.maxEUStore())
- + EnumChatFormatting.RESET,
- "Running Costs: " + EnumChatFormatting.RED
- + GT_Utility.formatNumbers(this.computeEnergyTax())
- + EnumChatFormatting.RESET
- + " EU/t",
- "Controller Mode: " + mode,
- "Requires Maintenance: " + (!mMaint ? EnumChatFormatting.GREEN : EnumChatFormatting.RED)
- + mMaint
- + EnumChatFormatting.RESET
- + " | Code: ["
- + (!mMaint ? EnumChatFormatting.GREEN : EnumChatFormatting.RED)
- + errorCode
- + EnumChatFormatting.RESET
- + "]",
- "----------------------", "Stats for Nerds",
- "Average Input: " + EnumChatFormatting.BLUE
- + GT_Utility.formatNumbers(this.getAverageEuAdded())
- + EnumChatFormatting.RESET
- + " EU",
- "Average Output: " + EnumChatFormatting.GOLD
- + GT_Utility.formatNumbers(this.getAverageEuConsumed())
- + EnumChatFormatting.RESET
- + " EU",
- "Total Input: " + EnumChatFormatting.BLUE
- + GT_Utility.formatNumbers(this.mTotalEnergyAdded)
- + EnumChatFormatting.RESET
- + " EU",
- "Total Output: " + EnumChatFormatting.GOLD
- + GT_Utility.formatNumbers(this.mTotalEnergyConsumed)
- + EnumChatFormatting.RESET
- + " EU",
- "Total Costs: " + EnumChatFormatting.RED
- + GT_Utility.formatNumbers(this.mTotalEnergyLost)
- + EnumChatFormatting.RESET
- + " EU", };
+ "Capacity: " + EnumChatFormatting.YELLOW
+ + GT_Utility.formatNumbers(this.maxEUStore())
+ + EnumChatFormatting.RESET,
+ "Running Costs: " + EnumChatFormatting.RED
+ + GT_Utility.formatNumbers(this.computeEnergyTax())
+ + EnumChatFormatting.RESET
+ + " EU/t",
+ "Controller Mode: " + mode,
+ "Requires Maintenance: " + (!mMaint ? EnumChatFormatting.GREEN : EnumChatFormatting.RED)
+ + mMaint
+ + EnumChatFormatting.RESET
+ + " | Code: ["
+ + (!mMaint ? EnumChatFormatting.GREEN : EnumChatFormatting.RED)
+ + errorCode
+ + EnumChatFormatting.RESET
+ + "]",
+ "----------------------", "Stats for Nerds",
+ "Average Input: " + EnumChatFormatting.BLUE
+ + GT_Utility.formatNumbers(this.getAverageEuAdded())
+ + EnumChatFormatting.RESET
+ + " EU",
+ "Average Output: " + EnumChatFormatting.GOLD
+ + GT_Utility.formatNumbers(this.getAverageEuConsumed())
+ + EnumChatFormatting.RESET
+ + " EU",
+ "Total Input: " + EnumChatFormatting.BLUE
+ + GT_Utility.formatNumbers(this.mTotalEnergyAdded)
+ + EnumChatFormatting.RESET
+ + " EU",
+ "Total Output: " + EnumChatFormatting.GOLD
+ + GT_Utility.formatNumbers(this.mTotalEnergyConsumed)
+ + EnumChatFormatting.RESET
+ + " EU",
+ "Total Costs: " + EnumChatFormatting.RED
+ + GT_Utility.formatNumbers(this.mTotalEnergyLost)
+ + EnumChatFormatting.RESET
+ + " EU", };
}
@Override
@@ -772,12 +775,14 @@ public class GregtechMetaTileEntity_PowerSubStationController
@Override
public boolean isInputFacing(ForgeDirection side) {
- return (side == this.getBaseMetaTileEntity().getBackFacing() && !mIsOutputtingPower);
+ return (side == this.getBaseMetaTileEntity()
+ .getBackFacing() && !mIsOutputtingPower);
}
@Override
public boolean isOutputFacing(ForgeDirection side) {
- return (side == this.getBaseMetaTileEntity().getBackFacing() && mIsOutputtingPower);
+ return (side == this.getBaseMetaTileEntity()
+ .getBackFacing() && mIsOutputtingPower);
}
@Override
@@ -836,8 +841,9 @@ public class GregtechMetaTileEntity_PowerSubStationController
@Override
public void addGregTechLogo(ModularWindow.Builder builder) {
builder.widget(
- new DrawableWidget().setDrawable(getGUITextureSet().getGregTechLogo()).setSize(17, 17)
- .setPos(175, 166));
+ new DrawableWidget().setDrawable(getGUITextureSet().getGregTechLogo())
+ .setSize(17, 17)
+ .setPos(175, 166));
}
private long clientEUIn, clientEUOut, clientEULoss, clientEUStored;
@@ -848,64 +854,83 @@ public class GregtechMetaTileEntity_PowerSubStationController
@Override
public void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildContext) {
builder.widget(
- new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SCREEN_BLACK).setPos(4, 4).setSize(149, 149))
- .widget(new SlotWidget(inventoryHandler, 0).setPos(154, 4))
- .widget(new SlotWidget(inventoryHandler, 1).setAccess(true, false).setPos(154, 22))
- .widget(
- SlotGroup.ofItemHandler(new PlayerMainInvWrapper(buildContext.getPlayer().inventory), 9)
- .endAtSlot(8).build().setPos(7, 166))
- .widget(
- TextWidget
- .dynamicString(
- () -> getBaseMetaTileEntity().getErrorDisplayID() == 0
- ? getBaseMetaTileEntity().isActive() ? "Running perfectly"
- : "Turn on with Mallet"
- : "")
- .setSynced(false).setDefaultColor(COLOR_TEXT_WHITE.get()).setPos(10, 8))
- .widget(
- new FakeSyncWidget.BooleanSyncer(
- () -> getBaseMetaTileEntity().isActive(),
- val -> getBaseMetaTileEntity().setActive(val)))
- .widget(
- new FakeSyncWidget.IntegerSyncer(
- () -> getBaseMetaTileEntity().getErrorDisplayID(),
- val -> getBaseMetaTileEntity().setErrorDisplayID(val)))
- .widget(new TextWidget("In").setDefaultColor(COLOR_TEXT_WHITE.get()).setPos(178, 10))
- .widget(new TextWidget("Out").setDefaultColor(COLOR_TEXT_WHITE.get()).setPos(176, 28))
- .widget(new FakeSyncWidget.LongSyncer(this::getAverageEuAdded, val -> clientEUIn = val))
- .widget(
- new TextWidget().setStringSupplier(() -> "Avg In: " + numberFormat.format(clientEUIn) + " EU")
- .setDefaultColor(COLOR_TEXT_WHITE.get()).setPos(10, 20))
- .widget(new FakeSyncWidget.LongSyncer(this::getAverageEuConsumed, val -> clientEUOut = val))
- .widget(
- new TextWidget().setStringSupplier(() -> "Avg Out: " + numberFormat.format(clientEUOut) + " EU")
- .setDefaultColor(COLOR_TEXT_WHITE.get()).setPos(10, 30))
- .widget(new FakeSyncWidget.LongSyncer(this::computeEnergyTax, val -> clientEULoss = val))
- .widget(
- new TextWidget()
- .setStringSupplier(
- () -> "Powerloss: " + numberFormat.format(clientEULoss) + " EU per tick")
- .setDefaultColor(COLOR_TEXT_WHITE.get()).setPos(10, 40))
- .widget(
- new DrawableWidget().setDrawable(GTPP_UITextures.PICTURE_ENERGY_FRAME).setPos(4, 155)
- .setSize(149, 7))
- .widget(new FakeSyncWidget.FloatSyncer(this::getProgress, val -> clientProgress = val))
- .widget(
- new ProgressBar().setProgress(this::getProgress)
- .setTexture(GTPP_UITextures.PROGRESSBAR_PSS_ENERGY, 147)
- .setDirection(ProgressBar.Direction.RIGHT).setPos(5, 156).setSize(147, 5))
- .widget(new TextWidget("Stored:").setDefaultColor(COLOR_TEXT_WHITE.get()).setPos(10, 132))
- .widget(
- new FakeSyncWidget.LongSyncer(
- () -> getBaseMetaTileEntity().getStoredEU(),
- val -> clientEUStored = val))
- .widget(new TextWidget().setTextSupplier(() -> {
- int colorScale = (int) (clientProgress * 100 * 2.55);
- return new Text(numberFormat.format(clientEUStored) + " EU")
- .color(Utils.rgbtoHexValue((255 - colorScale), colorScale, 0));
- }).setPos(10, 142)).widget(
- new TextWidget().setStringSupplier(() -> numberFormat.format(clientProgress * 100) + "%")
- .setDefaultColor(COLOR_TEXT_WHITE.get()).setPos(70, 155));
+ new DrawableWidget().setDrawable(GT_UITextures.PICTURE_SCREEN_BLACK)
+ .setPos(4, 4)
+ .setSize(149, 149))
+ .widget(new SlotWidget(inventoryHandler, 0).setPos(154, 4))
+ .widget(
+ new SlotWidget(inventoryHandler, 1).setAccess(true, false)
+ .setPos(154, 22))
+ .widget(
+ SlotGroup.ofItemHandler(new PlayerMainInvWrapper(buildContext.getPlayer().inventory), 9)
+ .endAtSlot(8)
+ .build()
+ .setPos(7, 166))
+ .widget(
+ TextWidget
+ .dynamicString(
+ () -> getBaseMetaTileEntity().getErrorDisplayID() == 0
+ ? getBaseMetaTileEntity().isActive() ? "Running perfectly" : "Turn on with Mallet"
+ : "")
+ .setSynced(false)
+ .setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setPos(10, 8))
+ .widget(
+ new FakeSyncWidget.BooleanSyncer(
+ () -> getBaseMetaTileEntity().isActive(),
+ val -> getBaseMetaTileEntity().setActive(val)))
+ .widget(
+ new FakeSyncWidget.IntegerSyncer(
+ () -> getBaseMetaTileEntity().getErrorDisplayID(),
+ val -> getBaseMetaTileEntity().setErrorDisplayID(val)))
+ .widget(
+ new TextWidget("In").setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setPos(178, 10))
+ .widget(
+ new TextWidget("Out").setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setPos(176, 28))
+ .widget(new FakeSyncWidget.LongSyncer(this::getAverageEuAdded, val -> clientEUIn = val))
+ .widget(
+ new TextWidget().setStringSupplier(() -> "Avg In: " + numberFormat.format(clientEUIn) + " EU")
+ .setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setPos(10, 20))
+ .widget(new FakeSyncWidget.LongSyncer(this::getAverageEuConsumed, val -> clientEUOut = val))
+ .widget(
+ new TextWidget().setStringSupplier(() -> "Avg Out: " + numberFormat.format(clientEUOut) + " EU")
+ .setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setPos(10, 30))
+ .widget(new FakeSyncWidget.LongSyncer(this::computeEnergyTax, val -> clientEULoss = val))
+ .widget(
+ new TextWidget()
+ .setStringSupplier(() -> "Powerloss: " + numberFormat.format(clientEULoss) + " EU per tick")
+ .setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setPos(10, 40))
+ .widget(
+ new DrawableWidget().setDrawable(GTPP_UITextures.PICTURE_ENERGY_FRAME)
+ .setPos(4, 155)
+ .setSize(149, 7))
+ .widget(new FakeSyncWidget.FloatSyncer(this::getProgress, val -> clientProgress = val))
+ .widget(
+ new ProgressBar().setProgress(this::getProgress)
+ .setTexture(GTPP_UITextures.PROGRESSBAR_PSS_ENERGY, 147)
+ .setDirection(ProgressBar.Direction.RIGHT)
+ .setPos(5, 156)
+ .setSize(147, 5))
+ .widget(
+ new TextWidget("Stored:").setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setPos(10, 132))
+ .widget(
+ new FakeSyncWidget.LongSyncer(() -> getBaseMetaTileEntity().getStoredEU(), val -> clientEUStored = val))
+ .widget(new TextWidget().setTextSupplier(() -> {
+ int colorScale = (int) (clientProgress * 100 * 2.55);
+ return new Text(numberFormat.format(clientEUStored) + " EU")
+ .color(Utils.rgbtoHexValue((255 - colorScale), colorScale, 0));
+ })
+ .setPos(10, 142))
+ .widget(
+ new TextWidget().setStringSupplier(() -> numberFormat.format(clientProgress * 100) + "%")
+ .setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setPos(70, 155));
}
private float getProgress() {
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/misc/TileEntitySolarHeater.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/misc/TileEntitySolarHeater.java
index 720fcbffff..141f4bbc43 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/misc/TileEntitySolarHeater.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/misc/TileEntitySolarHeater.java
@@ -27,12 +27,12 @@ public class TileEntitySolarHeater extends GT_MetaTileEntity_TieredMachineBlock
private Byte mRequiredFacing;
public TileEntitySolarHeater(final int aID, final String aName, final String aNameRegional, final int aTier,
- final String aDescription, final int aSlotCount) {
+ final String aDescription, final int aSlotCount) {
super(aID, aName, aNameRegional, aTier, aSlotCount, aDescription);
}
public TileEntitySolarHeater(final String aName, final int aTier, final String[] aDescription,
- final ITexture[][][] aTextures, final int aSlotCount) {
+ final ITexture[][][] aTextures, final int aSlotCount) {
super(aName, aTier, aSlotCount, aDescription, aTextures);
}
@@ -61,17 +61,15 @@ public class TileEntitySolarHeater extends GT_MetaTileEntity_TieredMachineBlock
@Override
public ITexture[] getTexture(final IGregTechTileEntity aBaseMetaTileEntity, final ForgeDirection side,
- final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
- return this.mTextures[(aActive ? 5 : 0)
- + (side == facing ? 0
- : side == facing.getOpposite() ? 1
- : side == ForgeDirection.DOWN ? 2 : side == ForgeDirection.UP ? 3 : 4)][aColorIndex
- + 1];
+ final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
+ return this.mTextures[(aActive ? 5 : 0) + (side == facing ? 0
+ : side == facing.getOpposite() ? 1
+ : side == ForgeDirection.DOWN ? 2 : side == ForgeDirection.UP ? 3 : 4)][aColorIndex + 1];
}
public ITexture[] getFront(final byte aColor) {
return new ITexture[] { new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Top),
- new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL_IV) };
+ new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL_IV) };
}
public ITexture[] getBack(final byte aColor) {
@@ -84,17 +82,17 @@ public class TileEntitySolarHeater extends GT_MetaTileEntity_TieredMachineBlock
public ITexture[] getTop(final byte aColor) {
return new ITexture[] { new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Top),
- new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL_LuV) };
+ new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL_LuV) };
}
public ITexture[] getSides(final byte aColor) {
return new ITexture[] { new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Top),
- new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL_IV) };
+ new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL_IV) };
}
public ITexture[] getFrontActive(final byte aColor) {
return new ITexture[] { new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Top),
- new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL_IV) };
+ new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL_IV) };
}
public ITexture[] getBackActive(final byte aColor) {
@@ -107,12 +105,12 @@ public class TileEntitySolarHeater extends GT_MetaTileEntity_TieredMachineBlock
public ITexture[] getTopActive(final byte aColor) {
return new ITexture[] { new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Top),
- new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL_LuV) };
+ new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL_LuV) };
}
public ITexture[] getSidesActive(final byte aColor) {
return new ITexture[] { new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Simple_Top),
- new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL_IV) };
+ new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL_IV) };
}
@Override
@@ -122,13 +120,13 @@ public class TileEntitySolarHeater extends GT_MetaTileEntity_TieredMachineBlock
@Override
public boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
return false;
}
@Override
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
return false;
}
@@ -268,10 +266,15 @@ public class TileEntitySolarHeater extends GT_MetaTileEntity_TieredMachineBlock
}
public boolean canSeeSky() {
- if (this.getBaseMetaTileEntity().getWorld().canBlockSeeTheSky(
- this.getBaseMetaTileEntity().getXCoord(),
- this.getBaseMetaTileEntity().getYCoord() + 1,
- this.getBaseMetaTileEntity().getZCoord())) {
+ if (this.getBaseMetaTileEntity()
+ .getWorld()
+ .canBlockSeeTheSky(
+ this.getBaseMetaTileEntity()
+ .getXCoord(),
+ this.getBaseMetaTileEntity()
+ .getYCoord() + 1,
+ this.getBaseMetaTileEntity()
+ .getZCoord())) {
return true;
}
return false;
@@ -279,9 +282,12 @@ public class TileEntitySolarHeater extends GT_MetaTileEntity_TieredMachineBlock
public boolean setSolarTower(GregtechMetaTileEntity_SolarTower aTowerTile) {
if (!hasSolarTower()) {
- this.mTX = aTowerTile.getBaseMetaTileEntity().getXCoord();
- this.mTY = (int) aTowerTile.getBaseMetaTileEntity().getYCoord();
- this.mTZ = aTowerTile.getBaseMetaTileEntity().getZCoord();
+ this.mTX = aTowerTile.getBaseMetaTileEntity()
+ .getXCoord();
+ this.mTY = (int) aTowerTile.getBaseMetaTileEntity()
+ .getYCoord();
+ this.mTZ = aTowerTile.getBaseMetaTileEntity()
+ .getZCoord();
this.mHasTower = true;
this.mTower = aTowerTile;
return true;
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/GT_MetaTileEntity_TieredChest.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/GT_MetaTileEntity_TieredChest.java
index 41262b46ff..07a63a6ba4 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/GT_MetaTileEntity_TieredChest.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/GT_MetaTileEntity_TieredChest.java
@@ -34,13 +34,13 @@ public class GT_MetaTileEntity_TieredChest extends GT_MetaTileEntity_TieredMachi
public GT_MetaTileEntity_TieredChest(int aID, String aName, String aNameRegional, int aTier) {
super(
- aID,
- aName,
- aNameRegional,
- aTier,
- 3,
- "This Chest stores " + (int) (Math.pow(6.0D, (double) aTier) * mStorageFactor) + " Items",
- new ITexture[0]);
+ aID,
+ aName,
+ aNameRegional,
+ aTier,
+ 3,
+ "This Chest stores " + (int) (Math.pow(6.0D, (double) aTier) * mStorageFactor) + " Items",
+ new ITexture[0]);
}
public GT_MetaTileEntity_TieredChest(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures) {
@@ -84,7 +84,10 @@ public class GT_MetaTileEntity_TieredChest extends GT_MetaTileEntity_TieredMachi
@Override
public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTimer) {
- if (this.getBaseMetaTileEntity().isServerSide() && this.getBaseMetaTileEntity().isAllowedToWork()) {
+ if (this.getBaseMetaTileEntity()
+ .isServerSide()
+ && this.getBaseMetaTileEntity()
+ .isAllowedToWork()) {
if (this.getItemCount() <= 0) {
this.mItemStack = null;
this.mItemCount = 0;
@@ -95,7 +98,7 @@ public class GT_MetaTileEntity_TieredChest extends GT_MetaTileEntity_TieredMachi
}
if (this.mInventory[0] != null && this.mItemCount < this.getMaxItemCount()
- && GT_Utility.areStacksEqual(this.mInventory[0], this.mItemStack)) {
+ && GT_Utility.areStacksEqual(this.mInventory[0], this.mItemStack)) {
this.mItemCount += this.mInventory[0].stackSize;
if (this.mItemCount > this.getMaxItemCount()) {
this.mInventory[0].stackSize = this.mItemCount - this.getMaxItemCount();
@@ -110,13 +113,12 @@ public class GT_MetaTileEntity_TieredChest extends GT_MetaTileEntity_TieredMachi
this.mInventory[1].stackSize = Math.min(this.mItemStack.getMaxStackSize(), this.mItemCount);
this.mItemCount -= this.mInventory[1].stackSize;
} else if (this.mItemCount > 0 && GT_Utility.areStacksEqual(this.mInventory[1], this.mItemStack)
- && this.mInventory[1].getMaxStackSize() > this.mInventory[1].stackSize) {
- int tmp = Math.min(
- this.mItemCount,
- this.mInventory[1].getMaxStackSize() - this.mInventory[1].stackSize);
- this.mInventory[1].stackSize += tmp;
- this.mItemCount -= tmp;
- }
+ && this.mInventory[1].getMaxStackSize() > this.mInventory[1].stackSize) {
+ int tmp = Math
+ .min(this.mItemCount, this.mInventory[1].getMaxStackSize() - this.mInventory[1].stackSize);
+ this.mInventory[1].stackSize += tmp;
+ this.mItemCount -= tmp;
+ }
if (this.mItemStack != null) {
this.mInventory[2] = this.mItemStack.copy();
@@ -139,7 +141,7 @@ public class GT_MetaTileEntity_TieredChest extends GT_MetaTileEntity_TieredMachi
@Override
public int getProgresstime() {
return this.mItemCount + (this.mInventory[0] == null ? 0 : this.mInventory[0].stackSize)
- + (this.mInventory[1] == null ? 0 : this.mInventory[1].stackSize);
+ + (this.mInventory[1] == null ? 0 : this.mInventory[1].stackSize);
}
@Override
@@ -153,22 +155,22 @@ public class GT_MetaTileEntity_TieredChest extends GT_MetaTileEntity_TieredMachi
}
public boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
return aIndex == 1;
}
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
return aIndex == 0 && (this.mInventory[0] == null || GT_Utility.areStacksEqual(this.mInventory[0], aStack));
}
@Override
public String[] getInfoData() {
return this.mItemStack == null
- ? new String[] { "Super Storage Chest", "Stored Items:", "No Items", Integer.toString(0),
- Integer.toString(this.getMaxItemCount()) }
- : new String[] { "Super Storage Chest", "Stored Items:", this.mItemStack.getDisplayName(),
- Integer.toString(this.mItemCount), Integer.toString(this.getMaxItemCount()) };
+ ? new String[] { "Super Storage Chest", "Stored Items:", "No Items", Integer.toString(0),
+ Integer.toString(this.getMaxItemCount()) }
+ : new String[] { "Super Storage Chest", "Stored Items:", this.mItemStack.getDisplayName(),
+ Integer.toString(this.mItemCount), Integer.toString(this.getMaxItemCount()) };
}
@Override
@@ -196,14 +198,14 @@ public class GT_MetaTileEntity_TieredChest extends GT_MetaTileEntity_TieredMachi
}
public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, ForgeDirection side, ForgeDirection facing,
- int aColorIndex, boolean aActive, boolean aRedstone) {
+ int aColorIndex, boolean aActive, boolean aRedstone) {
return aBaseMetaTileEntity.getFrontFacing() == ForgeDirection.DOWN && side == ForgeDirection.WEST
+ ? new ITexture[] { BlockIcons.MACHINE_CASINGS[this.mTier][aColorIndex + 1],
+ new GT_RenderedTexture(BlockIcons.OVERLAY_QCHEST) }
+ : (side == aBaseMetaTileEntity.getFrontFacing()
? new ITexture[] { BlockIcons.MACHINE_CASINGS[this.mTier][aColorIndex + 1],
- new GT_RenderedTexture(BlockIcons.OVERLAY_QCHEST) }
- : (side == aBaseMetaTileEntity.getFrontFacing()
- ? new ITexture[] { BlockIcons.MACHINE_CASINGS[this.mTier][aColorIndex + 1],
- new GT_RenderedTexture(BlockIcons.OVERLAY_QCHEST) }
- : new ITexture[] { BlockIcons.MACHINE_CASINGS[this.mTier][aColorIndex + 1] });
+ new GT_RenderedTexture(BlockIcons.OVERLAY_QCHEST) }
+ : new ITexture[] { BlockIcons.MACHINE_CASINGS[this.mTier][aColorIndex + 1] });
}
@Override
@@ -221,20 +223,28 @@ public class GT_MetaTileEntity_TieredChest extends GT_MetaTileEntity_TieredMachi
@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(
- new TextWidget().setStringSupplier(() -> numberFormat.format(mItemCount))
- .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(
+ new TextWidget().setStringSupplier(() -> numberFormat.format(mItemCount))
+ .setDefaultColor(COLOR_TEXT_WHITE.get())
+ .setPos(10, 30));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/GT_MetaTileEntity_TieredTank.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/GT_MetaTileEntity_TieredTank.java
index e360f1d4b7..a9fc7a3fd4 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/GT_MetaTileEntity_TieredTank.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/GT_MetaTileEntity_TieredTank.java
@@ -28,18 +28,18 @@ import gtPlusPlus.core.lib.CORE;
public class GT_MetaTileEntity_TieredTank extends GT_MetaTileEntity_BasicTank {
public GT_MetaTileEntity_TieredTank(final int aID, final String aName, final String aNameRegional,
- final int aTier) {
+ final int aTier) {
super(
- aID,
- aName,
- aNameRegional,
- aTier,
- 3,
- "Stores " + GT_Utility.formatNumbers(((int) (Math.pow(2, aTier) * 32000))) + "L of fluid");
+ aID,
+ aName,
+ aNameRegional,
+ aTier,
+ 3,
+ "Stores " + GT_Utility.formatNumbers(((int) (Math.pow(2, aTier) * 32000))) + "L of fluid");
}
public GT_MetaTileEntity_TieredTank(final String aName, final int aTier, final String[] aDescription,
- final ITexture[][][] aTextures) {
+ final ITexture[][][] aTextures) {
super(aName, aTier, 3, aDescription, aTextures);
}
@@ -61,35 +61,35 @@ public class GT_MetaTileEntity_TieredTank extends GT_MetaTileEntity_BasicTank {
@Override
public ITexture[] getTexture(final IGregTechTileEntity aBaseMetaTileEntity, final ForgeDirection side,
- final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
+ final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
return side == ForgeDirection.UP
- ? new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColorIndex + 1],
- new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_POTIONBREWER_ACTIVE) }
- : new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColorIndex + 1],
- new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_POTIONBREWER) };
+ ? new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColorIndex + 1],
+ new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_POTIONBREWER_ACTIVE) }
+ : new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColorIndex + 1],
+ new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_POTIONBREWER) };
}
@Override
public void addAdditionalTooltipInformation(ItemStack stack, List<String> tooltip) {
if (stack.hasTagCompound() && stack.stackTagCompound.hasKey("mFluid")) {
final FluidStack tContents = FluidStack
- .loadFluidStackFromNBT(stack.stackTagCompound.getCompoundTag("mFluid"));
+ .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);
}
}
}
@@ -139,10 +139,10 @@ public class GT_MetaTileEntity_TieredTank extends GT_MetaTileEntity_BasicTank {
if (this.mFluid == null) {
return new String[] { GT_Values.VOLTAGE_NAMES[this.mTier] + " Fluid Tank", "Stored Fluid:", "No Fluid",
- 0 + "L", this.getCapacity() + "L" };
+ 0 + "L", this.getCapacity() + "L" };
}
return new String[] { GT_Values.VOLTAGE_NAMES[this.mTier] + " Fluid Tank", "Stored Fluid:",
- this.mFluid.getLocalizedName(), this.mFluid.amount + "L", this.getCapacity() + "L" };
+ this.mFluid.getLocalizedName(), this.mFluid.amount + "L", this.getCapacity() + "L" };
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/GregtechMetaEnergyBuffer.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/GregtechMetaEnergyBuffer.java
index 7d87d186b5..17b2d77756 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/GregtechMetaEnergyBuffer.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/GregtechMetaEnergyBuffer.java
@@ -26,24 +26,25 @@ public class GregtechMetaEnergyBuffer extends GregtechMetaTileEntity {
protected byte aCurrentOutputAmperage = 4;
public GregtechMetaEnergyBuffer(final int aID, final String aName, final String aNameRegional, final int aTier,
- final String aDescription, final int aSlotCount) {
+ final String aDescription, final int aSlotCount) {
super(aID, aName, aNameRegional, aTier, aSlotCount, aDescription);
}
public GregtechMetaEnergyBuffer(final String aName, final int aTier, final String aDescription,
- final ITexture[][][] aTextures, final int aSlotCount) {
+ final ITexture[][][] aTextures, final int aSlotCount) {
super(aName, aTier, aSlotCount, aDescription, aTextures);
}
@Override
public String[] getDescription() {
return new String[] { this.mDescription, "Defaults 4A In/Out", "Change output Amperage with a screwdriver",
- "Now Portable!", CORE.GT_Tooltip.get() };
+ "Now Portable!", CORE.GT_Tooltip.get() };
}
@Override
public boolean allowCoverOnSide(ForgeDirection side, GT_ItemStack aCover) {
- if (side != this.getBaseMetaTileEntity().getFrontFacing()) {
+ if (side != this.getBaseMetaTileEntity()
+ .getFrontFacing()) {
return true;
}
return super.allowCoverOnSide(side, aCover);
@@ -73,72 +74,70 @@ public class GregtechMetaEnergyBuffer extends GregtechMetaTileEntity {
@Override
public ITexture[] getTexture(final IGregTechTileEntity aBaseMetaTileEntity, final ForgeDirection side,
- final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
- return this.mTextures[(aActive ? 5 : 0)
- + (side == facing ? 0
- : side == facing.getOpposite() ? 1
- : side == ForgeDirection.DOWN ? 2 : side == ForgeDirection.UP ? 3 : 4)][aColorIndex
- + 1];
+ final ForgeDirection facing, final int aColorIndex, final boolean aActive, final boolean aRedstone) {
+ return this.mTextures[(aActive ? 5 : 0) + (side == facing ? 0
+ : side == facing.getOpposite() ? 1
+ : side == ForgeDirection.DOWN ? 2 : side == ForgeDirection.UP ? 3 : 4)][aColorIndex + 1];
}
public ITexture[] getFront(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[this.mTier] };
+ Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[this.mTier] };
}
public ITexture[] getBack(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Dimensional_Orange) };
+ new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Dimensional_Orange) };
}
public ITexture[] getBottom(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Dimensional_Orange) };
+ new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Dimensional_Orange) };
}
public ITexture[] getTop(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Screen_Logo) };
+ new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Screen_Logo) };
}
public ITexture[] getSides(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Dimensional_Orange) };
+ new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Dimensional_Orange) };
}
public ITexture[] getFrontActive(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[this.mTier] };
+ Textures.BlockIcons.OVERLAYS_ENERGY_OUT_MULTI[this.mTier] };
}
public ITexture[] getBackActive(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Dimensional_Orange) };
+ new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Dimensional_Orange) };
}
public ITexture[] getBottomActive(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Dimensional_Orange) };
+ new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Dimensional_Orange) };
}
public ITexture[] getTopActive(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Screen_Logo) };
+ new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Screen_Logo) };
}
public ITexture[] getSidesActive(final byte aColor) {
return new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Dimensional_Orange) };
+ new GT_RenderedTexture(TexturesGtBlock.Overlay_Machine_Dimensional_Orange) };
}
@Override
public IMetaTileEntity newMetaEntity(final IGregTechTileEntity aTileEntity) {
return new GregtechMetaEnergyBuffer(
- this.mName,
- this.mTier,
- this.mDescription,
- this.mTextures,
- this.mInventory.length);
+ this.mName,
+ this.mTier,
+ this.mDescription,
+ this.mTextures,
+ this.mInventory.length);
}
@Override
@@ -173,12 +172,14 @@ public class GregtechMetaEnergyBuffer extends GregtechMetaTileEntity {
@Override
public boolean isInputFacing(final ForgeDirection side) {
- return side != this.getBaseMetaTileEntity().getFrontFacing();
+ return side != this.getBaseMetaTileEntity()
+ .getFrontFacing();
}
@Override
public boolean isOutputFacing(final ForgeDirection side) {
- return side == this.getBaseMetaTileEntity().getFrontFacing();
+ return side == this.getBaseMetaTileEntity()
+ .getFrontFacing();
}
@Override
@@ -238,12 +239,14 @@ public class GregtechMetaEnergyBuffer extends GregtechMetaTileEntity {
@Override
public int getProgresstime() {
- return (int) this.getBaseMetaTileEntity().getUniversalEnergyStored();
+ return (int) this.getBaseMetaTileEntity()
+ .getUniversalEnergyStored();
}
@Override
public int maxProgresstime() {
- return (int) this.getBaseMetaTileEntity().getUniversalEnergyCapacity();
+ return (int) this.getBaseMetaTileEntity()
+ .getUniversalEnergyCapacity();
}
@Override
@@ -254,7 +257,8 @@ public class GregtechMetaEnergyBuffer extends GregtechMetaTileEntity {
@Override
public void saveNBTData(final NBTTagCompound aNBT) {
aNBT.setByte("aCurrentOutputAmperage", aCurrentOutputAmperage);
- long aEU = this.getBaseMetaTileEntity().getStoredEU();
+ long aEU = this.getBaseMetaTileEntity()
+ .getStoredEU();
if (aEU > 0) {
aNBT.setLong("aStoredEU", aEU);
if (aNBT.hasKey("aStoredEU")) {
@@ -284,13 +288,13 @@ public class GregtechMetaEnergyBuffer extends GregtechMetaTileEntity {
}
protected void showEnergy(final World worldIn, final EntityPlayer playerIn) {
- final long tempStorage = this.getBaseMetaTileEntity().getStoredEU();
+ final long tempStorage = this.getBaseMetaTileEntity()
+ .getStoredEU();
final double c = ((double) tempStorage / this.maxEUStore()) * 100;
final double roundOff = Math.round(c * 100.00) / 100.00;
PlayerUtils.messagePlayer(
- playerIn,
- "Energy: " + GT_Utility
- .formatNumbers(tempStorage) + " EU at " + V[this.mTier] + "v (" + roundOff + "%)");
+ playerIn,
+ "Energy: " + GT_Utility.formatNumbers(tempStorage) + " EU at " + V[this.mTier] + "v (" + roundOff + "%)");
PlayerUtils.messagePlayer(playerIn, "Amperage: " + GT_Utility.formatNumbers(maxAmperesOut()) + "A");
}
// Utils.LOG_WARNING("Begin Show Energy");
@@ -310,20 +314,24 @@ public class GregtechMetaEnergyBuffer extends GregtechMetaTileEntity {
@Override
public boolean allowPullStack(final IGregTechTileEntity aBaseMetaTileEntity, final int aIndex,
- final ForgeDirection side, final ItemStack aStack) {
+ final ForgeDirection side, final ItemStack aStack) {
return false;
}
@Override
public boolean allowPutStack(final IGregTechTileEntity aBaseMetaTileEntity, final int aIndex,
- final ForgeDirection side, final ItemStack aStack) {
+ final ForgeDirection side, final ItemStack aStack) {
return false;
}
@Override
public String[] getInfoData() {
- String cur = GT_Utility.formatNumbers(this.getBaseMetaTileEntity().getStoredEU());
- String max = GT_Utility.formatNumbers(this.getBaseMetaTileEntity().getEUCapacity());
+ String cur = GT_Utility.formatNumbers(
+ this.getBaseMetaTileEntity()
+ .getStoredEU());
+ String max = GT_Utility.formatNumbers(
+ this.getBaseMetaTileEntity()
+ .getEUCapacity());
// Right-align current storage with maximum storage
String fmt = String.format("%%%ds", max.length());
@@ -409,7 +417,8 @@ public class GregtechMetaEnergyBuffer extends GregtechMetaTileEntity {
@Override
public void setItemNBT(NBTTagCompound aNBT) {
aNBT.setByte("aCurrentOutputAmperage", aCurrentOutputAmperage);
- long aEU = this.getBaseMetaTileEntity().getStoredEU();
+ long aEU = this.getBaseMetaTileEntity()
+ .getStoredEU();
if (aEU > 0) {
aNBT.setLong("aStoredEU", aEU);
if (aNBT.hasKey("aStoredEU")) {
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/creative/GT_MetaTileEntity_InfiniteItemHolder.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/creative/GT_MetaTileEntity_InfiniteItemHolder.java
index 53892cd841..2dca8d5c30 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/creative/GT_MetaTileEntity_InfiniteItemHolder.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/creative/GT_MetaTileEntity_InfiniteItemHolder.java
@@ -18,7 +18,7 @@ public class GT_MetaTileEntity_InfiniteItemHolder extends GT_MetaTileEntity_Tier
}
public GT_MetaTileEntity_InfiniteItemHolder(String aName, int aTier, String[] aDescription,
- ITexture[][][] aTextures) {
+ ITexture[][][] aTextures) {
super(aName, aTier, aDescription, aTextures);
}
@@ -31,12 +31,13 @@ public class GT_MetaTileEntity_InfiniteItemHolder extends GT_MetaTileEntity_Tier
if (!KeyboardUtils.isShiftKeyDown()) {
if (this.mItemStack == null) {
if (aPlayer.getHeldItem() != null) {
- this.mItemStack = aPlayer.getHeldItem().copy();
+ this.mItemStack = aPlayer.getHeldItem()
+ .copy();
this.mItemCount = Short.MAX_VALUE;
aPlayer.setCurrentItemOrArmor(0, null);
PlayerUtils.messagePlayer(
- aPlayer,
- "Now holding " + this.mItemStack.getDisplayName() + " x" + Short.MAX_VALUE + ".");
+ aPlayer,
+ "Now holding " + this.mItemStack.getDisplayName() + " x" + Short.MAX_VALUE + ".");
return true;
}
} else {
@@ -51,10 +52,10 @@ public class GT_MetaTileEntity_InfiniteItemHolder extends GT_MetaTileEntity_Tier
}
PlayerUtils.messagePlayer(
- aPlayer,
- "Currently holding: " + (this.mItemStack != null ? this.mItemStack.getDisplayName() : "Nothing")
- + " x"
- + this.mItemCount);
+ aPlayer,
+ "Currently holding: " + (this.mItemStack != null ? this.mItemStack.getDisplayName() : "Nothing")
+ + " x"
+ + this.mItemCount);
return true;
// return super.onRightclick(aBaseMetaTileEntity, aPlayer);
}
@@ -74,13 +75,13 @@ public class GT_MetaTileEntity_InfiniteItemHolder extends GT_MetaTileEntity_Tier
@Override
public boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
return true;
}
@Override
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, ForgeDirection side,
- ItemStack aStack) {
+ ItemStack aStack) {
return false;
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tools/TOOL_Gregtech_AngleGrinder.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tools/TOOL_Gregtech_AngleGrinder.java
index 1dbe200f6f..6af3a61487 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tools/TOOL_Gregtech_AngleGrinder.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tools/TOOL_Gregtech_AngleGrinder.java
@@ -28,12 +28,13 @@ import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtTools;
public class TOOL_Gregtech_AngleGrinder extends GT_Tool {
public static final List<String> mEffectiveList = Arrays
- .asList(new String[] { EntityIronGolem.class.getName(), "EntityTowerGuardian" });
+ .asList(new String[] { EntityIronGolem.class.getName(), "EntityTowerGuardian" });
@Override
public float getNormalDamageAgainstEntity(final float aOriginalDamage, final Entity aEntity, final ItemStack aStack,
- final EntityPlayer aPlayer) {
- String tName = aEntity.getClass().getName();
+ final EntityPlayer aPlayer) {
+ String tName = aEntity.getClass()
+ .getName();
tName = tName.substring(tName.lastIndexOf(".") + 1);
return (mEffectiveList.contains(tName)) || (tName.contains("Golem")) ? aOriginalDamage * 2.0F : aOriginalDamage;
}
@@ -121,8 +122,8 @@ public class TOOL_Gregtech_AngleGrinder extends GT_Tool {
@Override
public int convertBlockDrops(final List<ItemStack> aDrops, final ItemStack aStack, final EntityPlayer aPlayer,
- final Block aBlock, final int aX, final int aY, final int aZ, final byte aMetaData, final int aFortune,
- final boolean aSilkTouch, final BlockEvent.HarvestDropsEvent aEvent) {
+ final Block aBlock, final int aX, final int aY, final int aZ, final byte aMetaData, final int aFortune,
+ final boolean aSilkTouch, final BlockEvent.HarvestDropsEvent aEvent) {
return 0;
}
@@ -154,12 +155,12 @@ public class TOOL_Gregtech_AngleGrinder extends GT_Tool {
@Override
public IChatComponent getDeathMessage(final EntityLivingBase aPlayer, final EntityLivingBase aEntity) {
return new ChatComponentText(
- EnumChatFormatting.RED + aEntity.getCommandSenderName()
- + EnumChatFormatting.WHITE
- + " has been Ground out of existence by "
- + EnumChatFormatting.GREEN
- + aPlayer.getCommandSenderName()
- + EnumChatFormatting.WHITE);
+ EnumChatFormatting.RED + aEntity.getCommandSenderName()
+ + EnumChatFormatting.WHITE
+ + " has been Ground out of existence by "
+ + EnumChatFormatting.GREEN
+ + aPlayer.getCommandSenderName()
+ + EnumChatFormatting.WHITE);
}
@Override
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tools/TOOL_Gregtech_ElectricSnips.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tools/TOOL_Gregtech_ElectricSnips.java
index fc9acdb3c8..25ad03548a 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tools/TOOL_Gregtech_ElectricSnips.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tools/TOOL_Gregtech_ElectricSnips.java
@@ -86,11 +86,11 @@ public class TOOL_Gregtech_ElectricSnips extends GT_Tool_WireCutter {
@Override
public IChatComponent getDeathMessage(final EntityLivingBase aPlayer, final EntityLivingBase aEntity) {
return new ChatComponentText(
- EnumChatFormatting.RED + aEntity.getCommandSenderName()
- + EnumChatFormatting.WHITE
- + " has been Snipped out of existence by "
- + EnumChatFormatting.GREEN
- + aPlayer.getCommandSenderName()
- + EnumChatFormatting.WHITE);
+ EnumChatFormatting.RED + aEntity.getCommandSenderName()
+ + EnumChatFormatting.WHITE
+ + " has been Snipped out of existence by "
+ + EnumChatFormatting.GREEN
+ + aPlayer.getCommandSenderName()
+ + EnumChatFormatting.WHITE);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/ProcessingAngleGrinder.java b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/ProcessingAngleGrinder.java
index be4accba19..e2723e5248 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/ProcessingAngleGrinder.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/ProcessingAngleGrinder.java
@@ -27,18 +27,18 @@ public class ProcessingAngleGrinder implements Interface_OreRecipeRegistrator, R
@Override
public void registerOre(final GregtechOrePrefixes aPrefix, final Materials aMaterial, final String aOreDictName,
- final String aModName, final ItemStack aStack) {
+ final String aModName, final ItemStack aStack) {
if ((aMaterial != Materials.Stone) && (aMaterial != Materials.Flint)) {
if (aMaterial != Materials.Rubber) {
if ((!aMaterial.contains(SubTag.WOOD)) && (!aMaterial.contains(SubTag.BOUNCY))
- && (!aMaterial.contains(SubTag.NO_SMASHING))) {}
+ && (!aMaterial.contains(SubTag.NO_SMASHING))) {}
}
}
}
@Override
public void registerOre(final GregtechOrePrefixes aPrefix, final GT_Materials aMaterial, final String aOreDictName,
- final String aModName, final ItemStack aStack) {
+ final String aModName, final ItemStack aStack) {
// TODO Auto-generated method stub
}
@@ -52,14 +52,14 @@ public class ProcessingAngleGrinder implements Interface_OreRecipeRegistrator, R
for (Materials materials : i) {
aMaterial = materials;
if ((aMaterial != Materials.Stone) && (aMaterial != Materials.Flint)
- && (aMaterial != Materials.Rubber)
- && (aMaterial != Materials._NULL)) {
+ && (aMaterial != Materials.Rubber)
+ && (aMaterial != Materials._NULL)) {
if ((!aMaterial.contains(SubTag.WOOD)) && (!aMaterial.contains(SubTag.BOUNCY))
- && (!aMaterial.contains(SubTag.NO_SMASHING))
- && (!aMaterial.contains(SubTag.TRANSPARENT))
- && (!aMaterial.contains(SubTag.FLAMMABLE))
- && (!aMaterial.contains(SubTag.MAGICAL))
- && (!aMaterial.contains(SubTag.NO_SMELTING))) {
+ && (!aMaterial.contains(SubTag.NO_SMASHING))
+ && (!aMaterial.contains(SubTag.TRANSPARENT))
+ && (!aMaterial.contains(SubTag.FLAMMABLE))
+ && (!aMaterial.contains(SubTag.MAGICAL))
+ && (!aMaterial.contains(SubTag.NO_SMELTING))) {
Logger.MATERIALS("Generating Angle Grinder from " + MaterialUtils.getMaterialName(aMaterial));
// Input 1
@@ -73,12 +73,12 @@ public class ProcessingAngleGrinder implements Interface_OreRecipeRegistrator, R
used++;
} else {
Logger.MATERIALS(
- "Unable to generate Angle Grinder from " + MaterialUtils.getMaterialName(aMaterial)
- + ", Plate or Long Rod may be invalid. Invalid | Plate? "
- + (plate == null)
- + " | Rod? "
- + (longrod == null)
- + " |");
+ "Unable to generate Angle Grinder from " + MaterialUtils.getMaterialName(aMaterial)
+ + ", Plate or Long Rod may be invalid. Invalid | Plate? "
+ + (plate == null)
+ + " | Rod? "
+ + (longrod == null)
+ + " |");
}
// GT_ModHandler.addCraftingRecipe(,
// GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS |
@@ -87,8 +87,8 @@ public class ProcessingAngleGrinder implements Interface_OreRecipeRegistrator, R
// Character.valueOf('P'), OrePrefixes.plate.get(aMaterial),
// Character.valueOf('H'), OrePrefixes.toolHeadHammer.get(aMaterial)});
} else {
- Logger.MATERIALS(
- "Unable to generate Angle Grinder from " + MaterialUtils.getMaterialName(aMaterial));
+ Logger
+ .MATERIALS("Unable to generate Angle Grinder from " + MaterialUtils.getMaterialName(aMaterial));
}
} else {
Logger.MATERIALS("Unable to generate Angle Grinder from " + MaterialUtils.getMaterialName(aMaterial));
@@ -107,27 +107,27 @@ public class ProcessingAngleGrinder implements Interface_OreRecipeRegistrator, R
public boolean addRecipe(Materials aMaterial, long aBatteryStorage, int aVoltageTier, ItemStack aBattery) {
ItemStack aOutputStack = MetaGeneratedGregtechTools.INSTANCE.getToolWithStats(
- MetaGeneratedGregtechTools.ANGLE_GRINDER,
- 1,
- aMaterial,
- Materials.Titanium,
- new long[] { aBatteryStorage, GT_Values.V[aVoltageTier], 3L, -1L });
+ MetaGeneratedGregtechTools.ANGLE_GRINDER,
+ 1,
+ aMaterial,
+ Materials.Titanium,
+ new long[] { aBatteryStorage, GT_Values.V[aVoltageTier], 3L, -1L });
long aDura = MetaGeneratedGregtechTools.getToolMaxDamage(aOutputStack);
if (aDura <= 32000) {
Logger.MATERIALS(
- "Unable to generate Angle Grinder from " + MaterialUtils.getMaterialName(aMaterial)
- + ", Durability: "
- + aDura);
+ "Unable to generate Angle Grinder from " + MaterialUtils.getMaterialName(aMaterial)
+ + ", Durability: "
+ + aDura);
return false;
}
return GT_ModHandler.addCraftingRecipe(
- aOutputStack,
- RecipeBits.DISMANTLEABLE | RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | RecipeBits.BUFFERED,
- new Object[] { "SXL", "GMG", "PBP", 'X', ItemList.Component_Grinder_Tungsten.get(1), 'M',
- CI.getElectricMotor(aVoltageTier, 1), 'S', OrePrefixes.screw.get(Materials.Titanium), 'L',
- OrePrefixes.stickLong.get(aMaterial), 'P', OrePrefixes.plate.get(aMaterial), 'G',
- ELEMENT.STANDALONE.BLACK_METAL.getGear(1), 'B', aBattery });
+ aOutputStack,
+ RecipeBits.DISMANTLEABLE | RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | RecipeBits.BUFFERED,
+ new Object[] { "SXL", "GMG", "PBP", 'X', ItemList.Component_Grinder_Tungsten.get(1), 'M',
+ CI.getElectricMotor(aVoltageTier, 1), 'S', OrePrefixes.screw.get(Materials.Titanium), 'L',
+ OrePrefixes.stickLong.get(aMaterial), 'P', OrePrefixes.plate.get(aMaterial), 'G',
+ ELEMENT.STANDALONE.BLACK_METAL.getGear(1), 'B', aBattery });
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/ProcessingElectricSnips.java b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/ProcessingElectricSnips.java
index 3b9d5b8e0c..9a60f2c6bf 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/ProcessingElectricSnips.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/ProcessingElectricSnips.java
@@ -27,18 +27,18 @@ public class ProcessingElectricSnips implements Interface_OreRecipeRegistrator,
@Override
public void registerOre(final GregtechOrePrefixes aPrefix, final Materials aMaterial, final String aOreDictName,
- final String aModName, final ItemStack aStack) {
+ final String aModName, final ItemStack aStack) {
if ((aMaterial != Materials.Stone) && (aMaterial != Materials.Flint)) {
if (aMaterial != Materials.Rubber) {
if ((!aMaterial.contains(SubTag.WOOD)) && (!aMaterial.contains(SubTag.BOUNCY))
- && (!aMaterial.contains(SubTag.NO_SMASHING))) {}
+ && (!aMaterial.contains(SubTag.NO_SMASHING))) {}
}
}
}
@Override
public void registerOre(final GregtechOrePrefixes aPrefix, final GT_Materials aMaterial, final String aOreDictName,
- final String aModName, final ItemStack aStack) {
+ final String aModName, final ItemStack aStack) {
// TODO Auto-generated method stub
}
@@ -52,14 +52,14 @@ public class ProcessingElectricSnips implements Interface_OreRecipeRegistrator,
for (Materials materials : i) {
aMaterial = materials;
if ((aMaterial != Materials.Stone) && (aMaterial != Materials.Flint)
- && (aMaterial != Materials.Rubber)
- && (aMaterial != Materials._NULL)) {
+ && (aMaterial != Materials.Rubber)
+ && (aMaterial != Materials._NULL)) {
if ((!aMaterial.contains(SubTag.WOOD)) && (!aMaterial.contains(SubTag.BOUNCY))
- && (!aMaterial.contains(SubTag.NO_SMASHING))
- && (!aMaterial.contains(SubTag.TRANSPARENT))
- && (!aMaterial.contains(SubTag.FLAMMABLE))
- && (!aMaterial.contains(SubTag.MAGICAL))
- && (!aMaterial.contains(SubTag.NO_SMELTING))) {
+ && (!aMaterial.contains(SubTag.NO_SMASHING))
+ && (!aMaterial.contains(SubTag.TRANSPARENT))
+ && (!aMaterial.contains(SubTag.FLAMMABLE))
+ && (!aMaterial.contains(SubTag.MAGICAL))
+ && (!aMaterial.contains(SubTag.NO_SMELTING))) {
Logger.MATERIALS("Generating Electric Snips from " + MaterialUtils.getMaterialName(aMaterial));
// Input 1
@@ -72,11 +72,11 @@ public class ProcessingElectricSnips implements Interface_OreRecipeRegistrator,
used++;
} else {
Logger.MATERIALS(
- "Unable to generate Electric Snips from " + MaterialUtils.getMaterialName(aMaterial)
- + ", Plate or Long Rod may be invalid. Invalid | Plate? "
- + (plate == null)
- + " | Rod? "
- + " |");
+ "Unable to generate Electric Snips from " + MaterialUtils.getMaterialName(aMaterial)
+ + ", Plate or Long Rod may be invalid. Invalid | Plate? "
+ + (plate == null)
+ + " | Rod? "
+ + " |");
}
// GT_ModHandler.addCraftingRecipe(,
// GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS |
@@ -86,7 +86,7 @@ public class ProcessingElectricSnips implements Interface_OreRecipeRegistrator,
// Character.valueOf('H'), OrePrefixes.toolHeadHammer.get(aMaterial)});
} else {
Logger.MATERIALS(
- "Unable to generate Electric Snips from " + MaterialUtils.getMaterialName(aMaterial));
+ "Unable to generate Electric Snips from " + MaterialUtils.getMaterialName(aMaterial));
}
} else {
Logger.MATERIALS("Unable to generate Electric Snips from " + MaterialUtils.getMaterialName(aMaterial));
@@ -105,33 +105,33 @@ public class ProcessingElectricSnips implements Interface_OreRecipeRegistrator,
public boolean addRecipe(Materials aMaterial, long aBatteryStorage, int aVoltageTier, ItemStack aBattery) {
ItemStack aOutputStack = MetaGeneratedGregtechTools.INSTANCE.getToolWithStats(
- MetaGeneratedGregtechTools.ELECTRIC_SNIPS,
- 1,
- aMaterial,
- Materials.Titanium,
- new long[] { aBatteryStorage, GT_Values.V[aVoltageTier], 3L, -1L });
+ MetaGeneratedGregtechTools.ELECTRIC_SNIPS,
+ 1,
+ aMaterial,
+ Materials.Titanium,
+ new long[] { aBatteryStorage, GT_Values.V[aVoltageTier], 3L, -1L });
ItemStack aInputCutter = GT_MetaGenerated_Tool_01.INSTANCE
- .getToolWithStats(GT_MetaGenerated_Tool_01.WIRECUTTER, 1, aMaterial, aMaterial, null);
+ .getToolWithStats(GT_MetaGenerated_Tool_01.WIRECUTTER, 1, aMaterial, aMaterial, null);
long aDura = MetaGeneratedGregtechTools.getToolMaxDamage(aOutputStack);
if (aDura <= 32000) {
Logger.MATERIALS(
- "Unable to generate Electric Snips from " + MaterialUtils.getMaterialName(aMaterial)
- + ", Durability: "
- + aDura);
+ "Unable to generate Electric Snips from " + MaterialUtils.getMaterialName(aMaterial)
+ + ", Durability: "
+ + aDura);
return false;
}
return RecipeUtils.addShapedRecipe(
- OrePrefixes.wireFine.get(Materials.Electrum),
- aInputCutter,
- OrePrefixes.wireFine.get(Materials.Electrum),
- ELEMENT.STANDALONE.WHITE_METAL.getGear(1),
- CI.getElectricMotor(aVoltageTier, 1),
- ELEMENT.STANDALONE.WHITE_METAL.getGear(1),
- OrePrefixes.plate.get(aMaterial),
- aBattery,
- OrePrefixes.plate.get(aMaterial),
- aOutputStack);
+ OrePrefixes.wireFine.get(Materials.Electrum),
+ aInputCutter,
+ OrePrefixes.wireFine.get(Materials.Electrum),
+ ELEMENT.STANDALONE.WHITE_METAL.getGear(1),
+ CI.getElectricMotor(aVoltageTier, 1),
+ ELEMENT.STANDALONE.WHITE_METAL.getGear(1),
+ OrePrefixes.plate.get(aMaterial),
+ aBattery,
+ OrePrefixes.plate.get(aMaterial),
+ aOutputStack);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_AlloySmelter.java b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_AlloySmelter.java
index acef57b368..d455697330 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_AlloySmelter.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_AlloySmelter.java
@@ -33,31 +33,31 @@ public class RecipeGen_AlloySmelter extends RecipeGen_Base {
// Nuggets
if (ItemUtils.checkForInvalidItems(material.getIngot(1))
- && ItemUtils.checkForInvalidItems(material.getNugget(1)))
+ && ItemUtils.checkForInvalidItems(material.getNugget(1)))
GT_Values.RA.addAlloySmelterRecipe(
- material.getIngot(1),
- ItemList.Shape_Mold_Nugget.get(0),
- material.getNugget(9),
- (int) Math.max(material.getMass() * 2L, 1L),
- tVoltageMultiplier);
+ material.getIngot(1),
+ ItemList.Shape_Mold_Nugget.get(0),
+ material.getNugget(9),
+ (int) Math.max(material.getMass() * 2L, 1L),
+ tVoltageMultiplier);
// Gears
if (ItemUtils.checkForInvalidItems(material.getIngot(1)) && ItemUtils.checkForInvalidItems(material.getGear(1)))
GT_Values.RA.addAlloySmelterRecipe(
- material.getIngot(8),
- ItemList.Shape_Mold_Gear.get(0),
- material.getGear(1),
- (int) Math.max(material.getMass() * 2L, 1L),
- tVoltageMultiplier);
+ material.getIngot(8),
+ ItemList.Shape_Mold_Gear.get(0),
+ material.getGear(1),
+ (int) Math.max(material.getMass() * 2L, 1L),
+ tVoltageMultiplier);
// Ingot
if (ItemUtils.checkForInvalidItems(material.getIngot(1))
- && ItemUtils.checkForInvalidItems(material.getNugget(1)))
+ && ItemUtils.checkForInvalidItems(material.getNugget(1)))
GT_Values.RA.addAlloySmelterRecipe(
- material.getNugget(9),
- ItemList.Shape_Mold_Ingot.get(0),
- material.getIngot(1),
- (int) Math.max(material.getMass() * 2L, 1L),
- tVoltageMultiplier);
+ material.getNugget(9),
+ ItemList.Shape_Mold_Ingot.get(0),
+ material.getIngot(1),
+ (int) Math.max(material.getMass() * 2L, 1L),
+ tVoltageMultiplier);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Assembler.java b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Assembler.java
index 0e67ab7ebc..1594568d23 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Assembler.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Assembler.java
@@ -35,45 +35,35 @@ public class RecipeGen_Assembler extends RecipeGen_Base {
// Frame Box
if (ItemUtils.checkForInvalidItems(new ItemStack[] { material.getRod(1), material.getFrameBox(1) }))
GT_Values.RA.addAssemblerRecipe(
- material.getRod(4),
- ItemUtils.getGregtechCircuit(4),
- material.getFrameBox(1),
- 60,
- material.vVoltageMultiplier);
+ material.getRod(4),
+ ItemUtils.getGregtechCircuit(4),
+ material.getFrameBox(1),
+ 60,
+ material.vVoltageMultiplier);
// Rotor
- if (ItemUtils.checkForInvalidItems(
- new ItemStack[] { material.getPlate(1), material.getRing(1), material.getRotor(1) }))
+ if (ItemUtils
+ .checkForInvalidItems(new ItemStack[] { material.getPlate(1), material.getRing(1), material.getRotor(1) }))
addAssemblerRecipe(
- material.getPlate(4),
- material.getRing(1),
- material.getRotor(1),
- 240,
- material.vVoltageMultiplier);
+ material.getPlate(4),
+ material.getRing(1),
+ material.getRotor(1),
+ 240,
+ material.vVoltageMultiplier);
}
private static void addAssemblerRecipe(final ItemStack input1, final ItemStack input2, final ItemStack output1,
- final int seconds, final int euCost) {
+ final int seconds, final int euCost) {
GT_Values.RA.addAssemblerRecipe(
- input1,
- input2,
- FluidUtils.getFluidStack("molten.solderingalloy", 16),
- output1,
- seconds,
- euCost);
- GT_Values.RA.addAssemblerRecipe(
- input1,
- input2,
- FluidUtils.getFluidStack("molten.tin", 32),
- output1,
- seconds,
- euCost);
- GT_Values.RA.addAssemblerRecipe(
- input1,
- input2,
- FluidUtils.getFluidStack("molten.lead", 48),
- output1,
- seconds,
- euCost);
+ input1,
+ input2,
+ FluidUtils.getFluidStack("molten.solderingalloy", 16),
+ output1,
+ seconds,
+ euCost);
+ GT_Values.RA
+ .addAssemblerRecipe(input1, input2, FluidUtils.getFluidStack("molten.tin", 32), output1, seconds, euCost);
+ GT_Values.RA
+ .addAssemblerRecipe(input1, input2, FluidUtils.getFluidStack("molten.lead", 48), output1, seconds, euCost);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_BlastSmelter.java b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_BlastSmelter.java
index 4bf9e4df41..2d573c9fb7 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_BlastSmelter.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_BlastSmelter.java
@@ -50,7 +50,7 @@ public class RecipeGen_BlastSmelter extends RecipeGen_Base {
if (null != (tStack = M.getDust(1))) {
final Material[] badMaterials = { FLUORIDES.THORIUM_HEXAFLUORIDE, FLUORIDES.THORIUM_TETRAFLUORIDE,
- ALLOY.BLOODSTEEL, NUCLIDE.LiFBeF2ThF4UF4, NUCLIDE.LiFBeF2ZrF4UF4, NUCLIDE.LiFBeF2ZrF4U235 };
+ ALLOY.BLOODSTEEL, NUCLIDE.LiFBeF2ThF4UF4, NUCLIDE.LiFBeF2ZrF4UF4, NUCLIDE.LiFBeF2ZrF4U235 };
for (final Material R : badMaterials) {
if (M == R) {
return;
@@ -111,20 +111,20 @@ public class RecipeGen_BlastSmelter extends RecipeGen_Base {
inputStackCount = 1;
fluidAmount = 144 * inputStackCount;
Logger.WARNING(
- "[BAS] Adding an Alloy Blast Smelter Recipe for " + M.getLocalizedName()
- + ". Gives "
- + fluidAmount
- + "L of molten metal.");
+ "[BAS] Adding an Alloy Blast Smelter Recipe for " + M.getLocalizedName()
+ + ". Gives "
+ + fluidAmount
+ + "L of molten metal.");
for (int das = 0; das < tItemStackTest.length; das++) {
if (tItemStackTest[das] != null) {
Logger.WARNING(
- "[BAS] tMaterial[" + das
- + "]: "
- + tItemStackTest[das].getDisplayName()
- + " Meta: "
- + tItemStackTest[das].getItemDamage()
- + ", Amount: "
- + tItemStackTest[das].stackSize);
+ "[BAS] tMaterial[" + das
+ + "]: "
+ + tItemStackTest[das].getDisplayName()
+ + " Meta: "
+ + tItemStackTest[das].getItemDamage()
+ + ", Amount: "
+ + tItemStackTest[das].stackSize);
}
}
@@ -133,27 +133,30 @@ public class RecipeGen_BlastSmelter extends RecipeGen_Base {
// Generate Recipes for all singular materials that can be made molten.
if (hasMoreInputThanACircuit) {
if (M.requiresBlastFurnace()) {
- GT_Values.RA.stdBuilder().itemInputs(tItemStackTest).fluidOutputs(M.getFluidStack(fluidAmount))
- .duration(duration / (mTotalPartsCounter > 0 ? mTotalPartsCounter : 1)).eut(aVoltage)
- .recipeCategory(GTPPRecipeCategories.absNonAlloyRecipes)
- .addTo(GTPPRecipeMaps.alloyBlastSmelterRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(tItemStackTest)
+ .fluidOutputs(M.getFluidStack(fluidAmount))
+ .duration(duration / (mTotalPartsCounter > 0 ? mTotalPartsCounter : 1))
+ .eut(aVoltage)
+ .recipeCategory(GTPPRecipeCategories.absNonAlloyRecipes)
+ .addTo(GTPPRecipeMaps.alloyBlastSmelterRecipes);
} else {
Logger.WARNING("[BAS] Failed.");
}
} else {
if (CORE.RA.addBlastSmelterRecipe(
- tItemStackTest,
- M.getFluidStack(fluidAmount),
- 100,
- duration / (mTotalPartsCounter > 0 ? mTotalPartsCounter : 1) / 2,
- (int) aVoltage)) {
+ tItemStackTest,
+ M.getFluidStack(fluidAmount),
+ 100,
+ duration / (mTotalPartsCounter > 0 ? mTotalPartsCounter : 1) / 2,
+ (int) aVoltage)) {
Logger.WARNING("[BAS] Success.");
if (GT_Values.RA.addFluidSolidifierRecipe(
- ItemList.Shape_Mold_Ingot.get(0),
- M.getFluidStack(144),
- M.getIngot(1),
- duration / 2,
- 60)) {
+ ItemList.Shape_Mold_Ingot.get(0),
+ M.getFluidStack(144),
+ M.getIngot(1),
+ duration / 2,
+ 60)) {
Logger.WARNING("[BAS] Success, Also added a Fluid solidifier recipe.");
/*
* if (GT_Values.RA.addFluidExtractionRecipe(M.getIngot(1), null, M.getFluidStack(144), 100,
@@ -189,8 +192,12 @@ public class RecipeGen_BlastSmelter extends RecipeGen_Base {
for (final gtPlusPlus.core.material.MaterialStack xMaterial : M.getComposites()) {
if (xMaterial != null) {
if (xMaterial.getStackMaterial() != null) {
- Logger.WARNING("[BAS] FOUND: " + xMaterial.getStackMaterial().getLocalizedName());
- Logger.WARNING("[BAS] ADDING: " + xMaterial.getStackMaterial().getLocalizedName());
+ Logger.WARNING(
+ "[BAS] FOUND: " + xMaterial.getStackMaterial()
+ .getLocalizedName());
+ Logger.WARNING(
+ "[BAS] ADDING: " + xMaterial.getStackMaterial()
+ .getLocalizedName());
}
tempStack[ooo] = xMaterial;
}
@@ -202,22 +209,34 @@ public class RecipeGen_BlastSmelter extends RecipeGen_Base {
components = new ItemStack[9];
inputStackCount = 0;
FluidStack componentsFluid = null;
- for (int irc = 0; irc < M.getComposites().size(); irc++) {
- if (M.getComposites().get(irc) != null) {
+ for (int irc = 0; irc < M.getComposites()
+ .size(); irc++) {
+ if (M.getComposites()
+ .get(irc) != null) {
final int r = (int) M.vSmallestRatio[irc];
inputStackCount = inputStackCount + r;
- if ((M.getComposites().get(irc).getStackMaterial().getState() != MaterialState.SOLID)
- || !ItemUtils
- .checkForInvalidItems(M.getComposites().get(irc).getDustStack(r))) {
+ if ((M.getComposites()
+ .get(irc)
+ .getStackMaterial()
+ .getState() != MaterialState.SOLID)
+ || !ItemUtils.checkForInvalidItems(
+ M.getComposites()
+ .get(irc)
+ .getDustStack(r))) {
final int xr = r;
if ((xr > 0) && (xr <= 100)) {
final int mathmatics = (r * 1000);
componentsFluid = FluidUtils.getFluidStack(
- M.getComposites().get(irc).getStackMaterial().getFluidStack(mathmatics),
- mathmatics);
+ M.getComposites()
+ .get(irc)
+ .getStackMaterial()
+ .getFluidStack(mathmatics),
+ mathmatics);
}
} else {
- components[irc] = M.getComposites().get(irc).getUnificatedDustStack(r);
+ components[irc] = M.getComposites()
+ .get(irc)
+ .getUnificatedDustStack(r);
}
}
}
@@ -235,9 +254,9 @@ public class RecipeGen_BlastSmelter extends RecipeGen_Base {
}
}
Logger.WARNING(
- "[BAS] Should have added a circuit. mMaterialListSize: " + mMaterialListSize
- + " | circuit: "
- + components[0].getDisplayName());
+ "[BAS] Should have added a circuit. mMaterialListSize: " + mMaterialListSize
+ + " | circuit: "
+ + components[0].getDisplayName());
} else {
Logger.WARNING("[BAS] Did not add a circuit. mMaterialListSize: " + mMaterialListSize);
}
@@ -246,47 +265,47 @@ public class RecipeGen_BlastSmelter extends RecipeGen_Base {
fluidAmount = 144 * inputStackCount;
Logger.WARNING(
- "[BAS] Adding an Alloy Blast Smelter Recipe for " + M.getLocalizedName()
- + " using it's compound dusts. This material has "
- + inputStackCount
- + " parts. Gives "
- + fluidAmount
- + "L of molten metal.");
+ "[BAS] Adding an Alloy Blast Smelter Recipe for " + M.getLocalizedName()
+ + " using it's compound dusts. This material has "
+ + inputStackCount
+ + " parts. Gives "
+ + fluidAmount
+ + "L of molten metal.");
Logger.WARNING("[BAS] tMaterial.length: " + components.length + ".");
for (int das = 0; das < components.length; das++) {
if (components[das] != null) {
Logger.WARNING(
- "[BAS] tMaterial[" + das
- + "]: "
- + components[das].getDisplayName()
- + " Meta: "
- + components[das].getItemDamage()
- + ", Amount: "
- + components[das].stackSize);
+ "[BAS] tMaterial[" + das
+ + "]: "
+ + components[das].getDisplayName()
+ + " Meta: "
+ + components[das].getItemDamage()
+ + ", Amount: "
+ + components[das].stackSize);
}
}
// Adds Recipe
if (M.requiresBlastFurnace()) {
if (CORE.RA.addBlastSmelterRecipe(
- components,
- componentsFluid,
- M.getFluidStack(fluidAmount),
- 100,
- duration,
- (int) aVoltage)) {
+ components,
+ componentsFluid,
+ M.getFluidStack(fluidAmount),
+ 100,
+ duration,
+ (int) aVoltage)) {
Logger.WARNING("[BAS] Success.");
} else {
Logger.WARNING("[BAS] Failed.");
}
} else {
if (CORE.RA.addBlastSmelterRecipe(
- components,
- componentsFluid,
- M.getFluidStack(fluidAmount),
- 100,
- duration,
- (int) aVoltage / 2)) {
+ components,
+ componentsFluid,
+ M.getFluidStack(fluidAmount),
+ 100,
+ duration,
+ (int) aVoltage / 2)) {
Logger.WARNING("[BAS] Success.");
} else {
Logger.WARNING("[BAS] Failed.");
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_BlastSmelterGT_GTNH.java b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_BlastSmelterGT_GTNH.java
index 145be4a981..5398a6a0b5 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_BlastSmelterGT_GTNH.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_BlastSmelterGT_GTNH.java
@@ -54,12 +54,12 @@ public class RecipeGen_BlastSmelterGT_GTNH {
}
private static boolean isValid(final ItemStack[] inputs, final ItemStack outputs[], final FluidStack[] fluidIn,
- final FluidStack fluidOut) {
+ final FluidStack fluidOut) {
if (inputs != null && outputs != null
- && fluidIn != null
- && fluidOut != null
- && inputs.length > 0
- && outputs.length > 0) {
+ && fluidIn != null
+ && fluidOut != null
+ && inputs.length > 0
+ && outputs.length > 0) {
return true;
}
return false;
@@ -82,12 +82,13 @@ public class RecipeGen_BlastSmelterGT_GTNH {
}
for (int tag : OreDictionary.getOreIDs(x.mInputs[0])) {
- String oreName = OreDictionary.getOreName(tag).toLowerCase();
+ String oreName = OreDictionary.getOreName(tag)
+ .toLowerCase();
String mType = "ingot";
if (oreName.startsWith(mType) && !oreName.contains("double")
- && !oreName.contains("triple")
- && !oreName.contains("quad")
- && !oreName.contains("quintuple")) {
+ && !oreName.contains("triple")
+ && !oreName.contains("quad")
+ && !oreName.contains("quintuple")) {
validInput = x.mInputs[0];
}
}
@@ -98,11 +99,11 @@ public class RecipeGen_BlastSmelterGT_GTNH {
ItemStackData R = new ItemStackData(validInput);
setIngotToFluid(R, validOutput);
Logger.MACHINE_INFO(
- "[ABS][I2F] Cached " + validInput.getDisplayName()
- + " to "
- + validOutput.getLocalizedName()
- + ". Stored Under ID of "
- + R.getUniqueDataIdentifier());
+ "[ABS][I2F] Cached " + validInput.getDisplayName()
+ + " to "
+ + validOutput.getLocalizedName()
+ + ". Stored Under ID of "
+ + R.getUniqueDataIdentifier());
}
}
@@ -123,13 +124,13 @@ public class RecipeGen_BlastSmelterGT_GTNH {
ItemStackData R2 = new ItemStackData(validOutput);
setHotToCold(R1, R2);
Logger.MACHINE_INFO(
- "[ABS][H2C] Cached " + validInput.getDisplayName()
- + " to "
- + validOutput.getDisplayName()
- + ". Stored Under ID of "
- + R1.getUniqueDataIdentifier()
- + ", links to ID "
- + R2.getUniqueDataIdentifier());
+ "[ABS][H2C] Cached " + validInput.getDisplayName()
+ + " to "
+ + validOutput.getDisplayName()
+ + ". Stored Under ID of "
+ + R1.getUniqueDataIdentifier()
+ + ", links to ID "
+ + R2.getUniqueDataIdentifier());
}
}
@@ -160,11 +161,11 @@ public class RecipeGen_BlastSmelterGT_GTNH {
mMoltenCount = x.mOutputs[0].stackSize;
ItemStackData R = new ItemStackData(x.mOutputs[0]);
Logger.MACHINE_INFO(
- "[ABS] Found " + x.mOutputs[0].getDisplayName()
- + " as valid EBF output, finding it's fluid from the cache. We will require "
- + (144 * mMoltenCount)
- + "L. Looking for ID "
- + R.getUniqueDataIdentifier());
+ "[ABS] Found " + x.mOutputs[0].getDisplayName()
+ + " as valid EBF output, finding it's fluid from the cache. We will require "
+ + (144 * mMoltenCount)
+ + "L. Looking for ID "
+ + R.getUniqueDataIdentifier());
FluidStack tempFluid = getFluidFromIngot(R);
if (tempFluid != null) {
// Logger.MACHINE_INFO("[ABS] Got Fluid from Cache.");
@@ -207,12 +208,16 @@ public class RecipeGen_BlastSmelterGT_GTNH {
newInput[l++] = y;
}
- GT_Values.RA.stdBuilder().itemInputs(newInput).fluidInputs(inputsF).fluidOutputs(mMoltenStack)
- .duration(MathUtils.roundToClosestInt(time * 0.8)).eut(voltage)
- .recipeCategory(
- inputLength <= 2 ? GTPPRecipeCategories.absNonAlloyRecipes
- : GTPPRecipeMaps.alloyBlastSmelterRecipes.getDefaultRecipeCategory())
- .addTo(GTPPRecipeMaps.alloyBlastSmelterRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(newInput)
+ .fluidInputs(inputsF)
+ .fluidOutputs(mMoltenStack)
+ .duration(MathUtils.roundToClosestInt(time * 0.8))
+ .eut(voltage)
+ .recipeCategory(
+ inputLength <= 2 ? GTPPRecipeCategories.absNonAlloyRecipes
+ : GTPPRecipeMaps.alloyBlastSmelterRecipes.getDefaultRecipeCategory())
+ .addTo(GTPPRecipeMaps.alloyBlastSmelterRecipes);
} else {
if (!enabled) {
Logger.MACHINE_INFO("[ABS] Failure. EBF recipe was not enabled.");
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_DustGeneration.java b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_DustGeneration.java
index b30a16f44f..1499ea3cad 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_DustGeneration.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_DustGeneration.java
@@ -44,23 +44,23 @@ public class RecipeGen_DustGeneration extends RecipeGen_Base {
final ItemStack tinyDust = M.getTinyDust(1);
if (tinyDust != null && normalDust != null) {
if (RecipeUtils.addShapedRecipe(
- tinyDust,
- tinyDust,
- tinyDust,
- tinyDust,
- tinyDust,
- tinyDust,
- tinyDust,
- tinyDust,
- tinyDust,
- normalDust)) {
+ tinyDust,
+ tinyDust,
+ tinyDust,
+ tinyDust,
+ tinyDust,
+ tinyDust,
+ tinyDust,
+ tinyDust,
+ tinyDust,
+ normalDust)) {
Logger.INFO("9 Tiny dust to 1 Dust Recipe: " + M.getLocalizedName() + " - Success");
} else {
Logger.INFO("9 Tiny dust to 1 Dust Recipe: " + M.getLocalizedName() + " - Failed");
}
if (RecipeUtils
- .addShapedRecipe(normalDust, null, null, null, null, null, null, null, null, M.getTinyDust(9))) {
+ .addShapedRecipe(normalDust, null, null, null, null, null, null, null, null, M.getTinyDust(9))) {
Logger.INFO("9 Tiny dust from 1 Recipe: " + M.getLocalizedName() + " - Success");
} else {
Logger.INFO("9 Tiny dust from 1 Recipe: " + M.getLocalizedName() + " - Failed");
@@ -69,22 +69,22 @@ public class RecipeGen_DustGeneration extends RecipeGen_Base {
if (smallDust != null && normalDust != null) {
if (RecipeUtils.addShapedRecipe(
- smallDust,
- smallDust,
- null,
- smallDust,
- smallDust,
- null,
- null,
- null,
- null,
- normalDust)) {
+ smallDust,
+ smallDust,
+ null,
+ smallDust,
+ smallDust,
+ null,
+ null,
+ null,
+ null,
+ normalDust)) {
Logger.INFO("4 Small dust to 1 Dust Recipe: " + M.getLocalizedName() + " - Success");
} else {
Logger.INFO("4 Small dust to 1 Dust Recipe: " + M.getLocalizedName() + " - Failed");
}
if (RecipeUtils
- .addShapedRecipe(null, normalDust, null, null, null, null, null, null, null, M.getSmallDust(4))) {
+ .addShapedRecipe(null, normalDust, null, null, null, null, null, null, null, M.getSmallDust(4))) {
Logger.INFO("4 Small dust from 1 Dust Recipe: " + M.getLocalizedName() + " - Success");
} else {
Logger.INFO("4 Small dust from 1 Dust Recipe: " + M.getLocalizedName() + " - Failed");
@@ -182,14 +182,20 @@ public class RecipeGen_DustGeneration extends RecipeGen_Base {
FluidStack oxygen = GT_Values.NF;
if (material.getComposites() != null) {
for (final MaterialStack x : material.getComposites()) {
- if (!material.getComposites().isEmpty()) {
+ if (!material.getComposites()
+ .isEmpty()) {
if (x != null) {
if (x.getStackMaterial() != null) {
- if (x.getStackMaterial().getDust(1) == null) {
- if (x.getStackMaterial().getState() != MaterialState.SOLID
- && x.getStackMaterial().getState() != MaterialState.ORE
- && x.getStackMaterial().getState() != MaterialState.PLASMA) {
- oxygen = x.getStackMaterial().getFluidStack(1000);
+ if (x.getStackMaterial()
+ .getDust(1) == null) {
+ if (x.getStackMaterial()
+ .getState() != MaterialState.SOLID
+ && x.getStackMaterial()
+ .getState() != MaterialState.ORE
+ && x.getStackMaterial()
+ .getState() != MaterialState.PLASMA) {
+ oxygen = x.getStackMaterial()
+ .getFluidStack(1000);
break;
}
}
@@ -203,15 +209,15 @@ public class RecipeGen_DustGeneration extends RecipeGen_Base {
// Add mixer Recipe
if (GT_Values.RA.addMixerRecipe(
- input[0],
- input[1],
- input[2],
- input[3],
- oxygen,
- null,
- outputStacks,
- (int) Math.max(material.getMass() * 2L * 1, 1),
- material.vVoltageMultiplier)) // Was 6, but let's try 2. This makes Potin LV, for example.
+ input[0],
+ input[1],
+ input[2],
+ input[3],
+ oxygen,
+ null,
+ outputStacks,
+ (int) Math.max(material.getMass() * 2L * 1, 1),
+ material.vVoltageMultiplier)) // Was 6, but let's try 2. This makes Potin LV, for example.
{
Logger.WARNING("Dust Mixer Recipe: " + material.getLocalizedName() + " - Success");
} else {
@@ -257,11 +263,11 @@ public class RecipeGen_DustGeneration extends RecipeGen_Base {
ItemStack input1, input2, input3, input4;
input1 = inputStacks[0];
input2 = (inputStacks.length >= 2) ? (input2 = (inputStacks[1] == null) ? null : inputStacks[1])
- : null;
+ : null;
input3 = (inputStacks.length >= 3) ? (input3 = (inputStacks[2] == null) ? null : inputStacks[2])
- : null;
+ : null;
input4 = (inputStacks.length >= 4) ? (input4 = (inputStacks[3] == null) ? null : inputStacks[3])
- : null;
+ : null;
if (inputStacks.length == 1) {
input2 = input1;
@@ -283,16 +289,19 @@ public class RecipeGen_DustGeneration extends RecipeGen_Base {
if (material.getComposites() != null) {
int compSlot = 0;
for (final MaterialStack x : material.getComposites()) {
- if (!material.getComposites().isEmpty()) {
+ if (!material.getComposites()
+ .isEmpty()) {
if (x != null) {
if (x.getStackMaterial() != null) {
- if (x.getStackMaterial().getDust(1) == null) {
- MaterialState f = x.getStackMaterial().getState();
+ if (x.getStackMaterial()
+ .getDust(1) == null) {
+ MaterialState f = x.getStackMaterial()
+ .getState();
if (f == MaterialState.GAS || f == MaterialState.LIQUID
- || f == MaterialState.PURE_LIQUID
- || f == MaterialState.PURE_GAS) {
- oxygen = x.getStackMaterial().getFluidStack(
- (int) (material.vSmallestRatio[compSlot] * 1000));
+ || f == MaterialState.PURE_LIQUID
+ || f == MaterialState.PURE_GAS) {
+ oxygen = x.getStackMaterial()
+ .getFluidStack((int) (material.vSmallestRatio[compSlot] * 1000));
}
}
}
@@ -305,15 +314,15 @@ public class RecipeGen_DustGeneration extends RecipeGen_Base {
// Add mixer Recipe
try {
if (GT_Values.RA.addMixerRecipe(
- input1,
- input2,
- input3,
- input4,
- oxygen,
- null,
- outputStacks,
- (int) Math.max(material.getMass() * 2L * 1, 1),
- material.vVoltageMultiplier)) // Was 6, but let's try 2. This makes Potin LV, for
+ input1,
+ input2,
+ input3,
+ input4,
+ oxygen,
+ null,
+ outputStacks,
+ (int) Math.max(material.getMass() * 2L * 1, 1),
+ material.vVoltageMultiplier)) // Was 6, but let's try 2. This makes Potin LV, for
// example.
{
Logger.WARNING("Dust Mixer Recipe: " + material.getLocalizedName() + " - Success");
@@ -341,20 +350,20 @@ public class RecipeGen_DustGeneration extends RecipeGen_Base {
AutoMap<Boolean> aResults = new AutoMap<>();
// Small Dust
aResults.put(
- GT_Values.RA.addBoxingRecipe(
- GT_Utility.copyAmount(4L, new Object[] { aMatInfo.getSmallDust(4) }),
- ItemList.Schematic_Dust.get(0L, new Object[0]),
- aMatInfo.getDust(1),
- 100,
- 4));
+ GT_Values.RA.addBoxingRecipe(
+ GT_Utility.copyAmount(4L, new Object[] { aMatInfo.getSmallDust(4) }),
+ ItemList.Schematic_Dust.get(0L, new Object[0]),
+ aMatInfo.getDust(1),
+ 100,
+ 4));
// Tiny Dust
aResults.put(
- GT_Values.RA.addBoxingRecipe(
- GT_Utility.copyAmount(9L, new Object[] { aMatInfo.getTinyDust(9) }),
- ItemList.Schematic_Dust.get(0L, new Object[0]),
- aMatInfo.getDust(1),
- 100,
- 4));
+ GT_Values.RA.addBoxingRecipe(
+ GT_Utility.copyAmount(9L, new Object[] { aMatInfo.getTinyDust(9) }),
+ ItemList.Schematic_Dust.get(0L, new Object[0]),
+ aMatInfo.getDust(1),
+ 100,
+ 4));
for (boolean b : aResults) {
if (!b) {
@@ -383,8 +392,8 @@ public class RecipeGen_DustGeneration extends RecipeGen_Base {
aOutput = aMatInfo.getHotIngot(1);
if (ItemUtils.checkForInvalidItems(aOutput)) {
if (addBlastFurnaceRecipe(aMatInfo, aDust, null, aOutput, null, aMatInfo.getMeltingPointK())) {
- Logger.MATERIALS(
- "Successfully added a blast furnace recipe for " + aMatInfo.getLocalizedName());
+ Logger
+ .MATERIALS("Successfully added a blast furnace recipe for " + aMatInfo.getLocalizedName());
} else {
Logger.MATERIALS("Failed to add a blast furnace recipe for " + aMatInfo.getLocalizedName());
}
@@ -407,7 +416,7 @@ public class RecipeGen_DustGeneration extends RecipeGen_Base {
}
private boolean addBlastFurnaceRecipe(Material aMatInfo, final ItemStack input1, final ItemStack input2,
- final ItemStack output1, final ItemStack output2, final int tempRequired) {
+ final ItemStack output1, final ItemStack output2, final int tempRequired) {
try {
int timeTaken = 125 * aMatInfo.vTier * 10;
@@ -422,15 +431,15 @@ public class RecipeGen_DustGeneration extends RecipeGen_Base {
long aVoltage = aMatInfo.vVoltageMultiplier;
return GT_Values.RA.addBlastRecipe(
- input1,
- input2,
- GT_Values.NF,
- GT_Values.NF,
- output1,
- output2,
- timeTaken,
- (int) aVoltage,
- tempRequired);
+ input1,
+ input2,
+ GT_Values.NF,
+ GT_Values.NF,
+ output1,
+ output2,
+ timeTaken,
+ (int) aVoltage,
+ tempRequired);
} catch (Throwable t) {
t.printStackTrace();
return false;
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Extruder.java b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Extruder.java
index 7ef35b26a0..a69a96b925 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Extruder.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Extruder.java
@@ -48,14 +48,14 @@ public class RecipeGen_Extruder extends RecipeGen_Base {
Logger.WARNING("Generating Extruder recipes for " + material.getLocalizedName());
if (ItemUtils.checkForInvalidItems(material.getIngot(1))
- && ItemUtils.checkForInvalidItems(material.getBlock(1))) {
+ && ItemUtils.checkForInvalidItems(material.getBlock(1))) {
// Ingot Recipe
if (GT_Values.RA.addExtruderRecipe(
- material.getBlock(1),
- shape_Ingot,
- material.getIngot(9),
- (int) Math.max(material.getMass() * 2L * 1, 1),
- material.vVoltageMultiplier)) {
+ material.getBlock(1),
+ shape_Ingot,
+ material.getIngot(9),
+ (int) Math.max(material.getMass() * 2L * 1, 1),
+ material.vVoltageMultiplier)) {
Logger.WARNING("Extruder Ingot Recipe: " + material.getLocalizedName() + " - Success");
} else {
Logger.WARNING("Extruder Ingot Recipe: " + material.getLocalizedName() + " - Failed");
@@ -63,11 +63,11 @@ public class RecipeGen_Extruder extends RecipeGen_Base {
// Block Recipe
if (GT_Values.RA.addExtruderRecipe(
- material.getIngot(9),
- shape_Block,
- material.getBlock(1),
- (int) Math.max(material.getMass() * 2L * 1, 1),
- material.vVoltageMultiplier)) {
+ material.getIngot(9),
+ shape_Block,
+ material.getBlock(1),
+ (int) Math.max(material.getMass() * 2L * 1, 1),
+ material.vVoltageMultiplier)) {
Logger.WARNING("Extruder Block Recipe: " + material.getLocalizedName() + " - Success");
} else {
Logger.WARNING("Extruder Block Recipe: " + material.getLocalizedName() + " - Failed");
@@ -76,7 +76,7 @@ public class RecipeGen_Extruder extends RecipeGen_Base {
// Plate Recipe
if (ItemUtils.checkForInvalidItems(material.getIngot(1))
- && ItemUtils.checkForInvalidItems(material.getPlate(1)))
+ && ItemUtils.checkForInvalidItems(material.getPlate(1)))
if (GT_Values.RA.addExtruderRecipe(itemIngot, shape_Plate, itemPlate, 10, material.vVoltageMultiplier)) {
Logger.WARNING("Extruder Plate Recipe: " + material.getLocalizedName() + " - Success");
} else {
@@ -87,11 +87,11 @@ public class RecipeGen_Extruder extends RecipeGen_Base {
if (ItemUtils.checkForInvalidItems(material.getIngot(1)) && ItemUtils.checkForInvalidItems(material.getRing(1)))
if (!material.isRadioactive) {
if (GT_Values.RA.addExtruderRecipe(
- itemIngot,
- shape_Ring,
- material.getRing(4),
- (int) Math.max(material.getMass() * 2L * 1, 1),
- material.vVoltageMultiplier)) {
+ itemIngot,
+ shape_Ring,
+ material.getRing(4),
+ (int) Math.max(material.getMass() * 2L * 1, 1),
+ material.vVoltageMultiplier)) {
Logger.WARNING("Extruder Ring Recipe: " + material.getLocalizedName() + " - Success");
} else {
Logger.WARNING("Extruder Ring Recipe: " + material.getLocalizedName() + " - Failed");
@@ -102,11 +102,11 @@ public class RecipeGen_Extruder extends RecipeGen_Base {
if (ItemUtils.checkForInvalidItems(material.getIngot(1)) && ItemUtils.checkForInvalidItems(material.getGear(1)))
if (!material.isRadioactive) {
if (GT_Values.RA.addExtruderRecipe(
- material.getIngot(4),
- shape_Gear,
- itemGear,
- (int) Math.max(material.getMass() * 5L, 1),
- material.vVoltageMultiplier)) {
+ material.getIngot(4),
+ shape_Gear,
+ itemGear,
+ (int) Math.max(material.getMass() * 5L, 1),
+ material.vVoltageMultiplier)) {
Logger.WARNING("Extruder Gear Recipe: " + material.getLocalizedName() + " - Success");
} else {
Logger.WARNING("Extruder Gear Recipe: " + material.getLocalizedName() + " - Failed");
@@ -116,25 +116,25 @@ public class RecipeGen_Extruder extends RecipeGen_Base {
// Rod Recipe
if (ItemUtils.checkForInvalidItems(material.getIngot(1)) && ItemUtils.checkForInvalidItems(material.getRod(1)))
if (GT_Values.RA.addExtruderRecipe(
- itemIngot,
- shape_Rod,
- material.getRod(2),
- (int) Math.max(material.getMass() * 2L * 1, 1),
- material.vVoltageMultiplier)) {
- Logger.WARNING("Extruder Rod Recipe: " + material.getLocalizedName() + " - Success");
- } else {
- Logger.WARNING("Extruder Rod Recipe: " + material.getLocalizedName() + " - Failed");
- }
+ itemIngot,
+ shape_Rod,
+ material.getRod(2),
+ (int) Math.max(material.getMass() * 2L * 1, 1),
+ material.vVoltageMultiplier)) {
+ Logger.WARNING("Extruder Rod Recipe: " + material.getLocalizedName() + " - Success");
+ } else {
+ Logger.WARNING("Extruder Rod Recipe: " + material.getLocalizedName() + " - Failed");
+ }
// Bolt Recipe
if (ItemUtils.checkForInvalidItems(material.getIngot(1)) && ItemUtils.checkForInvalidItems(material.getBolt(1)))
if (!material.isRadioactive) {
if (GT_Values.RA.addExtruderRecipe(
- itemIngot,
- shape_Bolt,
- material.getBolt(8),
- (int) Math.max(material.getMass() * 2L * 1, 1),
- material.vVoltageMultiplier)) {
+ itemIngot,
+ shape_Bolt,
+ material.getBolt(8),
+ (int) Math.max(material.getMass() * 2L * 1, 1),
+ material.vVoltageMultiplier)) {
Logger.WARNING("Extruder Bolt Recipe: " + material.getLocalizedName() + " - Success");
} else {
Logger.WARNING("Extruder Bolt Recipe: " + material.getLocalizedName() + " - Failed");
@@ -144,16 +144,16 @@ public class RecipeGen_Extruder extends RecipeGen_Base {
// Rotor Recipe
// Shape_Extruder_Rotor
if (ItemUtils.checkForInvalidItems(material.getIngot(1))
- && ItemUtils.checkForInvalidItems(material.getRotor(1)))
+ && ItemUtils.checkForInvalidItems(material.getRotor(1)))
if (GT_Values.RA.addExtruderRecipe(
- material.getIngot(5),
- ItemList.Shape_Extruder_Rotor.get(0),
- material.getRotor(1),
- (int) Math.max(material.getMass() * 5L * 1, 1),
- material.vVoltageMultiplier)) {
- Logger.WARNING("Extruder Rotor Recipe: " + material.getLocalizedName() + " - Success");
- } else {
- Logger.WARNING("Extruder Rotor Recipe: " + material.getLocalizedName() + " - Failed");
- }
+ material.getIngot(5),
+ ItemList.Shape_Extruder_Rotor.get(0),
+ material.getRotor(1),
+ (int) Math.max(material.getMass() * 5L * 1, 1),
+ material.vVoltageMultiplier)) {
+ Logger.WARNING("Extruder Rotor Recipe: " + material.getLocalizedName() + " - Success");
+ } else {
+ Logger.WARNING("Extruder Rotor Recipe: " + material.getLocalizedName() + " - Failed");
+ }
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_FluidCanning.java b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_FluidCanning.java
index ae6304a0c8..fb6dc807ef 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_FluidCanning.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_FluidCanning.java
@@ -60,7 +60,7 @@ public class RecipeGen_FluidCanning implements Runnable {
// Alternative Constructor
public RecipeGen_FluidCanning(boolean aExtracting, ItemStack aEmpty, ItemStack aFull, FluidStack aFluidIn,
- FluidStack aFluidOut, Integer aDuration, Integer aEUt) {
+ FluidStack aFluidOut, Integer aDuration, Integer aEUt) {
ItemStack aInput;
ItemStack aOutput;
FluidStack aFluidInput;
@@ -69,7 +69,7 @@ public class RecipeGen_FluidCanning implements Runnable {
// Safety check on the duration
if (aDuration == null || aDuration <= 0) {
aDuration = (aFluidIn != null) ? (aFluidIn.amount / 62)
- : ((aFluidOut != null) ? (aFluidOut.amount / 62) : 10);
+ : ((aFluidOut != null) ? (aFluidOut.amount / 62) : 10);
}
// Safety check on the EU
@@ -97,16 +97,16 @@ public class RecipeGen_FluidCanning implements Runnable {
// Check validity
GT_Recipe aRecipe = new GT_Recipe(
- true,
- new ItemStack[] { aInput },
- new ItemStack[] { aOutput },
- null,
- new int[] { 10000 },
- new FluidStack[] { aFluidInput },
- new FluidStack[] { aFluidOutput },
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aInput },
+ new ItemStack[] { aOutput },
+ null,
+ new int[] { 10000 },
+ new FluidStack[] { aFluidInput },
+ new FluidStack[] { aFluidOutput },
+ aDuration,
+ aEUt,
+ 0);
// Check Valid
boolean aTempValidityCheck = false;
@@ -160,28 +160,28 @@ public class RecipeGen_FluidCanning implements Runnable {
private void addFluidExtractionRecipe(GT_Recipe aRecipe) {
CORE.crash();
Logger.INFO(
- "[FE-Debug] " + aRecipe.mFluidOutputs[0].amount
- + "L of "
- + aRecipe.mFluidOutputs[0].getLocalizedName()
- + " fluid extractor from 1 "
- + aRecipe.mInputs[0].getDisplayName()
- + " - Success. Time: "
- + aRecipe.mDuration
- + ", Voltage: "
- + aRecipe.mEUt);
+ "[FE-Debug] " + aRecipe.mFluidOutputs[0].amount
+ + "L of "
+ + aRecipe.mFluidOutputs[0].getLocalizedName()
+ + " fluid extractor from 1 "
+ + aRecipe.mInputs[0].getDisplayName()
+ + " - Success. Time: "
+ + aRecipe.mDuration
+ + ", Voltage: "
+ + aRecipe.mEUt);
int aCount1 = getMapSize(RecipeMaps.fluidExtractionRecipes);
int aCount2 = aCount1;
RecipeMaps.fluidExtractionRecipes.addRecipe(aRecipe);
aCount1 = getMapSize(RecipeMaps.fluidExtractionRecipes);
if (aCount1 <= aCount2) {
Logger.INFO(
- "[ERROR] Failed adding Extraction recipe for " + ItemUtils.getArrayStackNames(aRecipe.mInputs)
- + ", "
- + ItemUtils.getArrayStackNames(aRecipe.mOutputs)
- + ", "
- + ItemUtils.getArrayStackNames(aRecipe.mFluidInputs)
- + ", "
- + ItemUtils.getArrayStackNames(aRecipe.mFluidOutputs));
+ "[ERROR] Failed adding Extraction recipe for " + ItemUtils.getArrayStackNames(aRecipe.mInputs)
+ + ", "
+ + ItemUtils.getArrayStackNames(aRecipe.mOutputs)
+ + ", "
+ + ItemUtils.getArrayStackNames(aRecipe.mFluidInputs)
+ + ", "
+ + ItemUtils.getArrayStackNames(aRecipe.mFluidOutputs));
dumpStack();
}
}
@@ -194,13 +194,13 @@ public class RecipeGen_FluidCanning implements Runnable {
aCount1 = getMapSize(RecipeMaps.fluidCannerRecipes);
if (aCount1 <= aCount2) {
Logger.INFO(
- "[ERROR] Failed adding Canning recipe for " + ItemUtils.getArrayStackNames(aRecipe.mInputs)
- + ", "
- + ItemUtils.getArrayStackNames(aRecipe.mOutputs)
- + ", "
- + ItemUtils.getArrayStackNames(aRecipe.mFluidInputs)
- + ", "
- + ItemUtils.getArrayStackNames(aRecipe.mFluidOutputs));
+ "[ERROR] Failed adding Canning recipe for " + ItemUtils.getArrayStackNames(aRecipe.mInputs)
+ + ", "
+ + ItemUtils.getArrayStackNames(aRecipe.mOutputs)
+ + ", "
+ + ItemUtils.getArrayStackNames(aRecipe.mFluidInputs)
+ + ", "
+ + ItemUtils.getArrayStackNames(aRecipe.mFluidOutputs));
dumpStack();
}
}
@@ -209,13 +209,14 @@ public class RecipeGen_FluidCanning implements Runnable {
int parents = 2;
for (int i = 0; i < 6; i++) {
Logger.INFO(
- (disableOptional ? "EXTRACTING" : "CANNING") + " DEBUG | "
- + (i == 0 ? "Called from: " : "Parent: ")
- + ReflectionUtils.getMethodName(i + parents));
+ (disableOptional ? "EXTRACTING" : "CANNING") + " DEBUG | "
+ + (i == 0 ? "Called from: " : "Parent: ")
+ + ReflectionUtils.getMethodName(i + parents));
}
}
private int getMapSize(RecipeMap<?> aMap) {
- return aMap.getAllRecipes().size();
+ return aMap.getAllRecipes()
+ .size();
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Fluids.java b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Fluids.java
index 0d5c218ab9..dd0c1b505c 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Fluids.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Fluids.java
@@ -41,18 +41,20 @@ public class RecipeGen_Fluids extends RecipeGen_Base {
}
// Melting Shapes to fluid
- if (material.getFluidStack(1) != null
- && !material.getFluidStack(1).getUnlocalizedName().toLowerCase().contains("plasma")) {
+ if (material.getFluidStack(1) != null && !material.getFluidStack(1)
+ .getUnlocalizedName()
+ .toLowerCase()
+ .contains("plasma")) {
// Making Shapes from fluid
// Ingot
if (ItemUtils.checkForInvalidItems(material.getIngot(1))) if (GT_Values.RA.addFluidSolidifierRecipe(
- ItemList.Shape_Mold_Ingot.get(0), // Item Shape
- material.getFluidStack(144), // Fluid Input
- material.getIngot(1), // output
- 32, // Duration
- material.vVoltageMultiplier // Eu Tick
+ ItemList.Shape_Mold_Ingot.get(0), // Item Shape
+ material.getFluidStack(144), // Fluid Input
+ material.getIngot(1), // output
+ 32, // Duration
+ material.vVoltageMultiplier // Eu Tick
)) {
Logger.WARNING("144l fluid molder for 1 ingot Recipe: " + material.getLocalizedName() + " - Success");
} else {
@@ -61,11 +63,11 @@ public class RecipeGen_Fluids extends RecipeGen_Base {
// Plate
if (ItemUtils.checkForInvalidItems(material.getPlate(1))) if (GT_Values.RA.addFluidSolidifierRecipe(
- ItemList.Shape_Mold_Plate.get(0), // Item Shape
- material.getFluidStack(144), // Fluid Input
- material.getPlate(1), // output
- 32, // Duration
- material.vVoltageMultiplier // Eu Tick
+ ItemList.Shape_Mold_Plate.get(0), // Item Shape
+ material.getFluidStack(144), // Fluid Input
+ material.getPlate(1), // output
+ 32, // Duration
+ material.vVoltageMultiplier // Eu Tick
)) {
Logger.WARNING("144l fluid molder for 1 plate Recipe: " + material.getLocalizedName() + " - Success");
} else {
@@ -74,11 +76,11 @@ public class RecipeGen_Fluids extends RecipeGen_Base {
// Nugget
if (ItemUtils.checkForInvalidItems(material.getNugget(1))) if (GT_Values.RA.addFluidSolidifierRecipe(
- ItemList.Shape_Mold_Nugget.get(0), // Item Shape
- material.getFluidStack(16), // Fluid Input
- material.getNugget(1), // output
- 16, // Duration
- material.vVoltageMultiplier // Eu Tick
+ ItemList.Shape_Mold_Nugget.get(0), // Item Shape
+ material.getFluidStack(16), // Fluid Input
+ material.getNugget(1), // output
+ 16, // Duration
+ material.vVoltageMultiplier // Eu Tick
)) {
Logger.WARNING("16l fluid molder for 1 nugget Recipe: " + material.getLocalizedName() + " - Success");
} else {
@@ -87,11 +89,11 @@ public class RecipeGen_Fluids extends RecipeGen_Base {
// Gears
if (ItemUtils.checkForInvalidItems(material.getGear(1))) if (GT_Values.RA.addFluidSolidifierRecipe(
- ItemList.Shape_Mold_Gear.get(0), // Item Shape
- material.getFluidStack(576), // Fluid Input
- material.getGear(1), // output
- 128, // Duration
- material.vVoltageMultiplier // Eu Tick
+ ItemList.Shape_Mold_Gear.get(0), // Item Shape
+ material.getFluidStack(576), // Fluid Input
+ material.getGear(1), // output
+ 128, // Duration
+ material.vVoltageMultiplier // Eu Tick
)) {
Logger.WARNING("576l fluid molder for 1 gear Recipe: " + material.getLocalizedName() + " - Success");
} else {
@@ -100,120 +102,110 @@ public class RecipeGen_Fluids extends RecipeGen_Base {
// Blocks
if (ItemUtils.checkForInvalidItems(material.getBlock(1))) if (GT_Values.RA.addFluidSolidifierRecipe(
- ItemList.Shape_Mold_Block.get(0), // Item Shape
- material.getFluidStack(144 * 9), // Fluid Input
- material.getBlock(1), // output
- 288, // Duration
- material.vVoltageMultiplier // Eu Tick
+ ItemList.Shape_Mold_Block.get(0), // Item Shape
+ material.getFluidStack(144 * 9), // Fluid Input
+ material.getBlock(1), // output
+ 288, // Duration
+ material.vVoltageMultiplier // Eu Tick
)) {
Logger.WARNING(
- (144 * 9) + "l fluid molder from 1 block Recipe: "
- + material.getLocalizedName()
- + " - Success");
+ (144 * 9) + "l fluid molder from 1 block Recipe: " + material.getLocalizedName() + " - Success");
} else {
Logger.WARNING(
- (144 * 9) + "l fluid molder from 1 block Recipe: " + material.getLocalizedName() + " - Failed");
+ (144 * 9) + "l fluid molder from 1 block Recipe: " + material.getLocalizedName() + " - Failed");
}
// GTNH
// Rod
if (ItemUtils.checkForInvalidItems(material.getRod(1))) if (GT_Values.RA.addFluidSolidifierRecipe(
- ItemList.Shape_Mold_Rod.get(0), // Item Shape
- material.getFluidStack(72), // Fluid Input
- material.getRod(1), // output
- 150, // Duration
- material.vVoltageMultiplier // Eu Tick
+ ItemList.Shape_Mold_Rod.get(0), // Item Shape
+ material.getFluidStack(72), // Fluid Input
+ material.getRod(1), // output
+ 150, // Duration
+ material.vVoltageMultiplier // Eu Tick
)) {
Logger.WARNING(
- (144 * 9) + "l fluid molder from 1 rod Recipe: " + material.getLocalizedName() + " - Success");
+ (144 * 9) + "l fluid molder from 1 rod Recipe: " + material.getLocalizedName() + " - Success");
} else {
Logger.WARNING(
- (144 * 9) + "l fluid molder from 1 rod Recipe: " + material.getLocalizedName() + " - Failed");
+ (144 * 9) + "l fluid molder from 1 rod Recipe: " + material.getLocalizedName() + " - Failed");
}
// Rod Long
if (ItemUtils.checkForInvalidItems(material.getLongRod(1))) if (GT_Values.RA.addFluidSolidifierRecipe(
- ItemList.Shape_Mold_Rod_Long.get(0), // Item
- // Shape
- material.getFluidStack(144), // Fluid Input
- material.getLongRod(1), // output
- 300, // Duration
- material.vVoltageMultiplier // Eu Tick
+ ItemList.Shape_Mold_Rod_Long.get(0), // Item
+ // Shape
+ material.getFluidStack(144), // Fluid Input
+ material.getLongRod(1), // output
+ 300, // Duration
+ material.vVoltageMultiplier // Eu Tick
)) {
Logger.WARNING(
- (144 * 9) + "l fluid molder from 1 rod long Recipe: "
- + material.getLocalizedName()
- + " - Success");
+ (144 * 9) + "l fluid molder from 1 rod long Recipe: " + material.getLocalizedName() + " - Success");
} else {
Logger.WARNING(
- (144 * 9) + "l fluid molder from 1 rod long Recipe: "
- + material.getLocalizedName()
- + " - Failed");
+ (144 * 9) + "l fluid molder from 1 rod long Recipe: " + material.getLocalizedName() + " - Failed");
}
// Bolt
if (ItemUtils.checkForInvalidItems(material.getBolt(1))) if (GT_Values.RA.addFluidSolidifierRecipe(
- ItemList.Shape_Mold_Bolt.get(0), // Item Shape
- material.getFluidStack(18), // Fluid Input
- material.getBolt(1), // output
- 50, // Duration
- material.vVoltageMultiplier // Eu Tick
+ ItemList.Shape_Mold_Bolt.get(0), // Item Shape
+ material.getFluidStack(18), // Fluid Input
+ material.getBolt(1), // output
+ 50, // Duration
+ material.vVoltageMultiplier // Eu Tick
)) {
Logger.WARNING(
- (144 * 9) + "l fluid molder from 1 bolt Recipe: " + material.getLocalizedName() + " - Success");
+ (144 * 9) + "l fluid molder from 1 bolt Recipe: " + material.getLocalizedName() + " - Success");
} else {
Logger.WARNING(
- (144 * 9) + "l fluid molder from 1 bolt Recipe: " + material.getLocalizedName() + " - Failed");
+ (144 * 9) + "l fluid molder from 1 bolt Recipe: " + material.getLocalizedName() + " - Failed");
}
// Screw
if (ItemUtils.checkForInvalidItems(material.getScrew(1))) if (GT_Values.RA.addFluidSolidifierRecipe(
- ItemList.Shape_Mold_Screw.get(0), // Item Shape
- material.getFluidStack(18), // Fluid Input
- material.getScrew(1), // output
- 50, // Duration
- material.vVoltageMultiplier // Eu Tick
+ ItemList.Shape_Mold_Screw.get(0), // Item Shape
+ material.getFluidStack(18), // Fluid Input
+ material.getScrew(1), // output
+ 50, // Duration
+ material.vVoltageMultiplier // Eu Tick
)) {
Logger.WARNING(
- (144 * 9) + "l fluid molder from 1 screw Recipe: "
- + material.getLocalizedName()
- + " - Success");
+ (144 * 9) + "l fluid molder from 1 screw Recipe: " + material.getLocalizedName() + " - Success");
} else {
Logger.WARNING(
- (144 * 9) + "l fluid molder from 1 screw Recipe: " + material.getLocalizedName() + " - Failed");
+ (144 * 9) + "l fluid molder from 1 screw Recipe: " + material.getLocalizedName() + " - Failed");
}
// Ring
if (ItemUtils.checkForInvalidItems(material.getRing(1))) if (GT_Values.RA.addFluidSolidifierRecipe(
- ItemList.Shape_Mold_Ring.get(0), // Item Shape
- material.getFluidStack(36), // Fluid Input
- material.getRing(1), // output
- 100, // Duration
- material.vVoltageMultiplier // Eu Tick
+ ItemList.Shape_Mold_Ring.get(0), // Item Shape
+ material.getFluidStack(36), // Fluid Input
+ material.getRing(1), // output
+ 100, // Duration
+ material.vVoltageMultiplier // Eu Tick
)) {
Logger.WARNING(
- (144 * 9) + "l fluid molder from 1 ring Recipe: " + material.getLocalizedName() + " - Success");
+ (144 * 9) + "l fluid molder from 1 ring Recipe: " + material.getLocalizedName() + " - Success");
} else {
Logger.WARNING(
- (144 * 9) + "l fluid molder from 1 ring Recipe: " + material.getLocalizedName() + " - Failed");
+ (144 * 9) + "l fluid molder from 1 ring Recipe: " + material.getLocalizedName() + " - Failed");
}
// Rotor
if (ItemUtils.checkForInvalidItems(material.getRotor(1))) if (GT_Values.RA.addFluidSolidifierRecipe(
- ItemList.Shape_Mold_Rotor.get(0), // Item Shape
- material.getFluidStack(612), // Fluid Input
- material.getRotor(1), // output
- 100, // Duration
- material.vVoltageMultiplier // Eu Tick
+ ItemList.Shape_Mold_Rotor.get(0), // Item Shape
+ material.getFluidStack(612), // Fluid Input
+ material.getRotor(1), // output
+ 100, // Duration
+ material.vVoltageMultiplier // Eu Tick
)) {
Logger.WARNING(
- (144 * 9) + "l fluid molder from 1 rotor Recipe: "
- + material.getLocalizedName()
- + " - Success");
+ (144 * 9) + "l fluid molder from 1 rotor Recipe: " + material.getLocalizedName() + " - Success");
} else {
Logger.WARNING(
- (144 * 9) + "l fluid molder from 1 rotor Recipe: " + material.getLocalizedName() + " - Failed");
+ (144 * 9) + "l fluid molder from 1 rotor Recipe: " + material.getLocalizedName() + " - Failed");
}
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Fluorite.java b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Fluorite.java
index 7a1404caae..a3ba819fb6 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Fluorite.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Fluorite.java
@@ -36,95 +36,77 @@ public class RecipeGen_Fluorite extends RecipeGen_Base {
* Shaped Crafting
*/
RecipeUtils.addShapedRecipe(
- CI.craftingToolHammer_Hard,
- null,
- null,
- material.getCrushedPurified(1),
- null,
- null,
- null,
- null,
- null,
- material.getDustPurified(1));
+ CI.craftingToolHammer_Hard,
+ null,
+ null,
+ material.getCrushedPurified(1),
+ null,
+ null,
+ null,
+ null,
+ null,
+ material.getDustPurified(1));
RecipeUtils.addShapedRecipe(
- CI.craftingToolHammer_Hard,
- null,
- null,
- material.getCrushed(1),
- null,
- null,
- null,
- null,
- null,
- material.getDustImpure(1));
+ CI.craftingToolHammer_Hard,
+ null,
+ null,
+ material.getCrushed(1),
+ null,
+ null,
+ null,
+ null,
+ null,
+ material.getDustImpure(1));
RecipeUtils.addShapedRecipe(
- CI.craftingToolHammer_Hard,
- null,
- null,
- material.getCrushedCentrifuged(1),
- null,
- null,
- null,
- null,
- null,
- material.getDust(1));
+ CI.craftingToolHammer_Hard,
+ null,
+ null,
+ material.getCrushedCentrifuged(1),
+ null,
+ null,
+ null,
+ null,
+ null,
+ material.getDust(1));
final ItemStack normalDust = material.getDust(1);
final ItemStack smallDust = material.getSmallDust(1);
final ItemStack tinyDust = material.getTinyDust(1);
if (RecipeUtils.addShapedRecipe(
- tinyDust,
- tinyDust,
- tinyDust,
- tinyDust,
- tinyDust,
- tinyDust,
- tinyDust,
- tinyDust,
- tinyDust,
- normalDust)) {
+ tinyDust,
+ tinyDust,
+ tinyDust,
+ tinyDust,
+ tinyDust,
+ tinyDust,
+ tinyDust,
+ tinyDust,
+ tinyDust,
+ normalDust)) {
Logger.WARNING("9 Tiny dust to 1 Dust Recipe: " + material.getLocalizedName() + " - Success");
} else {
Logger.WARNING("9 Tiny dust to 1 Dust Recipe: " + material.getLocalizedName() + " - Failed");
}
if (RecipeUtils
- .addShapedRecipe(normalDust, null, null, null, null, null, null, null, null, material.getTinyDust(9))) {
+ .addShapedRecipe(normalDust, null, null, null, null, null, null, null, null, material.getTinyDust(9))) {
Logger.WARNING("9 Tiny dust from 1 Recipe: " + material.getLocalizedName() + " - Success");
} else {
Logger.WARNING("9 Tiny dust from 1 Recipe: " + material.getLocalizedName() + " - Failed");
}
- if (RecipeUtils.addShapedRecipe(
- smallDust,
- smallDust,
- null,
- smallDust,
- smallDust,
- null,
- null,
- null,
- null,
- normalDust)) {
+ if (RecipeUtils
+ .addShapedRecipe(smallDust, smallDust, null, smallDust, smallDust, null, null, null, null, normalDust)) {
Logger.WARNING("4 Small dust to 1 Dust Recipe: " + material.getLocalizedName() + " - Success");
} else {
Logger.WARNING("4 Small dust to 1 Dust Recipe: " + material.getLocalizedName() + " - Failed");
}
- if (RecipeUtils.addShapedRecipe(
- null,
- normalDust,
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- material.getSmallDust(4))) {
+ if (RecipeUtils
+ .addShapedRecipe(null, normalDust, null, null, null, null, null, null, null, material.getSmallDust(4))) {
Logger.WARNING("4 Small dust from 1 Dust Recipe: " + material.getLocalizedName() + " - Success");
} else {
Logger.WARNING("4 Small dust from 1 Dust Recipe: " + material.getLocalizedName() + " - Failed");
@@ -152,7 +134,7 @@ public class RecipeGen_Fluorite extends RecipeGen_Base {
*/
// Allow ore dusts to be packaged
if (ItemUtils.checkForInvalidItems(material.getSmallDust(1))
- && ItemUtils.checkForInvalidItems(material.getTinyDust(1))) {
+ && ItemUtils.checkForInvalidItems(material.getTinyDust(1))) {
RecipeGen_DustGeneration.generatePackagerRecipes(material);
}
@@ -161,59 +143,61 @@ public class RecipeGen_Fluorite extends RecipeGen_Base {
*/
// Macerate ore to Crushed
if (GT_Values.RA.addPulveriserRecipe(
- material.getOre(1),
- new ItemStack[] { material.getCrushed(2) },
- new int[] { 10000 },
- 20 * 20,
- tVoltageMultiplier / 2)) {
+ material.getOre(1),
+ new ItemStack[] { material.getCrushed(2) },
+ new int[] { 10000 },
+ 20 * 20,
+ tVoltageMultiplier / 2)) {
Logger.MATERIALS("[Macerator] Added Recipe: 'Macerate ore to Crushed ore'");
}
// Macerate raw ore to Crushed
if (GT_Values.RA.addPulveriserRecipe(
- material.getRawOre(1),
- new ItemStack[] { material.getCrushed(2) },
- new int[] { 10000 },
- 20 * 20,
- tVoltageMultiplier / 2)) {
+ material.getRawOre(1),
+ new ItemStack[] { material.getCrushed(2) },
+ new int[] { 10000 },
+ 20 * 20,
+ tVoltageMultiplier / 2)) {
Logger.MATERIALS("[Macerator] Added Recipe: 'Macerate raw ore to Crushed ore'");
}
// Macerate Centrifuged to Pure Dust
if (GT_Values.RA.addPulveriserRecipe(
- material.getCrushedCentrifuged(1),
- new ItemStack[] { matDust, matDustA },
- new int[] { 10000, 1000 },
- 20 * 20,
- tVoltageMultiplier / 2)) {
+ material.getCrushedCentrifuged(1),
+ new ItemStack[] { matDust, matDustA },
+ new int[] { 10000, 1000 },
+ 20 * 20,
+ tVoltageMultiplier / 2)) {
Logger.MATERIALS("[Macerator] Added Recipe: 'Macerate Centrifuged ore to Pure Dust'");
}
if (GT_ModHandler.addThermalCentrifugeRecipe(
- material.getCrushedPurified(1),
- (int) Math.min(5000L, Math.abs(material.getMass() * 20L)),
- material.getCrushedCentrifuged(1),
- tinyDustA,
- dustStone)) {
+ material.getCrushedPurified(1),
+ (int) Math.min(5000L, Math.abs(material.getMass() * 20L)),
+ material.getCrushedCentrifuged(1),
+ tinyDustA,
+ dustStone)) {
Logger.MATERIALS(
- "[ThermalCentrifuge] Added Recipe: 'Washed ore to Centrifuged Ore' | Input: "
- + material.getCrushedPurified(1).getDisplayName()
- + " | Outputs: "
- + material.getCrushedCentrifuged(1).getDisplayName()
- + ", "
- + tinyDustA.getDisplayName()
- + ", "
- + dustStone.getDisplayName()
- + ".");
+ "[ThermalCentrifuge] Added Recipe: 'Washed ore to Centrifuged Ore' | Input: "
+ + material.getCrushedPurified(1)
+ .getDisplayName()
+ + " | Outputs: "
+ + material.getCrushedCentrifuged(1)
+ .getDisplayName()
+ + ", "
+ + tinyDustA.getDisplayName()
+ + ", "
+ + dustStone.getDisplayName()
+ + ".");
}
GT_Values.RA.addChemicalBathRecipe(
- FLUORIDES.FLUORITE.getCrushed(2),
- FluidUtils.getFluidStack("hydrogen", 2000),
- FLUORIDES.FLUORITE.getCrushedPurified(8),
- FLUORIDES.FLUORITE.getDustImpure(4),
- FLUORIDES.FLUORITE.getDustPurified(2),
- new int[] { 10000, 5000, 1000 },
- 30 * 20,
- 240);
+ FLUORIDES.FLUORITE.getCrushed(2),
+ FluidUtils.getFluidStack("hydrogen", 2000),
+ FLUORIDES.FLUORITE.getCrushedPurified(8),
+ FLUORIDES.FLUORITE.getDustImpure(4),
+ FLUORIDES.FLUORITE.getDustPurified(2),
+ new int[] { 10000, 5000, 1000 },
+ 30 * 20,
+ 240);
/**
* Forge Hammer
@@ -227,37 +211,37 @@ public class RecipeGen_Fluorite extends RecipeGen_Base {
*/
// Purified Dust to Clean
if (GT_Values.RA.addCentrifugeRecipe(
- material.getDustPurified(1),
- null,
- null, // In Fluid
- null, // Out Fluid
- matDust,
- tinyDustA,
- null,
- null,
- null,
- null,
- new int[] { 10000, 10000 }, // Chances
- (int) Math.max(1L, material.getMass() * 8L), // Time
- tVoltageMultiplier / 2)) { // Eu
+ material.getDustPurified(1),
+ null,
+ null, // In Fluid
+ null, // Out Fluid
+ matDust,
+ tinyDustA,
+ null,
+ null,
+ null,
+ null,
+ new int[] { 10000, 10000 }, // Chances
+ (int) Math.max(1L, material.getMass() * 8L), // Time
+ tVoltageMultiplier / 2)) { // Eu
Logger.MATERIALS("[Centrifuge] Added Recipe: Purified Dust to Clean Dust");
}
// Impure Dust to Clean
if (GT_Values.RA.addCentrifugeRecipe(
- material.getDustImpure(1),
- null,
- null, // In Fluid
- null, // Out Fluid
- matDust,
- tinyDustB,
- null,
- null,
- null,
- null,
- new int[] { 10000, 10000 }, // Chances
- (int) Math.max(1L, material.getMass() * 8L), // Time
- tVoltageMultiplier / 2)) { // Eu
+ material.getDustImpure(1),
+ null,
+ null, // In Fluid
+ null, // Out Fluid
+ matDust,
+ tinyDustB,
+ null,
+ null,
+ null,
+ null,
+ new int[] { 10000, 10000 }, // Chances
+ (int) Math.max(1L, material.getMass() * 8L), // Time
+ tVoltageMultiplier / 2)) { // Eu
Logger.MATERIALS("[Centrifuge] Added Recipe: Inpure Dust to Clean Dust");
}
@@ -268,16 +252,16 @@ public class RecipeGen_Fluorite extends RecipeGen_Base {
}
CORE.RA.addDehydratorRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(5), FLUORIDES.FLUORITE.getDust(37), },
- FluidUtils.getFluidStack("sulfuricacid", 8000),
- aGregtechHydro, // Fluid output (slot 2)
- new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustCalciumSulfate", 15),
- ItemUtils.getItemStackOfAmountFromOreDict("dustSilver", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustGold", 2),
- ItemUtils.getItemStackOfAmountFromOreDict("dustTin", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustCopper", 2) },
- new int[] { 10000, 1000, 1000, 3000, 2000 },
- 10 * 60 * 20,
- 240); // EU
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(5), FLUORIDES.FLUORITE.getDust(37), },
+ FluidUtils.getFluidStack("sulfuricacid", 8000),
+ aGregtechHydro, // Fluid output (slot 2)
+ new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustCalciumSulfate", 15),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustSilver", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustGold", 2),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustTin", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustCopper", 2) },
+ new int[] { 10000, 1000, 1000, 3000, 2000 },
+ 10 * 60 * 20,
+ 240); // EU
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_MaterialProcessing.java b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_MaterialProcessing.java
index 11475c1024..83bbe6a6d7 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_MaterialProcessing.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_MaterialProcessing.java
@@ -80,27 +80,32 @@ public class RecipeGen_MaterialProcessing extends RecipeGen_Base {
int mCounter = 0;
for (Pair<Integer, Material> f : componentMap) {
- if (f.getValue().getState() != MaterialState.SOLID) {
+ if (f.getValue()
+ .getState() != MaterialState.SOLID) {
Logger.MATERIALS(
- "[Centrifuge] Found Fluid Component, adding " + f.getKey()
- + " cells of "
- + f.getValue().getLocalizedName()
- + ".");
- mInternalOutputs[mCounter++] = f.getValue().getCell(f.getKey());
+ "[Centrifuge] Found Fluid Component, adding " + f.getKey()
+ + " cells of "
+ + f.getValue()
+ .getLocalizedName()
+ + ".");
+ mInternalOutputs[mCounter++] = f.getValue()
+ .getCell(f.getKey());
mCellCount += f.getKey();
mTotalCount += f.getKey();
Logger.MATERIALS(
- "[Centrifuge] In total, adding " + mCellCount
- + " cells for "
- + material.getLocalizedName()
- + " processing.");
+ "[Centrifuge] In total, adding " + mCellCount
+ + " cells for "
+ + material.getLocalizedName()
+ + " processing.");
} else {
Logger.MATERIALS(
- "[Centrifuge] Found Solid Component, adding " + f.getKey()
- + " dusts of "
- + f.getValue().getLocalizedName()
- + ".");
- mInternalOutputs[mCounter++] = f.getValue().getDust(f.getKey());
+ "[Centrifuge] Found Solid Component, adding " + f.getKey()
+ + " dusts of "
+ + f.getValue()
+ .getLocalizedName()
+ + ".");
+ mInternalOutputs[mCounter++] = f.getValue()
+ .getDust(f.getKey());
mTotalCount += f.getKey();
}
}
@@ -108,9 +113,9 @@ public class RecipeGen_MaterialProcessing extends RecipeGen_Base {
// Build Output Array
for (int g = 0; g < mInternalOutputs.length; g++) {
Logger.MATERIALS(
- "[Centrifuge] Is output[" + g
- + "] valid with a chance? "
- + (mInternalOutputs[g] != null ? 10000 : 0));
+ "[Centrifuge] Is output[" + g
+ + "] valid with a chance? "
+ + (mInternalOutputs[g] != null ? 10000 : 0));
mChances[g] = (mInternalOutputs[g] != null ? 10000 : 0);
}
@@ -123,19 +128,19 @@ public class RecipeGen_MaterialProcessing extends RecipeGen_Base {
ItemStack mainDust = material.getDust(material.smallestStackSizeWhenProcessing);
if (mainDust != null) {
Logger.MATERIALS(
- "[Centrifuge] Recipe now requires " + material.smallestStackSizeWhenProcessing
- + "x "
- + mainDust.getDisplayName()
- + " as input.");
+ "[Centrifuge] Recipe now requires " + material.smallestStackSizeWhenProcessing
+ + "x "
+ + mainDust.getDisplayName()
+ + " as input.");
} else {
mainDust = material.getDust(mTotalCount);
Logger.MATERIALS("[Centrifuge] Could not find valid input dust, trying alternative.");
if (mainDust != null) {
Logger.MATERIALS(
- "[Centrifuge] Recipe now requires " + mTotalCount
- + "x "
- + mainDust.getDisplayName()
- + " as input.");
+ "[Centrifuge] Recipe now requires " + mTotalCount
+ + "x "
+ + mainDust.getDisplayName()
+ + " as input.");
} else {
Logger.MATERIALS("[Centrifuge] Could not find valid input dust, exiting.");
}
@@ -147,39 +152,40 @@ public class RecipeGen_MaterialProcessing extends RecipeGen_Base {
Logger.MATERIALS("[Centrifuge] Set slot " + j + " to null.");
} else {
Logger.MATERIALS(
- "[Centrifuge] Set slot " + j + " to " + mInternalOutputs[j].getDisplayName() + ".");
+ "[Centrifuge] Set slot " + j + " to " + mInternalOutputs[j].getDisplayName() + ".");
}
}
try {
if (addCentrifgeRecipe(
- mainDust,
- emptyCell, // input 2
- null, // Input fluid 1
- null, // Output fluid 1
- mInternalOutputs[0],
- mInternalOutputs[1],
- mInternalOutputs[2],
- mInternalOutputs[3],
- mInternalOutputs[4],
- mInternalOutputs[5],
- mChances,
- 20 * 1 * (tVoltageMultiplier / 10),
- tVoltageMultiplier)) {
+ mainDust,
+ emptyCell, // input 2
+ null, // Input fluid 1
+ null, // Output fluid 1
+ mInternalOutputs[0],
+ mInternalOutputs[1],
+ mInternalOutputs[2],
+ mInternalOutputs[3],
+ mInternalOutputs[4],
+ mInternalOutputs[5],
+ mChances,
+ 20 * 1 * (tVoltageMultiplier / 10),
+ tVoltageMultiplier)) {
Logger.MATERIALS(
- "[Centrifuge] Generated Centrifuge recipe for " + material.getDust(1).getDisplayName());
+ "[Centrifuge] Generated Centrifuge recipe for " + material.getDust(1)
+ .getDisplayName());
} else {
Logger.MATERIALS(
- "[Centrifuge] Failed to generate Centrifuge recipe for "
- + material.getDust(1).getDisplayName());
+ "[Centrifuge] Failed to generate Centrifuge recipe for " + material.getDust(1)
+ .getDisplayName());
}
} catch (Throwable t) {
t.printStackTrace();
}
} else if (componentMap.size() > 6 && componentMap.size() <= 9) {
Logger.MATERIALS(
- "[Issue][Electrolyzer] " + material.getLocalizedName()
- + " is composed of over 6 materials, so an electrolyzer recipe for processing cannot be generated. Trying to create one for the Dehydrator instead.");
+ "[Issue][Electrolyzer] " + material.getLocalizedName()
+ + " is composed of over 6 materials, so an electrolyzer recipe for processing cannot be generated. Trying to create one for the Dehydrator instead.");
ItemStack mInternalOutputs[] = new ItemStack[9];
int mChances[] = new int[9];
@@ -189,27 +195,32 @@ public class RecipeGen_MaterialProcessing extends RecipeGen_Base {
int mCounter = 0;
for (Pair<Integer, Material> f : componentMap) {
- if (f.getValue().getState() != MaterialState.SOLID) {
+ if (f.getValue()
+ .getState() != MaterialState.SOLID) {
Logger.MATERIALS(
- "[Dehydrator] Found Fluid Component, adding " + f.getKey()
- + " cells of "
- + f.getValue().getLocalizedName()
- + ".");
- mInternalOutputs[mCounter++] = f.getValue().getCell(f.getKey());
+ "[Dehydrator] Found Fluid Component, adding " + f.getKey()
+ + " cells of "
+ + f.getValue()
+ .getLocalizedName()
+ + ".");
+ mInternalOutputs[mCounter++] = f.getValue()
+ .getCell(f.getKey());
mCellCount += f.getKey();
mTotalCount += f.getKey();
Logger.MATERIALS(
- "[Dehydrator] In total, adding " + mCellCount
- + " cells for "
- + material.getLocalizedName()
- + " processing.");
+ "[Dehydrator] In total, adding " + mCellCount
+ + " cells for "
+ + material.getLocalizedName()
+ + " processing.");
} else {
Logger.MATERIALS(
- "[Dehydrator] Found Solid Component, adding " + f.getKey()
- + " dusts of "
- + f.getValue().getLocalizedName()
- + ".");
- mInternalOutputs[mCounter++] = f.getValue().getDust(f.getKey());
+ "[Dehydrator] Found Solid Component, adding " + f.getKey()
+ + " dusts of "
+ + f.getValue()
+ .getLocalizedName()
+ + ".");
+ mInternalOutputs[mCounter++] = f.getValue()
+ .getDust(f.getKey());
mTotalCount += f.getKey();
}
}
@@ -217,9 +228,9 @@ public class RecipeGen_MaterialProcessing extends RecipeGen_Base {
// Build Output Array
for (int g = 0; g < mInternalOutputs.length; g++) {
Logger.MATERIALS(
- "[Dehydrator] Is output[" + g
- + "] valid with a chance? "
- + (mInternalOutputs[g] != null ? 10000 : 0));
+ "[Dehydrator] Is output[" + g
+ + "] valid with a chance? "
+ + (mInternalOutputs[g] != null ? 10000 : 0));
mChances[g] = (mInternalOutputs[g] != null ? 10000 : 0);
}
@@ -232,19 +243,19 @@ public class RecipeGen_MaterialProcessing extends RecipeGen_Base {
ItemStack mainDust = material.getDust(material.smallestStackSizeWhenProcessing);
if (mainDust != null) {
Logger.MATERIALS(
- "[Dehydrator] Recipe now requires " + material.smallestStackSizeWhenProcessing
- + "x "
- + mainDust.getDisplayName()
- + " as input.");
+ "[Dehydrator] Recipe now requires " + material.smallestStackSizeWhenProcessing
+ + "x "
+ + mainDust.getDisplayName()
+ + " as input.");
} else {
mainDust = material.getDust(mTotalCount);
Logger.MATERIALS("[Dehydrator] Could not find valid input dust, trying alternative.");
if (mainDust != null) {
Logger.MATERIALS(
- "[Dehydrator] Recipe now requires " + mTotalCount
- + "x "
- + mainDust.getDisplayName()
- + " as input.");
+ "[Dehydrator] Recipe now requires " + mTotalCount
+ + "x "
+ + mainDust.getDisplayName()
+ + " as input.");
} else {
Logger.MATERIALS("[Dehydrator] Could not find valid input dust, exiting.");
}
@@ -256,26 +267,27 @@ public class RecipeGen_MaterialProcessing extends RecipeGen_Base {
Logger.MATERIALS("[Dehydrator] Set slot " + j + " to null.");
} else {
Logger.MATERIALS(
- "[Dehydrator] Set slot " + j + " to " + mInternalOutputs[j].getDisplayName() + ".");
+ "[Dehydrator] Set slot " + j + " to " + mInternalOutputs[j].getDisplayName() + ".");
}
}
try {
if (CORE.RA.addDehydratorRecipe(
- new ItemStack[] { mainDust, emptyCell },
- null,
- null,
- mInternalOutputs,
- mChances,
- 20 * 1 * (tVoltageMultiplier / 10),
- tVoltageMultiplier)) {
+ new ItemStack[] { mainDust, emptyCell },
+ null,
+ null,
+ mInternalOutputs,
+ mChances,
+ 20 * 1 * (tVoltageMultiplier / 10),
+ tVoltageMultiplier)) {
Logger.MATERIALS(
- "[Dehydrator] Generated Dehydrator recipe for " + material.getDust(1).getDisplayName());
+ "[Dehydrator] Generated Dehydrator recipe for " + material.getDust(1)
+ .getDisplayName());
} else {
Logger.MATERIALS(
- "[Dehydrator] Failed to generate Dehydrator recipe for "
- + material.getDust(1).getDisplayName());
+ "[Dehydrator] Failed to generate Dehydrator recipe for " + material.getDust(1)
+ .getDisplayName());
}
} catch (Throwable t) {
t.printStackTrace();
@@ -286,21 +298,21 @@ public class RecipeGen_MaterialProcessing extends RecipeGen_Base {
@Deprecated
public static boolean addCentrifgeRecipe(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 GT_Values.RA.addCentrifugeRecipe(
- aInput1,
- aInput2,
- aFluidInput,
- aFluidOutput,
- aOutput1,
- aOutput2,
- aOutput3,
- aOutput4,
- aOutput5,
- aOutput6,
- aChances,
- aDuration,
- aEUt);
+ aInput1,
+ aInput2,
+ aFluidInput,
+ aFluidOutput,
+ aOutput1,
+ aOutput2,
+ aOutput3,
+ aOutput4,
+ aOutput5,
+ aOutput6,
+ aChances,
+ aDuration,
+ aEUt);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_MetalRecipe.java b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_MetalRecipe.java
index f90c497edb..f11b97cbda 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_MetalRecipe.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_MetalRecipe.java
@@ -34,7 +34,7 @@ public class RecipeGen_MetalRecipe extends RecipeGen_Base {
Logger.WARNING("Generating Metal recipes for " + material.getLocalizedName());
if (ItemUtils.checkForInvalidItems(material.getIngot(1))
- && ItemUtils.checkForInvalidItems(material.getBlock(1)))
+ && ItemUtils.checkForInvalidItems(material.getBlock(1)))
if (GT_ModHandler.addCompressionRecipe(material.getIngot(9), material.getBlock(1))) {
Logger.WARNING("Compress Block Recipe: " + material.getLocalizedName() + " - Success");
} else {
@@ -43,70 +43,70 @@ public class RecipeGen_MetalRecipe extends RecipeGen_Base {
if (ItemUtils.checkForInvalidItems(material.getIngot(1)) && ItemUtils.checkForInvalidItems(material.getRod(1)))
if (GT_Values.RA.addLatheRecipe(
- material.getIngot(1),
- material.getRod(1),
- material.getSmallDust(2),
- (int) Math.max(material.getMass() / 8L, 1L),
- material.vVoltageMultiplier)) {
- Logger.WARNING("Lathe Rod Recipe: " + material.getLocalizedName() + " - Success");
- } else {
- Logger.WARNING("Lathe Rod Recipe: " + material.getLocalizedName() + " - Failed");
- }
+ material.getIngot(1),
+ material.getRod(1),
+ material.getSmallDust(2),
+ (int) Math.max(material.getMass() / 8L, 1L),
+ material.vVoltageMultiplier)) {
+ Logger.WARNING("Lathe Rod Recipe: " + material.getLocalizedName() + " - Success");
+ } else {
+ Logger.WARNING("Lathe Rod Recipe: " + material.getLocalizedName() + " - Failed");
+ }
if (ItemUtils.checkForInvalidItems(material.getRod(1)) && ItemUtils.checkForInvalidItems(material.getBolt(1)))
if (GT_Values.RA.addCutterRecipe(
- material.getRod(1),
- material.getBolt(4),
- null,
- (int) Math.max(material.getMass() * 2L, 1L),
- material.vVoltageMultiplier)) {
- Logger.WARNING("Cut Bolt Recipe: " + material.getLocalizedName() + " - Success");
- } else {
- Logger.WARNING("Cut Bolt Recipe: " + material.getLocalizedName() + " - Failed");
- }
+ material.getRod(1),
+ material.getBolt(4),
+ null,
+ (int) Math.max(material.getMass() * 2L, 1L),
+ material.vVoltageMultiplier)) {
+ Logger.WARNING("Cut Bolt Recipe: " + material.getLocalizedName() + " - Success");
+ } else {
+ Logger.WARNING("Cut Bolt Recipe: " + material.getLocalizedName() + " - Failed");
+ }
if (ItemUtils.checkForInvalidItems(material.getIngot(1))
- && ItemUtils.checkForInvalidItems(material.getHotIngot(1)))
+ && ItemUtils.checkForInvalidItems(material.getHotIngot(1)))
if (CORE.RA.addVacuumFreezerRecipe(
- material.getHotIngot(1),
- material.getIngot(1),
- (int) Math.max(material.getMass() * 3L, 1L),
- material.vVoltageMultiplier)) {
- Logger.WARNING("Cool Hot Ingot Recipe: " + material.getLocalizedName() + " - Success");
- } else {
- Logger.WARNING("Cool Hot Ingot Recipe: " + material.getLocalizedName() + " - Failed");
- }
+ material.getHotIngot(1),
+ material.getIngot(1),
+ (int) Math.max(material.getMass() * 3L, 1L),
+ material.vVoltageMultiplier)) {
+ Logger.WARNING("Cool Hot Ingot Recipe: " + material.getLocalizedName() + " - Success");
+ } else {
+ Logger.WARNING("Cool Hot Ingot Recipe: " + material.getLocalizedName() + " - Failed");
+ }
if (ItemUtils.checkForInvalidItems(material.getRod(1))
- && ItemUtils.checkForInvalidItems(material.getLongRod(1))) {
+ && ItemUtils.checkForInvalidItems(material.getLongRod(1))) {
if (GT_Values.RA.addForgeHammerRecipe(
- material.getRod(2),
- material.getLongRod(1),
- (int) Math.max(material.getMass(), 1L),
- 16)) {
+ material.getRod(2),
+ material.getLongRod(1),
+ (int) Math.max(material.getMass(), 1L),
+ 16)) {
Logger.WARNING("Hammer Long Rod Recipe: " + material.getLocalizedName() + " - Success");
} else {
Logger.WARNING("Hammer Long Rod Recipe: " + material.getLocalizedName() + " - Failed");
}
GT_Values.RA.addCutterRecipe(
- material.getLongRod(1),
- material.getRod(2),
- null,
- (int) Math.max(material.getMass(), 1L),
- 4);
+ material.getLongRod(1),
+ material.getRod(2),
+ null,
+ (int) Math.max(material.getMass(), 1L),
+ 4);
}
if (ItemUtils.checkForInvalidItems(material.getBolt(1)) && ItemUtils.checkForInvalidItems(material.getScrew(1)))
if (GT_Values.RA.addLatheRecipe(
- material.getBolt(1),
- material.getScrew(1),
- null,
- (int) Math.max(material.getMass() / 8L, 1L),
- 4)) {
- Logger.WARNING("Lathe Screw Recipe: " + material.getLocalizedName() + " - Success");
- } else {
- Logger.WARNING("Lathe Screw Recipe: " + material.getLocalizedName() + " - Failed");
- }
+ material.getBolt(1),
+ material.getScrew(1),
+ null,
+ (int) Math.max(material.getMass() / 8L, 1L),
+ 4)) {
+ Logger.WARNING("Lathe Screw Recipe: " + material.getLocalizedName() + " - Success");
+ } else {
+ Logger.WARNING("Lathe Screw Recipe: " + material.getLocalizedName() + " - Failed");
+ }
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_MultisUsingFluidInsteadOfCells.java b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_MultisUsingFluidInsteadOfCells.java
index 6915e193e3..208be14c8c 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_MultisUsingFluidInsteadOfCells.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_MultisUsingFluidInsteadOfCells.java
@@ -25,7 +25,12 @@ public class RecipeGen_MultisUsingFluidInsteadOfCells {
private static void init() {
if (!mInit) {
mInit = true;
- mItemsToIgnore.add(ItemUtils.simpleMetaStack(CI.emptyCells(1).getItem(), 8, 1));
+ mItemsToIgnore.add(
+ ItemUtils.simpleMetaStack(
+ CI.emptyCells(1)
+ .getItem(),
+ 8,
+ 1));
}
}
@@ -65,7 +70,8 @@ public class RecipeGen_MultisUsingFluidInsteadOfCells {
init();
int aRecipesHandled = 0;
int aInvalidRecipesToConvert = 0;
- int aOriginalCount = aInputs.getAllRecipes().size();
+ int aOriginalCount = aInputs.getAllRecipes()
+ .size();
ArrayList<GT_Recipe> deDuplicationInputArray = new ArrayList<>();
recipe: for (GT_Recipe x : aInputs.getAllRecipes()) {
@@ -145,16 +151,16 @@ public class RecipeGen_MultisUsingFluidInsteadOfCells {
continue; // Skip this recipe entirely if we find an item we don't like
}
GT_Recipe aNewRecipe = new GT_Recipe(
- false,
- aNewItemInputs,
- aNewItemOutputs,
- x.mSpecialItems,
- x.mChances,
- aNewFluidInputs,
- aNewFluidOutputs,
- x.mDuration,
- x.mEUt,
- x.mSpecialValue);
+ false,
+ aNewItemInputs,
+ aNewItemOutputs,
+ x.mSpecialItems,
+ x.mChances,
+ aNewFluidInputs,
+ aNewFluidOutputs,
+ x.mDuration,
+ x.mEUt,
+ x.mSpecialValue);
aNewRecipe.owners = new ArrayList<>(x.owners);
// add all recipes to an intermediate array
@@ -167,7 +173,7 @@ public class RecipeGen_MultisUsingFluidInsteadOfCells {
}
// cast arraylist of input to a regular array and pass it to a duplicate recipe remover.
List<GT_Recipe> deDuplicationOutputArray = GT_RecipeUtils
- .removeDuplicates(deDuplicationInputArray, aOutputs.unlocalizedName);
+ .removeDuplicates(deDuplicationInputArray, aOutputs.unlocalizedName);
// add each recipe from the above output to the intended recipe map
for (GT_Recipe recipe : deDuplicationOutputArray) {
aOutputs.add(recipe);
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Ore.java b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Ore.java
index 035f3a4220..32d6a1066b 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Ore.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Ore.java
@@ -63,8 +63,13 @@ public class RecipeGen_Ore extends RecipeGen_Base {
Material bonusA = null; // Ni
Material bonusB = null; // Tin
- if (material.getComposites().size() >= 1 && material.getComposites().get(0) != null) {
- bonusA = material.getComposites().get(0).getStackMaterial();
+ if (material.getComposites()
+ .size() >= 1
+ && material.getComposites()
+ .get(0) != null) {
+ bonusA = material.getComposites()
+ .get(0)
+ .getStackMaterial();
} else {
bonusA = material;
}
@@ -94,20 +99,37 @@ public class RecipeGen_Ore extends RecipeGen_Base {
}
if (amJ.size() < 2) {
- if (material.getComposites().size() >= 2 && material.getComposites().get(1) != null) {
- bonusB = material.getComposites().get(1).getStackMaterial();
+ if (material.getComposites()
+ .size() >= 2
+ && material.getComposites()
+ .get(1) != null) {
+ bonusB = material.getComposites()
+ .get(1)
+ .getStackMaterial();
// If Secondary Output has no solid output, try the third (If it exists)
- if (!bonusB.hasSolidForm() && material.getComposites().size() >= 3
- && material.getComposites().get(2) != null) {
- bonusB = material.getComposites().get(2).getStackMaterial();
+ if (!bonusB.hasSolidForm() && material.getComposites()
+ .size() >= 3
+ && material.getComposites()
+ .get(2) != null) {
+ bonusB = material.getComposites()
+ .get(2)
+ .getStackMaterial();
// If Third Output has no solid output, try the Fourth (If it exists)
- if (!bonusB.hasSolidForm() && material.getComposites().size() >= 4
- && material.getComposites().get(3) != null) {
- bonusB = material.getComposites().get(3).getStackMaterial();
+ if (!bonusB.hasSolidForm() && material.getComposites()
+ .size() >= 4
+ && material.getComposites()
+ .get(3) != null) {
+ bonusB = material.getComposites()
+ .get(3)
+ .getStackMaterial();
// If Fourth Output has no solid output, try the Fifth (If it exists)
- if (!bonusB.hasSolidForm() && material.getComposites().size() >= 5
- && material.getComposites().get(4) != null) {
- bonusB = material.getComposites().get(4).getStackMaterial();
+ if (!bonusB.hasSolidForm() && material.getComposites()
+ .size() >= 5
+ && material.getComposites()
+ .get(4) != null) {
+ bonusB = material.getComposites()
+ .get(4)
+ .getStackMaterial();
// If Fifth Output has no solid output, default out to Stone dust.
if (!bonusB.hasSolidForm()) {
allFailed = true;
@@ -165,7 +187,7 @@ public class RecipeGen_Ore extends RecipeGen_Base {
*/
// Allow ore dusts to be packaged
if (ItemUtils.checkForInvalidItems(material.getSmallDust(1))
- && ItemUtils.checkForInvalidItems(material.getTinyDust(1))) {
+ && ItemUtils.checkForInvalidItems(material.getTinyDust(1))) {
RecipeGen_DustGeneration.generatePackagerRecipes(material);
}
@@ -174,47 +196,47 @@ public class RecipeGen_Ore extends RecipeGen_Base {
*/
// Macerate ore to Crushed
if (GT_Values.RA.addPulveriserRecipe(
- material.getOre(1),
- new ItemStack[] { material.getCrushed(2) },
- new int[] { 10000 },
- 20 * 20,
- tVoltageMultiplier / 2)) {
+ material.getOre(1),
+ new ItemStack[] { material.getCrushed(2) },
+ new int[] { 10000 },
+ 20 * 20,
+ tVoltageMultiplier / 2)) {
Logger.MATERIALS("[Macerator] Added Recipe: 'Macerate ore to Crushed ore'");
}
// Macerate raw ore to Crushed
if (GT_Values.RA.addPulveriserRecipe(
- material.getRawOre(1),
- new ItemStack[] { material.getCrushed(2) },
- new int[] { 10000 },
- 20 * 20,
- tVoltageMultiplier / 2)) {
+ material.getRawOre(1),
+ new ItemStack[] { material.getCrushed(2) },
+ new int[] { 10000 },
+ 20 * 20,
+ tVoltageMultiplier / 2)) {
Logger.MATERIALS("[Macerator] Added Recipe: 'Macerate raw ore to Crushed ore'");
}
// Macerate Crushed to Impure Dust
if (GT_Values.RA.addPulveriserRecipe(
- material.getCrushed(1),
- new ItemStack[] { material.getDustImpure(1), matDustA },
- new int[] { 10000, 1000 },
- 20 * 20,
- tVoltageMultiplier / 2)) {
+ material.getCrushed(1),
+ new ItemStack[] { material.getDustImpure(1), matDustA },
+ new int[] { 10000, 1000 },
+ 20 * 20,
+ tVoltageMultiplier / 2)) {
Logger.MATERIALS("[Macerator] Added Recipe: 'Macerate Crushed ore to Impure Dust'");
}
// Macerate Washed to Purified Dust
if (GT_Values.RA.addPulveriserRecipe(
- material.getCrushedPurified(1),
- new ItemStack[] { material.getDustPurified(1), matDustA },
- new int[] { 10000, 1000 },
- 20 * 20,
- tVoltageMultiplier / 2)) {
+ material.getCrushedPurified(1),
+ new ItemStack[] { material.getDustPurified(1), matDustA },
+ new int[] { 10000, 1000 },
+ 20 * 20,
+ tVoltageMultiplier / 2)) {
Logger.MATERIALS("[Macerator] Added Recipe: 'Macerate Washed ore to Purified Dust'");
}
// Macerate Centrifuged to Pure Dust
if (GT_Values.RA.addPulveriserRecipe(
- material.getCrushedCentrifuged(1),
- new ItemStack[] { matDust, matDustA },
- new int[] { 10000, 1000 },
- 20 * 20,
- tVoltageMultiplier / 2)) {
+ material.getCrushedCentrifuged(1),
+ new ItemStack[] { matDust, matDustA },
+ new int[] { 10000, 1000 },
+ 20 * 20,
+ tVoltageMultiplier / 2)) {
Logger.MATERIALS("[Macerator] Added Recipe: 'Macerate Centrifuged ore to Pure Dust'");
}
@@ -229,12 +251,12 @@ public class RecipeGen_Ore extends RecipeGen_Base {
*/
// .08 compat method
if (GT_ModHandler.addOreWasherRecipe(
- material.getCrushed(1),
- new int[] { 10000, 1111, 10000 },
- 1000,
- material.getCrushedPurified(1),
- matDustA,
- dustStone)) {
+ material.getCrushed(1),
+ new int[] { 10000, 1111, 10000 },
+ 1000,
+ material.getCrushedPurified(1),
+ matDustA,
+ dustStone)) {
Logger.MATERIALS("[OreWasher] Added Recipe: 'Wash Crushed ore into Purified Crushed ore'");
}
@@ -259,42 +281,46 @@ public class RecipeGen_Ore extends RecipeGen_Base {
try {
// .08 compat
if (GT_ModHandler.addThermalCentrifugeRecipe(
- material.getCrushed(1),
- new int[] { 10000, 1111, 10000 },
- (int) Math.min(5000L, Math.abs(material.getMass() * 20L)),
- material.getCrushedCentrifuged(1),
- matDustB,
- dustStone)) {
+ material.getCrushed(1),
+ new int[] { 10000, 1111, 10000 },
+ (int) Math.min(5000L, Math.abs(material.getMass() * 20L)),
+ material.getCrushedCentrifuged(1),
+ matDustB,
+ dustStone)) {
Logger.MATERIALS(
- "[ThermalCentrifuge] Added Recipe: 'Crushed ore to Centrifuged Ore' | Input: "
- + material.getCrushed(1).getDisplayName()
- + " | Outputs: "
- + material.getCrushedCentrifuged(1).getDisplayName()
- + ", "
- + matDustB.getDisplayName()
- + ", "
- + dustStone.getDisplayName()
- + ".");
+ "[ThermalCentrifuge] Added Recipe: 'Crushed ore to Centrifuged Ore' | Input: "
+ + material.getCrushed(1)
+ .getDisplayName()
+ + " | Outputs: "
+ + material.getCrushedCentrifuged(1)
+ .getDisplayName()
+ + ", "
+ + matDustB.getDisplayName()
+ + ", "
+ + dustStone.getDisplayName()
+ + ".");
}
} catch (Throwable t) {}
try {
if (GT_ModHandler.addThermalCentrifugeRecipe(
- material.getCrushedPurified(1),
- new int[] { 10000, 1111, 10000 },
- (int) Math.min(5000L, Math.abs(material.getMass() * 20L)),
- material.getCrushedCentrifuged(1),
- matDustA,
- dustStone)) {
+ material.getCrushedPurified(1),
+ new int[] { 10000, 1111, 10000 },
+ (int) Math.min(5000L, Math.abs(material.getMass() * 20L)),
+ material.getCrushedCentrifuged(1),
+ matDustA,
+ dustStone)) {
Logger.MATERIALS(
- "[ThermalCentrifuge] Added Recipe: 'Washed ore to Centrifuged Ore' | Input: "
- + material.getCrushedPurified(1).getDisplayName()
- + " | Outputs: "
- + material.getCrushedCentrifuged(1).getDisplayName()
- + ", "
- + matDustA.getDisplayName()
- + ", "
- + dustStone.getDisplayName()
- + ".");
+ "[ThermalCentrifuge] Added Recipe: 'Washed ore to Centrifuged Ore' | Input: "
+ + material.getCrushedPurified(1)
+ .getDisplayName()
+ + " | Outputs: "
+ + material.getCrushedCentrifuged(1)
+ .getDisplayName()
+ + ", "
+ + matDustA.getDisplayName()
+ + ", "
+ + dustStone.getDisplayName()
+ + ".");
}
} catch (Throwable t) {}
@@ -305,10 +331,10 @@ public class RecipeGen_Ore extends RecipeGen_Base {
Logger.MATERIALS("[ForgeHammer] Added Recipe: 'Crushed Centrifuged to Pure Dust'");
}
if (GT_Values.RA.addForgeHammerRecipe(
- material.getCrushedPurified(1),
- material.getDustPurified(1),
- 10,
- tVoltageMultiplier / 4)) {
+ material.getCrushedPurified(1),
+ material.getDustPurified(1),
+ 10,
+ tVoltageMultiplier / 4)) {
Logger.MATERIALS("[ForgeHammer] Added Recipe: 'Crushed Purified to Purified Dust'");
}
if (GT_Values.RA.addForgeHammerRecipe(material.getOre(1), material.getCrushed(1), 10, tVoltageMultiplier / 4)) {
@@ -320,37 +346,37 @@ public class RecipeGen_Ore extends RecipeGen_Base {
*/
// Purified Dust to Clean
if (GT_Values.RA.addCentrifugeRecipe(
- material.getDustPurified(1),
- null,
- null, // In Fluid
- null, // Out Fluid
- matDust,
- matDustA,
- null,
- null,
- null,
- null,
- new int[] { 10000, 1111 }, // Chances
- (int) Math.max(1L, material.getMass() * 8L), // Time
- tVoltageMultiplier / 2)) { // Eu
+ material.getDustPurified(1),
+ null,
+ null, // In Fluid
+ null, // Out Fluid
+ matDust,
+ matDustA,
+ null,
+ null,
+ null,
+ null,
+ new int[] { 10000, 1111 }, // Chances
+ (int) Math.max(1L, material.getMass() * 8L), // Time
+ tVoltageMultiplier / 2)) { // Eu
Logger.MATERIALS("[Centrifuge] Added Recipe: Purified Dust to Clean Dust");
}
// Impure Dust to Clean
if (GT_Values.RA.addCentrifugeRecipe(
- material.getDustImpure(1),
- null,
- null, // In Fluid
- null, // Out Fluid
- matDust,
- matDustB,
- null,
- null,
- null,
- null,
- new int[] { 10000, 1111 }, // Chances
- (int) Math.max(1L, material.getMass() * 8L), // Time
- tVoltageMultiplier / 2)) { // Eu
+ material.getDustImpure(1),
+ null,
+ null, // In Fluid
+ null, // Out Fluid
+ matDust,
+ matDustB,
+ null,
+ null,
+ null,
+ null,
+ new int[] { 10000, 1111 }, // Chances
+ (int) Math.max(1L, material.getMass() * 8L), // Time
+ tVoltageMultiplier / 2)) { // Eu
Logger.MATERIALS("[Centrifuge] Added Recipe: Inpure Dust to Clean Dust");
}
@@ -369,27 +395,32 @@ public class RecipeGen_Ore extends RecipeGen_Base {
int mCounter = 0;
for (Pair<Integer, Material> f : componentMap) {
- if (f.getValue().getState() != MaterialState.SOLID) {
+ if (f.getValue()
+ .getState() != MaterialState.SOLID) {
Logger.MATERIALS(
- "[Electrolyzer] Found Fluid Component, adding " + f.getKey()
- + " cells of "
- + f.getValue().getLocalizedName()
- + ".");
- mInternalOutputs[mCounter++] = f.getValue().getCell(f.getKey());
+ "[Electrolyzer] Found Fluid Component, adding " + f.getKey()
+ + " cells of "
+ + f.getValue()
+ .getLocalizedName()
+ + ".");
+ mInternalOutputs[mCounter++] = f.getValue()
+ .getCell(f.getKey());
mCellCount += f.getKey();
mTotalCount += f.getKey();
Logger.MATERIALS(
- "[Electrolyzer] In total, adding " + mCellCount
- + " cells for "
- + material.getLocalizedName()
- + " processing.");
+ "[Electrolyzer] In total, adding " + mCellCount
+ + " cells for "
+ + material.getLocalizedName()
+ + " processing.");
} else {
Logger.MATERIALS(
- "[Electrolyzer] Found Solid Component, adding " + f.getKey()
- + " dusts of "
- + f.getValue().getLocalizedName()
- + ".");
- mInternalOutputs[mCounter++] = f.getValue().getDust(f.getKey());
+ "[Electrolyzer] Found Solid Component, adding " + f.getKey()
+ + " dusts of "
+ + f.getValue()
+ .getLocalizedName()
+ + ".");
+ mInternalOutputs[mCounter++] = f.getValue()
+ .getDust(f.getKey());
mTotalCount += f.getKey();
}
}
@@ -397,9 +428,9 @@ public class RecipeGen_Ore extends RecipeGen_Base {
// Build Output Array
for (int g = 0; g < mInternalOutputs.length; g++) {
Logger.MATERIALS(
- "[Electrolyzer] Is output[" + g
- + "] valid with a chance? "
- + (mInternalOutputs[g] != null ? 10000 : 0));
+ "[Electrolyzer] Is output[" + g
+ + "] valid with a chance? "
+ + (mInternalOutputs[g] != null ? 10000 : 0));
mChances[g] = (mInternalOutputs[g] != null ? 10000 : 0);
}
@@ -412,19 +443,19 @@ public class RecipeGen_Ore extends RecipeGen_Base {
ItemStack mainDust = material.getDust(material.smallestStackSizeWhenProcessing);
if (mainDust != null) {
Logger.MATERIALS(
- "[Electrolyzer] Recipe now requires " + material.smallestStackSizeWhenProcessing
- + "x "
- + mainDust.getDisplayName()
- + " as input.");
+ "[Electrolyzer] Recipe now requires " + material.smallestStackSizeWhenProcessing
+ + "x "
+ + mainDust.getDisplayName()
+ + " as input.");
} else {
mainDust = material.getDust(mTotalCount);
Logger.MATERIALS("[Electrolyzer] Could not find valid input dust, trying alternative.");
if (mainDust != null) {
Logger.MATERIALS(
- "[Electrolyzer] Recipe now requires " + mTotalCount
- + "x "
- + mainDust.getDisplayName()
- + " as input.");
+ "[Electrolyzer] Recipe now requires " + mTotalCount
+ + "x "
+ + mainDust.getDisplayName()
+ + " as input.");
} else {
Logger.MATERIALS("[Electrolyzer] Could not find valid input dust, exiting.");
}
@@ -436,39 +467,38 @@ public class RecipeGen_Ore extends RecipeGen_Base {
Logger.MATERIALS("[Electrolyzer] Set slot " + j + " to null.");
} else {
Logger.MATERIALS(
- "[Electrolyzer] Set slot " + j + " to " + mInternalOutputs[j].getDisplayName() + ".");
+ "[Electrolyzer] Set slot " + j + " to " + mInternalOutputs[j].getDisplayName() + ".");
}
}
try {
if (addElectrolyzerRecipe(
- mainDust,
- emptyCell, // input 2
- null, // Input fluid 1
- null, // Output fluid 1
- mInternalOutputs[0],
- mInternalOutputs[1],
- mInternalOutputs[2],
- mInternalOutputs[3],
- mInternalOutputs[4],
- mInternalOutputs[5],
- mChances,
- (int) Math.max(material.getMass() * 3L * 1, 1),
- tVoltageMultiplier)) {
- Logger.MATERIALS(
- "[Electrolyzer] Generated Electrolyzer recipe for " + matDust.getDisplayName());
+ mainDust,
+ emptyCell, // input 2
+ null, // Input fluid 1
+ null, // Output fluid 1
+ mInternalOutputs[0],
+ mInternalOutputs[1],
+ mInternalOutputs[2],
+ mInternalOutputs[3],
+ mInternalOutputs[4],
+ mInternalOutputs[5],
+ mChances,
+ (int) Math.max(material.getMass() * 3L * 1, 1),
+ tVoltageMultiplier)) {
+ Logger
+ .MATERIALS("[Electrolyzer] Generated Electrolyzer recipe for " + matDust.getDisplayName());
} else {
Logger.MATERIALS(
- "[Electrolyzer] Failed to generate Electrolyzer recipe for "
- + matDust.getDisplayName());
+ "[Electrolyzer] Failed to generate Electrolyzer recipe for " + matDust.getDisplayName());
}
} catch (Throwable t) {
t.printStackTrace();
}
} else if (componentMap.size() > 6 && componentMap.size() <= 9) {
Logger.MATERIALS(
- "[Issue][Electrolyzer] " + material.getLocalizedName()
- + " is composed of over 6 materials, so an electrolyzer recipe for processing cannot be generated. Trying to create one for the Dehydrator instead.");
+ "[Issue][Electrolyzer] " + material.getLocalizedName()
+ + " is composed of over 6 materials, so an electrolyzer recipe for processing cannot be generated. Trying to create one for the Dehydrator instead.");
ItemStack mInternalOutputs[] = new ItemStack[9];
int mChances[] = new int[9];
@@ -478,28 +508,34 @@ public class RecipeGen_Ore extends RecipeGen_Base {
int mCounter = 0;
for (Pair<Integer, Material> f : componentMap) {
- if (f.getValue().getState() != MaterialState.SOLID
- && f.getValue().getState() != MaterialState.ORE) {
+ if (f.getValue()
+ .getState() != MaterialState.SOLID
+ && f.getValue()
+ .getState() != MaterialState.ORE) {
Logger.MATERIALS(
- "[Dehydrator] Found Fluid Component, adding " + f.getKey()
- + " cells of "
- + f.getValue().getLocalizedName()
- + ".");
- mInternalOutputs[mCounter++] = f.getValue().getCell(f.getKey());
+ "[Dehydrator] Found Fluid Component, adding " + f.getKey()
+ + " cells of "
+ + f.getValue()
+ .getLocalizedName()
+ + ".");
+ mInternalOutputs[mCounter++] = f.getValue()
+ .getCell(f.getKey());
mCellCount += f.getKey();
mTotalCount += f.getKey();
Logger.MATERIALS(
- "[Dehydrator] In total, adding " + mCellCount
- + " cells for "
- + material.getLocalizedName()
- + " processing.");
+ "[Dehydrator] In total, adding " + mCellCount
+ + " cells for "
+ + material.getLocalizedName()
+ + " processing.");
} else {
Logger.MATERIALS(
- "[Dehydrator] Found Solid Component, adding " + f.getKey()
- + " dusts of "
- + f.getValue().getLocalizedName()
- + ".");
- mInternalOutputs[mCounter++] = f.getValue().getDust(f.getKey());
+ "[Dehydrator] Found Solid Component, adding " + f.getKey()
+ + " dusts of "
+ + f.getValue()
+ .getLocalizedName()
+ + ".");
+ mInternalOutputs[mCounter++] = f.getValue()
+ .getDust(f.getKey());
mTotalCount += f.getKey();
}
}
@@ -507,9 +543,9 @@ public class RecipeGen_Ore extends RecipeGen_Base {
// Build Output Array
for (int g = 0; g < mInternalOutputs.length; g++) {
Logger.MATERIALS(
- "[Dehydrator] Is output[" + g
- + "] valid with a chance? "
- + (mInternalOutputs[g] != null ? 10000 : 0));
+ "[Dehydrator] Is output[" + g
+ + "] valid with a chance? "
+ + (mInternalOutputs[g] != null ? 10000 : 0));
mChances[g] = (mInternalOutputs[g] != null ? 10000 : 0);
}
@@ -522,19 +558,19 @@ public class RecipeGen_Ore extends RecipeGen_Base {
ItemStack mainDust = material.getDust(material.smallestStackSizeWhenProcessing);
if (mainDust != null) {
Logger.MATERIALS(
- "[Dehydrator] Recipe now requires " + material.smallestStackSizeWhenProcessing
- + "x "
- + mainDust.getDisplayName()
- + " as input.");
+ "[Dehydrator] Recipe now requires " + material.smallestStackSizeWhenProcessing
+ + "x "
+ + mainDust.getDisplayName()
+ + " as input.");
} else {
mainDust = material.getDust(mTotalCount);
Logger.MATERIALS("[Dehydrator] Could not find valid input dust, trying alternative.");
if (mainDust != null) {
Logger.MATERIALS(
- "[Dehydrator] Recipe now requires " + mTotalCount
- + "x "
- + mainDust.getDisplayName()
- + " as input.");
+ "[Dehydrator] Recipe now requires " + mTotalCount
+ + "x "
+ + mainDust.getDisplayName()
+ + " as input.");
} else {
Logger.MATERIALS("[Dehydrator] Could not find valid input dust, exiting.");
}
@@ -546,33 +582,33 @@ public class RecipeGen_Ore extends RecipeGen_Base {
Logger.MATERIALS("[Dehydrator] Set slot " + j + " to null.");
} else {
Logger.MATERIALS(
- "[Dehydrator] Set slot " + j + " to " + mInternalOutputs[j].getDisplayName() + ".");
+ "[Dehydrator] Set slot " + j + " to " + mInternalOutputs[j].getDisplayName() + ".");
}
}
try {
if (CORE.RA.addDehydratorRecipe(
- new ItemStack[] { mainDust, emptyCell },
- null,
- null,
- mInternalOutputs,
- mChances,
- (int) Math.max(material.getMass() * 4L * 1, 1),
- tVoltageMultiplier)) {
+ new ItemStack[] { mainDust, emptyCell },
+ null,
+ null,
+ mInternalOutputs,
+ mChances,
+ (int) Math.max(material.getMass() * 4L * 1, 1),
+ tVoltageMultiplier)) {
Logger.MATERIALS("[Dehydrator] Generated Dehydrator recipe for " + matDust.getDisplayName());
Logger.MATERIALS(
- "Inputs: " + mainDust.getDisplayName()
- + " x"
- + mainDust.stackSize
- + ", "
- + (emptyCell == null ? "No Cells"
- : "" + emptyCell.getDisplayName() + " x" + emptyCell.stackSize));
+ "Inputs: " + mainDust.getDisplayName()
+ + " x"
+ + mainDust.stackSize
+ + ", "
+ + (emptyCell == null ? "No Cells"
+ : "" + emptyCell.getDisplayName() + " x" + emptyCell.stackSize));
Logger.MATERIALS("Outputs " + ItemUtils.getArrayStackNames(mInternalOutputs));
Logger.MATERIALS("Time: " + ((int) Math.max(material.getMass() * 4L * 1, 1)));
Logger.MATERIALS("EU: " + tVoltageMultiplier);
} else {
Logger.MATERIALS(
- "[Dehydrator] Failed to generate Dehydrator recipe for " + matDust.getDisplayName());
+ "[Dehydrator] Failed to generate Dehydrator recipe for " + matDust.getDisplayName());
}
} catch (Throwable t) {
t.printStackTrace();
@@ -584,95 +620,77 @@ public class RecipeGen_Ore extends RecipeGen_Base {
* Shaped Crafting
*/
RecipeUtils.addShapedRecipe(
- CI.craftingToolHammer_Hard,
- null,
- null,
- material.getCrushedPurified(1),
- null,
- null,
- null,
- null,
- null,
- material.getDustPurified(1));
+ CI.craftingToolHammer_Hard,
+ null,
+ null,
+ material.getCrushedPurified(1),
+ null,
+ null,
+ null,
+ null,
+ null,
+ material.getDustPurified(1));
RecipeUtils.addShapedRecipe(
- CI.craftingToolHammer_Hard,
- null,
- null,
- material.getCrushed(1),
- null,
- null,
- null,
- null,
- null,
- material.getDustImpure(1));
+ CI.craftingToolHammer_Hard,
+ null,
+ null,
+ material.getCrushed(1),
+ null,
+ null,
+ null,
+ null,
+ null,
+ material.getDustImpure(1));
RecipeUtils.addShapedRecipe(
- CI.craftingToolHammer_Hard,
- null,
- null,
- material.getCrushedCentrifuged(1),
- null,
- null,
- null,
- null,
- null,
- matDust);
+ CI.craftingToolHammer_Hard,
+ null,
+ null,
+ material.getCrushedCentrifuged(1),
+ null,
+ null,
+ null,
+ null,
+ null,
+ matDust);
final ItemStack normalDust = matDust;
final ItemStack smallDust = material.getSmallDust(1);
final ItemStack tinyDust = material.getTinyDust(1);
if (RecipeUtils.addShapedRecipe(
- tinyDust,
- tinyDust,
- tinyDust,
- tinyDust,
- tinyDust,
- tinyDust,
- tinyDust,
- tinyDust,
- tinyDust,
- normalDust)) {
+ tinyDust,
+ tinyDust,
+ tinyDust,
+ tinyDust,
+ tinyDust,
+ tinyDust,
+ tinyDust,
+ tinyDust,
+ tinyDust,
+ normalDust)) {
Logger.WARNING("9 Tiny dust to 1 Dust Recipe: " + material.getLocalizedName() + " - Success");
} else {
Logger.WARNING("9 Tiny dust to 1 Dust Recipe: " + material.getLocalizedName() + " - Failed");
}
if (RecipeUtils
- .addShapedRecipe(normalDust, null, null, null, null, null, null, null, null, material.getTinyDust(9))) {
+ .addShapedRecipe(normalDust, null, null, null, null, null, null, null, null, material.getTinyDust(9))) {
Logger.WARNING("9 Tiny dust from 1 Recipe: " + material.getLocalizedName() + " - Success");
} else {
Logger.WARNING("9 Tiny dust from 1 Recipe: " + material.getLocalizedName() + " - Failed");
}
- if (RecipeUtils.addShapedRecipe(
- smallDust,
- smallDust,
- null,
- smallDust,
- smallDust,
- null,
- null,
- null,
- null,
- normalDust)) {
+ if (RecipeUtils
+ .addShapedRecipe(smallDust, smallDust, null, smallDust, smallDust, null, null, null, null, normalDust)) {
Logger.WARNING("4 Small dust to 1 Dust Recipe: " + material.getLocalizedName() + " - Success");
} else {
Logger.WARNING("4 Small dust to 1 Dust Recipe: " + material.getLocalizedName() + " - Failed");
}
- if (RecipeUtils.addShapedRecipe(
- null,
- normalDust,
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- material.getSmallDust(4))) {
+ if (RecipeUtils
+ .addShapedRecipe(null, normalDust, null, null, null, null, null, null, null, material.getSmallDust(4))) {
Logger.WARNING("4 Small dust from 1 Dust Recipe: " + material.getLocalizedName() + " - Success");
} else {
Logger.WARNING("4 Small dust from 1 Dust Recipe: " + material.getLocalizedName() + " - Failed");
@@ -682,8 +700,8 @@ public class RecipeGen_Ore extends RecipeGen_Base {
}
public static 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))) {
Logger.MATERIALS("[Electrolyzer] Either both inputs or outputs are null.");
return false;
@@ -697,19 +715,19 @@ public class RecipeGen_Ore extends RecipeGen_Base {
return false;
}
GT_Values.RA.addElectrolyzerRecipe(
- aInput1,
- aInput2,
- aFluidInput,
- aFluidOutput,
- aOutput1,
- aOutput2,
- aOutput3,
- aOutput4,
- aOutput5,
- aOutput6,
- aChances,
- aDuration,
- aEUt);
+ aInput1,
+ aInput2,
+ aFluidInput,
+ aFluidOutput,
+ aOutput1,
+ aOutput2,
+ aOutput3,
+ aOutput4,
+ aOutput5,
+ aOutput6,
+ aChances,
+ aDuration,
+ aEUt);
Logger.MATERIALS("[Electrolyzer] Recipe added.");
return true;
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Plasma.java b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Plasma.java
index f0fc72b5d8..01d6f9bb02 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Plasma.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Plasma.java
@@ -37,8 +37,8 @@ public class RecipeGen_Plasma extends RecipeGen_Base {
ItemStack aPlasmaCell = material.getPlasmaCell(1);
ItemStack aCell = material.getCell(1);
ItemStack aContainerItem = GT_Utility.getFluidForFilledItem(aPlasmaCell, true) == null
- ? GT_Utility.getContainerItem(aPlasmaCell, true)
- : CI.emptyCells(1);
+ ? GT_Utility.getContainerItem(aPlasmaCell, true)
+ : CI.emptyCells(1);
if (ItemUtils.checkForInvalidItems(new ItemStack[] { aPlasmaCell, aContainerItem })) {
switch (material.getUnlocalizedName()) {
case "Runite":
@@ -47,10 +47,10 @@ public class RecipeGen_Plasma extends RecipeGen_Base {
GT_Values.RA.addFuel(GT_Utility.copyAmount(1L, aPlasmaCell), aContainerItem, 720_000, 4);
default:
GT_Values.RA.addFuel(
- GT_Utility.copyAmount(1L, aPlasmaCell),
- aContainerItem,
- (int) Math.max(1024L, 1024L * material.getMass()),
- 4);
+ GT_Utility.copyAmount(1L, aPlasmaCell),
+ aContainerItem,
+ (int) Math.max(1024L, 1024L * material.getMass()),
+ 4);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Plates.java b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Plates.java
index 9dd1d47ef1..7eebc16af7 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Plates.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Plates.java
@@ -56,139 +56,136 @@ public class RecipeGen_Plates extends RecipeGen_Base {
// Forge Hammer
if (ItemUtils.checkForInvalidItems(ingotStackTwo) && ItemUtils.checkForInvalidItems(plate_Single))
if (addForgeHammerRecipe(
- ingotStackThree,
- plate_SingleTwo,
- (int) Math.max(material.getMass(), 1L),
- material.vVoltageMultiplier)) {
- Logger.WARNING("Forge Hammer Recipe: " + material.getLocalizedName() + " - Success");
- } else {
- Logger.WARNING("Forge Hammer Recipe: " + material.getLocalizedName() + " - Failed");
- }
+ ingotStackThree,
+ plate_SingleTwo,
+ (int) Math.max(material.getMass(), 1L),
+ material.vVoltageMultiplier)) {
+ Logger.WARNING("Forge Hammer Recipe: " + material.getLocalizedName() + " - Success");
+ } else {
+ Logger.WARNING("Forge Hammer Recipe: " + material.getLocalizedName() + " - Failed");
+ }
// Bender
if (ItemUtils.checkForInvalidItems(ingotStackOne) && ItemUtils.checkForInvalidItems(plate_Single))
if (addBenderRecipe(
- ingotStackOne,
- plate_Single,
- (int) Math.max(material.getMass() * 1L, 1L),
- material.vVoltageMultiplier)) {
- Logger.WARNING("Bender Recipe: " + material.getLocalizedName() + " - Success");
- } else {
- Logger.WARNING("Bender Recipe: " + material.getLocalizedName() + " - Failed");
- }
+ ingotStackOne,
+ plate_Single,
+ (int) Math.max(material.getMass() * 1L, 1L),
+ material.vVoltageMultiplier)) {
+ Logger.WARNING("Bender Recipe: " + material.getLocalizedName() + " - Success");
+ } else {
+ Logger.WARNING("Bender Recipe: " + material.getLocalizedName() + " - Failed");
+ }
if (ItemUtils.checkForInvalidItems(ingotStackOne) && ItemUtils.checkForInvalidItems(foil_SingleFour))
if (addBenderRecipe(
- ingotStackOne,
- CI.getNumberedCircuit(10),
- foil_SingleFour,
- (int) Math.max(material.getMass() * 2L, 1L),
- material.vVoltageMultiplier)) {
- Logger.WARNING("Bender Recipe: " + material.getLocalizedName() + " - Success");
- } else {
- Logger.WARNING("Bender Recipe: " + material.getLocalizedName() + " - Failed");
- }
+ ingotStackOne,
+ CI.getNumberedCircuit(10),
+ foil_SingleFour,
+ (int) Math.max(material.getMass() * 2L, 1L),
+ material.vVoltageMultiplier)) {
+ Logger.WARNING("Bender Recipe: " + material.getLocalizedName() + " - Success");
+ } else {
+ Logger.WARNING("Bender Recipe: " + material.getLocalizedName() + " - Failed");
+ }
// Alloy Smelter
if (ItemUtils.checkForInvalidItems(ingotStackTwo) && ItemUtils.checkForInvalidItems(plate_Single))
if (GT_Values.RA.addAlloySmelterRecipe(
- ingotStackTwo,
- shape_Mold,
- plate_Single,
- (int) Math.max(material.getMass() * 2L, 1L),
- material.vVoltageMultiplier)) {
- Logger.WARNING("Alloy Smelter Recipe: " + material.getLocalizedName() + " - Success");
- } else {
- Logger.WARNING("Alloy Smelter Recipe: " + material.getLocalizedName() + " - Failed");
- }
+ ingotStackTwo,
+ shape_Mold,
+ plate_Single,
+ (int) Math.max(material.getMass() * 2L, 1L),
+ material.vVoltageMultiplier)) {
+ Logger.WARNING("Alloy Smelter Recipe: " + material.getLocalizedName() + " - Success");
+ } else {
+ Logger.WARNING("Alloy Smelter Recipe: " + material.getLocalizedName() + " - Failed");
+ }
// Cutting Machine
if (ItemUtils.checkForInvalidItems(block) && ItemUtils.checkForInvalidItems(plate_Single))
if (GT_Values.RA.addCutterRecipe(
- block,
- plate_SingleNine,
- null,
- (int) Math.max(material.getMass() * 10L, 1L),
- material.vVoltageMultiplier)) {
- Logger.WARNING("Cutting Machine Recipe: " + material.getLocalizedName() + " - Success");
- } else {
- Logger.WARNING("Cutting Machine Recipe: " + material.getLocalizedName() + " - Failed");
- }
+ block,
+ plate_SingleNine,
+ null,
+ (int) Math.max(material.getMass() * 10L, 1L),
+ material.vVoltageMultiplier)) {
+ Logger.WARNING("Cutting Machine Recipe: " + material.getLocalizedName() + " - Success");
+ } else {
+ Logger.WARNING("Cutting Machine Recipe: " + material.getLocalizedName() + " - Failed");
+ }
// Making Double Plates
if (ItemUtils.checkForInvalidItems(ingotStackTwo) && ItemUtils.checkForInvalidItems(plate_Double))
if (addBenderRecipe(
- ingotStackTwo,
- plate_Double,
- (int) Math.max(material.getMass() * 2L, 1L),
- material.vVoltageMultiplier)) {
- Logger.WARNING("Bender Recipe: " + material.getLocalizedName() + " - Success");
- } else {
- Logger.WARNING("Bender Recipe: " + material.getLocalizedName() + " - Failed");
- }
+ ingotStackTwo,
+ plate_Double,
+ (int) Math.max(material.getMass() * 2L, 1L),
+ material.vVoltageMultiplier)) {
+ Logger.WARNING("Bender Recipe: " + material.getLocalizedName() + " - Success");
+ } else {
+ Logger.WARNING("Bender Recipe: " + material.getLocalizedName() + " - Failed");
+ }
if (ItemUtils.checkForInvalidItems(plate_SingleTwo) && ItemUtils.checkForInvalidItems(plate_Double))
if (addBenderRecipe(
- plate_SingleTwo,
- plate_Double,
- (int) Math.max(material.getMass() * 2L, 1L),
- material.vVoltageMultiplier)) {
- Logger.WARNING("Bender Recipe: " + material.getLocalizedName() + " - Success");
- } else {
- Logger.WARNING("Bender Recipe: " + material.getLocalizedName() + " - Failed");
- }
+ plate_SingleTwo,
+ plate_Double,
+ (int) Math.max(material.getMass() * 2L, 1L),
+ material.vVoltageMultiplier)) {
+ Logger.WARNING("Bender Recipe: " + material.getLocalizedName() + " - Success");
+ } else {
+ Logger.WARNING("Bender Recipe: " + material.getLocalizedName() + " - Failed");
+ }
// Bender
if (ItemUtils.checkForInvalidItems(material.getPlate(1)) && ItemUtils.checkForInvalidItems(material.getFoil(1)))
if (addBenderRecipe(
- material.getPlate(1),
- material.getFoil(4),
- (int) Math.max(material.getMass(), 1L),
- material.vVoltageMultiplier)) {
- GregTech_API.registerCover(
- material.getFoil(1),
- new GT_RenderedTexture(
- material.getTextureSet().mTextures[70],
- material.getRGBA(),
- false),
- null);
- Logger.WARNING("Bender Foil Recipe: " + material.getLocalizedName() + " - Success");
- } else {
- Logger.WARNING("Bender Foil Recipe: " + material.getLocalizedName() + " - Failed");
- }
+ material.getPlate(1),
+ material.getFoil(4),
+ (int) Math.max(material.getMass(), 1L),
+ material.vVoltageMultiplier)) {
+ GregTech_API.registerCover(
+ material.getFoil(1),
+ new GT_RenderedTexture(material.getTextureSet().mTextures[70], material.getRGBA(), false),
+ null);
+ Logger.WARNING("Bender Foil Recipe: " + material.getLocalizedName() + " - Success");
+ } else {
+ Logger.WARNING("Bender Foil Recipe: " + material.getLocalizedName() + " - Failed");
+ }
// Making Dense Plates
if (ItemUtils.checkForInvalidItems(ingotStackNine) && ItemUtils.checkForInvalidItems(plate_Dense))
if (addBenderRecipe(
- ingotStackNine,
- plate_Dense,
- (int) Math.max(material.getMass() * 2L, 1L),
- material.vVoltageMultiplier)) {
- Logger.WARNING("Bender Recipe: " + material.getLocalizedName() + " - Success");
- } else {
- Logger.WARNING("Bender Recipe: " + material.getLocalizedName() + " - Failed");
- }
+ ingotStackNine,
+ plate_Dense,
+ (int) Math.max(material.getMass() * 2L, 1L),
+ material.vVoltageMultiplier)) {
+ Logger.WARNING("Bender Recipe: " + material.getLocalizedName() + " - Success");
+ } else {
+ Logger.WARNING("Bender Recipe: " + material.getLocalizedName() + " - Failed");
+ }
if (ItemUtils.checkForInvalidItems(plate_SingleNine) && ItemUtils.checkForInvalidItems(plate_Dense))
if (addBenderRecipe(
- plate_SingleNine,
- plate_Dense,
- (int) Math.max(material.getMass() * 2L, 1L),
- material.vVoltageMultiplier)) {
- Logger.WARNING("Bender Recipe: " + material.getLocalizedName() + " - Success");
- } else {
- Logger.WARNING("Bender Recipe: " + material.getLocalizedName() + " - Failed");
- }
+ plate_SingleNine,
+ plate_Dense,
+ (int) Math.max(material.getMass() * 2L, 1L),
+ material.vVoltageMultiplier)) {
+ Logger.WARNING("Bender Recipe: " + material.getLocalizedName() + " - Success");
+ } else {
+ Logger.WARNING("Bender Recipe: " + material.getLocalizedName() + " - Failed");
+ }
}
public static boolean addBenderRecipe(final ItemStack aInput1, final ItemStack aOutput1, int aDuration,
- final int aEUt) {
+ final int aEUt) {
return GT_Values.RA.addBenderRecipe(aInput1, aOutput1, aDuration, aEUt);
}
public static boolean addBenderRecipe(final ItemStack aInput1, final ItemStack aCircuit, final ItemStack aOutput1,
- int aDuration, final int aEUt) {
+ int aDuration, final int aEUt) {
return GT_Values.RA.addBenderRecipe(aInput1, aCircuit, aOutput1, aDuration, aEUt);
}
public static boolean addExtruderRecipe(final ItemStack aInput, final ItemStack aShape, final ItemStack aOutput,
- int aDuration, final int aEUt) {
+ int aDuration, final int aEUt) {
if ((aInput == null) || (aShape == null) || (aOutput == null)) {
return false;
}
@@ -196,33 +193,33 @@ public class RecipeGen_Plates extends RecipeGen_Base {
return false;
}
RecipeMaps.extruderRecipes.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;
}
public static boolean addForgeHammerRecipe(final ItemStack aInput1, final ItemStack aOutput1, final int aDuration,
- final int aEUt) {
+ final int aEUt) {
if ((aInput1 == null) || (aOutput1 == null)) {
return false;
}
RecipeMaps.hammerRecipes.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;
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Recycling.java b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Recycling.java
index 0087ee07d4..044ce58c62 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Recycling.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Recycling.java
@@ -62,23 +62,22 @@ public class RecipeGen_Recycling implements Runnable {
if (material != null) Logger.WARNING("Generating Recycling recipes for " + material.getLocalizedName());
final OrePrefixes[] mValidPrefixesAsString = { OrePrefixes.ingot, OrePrefixes.ingotHot, OrePrefixes.nugget,
- OrePrefixes.plate, OrePrefixes.plateDense, OrePrefixes.plateDouble, OrePrefixes.plateTriple,
- OrePrefixes.plateQuadruple, OrePrefixes.plateQuintuple, OrePrefixes.stick, OrePrefixes.stickLong,
- OrePrefixes.bolt, OrePrefixes.screw, OrePrefixes.ring, OrePrefixes.rotor, OrePrefixes.gearGt,
- OrePrefixes.gearGtSmall, OrePrefixes.gear, OrePrefixes.block, OrePrefixes.cableGt01,
- OrePrefixes.cableGt02, OrePrefixes.cableGt04, OrePrefixes.cableGt08, OrePrefixes.cableGt12,
- OrePrefixes.wireFine, OrePrefixes.wireGt01, OrePrefixes.wireGt02, OrePrefixes.wireGt04,
- OrePrefixes.wireGt08, OrePrefixes.wireGt12, OrePrefixes.wireGt16, OrePrefixes.foil, OrePrefixes.frameGt,
- OrePrefixes.pipeHuge, OrePrefixes.pipeLarge, OrePrefixes.pipeMedium, OrePrefixes.pipeSmall,
- OrePrefixes.pipeTiny, };
+ OrePrefixes.plate, OrePrefixes.plateDense, OrePrefixes.plateDouble, OrePrefixes.plateTriple,
+ OrePrefixes.plateQuadruple, OrePrefixes.plateQuintuple, OrePrefixes.stick, OrePrefixes.stickLong,
+ OrePrefixes.bolt, OrePrefixes.screw, OrePrefixes.ring, OrePrefixes.rotor, OrePrefixes.gearGt,
+ OrePrefixes.gearGtSmall, OrePrefixes.gear, OrePrefixes.block, OrePrefixes.cableGt01, OrePrefixes.cableGt02,
+ OrePrefixes.cableGt04, OrePrefixes.cableGt08, OrePrefixes.cableGt12, OrePrefixes.wireFine,
+ OrePrefixes.wireGt01, OrePrefixes.wireGt02, OrePrefixes.wireGt04, OrePrefixes.wireGt08,
+ OrePrefixes.wireGt12, OrePrefixes.wireGt16, OrePrefixes.foil, OrePrefixes.frameGt, OrePrefixes.pipeHuge,
+ OrePrefixes.pipeLarge, OrePrefixes.pipeMedium, OrePrefixes.pipeSmall, OrePrefixes.pipeTiny, };
int mSlotIndex = 0;
Pair<OrePrefixes, ItemStack>[] mValidPairs = new Pair[mValidPrefixesAsString.length];
for (int r = 0; r < mValidPairs.length; r++) {
ItemStack temp = getItemStackOfAmountFromOreDictNoBroken(
- mValidPrefixesAsString[r].name() + Utils.sanitizeString(material.getLocalizedName()),
- 1);
+ mValidPrefixesAsString[r].name() + Utils.sanitizeString(material.getLocalizedName()),
+ 1);
if (temp != null) {
mValidPairs[mSlotIndex++] = new Pair<>(mValidPrefixesAsString[r], temp.copy());
}
@@ -89,7 +88,9 @@ public class RecipeGen_Recycling implements Runnable {
Pair<OrePrefixes, ItemStack>[] temp = mValidPairs;
for (Pair<OrePrefixes, ItemStack> temp2 : mValidPairs) {
if (temp2 != null) {
- Logger.WARNING("Valid: " + temp2.getValue().getDisplayName());
+ Logger.WARNING(
+ "Valid: " + temp2.getValue()
+ .getDisplayName());
validCounter++;
}
}
@@ -110,9 +111,8 @@ public class RecipeGen_Recycling implements Runnable {
try {
if (material == null || validPrefix == null
- || (material.getState() != MaterialState.SOLID
- && material.getState() != MaterialState.LIQUID)
- || validPrefix.getKey() == OrePrefixes.ingotHot) {
+ || (material.getState() != MaterialState.SOLID && material.getState() != MaterialState.LIQUID)
+ || validPrefix.getKey() == OrePrefixes.ingotHot) {
continue;
}
@@ -120,18 +120,18 @@ public class RecipeGen_Recycling implements Runnable {
final ItemStack mDust = getDust(material, validPrefix.getKey());
final Pair<OrePrefixes, ItemStack> mData = getDustData(material, validPrefix.getKey());
int mFluidAmount = (int) GT_Utility
- .translateMaterialToFluidAmount(validPrefix.getKey().mMaterialAmount, true);
+ .translateMaterialToFluidAmount(validPrefix.getKey().mMaterialAmount, true);
// Maceration
if (ItemUtils.checkForInvalidItems(tempStack)) {
// mValidItems[mSlotIndex++] = tempStack;
if ((mDust != null) && GT_ModHandler.addPulverisationRecipe(tempStack, mDust)) {
Logger.WARNING(
- "Recycle Recipe: " + material.getLocalizedName()
- + " - Success - Recycle "
- + tempStack.getDisplayName()
- + " and obtain "
- + mDust.getDisplayName());
+ "Recycle Recipe: " + material.getLocalizedName()
+ + " - Success - Recycle "
+ + tempStack.getDisplayName()
+ + " and obtain "
+ + mDust.getDisplayName());
} else {
Logger.WARNING("Recycle Recipe: " + material.getLocalizedName() + " - Failed");
if (mDust == null) {
@@ -148,30 +148,31 @@ public class RecipeGen_Recycling implements Runnable {
// mValidItems[mSlotIndex++] = tempStack;
int aFluidAmount = (int) ((L * validPrefix.getKey().mMaterialAmount)
- / (M * tempStack.stackSize));
+ / (M * tempStack.stackSize));
int aDuration = (int) Math.max(1, (24 * validPrefix.getKey().mMaterialAmount) / M);
boolean aGenFluidExtraction = CORE.RA.addFluidExtractionRecipe(
- tempStack,
- material.getFluidStack(aFluidAmount),
- aDuration,
- material.vVoltageMultiplier);
+ tempStack,
+ material.getFluidStack(aFluidAmount),
+ aDuration,
+ material.vVoltageMultiplier);
if (aGenFluidExtraction /*
* (mDust != null) && CORE.RA.addFluidExtractionRecipe(tempStack,
* material.getFluidStack(mFluidAmount), 30,
* material.vVoltageMultiplier)
*/) {
Logger.WARNING(
- "Fluid Recycle Recipe: " + material.getLocalizedName()
- + " - Success - Recycle "
- + tempStack.getDisplayName()
- + " and obtain "
- + aFluidAmount
- + "mb of "
- + material.getFluidStack(1).getLocalizedName()
- + ". Time: "
- + aDuration
- + ", Voltage: "
- + material.vVoltageMultiplier);
+ "Fluid Recycle Recipe: " + material.getLocalizedName()
+ + " - Success - Recycle "
+ + tempStack.getDisplayName()
+ + " and obtain "
+ + aFluidAmount
+ + "mb of "
+ + material.getFluidStack(1)
+ .getLocalizedName()
+ + ". Time: "
+ + aDuration
+ + ", Voltage: "
+ + material.vVoltageMultiplier);
} else {
Logger.WARNING("Fluid Recycle Recipe: " + material.getLocalizedName() + " - Failed");
if (mDust == null) {
@@ -264,17 +265,17 @@ public class RecipeGen_Recycling implements Runnable {
}
public static ItemStack get(final OrePrefixes aPrefix, final Material aMaterial, final ItemStack aReplacement,
- final long aAmount) {
+ final long aAmount) {
return get(
- aPrefix.name() + Utils.sanitizeString(aMaterial.getLocalizedName()),
- aReplacement,
- aAmount,
- false,
- true);
+ aPrefix.name() + Utils.sanitizeString(aMaterial.getLocalizedName()),
+ aReplacement,
+ aAmount,
+ false,
+ true);
}
public static ItemStack get(final Object aName, final ItemStack aReplacement, final long aAmount,
- final boolean aMentionPossibleTypos, final boolean aNoInvalidAmounts) {
+ final boolean aMentionPossibleTypos, final boolean aNoInvalidAmounts) {
if (aNoInvalidAmounts && (aAmount < 1L)) {
Logger.WARNING("Returning Null. Method: " + ReflectionUtils.getMethodName(0));
Logger.WARNING("Called from method: " + ReflectionUtils.getMethodName(1));
@@ -287,8 +288,8 @@ public class RecipeGen_Recycling implements Runnable {
Logger.WARNING("Unknown Key for Unification, Typo? " + aName);
}
return GT_Utility.copyAmount(
- aAmount,
- new Object[] { mNameMap.get(aName.toString()), getFirstOre(aName, aAmount), aReplacement });
+ aAmount,
+ new Object[] { mNameMap.get(aName.toString()), getFirstOre(aName, aAmount), aReplacement });
}
public static ItemStack getFirstOre(final Object aName, final long aAmount) {
@@ -328,7 +329,7 @@ public class RecipeGen_Recycling implements Runnable {
Map<String, ItemStack> tempMap;
try {
tempMap = (Map<String, ItemStack>) FieldUtils
- .readStaticField(GT_OreDictUnificator.class, "sName2StackMap", true);
+ .readStaticField(GT_OreDictUnificator.class, "sName2StackMap", true);
if (tempMap != null) {
Logger.WARNING("Found 'sName2StackMap' in GT_OreDictUnificator.class.");
return tempMap;
@@ -352,8 +353,10 @@ public class RecipeGen_Recycling implements Runnable {
// Adds a check to grab dusts using GT methodology if possible.
ItemStack returnValue = null;
- if (oredictName.toLowerCase().contains("dust")) {
- final String MaterialName = oredictName.toLowerCase().replace("dust", "");
+ if (oredictName.toLowerCase()
+ .contains("dust")) {
+ final String MaterialName = oredictName.toLowerCase()
+ .replace("dust", "");
final Materials m = Materials.get(MaterialName);
if (m != null && m != Materials._NULL) {
returnValue = ItemUtils.getGregtechDust(m, amount);
@@ -379,13 +382,15 @@ public class RecipeGen_Recycling implements Runnable {
// Banned Materials and replacements for GT5.8 compat.
- if (oredictName.toLowerCase().contains("ingotclay")) {
+ if (oredictName.toLowerCase()
+ .contains("ingotclay")) {
return ItemUtils.getSimpleStack(Items.clay_ball, amount);
}
final ArrayList<ItemStack> oreDictList = OreDictionary.getOres(mTemp);
if (!oreDictList.isEmpty()) {
- final ItemStack returnValue = oreDictList.get(0).copy();
+ final ItemStack returnValue = oreDictList.get(0)
+ .copy();
returnValue.stackSize = amount;
return returnValue;
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_ShapedCrafting.java b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_ShapedCrafting.java
index fed32b5f7d..3ef1740189 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_ShapedCrafting.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_ShapedCrafting.java
@@ -33,45 +33,45 @@ public class RecipeGen_ShapedCrafting extends RecipeGen_Base {
// Single Plate Shaped/Shapeless
if (ItemUtils.checkForInvalidItems(material.getPlate(1))
- && ItemUtils.checkForInvalidItems(material.getIngot(1)))
+ && ItemUtils.checkForInvalidItems(material.getIngot(1)))
if (material.getPlate(1) != null && material.getIngot(1) != null) GT_ModHandler.addCraftingRecipe(
- material.getPlate(1),
- gregtech.api.util.GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS
- | gregtech.api.util.GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "h", "B", "I", Character.valueOf('I'), material.getIngot(1), Character.valueOf('B'),
- material.getIngot(1) });
+ material.getPlate(1),
+ gregtech.api.util.GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS
+ | gregtech.api.util.GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "h", "B", "I", Character.valueOf('I'), material.getIngot(1), Character.valueOf('B'),
+ material.getIngot(1) });
if (ItemUtils.checkForInvalidItems(material.getPlate(1))
- && ItemUtils.checkForInvalidItems(material.getIngot(1)))
+ && ItemUtils.checkForInvalidItems(material.getIngot(1)))
GT_ModHandler.addShapelessCraftingRecipe(
- material.getPlate(1),
- new Object[] { gregtech.api.enums.ToolDictNames.craftingToolForgeHammer, material.getIngot(1),
- material.getIngot(1) });
+ material.getPlate(1),
+ new Object[] { gregtech.api.enums.ToolDictNames.craftingToolForgeHammer, material.getIngot(1),
+ material.getIngot(1) });
// Double Plate Shaped/Shapeless
if (ItemUtils.checkForInvalidItems(material.getPlateDouble(1))
- && ItemUtils.checkForInvalidItems(material.getPlate(1)))
+ && ItemUtils.checkForInvalidItems(material.getPlate(1)))
GT_ModHandler.addCraftingRecipe(
- material.getPlateDouble(1),
- gregtech.api.util.GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS
- | gregtech.api.util.GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "I", "B", "h", Character.valueOf('I'), material.getPlate(1), Character.valueOf('B'),
- material.getPlate(1) });
+ material.getPlateDouble(1),
+ gregtech.api.util.GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS
+ | gregtech.api.util.GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "I", "B", "h", Character.valueOf('I'), material.getPlate(1), Character.valueOf('B'),
+ material.getPlate(1) });
if (ItemUtils.checkForInvalidItems(material.getPlateDouble(1))
- && ItemUtils.checkForInvalidItems(material.getPlate(1)))
+ && ItemUtils.checkForInvalidItems(material.getPlate(1)))
GT_ModHandler.addShapelessCraftingRecipe(
- material.getPlateDouble(1),
- new Object[] { gregtech.api.enums.ToolDictNames.craftingToolForgeHammer, material.getPlate(1),
- material.getPlate(1) });
+ material.getPlateDouble(1),
+ new Object[] { gregtech.api.enums.ToolDictNames.craftingToolForgeHammer, material.getPlate(1),
+ material.getPlate(1) });
// Ring Recipe
if (!material.isRadioactive && ItemUtils.checkForInvalidItems(material.getRing(1))
- && ItemUtils.checkForInvalidItems(material.getRod(1))) {
+ && ItemUtils.checkForInvalidItems(material.getRod(1))) {
if (GT_ModHandler.addCraftingRecipe(
- material.getRing(1),
- GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "h ", "fR", 'R', material.getRod(1) })) {
+ material.getRing(1),
+ GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "h ", "fR", 'R', material.getRod(1) })) {
Logger.WARNING("GT:NH Ring Recipe: " + material.getLocalizedName() + " - Success");
} else {
Logger.WARNING("GT:NH Ring Recipe: " + material.getLocalizedName() + " - Failed");
@@ -80,12 +80,12 @@ public class RecipeGen_ShapedCrafting extends RecipeGen_Base {
// Framebox Recipe
if (!material.isRadioactive && ItemUtils.checkForInvalidItems(material.getFrameBox(1))
- && ItemUtils.checkForInvalidItems(material.getRod(1))) {
+ && ItemUtils.checkForInvalidItems(material.getRod(1))) {
if (GT_ModHandler.addCraftingRecipe(
- material.getFrameBox(2),
- gregtech.api.util.GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS
- | gregtech.api.util.GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "RRR", "RwR", "RRR", 'R', material.getRod(1) })) {
+ material.getFrameBox(2),
+ gregtech.api.util.GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS
+ | gregtech.api.util.GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "RRR", "RwR", "RRR", 'R', material.getRod(1) })) {
Logger.WARNING("Framebox Recipe: " + material.getLocalizedName() + " - Success");
} else {
Logger.WARNING("Framebox Recipe: " + material.getLocalizedName() + " - Failed");
@@ -94,12 +94,12 @@ public class RecipeGen_ShapedCrafting extends RecipeGen_Base {
// Shaped Recipe - Bolts
if (!material.isRadioactive && ItemUtils.checkForInvalidItems(material.getBolt(1))
- && ItemUtils.checkForInvalidItems(material.getRod(1))) {
+ && ItemUtils.checkForInvalidItems(material.getRod(1))) {
if (GT_ModHandler.addCraftingRecipe(
- material.getBolt(2),
- gregtech.api.util.GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS
- | gregtech.api.util.GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "s ", " R", 'R', material.getRod(1) })) {
+ material.getBolt(2),
+ gregtech.api.util.GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS
+ | gregtech.api.util.GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "s ", " R", 'R', material.getRod(1) })) {
Logger.WARNING("Bolt Recipe: " + material.getLocalizedName() + " - Success");
} else {
Logger.WARNING("Bolt Recipe: " + material.getLocalizedName() + " - Failed");
@@ -108,12 +108,12 @@ public class RecipeGen_ShapedCrafting extends RecipeGen_Base {
// Shaped Recipe - Fine Wire
if (!material.isRadioactive && ItemUtils.checkForInvalidItems(material.getFoil(1))
- && ItemUtils.checkForInvalidItems(material.getFineWire(1))) {
+ && ItemUtils.checkForInvalidItems(material.getFineWire(1))) {
if (GT_ModHandler.addCraftingRecipe(
- material.getFineWire(1),
- gregtech.api.util.GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS
- | gregtech.api.util.GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "Fx", 'F', material.getFoil(1) })) {
+ material.getFineWire(1),
+ gregtech.api.util.GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS
+ | gregtech.api.util.GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "Fx", 'F', material.getFoil(1) })) {
Logger.WARNING("Fine Wire Recipe: " + material.getLocalizedName() + " - Success");
} else {
Logger.WARNING("Fine Wire Recipe: " + material.getLocalizedName() + " - Failed");
@@ -122,12 +122,12 @@ public class RecipeGen_ShapedCrafting extends RecipeGen_Base {
// Shaped Recipe - Foil
if (ItemUtils.checkForInvalidItems(material.getFoil(1))
- && ItemUtils.checkForInvalidItems(material.getPlate(1))) {
+ && ItemUtils.checkForInvalidItems(material.getPlate(1))) {
if (GT_ModHandler.addCraftingRecipe(
- material.getFoil(2),
- gregtech.api.util.GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS
- | gregtech.api.util.GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "hP", 'P', material.getPlate(1) })) {
+ material.getFoil(2),
+ gregtech.api.util.GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS
+ | gregtech.api.util.GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "hP", 'P', material.getPlate(1) })) {
Logger.WARNING("Foil Recipe: " + material.getLocalizedName() + " - Success");
} else {
Logger.WARNING("Foil Recipe: " + material.getLocalizedName() + " - Failed");
@@ -137,53 +137,53 @@ public class RecipeGen_ShapedCrafting extends RecipeGen_Base {
// Shaped Recipe - Ingot to Rod
if (ItemUtils.checkForInvalidItems(material.getRod(1)) && ItemUtils.checkForInvalidItems(material.getIngot(1)))
if (GT_ModHandler.addCraftingRecipe(
- material.getRod(1),
- gregtech.api.util.GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS
- | gregtech.api.util.GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "f ", " I", 'I', material.getIngot(1) })) {
- Logger.WARNING("Rod Recipe: " + material.getLocalizedName() + " - Success");
- } else {
- Logger.WARNING("Rod Recipe: " + material.getLocalizedName() + " - Failed");
- }
+ material.getRod(1),
+ gregtech.api.util.GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS
+ | gregtech.api.util.GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "f ", " I", 'I', material.getIngot(1) })) {
+ Logger.WARNING("Rod Recipe: " + material.getLocalizedName() + " - Success");
+ } else {
+ Logger.WARNING("Rod Recipe: " + material.getLocalizedName() + " - Failed");
+ }
// Shaped Recipe - Long Rod to two smalls
if (ItemUtils.checkForInvalidItems(material.getRod(1))
- && ItemUtils.checkForInvalidItems(material.getLongRod(1)))
+ && ItemUtils.checkForInvalidItems(material.getLongRod(1)))
if (GT_ModHandler.addCraftingRecipe(
- material.getRod(2),
- gregtech.api.util.GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS
- | gregtech.api.util.GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "s", "L", 'L', material.getLongRod(1) })) {
- Logger.WARNING("Rod Recipe: " + material.getLocalizedName() + " - Success");
- } else {
- Logger.WARNING("Rod Recipe: " + material.getLocalizedName() + " - Failed");
- }
+ material.getRod(2),
+ gregtech.api.util.GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS
+ | gregtech.api.util.GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "s", "L", 'L', material.getLongRod(1) })) {
+ Logger.WARNING("Rod Recipe: " + material.getLocalizedName() + " - Success");
+ } else {
+ Logger.WARNING("Rod Recipe: " + material.getLocalizedName() + " - Failed");
+ }
// Two small to long rod
if (ItemUtils.checkForInvalidItems(material.getLongRod(1))
- && ItemUtils.checkForInvalidItems(material.getRod(1)))
+ && ItemUtils.checkForInvalidItems(material.getRod(1)))
if (GT_ModHandler.addCraftingRecipe(
- material.getLongRod(1),
- gregtech.api.util.GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS
- | gregtech.api.util.GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "RhR", 'R', material.getRod(1) })) {
- Logger.WARNING("Long Rod Recipe: " + material.getLocalizedName() + " - Success");
- } else {
- Logger.WARNING("Long Rod Recipe: " + material.getLocalizedName() + " - Failed");
- }
+ material.getLongRod(1),
+ gregtech.api.util.GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS
+ | gregtech.api.util.GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "RhR", 'R', material.getRod(1) })) {
+ Logger.WARNING("Long Rod Recipe: " + material.getLocalizedName() + " - Success");
+ } else {
+ Logger.WARNING("Long Rod Recipe: " + material.getLocalizedName() + " - Failed");
+ }
// Rotor Recipe
if (!material.isRadioactive && ItemUtils.checkForInvalidItems(material.getRotor(1))
- && ItemUtils.checkForInvalidItems(material.getRing(1))
- && !material.isRadioactive
- && ItemUtils.checkForInvalidItems(material.getPlate(1))
- && ItemUtils.checkForInvalidItems(material.getScrew(1))) {
+ && ItemUtils.checkForInvalidItems(material.getRing(1))
+ && !material.isRadioactive
+ && ItemUtils.checkForInvalidItems(material.getPlate(1))
+ && ItemUtils.checkForInvalidItems(material.getScrew(1))) {
if (GT_ModHandler.addCraftingRecipe(
- material.getRotor(1),
- gregtech.api.util.GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS
- | gregtech.api.util.GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "PhP", "SRf", "PdP", 'P', material.getPlate(1), 'S', material.getScrew(1), 'R',
- material.getRing(1), })) {
+ material.getRotor(1),
+ gregtech.api.util.GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS
+ | gregtech.api.util.GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "PhP", "SRf", "PdP", 'P', material.getPlate(1), 'S', material.getScrew(1), 'R',
+ material.getRing(1), })) {
Logger.WARNING("Rotor Recipe: " + material.getLocalizedName() + " - Success");
} else {
Logger.WARNING("Rotor Recipe: " + material.getLocalizedName() + " - Failed");
@@ -192,13 +192,13 @@ public class RecipeGen_ShapedCrafting extends RecipeGen_Base {
// Gear Recipe
if (!material.isRadioactive && ItemUtils.checkForInvalidItems(material.getGear(1))
- && ItemUtils.checkForInvalidItems(material.getPlate(1))
- && ItemUtils.checkForInvalidItems(material.getRod(1))) {
+ && ItemUtils.checkForInvalidItems(material.getPlate(1))
+ && ItemUtils.checkForInvalidItems(material.getRod(1))) {
if (GT_ModHandler.addCraftingRecipe(
- material.getGear(1),
- gregtech.api.util.GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS
- | gregtech.api.util.GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "RPR", "PwP", "RPR", 'P', material.getPlate(1), 'R', material.getRod(1), })) {
+ material.getGear(1),
+ gregtech.api.util.GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS
+ | gregtech.api.util.GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "RPR", "PwP", "RPR", 'P', material.getPlate(1), 'R', material.getRod(1), })) {
Logger.WARNING("Gear Recipe: " + material.getLocalizedName() + " - Success");
} else {
Logger.WARNING("Gear Recipe: " + material.getLocalizedName() + " - Failed");
@@ -207,12 +207,12 @@ public class RecipeGen_ShapedCrafting extends RecipeGen_Base {
// Screws
if (!material.isRadioactive && ItemUtils.checkForInvalidItems(material.getScrew(1))
- && ItemUtils.checkForInvalidItems(material.getBolt(1))) {
+ && ItemUtils.checkForInvalidItems(material.getBolt(1))) {
if (GT_ModHandler.addCraftingRecipe(
- material.getScrew(1),
- gregtech.api.util.GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS
- | gregtech.api.util.GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "fB", "B ", 'B', material.getBolt(1), })) {
+ material.getScrew(1),
+ gregtech.api.util.GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS
+ | gregtech.api.util.GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "fB", "B ", 'B', material.getBolt(1), })) {
Logger.WARNING("Screw Recipe: " + material.getLocalizedName() + " - Success");
} else {
Logger.WARNING("Screw Recipe: " + material.getLocalizedName() + " - Failed");
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_AlgaeFarm.java b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_AlgaeFarm.java
index 035bd68678..69d79cdc4b 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_AlgaeFarm.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_AlgaeFarm.java
@@ -39,8 +39,8 @@ public class RecipeLoader_AlgaeFarm {
Logger.INFO("Tier " + aTier + aComp + " had no recipes, initialising new map.");
}
if (aTemp.size() < 500) {
- Logger.INFO(
- "Tier " + aTier + aComp + " has less than 500 recipes, generating " + (500 - aTemp.size()) + ".");
+ Logger
+ .INFO("Tier " + aTier + aComp + " has less than 500 recipes, generating " + (500 - aTemp.size()) + ".");
for (int i = aTemp.size(); i < 500; i++) {
aTemp.put(generateBaseRecipe(aCompost, aTier));
}
@@ -75,7 +75,7 @@ public class RecipeLoader_AlgaeFarm {
}
final int[] aDurations = new int[] { 2000, 1800, 1600, 1400, 1200, 1000, 512, 256, 128, 64, 32, 16, 8, 4, 2,
- 1 };
+ 1 };
ItemStack[] aInputs = new ItemStack[] {};
@@ -92,16 +92,16 @@ public class RecipeLoader_AlgaeFarm {
ItemStack[] aOutputs = getOutputsForTier(aTier);
GT_Recipe tRecipe = new GT_Recipe(
- false,
- aInputs,
- aOutputs,
- (Object) null,
- new int[] {},
- new FluidStack[] { GT_Values.NF },
- new FluidStack[] { GT_Values.NF },
- (int) (aDurations[aTier] * aOutputTimeMulti.get() / 2), // Time
- 0,
- 0);
+ false,
+ aInputs,
+ aOutputs,
+ (Object) null,
+ new int[] {},
+ new FluidStack[] { GT_Values.NF },
+ new FluidStack[] { GT_Values.NF },
+ (int) (aDurations[aTier] * aOutputTimeMulti.get() / 2), // Time
+ 0,
+ 0);
tRecipe.mSpecialValue = tRecipe.hashCode();
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_ChemicalSkips.java b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_ChemicalSkips.java
index c1b327a8be..dfa6d9dea6 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_ChemicalSkips.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_ChemicalSkips.java
@@ -66,604 +66,596 @@ public class RecipeLoader_ChemicalSkips {
ItemStack biocells = GT_Utility.copyAmountUnsafe(64 * 32, ItemList.Circuit_Chip_Biocell.get(1));
// Platline
CORE.RA.addQuantumTransformerRecipe(
- new ItemStack[] { WerkstoffLoader.PTMetallicPowder.get(OrePrefixes.dust, 32),
- ItemUtils.getSimpleStack(GenericChem.mPlatinumGroupCatalyst, 0) },
- new FluidStack[] {},
- new FluidStack[] {},
- new ItemStack[] { Materials.Platinum.getDust(64), Materials.Palladium.getDust(64),
- Materials.Iridium.getDust(64), Materials.Osmium.getDust(64),
- WerkstoffLoader.Rhodium.get(OrePrefixes.dust, 64),
- WerkstoffLoader.Ruthenium.get(OrePrefixes.dust, 64) },
- new int[] { 1667, 1667, 1667, 1667, 1667, 1667 },
- 20 * 20,
- (int) TierEU.RECIPE_UV,
- 1);
+ new ItemStack[] { WerkstoffLoader.PTMetallicPowder.get(OrePrefixes.dust, 32),
+ ItemUtils.getSimpleStack(GenericChem.mPlatinumGroupCatalyst, 0) },
+ new FluidStack[] {},
+ new FluidStack[] {},
+ new ItemStack[] { Materials.Platinum.getDust(64), Materials.Palladium.getDust(64),
+ Materials.Iridium.getDust(64), Materials.Osmium.getDust(64),
+ WerkstoffLoader.Rhodium.get(OrePrefixes.dust, 64),
+ WerkstoffLoader.Ruthenium.get(OrePrefixes.dust, 64) },
+ new int[] { 1667, 1667, 1667, 1667, 1667, 1667 },
+ 20 * 20,
+ (int) TierEU.RECIPE_UV,
+ 1);
// Early Plastics
CORE.RA.addQuantumTransformerRecipe(
- new ItemStack[] { Materials.Carbon.getDust(64),
- ItemUtils.getSimpleStack(GenericChem.mPlasticPolymerCatalyst, 0) },
- new FluidStack[] { Materials.Oxygen.getGas(1000 * 16), Materials.Hydrogen.getGas(1000 * 16),
- Materials.Chlorine.getGas(1000 * 16), Materials.Fluorine.getGas(1000 * 16) },
- new FluidStack[] { Materials.Plastic.getMolten(144 * 256),
- Materials.PolyvinylChloride.getMolten(144 * 128), Materials.Polystyrene.getMolten(144 * 64),
- Materials.Polytetrafluoroethylene.getMolten(144 * 128), Materials.Epoxid.getMolten(144 * 64),
- Materials.Polybenzimidazole.getMolten(144 * 64) },
- null,
- new int[] { 2000, 2000, 2000, 2000, 2000, 2000 },
- 20 * 20,
- (int) TierEU.RECIPE_ZPM,
- 1);
+ new ItemStack[] { Materials.Carbon.getDust(64),
+ ItemUtils.getSimpleStack(GenericChem.mPlasticPolymerCatalyst, 0) },
+ new FluidStack[] { Materials.Oxygen.getGas(1000 * 16), Materials.Hydrogen.getGas(1000 * 16),
+ Materials.Chlorine.getGas(1000 * 16), Materials.Fluorine.getGas(1000 * 16) },
+ new FluidStack[] { Materials.Plastic.getMolten(144 * 256), Materials.PolyvinylChloride.getMolten(144 * 128),
+ Materials.Polystyrene.getMolten(144 * 64), Materials.Polytetrafluoroethylene.getMolten(144 * 128),
+ Materials.Epoxid.getMolten(144 * 64), Materials.Polybenzimidazole.getMolten(144 * 64) },
+ null,
+ new int[] { 2000, 2000, 2000, 2000, 2000, 2000 },
+ 20 * 20,
+ (int) TierEU.RECIPE_ZPM,
+ 1);
// Early Rubbers/Cable Materials
CORE.RA.addQuantumTransformerRecipe(
- new ItemStack[] { Materials.Carbon.getDust(64),
- ItemUtils.getSimpleStack(GenericChem.mRubberPolymerCatalyst, 0) },
- new FluidStack[] { Materials.Oxygen.getGas(1000 * 16), Materials.Hydrogen.getGas(1000 * 16),
- Materials.Chlorine.getGas(1000 * 16) },
- new FluidStack[] { Materials.Silicone.getMolten(144 * 64),
- Materials.StyreneButadieneRubber.getMolten(144 * 64),
- Materials.PolyphenyleneSulfide.getMolten(144 * 128), Materials.Rubber.getMolten(144 * 256) },
- null,
- new int[] { 2500, 2500, 2500, 2500 },
- 20 * 20,
- (int) TierEU.RECIPE_ZPM,
- 1);
+ new ItemStack[] { Materials.Carbon.getDust(64),
+ ItemUtils.getSimpleStack(GenericChem.mRubberPolymerCatalyst, 0) },
+ new FluidStack[] { Materials.Oxygen.getGas(1000 * 16), Materials.Hydrogen.getGas(1000 * 16),
+ Materials.Chlorine.getGas(1000 * 16) },
+ new FluidStack[] { Materials.Silicone.getMolten(144 * 64),
+ Materials.StyreneButadieneRubber.getMolten(144 * 64),
+ Materials.PolyphenyleneSulfide.getMolten(144 * 128), Materials.Rubber.getMolten(144 * 256) },
+ null,
+ new int[] { 2500, 2500, 2500, 2500 },
+ 20 * 20,
+ (int) TierEU.RECIPE_ZPM,
+ 1);
// Glues and Solders
CORE.RA.addQuantumTransformerRecipe(
- new ItemStack[] { Materials.Carbon.getDust(32), Materials.Bismuth.getDust(32),
- ItemUtils.getSimpleStack(GenericChem.mAdhesionPromoterCatalyst, 0) },
- new FluidStack[] { Materials.Oxygen.getGas(10000), Materials.Hydrogen.getGas(10000) },
- new FluidStack[] { MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(1000 * 32),
- Materials.AdvancedGlue.getFluid(1000 * 16), ALLOY.INDALLOY_140.getFluidStack(144 * 64),
- Materials.SolderingAlloy.getMolten(144 * 128) },
- new ItemStack[] { ItemList.StableAdhesive.get(1) },
- new int[] { 2000, 2000, 2000, 2000, 2000 },
- 20 * 20,
- (int) TierEU.RECIPE_UV,
- 1);
+ new ItemStack[] { Materials.Carbon.getDust(32), Materials.Bismuth.getDust(32),
+ ItemUtils.getSimpleStack(GenericChem.mAdhesionPromoterCatalyst, 0) },
+ new FluidStack[] { Materials.Oxygen.getGas(10000), Materials.Hydrogen.getGas(10000) },
+ new FluidStack[] { MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(1000 * 32),
+ Materials.AdvancedGlue.getFluid(1000 * 16), ALLOY.INDALLOY_140.getFluidStack(144 * 64),
+ Materials.SolderingAlloy.getMolten(144 * 128) },
+ new ItemStack[] { ItemList.StableAdhesive.get(1) },
+ new int[] { 2000, 2000, 2000, 2000, 2000 },
+ 20 * 20,
+ (int) TierEU.RECIPE_UV,
+ 1);
// Titanium, Tungsten, Indium
CORE.RA.addQuantumTransformerRecipe(
- new ItemStack[] { Materials.Lead.getDust(16), Materials.Bauxite.getDust(32),
- Materials.Tungstate.getDust(16),
- ItemUtils.getSimpleStack(GenericChem.mTitaTungstenIndiumCatalyst, 0) },
- new FluidStack[] {},
- new FluidStack[] {},
- new ItemStack[] { Materials.Titanium.getDust(64), Materials.TungstenSteel.getDust(64),
- Materials.TungstenCarbide.getDust(64), Materials.Indium.getDust(64) },
- new int[] { 2500, 2500, 2500, 2500 },
- 20 * 20,
- (int) TierEU.RECIPE_UV,
- 1);
+ new ItemStack[] { Materials.Lead.getDust(16), Materials.Bauxite.getDust(32),
+ Materials.Tungstate.getDust(16), ItemUtils.getSimpleStack(GenericChem.mTitaTungstenIndiumCatalyst, 0) },
+ new FluidStack[] {},
+ new FluidStack[] {},
+ new ItemStack[] { Materials.Titanium.getDust(64), Materials.TungstenSteel.getDust(64),
+ Materials.TungstenCarbide.getDust(64), Materials.Indium.getDust(64) },
+ new int[] { 2500, 2500, 2500, 2500 },
+ 20 * 20,
+ (int) TierEU.RECIPE_UV,
+ 1);
// Thorium, Uranium, Plutonium
CORE.RA.addQuantumTransformerRecipe(
- new ItemStack[] { Materials.Thorium.getDust(32), Materials.Uranium.getDust(32),
- ItemUtils.getSimpleStack(GenericChem.mRadioactivityCatalyst, 0) },
- new FluidStack[] {},
- new FluidStack[] {},
- new ItemStack[] { ELEMENT.getInstance().THORIUM232.getDust(64),
- ELEMENT.getInstance().URANIUM233.getDust(64), Materials.Uranium235.getDust(64),
- ELEMENT.getInstance().PLUTONIUM238.getDust(64), Materials.Plutonium.getDust(64),
- Materials.Plutonium241.getDust(64) },
- new int[] { 1667, 1667, 1667, 1667, 1667, 1667 },
- 20 * 20,
- (int) TierEU.RECIPE_UV,
- 1);
+ new ItemStack[] { Materials.Thorium.getDust(32), Materials.Uranium.getDust(32),
+ ItemUtils.getSimpleStack(GenericChem.mRadioactivityCatalyst, 0) },
+ new FluidStack[] {},
+ new FluidStack[] {},
+ new ItemStack[] { ELEMENT.getInstance().THORIUM232.getDust(64),
+ ELEMENT.getInstance().URANIUM233.getDust(64), Materials.Uranium235.getDust(64),
+ ELEMENT.getInstance().PLUTONIUM238.getDust(64), Materials.Plutonium.getDust(64),
+ Materials.Plutonium241.getDust(64) },
+ new int[] { 1667, 1667, 1667, 1667, 1667, 1667 },
+ 20 * 20,
+ (int) TierEU.RECIPE_UV,
+ 1);
// Monaline
CORE.RA.addQuantumTransformerRecipe(
- new ItemStack[] { Materials.Monazite.getDust(32),
- ItemUtils.getSimpleStack(GenericChem.mRareEarthGroupCatalyst, 0) },
- new FluidStack[] {},
- new FluidStack[] {},
- new ItemStack[] { Materials.Cerium.getDust(64), Materials.Gadolinium.getDust(64),
- Materials.Samarium.getDust(64), getModItem(BartWorks.ID, "gt.bwMetaGenerateddust", 64L, 11002), // Hafnia
- getModItem(BartWorks.ID, "gt.bwMetaGenerateddust", 64L, 11007), // Zirconium
- ItemList.SuperconductorComposite.get(1) },
- new int[] { 1667, 1667, 1667, 1667, 1667, 1667 },
- 20 * 20,
- (int) TierEU.RECIPE_UHV,
- 2);
+ new ItemStack[] { Materials.Monazite.getDust(32),
+ ItemUtils.getSimpleStack(GenericChem.mRareEarthGroupCatalyst, 0) },
+ new FluidStack[] {},
+ new FluidStack[] {},
+ new ItemStack[] { Materials.Cerium.getDust(64), Materials.Gadolinium.getDust(64),
+ Materials.Samarium.getDust(64), getModItem(BartWorks.ID, "gt.bwMetaGenerateddust", 64L, 11002), // Hafnia
+ getModItem(BartWorks.ID, "gt.bwMetaGenerateddust", 64L, 11007), // Zirconium
+ ItemList.SuperconductorComposite.get(1) },
+ new int[] { 1667, 1667, 1667, 1667, 1667, 1667 },
+ 20 * 20,
+ (int) TierEU.RECIPE_UHV,
+ 2);
// Bastline
CORE.RA.addQuantumTransformerRecipe(
- new ItemStack[] { Materials.Bastnasite.getDust(32),
- ItemUtils.getSimpleStack(GenericChem.mRareEarthGroupCatalyst, 0) },
- null,
- null,
- new ItemStack[] { Materials.Holmium.getDust(64), Materials.Cerium.getDust(64),
- Materials.Samarium.getDust(64), Materials.Gadolinium.getDust(64),
- Materials.Lanthanum.getDust(64) },
- new int[] { 2000, 2000, 2000, 2000, 2000 },
- 20 * 20,
- (int) TierEU.RECIPE_UHV,
- 2);
+ new ItemStack[] { Materials.Bastnasite.getDust(32),
+ ItemUtils.getSimpleStack(GenericChem.mRareEarthGroupCatalyst, 0) },
+ null,
+ null,
+ new ItemStack[] { Materials.Holmium.getDust(64), Materials.Cerium.getDust(64),
+ Materials.Samarium.getDust(64), Materials.Gadolinium.getDust(64), Materials.Lanthanum.getDust(64) },
+ new int[] { 2000, 2000, 2000, 2000, 2000 },
+ 20 * 20,
+ (int) TierEU.RECIPE_UHV,
+ 2);
// Early Waterline skip (first 4 tiers)
CORE.RA.addQuantumTransformerRecipe(
- new ItemStack[] { ItemUtils.getSimpleStack(GenericChem.mLimpidWaterCatalyst, 0) },
- new FluidStack[] { Materials.Water.getFluid(40000L) },
- new FluidStack[] { Materials.Grade1PurifiedWater.getFluid(20000L),
- Materials.Grade2PurifiedWater.getFluid(10000L), Materials.Grade3PurifiedWater.getFluid(5000L),
- Materials.Grade4PurifiedWater.getFluid(1000L) },
- new ItemStack[] {},
- new int[] { 2500, 2500, 2500, 2500 },
- 20 * 20,
- (int) TierEU.RECIPE_UHV,
- 2);
+ new ItemStack[] { ItemUtils.getSimpleStack(GenericChem.mLimpidWaterCatalyst, 0) },
+ new FluidStack[] { Materials.Water.getFluid(40000L) },
+ new FluidStack[] { Materials.Grade1PurifiedWater.getFluid(20000L),
+ Materials.Grade2PurifiedWater.getFluid(10000L), Materials.Grade3PurifiedWater.getFluid(5000L),
+ Materials.Grade4PurifiedWater.getFluid(1000L) },
+ new ItemStack[] {},
+ new int[] { 2500, 2500, 2500, 2500 },
+ 20 * 20,
+ (int) TierEU.RECIPE_UHV,
+ 2);
// Stem Cells
CORE.RA.addQuantumTransformerRecipe(
- new ItemStack[] { Materials.Calcium.getDust(32), Materials.MeatRaw.getDust(32),
- getModItem(NewHorizonsCoreMod.ID, "GTNHBioItems", 32, 2),
- ItemUtils.getSimpleStack(GenericChem.mRawIntelligenceCatalyst, 0) },
- new FluidStack[] {},
- new FluidStack[] { Materials.GrowthMediumRaw.getFluid(1000 * 1024),
- Materials.GrowthMediumSterilized.getFluid(1000 * 512) },
- new ItemStack[] { stemcells },
- new int[] { 3333, 3333, 3333 },
- 20 * 20,
- (int) TierEU.RECIPE_UEV,
- 3);
+ new ItemStack[] { Materials.Calcium.getDust(32), Materials.MeatRaw.getDust(32),
+ getModItem(NewHorizonsCoreMod.ID, "GTNHBioItems", 32, 2),
+ ItemUtils.getSimpleStack(GenericChem.mRawIntelligenceCatalyst, 0) },
+ new FluidStack[] {},
+ new FluidStack[] { Materials.GrowthMediumRaw.getFluid(1000 * 1024),
+ Materials.GrowthMediumSterilized.getFluid(1000 * 512) },
+ new ItemStack[] { stemcells },
+ new int[] { 3333, 3333, 3333 },
+ 20 * 20,
+ (int) TierEU.RECIPE_UEV,
+ 3);
// Unknown Particles
CORE.RA.addQuantumTransformerRecipe(
- new ItemStack[] { ItemUtils.getSimpleStack(GenericChem.mParticleAccelerationCatalyst, 0) },
- new FluidStack[] { Materials.Hydrogen.getGas(10000L), Materials.Deuterium.getGas(1000L) },
- new FluidStack[] { FluidUtils.getFluidStack("plasma.hydrogen", 1000) },
- new ItemStack[] { Particle.getBaseParticle(Particle.UNKNOWN),
- Particle.getBaseParticle(Particle.GRAVITON), Particle.getBaseParticle(Particle.PROTON),
- Particle.getBaseParticle(Particle.ELECTRON) },
- new int[] { 2000, 2000, 2000, 2000, 2000 },
- 5 * 20,
- (int) TierEU.RECIPE_UEV,
- 3);
+ new ItemStack[] { ItemUtils.getSimpleStack(GenericChem.mParticleAccelerationCatalyst, 0) },
+ new FluidStack[] { Materials.Hydrogen.getGas(10000L), Materials.Deuterium.getGas(1000L) },
+ new FluidStack[] { FluidUtils.getFluidStack("plasma.hydrogen", 1000) },
+ new ItemStack[] { Particle.getBaseParticle(Particle.UNKNOWN), Particle.getBaseParticle(Particle.GRAVITON),
+ Particle.getBaseParticle(Particle.PROTON), Particle.getBaseParticle(Particle.ELECTRON) },
+ new int[] { 2000, 2000, 2000, 2000, 2000 },
+ 5 * 20,
+ (int) TierEU.RECIPE_UEV,
+ 3);
// Lategame Plastics (Missing Radox Polymer and Heavy Radox)
CORE.RA.addQuantumTransformerRecipe(
- new ItemStack[] { Materials.Carbon.getDust(64), Materials.Osmium.getDust(24),
- ItemUtils.getSimpleStack(GenericChem.mUltimatePlasticCatalyst, 0) },
- new FluidStack[] { Materials.Hydrogen.getGas(1000 * 16), Materials.Nitrogen.getGas(1000 * 16) },
- new FluidStack[] { FluidUtils.getFluidStack("xenoxene", 1000 * 16),
- FluidUtils.getFluidStack("molten.radoxpoly", 144 * 64),
- FluidUtils.getFluidStack("heavyradox", 1000 * 16), MaterialsKevlar.Kevlar.getMolten(144 * 64) },
- new ItemStack[] {},
- new int[] { 2500, 2500, 2500, 2500 },
- 20 * 20,
- (int) TierEU.RECIPE_UIV,
- 4);
+ new ItemStack[] { Materials.Carbon.getDust(64), Materials.Osmium.getDust(24),
+ ItemUtils.getSimpleStack(GenericChem.mUltimatePlasticCatalyst, 0) },
+ new FluidStack[] { Materials.Hydrogen.getGas(1000 * 16), Materials.Nitrogen.getGas(1000 * 16) },
+ new FluidStack[] { FluidUtils.getFluidStack("xenoxene", 1000 * 16),
+ FluidUtils.getFluidStack("molten.radoxpoly", 144 * 64),
+ FluidUtils.getFluidStack("heavyradox", 1000 * 16), MaterialsKevlar.Kevlar.getMolten(144 * 64) },
+ new ItemStack[] {},
+ new int[] { 2500, 2500, 2500, 2500 },
+ 20 * 20,
+ (int) TierEU.RECIPE_UIV,
+ 4);
// Lategame Kevlar using Kevlar bee comb
CORE.RA.addQuantumTransformerRecipe(
- new ItemStack[] { GT_Bees.combs.getStackForType(CombType.KEVLAR, 24), Materials.Carbon.getDust(64),
- ItemUtils.getSimpleStack(GenericChem.mUltimatePlasticCatalyst, 0) },
- new FluidStack[] { Materials.Nitrogen.getGas(1000 * 16), Materials.Hydrogen.getGas(1000 * 16) },
- new FluidStack[] { MaterialsKevlar.PolyurethaneResin.getFluid(1000 * 32),
- MaterialsKevlar.LiquidCrystalKevlar.getFluid(144 * 32),
- MaterialsKevlar.Kevlar.getMolten(144 * 64) },
- new ItemStack[] {},
- new int[] { 2500, 2500, 2500, 2500 },
- 20 * 20,
- (int) TierEU.RECIPE_UIV,
- 4);
+ new ItemStack[] { GT_Bees.combs.getStackForType(CombType.KEVLAR, 24), Materials.Carbon.getDust(64),
+ ItemUtils.getSimpleStack(GenericChem.mUltimatePlasticCatalyst, 0) },
+ new FluidStack[] { Materials.Nitrogen.getGas(1000 * 16), Materials.Hydrogen.getGas(1000 * 16) },
+ new FluidStack[] { MaterialsKevlar.PolyurethaneResin.getFluid(1000 * 32),
+ MaterialsKevlar.LiquidCrystalKevlar.getFluid(144 * 32), MaterialsKevlar.Kevlar.getMolten(144 * 64) },
+ new ItemStack[] {},
+ new int[] { 2500, 2500, 2500, 2500 },
+ 20 * 20,
+ (int) TierEU.RECIPE_UIV,
+ 4);
// Platline skip using Platline Combs (Palladium, Osmium, Iridium, Platinum)
CORE.RA.addQuantumTransformerRecipe(
- new ItemStack[] { GT_Bees.combs.getStackForType(CombType.PLATINUM, 32),
- GT_Bees.combs.getStackForType(CombType.PALLADIUM, 32),
- GT_Bees.combs.getStackForType(CombType.OSMIUM, 32),
- GT_Bees.combs.getStackForType(CombType.IRIDIUM, 32),
- ItemUtils.getSimpleStack(GenericChem.mPlatinumGroupCatalyst, 0) },
- new FluidStack[] {},
- new FluidStack[] { Materials.Osmium.getMolten(144 * 256), Materials.Palladium.getMolten(144 * 256),
- Materials.Iridium.getMolten(144 * 256), Materials.Platinum.getMolten(144 * 256) },
- new ItemStack[] {},
- new int[] { 2500, 2500, 2500, 2500 },
- 20 * 20,
- (int) TierEU.RECIPE_UV,
- 1);
+ new ItemStack[] { GT_Bees.combs.getStackForType(CombType.PLATINUM, 32),
+ GT_Bees.combs.getStackForType(CombType.PALLADIUM, 32),
+ GT_Bees.combs.getStackForType(CombType.OSMIUM, 32), GT_Bees.combs.getStackForType(CombType.IRIDIUM, 32),
+ ItemUtils.getSimpleStack(GenericChem.mPlatinumGroupCatalyst, 0) },
+ new FluidStack[] {},
+ new FluidStack[] { Materials.Osmium.getMolten(144 * 256), Materials.Palladium.getMolten(144 * 256),
+ Materials.Iridium.getMolten(144 * 256), Materials.Platinum.getMolten(144 * 256) },
+ new ItemStack[] {},
+ new int[] { 2500, 2500, 2500, 2500 },
+ 20 * 20,
+ (int) TierEU.RECIPE_UV,
+ 1);
// Bio Cells and Mutated Solder
CORE.RA.addQuantumTransformerRecipe(
- new ItemStack[] { ItemList.Circuit_Chip_Stemcell.get(16), Materials.InfinityCatalyst.getDust(4),
- ItemUtils.getSimpleStack(GenericChem.mBiologicalIntelligenceCatalyst, 0) },
- new FluidStack[] {},
- new FluidStack[] { MISC_MATERIALS.MUTATED_LIVING_SOLDER.getFluidStack(144 * 128),
- Materials.BioMediumSterilized.getFluid(1000 * 256),
- Materials.BioMediumRaw.getFluid(1000 * 512) },
- new ItemStack[] { biocells },
- new int[] { 2500, 2500, 2500, 2500 },
- 20 * 20,
- (int) TierEU.RECIPE_UIV,
- 4);
+ new ItemStack[] { ItemList.Circuit_Chip_Stemcell.get(16), Materials.InfinityCatalyst.getDust(4),
+ ItemUtils.getSimpleStack(GenericChem.mBiologicalIntelligenceCatalyst, 0) },
+ new FluidStack[] {},
+ new FluidStack[] { MISC_MATERIALS.MUTATED_LIVING_SOLDER.getFluidStack(144 * 128),
+ Materials.BioMediumSterilized.getFluid(1000 * 256), Materials.BioMediumRaw.getFluid(1000 * 512) },
+ new ItemStack[] { biocells },
+ new int[] { 2500, 2500, 2500, 2500 },
+ 20 * 20,
+ (int) TierEU.RECIPE_UIV,
+ 4);
// Advanced Waterline skip (last 4 tiers)
CORE.RA.addQuantumTransformerRecipe(
- new ItemStack[] { ItemUtils.getSimpleStack(GenericChem.mFlawlessWaterCatalyst, 0) },
- new FluidStack[] { Materials.Water.getFluid(40000L) },
- new FluidStack[] { Materials.Grade5PurifiedWater.getFluid(20000L),
- Materials.Grade6PurifiedWater.getFluid(10000L), Materials.Grade7PurifiedWater.getFluid(5000L),
- Materials.Grade8PurifiedWater.getFluid(1000L) },
- new ItemStack[] {},
- new int[] { 2500, 2500, 2500, 2500 },
- 20 * 20,
- (int) TierEU.RECIPE_UIV,
- 4);
+ new ItemStack[] { ItemUtils.getSimpleStack(GenericChem.mFlawlessWaterCatalyst, 0) },
+ new FluidStack[] { Materials.Water.getFluid(40000L) },
+ new FluidStack[] { Materials.Grade5PurifiedWater.getFluid(20000L),
+ Materials.Grade6PurifiedWater.getFluid(10000L), Materials.Grade7PurifiedWater.getFluid(5000L),
+ Materials.Grade8PurifiedWater.getFluid(1000L) },
+ new ItemStack[] {},
+ new int[] { 2500, 2500, 2500, 2500 },
+ 20 * 20,
+ (int) TierEU.RECIPE_UIV,
+ 4);
// Rare Particles
CORE.RA.addQuantumTransformerRecipe(
- new ItemStack[] { ItemUtils.getSimpleStack(GenericChem.mSynchrotronCapableCatalyst, 0),
- GregtechItemList.Laser_Lens_Special.get(1) },
- new FluidStack[] { FluidUtils.getFluidStack("plasma.hydrogen", 30000),
- Materials.Helium.getPlasma(30000L), Materials.Americium.getPlasma(30000L),
- new FluidStack(ELEMENT.STANDALONE.CELESTIAL_TUNGSTEN.getPlasma(), 30000) },
- new FluidStack[] {},
- new ItemStack[] { Particle.getBaseParticle(Particle.Z_BOSON),
- Particle.getBaseParticle(Particle.W_BOSON), Particle.getBaseParticle(Particle.LAMBDA),
- Particle.getBaseParticle(Particle.OMEGA), Particle.getBaseParticle(Particle.HIGGS_BOSON) },
- new int[] { 2000, 2000, 2000, 2000, 2000 },
- 200 * 20,
- (int) TierEU.RECIPE_UIV,
- 4);
+ new ItemStack[] { ItemUtils.getSimpleStack(GenericChem.mSynchrotronCapableCatalyst, 0),
+ GregtechItemList.Laser_Lens_Special.get(1) },
+ new FluidStack[] { FluidUtils.getFluidStack("plasma.hydrogen", 30000), Materials.Helium.getPlasma(30000L),
+ Materials.Americium.getPlasma(30000L),
+ new FluidStack(ELEMENT.STANDALONE.CELESTIAL_TUNGSTEN.getPlasma(), 30000) },
+ new FluidStack[] {},
+ new ItemStack[] { Particle.getBaseParticle(Particle.Z_BOSON), Particle.getBaseParticle(Particle.W_BOSON),
+ Particle.getBaseParticle(Particle.LAMBDA), Particle.getBaseParticle(Particle.OMEGA),
+ Particle.getBaseParticle(Particle.HIGGS_BOSON) },
+ new int[] { 2000, 2000, 2000, 2000, 2000 },
+ 200 * 20,
+ (int) TierEU.RECIPE_UIV,
+ 4);
if (GalaxySpace.isModLoaded()) {
// Seaweed
ItemStack seaweed = GT_Utility
- .copyAmountUnsafe(64 * 32, getModItem(GalaxySpace.ID, "tcetiedandelions", 1, 4));
+ .copyAmountUnsafe(64 * 32, getModItem(GalaxySpace.ID, "tcetiedandelions", 1, 4));
CORE.RA.addQuantumTransformerRecipe(
- new ItemStack[] { GT_OreDictUnificator.get("cropSeaweed", 64), Materials.Mytryl.getDust(16),
- ItemUtils.getSimpleStack(GenericChem.mAlgagenicGrowthPromoterCatalyst, 0) },
- new FluidStack[] { FluidUtils.getFluidStack("unknowwater", 25_000) },
- new FluidStack[] { FluidUtils.getFluidStack("seaweedbroth", 50_000),
- FluidUtils.getFluidStack("iodine", 64_000) },
- new ItemStack[] { seaweed, getModItem(NewHorizonsCoreMod.ID, "item.TCetiESeaweedExtract", 16) },
- new int[] { 2_500, 2_500, 2_500, 2_500 },
- 20 * SECONDS,
- (int) TierEU.RECIPE_UIV,
- 4);
+ new ItemStack[] { GT_OreDictUnificator.get("cropSeaweed", 64), Materials.Mytryl.getDust(16),
+ ItemUtils.getSimpleStack(GenericChem.mAlgagenicGrowthPromoterCatalyst, 0) },
+ new FluidStack[] { FluidUtils.getFluidStack("unknowwater", 25_000) },
+ new FluidStack[] { FluidUtils.getFluidStack("seaweedbroth", 50_000),
+ FluidUtils.getFluidStack("iodine", 64_000) },
+ new ItemStack[] { seaweed, getModItem(NewHorizonsCoreMod.ID, "item.TCetiESeaweedExtract", 16) },
+ new int[] { 2_500, 2_500, 2_500, 2_500 },
+ 20 * SECONDS,
+ (int) TierEU.RECIPE_UIV,
+ 4);
}
}
private static void fusionReactorRecipes() {
GT_Values.RA.addFusionReactorRecipe(
- new FluidStack[] { Materials.Radon.getPlasma(100), Materials.Nitrogen.getPlasma(100) },
- new FluidStack[] { new FluidStack(ELEMENT.getInstance().NEPTUNIUM.getPlasma(), 100) },
- 30 * 20,
- (int) TierEU.RECIPE_UHV,
- 1_000_000_000);
+ new FluidStack[] { Materials.Radon.getPlasma(100), Materials.Nitrogen.getPlasma(100) },
+ new FluidStack[] { new FluidStack(ELEMENT.getInstance().NEPTUNIUM.getPlasma(), 100) },
+ 30 * 20,
+ (int) TierEU.RECIPE_UHV,
+ 1_000_000_000);
GT_Values.RA.addFusionReactorRecipe(
- new FluidStack[] { Materials.Americium.getPlasma(100), Materials.Boron.getPlasma(100) },
- new FluidStack[] { new FluidStack(ELEMENT.getInstance().FERMIUM.getPlasma(), 100) },
- 30 * 20,
- (int) TierEU.RECIPE_UHV,
- 1_000_000_000);
+ new FluidStack[] { Materials.Americium.getPlasma(100), Materials.Boron.getPlasma(100) },
+ new FluidStack[] { new FluidStack(ELEMENT.getInstance().FERMIUM.getPlasma(), 100) },
+ 30 * 20,
+ (int) TierEU.RECIPE_UHV,
+ 1_000_000_000);
// MK5 versions
GT_Values.RA.addFusionReactorRecipe(
- new FluidStack[] { new FluidStack(ELEMENT.getInstance().XENON.getPlasma(), 288),
- Materials.Yttrium.getMolten(288) },
- new FluidStack[] { new FluidStack(ELEMENT.getInstance().NEPTUNIUM.getPlasma(), 288) },
- 1 * SECONDS + 12 * TICKS,
- (int) TierEU.RECIPE_UEV,
- 1_000_000_000);
+ new FluidStack[] { new FluidStack(ELEMENT.getInstance().XENON.getPlasma(), 288),
+ Materials.Yttrium.getMolten(288) },
+ new FluidStack[] { new FluidStack(ELEMENT.getInstance().NEPTUNIUM.getPlasma(), 288) },
+ 1 * SECONDS + 12 * TICKS,
+ (int) TierEU.RECIPE_UEV,
+ 1_000_000_000);
GT_Values.RA.addFusionReactorRecipe(
- new FluidStack[] { new FluidStack(ELEMENT.STANDALONE.FORCE.getPlasma(), 288),
- Materials.Rubidium.getMolten(288) },
- new FluidStack[] { new FluidStack(ELEMENT.getInstance().FERMIUM.getPlasma(), 288) },
- 1 * SECONDS + 12 * TICKS,
- (int) TierEU.RECIPE_UEV,
- 1_000_000_000);
+ new FluidStack[] { new FluidStack(ELEMENT.STANDALONE.FORCE.getPlasma(), 288),
+ Materials.Rubidium.getMolten(288) },
+ new FluidStack[] { new FluidStack(ELEMENT.getInstance().FERMIUM.getPlasma(), 288) },
+ 1 * SECONDS + 12 * TICKS,
+ (int) TierEU.RECIPE_UEV,
+ 1_000_000_000);
}
private static void catalystRecipes() {
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1),
- getModItem(BartWorks.ID, "gt.bwMetaGenerateddust", 64L, 88), Materials.Osmiridium.getDust(64),
- Materials.Carbon.getNanite(64) },
- ELEMENT.STANDALONE.HYPOGEN.getFluidStack(360),
- ItemUtils.getSimpleStack(GenericChem.mPlatinumGroupCatalyst, 1),
- 60 * 20,
- (int) TierEU.RECIPE_UEV);
+ new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1),
+ getModItem(BartWorks.ID, "gt.bwMetaGenerateddust", 64L, 88), Materials.Osmiridium.getDust(64),
+ Materials.Carbon.getNanite(64) },
+ ELEMENT.STANDALONE.HYPOGEN.getFluidStack(360),
+ ItemUtils.getSimpleStack(GenericChem.mPlatinumGroupCatalyst, 1),
+ 60 * 20,
+ (int) TierEU.RECIPE_UEV);
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1),
- Materials.Polybenzimidazole.getDust(64), Materials.Polytetrafluoroethylene.getDust(64),
- Materials.Carbon.getNanite(64) },
- ELEMENT.STANDALONE.HYPOGEN.getFluidStack(360),
- ItemUtils.getSimpleStack(GenericChem.mPlasticPolymerCatalyst, 1),
- 60 * 20,
- (int) TierEU.RECIPE_UEV);
+ new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1),
+ Materials.Polybenzimidazole.getDust(64), Materials.Polytetrafluoroethylene.getDust(64),
+ Materials.Carbon.getNanite(64) },
+ ELEMENT.STANDALONE.HYPOGEN.getFluidStack(360),
+ ItemUtils.getSimpleStack(GenericChem.mPlasticPolymerCatalyst, 1),
+ 60 * 20,
+ (int) TierEU.RECIPE_UEV);
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1), Materials.Silicone.getDust(64),
- Materials.StyreneButadieneRubber.getDust(64), Materials.Carbon.getNanite(64) },
- ELEMENT.STANDALONE.HYPOGEN.getFluidStack(360),
- ItemUtils.getSimpleStack(GenericChem.mRubberPolymerCatalyst, 1),
- 60 * 20,
- (int) TierEU.RECIPE_UEV);
+ new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1), Materials.Silicone.getDust(64),
+ Materials.StyreneButadieneRubber.getDust(64), Materials.Carbon.getNanite(64) },
+ ELEMENT.STANDALONE.HYPOGEN.getFluidStack(360),
+ ItemUtils.getSimpleStack(GenericChem.mRubberPolymerCatalyst, 1),
+ 60 * 20,
+ (int) TierEU.RECIPE_UEV);
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1), ALLOY.INDALLOY_140.getDust(64),
- MISC_MATERIALS.ETHYL_CYANOACRYLATE.getCell(64), Materials.Carbon.getNanite(64) },
- ELEMENT.STANDALONE.HYPOGEN.getFluidStack(360),
- ItemUtils.getSimpleStack(GenericChem.mAdhesionPromoterCatalyst, 1),
- 60 * 20,
- (int) TierEU.RECIPE_UHV);
+ new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1), ALLOY.INDALLOY_140.getDust(64),
+ MISC_MATERIALS.ETHYL_CYANOACRYLATE.getCell(64), Materials.Carbon.getNanite(64) },
+ ELEMENT.STANDALONE.HYPOGEN.getFluidStack(360),
+ ItemUtils.getSimpleStack(GenericChem.mAdhesionPromoterCatalyst, 1),
+ 60 * 20,
+ (int) TierEU.RECIPE_UHV);
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1),
- Materials.TungstenSteel.getDust(64), Materials.Indium.getDust(64),
- Materials.Carbon.getNanite(64) },
- ELEMENT.STANDALONE.HYPOGEN.getFluidStack(360),
- ItemUtils.getSimpleStack(GenericChem.mTitaTungstenIndiumCatalyst, 1),
- 60 * 20,
- (int) TierEU.RECIPE_UHV);
+ new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1), Materials.TungstenSteel.getDust(64),
+ Materials.Indium.getDust(64), Materials.Carbon.getNanite(64) },
+ ELEMENT.STANDALONE.HYPOGEN.getFluidStack(360),
+ ItemUtils.getSimpleStack(GenericChem.mTitaTungstenIndiumCatalyst, 1),
+ 60 * 20,
+ (int) TierEU.RECIPE_UHV);
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1),
- ELEMENT.getInstance().URANIUM235.getDust(64), ELEMENT.getInstance().PLUTONIUM241.getDust(64),
- Materials.Carbon.getNanite(64) },
- ELEMENT.STANDALONE.HYPOGEN.getFluidStack(360),
- ItemUtils.getSimpleStack(GenericChem.mRadioactivityCatalyst, 1),
- 60 * 20,
- (int) TierEU.RECIPE_UHV);
+ new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1),
+ ELEMENT.getInstance().URANIUM235.getDust(64), ELEMENT.getInstance().PLUTONIUM241.getDust(64),
+ Materials.Carbon.getNanite(64) },
+ ELEMENT.STANDALONE.HYPOGEN.getFluidStack(360),
+ ItemUtils.getSimpleStack(GenericChem.mRadioactivityCatalyst, 1),
+ 60 * 20,
+ (int) TierEU.RECIPE_UHV);
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1), Materials.Samarium.getDust(64),
- Materials.Gadolinium.getDust(64), Materials.Silver.getNanite(1) },
- ELEMENT.STANDALONE.HYPOGEN.getFluidStack(9216),
- ItemUtils.getSimpleStack(GenericChem.mRareEarthGroupCatalyst, 1),
- 60 * 20,
- (int) TierEU.RECIPE_UEV);
+ new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1), Materials.Samarium.getDust(64),
+ Materials.Gadolinium.getDust(64), Materials.Silver.getNanite(1) },
+ ELEMENT.STANDALONE.HYPOGEN.getFluidStack(9216),
+ ItemUtils.getSimpleStack(GenericChem.mRareEarthGroupCatalyst, 1),
+ 60 * 20,
+ (int) TierEU.RECIPE_UEV);
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1),
- WerkstoffLoader.Hedenbergit.get(OrePrefixes.lens, 1),
- GT_OreDictUnificator.get(OrePrefixes.nanite, Materials.Silver, 1, false),
- ItemList.Circuit_Silicon_Wafer6.get(64) },
- ELEMENT.STANDALONE.HYPOGEN.getFluidStack(9216),
- ItemUtils.getSimpleStack(GenericChem.mLimpidWaterCatalyst, 1),
- 60 * 20,
- (int) TierEU.RECIPE_UEV);
+ new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1),
+ WerkstoffLoader.Hedenbergit.get(OrePrefixes.lens, 1),
+ GT_OreDictUnificator.get(OrePrefixes.nanite, Materials.Silver, 1, false),
+ ItemList.Circuit_Silicon_Wafer6.get(64) },
+ ELEMENT.STANDALONE.HYPOGEN.getFluidStack(9216),
+ ItemUtils.getSimpleStack(GenericChem.mLimpidWaterCatalyst, 1),
+ 60 * 20,
+ (int) TierEU.RECIPE_UEV);
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1), Materials.Naquadah.getDust(64),
- Materials.Adamantium.getDust(64), Materials.Silver.getNanite(1) },
- ELEMENT.STANDALONE.HYPOGEN.getFluidStack(9216),
- ItemUtils.getSimpleStack(GenericChem.mSimpleNaquadahCatalyst, 1),
- 60 * 20,
- (int) TierEU.RECIPE_UEV);
+ new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1), Materials.Naquadah.getDust(64),
+ Materials.Adamantium.getDust(64), Materials.Silver.getNanite(1) },
+ ELEMENT.STANDALONE.HYPOGEN.getFluidStack(9216),
+ ItemUtils.getSimpleStack(GenericChem.mSimpleNaquadahCatalyst, 1),
+ 60 * 20,
+ (int) TierEU.RECIPE_UEV);
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1), Materials.Naquadria.getDust(64),
- Materials.Trinium.getDust(64), Materials.Gold.getNanite(1) },
- MaterialsUEVplus.SpaceTime.getMolten(9216L),
- ItemUtils.getSimpleStack(GenericChem.mAdvancedNaquadahCatalyst, 1),
- 60 * 20,
- (int) TierEU.RECIPE_UIV);
+ new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1), Materials.Naquadria.getDust(64),
+ Materials.Trinium.getDust(64), Materials.Gold.getNanite(1) },
+ MaterialsUEVplus.SpaceTime.getMolten(9216L),
+ ItemUtils.getSimpleStack(GenericChem.mAdvancedNaquadahCatalyst, 1),
+ 60 * 20,
+ (int) TierEU.RECIPE_UIV);
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1),
- ItemList.Circuit_Chip_Stemcell.get(64), Materials.Gold.getNanite(1) },
- MaterialsUEVplus.SpaceTime.getMolten(9216L),
- ItemUtils.getSimpleStack(GenericChem.mRawIntelligenceCatalyst, 1),
- 60 * 20,
- (int) TierEU.RECIPE_UIV);
+ new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1), ItemList.Circuit_Chip_Stemcell.get(64),
+ Materials.Gold.getNanite(1) },
+ MaterialsUEVplus.SpaceTime.getMolten(9216L),
+ ItemUtils.getSimpleStack(GenericChem.mRawIntelligenceCatalyst, 1),
+ 60 * 20,
+ (int) TierEU.RECIPE_UIV);
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1),
- GregtechItemList.Laser_Lens_Special.get(64),
- GT_ModHandler.getModItem(EternalSingularity.ID, "eternal_singularity", 10) },
- MaterialsUEVplus.SpaceTime.getMolten(9216L),
- ItemUtils.getSimpleStack(GenericChem.mParticleAccelerationCatalyst, 1),
- 60 * 20,
- (int) TierEU.RECIPE_UIV);
+ new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1),
+ GregtechItemList.Laser_Lens_Special.get(64),
+ GT_ModHandler.getModItem(EternalSingularity.ID, "eternal_singularity", 10) },
+ MaterialsUEVplus.SpaceTime.getMolten(9216L),
+ ItemUtils.getSimpleStack(GenericChem.mParticleAccelerationCatalyst, 1),
+ 60 * 20,
+ (int) TierEU.RECIPE_UIV);
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1), MaterialsKevlar.Kevlar.getDust(64),
- MaterialsUEVplus.TranscendentMetal.getNanite(1) },
- FluidUtils.getFluidStack("molten.shirabon", 92160),
- ItemUtils.getSimpleStack(GenericChem.mUltimatePlasticCatalyst, 1),
- 60 * 20,
- (int) TierEU.RECIPE_UMV);
+ new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1), MaterialsKevlar.Kevlar.getDust(64),
+ MaterialsUEVplus.TranscendentMetal.getNanite(1) },
+ FluidUtils.getFluidStack("molten.shirabon", 92160),
+ ItemUtils.getSimpleStack(GenericChem.mUltimatePlasticCatalyst, 1),
+ 60 * 20,
+ (int) TierEU.RECIPE_UMV);
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1),
- ItemList.Circuit_Chip_Biocell.get(64), MaterialsUEVplus.TranscendentMetal.getNanite(1) },
- FluidUtils.getFluidStack("molten.shirabon", 92160),
- ItemUtils.getSimpleStack(GenericChem.mBiologicalIntelligenceCatalyst, 1),
- 60 * 20,
- (int) TierEU.RECIPE_UMV);
+ new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1), ItemList.Circuit_Chip_Biocell.get(64),
+ MaterialsUEVplus.TranscendentMetal.getNanite(1) },
+ FluidUtils.getFluidStack("molten.shirabon", 92160),
+ ItemUtils.getSimpleStack(GenericChem.mBiologicalIntelligenceCatalyst, 1),
+ 60 * 20,
+ (int) TierEU.RECIPE_UMV);
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1),
- WerkstoffLoader.Hedenbergit.get(OrePrefixes.lens, 64),
- GT_OreDictUnificator.get(OrePrefixes.nanite, Materials.Silver, 64, false),
- ItemList.Circuit_Silicon_Wafer6.get(64) },
- FluidUtils.getFluidStack("molten.shirabon", 92160),
- ItemUtils.getSimpleStack(GenericChem.mFlawlessWaterCatalyst, 1),
- 60 * 20,
- (int) TierEU.RECIPE_UMV);
+ new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1),
+ WerkstoffLoader.Hedenbergit.get(OrePrefixes.lens, 64),
+ GT_OreDictUnificator.get(OrePrefixes.nanite, Materials.Silver, 64, false),
+ ItemList.Circuit_Silicon_Wafer6.get(64) },
+ FluidUtils.getFluidStack("molten.shirabon", 92160),
+ ItemUtils.getSimpleStack(GenericChem.mFlawlessWaterCatalyst, 1),
+ 60 * 20,
+ (int) TierEU.RECIPE_UMV);
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1),
- Particle.getBaseParticle(Particle.HIGGS_BOSON), Particle.getIon("Helium", 0),
- Particle.getIon("Hydrogen", 0), MaterialsUEVplus.Eternity.getNanite(16) },
- FluidUtils.getFluidStack("molten.shirabon", 92160),
- ItemUtils.getSimpleStack(GenericChem.mSynchrotronCapableCatalyst, 1),
- 60 * 20,
- (int) TierEU.RECIPE_UMV);
+ new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1),
+ Particle.getBaseParticle(Particle.HIGGS_BOSON), Particle.getIon("Helium", 0),
+ Particle.getIon("Hydrogen", 0), MaterialsUEVplus.Eternity.getNanite(16) },
+ FluidUtils.getFluidStack("molten.shirabon", 92160),
+ ItemUtils.getSimpleStack(GenericChem.mSynchrotronCapableCatalyst, 1),
+ 60 * 20,
+ (int) TierEU.RECIPE_UMV);
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1),
- GT_OreDictUnificator.get("blockShirabon", 16), MaterialsUEVplus.Universium.getNanite(1),
- ItemList.Timepiece.get(1) },
- Materials.DarkIron.getMolten(92160),
- ItemUtils.getSimpleStack(GenericChem.TemporalHarmonyCatalyst, 1),
- 60 * 20,
- (int) TierEU.RECIPE_UXV);
+ new ItemStack[] { CI.getNumberedCircuit(10), CI.getEmptyCatalyst(1),
+ GT_OreDictUnificator.get("blockShirabon", 16), MaterialsUEVplus.Universium.getNanite(1),
+ ItemList.Timepiece.get(1) },
+ Materials.DarkIron.getMolten(92160),
+ ItemUtils.getSimpleStack(GenericChem.TemporalHarmonyCatalyst, 1),
+ 60 * 20,
+ (int) TierEU.RECIPE_UXV);
GT_Values.RA.stdBuilder()
- .itemInputs(
- CI.getNumberedCircuit(10),
- CI.getEmptyCatalyst(1),
- getModItem(NewHorizonsCoreMod.ID, "item.TCetiESeaweedExtract", 64),
- GT_OreDictUnificator.get("dustIodine", 64),
- MaterialsUEVplus.TranscendentMetal.getNanite(1))
- .itemOutputs(ItemUtils.getSimpleStack(GenericChem.mAlgagenicGrowthPromoterCatalyst, 1))
- .fluidInputs(FluidUtils.getFluidStack("molten.shirabon", 92_160)).duration(60 * SECONDS)
- .eut(TierEU.RECIPE_UMV).addTo(assemblerRecipes);
+ .itemInputs(
+ CI.getNumberedCircuit(10),
+ CI.getEmptyCatalyst(1),
+ getModItem(NewHorizonsCoreMod.ID, "item.TCetiESeaweedExtract", 64),
+ GT_OreDictUnificator.get("dustIodine", 64),
+ MaterialsUEVplus.TranscendentMetal.getNanite(1))
+ .itemOutputs(ItemUtils.getSimpleStack(GenericChem.mAlgagenicGrowthPromoterCatalyst, 1))
+ .fluidInputs(FluidUtils.getFluidStack("molten.shirabon", 92_160))
+ .duration(60 * SECONDS)
+ .eut(TierEU.RECIPE_UMV)
+ .addTo(assemblerRecipes);
}
private static void tieredCasingRecipes() {
TT_recipeAdder.addResearchableAssemblylineRecipe(
- GregtechItemList.ForceFieldGlass.get(1),
- 1024 * 30 * 20,
- 1024,
- (int) TierEU.RECIPE_ZPM,
- 32,
- new ItemStack[] { GregtechItemList.ForceFieldGlass.get(1), Materials.Carbon.getNanite(4),
- ItemList.Emitter_UV.get(4),
- GT_OreDictUnificator.get(OrePrefixes.wireGt16, Materials.SuperconductorUHV, 8),
- GregtechItemList.Laser_Lens_Special.get(1),
- getModItem(GoodGenerator.ID, "advancedRadiationProtectionPlate", 2) },
- new FluidStack[] { Materials.Thulium.getMolten(144 * 10), MaterialsUEVplus.ExcitedDTCC.getFluid(5000),
- new FluidStack(ELEMENT.getInstance().NEPTUNIUM.getPlasma(), 500),
- new FluidStack(ELEMENT.getInstance().FERMIUM.getPlasma(), 500) },
- GregtechItemList.NeutronPulseManipulator.get(1),
- 60 * 20,
- (int) TierEU.RECIPE_UEV);
+ GregtechItemList.ForceFieldGlass.get(1),
+ 1024 * 30 * 20,
+ 1024,
+ (int) TierEU.RECIPE_ZPM,
+ 32,
+ new ItemStack[] { GregtechItemList.ForceFieldGlass.get(1), Materials.Carbon.getNanite(4),
+ ItemList.Emitter_UV.get(4),
+ GT_OreDictUnificator.get(OrePrefixes.wireGt16, Materials.SuperconductorUHV, 8),
+ GregtechItemList.Laser_Lens_Special.get(1),
+ getModItem(GoodGenerator.ID, "advancedRadiationProtectionPlate", 2) },
+ new FluidStack[] { Materials.Thulium.getMolten(144 * 10), MaterialsUEVplus.ExcitedDTCC.getFluid(5000),
+ new FluidStack(ELEMENT.getInstance().NEPTUNIUM.getPlasma(), 500),
+ new FluidStack(ELEMENT.getInstance().FERMIUM.getPlasma(), 500) },
+ GregtechItemList.NeutronPulseManipulator.get(1),
+ 60 * 20,
+ (int) TierEU.RECIPE_UEV);
TT_recipeAdder.addResearchableAssemblylineRecipe(
- GregtechItemList.NeutronPulseManipulator.get(1),
- 2048 * 30 * 20,
- 2048,
- (int) TierEU.RECIPE_UV,
- 32,
- new ItemStack[] { GregtechItemList.ForceFieldGlass.get(2), Materials.Carbon.getNanite(8),
- ItemList.Emitter_UEV.get(4),
- GT_OreDictUnificator.get(OrePrefixes.wireGt16, Materials.SuperconductorUEV, 8),
- GregtechItemList.Laser_Lens_Special.get(1),
- getModItem(GoodGenerator.ID, "advancedRadiationProtectionPlate", 4),
- ItemList.StableAdhesive.get(4) },
- new FluidStack[] { Materials.Thulium.getMolten(144 * 12), MaterialsUEVplus.ExcitedDTPC.getFluid(5000),
- new FluidStack(ELEMENT.getInstance().NEPTUNIUM.getPlasma(), 2500),
- new FluidStack(ELEMENT.getInstance().FERMIUM.getPlasma(), 2500) },
- GregtechItemList.CosmicFabricManipulator.get(1),
- 75 * 20,
- (int) TierEU.RECIPE_UIV);
+ GregtechItemList.NeutronPulseManipulator.get(1),
+ 2048 * 30 * 20,
+ 2048,
+ (int) TierEU.RECIPE_UV,
+ 32,
+ new ItemStack[] { GregtechItemList.ForceFieldGlass.get(2), Materials.Carbon.getNanite(8),
+ ItemList.Emitter_UEV.get(4),
+ GT_OreDictUnificator.get(OrePrefixes.wireGt16, Materials.SuperconductorUEV, 8),
+ GregtechItemList.Laser_Lens_Special.get(1),
+ getModItem(GoodGenerator.ID, "advancedRadiationProtectionPlate", 4), ItemList.StableAdhesive.get(4) },
+ new FluidStack[] { Materials.Thulium.getMolten(144 * 12), MaterialsUEVplus.ExcitedDTPC.getFluid(5000),
+ new FluidStack(ELEMENT.getInstance().NEPTUNIUM.getPlasma(), 2500),
+ new FluidStack(ELEMENT.getInstance().FERMIUM.getPlasma(), 2500) },
+ GregtechItemList.CosmicFabricManipulator.get(1),
+ 75 * 20,
+ (int) TierEU.RECIPE_UIV);
TT_recipeAdder.addResearchableAssemblylineRecipe(
- GregtechItemList.CosmicFabricManipulator.get(1),
- 4096 * 30 * 20,
- 4096,
- (int) TierEU.RECIPE_ZPM,
- 32,
- new ItemStack[] { GregtechItemList.ForceFieldGlass.get(4), Materials.Carbon.getNanite(16),
- ItemList.Emitter_UIV.get(4),
- GT_OreDictUnificator.get(OrePrefixes.wireGt16, Materials.SuperconductorUIV, 8),
- GregtechItemList.Laser_Lens_Special.get(1),
- getModItem(GoodGenerator.ID, "advancedRadiationProtectionPlate", 8),
- ItemList.SuperconductorComposite.get(4) },
- new FluidStack[] { Materials.Thulium.getMolten(144 * 15), MaterialsUEVplus.ExcitedDTRC.getFluid(5000),
- new FluidStack(ELEMENT.getInstance().NEPTUNIUM.getPlasma(), 1000 * 10),
- new FluidStack(ELEMENT.getInstance().FERMIUM.getPlasma(), 1000 * 10) },
- GregtechItemList.InfinityInfusedManipulator.get(1),
- 90 * 20,
- (int) TierEU.RECIPE_UMV);
+ GregtechItemList.CosmicFabricManipulator.get(1),
+ 4096 * 30 * 20,
+ 4096,
+ (int) TierEU.RECIPE_ZPM,
+ 32,
+ new ItemStack[] { GregtechItemList.ForceFieldGlass.get(4), Materials.Carbon.getNanite(16),
+ ItemList.Emitter_UIV.get(4),
+ GT_OreDictUnificator.get(OrePrefixes.wireGt16, Materials.SuperconductorUIV, 8),
+ GregtechItemList.Laser_Lens_Special.get(1),
+ getModItem(GoodGenerator.ID, "advancedRadiationProtectionPlate", 8),
+ ItemList.SuperconductorComposite.get(4) },
+ new FluidStack[] { Materials.Thulium.getMolten(144 * 15), MaterialsUEVplus.ExcitedDTRC.getFluid(5000),
+ new FluidStack(ELEMENT.getInstance().NEPTUNIUM.getPlasma(), 1000 * 10),
+ new FluidStack(ELEMENT.getInstance().FERMIUM.getPlasma(), 1000 * 10) },
+ GregtechItemList.InfinityInfusedManipulator.get(1),
+ 90 * 20,
+ (int) TierEU.RECIPE_UMV);
TT_recipeAdder.addResearchableAssemblylineRecipe(
- GregtechItemList.InfinityInfusedManipulator.get(1),
- 1024 * 30 * 20,
- 1024,
- (int) TierEU.RECIPE_ZPM,
- 32,
- new ItemStack[] { GregtechItemList.ForceFieldGlass.get(8), Materials.Carbon.getNanite(32),
- ItemList.Emitter_UMV.get(4),
- GT_OreDictUnificator.get(OrePrefixes.wireGt16, Materials.SuperconductorUMV, 8),
- GregtechItemList.Laser_Lens_Special.get(1),
- getModItem(GoodGenerator.ID, "advancedRadiationProtectionPlate", 16),
- ItemList.NaquadriaSupersolid.get(4) },
- new FluidStack[] { Materials.Thulium.getMolten(144 * 20), MaterialsUEVplus.ExcitedDTEC.getFluid(5000),
- new FluidStack(ELEMENT.getInstance().NEPTUNIUM.getPlasma(), 2000 * 10),
- new FluidStack(ELEMENT.getInstance().FERMIUM.getPlasma(), 2000 * 10) },
- GregtechItemList.SpaceTimeContinuumRipper.get(1),
- 60 * 20,
- (int) TierEU.RECIPE_UXV);
+ GregtechItemList.InfinityInfusedManipulator.get(1),
+ 1024 * 30 * 20,
+ 1024,
+ (int) TierEU.RECIPE_ZPM,
+ 32,
+ new ItemStack[] { GregtechItemList.ForceFieldGlass.get(8), Materials.Carbon.getNanite(32),
+ ItemList.Emitter_UMV.get(4),
+ GT_OreDictUnificator.get(OrePrefixes.wireGt16, Materials.SuperconductorUMV, 8),
+ GregtechItemList.Laser_Lens_Special.get(1),
+ getModItem(GoodGenerator.ID, "advancedRadiationProtectionPlate", 16),
+ ItemList.NaquadriaSupersolid.get(4) },
+ new FluidStack[] { Materials.Thulium.getMolten(144 * 20), MaterialsUEVplus.ExcitedDTEC.getFluid(5000),
+ new FluidStack(ELEMENT.getInstance().NEPTUNIUM.getPlasma(), 2000 * 10),
+ new FluidStack(ELEMENT.getInstance().FERMIUM.getPlasma(), 2000 * 10) },
+ GregtechItemList.SpaceTimeContinuumRipper.get(1),
+ 60 * 20,
+ (int) TierEU.RECIPE_UXV);
TT_recipeAdder.addResearchableAssemblylineRecipe(
- ItemList.Casing_AdvancedRadiationProof.get(1),
- 1024 * 30 * 20,
- 1024,
- (int) TierEU.RECIPE_ZPM,
- 32,
- new ItemStack[] { ALLOY.QUANTUM.getFrameBox(1),
- GT_OreDictUnificator.get("plateDensePreciousMetalsAlloy", 4),
- GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Neutronium, 16),
- ItemList.Field_Generator_UV.get(1), ELEMENT.STANDALONE.CHRONOMATIC_GLASS.getScrew(16) },
- new FluidStack[] { MISC_MATERIALS.MUTATED_LIVING_SOLDER.getFluidStack(144 * 10), },
- GregtechItemList.NeutronShieldingCore.get(1),
- 60 * 20,
- (int) TierEU.RECIPE_UEV);
+ ItemList.Casing_AdvancedRadiationProof.get(1),
+ 1024 * 30 * 20,
+ 1024,
+ (int) TierEU.RECIPE_ZPM,
+ 32,
+ new ItemStack[] { ALLOY.QUANTUM.getFrameBox(1),
+ GT_OreDictUnificator.get("plateDensePreciousMetalsAlloy", 4),
+ GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Neutronium, 16),
+ ItemList.Field_Generator_UV.get(1), ELEMENT.STANDALONE.CHRONOMATIC_GLASS.getScrew(16) },
+ new FluidStack[] { MISC_MATERIALS.MUTATED_LIVING_SOLDER.getFluidStack(144 * 10), },
+ GregtechItemList.NeutronShieldingCore.get(1),
+ 60 * 20,
+ (int) TierEU.RECIPE_UEV);
TT_recipeAdder.addResearchableAssemblylineRecipe(
- GregtechItemList.NeutronShieldingCore.get(1),
- 2048 * 30 * 20,
- 2048,
- (int) TierEU.RECIPE_UV,
- 32,
- new ItemStack[] { ALLOY.QUANTUM.getFrameBox(2),
- GT_OreDictUnificator.get("plateDenseEnrichedNaquadahAlloy", 4),
- GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Infinity, 16),
- ItemList.Field_Generator_UEV.get(1),
- // Radox polymer screw.
- GT_OreDictUnificator.get(OrePrefixes.screw, Materials.get("RadoxPoly"), 16),
- ItemList.StableAdhesive.get(4) },
- new FluidStack[] { MISC_MATERIALS.MUTATED_LIVING_SOLDER.getFluidStack(144 * 20), },
- GregtechItemList.CosmicFabricShieldingCore.get(1),
- 75 * 20,
- (int) TierEU.RECIPE_UIV);
+ GregtechItemList.NeutronShieldingCore.get(1),
+ 2048 * 30 * 20,
+ 2048,
+ (int) TierEU.RECIPE_UV,
+ 32,
+ new ItemStack[] { ALLOY.QUANTUM.getFrameBox(2),
+ GT_OreDictUnificator.get("plateDenseEnrichedNaquadahAlloy", 4),
+ GT_OreDictUnificator.get(OrePrefixes.plateDense, Materials.Infinity, 16),
+ ItemList.Field_Generator_UEV.get(1),
+ // Radox polymer screw.
+ GT_OreDictUnificator.get(OrePrefixes.screw, Materials.get("RadoxPoly"), 16),
+ ItemList.StableAdhesive.get(4) },
+ new FluidStack[] { MISC_MATERIALS.MUTATED_LIVING_SOLDER.getFluidStack(144 * 20), },
+ GregtechItemList.CosmicFabricShieldingCore.get(1),
+ 75 * 20,
+ (int) TierEU.RECIPE_UIV);
TT_recipeAdder.addResearchableAssemblylineRecipe(
- GregtechItemList.CosmicFabricShieldingCore.get(1),
- 4096 * 30 * 20,
- 4096,
- (int) TierEU.RECIPE_UHV,
- 32,
- new ItemStack[] { ALLOY.QUANTUM.getFrameBox(4), ELEMENT.STANDALONE.HYPOGEN.getPlateDense(4),
- GT_OreDictUnificator.get(OrePrefixes.plateDense, MaterialsUEVplus.TranscendentMetal, 16),
- ItemList.Field_Generator_UIV.get(1), GT_OreDictUnificator.get("screwMetastableOganesson", 16),
- ItemList.SuperconductorComposite.get(4) },
- new FluidStack[] { MISC_MATERIALS.MUTATED_LIVING_SOLDER.getFluidStack(144 * 40), },
- GregtechItemList.InfinityInfusedShieldingCore.get(1),
- 90 * 20,
- (int) TierEU.RECIPE_UMV);
+ GregtechItemList.CosmicFabricShieldingCore.get(1),
+ 4096 * 30 * 20,
+ 4096,
+ (int) TierEU.RECIPE_UHV,
+ 32,
+ new ItemStack[] { ALLOY.QUANTUM.getFrameBox(4), ELEMENT.STANDALONE.HYPOGEN.getPlateDense(4),
+ GT_OreDictUnificator.get(OrePrefixes.plateDense, MaterialsUEVplus.TranscendentMetal, 16),
+ ItemList.Field_Generator_UIV.get(1), GT_OreDictUnificator.get("screwMetastableOganesson", 16),
+ ItemList.SuperconductorComposite.get(4) },
+ new FluidStack[] { MISC_MATERIALS.MUTATED_LIVING_SOLDER.getFluidStack(144 * 40), },
+ GregtechItemList.InfinityInfusedShieldingCore.get(1),
+ 90 * 20,
+ (int) TierEU.RECIPE_UMV);
TT_recipeAdder.addResearchableAssemblylineRecipe(
- GregtechItemList.InfinityInfusedShieldingCore.get(1),
- 8192 * 30 * 20,
- 8192,
- (int) TierEU.RECIPE_UEV,
- 32,
- new ItemStack[] { ALLOY.QUANTUM.getFrameBox(8), GT_OreDictUnificator.get("plateDenseShirabon", 4),
- GT_OreDictUnificator.get(OrePrefixes.plateDense, MaterialsUEVplus.SpaceTime, 16),
- ItemList.Field_Generator_UMV.get(1),
- GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Dilithium, 16),
- ItemList.NaquadriaSupersolid.get(4) },
- new FluidStack[] { MISC_MATERIALS.MUTATED_LIVING_SOLDER.getFluidStack(144 * 80), },
- GregtechItemList.SpaceTimeBendingCore.get(1),
- 120 * 20,
- (int) TierEU.RECIPE_UXV);
+ GregtechItemList.InfinityInfusedShieldingCore.get(1),
+ 8192 * 30 * 20,
+ 8192,
+ (int) TierEU.RECIPE_UEV,
+ 32,
+ new ItemStack[] { ALLOY.QUANTUM.getFrameBox(8), GT_OreDictUnificator.get("plateDenseShirabon", 4),
+ GT_OreDictUnificator.get(OrePrefixes.plateDense, MaterialsUEVplus.SpaceTime, 16),
+ ItemList.Field_Generator_UMV.get(1),
+ GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Dilithium, 16),
+ ItemList.NaquadriaSupersolid.get(4) },
+ new FluidStack[] { MISC_MATERIALS.MUTATED_LIVING_SOLDER.getFluidStack(144 * 80), },
+ GregtechItemList.SpaceTimeBendingCore.get(1),
+ 120 * 20,
+ (int) TierEU.RECIPE_UXV);
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { new ItemStack(QuantumGlassBlock.INSTANCE, 1), ItemList.Field_Generator_ZPM.get(1),
- ELEMENT.STANDALONE.CELESTIAL_TUNGSTEN.getLongRod(6),
- ELEMENT.STANDALONE.CHRONOMATIC_GLASS.getPlate(6) },
- ALLOY.QUANTUM.getFluidStack(144 * 6),
- GregtechItemList.ForceFieldGlass.get(1),
- 10 * 20,
- (int) TierEU.RECIPE_UEV);
+ new ItemStack[] { new ItemStack(QuantumGlassBlock.INSTANCE, 1), ItemList.Field_Generator_ZPM.get(1),
+ ELEMENT.STANDALONE.CELESTIAL_TUNGSTEN.getLongRod(6), ELEMENT.STANDALONE.CHRONOMATIC_GLASS.getPlate(6) },
+ ALLOY.QUANTUM.getFluidStack(144 * 6),
+ GregtechItemList.ForceFieldGlass.get(1),
+ 10 * 20,
+ (int) TierEU.RECIPE_UEV);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_GTNH.java b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_GTNH.java
index 6caa976ac7..4aa13a0072 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_GTNH.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_GTNH.java
@@ -14,32 +14,32 @@ public class RecipeLoader_GTNH {
public static void generate() {
GT_Values.RA.addFluidSolidifierRecipe(
- ItemList.Shape_Mold_Ball.get(0L),
- new FluidStack(FluidRegistry.getFluid("ender"), 250),
- new ItemStack(Items.ender_pearl, 1, 0),
- 100,
- 30);
+ ItemList.Shape_Mold_Ball.get(0L),
+ new FluidStack(FluidRegistry.getFluid("ender"), 250),
+ new ItemStack(Items.ender_pearl, 1, 0),
+ 100,
+ 30);
// MK4
GT_Values.RA.addFusionReactorRecipe(
- Materials.Plutonium241.getMolten(144),
- Materials.Helium.getGas(1000),
- ELEMENT.getInstance().CURIUM.getFluidStack(144),
- 96,
- 98304,
- 500000000);
+ Materials.Plutonium241.getMolten(144),
+ Materials.Helium.getGas(1000),
+ ELEMENT.getInstance().CURIUM.getFluidStack(144),
+ 96,
+ 98304,
+ 500000000);
GT_Values.RA.addFusionReactorRecipe(
- ELEMENT.getInstance().CURIUM.getFluidStack(144),
- Materials.Helium.getPlasma(144),
- ELEMENT.getInstance().CALIFORNIUM.getFluidStack(144),
- 128,
- 196608,
- 750000000);
+ ELEMENT.getInstance().CURIUM.getFluidStack(144),
+ Materials.Helium.getPlasma(144),
+ ELEMENT.getInstance().CALIFORNIUM.getFluidStack(144),
+ 128,
+ 196608,
+ 750000000);
GT_Values.RA.addFusionReactorRecipe(
- Materials.Plutonium241.getMolten(144),
- Materials.Calcium.getPlasma(144),
- Materials.Flerovium.getMolten(144),
- 160,
- 196608,
- 1000000000);
+ Materials.Plutonium241.getMolten(144),
+ Materials.Calcium.getPlasma(144),
+ Materials.Flerovium.getMolten(144),
+ 160,
+ 196608,
+ 1000000000);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_GlueLine.java b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_GlueLine.java
index d19f338b7d..a954711fd2 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_GlueLine.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_GlueLine.java
@@ -50,347 +50,346 @@ public class RecipeLoader_GlueLine {
private static void chemicalPlantRecipes() {
// CO + C3H6O2 = C4H6O3
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedCircuit(17), ItemUtils.getSimpleStack(GenericChem.mBlueCatalyst, 0) },
- new FluidStack[] { FluidUtils.getFluidStack("carbonmonoxide", 1000),
- FluidUtils.getFluidStack("methylacetate", 1000), },
- new ItemStack[] {},
- new FluidStack[] { MISC_MATERIALS.ACETIC_ANHYDRIDE.getFluidStack(1000) },
- 10 * 20,
- 500,
- 3);
+ new ItemStack[] { CI.getNumberedCircuit(17), ItemUtils.getSimpleStack(GenericChem.mBlueCatalyst, 0) },
+ new FluidStack[] { FluidUtils.getFluidStack("carbonmonoxide", 1000),
+ FluidUtils.getFluidStack("methylacetate", 1000), },
+ new ItemStack[] {},
+ new FluidStack[] { MISC_MATERIALS.ACETIC_ANHYDRIDE.getFluidStack(1000) },
+ 10 * 20,
+ 500,
+ 3);
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedCircuit(18) },
- new FluidStack[] { FluidUtils.getFluidStack("aceticacid", 1000),
- FluidUtils.getFluidStack("chlorine", 1000),
- MISC_MATERIALS.ACETIC_ANHYDRIDE.getFluidStack(1000) },
- new ItemStack[] {},
- new FluidStack[] { MISC_MATERIALS.CHLOROACETIC_MIXTURE.getFluidStack(1000),
- MISC_MATERIALS.ACETIC_ANHYDRIDE.getFluidStack(950) },
- 150 * 20,
- 1000,
- 4);
+ new ItemStack[] { CI.getNumberedCircuit(18) },
+ new FluidStack[] { FluidUtils.getFluidStack("aceticacid", 1000), FluidUtils.getFluidStack("chlorine", 1000),
+ MISC_MATERIALS.ACETIC_ANHYDRIDE.getFluidStack(1000) },
+ new ItemStack[] {},
+ new FluidStack[] { MISC_MATERIALS.CHLOROACETIC_MIXTURE.getFluidStack(1000),
+ MISC_MATERIALS.ACETIC_ANHYDRIDE.getFluidStack(950) },
+ 150 * 20,
+ 1000,
+ 4);
// Na2CO3 + NaCN + C2H3O2Cl + 2HCl = C3H3NO2 + 3NaCl + CO2 + H2O
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedCircuit(19),
- ItemUtils.getSimpleStack(AgriculturalChem.mSodiumCarbonate, 6),
- MISC_MATERIALS.SODIUM_CYANIDE.getDust(3) },
- new FluidStack[] { MISC_MATERIALS.CHLOROACETIC_ACID.getFluidStack(1000),
- FluidUtils.getFluidStack("hydrochloricacid_gt5u", 2000) },
- new ItemStack[] { MISC_MATERIALS.CYANOACETIC_ACID.getDust(9), Materials.Salt.getDust(6) },
- new FluidStack[] { Materials.CarbonDioxide.getGas(1000), GT_ModHandler.getWater(1000) },
- 20 * 20,
- 1000,
- 4);
+ new ItemStack[] { CI.getNumberedCircuit(19), ItemUtils.getSimpleStack(AgriculturalChem.mSodiumCarbonate, 6),
+ MISC_MATERIALS.SODIUM_CYANIDE.getDust(3) },
+ new FluidStack[] { MISC_MATERIALS.CHLOROACETIC_ACID.getFluidStack(1000),
+ FluidUtils.getFluidStack("hydrochloricacid_gt5u", 2000) },
+ new ItemStack[] { MISC_MATERIALS.CYANOACETIC_ACID.getDust(9), Materials.Salt.getDust(6) },
+ new FluidStack[] { Materials.CarbonDioxide.getGas(1000), GT_ModHandler.getWater(1000) },
+ 20 * 20,
+ 1000,
+ 4);
// CuSO4 + 5C3H3NO2 + 5C2H6O = CuSO4·5(H2O) + 5C5H7NO2
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedCircuit(20),
- ItemUtils.getSimpleStack(GenericChem.mSolidAcidCatalyst, 0),
- MISC_MATERIALS.COPPER_SULFATE.getDust(6), MISC_MATERIALS.CYANOACETIC_ACID.getDust(45) },
- new FluidStack[] { Materials.Ethanol.getFluid(5000) },
- new ItemStack[] { MISC_MATERIALS.COPPER_SULFATE_HYDRATED.getDust(11) },
- new FluidStack[] { MISC_MATERIALS.ETHYL_CYANOACETATE.getFluidStack(5000) },
- 500 * 20,
- 6000,
- 5);
+ new ItemStack[] { CI.getNumberedCircuit(20), ItemUtils.getSimpleStack(GenericChem.mSolidAcidCatalyst, 0),
+ MISC_MATERIALS.COPPER_SULFATE.getDust(6), MISC_MATERIALS.CYANOACETIC_ACID.getDust(45) },
+ new FluidStack[] { Materials.Ethanol.getFluid(5000) },
+ new ItemStack[] { MISC_MATERIALS.COPPER_SULFATE_HYDRATED.getDust(11) },
+ new FluidStack[] { MISC_MATERIALS.ETHYL_CYANOACETATE.getFluidStack(5000) },
+ 500 * 20,
+ 6000,
+ 5);
// C3H3NO2 + C2H6O = C5H7NO2 + H2O
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedCircuit(21), MISC_MATERIALS.CYANOACETIC_ACID.getDust(9) },
- new FluidStack[] { Materials.Ethanol.getFluid(1000) },
- new ItemStack[] {},
- new FluidStack[] { MISC_MATERIALS.ETHYL_CYANOACETATE.getFluidStack(1000) },
- 1000 * 20,
- 6000,
- 5);
+ new ItemStack[] { CI.getNumberedCircuit(21), MISC_MATERIALS.CYANOACETIC_ACID.getDust(9) },
+ new FluidStack[] { Materials.Ethanol.getFluid(1000) },
+ new ItemStack[] {},
+ new FluidStack[] { MISC_MATERIALS.ETHYL_CYANOACETATE.getFluidStack(1000) },
+ 1000 * 20,
+ 6000,
+ 5);
- BioRecipes.mFormaldehyde = FluidUtils.getFluidStack("fluid.formaldehyde", 1).getFluid();
+ BioRecipes.mFormaldehyde = FluidUtils.getFluidStack("fluid.formaldehyde", 1)
+ .getFluid();
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedCircuit(22),
- ItemUtils.getSimpleStack(GenericChem.mSolidAcidCatalyst, 0) },
- new FluidStack[] { MISC_MATERIALS.ETHYL_CYANOACETATE.getFluidStack(100),
- FluidUtils.getFluidStack(BioRecipes.mFormaldehyde, 100) },
- new ItemStack[] {},
- new FluidStack[] { MISC_MATERIALS.CYANOACRYLATE_POLYMER.getFluidStack(100), FluidUtils.getWater(1000) },
- 10 * 20,
- 8000,
- 5);
+ new ItemStack[] { CI.getNumberedCircuit(22), ItemUtils.getSimpleStack(GenericChem.mSolidAcidCatalyst, 0) },
+ new FluidStack[] { MISC_MATERIALS.ETHYL_CYANOACETATE.getFluidStack(100),
+ FluidUtils.getFluidStack(BioRecipes.mFormaldehyde, 100) },
+ new ItemStack[] {},
+ new FluidStack[] { MISC_MATERIALS.CYANOACRYLATE_POLYMER.getFluidStack(100), FluidUtils.getWater(1000) },
+ 10 * 20,
+ 8000,
+ 5);
// CH4 + NH3 + 3O = HCN + 3H2O
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] { CI.getNumberedCircuit(23), ItemUtils.getSimpleStack(GenericChem.mPinkCatalyst, 0) },
- new FluidStack[] { FluidUtils.getFluidStack("methane", 2000), FluidUtils.getFluidStack("ammonia", 2000),
- FluidUtils.getFluidStack("oxygen", 6000) },
- new ItemStack[] {},
- new FluidStack[] { MISC_MATERIALS.HYDROGEN_CYANIDE.getFluidStack(2000), FluidUtils.getWater(6000) },
- 10 * 20,
- 500,
- 3);
+ new ItemStack[] { CI.getNumberedCircuit(23), ItemUtils.getSimpleStack(GenericChem.mPinkCatalyst, 0) },
+ new FluidStack[] { FluidUtils.getFluidStack("methane", 2000), FluidUtils.getFluidStack("ammonia", 2000),
+ FluidUtils.getFluidStack("oxygen", 6000) },
+ new ItemStack[] {},
+ new FluidStack[] { MISC_MATERIALS.HYDROGEN_CYANIDE.getFluidStack(2000), FluidUtils.getWater(6000) },
+ 10 * 20,
+ 500,
+ 3);
}
private static void chemicalReactorRecipes() {
// NaOH + HCN = NaCN + H2O
GT_Values.RA.addChemicalRecipe(
- CI.getNumberedCircuit(17),
- ItemUtils.getItemStackOfAmountFromOreDict("dustSodiumHydroxide", 3),
- MISC_MATERIALS.HYDROGEN_CYANIDE.getFluidStack(1000),
- FluidUtils.getWater(1000),
- MISC_MATERIALS.SODIUM_CYANIDE.getDust(3),
- 10 * 20);
+ CI.getNumberedCircuit(17),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustSodiumHydroxide", 3),
+ MISC_MATERIALS.HYDROGEN_CYANIDE.getFluidStack(1000),
+ FluidUtils.getWater(1000),
+ MISC_MATERIALS.SODIUM_CYANIDE.getDust(3),
+ 10 * 20);
// #addChemicalRecipe won't generate LCR recipe if config >= 10
GT_Values.RA.addMultiblockChemicalRecipe(
- new ItemStack[] { CI.getNumberedCircuit(17),
- ItemUtils.getItemStackOfAmountFromOreDict("dustSodiumHydroxide", 3) },
- new FluidStack[] { MISC_MATERIALS.HYDROGEN_CYANIDE.getFluidStack(1000) },
- new FluidStack[] { FluidUtils.getWater(1000) },
- new ItemStack[] { MISC_MATERIALS.SODIUM_CYANIDE.getDust(3) },
- 10 * 20,
- 30);
+ new ItemStack[] { CI.getNumberedCircuit(17),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustSodiumHydroxide", 3) },
+ new FluidStack[] { MISC_MATERIALS.HYDROGEN_CYANIDE.getFluidStack(1000) },
+ new FluidStack[] { FluidUtils.getWater(1000) },
+ new ItemStack[] { MISC_MATERIALS.SODIUM_CYANIDE.getDust(3) },
+ 10 * 20,
+ 30);
// CaCO3 + 2HCl = CaCl2 + CO2 + H2O
if (BartWorks.isModLoaded()) {
GT_Values.RA.stdBuilder()
- .itemInputs(
- ItemUtils.getSimpleStack(ModItems.dustCalciumCarbonate, 5),
- GT_Utility.getIntegratedCircuit(8))
- .itemOutputs(ItemUtils.getItemStackFromFQRN("bartworks:gt.bwMetaGenerateddust:63", 3))
- .fluidInputs(Materials.HydrochloricAcid.getFluid(2000L))
- .fluidOutputs(Materials.CarbonDioxide.getGas(1000)).duration(5 * SECONDS).eut(TierEU.RECIPE_LV)
- .addTo(UniversalChemical);
+ .itemInputs(
+ ItemUtils.getSimpleStack(ModItems.dustCalciumCarbonate, 5),
+ GT_Utility.getIntegratedCircuit(8))
+ .itemOutputs(ItemUtils.getItemStackFromFQRN("bartworks:gt.bwMetaGenerateddust:63", 3))
+ .fluidInputs(Materials.HydrochloricAcid.getFluid(2000L))
+ .fluidOutputs(Materials.CarbonDioxide.getGas(1000))
+ .duration(5 * SECONDS)
+ .eut(TierEU.RECIPE_LV)
+ .addTo(UniversalChemical);
} else {
GT_Values.RA.stdBuilder()
- .itemInputs(
- ItemUtils.getSimpleStack(ModItems.dustCalciumCarbonate, 5),
- GT_Utility.getIntegratedCircuit(8))
- .itemOutputs(MISC_MATERIALS.CALCIUM_CHLORIDE.getDust(3))
- .fluidInputs(Materials.HydrochloricAcid.getFluid(2000L))
- .fluidOutputs(Materials.CarbonDioxide.getGas(1000)).duration(5 * SECONDS).eut(TierEU.RECIPE_LV)
- .addTo(UniversalChemical);
+ .itemInputs(
+ ItemUtils.getSimpleStack(ModItems.dustCalciumCarbonate, 5),
+ GT_Utility.getIntegratedCircuit(8))
+ .itemOutputs(MISC_MATERIALS.CALCIUM_CHLORIDE.getDust(3))
+ .fluidInputs(Materials.HydrochloricAcid.getFluid(2000L))
+ .fluidOutputs(Materials.CarbonDioxide.getGas(1000))
+ .duration(5 * SECONDS)
+ .eut(TierEU.RECIPE_LV)
+ .addTo(UniversalChemical);
}
// Cu + 2H2SO4 = CuSO4 + SO2 + 2H2O
// SO2 + 2H2O -> diluted sulfuric acid
GT_Values.RA.addChemicalRecipe(
- CI.getNumberedCircuit(19),
- ItemUtils.getItemStackOfAmountFromOreDict("dustCopper", 1),
- FluidUtils.getFluidStack("sulfuricacid", 2000),
- FluidUtils.getFluidStack("dilutedsulfuricacid", 1000),
- MISC_MATERIALS.COPPER_SULFATE.getDust(6),
- 5 * 20);
+ CI.getNumberedCircuit(19),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustCopper", 1),
+ FluidUtils.getFluidStack("sulfuricacid", 2000),
+ FluidUtils.getFluidStack("dilutedsulfuricacid", 1000),
+ MISC_MATERIALS.COPPER_SULFATE.getDust(6),
+ 5 * 20);
// #addChemicalRecipe won't generate LCR recipe if config >= 10
GT_Values.RA.addMultiblockChemicalRecipe(
- new ItemStack[] { CI.getNumberedCircuit(19),
- ItemUtils.getItemStackOfAmountFromOreDict("dustCopper", 1) },
- new FluidStack[] { FluidUtils.getFluidStack("sulfuricacid", 2000) },
- new FluidStack[] { FluidUtils.getFluidStack("dilutedsulfuricacid", 1000) },
- new ItemStack[] { MISC_MATERIALS.COPPER_SULFATE.getDust(6) },
- 5 * 20,
- 30);
+ new ItemStack[] { CI.getNumberedCircuit(19), ItemUtils.getItemStackOfAmountFromOreDict("dustCopper", 1) },
+ new FluidStack[] { FluidUtils.getFluidStack("sulfuricacid", 2000) },
+ new FluidStack[] { FluidUtils.getFluidStack("dilutedsulfuricacid", 1000) },
+ new ItemStack[] { MISC_MATERIALS.COPPER_SULFATE.getDust(6) },
+ 5 * 20,
+ 30);
}
private static void dehydratorRecipes() {
CORE.RA.addDehydratorRecipe(
- new ItemStack[] { MISC_MATERIALS.COPPER_SULFATE_HYDRATED.getDust(11), },
- null,
- GT_ModHandler.getWater(5000),
- new ItemStack[] { MISC_MATERIALS.COPPER_SULFATE.getDust(6) },
- new int[] { 10000, 10000, 10000 },
- 300 * 20,
- 10);
+ new ItemStack[] { MISC_MATERIALS.COPPER_SULFATE_HYDRATED.getDust(11), },
+ null,
+ GT_ModHandler.getWater(5000),
+ new ItemStack[] { MISC_MATERIALS.COPPER_SULFATE.getDust(6) },
+ new int[] { 10000, 10000, 10000 },
+ 300 * 20,
+ 10);
}
private static void distillationTowerRecipes() {
GT_Values.RA.addDistillationTowerRecipe(
- MISC_MATERIALS.CHLOROACETIC_MIXTURE.getFluidStack(1000),
- new FluidStack[] { MISC_MATERIALS.CHLOROACETIC_ACID.getFluidStack(100),
- MISC_MATERIALS.DICHLOROACETIC_ACID.getFluidStack(450),
- MISC_MATERIALS.TRICHLOROACETIC_ACID.getFluidStack(450) },
- null,
- 4 * 20,
- MaterialUtils.getVoltageForTier(5));
+ MISC_MATERIALS.CHLOROACETIC_MIXTURE.getFluidStack(1000),
+ new FluidStack[] { MISC_MATERIALS.CHLOROACETIC_ACID.getFluidStack(100),
+ MISC_MATERIALS.DICHLOROACETIC_ACID.getFluidStack(450),
+ MISC_MATERIALS.TRICHLOROACETIC_ACID.getFluidStack(450) },
+ null,
+ 4 * 20,
+ MaterialUtils.getVoltageForTier(5));
}
private static void fluidHeaterRecipes() {
CORE.RA.addFluidHeaterRecipe(
- CI.getNumberedCircuit(16),
- MISC_MATERIALS.CYANOACRYLATE_POLYMER.getFluidStack(100),
- MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(100),
- 30 * 30,
- 500);
+ CI.getNumberedCircuit(16),
+ MISC_MATERIALS.CYANOACRYLATE_POLYMER.getFluidStack(100),
+ MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(100),
+ 30 * 30,
+ 500);
}
private static void mixerRecipes() {
GT_Values.RA.addMixerRecipe(
- CI.getNumberedCircuit(1),
- MISC_MATERIALS.DICHLOROACETIC_ACID.getCell(1),
- null,
- null,
- MISC_MATERIALS.TRICHLOROACETIC_ACID.getFluidStack(1000),
- MISC_MATERIALS.CHLOROACETIC_MIXTURE.getFluidStack(2000),
- CI.emptyCells(1),
- 100,
- 100);
+ CI.getNumberedCircuit(1),
+ MISC_MATERIALS.DICHLOROACETIC_ACID.getCell(1),
+ null,
+ null,
+ MISC_MATERIALS.TRICHLOROACETIC_ACID.getFluidStack(1000),
+ MISC_MATERIALS.CHLOROACETIC_MIXTURE.getFluidStack(2000),
+ CI.emptyCells(1),
+ 100,
+ 100);
GT_Values.RA.addMixerRecipe(
- ItemUtils.getItemStackOfAmountFromOreDict("cellSulfurTrioxide", 1),
- CI.getNumberedCircuit(2),
- null,
- null,
- FluidUtils.getFluidStack("sulfuricacid", 1000),
- MISC_MATERIALS.SOLID_ACID_MIXTURE.getFluidStack(1000),
- CI.emptyCells(1),
- 100,
- 40);
+ ItemUtils.getItemStackOfAmountFromOreDict("cellSulfurTrioxide", 1),
+ CI.getNumberedCircuit(2),
+ null,
+ null,
+ FluidUtils.getFluidStack("sulfuricacid", 1000),
+ MISC_MATERIALS.SOLID_ACID_MIXTURE.getFluidStack(1000),
+ CI.emptyCells(1),
+ 100,
+ 40);
}
private static void glueUsageRecipes() {
// Braintech Tape recipe, PBI and superglue make 16 tape at once
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Polybenzimidazole, 1L),
- GT_ModHandler.getIC2Item("carbonMesh", 1L), CI.getNumberedCircuit(10) },
- MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(100),
- ItemList.Duct_Tape.get(16L),
- 120,
- 30);
+ new ItemStack[] { GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Polybenzimidazole, 1L),
+ GT_ModHandler.getIC2Item("carbonMesh", 1L), CI.getNumberedCircuit(10) },
+ MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(100),
+ ItemList.Duct_Tape.get(16L),
+ 120,
+ 30);
// Maintenance Hatch recipe, using Braintech Tape
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { ItemList.Hull_LV.get(1), ItemList.Duct_Tape.get(1), CI.getNumberedCircuit(1) },
- MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(100),
- ItemList.Hatch_Maintenance.get(1),
- 120,
- 30);
+ new ItemStack[] { ItemList.Hull_LV.get(1), ItemList.Duct_Tape.get(1), CI.getNumberedCircuit(1) },
+ MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(100),
+ ItemList.Hatch_Maintenance.get(1),
+ 120,
+ 30);
// Graphene recipes from later wafer tiers, using superglue instead of the bronze age glue
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustGraphite", 64),
- ItemList.Circuit_Silicon_Wafer4.get(2L), CI.getNumberedCircuit(2) },
- MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(500),
- ItemUtils.getItemStackOfAmountFromOreDict("dustGraphene", 64),
- 400,
- 30720);
+ new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustGraphite", 64),
+ ItemList.Circuit_Silicon_Wafer4.get(2L), CI.getNumberedCircuit(2) },
+ MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(500),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustGraphene", 64),
+ 400,
+ 30720);
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustGraphite", 64),
- ItemList.Circuit_Silicon_Wafer5.get(1L), CI.getNumberedCircuit(2) },
- MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(250),
- ItemUtils.getItemStackOfAmountFromOreDict("dustGraphene", 64),
- 80,
- 122880);
+ new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustGraphite", 64),
+ ItemList.Circuit_Silicon_Wafer5.get(1L), CI.getNumberedCircuit(2) },
+ MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(250),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustGraphene", 64),
+ 80,
+ 122880);
GT_Values.RA.addMixerRecipe(
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1L),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lithium, 1L),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 4L),
- GT_Values.NI,
- GT_Values.NI,
- GT_Utility.getIntegratedCircuit(1),
- MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(100),
- null,
- ItemList.SFMixture.get(32),
- 1600,
- 16);
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lithium, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 4L),
+ GT_Values.NI,
+ GT_Values.NI,
+ GT_Utility.getIntegratedCircuit(1),
+ MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(100),
+ null,
+ ItemList.SFMixture.get(32),
+ 1600,
+ 16);
GT_Values.RA.addMixerRecipe(
- ItemList.GelledToluene.get(1),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminium, 1L),
- GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Polybenzimidazole, 1L),
- GT_Values.NI,
- GT_Values.NI,
- GT_Utility.getIntegratedCircuit(1),
- MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(100),
- null,
- ItemList.SFMixture.get(64),
- 1600,
- 16);
+ ItemList.GelledToluene.get(1),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminium, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Polybenzimidazole, 1L),
+ GT_Values.NI,
+ GT_Values.NI,
+ GT_Utility.getIntegratedCircuit(1),
+ MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(100),
+ null,
+ ItemList.SFMixture.get(64),
+ 1600,
+ 16);
GT_Values.RA.addAssemblerRecipe(
- GT_OreDictUnificator.get(OrePrefixes.foil, Materials.PolyvinylChloride, 8),
- GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Paper, 32),
- MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(200),
- new ItemStack(Items.book, 64, 0),
- 32,
- 8);
+ GT_OreDictUnificator.get(OrePrefixes.foil, Materials.PolyvinylChloride, 8),
+ GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Paper, 32),
+ MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(200),
+ new ItemStack(Items.book, 64, 0),
+ 32,
+ 8);
if (TecTech.isModLoaded()) {
GT_Values.RA.addAssemblerRecipe(
- GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Naquadah, 2),
- GT_OreDictUnificator.get(OrePrefixes.plate, Materials.RedSteel, 18),
- MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(144),
- ItemUtils.getItemStackFromFQRN("gregtech:gt.metaitem.01:32505", 1),
- 300,
- 7680);
+ GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Naquadah, 2),
+ GT_OreDictUnificator.get(OrePrefixes.plate, Materials.RedSteel, 18),
+ MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(144),
+ ItemUtils.getItemStackFromFQRN("gregtech:gt.metaitem.01:32505", 1),
+ 300,
+ 7680);
GT_Values.RA.addAssemblerRecipe(
- GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.NaquadahAlloy, 2),
- GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Europium, 6),
- MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(288),
- ItemUtils.getItemStackFromFQRN("gregtech:gt.metaitem.01:32506", 1),
- 200,
- 30720);
+ GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.NaquadahAlloy, 2),
+ GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Europium, 6),
+ MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(288),
+ ItemUtils.getItemStackFromFQRN("gregtech:gt.metaitem.01:32506", 1),
+ 200,
+ 30720);
GT_Values.RA.addAssemblerRecipe(
- GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.ElectrumFlux, 2),
- GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Americium, 18),
- MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(576),
- ItemUtils.getItemStackFromFQRN("gregtech:gt.metaitem.01:32507", 1),
- 300,
- 122880);
+ GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.ElectrumFlux, 2),
+ GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Americium, 18),
+ MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(576),
+ ItemUtils.getItemStackFromFQRN("gregtech:gt.metaitem.01:32507", 1),
+ 300,
+ 122880);
GT_Values.RA.addAssemblerRecipe(
- GT_OreDictUnificator.get(OrePrefixes.cableGt02, Materials.ElectrumFlux, 2),
- GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Naquadah, 24),
- MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(1152),
- ItemUtils.getItemStackFromFQRN("gregtech:gt.metaitem.01:32561", 1),
- 100,
- 491520);
+ GT_OreDictUnificator.get(OrePrefixes.cableGt02, Materials.ElectrumFlux, 2),
+ GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Naquadah, 24),
+ MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(1152),
+ ItemUtils.getItemStackFromFQRN("gregtech:gt.metaitem.01:32561", 1),
+ 100,
+ 491520);
GT_Values.RA.addAssemblerRecipe(
- GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.ElectrumFlux, 2),
- GT_OreDictUnificator.get(OrePrefixes.plate, Materials.NaquadahEnriched, 36),
- MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(2304),
- ItemUtils.getItemStackFromFQRN("gregtech:gt.metaitem.01:32562", 1),
- 200,
- 1966080);
+ GT_OreDictUnificator.get(OrePrefixes.cableGt04, Materials.ElectrumFlux, 2),
+ GT_OreDictUnificator.get(OrePrefixes.plate, Materials.NaquadahEnriched, 36),
+ MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(2304),
+ ItemUtils.getItemStackFromFQRN("gregtech:gt.metaitem.01:32562", 1),
+ 200,
+ 1966080);
GT_Values.RA.addAssemblerRecipe(
- GT_OreDictUnificator.get(OrePrefixes.cableGt08, Materials.ElectrumFlux, 2),
- GT_OreDictUnificator.get(OrePrefixes.plate, Materials.NaquadahAlloy, 48),
- MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(4608),
- ItemUtils.getItemStackFromFQRN("gregtech:gt.metaitem.01:32563", 1),
- 300,
- 1966080);
+ GT_OreDictUnificator.get(OrePrefixes.cableGt08, Materials.ElectrumFlux, 2),
+ GT_OreDictUnificator.get(OrePrefixes.plate, Materials.NaquadahAlloy, 48),
+ MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(4608),
+ ItemUtils.getItemStackFromFQRN("gregtech:gt.metaitem.01:32563", 1),
+ 300,
+ 1966080);
GT_Values.RA.addAssemblerRecipe(
- GT_OreDictUnificator.get(OrePrefixes.wireGt16, Materials.SuperconductorUHV, 2),
- GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Neutronium, 56),
- MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(9216),
- ItemUtils.getItemStackFromFQRN("gregtech:gt.metaitem.01:32564", 1),
- 600,
- 1966080);
+ GT_OreDictUnificator.get(OrePrefixes.wireGt16, Materials.SuperconductorUHV, 2),
+ GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Neutronium, 56),
+ MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(9216),
+ ItemUtils.getItemStackFromFQRN("gregtech:gt.metaitem.01:32564", 1),
+ 600,
+ 1966080);
GT_Values.RA.addAssemblerRecipe(
- GT_OreDictUnificator.get(OrePrefixes.wireGt16, Materials.SuperconductorUHV, 2),
- GT_OreDictUnificator.get(OrePrefixes.plate, Materials.DraconiumAwakened, 64),
- MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(18432),
- ItemUtils.getItemStackFromFQRN("gregtech:gt.metaitem.01:32565", 1),
- 1200,
- 1966080);
+ GT_OreDictUnificator.get(OrePrefixes.wireGt16, Materials.SuperconductorUHV, 2),
+ GT_OreDictUnificator.get(OrePrefixes.plate, Materials.DraconiumAwakened, 64),
+ MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(18432),
+ ItemUtils.getItemStackFromFQRN("gregtech:gt.metaitem.01:32565", 1),
+ 1200,
+ 1966080);
}
if (NewHorizonsCoreMod.isModLoaded() && GalacticraftCore.isModLoaded()) {
GT_Values.RA.addAssemblerRecipe(
- new ItemStack[] { ItemUtils.getItemStackFromFQRN("GalacticraftMars:item.itemBasicAsteroids:7", 1),
- GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Titanium, 8),
- ItemUtils.getItemStackFromFQRN("dreamcraft:item.TungstenString", 8),
- CI.getNumberedCircuit(1) },
- MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(576),
- ItemUtils.getItemStackFromFQRN("GalaxySpace:item.ThermalClothT2", 1),
- 600,
- 1024);
+ new ItemStack[] { ItemUtils.getItemStackFromFQRN("GalacticraftMars:item.itemBasicAsteroids:7", 1),
+ GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Titanium, 8),
+ ItemUtils.getItemStackFromFQRN("dreamcraft:item.TungstenString", 8), CI.getNumberedCircuit(1) },
+ MISC_MATERIALS.ETHYL_CYANOACRYLATE.getFluidStack(576),
+ ItemUtils.getItemStackFromFQRN("GalaxySpace:item.ThermalClothT2", 1),
+ 600,
+ 1024);
}
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_LFTR.java b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_LFTR.java
index 0ccfa36e04..81fde457ae 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_LFTR.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_LFTR.java
@@ -21,8 +21,12 @@ public class RecipeLoader_LFTR {
private static void configureSparging() {
if (mSpargeGases == null) {
mSpargeGases = new AutoMap<>();
- mSpargeGases.add(Materials.Helium.getGas(1).getFluid());
- mSpargeGases.add(Materials.Fluorine.getGas(1).getFluid());
+ mSpargeGases.add(
+ Materials.Helium.getGas(1)
+ .getFluid());
+ mSpargeGases.add(
+ Materials.Fluorine.getGas(1)
+ .getFluid());
}
if (mNobleGases == null) {
mNobleGases = new AutoMap<>();
@@ -57,78 +61,75 @@ public class RecipeLoader_LFTR {
// LiFBeF2ThF4UF4 - T3
GTPPRecipeMaps.liquidFluorineThoriumReactorRecipes.addRecipe(
- false,
- new ItemStack[] {},
- new ItemStack[] {},
- null,
- new int[] { 10000, 10000, 5000, 2500 },
- new FluidStack[] { NUCLIDE.LiFBeF2ThF4UF4.getFluidStack(100), Li2BeF4 },
- new FluidStack[] { NUCLIDE.LiFBeF2UF4FP.getFluidStack(100), NUCLIDE.LiFBeF2ThF4.getFluidStack(200),
- FLUORIDES.URANIUM_HEXAFLUORIDE.getFluidStack(20),
- FLUORIDES.URANIUM_HEXAFLUORIDE.getFluidStack(10) },
- 100 * 20, // time
- 0, // cost
- 32768 * 4 // fuel value
+ false,
+ new ItemStack[] {},
+ new ItemStack[] {},
+ null,
+ new int[] { 10000, 10000, 5000, 2500 },
+ new FluidStack[] { NUCLIDE.LiFBeF2ThF4UF4.getFluidStack(100), Li2BeF4 },
+ new FluidStack[] { NUCLIDE.LiFBeF2UF4FP.getFluidStack(100), NUCLIDE.LiFBeF2ThF4.getFluidStack(200),
+ FLUORIDES.URANIUM_HEXAFLUORIDE.getFluidStack(20), FLUORIDES.URANIUM_HEXAFLUORIDE.getFluidStack(10) },
+ 100 * 20, // time
+ 0, // cost
+ 32768 * 4 // fuel value
);
// LiFBeF2ZrF4UF4 - T2
GTPPRecipeMaps.liquidFluorineThoriumReactorRecipes.addRecipe(
- false,
- new ItemStack[] {},
- new ItemStack[] {},
- null,
- new int[] { 10000, 10000, 2500, 1250 },
- new FluidStack[] { NUCLIDE.LiFBeF2ZrF4UF4.getFluidStack(100), Li2BeF4 },
- new FluidStack[] { NUCLIDE.LiFBeF2UF4FP.getFluidStack(50), NUCLIDE.LiFBeF2ThF4.getFluidStack(100),
- FLUORIDES.URANIUM_HEXAFLUORIDE.getFluidStack(10),
- FLUORIDES.URANIUM_HEXAFLUORIDE.getFluidStack(5) },
- 100 * 20, // time
- 0, // cost
- 8192 * 4 // fuel value
+ false,
+ new ItemStack[] {},
+ new ItemStack[] {},
+ null,
+ new int[] { 10000, 10000, 2500, 1250 },
+ new FluidStack[] { NUCLIDE.LiFBeF2ZrF4UF4.getFluidStack(100), Li2BeF4 },
+ new FluidStack[] { NUCLIDE.LiFBeF2UF4FP.getFluidStack(50), NUCLIDE.LiFBeF2ThF4.getFluidStack(100),
+ FLUORIDES.URANIUM_HEXAFLUORIDE.getFluidStack(10), FLUORIDES.URANIUM_HEXAFLUORIDE.getFluidStack(5) },
+ 100 * 20, // time
+ 0, // cost
+ 8192 * 4 // fuel value
);
// LiFBeF2ZrF4U235 - T1
GTPPRecipeMaps.liquidFluorineThoriumReactorRecipes.addRecipe(
- false,
- new ItemStack[] {},
- new ItemStack[] {},
- null,
- new int[] { 10000, 10000, 1000, 500 },
- new FluidStack[] { NUCLIDE.LiFBeF2ZrF4U235.getFluidStack(100), Li2BeF4 },
- new FluidStack[] { NUCLIDE.LiFBeF2UF4FP.getFluidStack(25), NUCLIDE.LiFThF4.getFluidStack(50),
- FLUORIDES.URANIUM_HEXAFLUORIDE.getFluidStack(4),
- FLUORIDES.URANIUM_HEXAFLUORIDE.getFluidStack(2) },
- 100 * 20, // time
- 0, // cost
- 8192 // fuel value
+ false,
+ new ItemStack[] {},
+ new ItemStack[] {},
+ null,
+ new int[] { 10000, 10000, 1000, 500 },
+ new FluidStack[] { NUCLIDE.LiFBeF2ZrF4U235.getFluidStack(100), Li2BeF4 },
+ new FluidStack[] { NUCLIDE.LiFBeF2UF4FP.getFluidStack(25), NUCLIDE.LiFThF4.getFluidStack(50),
+ FLUORIDES.URANIUM_HEXAFLUORIDE.getFluidStack(4), FLUORIDES.URANIUM_HEXAFLUORIDE.getFluidStack(2) },
+ 100 * 20, // time
+ 0, // cost
+ 8192 // fuel value
);
// Sparging NEI Recipes
GasSpargingRecipeMap.addRecipe(
- new FluidStack(mSpargeGases.get(0), 1000),
- NUCLIDE.LiFBeF2UF4FP.getFluidStack(50),
- NUCLIDE.Sparged_LiFBeF2UF4FP.getFluidStack(50),
- new FluidStack[] { new FluidStack(mNobleGases.get(1), 10), new FluidStack(mNobleGases.get(2), 10),
- new FluidStack(mNobleGases.get(3), 10), new FluidStack(mNobleGases.get(4), 10),
- new FluidStack(mNobleGases.get(5), 10) },
- new int[] { 20000, 20000, 20000, 20000, 20000 });
+ new FluidStack(mSpargeGases.get(0), 1000),
+ NUCLIDE.LiFBeF2UF4FP.getFluidStack(50),
+ NUCLIDE.Sparged_LiFBeF2UF4FP.getFluidStack(50),
+ new FluidStack[] { new FluidStack(mNobleGases.get(1), 10), new FluidStack(mNobleGases.get(2), 10),
+ new FluidStack(mNobleGases.get(3), 10), new FluidStack(mNobleGases.get(4), 10),
+ new FluidStack(mNobleGases.get(5), 10) },
+ new int[] { 20000, 20000, 20000, 20000, 20000 });
GasSpargingRecipeMap.addRecipe(
- new FluidStack(mSpargeGases.get(1), 100),
- NUCLIDE.LiFThF4.getFluidStack(50),
- NUCLIDE.Sparged_LiFThF4.getFluidStack(50),
- new FluidStack[] { new FluidStack(mFluorideGases.get(1), 5), new FluidStack(mFluorideGases.get(2), 5),
- new FluidStack(mFluorideGases.get(3), 5), new FluidStack(mFluorideGases.get(4), 5),
- new FluidStack(mFluorideGases.get(5), 5) },
- new int[] { 1000, 1000, 1000, 1000, 1000 });
+ new FluidStack(mSpargeGases.get(1), 100),
+ NUCLIDE.LiFThF4.getFluidStack(50),
+ NUCLIDE.Sparged_LiFThF4.getFluidStack(50),
+ new FluidStack[] { new FluidStack(mFluorideGases.get(1), 5), new FluidStack(mFluorideGases.get(2), 5),
+ new FluidStack(mFluorideGases.get(3), 5), new FluidStack(mFluorideGases.get(4), 5),
+ new FluidStack(mFluorideGases.get(5), 5) },
+ new int[] { 1000, 1000, 1000, 1000, 1000 });
GasSpargingRecipeMap.addRecipe(
- new FluidStack(mSpargeGases.get(1), 100),
- NUCLIDE.LiFBeF2ThF4.getFluidStack(50),
- NUCLIDE.Sparged_LiFBeF2ThF4.getFluidStack(50),
- new FluidStack[] { new FluidStack(mFluorideGases.get(1), 10), new FluidStack(mFluorideGases.get(2), 10),
- new FluidStack(mFluorideGases.get(3), 10), new FluidStack(mFluorideGases.get(4), 10),
- new FluidStack(mFluorideGases.get(5), 10) },
- new int[] { 2000, 2000, 2000, 2000, 2000 });
+ new FluidStack(mSpargeGases.get(1), 100),
+ NUCLIDE.LiFBeF2ThF4.getFluidStack(50),
+ NUCLIDE.Sparged_LiFBeF2ThF4.getFluidStack(50),
+ new FluidStack[] { new FluidStack(mFluorideGases.get(1), 10), new FluidStack(mFluorideGases.get(2), 10),
+ new FluidStack(mFluorideGases.get(3), 10), new FluidStack(mFluorideGases.get(4), 10),
+ new FluidStack(mFluorideGases.get(5), 10) },
+ new int[] { 2000, 2000, 2000, 2000, 2000 });
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_MolecularTransformer.java b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_MolecularTransformer.java
index 8b59e2d232..cd576dbc8d 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_MolecularTransformer.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_MolecularTransformer.java
@@ -23,8 +23,8 @@ public class RecipeLoader_MolecularTransformer {
Logger.INFO("=======================");
Logger.INFO("Generating GT recipe for Molecular Transformer.");
Logger.INFO(
- "Input: " + aRecipe.inputStack
- .getDisplayName() + ", Output: " + aRecipe.outputStack.getDisplayName() + ", EU/t: " + aEU);
+ "Input: " + aRecipe.inputStack
+ .getDisplayName() + ", Output: " + aRecipe.outputStack.getDisplayName() + ", EU/t: " + aEU);
float aTicks = (float) aRecipe.energyPerOperation / (float) aEU;
Logger.INFO("Ticks: " + aTicks);
int aTicksRoundedUp = MathUtils.roundToClosestInt(Math.ceil(aTicks));
@@ -38,41 +38,41 @@ public class RecipeLoader_MolecularTransformer {
if (AdvancedSolarPanel.isModLoaded() && GalaxySpace.isModLoaded()) {
CORE.RA.addMolecularTransformerRecipe(
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glowstone, 1L),
- GT_ModHandler.getModItem(AdvancedSolarPanel.ID, "asp_crafting_items", 1L, 9),
- 600,
- 1920,
- 2);
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glowstone, 1L),
+ GT_ModHandler.getModItem(AdvancedSolarPanel.ID, "asp_crafting_items", 1L, 9),
+ 600,
+ 1920,
+ 2);
CORE.RA.addMolecularTransformerRecipe(
- GT_ModHandler.getModItem(GalaxySpace.ID, "item.GlowstoneDusts", 1L, 0),
- GT_ModHandler.getModItem(AdvancedSolarPanel.ID, "asp_crafting_items", 1L, 9),
- 150,
- 7680,
- 2);
+ GT_ModHandler.getModItem(GalaxySpace.ID, "item.GlowstoneDusts", 1L, 0),
+ GT_ModHandler.getModItem(AdvancedSolarPanel.ID, "asp_crafting_items", 1L, 9),
+ 150,
+ 7680,
+ 2);
CORE.RA.addMolecularTransformerRecipe(
- GT_ModHandler.getModItem(GalaxySpace.ID, "item.GlowstoneDusts", 1L, 1),
- GT_ModHandler.getModItem(AdvancedSolarPanel.ID, "asp_crafting_items", 1L, 9),
- 38,
- 30720,
- 2);
+ GT_ModHandler.getModItem(GalaxySpace.ID, "item.GlowstoneDusts", 1L, 1),
+ GT_ModHandler.getModItem(AdvancedSolarPanel.ID, "asp_crafting_items", 1L, 9),
+ 38,
+ 30720,
+ 2);
CORE.RA.addMolecularTransformerRecipe(
- GT_ModHandler.getModItem(GalaxySpace.ID, "item.GlowstoneDusts", 1L, 2),
- GT_ModHandler.getModItem(AdvancedSolarPanel.ID, "asp_crafting_items", 1L, 9),
- 10,
- 122880,
- 2);
+ GT_ModHandler.getModItem(GalaxySpace.ID, "item.GlowstoneDusts", 1L, 2),
+ GT_ModHandler.getModItem(AdvancedSolarPanel.ID, "asp_crafting_items", 1L, 9),
+ 10,
+ 122880,
+ 2);
CORE.RA.addMolecularTransformerRecipe(
- GT_ModHandler.getModItem(GalaxySpace.ID, "item.GlowstoneDusts", 1L, 3),
- GT_ModHandler.getModItem(AdvancedSolarPanel.ID, "asp_crafting_items", 1L, 9),
- 3,
- 491520,
- 2);
+ GT_ModHandler.getModItem(GalaxySpace.ID, "item.GlowstoneDusts", 1L, 3),
+ GT_ModHandler.getModItem(AdvancedSolarPanel.ID, "asp_crafting_items", 1L, 9),
+ 3,
+ 491520,
+ 2);
CORE.RA.addMolecularTransformerRecipe(
- GT_ModHandler.getModItem(GalaxySpace.ID, "item.GlowstoneDusts", 1L, 4),
- GT_ModHandler.getModItem(AdvancedSolarPanel.ID, "asp_crafting_items", 1L, 9),
- 1,
- 1996080,
- 2);
+ GT_ModHandler.getModItem(GalaxySpace.ID, "item.GlowstoneDusts", 1L, 4),
+ GT_ModHandler.getModItem(AdvancedSolarPanel.ID, "asp_crafting_items", 1L, 9),
+ 1,
+ 1996080,
+ 2);
}
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_Nuclear.java b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_Nuclear.java
index 900de0306c..a25ed99dd2 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_Nuclear.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_Nuclear.java
@@ -58,37 +58,37 @@ public class RecipeLoader_Nuclear {
private static void autoclave() {
GT_Values.RA.addAutoclaveRecipe(
- ItemUtils.getItemStackOfAmountFromOreDict("dustZirconium", 9),
- FluidUtils.getFluidStack("chlorine", 9 * 4 * 144),
- ItemUtils.getItemStackOfAmountFromOreDict("pelletZirconium", 9),
- 0,
- 120 * 20,
- 30);
+ ItemUtils.getItemStackOfAmountFromOreDict("dustZirconium", 9),
+ FluidUtils.getFluidStack("chlorine", 9 * 4 * 144),
+ ItemUtils.getItemStackOfAmountFromOreDict("pelletZirconium", 9),
+ 0,
+ 120 * 20,
+ 30);
}
private static void blastFurnace() {
GT_Values.RA.addBlastRecipe(
- FLUORIDES.LITHIUM_FLUORIDE.getDust(2),
- FLUORIDES.BERYLLIUM_FLUORIDE.getDust(1),
- GT_Values.NF,
- GT_Values.NF,
- NUCLIDE.Li2BeF4.getDust(3),
- null,
- 60 * 20,
- 2000,
- 3000);
+ FLUORIDES.LITHIUM_FLUORIDE.getDust(2),
+ FLUORIDES.BERYLLIUM_FLUORIDE.getDust(1),
+ GT_Values.NF,
+ GT_Values.NF,
+ NUCLIDE.Li2BeF4.getDust(3),
+ null,
+ 60 * 20,
+ 2000,
+ 3000);
GT_Values.RA.addBlastRecipe(
- ItemUtils.getItemStackOfAmountFromOreDict("dustZrCl4", 1),
- null,
- GT_Values.NF,
- GT_Values.NF,
- ItemUtils.getItemStackOfAmountFromOreDict("dustCookedZrCl4", 1),
- null,
- 60 * 20,
- 340,
- 300);
+ ItemUtils.getItemStackOfAmountFromOreDict("dustZrCl4", 1),
+ null,
+ GT_Values.NF,
+ GT_Values.NF,
+ ItemUtils.getItemStackOfAmountFromOreDict("dustCookedZrCl4", 1),
+ null,
+ 60 * 20,
+ 340,
+ 300);
}
private static void centrifugeRecipes() {
@@ -97,54 +97,63 @@ public class RecipeLoader_Nuclear {
// Uranium
for (ItemStack depletedRod : new ItemStack[] {
- ItemUtils.getItemStackFromFQRN("IC2:reactorUraniumSimpledepleted", 8),
- ItemUtils.getItemStackFromFQRN("IC2:reactorUraniumDualdepleted", 4),
- ItemUtils.getItemStackFromFQRN("IC2:reactorUraniumQuaddepleted", 2) }) {
- GT_Values.RA.stdBuilder().itemInputs(depletedRod, GT_Utility.getIntegratedCircuit(20))
- .itemOutputs(
- ItemList.IC2_Fuel_Rod_Empty.get(8),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Uranium, 2L),
- ELEMENT.getInstance().URANIUM232.getSmallDust(1),
- ELEMENT.getInstance().URANIUM233.getSmallDust(1),
- GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Uranium235, 1L),
- GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Plutonium, 1L))
- .outputChances(10000, 10000, 1000, 1000, 1000, 500)
- .fluidOutputs(FluidUtils.getFluidStack("krypton", 60)).duration(4 * MINUTES + 10 * SECONDS)
- .eut(TierEU.RECIPE_IV).addTo(centrifugeRecipes);
+ ItemUtils.getItemStackFromFQRN("IC2:reactorUraniumSimpledepleted", 8),
+ ItemUtils.getItemStackFromFQRN("IC2:reactorUraniumDualdepleted", 4),
+ ItemUtils.getItemStackFromFQRN("IC2:reactorUraniumQuaddepleted", 2) }) {
+ GT_Values.RA.stdBuilder()
+ .itemInputs(depletedRod, GT_Utility.getIntegratedCircuit(20))
+ .itemOutputs(
+ ItemList.IC2_Fuel_Rod_Empty.get(8),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Uranium, 2L),
+ ELEMENT.getInstance().URANIUM232.getSmallDust(1),
+ ELEMENT.getInstance().URANIUM233.getSmallDust(1),
+ GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Uranium235, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Plutonium, 1L))
+ .outputChances(10000, 10000, 1000, 1000, 1000, 500)
+ .fluidOutputs(FluidUtils.getFluidStack("krypton", 60))
+ .duration(4 * MINUTES + 10 * SECONDS)
+ .eut(TierEU.RECIPE_IV)
+ .addTo(centrifugeRecipes);
}
// Mox
for (ItemStack depletedRod : new ItemStack[] {
- ItemUtils.getItemStackFromFQRN("IC2:reactorMOXSimpledepleted", 8),
- ItemUtils.getItemStackFromFQRN("IC2:reactorMOXDualdepleted", 4),
- ItemUtils.getItemStackFromFQRN("IC2:reactorMOXQuaddepleted", 2) }) {
- GT_Values.RA.stdBuilder().itemInputs(depletedRod, GT_Utility.getIntegratedCircuit(20))
- .itemOutputs(
- ItemList.IC2_Fuel_Rod_Empty.get(8),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plutonium, 2L),
- GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Plutonium241, 1L),
- GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Plutonium, 1L),
- ELEMENT.getInstance().PLUTONIUM238.getTinyDust(1),
- GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Plutonium, 1L))
- .outputChances(10000, 10000, 500, 500, 500, 500)
- .fluidOutputs(FluidUtils.getFluidStack("krypton", 90)).duration(6 * MINUTES + 15 * SECONDS)
- .eut(TierEU.RECIPE_IV).addTo(centrifugeRecipes);
+ ItemUtils.getItemStackFromFQRN("IC2:reactorMOXSimpledepleted", 8),
+ ItemUtils.getItemStackFromFQRN("IC2:reactorMOXDualdepleted", 4),
+ ItemUtils.getItemStackFromFQRN("IC2:reactorMOXQuaddepleted", 2) }) {
+ GT_Values.RA.stdBuilder()
+ .itemInputs(depletedRod, GT_Utility.getIntegratedCircuit(20))
+ .itemOutputs(
+ ItemList.IC2_Fuel_Rod_Empty.get(8),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plutonium, 2L),
+ GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Plutonium241, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Plutonium, 1L),
+ ELEMENT.getInstance().PLUTONIUM238.getTinyDust(1),
+ GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Plutonium, 1L))
+ .outputChances(10000, 10000, 500, 500, 500, 500)
+ .fluidOutputs(FluidUtils.getFluidStack("krypton", 90))
+ .duration(6 * MINUTES + 15 * SECONDS)
+ .eut(TierEU.RECIPE_IV)
+ .addTo(centrifugeRecipes);
}
// Thorium
for (ItemStack depletedRod : new ItemStack[] { ItemList.Depleted_Thorium_1.get(8),
- ItemList.Depleted_Thorium_2.get(4), ItemList.Depleted_Thorium_4.get(2) }) {
- GT_Values.RA.stdBuilder().itemInputs(depletedRod, GT_Utility.getIntegratedCircuit(20))
- .itemOutputs(
- ItemList.IC2_Fuel_Rod_Empty.get(8),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Thorium, 2L),
- ELEMENT.getInstance().THORIUM232.getDust(1),
- GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Lutetium, 1L),
- ELEMENT.getInstance().POLONIUM.getSmallDust(1),
- ELEMENT.getInstance().THALLIUM.getTinyDust(1))
- .outputChances(10000, 10000, 5000, 5000, 5000, 2500)
- .fluidOutputs(FluidUtils.getFluidStack("krypton", 30)).duration(2 * MINUTES + 5 * SECONDS)
- .eut(TierEU.RECIPE_IV).addTo(centrifugeRecipes);
+ ItemList.Depleted_Thorium_2.get(4), ItemList.Depleted_Thorium_4.get(2) }) {
+ GT_Values.RA.stdBuilder()
+ .itemInputs(depletedRod, GT_Utility.getIntegratedCircuit(20))
+ .itemOutputs(
+ ItemList.IC2_Fuel_Rod_Empty.get(8),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Thorium, 2L),
+ ELEMENT.getInstance().THORIUM232.getDust(1),
+ GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Lutetium, 1L),
+ ELEMENT.getInstance().POLONIUM.getSmallDust(1),
+ ELEMENT.getInstance().THALLIUM.getTinyDust(1))
+ .outputChances(10000, 10000, 5000, 5000, 5000, 2500)
+ .fluidOutputs(FluidUtils.getFluidStack("krypton", 30))
+ .duration(2 * MINUTES + 5 * SECONDS)
+ .eut(TierEU.RECIPE_IV)
+ .addTo(centrifugeRecipes);
}
}
@@ -152,182 +161,185 @@ public class RecipeLoader_Nuclear {
int[] chances = { 9000, 6000, 3000 };
GT_Values.RA.addChemicalBathRecipe(
- ItemUtils.getItemStackOfAmountFromOreDict("dustTin", 12),
- FluidUtils.getFluidStack("chlorine", 2400),
- ItemUtils.getItemStackOfAmountFromOreDict("dustZirconium", 3),
- ItemUtils.getItemStackOfAmountFromOreDict("dustZirconium", 4),
- ItemUtils.getItemStackOfAmountFromOreDict("dustZirconium", 5),
- chances,
- 30 * 20,
- 480);
+ ItemUtils.getItemStackOfAmountFromOreDict("dustTin", 12),
+ FluidUtils.getFluidStack("chlorine", 2400),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustZirconium", 3),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustZirconium", 4),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustZirconium", 5),
+ chances,
+ 30 * 20,
+ 480);
chances = new int[] { 9000, 3000, 1000 };
GT_Values.RA.addChemicalBathRecipe(
- ItemUtils.getItemStackOfAmountFromOreDict("dustRutile", 5),
- FluidUtils.getFluidStack("chlorine", 4000),
- ItemUtils.getItemStackOfAmountFromOreDict("dustZirconium", 3),
- ItemUtils.getItemStackOfAmountFromOreDict("dustTitanium", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustHafnium", 1),
- chances,
- 30 * 20,
- 1024);
+ ItemUtils.getItemStackOfAmountFromOreDict("dustRutile", 5),
+ FluidUtils.getFluidStack("chlorine", 4000),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustZirconium", 3),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustTitanium", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustHafnium", 1),
+ chances,
+ 30 * 20,
+ 1024);
GT_Values.RA.addChemicalBathRecipe(
- ItemUtils.getItemStackOfAmountFromOreDict("dustLithiumCarbonate", 10),
- FluidUtils.getFluidStack("hydrofluoricacid", 10 * 144),
- ItemUtils.getItemStackOfAmountFromOreDict("dustLithiumFluoride", 10),
- null,
- null,
- new int[] {},
- 90 * 20,
- 500);
+ ItemUtils.getItemStackOfAmountFromOreDict("dustLithiumCarbonate", 10),
+ FluidUtils.getFluidStack("hydrofluoricacid", 10 * 144),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustLithiumFluoride", 10),
+ null,
+ null,
+ new int[] {},
+ 90 * 20,
+ 500);
}
private static void chemicalReactorRecipes() {
ItemStack aGtHydrofluoricAcid = ItemUtils
- .getItemStackOfAmountFromOreDictNoBroken("cellHydrofluoricAcid_GT5U", 2);
+ .getItemStackOfAmountFromOreDictNoBroken("cellHydrofluoricAcid_GT5U", 2);
GT_Values.RA.addChemicalRecipe(
- ItemUtils.getItemStackOfAmountFromOreDict("dustLithiumCarbonate", 5), // Input
- ItemUtils.getItemStackOfAmountFromOreDict("dustCalciumHydroxide", 5), // Input
- null, // Fluid Input
- null, // Fluid Output
- ItemUtils.getItemStackOfAmountFromOreDict("dustLi2CO3CaOH2", 10),
- 600 * 20);
+ ItemUtils.getItemStackOfAmountFromOreDict("dustLithiumCarbonate", 5), // Input
+ ItemUtils.getItemStackOfAmountFromOreDict("dustCalciumHydroxide", 5), // Input
+ null, // Fluid Input
+ null, // Fluid Output
+ ItemUtils.getItemStackOfAmountFromOreDict("dustLi2CO3CaOH2", 10),
+ 600 * 20);
GT_Values.RA.addChemicalRecipe(
- ItemUtils.getItemStackOfAmountFromOreDict("dustLithiumHydroxide", 5), // Input
- null, // Input Stack 2
- FluidUtils.getFluidStack("hydrofluoricacid", 5 * 144),
- FluidUtils.getFluidStack("water", 5 * 144), // Fluid Output
- ItemUtils.getItemStackOfAmountFromOreDict("dustLithiumFluoride", 5),
- 600 * 20);
+ ItemUtils.getItemStackOfAmountFromOreDict("dustLithiumHydroxide", 5), // Input
+ null, // Input Stack 2
+ FluidUtils.getFluidStack("hydrofluoricacid", 5 * 144),
+ FluidUtils.getFluidStack("water", 5 * 144), // Fluid Output
+ ItemUtils.getItemStackOfAmountFromOreDict("dustLithiumFluoride", 5),
+ 600 * 20);
GT_Values.RA.addChemicalRecipe(
- ItemUtils.getItemStackOfAmountFromOreDict("cellOxygen", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustLithium7", 16),
- FluidUtils.getFluidStack("water", 1000),
- FluidUtils.getFluidStack("lithiumhydroxide", 2000 + 144 * 4),
- CI.emptyCells(1),
- 300 * 20);
+ ItemUtils.getItemStackOfAmountFromOreDict("cellOxygen", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustLithium7", 16),
+ FluidUtils.getFluidStack("water", 1000),
+ FluidUtils.getFluidStack("lithiumhydroxide", 2000 + 144 * 4),
+ CI.emptyCells(1),
+ 300 * 20);
// LFTR Fuel Related Compounds
// Hydroxide
GT_Values.RA.addChemicalRecipe(
- ItemUtils.getGregtechCircuit(3),
- ELEMENT.getInstance().OXYGEN.getCell(1),
- ELEMENT.getInstance().HYDROGEN.getFluidStack(1000),
- MISC_MATERIALS.HYDROXIDE.getFluidStack(1000),
- CI.emptyCells(1),
- GT_Values.NI,
- 8 * 20,
- 30);
+ ItemUtils.getGregtechCircuit(3),
+ ELEMENT.getInstance().OXYGEN.getCell(1),
+ ELEMENT.getInstance().HYDROGEN.getFluidStack(1000),
+ MISC_MATERIALS.HYDROXIDE.getFluidStack(1000),
+ CI.emptyCells(1),
+ GT_Values.NI,
+ 8 * 20,
+ 30);
// Beryllium Hydroxide
GT_Values.RA.addChemicalRecipe(
- ItemUtils.getGregtechCircuit(3),
- ELEMENT.getInstance().BERYLLIUM.getDust(7),
- MISC_MATERIALS.HYDROXIDE.getFluidStack(1000),
- FLUORIDES.BERYLLIUM_HYDROXIDE.getFluidStack(2000),
- GT_Values.NI,
- 8 * 20,
- 30);
+ ItemUtils.getGregtechCircuit(3),
+ ELEMENT.getInstance().BERYLLIUM.getDust(7),
+ MISC_MATERIALS.HYDROXIDE.getFluidStack(1000),
+ FLUORIDES.BERYLLIUM_HYDROXIDE.getFluidStack(2000),
+ GT_Values.NI,
+ 8 * 20,
+ 30);
// Ammonium Bifluoride
GT_Values.RA.addChemicalRecipe(
+ ItemUtils.getGregtechCircuit(3),
+ ItemUtils.getItemStackOfAmountFromOreDict("cellHydrofluoricAcid", 1),
+ MISC_MATERIALS.AMMONIUM.getFluidStack(1000),
+ FLUORIDES.AMMONIUM_BIFLUORIDE.getFluidStack(2000),
+ CI.emptyCells(1),
+ 20 * 20,
+ 30);
+ if (aGtHydrofluoricAcid != null) {
+ // Ammonium Bifluoride
+ GT_Values.RA.addChemicalRecipe(
ItemUtils.getGregtechCircuit(3),
- ItemUtils.getItemStackOfAmountFromOreDict("cellHydrofluoricAcid", 1),
+ aGtHydrofluoricAcid,
MISC_MATERIALS.AMMONIUM.getFluidStack(1000),
FLUORIDES.AMMONIUM_BIFLUORIDE.getFluidStack(2000),
- CI.emptyCells(1),
- 20 * 20,
+ CI.emptyCells(2),
+ 40 * 20,
30);
- if (aGtHydrofluoricAcid != null) {
- // Ammonium Bifluoride
- GT_Values.RA.addChemicalRecipe(
- ItemUtils.getGregtechCircuit(3),
- aGtHydrofluoricAcid,
- MISC_MATERIALS.AMMONIUM.getFluidStack(1000),
- FLUORIDES.AMMONIUM_BIFLUORIDE.getFluidStack(2000),
- CI.emptyCells(2),
- 40 * 20,
- 30);
}
// Ammonium
GT_Values.RA.addChemicalRecipe(
- ItemUtils.getGregtechCircuit(3),
- ELEMENT.getInstance().HYDROGEN.getCell(1),
- MISC_MATERIALS.AMMONIA.getFluidStack(1000),
- MISC_MATERIALS.AMMONIUM.getFluidStack(2000),
- CI.emptyCells(1),
- GT_Values.NI,
- 20 * 20,
- 30);
+ ItemUtils.getGregtechCircuit(3),
+ ELEMENT.getInstance().HYDROGEN.getCell(1),
+ MISC_MATERIALS.AMMONIA.getFluidStack(1000),
+ MISC_MATERIALS.AMMONIUM.getFluidStack(2000),
+ CI.emptyCells(1),
+ GT_Values.NI,
+ 20 * 20,
+ 30);
// Sodium Hydroxide
GT_Values.RA.addChemicalRecipe(
+ CI.getNumberedBioCircuit(15),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustSodiumHydroxide", 1),
+ FluidUtils.getFluidStack("hydrofluoricacid", 500),
+ FluidUtils.getWater(1000),
+ FLUORIDES.SODIUM_FLUORIDE.getDust(1),
+ 60 * 20);
+
+ if (FluidUtils.doesFluidExist("hydrofluoricacid_gt5u")) {
+ GT_Values.RA.addChemicalRecipe(
CI.getNumberedBioCircuit(15),
ItemUtils.getItemStackOfAmountFromOreDict("dustSodiumHydroxide", 1),
- FluidUtils.getFluidStack("hydrofluoricacid", 500),
+ FluidUtils.getFluidStack("hydrofluoricacid_gt5u", 1000),
FluidUtils.getWater(1000),
FLUORIDES.SODIUM_FLUORIDE.getDust(1),
60 * 20);
-
- if (FluidUtils.doesFluidExist("hydrofluoricacid_gt5u")) {
- GT_Values.RA.addChemicalRecipe(
- CI.getNumberedBioCircuit(15),
- ItemUtils.getItemStackOfAmountFromOreDict("dustSodiumHydroxide", 1),
- FluidUtils.getFluidStack("hydrofluoricacid_gt5u", 1000),
- FluidUtils.getWater(1000),
- FLUORIDES.SODIUM_FLUORIDE.getDust(1),
- 60 * 20);
}
}
private static void dehydratorRecipes() {
// Makes 7-Lithium
- GT_Values.RA.stdBuilder().itemInputs(CI.getNumberedAdvancedCircuit(14))
- .fluidInputs(FluidUtils.getFluidStack("sulfuriclithium", 1440))
- .itemOutputs(
- ItemUtils.getItemStackOfAmountFromOreDict("dustSulfur", 3),
- ItemUtils.getItemStackOfAmountFromOreDict("dustCopper", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustSodium", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustCarbon", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustLithium7", 4))
- .duration(30 * SECONDS).eut(30).addTo(chemicalDehydratorRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(CI.getNumberedAdvancedCircuit(14))
+ .fluidInputs(FluidUtils.getFluidStack("sulfuriclithium", 1440))
+ .itemOutputs(
+ ItemUtils.getItemStackOfAmountFromOreDict("dustSulfur", 3),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustCopper", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustSodium", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustCarbon", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustLithium7", 4))
+ .duration(30 * SECONDS)
+ .eut(30)
+ .addTo(chemicalDehydratorRecipes);
// Makes Lithium Carbonate
CORE.RA.addDehydratorRecipe(
- new ItemStack[] { CI.emptyCells(12), ItemUtils.getItemStackOfAmountFromOreDict("dustLepidolite", 20) }, // Item
- // input
- // (Array,
- // up
- // to
- // 2)
- FluidUtils.getFluidStack("sulfuricacid", 10000),
- FluidUtils.getFluidStack("sulfuriclithium", 10000),
- new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustPotassium", 1),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminium, 4),
- ItemUtils.getItemStackOfAmountFromOreDict("cellOxygen", 10),
- ItemUtils.getItemStackOfAmountFromOreDict("cellFluorine", 2),
- ItemUtils.getItemStackOfAmountFromOreDict("dustLithiumCarbonate", 3), // LithiumCarbonate
- }, // Output Array of Items - Upto 9,
- new int[] { 10000, 10000, 10000, 10000, 10000 },
- 75 * 20, // Time in ticks
- 1000); // EU
+ new ItemStack[] { CI.emptyCells(12), ItemUtils.getItemStackOfAmountFromOreDict("dustLepidolite", 20) }, // Item
+ // input
+ // (Array,
+ // up
+ // to
+ // 2)
+ FluidUtils.getFluidStack("sulfuricacid", 10000),
+ FluidUtils.getFluidStack("sulfuriclithium", 10000),
+ new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustPotassium", 1),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Aluminium, 4),
+ ItemUtils.getItemStackOfAmountFromOreDict("cellOxygen", 10),
+ ItemUtils.getItemStackOfAmountFromOreDict("cellFluorine", 2),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustLithiumCarbonate", 3), // LithiumCarbonate
+ }, // Output Array of Items - Upto 9,
+ new int[] { 10000, 10000, 10000, 10000, 10000 },
+ 75 * 20, // Time in ticks
+ 1000); // EU
// Calcium Hydroxide
if (ItemUtils.checkForInvalidItems(ItemUtils.getItemStackOfAmountFromOreDict("dustQuicklime", 1))) {
// CaO + H2O = Ca(OH)2
CORE.RA.addDehydratorRecipe(
- new ItemStack[] { CI.getNumberedBioCircuit(20),
- ItemUtils.getItemStackOfAmountFromOreDict("dustQuicklime", 2) },
- FluidUtils.getFluidStack("water", 1000),
- null, // Fluid output (slot 2)
- new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustCalciumHydroxide", 5) }, // Output
- new int[] { 10000 },
- 12 * 20, // Time in ticks
- 120); // EU
+ new ItemStack[] { CI.getNumberedBioCircuit(20),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustQuicklime", 2) },
+ FluidUtils.getFluidStack("water", 1000),
+ null, // Fluid output (slot 2)
+ new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustCalciumHydroxide", 5) }, // Output
+ new int[] { 10000 },
+ 12 * 20, // Time in ticks
+ 120); // EU
} else {
Logger.INFO("[dustCalciumHydroxide] FAILED TO LOAD RECIPE");
if (!ItemUtils.checkForInvalidItems(ItemUtils.getItemStackOfAmountFromOreDict("dustQuicklime", 1))) {
@@ -337,101 +349,101 @@ public class RecipeLoader_Nuclear {
// 2 LiOH + CaCO3
CORE.RA.addDehydratorRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(20),
- ItemUtils.getItemStackOfAmountFromOreDict("dustLi2CO3CaOH2", 5) }, // Item
- null, // Fluid input (slot 1)
- null, // Fluid output (slot 2)
- new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustLithiumHydroxide", 2),
- ItemUtils.getItemStackOfAmountFromOreDict("dustCalciumCarbonate", 3) }, // Output
- new int[] { 10000, 10000 },
- 120 * 20, // Time in ticks
- 1000); // EU
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(20),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustLi2CO3CaOH2", 5) }, // Item
+ null, // Fluid input (slot 1)
+ null, // Fluid output (slot 2)
+ new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustLithiumHydroxide", 2),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustCalciumCarbonate", 3) }, // Output
+ new int[] { 10000, 10000 },
+ 120 * 20, // Time in ticks
+ 1000); // EU
// LiOH Liquid to Dust
CORE.RA.addDehydratorRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(22) },
- FluidUtils.getFluidStack("lithiumhydroxide", 144),
- null,
- new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustLithiumHydroxide", 1) },
- new int[] { 10000 },
- 1 * 20, // Time in ticks
- 64); // EU
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(22) },
+ FluidUtils.getFluidStack("lithiumhydroxide", 144),
+ null,
+ new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustLithiumHydroxide", 1) },
+ new int[] { 10000 },
+ 1 * 20, // Time in ticks
+ 64); // EU
// Zirconium Chloride -> TetraFluoride
FluidStack aHydrogenChloride = new FluidStack(GenericChem.HydrochloricAcid, 9000);
CORE.RA.addDehydratorRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(11),
- ItemUtils.getItemStackOfAmountFromOreDict("dustCookedZrCl4", 9), }, // Item
- FluidUtils.getFluidStack("hydrofluoricacid", 9 * 144),
- aHydrogenChloride,
- new ItemStack[] { FLUORIDES.ZIRCONIUM_TETRAFLUORIDE.getDust(9) },
- new int[] { 10000 },
- 120 * 20, // Time in ticks
- 500); // EU
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(11),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustCookedZrCl4", 9), }, // Item
+ FluidUtils.getFluidStack("hydrofluoricacid", 9 * 144),
+ aHydrogenChloride,
+ new ItemStack[] { FLUORIDES.ZIRCONIUM_TETRAFLUORIDE.getDust(9) },
+ new int[] { 10000 },
+ 120 * 20, // Time in ticks
+ 500); // EU
// Zirconium Chloride -> TetraFluoride
CORE.RA.addDehydratorRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(10),
- ItemUtils.getItemStackOfAmountFromOreDict("dustCookedZrCl4", 9) },
- FluidUtils.getFluidStack("hydrofluoricacid_gt5u", 18 * 144),
- aHydrogenChloride,
- new ItemStack[] { FLUORIDES.ZIRCONIUM_TETRAFLUORIDE.getDust(9) },
- new int[] { 10000 },
- 240 * 20, // Time in ticks
- 500); // EU
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(10),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustCookedZrCl4", 9) },
+ FluidUtils.getFluidStack("hydrofluoricacid_gt5u", 18 * 144),
+ aHydrogenChloride,
+ new ItemStack[] { FLUORIDES.ZIRCONIUM_TETRAFLUORIDE.getDust(9) },
+ new int[] { 10000 },
+ 240 * 20, // Time in ticks
+ 500); // EU
// Be(OH)2 + 2 (NH4)HF2 → (NH4)2BeF4 + 2 H2O
CORE.RA.addDehydratorRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(6), FLUORIDES.AMMONIUM_BIFLUORIDE.getCell(4) },
- FLUORIDES.BERYLLIUM_HYDROXIDE.getFluidStack(2000), // Fluid input (slot 1)
- FLUORIDES.AMMONIUM_TETRAFLUOROBERYLLATE.getFluidStack(6000),
- new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("cellWater", 4) },
- new int[] { 10000 },
- 32 * 20, // Time in ticks
- 64); // EU
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(6), FLUORIDES.AMMONIUM_BIFLUORIDE.getCell(4) },
+ FLUORIDES.BERYLLIUM_HYDROXIDE.getFluidStack(2000), // Fluid input (slot 1)
+ FLUORIDES.AMMONIUM_TETRAFLUOROBERYLLATE.getFluidStack(6000),
+ new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("cellWater", 4) },
+ new int[] { 10000 },
+ 32 * 20, // Time in ticks
+ 64); // EU
// (NH4)2BeF4 → 2 NH3 + 2 HF + BeF2
CORE.RA.addDehydratorRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(17), CI.emptyCells(5) },
- FLUORIDES.AMMONIUM_TETRAFLUOROBERYLLATE.getFluidStack(5000),
- null,
- new ItemStack[] { MISC_MATERIALS.AMMONIA.getCell(2),
- ItemUtils.getItemStackOfAmountFromOreDict("cellHydrofluoricAcid", 2),
- FLUORIDES.BERYLLIUM_FLUORIDE.getCell(1) },
- new int[] { 10000, 10000, 10000 },
- 5 * 60 * 20,
- 120);
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(17), CI.emptyCells(5) },
+ FLUORIDES.AMMONIUM_TETRAFLUOROBERYLLATE.getFluidStack(5000),
+ null,
+ new ItemStack[] { MISC_MATERIALS.AMMONIA.getCell(2),
+ ItemUtils.getItemStackOfAmountFromOreDict("cellHydrofluoricAcid", 2),
+ FLUORIDES.BERYLLIUM_FLUORIDE.getCell(1) },
+ new int[] { 10000, 10000, 10000 },
+ 5 * 60 * 20,
+ 120);
}
private static void electroMagneticSeperator() {
// Zirconium
GT_Values.RA.addElectromagneticSeparatorRecipe(
- ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedBauxite", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustBauxite", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustSmallRutile", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("nuggetZirconium", 1),
- new int[] { 10000, 2500, 4000 },
- 20 * 20,
- 24);
+ ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedBauxite", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustBauxite", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustSmallRutile", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("nuggetZirconium", 1),
+ new int[] { 10000, 2500, 4000 },
+ 20 * 20,
+ 24);
// Zircon
GT_Values.RA.addElectromagneticSeparatorRecipe(
- ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedMagnetite", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustMagnetite", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustSmallZircon", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustTinyZircon", 1),
- new int[] { 10000, 1250, 2500 },
- 20 * 20,
- 24);
+ ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedMagnetite", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustMagnetite", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustSmallZircon", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustTinyZircon", 1),
+ new int[] { 10000, 1250, 2500 },
+ 20 * 20,
+ 24);
GT_Values.RA.addElectromagneticSeparatorRecipe(
- ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedCassiterite", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustCassiterite", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustSmallZircon", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustTinyZircon", 1),
- new int[] { 10000, 1250, 2500 },
- 20 * 20,
- 24);
+ ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedCassiterite", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustCassiterite", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustSmallZircon", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustTinyZircon", 1),
+ new int[] { 10000, 1250, 2500 },
+ 20 * 20,
+ 24);
}
private static void fluidExtractorRecipes() {
@@ -440,205 +452,229 @@ public class RecipeLoader_Nuclear {
CORE.RA.addFluidExtractionRecipe(NUCLIDE.Li2BeF4.getDust(1), NUCLIDE.Li2BeF4.getFluidStack(144), 100, 500);
// Lithium Fluoride
CORE.RA.addFluidExtractionRecipe(
- ItemUtils.getItemStackOfAmountFromOreDict("dustLithiumFluoride", 1),
- FLUORIDES.LITHIUM_FLUORIDE.getFluidStack(144),
- 100,
- 500);
+ ItemUtils.getItemStackOfAmountFromOreDict("dustLithiumFluoride", 1),
+ FLUORIDES.LITHIUM_FLUORIDE.getFluidStack(144),
+ 100,
+ 500);
// LFTR Fuel 1
CORE.RA.addFluidExtractionRecipe(
- NUCLIDE.LiFBeF2ZrF4U235.getDust(1),
- NUCLIDE.LiFBeF2ZrF4U235.getFluidStack(144),
- 250,
- 1000);
+ NUCLIDE.LiFBeF2ZrF4U235.getDust(1),
+ NUCLIDE.LiFBeF2ZrF4U235.getFluidStack(144),
+ 250,
+ 1000);
CORE.RA.addFluidExtractionRecipe(
- NUCLIDE.LiFBeF2ZrF4UF4.getDust(1),
- NUCLIDE.LiFBeF2ZrF4UF4.getFluidStack(144),
- 150,
- 1500);
+ NUCLIDE.LiFBeF2ZrF4UF4.getDust(1),
+ NUCLIDE.LiFBeF2ZrF4UF4.getFluidStack(144),
+ 150,
+ 1500);
CORE.RA.addFluidExtractionRecipe(
- NUCLIDE.LiFBeF2ThF4UF4.getDust(1),
- NUCLIDE.LiFBeF2ThF4UF4.getFluidStack(144),
- 150,
- 2000);
+ NUCLIDE.LiFBeF2ThF4UF4.getDust(1),
+ NUCLIDE.LiFBeF2ThF4UF4.getFluidStack(144),
+ 150,
+ 2000);
// ZIRCONIUM_TETRAFLUORIDE
CORE.RA.addFluidExtractionRecipe(
- FLUORIDES.ZIRCONIUM_TETRAFLUORIDE.getDust(1),
- FLUORIDES.ZIRCONIUM_TETRAFLUORIDE.getFluidStack(144),
- 200,
- 512 + 256);
+ FLUORIDES.ZIRCONIUM_TETRAFLUORIDE.getDust(1),
+ FLUORIDES.ZIRCONIUM_TETRAFLUORIDE.getFluidStack(144),
+ 200,
+ 512 + 256);
}
private static void fusionChainRecipes() {
// Mk1
- GT_Values.RA.stdBuilder().fluidInputs(Materials.Boron.getPlasma(144), Materials.Calcium.getPlasma(16))
- .fluidOutputs(new FluidStack(ELEMENT.getInstance().NEON.getPlasma(), 1000))
- .duration(3 * SECONDS + 4 * TICKS).eut(TierEU.RECIPE_LuV).metadata(FUSION_THRESHOLD, 100000000)
- .addTo(fusionRecipes);
+ GT_Values.RA.stdBuilder()
+ .fluidInputs(Materials.Boron.getPlasma(144), Materials.Calcium.getPlasma(16))
+ .fluidOutputs(new FluidStack(ELEMENT.getInstance().NEON.getPlasma(), 1000))
+ .duration(3 * SECONDS + 4 * TICKS)
+ .eut(TierEU.RECIPE_LuV)
+ .metadata(FUSION_THRESHOLD, 100000000)
+ .addTo(fusionRecipes);
GT_Values.RA.stdBuilder()
- .fluidInputs(
- new FluidStack(ELEMENT.getInstance().NEON.getPlasma(), 144),
- Materials.Bedrockium.getMolten(144))
- .fluidOutputs(new FluidStack(ELEMENT.STANDALONE.FORCE.getPlasma(), 1000))
- .duration(3 * SECONDS + 4 * TICKS).eut(TierEU.RECIPE_LuV).metadata(FUSION_THRESHOLD, 100000000)
- .addTo(fusionRecipes);
+ .fluidInputs(
+ new FluidStack(ELEMENT.getInstance().NEON.getPlasma(), 144),
+ Materials.Bedrockium.getMolten(144))
+ .fluidOutputs(new FluidStack(ELEMENT.STANDALONE.FORCE.getPlasma(), 1000))
+ .duration(3 * SECONDS + 4 * TICKS)
+ .eut(TierEU.RECIPE_LuV)
+ .metadata(FUSION_THRESHOLD, 100000000)
+ .addTo(fusionRecipes);
// Mk2
- GT_Values.RA.stdBuilder().fluidInputs(Materials.Niobium.getPlasma(144), Materials.Zinc.getPlasma(144))
- .fluidOutputs(new FluidStack(ELEMENT.getInstance().KRYPTON.getPlasma(), 144)).duration(32 * TICKS)
- .eut(TierEU.RECIPE_ZPM).metadata(FUSION_THRESHOLD, 300000000).addTo(fusionRecipes);
+ GT_Values.RA.stdBuilder()
+ .fluidInputs(Materials.Niobium.getPlasma(144), Materials.Zinc.getPlasma(144))
+ .fluidOutputs(new FluidStack(ELEMENT.getInstance().KRYPTON.getPlasma(), 144))
+ .duration(32 * TICKS)
+ .eut(TierEU.RECIPE_ZPM)
+ .metadata(FUSION_THRESHOLD, 300000000)
+ .addTo(fusionRecipes);
GT_Values.RA.stdBuilder()
- .fluidInputs(
- new FluidStack(ELEMENT.getInstance().KRYPTON.getPlasma(), 144),
- new FluidStack(ELEMENT.STANDALONE.FORCE.getPlasma(), 1000))
- .fluidOutputs(new FluidStack(ELEMENT.STANDALONE.ASTRAL_TITANIUM.getPlasma(), 1000)).duration(32 * TICKS)
- .eut(TierEU.RECIPE_ZPM).metadata(FUSION_THRESHOLD, 300000000).addTo(fusionRecipes);
+ .fluidInputs(
+ new FluidStack(ELEMENT.getInstance().KRYPTON.getPlasma(), 144),
+ new FluidStack(ELEMENT.STANDALONE.FORCE.getPlasma(), 1000))
+ .fluidOutputs(new FluidStack(ELEMENT.STANDALONE.ASTRAL_TITANIUM.getPlasma(), 1000))
+ .duration(32 * TICKS)
+ .eut(TierEU.RECIPE_ZPM)
+ .metadata(FUSION_THRESHOLD, 300000000)
+ .addTo(fusionRecipes);
GT_Values.RA.stdBuilder()
- .fluidInputs(
- new FluidStack(ELEMENT.STANDALONE.ASTRAL_TITANIUM.getPlasma(), 144),
- new FluidStack(ALLOY.TITANSTEEL.getFluid(), 8))
- .fluidOutputs(new FluidStack(ELEMENT.STANDALONE.RUNITE.getPlasma(), 1000)).duration(32 * TICKS)
- .eut(TierEU.RECIPE_ZPM).metadata(FUSION_THRESHOLD, 300000000).addTo(fusionRecipes);
+ .fluidInputs(
+ new FluidStack(ELEMENT.STANDALONE.ASTRAL_TITANIUM.getPlasma(), 144),
+ new FluidStack(ALLOY.TITANSTEEL.getFluid(), 8))
+ .fluidOutputs(new FluidStack(ELEMENT.STANDALONE.RUNITE.getPlasma(), 1000))
+ .duration(32 * TICKS)
+ .eut(TierEU.RECIPE_ZPM)
+ .metadata(FUSION_THRESHOLD, 300000000)
+ .addTo(fusionRecipes);
// Mk3
GT_Values.RA.stdBuilder()
- .fluidInputs(ELEMENT.getInstance().CURIUM.getFluidStack(144), Materials.Americium.getPlasma(144))
- .fluidOutputs(new FluidStack(ELEMENT.getInstance().XENON.getPlasma(), 144)).duration(16 * TICKS)
- .eut(TierEU.RECIPE_UV).metadata(FUSION_THRESHOLD, 500000000).addTo(fusionRecipes);
+ .fluidInputs(ELEMENT.getInstance().CURIUM.getFluidStack(144), Materials.Americium.getPlasma(144))
+ .fluidOutputs(new FluidStack(ELEMENT.getInstance().XENON.getPlasma(), 144))
+ .duration(16 * TICKS)
+ .eut(TierEU.RECIPE_UV)
+ .metadata(FUSION_THRESHOLD, 500000000)
+ .addTo(fusionRecipes);
GT_Values.RA.stdBuilder()
- .fluidInputs(
- new FluidStack(ELEMENT.getInstance().XENON.getPlasma(), 144),
- new FluidStack(ELEMENT.STANDALONE.RUNITE.getPlasma(), 1000))
- .fluidOutputs(new FluidStack(ELEMENT.STANDALONE.ADVANCED_NITINOL.getPlasma(), 1000))
- .duration(16 * TICKS).eut(TierEU.RECIPE_UV).metadata(FUSION_THRESHOLD, 500000000).addTo(fusionRecipes);
+ .fluidInputs(
+ new FluidStack(ELEMENT.getInstance().XENON.getPlasma(), 144),
+ new FluidStack(ELEMENT.STANDALONE.RUNITE.getPlasma(), 1000))
+ .fluidOutputs(new FluidStack(ELEMENT.STANDALONE.ADVANCED_NITINOL.getPlasma(), 1000))
+ .duration(16 * TICKS)
+ .eut(TierEU.RECIPE_UV)
+ .metadata(FUSION_THRESHOLD, 500000000)
+ .addTo(fusionRecipes);
GT_Values.RA.stdBuilder()
- .fluidInputs(
- new FluidStack(ELEMENT.STANDALONE.ADVANCED_NITINOL.getPlasma(), 144),
- Materials.Tartarite.getMolten(2))
- .fluidOutputs(new FluidStack(ELEMENT.STANDALONE.CELESTIAL_TUNGSTEN.getPlasma(), 1000))
- .duration(16 * TICKS).eut(TierEU.RECIPE_UV).metadata(FUSION_THRESHOLD, 500000000).addTo(fusionRecipes);
+ .fluidInputs(
+ new FluidStack(ELEMENT.STANDALONE.ADVANCED_NITINOL.getPlasma(), 144),
+ Materials.Tartarite.getMolten(2))
+ .fluidOutputs(new FluidStack(ELEMENT.STANDALONE.CELESTIAL_TUNGSTEN.getPlasma(), 1000))
+ .duration(16 * TICKS)
+ .eut(TierEU.RECIPE_UV)
+ .metadata(FUSION_THRESHOLD, 500000000)
+ .addTo(fusionRecipes);
}
private static void macerator() {
GT_ModHandler.addPulverisationRecipe(
- ItemUtils.getItemStackOfAmountFromOreDict("pelletZirconium", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustZrCl4", 1));
+ ItemUtils.getItemStackOfAmountFromOreDict("pelletZirconium", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustZrCl4", 1));
}
private static void mixerRecipes() {
GT_Values.RA.addMixerRecipe(
- ItemUtils.getItemStackOfAmountFromOreDict("dustUranium233", 4),
- ItemUtils.getItemStackOfAmountFromOreDict("dustUranium235", 1),
- null,
- null,
- FluidUtils.getFluidStack("hydrofluoricacid", 5000),
- FLUORIDES.URANIUM_TETRAFLUORIDE.getFluidStack(5000),
- null,
- 3000,
- 500);
+ ItemUtils.getItemStackOfAmountFromOreDict("dustUranium233", 4),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustUranium235", 1),
+ null,
+ null,
+ FluidUtils.getFluidStack("hydrofluoricacid", 5000),
+ FLUORIDES.URANIUM_TETRAFLUORIDE.getFluidStack(5000),
+ null,
+ 3000,
+ 500);
}
private static void sifter() {
// Zirconium
GT_Values.RA.addSifterRecipe(
- ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedIlmenite", 1),
- new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustIron", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustWroughtIron", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustZirconium", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustZirconium", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustHafnium", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustHafnium", 1) },
- new int[] { 5000, 278, 1000, 1000, 300, 300 },
- 20 * 30,
- 500);
+ ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedIlmenite", 1),
+ new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustIron", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustWroughtIron", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustZirconium", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustZirconium", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustHafnium", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustHafnium", 1) },
+ new int[] { 5000, 278, 1000, 1000, 300, 300 },
+ 20 * 30,
+ 500);
GT_Values.RA.addSifterRecipe(
- ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedTin", 1),
- new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustTin", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustZinc", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustZirconium", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustZirconium", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustZirconium", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustZirconium", 1) },
- new int[] { 10000, 556, 1500, 1000, 500, 500 },
- 20 * 30,
- 500);
+ ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedTin", 1),
+ new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustTin", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustZinc", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustZirconium", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustZirconium", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustZirconium", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustZirconium", 1) },
+ new int[] { 10000, 556, 1500, 1000, 500, 500 },
+ 20 * 30,
+ 500);
GT_Values.RA.addSifterRecipe(
- ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedCassiterite", 1),
- new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustCassiterite", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustTin", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustZirconium", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustZirconium", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustZirconium", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustZirconium", 1) },
- new int[] { 10000, 556, 1500, 1000, 500, 500 },
- 20 * 30,
- 500);
+ ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedCassiterite", 1),
+ new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustCassiterite", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustTin", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustZirconium", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustZirconium", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustZirconium", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustZirconium", 1) },
+ new int[] { 10000, 556, 1500, 1000, 500, 500 },
+ 20 * 30,
+ 500);
// Radium
GT_Values.RA.addSifterRecipe(
- ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedThorium", 1),
- new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustThorium", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustLead", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1) },
- new int[] { 10000, 500, 300, 200, 100, 100 },
- 20 * 30,
- 500);
+ ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedThorium", 1),
+ new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustThorium", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustLead", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1) },
+ new int[] { 10000, 500, 300, 200, 100, 100 },
+ 20 * 30,
+ 500);
GT_Values.RA.addSifterRecipe(
- ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedUranium", 1),
- new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustUranium", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustLead", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1) },
- new int[] { 10000, 556, 1000, 500, 500, 500 },
- 20 * 30,
- 500);
+ ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedUranium", 1),
+ new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustUranium", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustLead", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1) },
+ new int[] { 10000, 556, 1000, 500, 500, 500 },
+ 20 * 30,
+ 500);
GT_Values.RA.addSifterRecipe(
- ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedUraninite", 1),
- new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustUraninite", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustUranium", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1) },
- new int[] { 10000, 556, 500, 250, 250, 250 },
- 20 * 30,
- 500);
+ ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedUraninite", 1),
+ new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustUraninite", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustUranium", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1) },
+ new int[] { 10000, 556, 500, 250, 250, 250 },
+ 20 * 30,
+ 500);
GT_Values.RA.addSifterRecipe(
- ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedPitchblende", 1),
- new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustPitchblende", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustLead", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1) },
- new int[] { 10000, 556, 500, 250, 250, 250 },
- 20 * 30,
- 500);
+ ItemUtils.getItemStackOfAmountFromOreDict("crushedPurifiedPitchblende", 1),
+ new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustPitchblende", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustLead", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustRadium226", 1) },
+ new int[] { 10000, 556, 500, 250, 250, 250 },
+ 20 * 30,
+ 500);
}
private static void fluidHeater() {
CORE.RA.addFluidHeaterRecipe(
- FLUORIDES.SODIUM_FLUORIDE.getDust(1),
- null,
- FLUORIDES.SODIUM_FLUORIDE.getFluidStack(144),
- 20 * 30,
- 500);
+ FLUORIDES.SODIUM_FLUORIDE.getDust(1),
+ null,
+ FLUORIDES.SODIUM_FLUORIDE.getFluidStack(144),
+ 20 * 30,
+ 500);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_NuclearFuelProcessing.java b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_NuclearFuelProcessing.java
index b990f0ee54..dec6fd426a 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_NuclearFuelProcessing.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_NuclearFuelProcessing.java
@@ -40,212 +40,219 @@ public class RecipeLoader_NuclearFuelProcessing {
// 7LiF - BeF2 - ZrF4 - U235 - 590C
CORE.RA.addFissionFuel(
- FluidUtils.getFluidStack(aLithiumFluoride, 550),
- FluidUtils.getFluidStack(aBerylliumFluoride, 150),
- FluidUtils.getFluidStack(aZirconiumFluoride, 60),
- FluidUtils.getFluidStack(aUranium235, 240),
- null,
- null,
- null,
- null,
- null, // Extra 5 inputs
- FluidUtils.getFluidStack(aLiFBeF2ZrF4U235, 1000),
- null,
- 30 * 60 * 20, // Duration
- MaterialUtils.getVoltageForTier(4));
+ FluidUtils.getFluidStack(aLithiumFluoride, 550),
+ FluidUtils.getFluidStack(aBerylliumFluoride, 150),
+ FluidUtils.getFluidStack(aZirconiumFluoride, 60),
+ FluidUtils.getFluidStack(aUranium235, 240),
+ null,
+ null,
+ null,
+ null,
+ null, // Extra 5 inputs
+ FluidUtils.getFluidStack(aLiFBeF2ZrF4U235, 1000),
+ null,
+ 30 * 60 * 20, // Duration
+ MaterialUtils.getVoltageForTier(4));
// 7LiF - BeF2 - ZrF4 - UF4 - 650C
CORE.RA.addFissionFuel(
- FluidUtils.getFluidStack(aLithiumFluoride, 600),
- FluidUtils.getFluidStack(aBerylliumFluoride, 250),
- FluidUtils.getFluidStack(aZirconiumFluoride, 80),
- FluidUtils.getFluidStack(aUraniumTetraFluoride, 70),
- null,
- null,
- null,
- null,
- null, // Extra 5 inputs
- FluidUtils.getFluidStack(aLiFBeF2ZrF4UF4, 1000),
- null,
- 40 * 60 * 20,
- MaterialUtils.getVoltageForTier(5));
+ FluidUtils.getFluidStack(aLithiumFluoride, 600),
+ FluidUtils.getFluidStack(aBerylliumFluoride, 250),
+ FluidUtils.getFluidStack(aZirconiumFluoride, 80),
+ FluidUtils.getFluidStack(aUraniumTetraFluoride, 70),
+ null,
+ null,
+ null,
+ null,
+ null, // Extra 5 inputs
+ FluidUtils.getFluidStack(aLiFBeF2ZrF4UF4, 1000),
+ null,
+ 40 * 60 * 20,
+ MaterialUtils.getVoltageForTier(5));
// 7liF - BeF2 - ThF4 - UF4 - 566C
CORE.RA.addFissionFuel(
- FluidUtils.getFluidStack(aLithiumFluoride, 580),
- FluidUtils.getFluidStack(aBerylliumFluoride, 270),
- FluidUtils.getFluidStack(aThoriumFluoride, 80),
- FluidUtils.getFluidStack(aUraniumTetraFluoride, 70),
- null,
- null,
- null,
- null,
- null, // Extra 5 inputs
- FluidUtils.getFluidStack(aLiFBeF2ThF4UF4, 1000),
- null,
- 50 * 60 * 20, // Duration
- MaterialUtils.getVoltageForTier(5));
+ FluidUtils.getFluidStack(aLithiumFluoride, 580),
+ FluidUtils.getFluidStack(aBerylliumFluoride, 270),
+ FluidUtils.getFluidStack(aThoriumFluoride, 80),
+ FluidUtils.getFluidStack(aUraniumTetraFluoride, 70),
+ null,
+ null,
+ null,
+ null,
+ null, // Extra 5 inputs
+ FluidUtils.getFluidStack(aLiFBeF2ThF4UF4, 1000),
+ null,
+ 50 * 60 * 20, // Duration
+ MaterialUtils.getVoltageForTier(5));
// Reprocess Fuels
// Reactor Blanket step 1 - Fluorination
CORE.RA.addReactorProcessingUnitRecipe(
- CI.getNumberedAdvancedCircuit(17),
- ELEMENT.getInstance().FLUORINE.getCell(6),
- NUCLIDE.LiFThF4.getFluidStack(10000),
- new ItemStack[] { CI.emptyCells(5), FLUORIDES.LITHIUM_FLUORIDE.getCell(1),
- ELEMENT.getInstance().PROTACTINIUM.getDust(1), ELEMENT.getInstance().PROTACTINIUM.getDust(1),
- ELEMENT.getInstance().PROTACTINIUM.getDust(1), ELEMENT.getInstance().PROTACTINIUM.getDust(1),
- ELEMENT.getInstance().PROTACTINIUM.getDust(1), ELEMENT.getInstance().PROTACTINIUM.getDust(1) },
- new int[] { 10000, 10000, 500, 500, 500, 250, 250, 250 },
- NUCLIDE.UF6F2.getFluidStack(1500),
- 20 * 60 * 10,
- MaterialUtils.getVoltageForTier(5));
+ CI.getNumberedAdvancedCircuit(17),
+ ELEMENT.getInstance().FLUORINE.getCell(6),
+ NUCLIDE.LiFThF4.getFluidStack(10000),
+ new ItemStack[] { CI.emptyCells(5), FLUORIDES.LITHIUM_FLUORIDE.getCell(1),
+ ELEMENT.getInstance().PROTACTINIUM.getDust(1), ELEMENT.getInstance().PROTACTINIUM.getDust(1),
+ ELEMENT.getInstance().PROTACTINIUM.getDust(1), ELEMENT.getInstance().PROTACTINIUM.getDust(1),
+ ELEMENT.getInstance().PROTACTINIUM.getDust(1), ELEMENT.getInstance().PROTACTINIUM.getDust(1) },
+ new int[] { 10000, 10000, 500, 500, 500, 250, 250, 250 },
+ NUCLIDE.UF6F2.getFluidStack(1500),
+ 20 * 60 * 10,
+ MaterialUtils.getVoltageForTier(5));
CORE.RA.addReactorProcessingUnitRecipe(
- CI.getNumberedAdvancedCircuit(18),
- ELEMENT.getInstance().FLUORINE.getCell(6),
- NUCLIDE.LiFBeF2ThF4.getFluidStack(10000),
- new ItemStack[] { CI.emptyCells(4), FLUORIDES.LITHIUM_FLUORIDE.getCell(1),
- FLUORIDES.BERYLLIUM_FLUORIDE.getCell(1), ELEMENT.getInstance().PROTACTINIUM.getDust(1),
- ELEMENT.getInstance().PROTACTINIUM.getDust(1), ELEMENT.getInstance().PROTACTINIUM.getDust(1),
- ELEMENT.getInstance().PROTACTINIUM.getDust(1), ELEMENT.getInstance().PROTACTINIUM.getDust(1),
- ELEMENT.getInstance().PROTACTINIUM.getDust(1) },
- new int[] { 10000, 10000, 10000, 1000, 1000, 1000, 500, 500, 500 },
- NUCLIDE.UF6F2.getFluidStack(3000),
- 20 * 60 * 10,
- MaterialUtils.getVoltageForTier(5));
+ CI.getNumberedAdvancedCircuit(18),
+ ELEMENT.getInstance().FLUORINE.getCell(6),
+ NUCLIDE.LiFBeF2ThF4.getFluidStack(10000),
+ new ItemStack[] { CI.emptyCells(4), FLUORIDES.LITHIUM_FLUORIDE.getCell(1),
+ FLUORIDES.BERYLLIUM_FLUORIDE.getCell(1), ELEMENT.getInstance().PROTACTINIUM.getDust(1),
+ ELEMENT.getInstance().PROTACTINIUM.getDust(1), ELEMENT.getInstance().PROTACTINIUM.getDust(1),
+ ELEMENT.getInstance().PROTACTINIUM.getDust(1), ELEMENT.getInstance().PROTACTINIUM.getDust(1),
+ ELEMENT.getInstance().PROTACTINIUM.getDust(1) },
+ new int[] { 10000, 10000, 10000, 1000, 1000, 1000, 500, 500, 500 },
+ NUCLIDE.UF6F2.getFluidStack(3000),
+ 20 * 60 * 10,
+ MaterialUtils.getVoltageForTier(5));
// Reactor Blanket step 1 - Fluorination
CORE.RA.addReactorProcessingUnitRecipe(
- CI.getNumberedAdvancedCircuit(7),
- ELEMENT.getInstance().FLUORINE.getCell(6),
- NUCLIDE.Sparged_LiFThF4.getFluidStack(10000),
- new ItemStack[] { CI.emptyCells(4), FLUORIDES.LITHIUM_FLUORIDE.getCell(2),
- ELEMENT.getInstance().PROTACTINIUM.getDust(1), ELEMENT.getInstance().PROTACTINIUM.getDust(1),
- ELEMENT.getInstance().PROTACTINIUM.getDust(1), ELEMENT.getInstance().PROTACTINIUM.getDust(1),
- ELEMENT.getInstance().PROTACTINIUM.getDust(1), ELEMENT.getInstance().PROTACTINIUM.getDust(1) },
- new int[] { 10000, 10000, 1000, 1000, 1000, 1000, 1000, 1000 },
- NUCLIDE.UF6F2.getFluidStack(3000),
- 20 * 60 * 5,
- MaterialUtils.getVoltageForTier(5));
+ CI.getNumberedAdvancedCircuit(7),
+ ELEMENT.getInstance().FLUORINE.getCell(6),
+ NUCLIDE.Sparged_LiFThF4.getFluidStack(10000),
+ new ItemStack[] { CI.emptyCells(4), FLUORIDES.LITHIUM_FLUORIDE.getCell(2),
+ ELEMENT.getInstance().PROTACTINIUM.getDust(1), ELEMENT.getInstance().PROTACTINIUM.getDust(1),
+ ELEMENT.getInstance().PROTACTINIUM.getDust(1), ELEMENT.getInstance().PROTACTINIUM.getDust(1),
+ ELEMENT.getInstance().PROTACTINIUM.getDust(1), ELEMENT.getInstance().PROTACTINIUM.getDust(1) },
+ new int[] { 10000, 10000, 1000, 1000, 1000, 1000, 1000, 1000 },
+ NUCLIDE.UF6F2.getFluidStack(3000),
+ 20 * 60 * 5,
+ MaterialUtils.getVoltageForTier(5));
CORE.RA.addReactorProcessingUnitRecipe(
- CI.getNumberedAdvancedCircuit(8),
- ELEMENT.getInstance().FLUORINE.getCell(6),
- NUCLIDE.Sparged_LiFBeF2ThF4.getFluidStack(10000),
- new ItemStack[] { CI.emptyCells(2), FLUORIDES.LITHIUM_FLUORIDE.getCell(2),
- FLUORIDES.BERYLLIUM_FLUORIDE.getCell(2), ELEMENT.getInstance().PROTACTINIUM.getDust(1),
- ELEMENT.getInstance().PROTACTINIUM.getDust(1), ELEMENT.getInstance().PROTACTINIUM.getDust(1),
- ELEMENT.getInstance().PROTACTINIUM.getDust(1), ELEMENT.getInstance().PROTACTINIUM.getDust(1),
- ELEMENT.getInstance().PROTACTINIUM.getDust(1) },
- new int[] { 10000, 10000, 10000, 2000, 2000, 2000, 2000, 2000, 2000 },
- NUCLIDE.UF6F2.getFluidStack(6000),
- 20 * 60 * 5,
- MaterialUtils.getVoltageForTier(5));
+ CI.getNumberedAdvancedCircuit(8),
+ ELEMENT.getInstance().FLUORINE.getCell(6),
+ NUCLIDE.Sparged_LiFBeF2ThF4.getFluidStack(10000),
+ new ItemStack[] { CI.emptyCells(2), FLUORIDES.LITHIUM_FLUORIDE.getCell(2),
+ FLUORIDES.BERYLLIUM_FLUORIDE.getCell(2), ELEMENT.getInstance().PROTACTINIUM.getDust(1),
+ ELEMENT.getInstance().PROTACTINIUM.getDust(1), ELEMENT.getInstance().PROTACTINIUM.getDust(1),
+ ELEMENT.getInstance().PROTACTINIUM.getDust(1), ELEMENT.getInstance().PROTACTINIUM.getDust(1),
+ ELEMENT.getInstance().PROTACTINIUM.getDust(1) },
+ new int[] { 10000, 10000, 10000, 2000, 2000, 2000, 2000, 2000, 2000 },
+ NUCLIDE.UF6F2.getFluidStack(6000),
+ 20 * 60 * 5,
+ MaterialUtils.getVoltageForTier(5));
// Reactor Blanket step 2 - Sorption + Cold Trap
CORE.RA.addColdTrapRecipe(
- 8,
- FLUORIDES.SODIUM_FLUORIDE.getCell(4),
- NUCLIDE.UF6F2.getFluidStack(3000),
- new ItemStack[] { ELEMENT.getInstance().FLUORINE.getCell(2), FLUORIDES.URANIUM_HEXAFLUORIDE.getCell(2),
- ELEMENT.getInstance().URANIUM233.getDust(1), ELEMENT.getInstance().URANIUM233.getDust(1),
- ELEMENT.getInstance().URANIUM233.getDust(1) },
- new int[] { 10000, 10000, 3000, 2000, 1000 },
- FLUORIDES.SODIUM_FLUORIDE.getFluidStack(2000),
- 20 * 60 * 10,
- MaterialUtils.getVoltageForTier(3));
+ 8,
+ FLUORIDES.SODIUM_FLUORIDE.getCell(4),
+ NUCLIDE.UF6F2.getFluidStack(3000),
+ new ItemStack[] { ELEMENT.getInstance().FLUORINE.getCell(2), FLUORIDES.URANIUM_HEXAFLUORIDE.getCell(2),
+ ELEMENT.getInstance().URANIUM233.getDust(1), ELEMENT.getInstance().URANIUM233.getDust(1),
+ ELEMENT.getInstance().URANIUM233.getDust(1) },
+ new int[] { 10000, 10000, 3000, 2000, 1000 },
+ FLUORIDES.SODIUM_FLUORIDE.getFluidStack(2000),
+ 20 * 60 * 10,
+ MaterialUtils.getVoltageForTier(3));
// LiBeF2UF4FP + F2 = LiFBeF2 & UF6F2FP
// Reactor Core step 1 - Process Burnt Salt
CORE.RA.addReactorProcessingUnitRecipe(
- CI.getNumberedAdvancedCircuit(1),
- ELEMENT.getInstance().FLUORINE.getCell(1),
- NUCLIDE.LiFBeF2UF4FP.getFluidStack(1000),
- new ItemStack[] { NUCLIDE.UF6F2FP.getCell(1) },
- new int[] { 10000 },
- FluidUtils.getFluidStack(NuclearChem.Impure_LiFBeF2, 1000),
- 20 * 60 * 120,
- MaterialUtils.getVoltageForTier(3));
+ CI.getNumberedAdvancedCircuit(1),
+ ELEMENT.getInstance().FLUORINE.getCell(1),
+ NUCLIDE.LiFBeF2UF4FP.getFluidStack(1000),
+ new ItemStack[] { NUCLIDE.UF6F2FP.getCell(1) },
+ new int[] { 10000 },
+ FluidUtils.getFluidStack(NuclearChem.Impure_LiFBeF2, 1000),
+ 20 * 60 * 120,
+ MaterialUtils.getVoltageForTier(3));
// LiBeF2UF4FP + F2 = LiFBeF2 & UF6F2FP
// Reactor Core step 1 - Process Burnt Salt
CORE.RA.addReactorProcessingUnitRecipe(
- CI.getNumberedAdvancedCircuit(1),
- ELEMENT.getInstance().FLUORINE.getCell(3),
- NUCLIDE.Sparged_LiFBeF2UF4FP.getFluidStack(1000),
- new ItemStack[] { CI.emptyCells(1), NUCLIDE.UF6F2FP.getCell(2) },
- new int[] { 10000 },
- FluidUtils.getFluidStack(NuclearChem.Impure_LiFBeF2, 2000),
- 20 * 60 * 60,
- MaterialUtils.getVoltageForTier(3));
+ CI.getNumberedAdvancedCircuit(1),
+ ELEMENT.getInstance().FLUORINE.getCell(3),
+ NUCLIDE.Sparged_LiFBeF2UF4FP.getFluidStack(1000),
+ new ItemStack[] { CI.emptyCells(1), NUCLIDE.UF6F2FP.getCell(2) },
+ new int[] { 10000 },
+ FluidUtils.getFluidStack(NuclearChem.Impure_LiFBeF2, 2000),
+ 20 * 60 * 60,
+ MaterialUtils.getVoltageForTier(3));
// Reactor Core step 2A - Sorption + Cold Trap
CORE.RA.addColdTrapRecipe(
- 8,
- FLUORIDES.SODIUM_FLUORIDE.getCell(3),
- NUCLIDE.UF6F2FP.getFluidStack(2000),
- new ItemStack[] { ELEMENT.getInstance().FLUORINE.getCell(1), FLUORIDES.URANIUM_HEXAFLUORIDE.getCell(2),
- ELEMENT.getInstance().PHOSPHORUS.getDust(1), ELEMENT.getInstance().PHOSPHORUS.getDust(1),
- ELEMENT.getInstance().PHOSPHORUS.getDust(1), ELEMENT.getInstance().PHOSPHORUS.getDust(1),
- ELEMENT.getInstance().PHOSPHORUS.getDust(1), ELEMENT.getInstance().PHOSPHORUS.getDust(1) },
- new int[] { 10000, 10000, 5000, 5000, 5000, 5000, 5000, 5000 },
- FLUORIDES.SODIUM_FLUORIDE.getFluidStack(2000),
- 20 * 60 * 10,
- MaterialUtils.getVoltageForTier(4));
+ 8,
+ FLUORIDES.SODIUM_FLUORIDE.getCell(3),
+ NUCLIDE.UF6F2FP.getFluidStack(2000),
+ new ItemStack[] { ELEMENT.getInstance().FLUORINE.getCell(1), FLUORIDES.URANIUM_HEXAFLUORIDE.getCell(2),
+ ELEMENT.getInstance().PHOSPHORUS.getDust(1), ELEMENT.getInstance().PHOSPHORUS.getDust(1),
+ ELEMENT.getInstance().PHOSPHORUS.getDust(1), ELEMENT.getInstance().PHOSPHORUS.getDust(1),
+ ELEMENT.getInstance().PHOSPHORUS.getDust(1), ELEMENT.getInstance().PHOSPHORUS.getDust(1) },
+ new int[] { 10000, 10000, 5000, 5000, 5000, 5000, 5000, 5000 },
+ FLUORIDES.SODIUM_FLUORIDE.getFluidStack(2000),
+ 20 * 60 * 10,
+ MaterialUtils.getVoltageForTier(4));
// Reactor Core step 2B - Distillation
- GT_Values.RA.stdBuilder().fluidInputs(FluidUtils.getFluidStack(NuclearChem.Impure_LiFBeF2, 1000))
- .fluidOutputs(NUCLIDE.LiFBeF2.getFluidStack(250)).duration(7 * MINUTES + 30 * SECONDS)
- .eut(TierEU.RECIPE_IV).addTo(distillationTowerRecipes);
+ GT_Values.RA.stdBuilder()
+ .fluidInputs(FluidUtils.getFluidStack(NuclearChem.Impure_LiFBeF2, 1000))
+ .fluidOutputs(NUCLIDE.LiFBeF2.getFluidStack(250))
+ .duration(7 * MINUTES + 30 * SECONDS)
+ .eut(TierEU.RECIPE_IV)
+ .addTo(distillationTowerRecipes);
// UF6 -> UF4 reduction
// UF6 + LiFBeF2 + H2 -> LiFBeF2UF4 + HF
- GT_Values.RA.stdBuilder().itemInputs(FLUORIDES.URANIUM_HEXAFLUORIDE.getCell(1), NUCLIDE.LiFBeF2.getCell(1))
- .fluidInputs(Materials.Hydrogen.getGas(2000L))
- .itemOutputs(ItemUtils.getItemStackOfAmountFromOreDict("cellHydrofluoricAcid", 2))
- .fluidOutputs(NUCLIDE.LiFBeF2UF4.getFluidStack(3000)).duration(2 * MINUTES + 30 * SECONDS)
- .eut(TierEU.RECIPE_IV).metadata(COIL_HEAT, 5400).addTo(blastFurnaceRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(FLUORIDES.URANIUM_HEXAFLUORIDE.getCell(1), NUCLIDE.LiFBeF2.getCell(1))
+ .fluidInputs(Materials.Hydrogen.getGas(2000L))
+ .itemOutputs(ItemUtils.getItemStackOfAmountFromOreDict("cellHydrofluoricAcid", 2))
+ .fluidOutputs(NUCLIDE.LiFBeF2UF4.getFluidStack(3000))
+ .duration(2 * MINUTES + 30 * SECONDS)
+ .eut(TierEU.RECIPE_IV)
+ .metadata(COIL_HEAT, 5400)
+ .addTo(blastFurnaceRecipes);
// Alternative recipe to the above, for chemplant, to not use cells
CORE.RA.addChemicalPlantRecipe(
- new ItemStack[] {},
- new FluidStack[] { FLUORIDES.URANIUM_HEXAFLUORIDE.getFluidStack(1000),
- NUCLIDE.LiFBeF2.getFluidStack(1000), ELEMENT.getInstance().HYDROGEN.getFluidStack(2000) },
- new ItemStack[] {},
- new FluidStack[] { NUCLIDE.LiFBeF2UF4.getFluidStack(3000),
- FluidUtils.getFluidStack("hydrofluoricacid", 2000) },
- 300 * 10,
- MaterialUtils.getVoltageForTier(5),
- 4);
+ new ItemStack[] {},
+ new FluidStack[] { FLUORIDES.URANIUM_HEXAFLUORIDE.getFluidStack(1000), NUCLIDE.LiFBeF2.getFluidStack(1000),
+ ELEMENT.getInstance().HYDROGEN.getFluidStack(2000) },
+ new ItemStack[] {},
+ new FluidStack[] { NUCLIDE.LiFBeF2UF4.getFluidStack(3000),
+ FluidUtils.getFluidStack("hydrofluoricacid", 2000) },
+ 300 * 10,
+ MaterialUtils.getVoltageForTier(5),
+ 4);
CORE.RA.addFissionFuel(
- FLUORIDES.ZIRCONIUM_TETRAFLUORIDE.getFluidStack(100),
- NUCLIDE.LiFBeF2UF4.getFluidStack(900),
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- NUCLIDE.LiFBeF2ZrF4UF4.getFluidStack(1000),
- null,
- 20 * 60 * 12, // Duration
- MaterialUtils.getVoltageForTier(5));
+ FLUORIDES.ZIRCONIUM_TETRAFLUORIDE.getFluidStack(100),
+ NUCLIDE.LiFBeF2UF4.getFluidStack(900),
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ NUCLIDE.LiFBeF2ZrF4UF4.getFluidStack(1000),
+ null,
+ 20 * 60 * 12, // Duration
+ MaterialUtils.getVoltageForTier(5));
CORE.RA.addFissionFuel(
- FLUORIDES.THORIUM_TETRAFLUORIDE.getFluidStack(100),
- NUCLIDE.LiFBeF2UF4.getFluidStack(900),
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- NUCLIDE.LiFBeF2ThF4UF4.getFluidStack(1000),
- null,
- 20 * 60 * 15, // Duration
- MaterialUtils.getVoltageForTier(5));
+ FLUORIDES.THORIUM_TETRAFLUORIDE.getFluidStack(100),
+ NUCLIDE.LiFBeF2UF4.getFluidStack(900),
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ NUCLIDE.LiFBeF2ThF4UF4.getFluidStack(1000),
+ null,
+ 20 * 60 * 15, // Duration
+ MaterialUtils.getVoltageForTier(5));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_TreeFarm.java b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_TreeFarm.java
index f60846a258..28c8b2a337 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_TreeFarm.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_TreeFarm.java
@@ -47,450 +47,450 @@ public class RecipeLoader_TreeFarm {
private static void generateVanillaTrees() {
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Oak
- new ItemStack(Blocks.sapling, 1, 0),
- new ItemStack(Blocks.log, 1, 0),
- new ItemStack(Blocks.leaves, 1, 0),
- new ItemStack(Items.apple, 1, 0));
+ new ItemStack(Blocks.sapling, 1, 0),
+ new ItemStack(Blocks.log, 1, 0),
+ new ItemStack(Blocks.leaves, 1, 0),
+ new ItemStack(Items.apple, 1, 0));
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Spruce
- new ItemStack(Blocks.sapling, 1, 1),
- new ItemStack(Blocks.log, 2, 1),
- new ItemStack(Blocks.leaves, 1, 1),
- null);
+ new ItemStack(Blocks.sapling, 1, 1),
+ new ItemStack(Blocks.log, 2, 1),
+ new ItemStack(Blocks.leaves, 1, 1),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Birch
- new ItemStack(Blocks.sapling, 1, 2),
- new ItemStack(Blocks.log, 1, 2),
- new ItemStack(Blocks.leaves, 1, 2),
- null);
+ new ItemStack(Blocks.sapling, 1, 2),
+ new ItemStack(Blocks.log, 1, 2),
+ new ItemStack(Blocks.leaves, 1, 2),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Jungle
- new ItemStack(Blocks.sapling, 1, 3),
- new ItemStack(Blocks.log, 2, 3),
- new ItemStack(Blocks.leaves, 1, 3),
- new ItemStack(Items.dye, 1, 3));
+ new ItemStack(Blocks.sapling, 1, 3),
+ new ItemStack(Blocks.log, 2, 3),
+ new ItemStack(Blocks.leaves, 1, 3),
+ new ItemStack(Items.dye, 1, 3));
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Acacia
- new ItemStack(Blocks.sapling, 1, 4),
- new ItemStack(Blocks.log2, 1, 0),
- new ItemStack(Blocks.leaves2, 1, 0),
- null);
+ new ItemStack(Blocks.sapling, 1, 4),
+ new ItemStack(Blocks.log2, 1, 0),
+ new ItemStack(Blocks.leaves2, 1, 0),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Dark Oak
- new ItemStack(Blocks.sapling, 1, 5),
- new ItemStack(Blocks.log2, 1, 1),
- new ItemStack(Blocks.leaves2, 1, 1),
- new ItemStack(Items.apple, 1, 0));
+ new ItemStack(Blocks.sapling, 1, 5),
+ new ItemStack(Blocks.log2, 1, 1),
+ new ItemStack(Blocks.leaves2, 1, 1),
+ new ItemStack(Items.apple, 1, 0));
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Brown Mushroom
- new ItemStack(Blocks.brown_mushroom, 1, 0),
- new ItemStack(Blocks.brown_mushroom_block, 1, 0),
- null,
- null);
+ new ItemStack(Blocks.brown_mushroom, 1, 0),
+ new ItemStack(Blocks.brown_mushroom_block, 1, 0),
+ null,
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Red Mushroom
- new ItemStack(Blocks.red_mushroom, 1, 0),
- new ItemStack(Blocks.red_mushroom_block, 1, 0),
- null,
- null);
+ new ItemStack(Blocks.red_mushroom, 1, 0),
+ new ItemStack(Blocks.red_mushroom_block, 1, 0),
+ null,
+ null);
}
private static void generateIC2Trees() {
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Rubber Tree
- GT_ModHandler.getModItem(Mods.IndustrialCraft2.ID, "blockRubSapling", 1, 0),
- GT_ModHandler.getModItem(Mods.IndustrialCraft2.ID, "blockRubWood", 1, 0),
- GT_ModHandler.getModItem(Mods.IndustrialCraft2.ID, "blockRubLeaves", 1, 0),
- GT_ModHandler.getModItem(Mods.IndustrialCraft2.ID, "itemHarz", 1, 0));
+ GT_ModHandler.getModItem(Mods.IndustrialCraft2.ID, "blockRubSapling", 1, 0),
+ GT_ModHandler.getModItem(Mods.IndustrialCraft2.ID, "blockRubWood", 1, 0),
+ GT_ModHandler.getModItem(Mods.IndustrialCraft2.ID, "blockRubLeaves", 1, 0),
+ GT_ModHandler.getModItem(Mods.IndustrialCraft2.ID, "itemHarz", 1, 0));
}
private static void generateTinkersTrees() {
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Slimy
- GT_ModHandler.getModItem(Mods.TinkerConstruct.ID, "slime.sapling", 1, 0),
- GT_ModHandler.getModItem(Mods.TinkerConstruct.ID, "slime.gel", 1, 1),
- GT_ModHandler.getModItem(Mods.TinkerConstruct.ID, "slime.leaves", 1, 0),
- GT_ModHandler.getModItem(Mods.TinkerConstruct.ID, "strangeFood", 1, 0));
+ GT_ModHandler.getModItem(Mods.TinkerConstruct.ID, "slime.sapling", 1, 0),
+ GT_ModHandler.getModItem(Mods.TinkerConstruct.ID, "slime.gel", 1, 1),
+ GT_ModHandler.getModItem(Mods.TinkerConstruct.ID, "slime.leaves", 1, 0),
+ GT_ModHandler.getModItem(Mods.TinkerConstruct.ID, "strangeFood", 1, 0));
}
private static void generateGTPPTrees() {
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Rainforest Oak
- GT_ModHandler.getModItem(Mods.GTPlusPlus.ID, "blockRainforestOakSapling", 1, 0),
- GT_ModHandler.getModItem(Mods.GTPlusPlus.ID, "blockRainforestOakLog", 3, 0),
- GT_ModHandler.getModItem(Mods.GTPlusPlus.ID, "blockRainforestOakLeaves", 1, 0),
- new ItemStack(Items.apple, 1, 0));
+ GT_ModHandler.getModItem(Mods.GTPlusPlus.ID, "blockRainforestOakSapling", 1, 0),
+ GT_ModHandler.getModItem(Mods.GTPlusPlus.ID, "blockRainforestOakLog", 3, 0),
+ GT_ModHandler.getModItem(Mods.GTPlusPlus.ID, "blockRainforestOakLeaves", 1, 0),
+ new ItemStack(Items.apple, 1, 0));
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Pine
- GT_ModHandler.getModItem(Mods.GTPlusPlus.ID, "blockPineSapling", 1, 0),
- GT_ModHandler.getModItem(Mods.GTPlusPlus.ID, "blockPineLogLog", 1, 0),
- GT_ModHandler.getModItem(Mods.GTPlusPlus.ID, "blockPineLeaves", 1, 0),
- GT_ModHandler.getModItem(Mods.GTPlusPlus.ID, "item.BasicAgrichemItem", 1, 24));
+ GT_ModHandler.getModItem(Mods.GTPlusPlus.ID, "blockPineSapling", 1, 0),
+ GT_ModHandler.getModItem(Mods.GTPlusPlus.ID, "blockPineLogLog", 1, 0),
+ GT_ModHandler.getModItem(Mods.GTPlusPlus.ID, "blockPineLeaves", 1, 0),
+ GT_ModHandler.getModItem(Mods.GTPlusPlus.ID, "item.BasicAgrichemItem", 1, 24));
}
private static void generateTwilightForestTrees() {
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Sickly Twilight Oak
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFSapling", 1, 0),
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFLog", 1, 0),
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFLeaves", 1, 0),
- null);
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFSapling", 1, 0),
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFLog", 1, 0),
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFLeaves", 1, 0),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Canopy Tree
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFSapling", 1, 1),
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFLog", 1, 1),
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFLeaves", 1, 1),
- null);
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFSapling", 1, 1),
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFLog", 1, 1),
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFLeaves", 1, 1),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Twilight Mangrove
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFSapling", 1, 2),
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFLog", 1, 2),
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFLeaves", 1, 2),
- null);
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFSapling", 1, 2),
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFLog", 1, 2),
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFLeaves", 1, 2),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Darkwood
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFSapling", 1, 3),
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFLog", 1, 3),
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.DarkLeaves", 1, 0),
- null);
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFSapling", 1, 3),
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFLog", 1, 3),
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.DarkLeaves", 1, 0),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Robust Twilight Oak
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFSapling", 1, 4),
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFLog", 4, 0),
- // Does not drop more robust saplings normally:
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFSapling", 1, 0),
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFLeaves", 1, 0),
- null);
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFSapling", 1, 4),
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFLog", 4, 0),
+ // Does not drop more robust saplings normally:
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFSapling", 1, 0),
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFLeaves", 1, 0),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Tree of Time
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFSapling", 1, 5),
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFMagicLog", 1, 0),
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFMagicLeaves", 1, 0),
- // No I am not making this drop clocks.
- null);
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFSapling", 1, 5),
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFMagicLog", 1, 0),
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFMagicLeaves", 1, 0),
+ // No I am not making this drop clocks.
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Tree of Transformation
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFSapling", 1, 6),
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFMagicLog", 1, 1),
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFMagicLeaves", 1, 1),
- null);
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFSapling", 1, 6),
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFMagicLog", 1, 1),
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFMagicLeaves", 1, 1),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Sorting Tree
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFSapling", 1, 8),
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFMagicLog", 1, 3),
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFMagicLeaves", 1, 3),
- null);
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFSapling", 1, 8),
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFMagicLog", 1, 3),
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFMagicLeaves", 1, 3),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Rainbow Oak
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFSapling", 1, 9),
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFLog", 1, 0),
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFLeaves", 1, 3),
- null);
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFSapling", 1, 9),
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFLog", 1, 0),
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFLeaves", 1, 3),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Thorns
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFThorns", 1, 0),
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFThorns", 1, 0),
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFThorns", 1, 1),
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFLeaves3", 1, 0),
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFThornRose", 1, 0));
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFThorns", 1, 0),
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFThorns", 1, 0),
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFThorns", 1, 1),
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFLeaves3", 1, 0),
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFThornRose", 1, 0));
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Magic Beans
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "item.magicBeans", 1, 0),
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.HugeStalk", 5, 0),
- GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFLeaves3", 1, 1),
- null);
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "item.magicBeans", 1, 0),
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.HugeStalk", 5, 0),
+ GT_ModHandler.getModItem(Mods.TwilightForest.ID, "tile.TFLeaves3", 1, 1),
+ null);
}
private static void generateGalaxySpaceTrees() {
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Barnarda C
- GT_ModHandler.getModItem(Mods.GalaxySpace.ID, "barnardaCsapling", 1, 1),
- GT_ModHandler.getModItem(Mods.GalaxySpace.ID, "barnardaClog", 1, 0),
- GT_ModHandler.getModItem(Mods.GalaxySpace.ID, "barnardaCleaves", 1, 0),
- null);
+ GT_ModHandler.getModItem(Mods.GalaxySpace.ID, "barnardaCsapling", 1, 1),
+ GT_ModHandler.getModItem(Mods.GalaxySpace.ID, "barnardaClog", 1, 0),
+ GT_ModHandler.getModItem(Mods.GalaxySpace.ID, "barnardaCleaves", 1, 0),
+ null);
}
private static void generateAmunRaTrees() {
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Virilig
- GT_ModHandler.getModItem(Mods.GalacticraftAmunRa.ID, "tile.saplings", 1, 0),
- GT_ModHandler.getModItem(Mods.GalacticraftAmunRa.ID, "tile.log1", 1, 0),
- GT_ModHandler.getModItem(Mods.GalacticraftAmunRa.ID, "tile.null", 1, 0),
- null);
+ GT_ModHandler.getModItem(Mods.GalacticraftAmunRa.ID, "tile.saplings", 1, 0),
+ GT_ModHandler.getModItem(Mods.GalacticraftAmunRa.ID, "tile.log1", 1, 0),
+ GT_ModHandler.getModItem(Mods.GalacticraftAmunRa.ID, "tile.null", 1, 0),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Lumipod
- GT_ModHandler.getModItem(Mods.GalacticraftAmunRa.ID, "tile.saplings", 1, 1),
- GT_ModHandler.getModItem(Mods.GalacticraftAmunRa.ID, "tile.wood1", 1, 0),
- null,
- GT_ModHandler.getModItem(Mods.GalacticraftAmunRa.ID, "tile.wood1", 1, 1));
+ GT_ModHandler.getModItem(Mods.GalacticraftAmunRa.ID, "tile.saplings", 1, 1),
+ GT_ModHandler.getModItem(Mods.GalacticraftAmunRa.ID, "tile.wood1", 1, 0),
+ null,
+ GT_ModHandler.getModItem(Mods.GalacticraftAmunRa.ID, "tile.wood1", 1, 1));
}
private static void generateNaturaTrees() {
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Redwood
- GT_ModHandler.getModItem(Mods.Natura.ID, "florasapling", 1, 0),
- GT_ModHandler.getModItem(Mods.Natura.ID, "redwood", 5, 1),
- GT_ModHandler.getModItem(Mods.Natura.ID, "florasapling", 2, 0),
- GT_ModHandler.getModItem(Mods.Natura.ID, "floraleaves", 2, 0),
- GT_ModHandler.getModItem(Mods.Natura.ID, "redwood", 2, 0));
+ GT_ModHandler.getModItem(Mods.Natura.ID, "florasapling", 1, 0),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "redwood", 5, 1),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "florasapling", 2, 0),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "floraleaves", 2, 0),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "redwood", 2, 0));
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Eucalyptus
- GT_ModHandler.getModItem(Mods.Natura.ID, "florasapling", 1, 1),
- GT_ModHandler.getModItem(Mods.Natura.ID, "tree", 1, 0),
- GT_ModHandler.getModItem(Mods.Natura.ID, "floraleaves", 1, 1),
- null);
+ GT_ModHandler.getModItem(Mods.Natura.ID, "florasapling", 1, 1),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "tree", 1, 0),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "floraleaves", 1, 1),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Hopseed
- GT_ModHandler.getModItem(Mods.Natura.ID, "florasapling", 1, 2),
- GT_ModHandler.getModItem(Mods.Natura.ID, "tree", 1, 3),
- GT_ModHandler.getModItem(Mods.Natura.ID, "floraleaves", 1, 2),
- null);
+ GT_ModHandler.getModItem(Mods.Natura.ID, "florasapling", 1, 2),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "tree", 1, 3),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "floraleaves", 1, 2),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Sakura
- GT_ModHandler.getModItem(Mods.Natura.ID, "florasapling", 1, 3),
- GT_ModHandler.getModItem(Mods.Natura.ID, "tree", 1, 1),
- GT_ModHandler.getModItem(Mods.Natura.ID, "floraleavesnocolor", 1, 0),
- null);
+ GT_ModHandler.getModItem(Mods.Natura.ID, "florasapling", 1, 3),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "tree", 1, 1),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "floraleavesnocolor", 1, 0),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Ghostwood
- GT_ModHandler.getModItem(Mods.Natura.ID, "florasapling", 1, 4),
- GT_ModHandler.getModItem(Mods.Natura.ID, "tree", 1, 2),
- GT_ModHandler.getModItem(Mods.Natura.ID, "floraleavesnocolor", 1, 1),
- null);
+ GT_ModHandler.getModItem(Mods.Natura.ID, "florasapling", 1, 4),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "tree", 1, 2),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "floraleavesnocolor", 1, 1),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Blood
- GT_ModHandler.getModItem(Mods.Natura.ID, "florasapling", 1, 5),
- GT_ModHandler.getModItem(Mods.Natura.ID, "bloodwood", 1, 0),
- GT_ModHandler.getModItem(Mods.Natura.ID, "floraleavesnocolor", 1, 2),
- new ItemStack(Items.redstone, 1, 0));
+ GT_ModHandler.getModItem(Mods.Natura.ID, "florasapling", 1, 5),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "bloodwood", 1, 0),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "floraleavesnocolor", 1, 2),
+ new ItemStack(Items.redstone, 1, 0));
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Darkwood
- GT_ModHandler.getModItem(Mods.Natura.ID, "florasapling", 1, 6),
- GT_ModHandler.getModItem(Mods.Natura.ID, "Dark Tree", 1, 0),
- GT_ModHandler.getModItem(Mods.Natura.ID, "Dark Leaves", 1, 0),
- GT_ModHandler.getModItem(Mods.Natura.ID, "Natura.netherfood", 1, 0));
+ GT_ModHandler.getModItem(Mods.Natura.ID, "florasapling", 1, 6),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "Dark Tree", 1, 0),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "Dark Leaves", 1, 0),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "Natura.netherfood", 1, 0));
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Fusewood
- GT_ModHandler.getModItem(Mods.Natura.ID, "florasapling", 1, 7),
- GT_ModHandler.getModItem(Mods.Natura.ID, "Dark Tree", 1, 1),
- GT_ModHandler.getModItem(Mods.Natura.ID, "Dark Leaves", 1, 3),
- null);
+ GT_ModHandler.getModItem(Mods.Natura.ID, "florasapling", 1, 7),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "Dark Tree", 1, 1),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "Dark Leaves", 1, 3),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Maple
- GT_ModHandler.getModItem(Mods.Natura.ID, "Rare Sapling", 1, 0),
- GT_ModHandler.getModItem(Mods.Natura.ID, "Rare Tree", 1, 0),
- GT_ModHandler.getModItem(Mods.Natura.ID, "Rare Leaves", 1, 0),
- null);
+ GT_ModHandler.getModItem(Mods.Natura.ID, "Rare Sapling", 1, 0),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "Rare Tree", 1, 0),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "Rare Leaves", 1, 0),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Silverbell
- GT_ModHandler.getModItem(Mods.Natura.ID, "Rare Sapling", 1, 1),
- GT_ModHandler.getModItem(Mods.Natura.ID, "Rare Tree", 1, 1),
- GT_ModHandler.getModItem(Mods.Natura.ID, "Rare Leaves", 1, 1),
- null);
+ GT_ModHandler.getModItem(Mods.Natura.ID, "Rare Sapling", 1, 1),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "Rare Tree", 1, 1),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "Rare Leaves", 1, 1),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Amaranth
- GT_ModHandler.getModItem(Mods.Natura.ID, "Rare Sapling", 1, 2),
- GT_ModHandler.getModItem(Mods.Natura.ID, "Rare Tree", 1, 2),
- GT_ModHandler.getModItem(Mods.Natura.ID, "Rare Leaves", 1, 2),
- null);
+ GT_ModHandler.getModItem(Mods.Natura.ID, "Rare Sapling", 1, 2),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "Rare Tree", 1, 2),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "Rare Leaves", 1, 2),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Tigerwood
- GT_ModHandler.getModItem(Mods.Natura.ID, "Rare Sapling", 1, 3),
- GT_ModHandler.getModItem(Mods.Natura.ID, "Rare Tree", 1, 3),
- GT_ModHandler.getModItem(Mods.Natura.ID, "Rare Leaves", 1, 3),
- null);
+ GT_ModHandler.getModItem(Mods.Natura.ID, "Rare Sapling", 1, 3),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "Rare Tree", 1, 3),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "Rare Leaves", 1, 3),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Willow
- GT_ModHandler.getModItem(Mods.Natura.ID, "Rare Sapling", 1, 4),
- GT_ModHandler.getModItem(Mods.Natura.ID, "willow", 1, 0),
- GT_ModHandler.getModItem(Mods.Natura.ID, "floraleavesnocolor", 1, 3),
- null);
+ GT_ModHandler.getModItem(Mods.Natura.ID, "Rare Sapling", 1, 4),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "willow", 1, 0),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "floraleavesnocolor", 1, 3),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Green Glowshroom
- GT_ModHandler.getModItem(Mods.Natura.ID, "Glowshroom", 1, 0),
- GT_ModHandler.getModItem(Mods.Natura.ID, "greenGlowshroom", 1, 0),
- null,
- null);
+ GT_ModHandler.getModItem(Mods.Natura.ID, "Glowshroom", 1, 0),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "greenGlowshroom", 1, 0),
+ null,
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Purple Glowshroom
- GT_ModHandler.getModItem(Mods.Natura.ID, "Glowshroom", 1, 1),
- GT_ModHandler.getModItem(Mods.Natura.ID, "purpleGlowshroom", 1, 0),
- null,
- null);
+ GT_ModHandler.getModItem(Mods.Natura.ID, "Glowshroom", 1, 1),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "purpleGlowshroom", 1, 0),
+ null,
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Blue Glowshroom
- GT_ModHandler.getModItem(Mods.Natura.ID, "Glowshroom", 1, 2),
- GT_ModHandler.getModItem(Mods.Natura.ID, "blueGlowshroom", 1, 0),
- null,
- null);
+ GT_ModHandler.getModItem(Mods.Natura.ID, "Glowshroom", 1, 2),
+ GT_ModHandler.getModItem(Mods.Natura.ID, "blueGlowshroom", 1, 0),
+ null,
+ null);
}
private static void generateBOPTrees() {
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Apple
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 0),
- new ItemStack(Blocks.log, 1, 0),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "appleLeaves", 1, 0),
- new ItemStack(Items.apple, 2, 0));
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 0),
+ new ItemStack(Blocks.log, 1, 0),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "appleLeaves", 1, 0),
+ new ItemStack(Items.apple, 2, 0));
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Yellow Autumn
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 1),
- new ItemStack(Blocks.log, 1, 2),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "leaves1", 1, 0),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "food", 1, 8));
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 1),
+ new ItemStack(Blocks.log, 1, 2),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "leaves1", 1, 0),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "food", 1, 8));
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Bamboo
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 2),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "bamboo", 1, 0),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "leaves1", 1, 9),
- null);
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 2),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "bamboo", 1, 0),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "leaves1", 1, 9),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Magic
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 3),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs2", 1, 1),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "leaves1", 1, 2),
- null);
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 3),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs2", 1, 1),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "leaves1", 1, 2),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Dark
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 4),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs1", 1, 2),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "leaves1", 1, 3),
- null);
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 4),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs1", 1, 2),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "leaves1", 1, 3),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Dying
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 5),
- new ItemStack(Blocks.log, 1, 0),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "leaves2", 1, 0),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "food", 1, 8));
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 5),
+ new ItemStack(Blocks.log, 1, 0),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "leaves2", 1, 0),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "food", 1, 8));
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Fir
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 6),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs1", 1, 3),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "leaves2", 1, 1),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "misc", 1, 13));
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 6),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs1", 1, 3),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "leaves2", 1, 1),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "misc", 1, 13));
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Ethereal
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 7),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs2", 1, 0),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "leaves2", 1, 2),
- null);
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 7),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs2", 1, 0),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "leaves2", 1, 2),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Orange Autumn
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 8),
- new ItemStack(Blocks.log2, 1, 1),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "leaves2", 1, 3),
- null);
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 8),
+ new ItemStack(Blocks.log2, 1, 1),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "leaves2", 1, 3),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Origin
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 9),
- new ItemStack(Blocks.log, 1, 0),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "leaves3", 1, 0),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "food", 1, 8));
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 9),
+ new ItemStack(Blocks.log, 1, 0),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "leaves3", 1, 0),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "food", 1, 8));
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Pink Cherry
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 10),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs1", 1, 1),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "leaves3", 1, 1),
- null);
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 10),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs1", 1, 1),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "leaves3", 1, 1),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Maple
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 11),
- new ItemStack(Blocks.log, 1, 0),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "leaves3", 1, 2),
- null);
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 11),
+ new ItemStack(Blocks.log, 1, 0),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "leaves3", 1, 2),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // White Cherry
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 12),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs1", 1, 1),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "leaves3", 1, 3),
- null);
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 12),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs1", 1, 1),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "leaves3", 1, 3),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Hellbark
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 13),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs4", 1, 1),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "leaves4", 1, 0),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "food", 1, 8));
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 13),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs4", 1, 1),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "leaves4", 1, 0),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "food", 1, 8));
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Jacaranda
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 14),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs4", 1, 2),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "leaves4", 1, 1),
- null);
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 14),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs4", 1, 2),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "leaves4", 1, 1),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Persimmon
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 15),
- new ItemStack(Blocks.log, 1, 0),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "persimmonLeaves", 1, 0),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "food", 2, 8));
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "saplings", 1, 15),
+ new ItemStack(Blocks.log, 1, 0),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "persimmonLeaves", 1, 0),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "food", 2, 8));
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Sacred Oak
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedSaplings", 1, 0),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs1", 4, 0),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedSaplings", 2, 0),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedLeaves1", 2, 0),
- null);
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedSaplings", 1, 0),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs1", 4, 0),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedSaplings", 2, 0),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedLeaves1", 2, 0),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Mangrove
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedSaplings", 1, 1),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs2", 1, 2),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedLeaves1", 1, 1),
- null);
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedSaplings", 1, 1),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs2", 1, 2),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedLeaves1", 1, 1),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Palm
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedSaplings", 1, 2),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs2", 1, 3),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedLeaves1", 1, 2),
- null);
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedSaplings", 1, 2),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs2", 1, 3),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedLeaves1", 1, 2),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Redwood
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedSaplings", 1, 3),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs3", 2, 0),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedLeaves1", 1, 3),
- null);
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedSaplings", 1, 3),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs3", 2, 0),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedLeaves1", 1, 3),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Willow
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedSaplings", 1, 4),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs3", 1, 1),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedLeaves2", 1, 0),
- null);
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedSaplings", 1, 4),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs3", 1, 1),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedLeaves2", 1, 0),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Pine
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedSaplings", 1, 5),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs4", 1, 0),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedLeaves2", 1, 1),
- null);
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedSaplings", 1, 5),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs4", 1, 0),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedLeaves2", 1, 1),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Mahogany
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedSaplings", 1, 6),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs4", 1, 3),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedLeaves2", 1, 2),
- null);
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedSaplings", 1, 6),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs4", 1, 3),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedLeaves2", 1, 2),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Flowering Oak
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedSaplings", 1, 7),
- new ItemStack(Blocks.log, 1, 0),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedLeaves2", 1, 3),
- null);
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedSaplings", 1, 7),
+ new ItemStack(Blocks.log, 1, 0),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "colorizedLeaves2", 1, 3),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Red Flower Stem
- new ItemStack(Blocks.red_flower, 1, 0),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs3", 1, 3),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "petals", 1, 0),
- null);
+ new ItemStack(Blocks.red_flower, 1, 0),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs3", 1, 3),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "petals", 1, 0),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Yellow Flower Stem
- new ItemStack(Blocks.yellow_flower, 1, 0),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs3", 1, 3),
- GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "petals", 1, 1),
- null);
+ new ItemStack(Blocks.yellow_flower, 1, 0),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "logs3", 1, 3),
+ GT_ModHandler.getModItem(Mods.BiomesOPlenty.ID, "petals", 1, 1),
+ null);
}
private static void addPamTree(String name, int meta) {
GregtechMetaTileEntityTreeFarm.registerTreeProducts(
- GT_ModHandler.getModItem(Mods.PamsHarvestCraft.ID, "pam" + name + "Sapling", 1, 0),
- new ItemStack(Blocks.log, 1, meta),
- new ItemStack(Blocks.leaves, 1, meta),
- GT_ModHandler.getModItem(Mods.PamsHarvestCraft.ID, name + "Item", 2, 0));
+ GT_ModHandler.getModItem(Mods.PamsHarvestCraft.ID, "pam" + name + "Sapling", 1, 0),
+ new ItemStack(Blocks.log, 1, meta),
+ new ItemStack(Blocks.leaves, 1, meta),
+ GT_ModHandler.getModItem(Mods.PamsHarvestCraft.ID, name + "Item", 2, 0));
}
private static void generatePamsTrees() {
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Cinnamon
- GT_ModHandler.getModItem(Mods.PamsHarvestCraft.ID, "pamappleSapling", 1, 0),
- new ItemStack(Blocks.log, 1, 0),
- new ItemStack(Blocks.leaves, 1, 0),
- new ItemStack(Items.apple, 2, 0));
+ GT_ModHandler.getModItem(Mods.PamsHarvestCraft.ID, "pamappleSapling", 1, 0),
+ new ItemStack(Blocks.log, 1, 0),
+ new ItemStack(Blocks.leaves, 1, 0),
+ new ItemStack(Items.apple, 2, 0));
addPamTree("almond", 3);
addPamTree("apricot", 3);
@@ -501,10 +501,10 @@ public class RecipeLoader_TreeFarm {
addPamTree("chestnut", 0);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Cinnamon
- GT_ModHandler.getModItem(Mods.PamsHarvestCraft.ID, "pamcinnamonSapling", 1, 0),
- GT_ModHandler.getModItem(Mods.PamsHarvestCraft.ID, "pamCinnamon", 1, 0),
- new ItemStack(Blocks.leaves, 1, 3),
- GT_ModHandler.getModItem(Mods.PamsHarvestCraft.ID, "cinnamonItem", 2, 0));
+ GT_ModHandler.getModItem(Mods.PamsHarvestCraft.ID, "pamcinnamonSapling", 1, 0),
+ GT_ModHandler.getModItem(Mods.PamsHarvestCraft.ID, "pamCinnamon", 1, 0),
+ new ItemStack(Blocks.leaves, 1, 3),
+ GT_ModHandler.getModItem(Mods.PamsHarvestCraft.ID, "cinnamonItem", 2, 0));
addPamTree("coconut", 3);
addPamTree("date", 3);
@@ -516,10 +516,10 @@ public class RecipeLoader_TreeFarm {
addPamTree("lime", 3);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Maple
- GT_ModHandler.getModItem(Mods.PamsHarvestCraft.ID, "pammapleSapling", 1, 0),
- GT_ModHandler.getModItem(Mods.PamsHarvestCraft.ID, "pamMaple", 1, 0),
- new ItemStack(Blocks.leaves, 1, 1),
- GT_ModHandler.getModItem(Mods.PamsHarvestCraft.ID, "maplesyrupItem", 2, 0));
+ GT_ModHandler.getModItem(Mods.PamsHarvestCraft.ID, "pammapleSapling", 1, 0),
+ GT_ModHandler.getModItem(Mods.PamsHarvestCraft.ID, "pamMaple", 1, 0),
+ new ItemStack(Blocks.leaves, 1, 1),
+ GT_ModHandler.getModItem(Mods.PamsHarvestCraft.ID, "maplesyrupItem", 2, 0));
addPamTree("mango", 3);
addPamTree("nutmeg", 0);
@@ -528,10 +528,10 @@ public class RecipeLoader_TreeFarm {
addPamTree("papaya", 3);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Paperbark
- GT_ModHandler.getModItem(Mods.PamsHarvestCraft.ID, "pampaperbarkSapling", 1, 0),
- GT_ModHandler.getModItem(Mods.PamsHarvestCraft.ID, "pamPaperbark", 1, 0),
- new ItemStack(Blocks.leaves, 1, 3),
- new ItemStack(Items.paper, 1, 0));
+ GT_ModHandler.getModItem(Mods.PamsHarvestCraft.ID, "pampaperbarkSapling", 1, 0),
+ GT_ModHandler.getModItem(Mods.PamsHarvestCraft.ID, "pamPaperbark", 1, 0),
+ new ItemStack(Blocks.leaves, 1, 3),
+ new ItemStack(Items.paper, 1, 0));
addPamTree("peach", 3);
addPamTree("pear", 0);
@@ -549,87 +549,87 @@ public class RecipeLoader_TreeFarm {
private static void generatePamsNetherTrees() {
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Ignis Fruit
- GT_ModHandler.getModItem(Mods.PamsHarvestTheNether.ID, "netherSapling", 1, 0),
- GT_ModHandler.getModItem(Mods.PamsHarvestTheNether.ID, "netherLog", 1, 0),
- GT_ModHandler.getModItem(Mods.PamsHarvestTheNether.ID, "netherLeaves", 1, 0),
- GT_ModHandler.getModItem(Mods.PamsHarvestTheNether.ID, "ignisfruitItem", 2, 0));
+ GT_ModHandler.getModItem(Mods.PamsHarvestTheNether.ID, "netherSapling", 1, 0),
+ GT_ModHandler.getModItem(Mods.PamsHarvestTheNether.ID, "netherLog", 1, 0),
+ GT_ModHandler.getModItem(Mods.PamsHarvestTheNether.ID, "netherLeaves", 1, 0),
+ GT_ModHandler.getModItem(Mods.PamsHarvestTheNether.ID, "ignisfruitItem", 2, 0));
}
private static void generateThaumcraftTrees() {
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Greatwood
- GT_ModHandler.getModItem(Mods.Thaumcraft.ID, "blockCustomPlant", 1, 0),
- GT_ModHandler.getModItem(Mods.Thaumcraft.ID, "blockMagicalLog", 2, 0),
- GT_ModHandler.getModItem(Mods.Thaumcraft.ID, "blockMagicalLeaves", 1, 0),
- null);
+ GT_ModHandler.getModItem(Mods.Thaumcraft.ID, "blockCustomPlant", 1, 0),
+ GT_ModHandler.getModItem(Mods.Thaumcraft.ID, "blockMagicalLog", 2, 0),
+ GT_ModHandler.getModItem(Mods.Thaumcraft.ID, "blockMagicalLeaves", 1, 0),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Silverwood
- GT_ModHandler.getModItem(Mods.Thaumcraft.ID, "blockCustomPlant", 1, 1),
- GT_ModHandler.getModItem(Mods.Thaumcraft.ID, "blockMagicalLog", 1, 1),
- GT_ModHandler.getModItem(Mods.Thaumcraft.ID, "blockMagicalLeaves", 1, 1),
- null);
+ GT_ModHandler.getModItem(Mods.Thaumcraft.ID, "blockCustomPlant", 1, 1),
+ GT_ModHandler.getModItem(Mods.Thaumcraft.ID, "blockMagicalLog", 1, 1),
+ GT_ModHandler.getModItem(Mods.Thaumcraft.ID, "blockMagicalLeaves", 1, 1),
+ null);
}
private static void generateThaumicBasesTrees() {
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Golden Oak
- GT_ModHandler.getModItem(Mods.ThaumicBases.ID, "goldenOakSapling", 1, 0),
- new ItemStack(Blocks.log, 1, 0),
- GT_ModHandler.getModItem(Mods.ThaumicBases.ID, "genLeaves", 1, 0),
- GT_ModHandler.getModItem(Mods.Thaumcraft.ID, "blockMagicalLeaves", 1, 0),
- null);
+ GT_ModHandler.getModItem(Mods.ThaumicBases.ID, "goldenOakSapling", 1, 0),
+ new ItemStack(Blocks.log, 1, 0),
+ GT_ModHandler.getModItem(Mods.ThaumicBases.ID, "genLeaves", 1, 0),
+ GT_ModHandler.getModItem(Mods.Thaumcraft.ID, "blockMagicalLeaves", 1, 0),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Peaceful
- GT_ModHandler.getModItem(Mods.ThaumicBases.ID, "goldenOakSapling", 1, 1),
- GT_ModHandler.getModItem(Mods.ThaumicBases.ID, "genLogs", 1, 0),
- GT_ModHandler.getModItem(Mods.ThaumicBases.ID, "genLeaves", 1, 1),
- null);
+ GT_ModHandler.getModItem(Mods.ThaumicBases.ID, "goldenOakSapling", 1, 1),
+ GT_ModHandler.getModItem(Mods.ThaumicBases.ID, "genLogs", 1, 0),
+ GT_ModHandler.getModItem(Mods.ThaumicBases.ID, "genLeaves", 1, 1),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Nether
- GT_ModHandler.getModItem(Mods.ThaumicBases.ID, "goldenOakSapling", 1, 2),
- GT_ModHandler.getModItem(Mods.ThaumicBases.ID, "genLogs", 1, 1),
- GT_ModHandler.getModItem(Mods.ThaumicBases.ID, "genLeaves", 1, 2),
- null);
+ GT_ModHandler.getModItem(Mods.ThaumicBases.ID, "goldenOakSapling", 1, 2),
+ GT_ModHandler.getModItem(Mods.ThaumicBases.ID, "genLogs", 1, 1),
+ GT_ModHandler.getModItem(Mods.ThaumicBases.ID, "genLeaves", 1, 2),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Ender
- GT_ModHandler.getModItem(Mods.ThaumicBases.ID, "goldenOakSapling", 1, 3),
- GT_ModHandler.getModItem(Mods.ThaumicBases.ID, "genLogs", 1, 2),
- GT_ModHandler.getModItem(Mods.ThaumicBases.ID, "genLeaves", 1, 3),
- null);
+ GT_ModHandler.getModItem(Mods.ThaumicBases.ID, "goldenOakSapling", 1, 3),
+ GT_ModHandler.getModItem(Mods.ThaumicBases.ID, "genLogs", 1, 2),
+ GT_ModHandler.getModItem(Mods.ThaumicBases.ID, "genLeaves", 1, 3),
+ null);
}
private static void generateTaintedMagicTrees() {
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Warpwood
- GT_ModHandler.getModItem(Mods.TaintedMagic.ID, "BlockWarpwoodSapling", 1, 0),
- GT_ModHandler.getModItem(Mods.TaintedMagic.ID, "BlockWarpwoodLog", 1, 0),
- GT_ModHandler.getModItem(Mods.TaintedMagic.ID, "BlockWarpwoodLeaves", 1, 0),
- null);
+ GT_ModHandler.getModItem(Mods.TaintedMagic.ID, "BlockWarpwoodSapling", 1, 0),
+ GT_ModHandler.getModItem(Mods.TaintedMagic.ID, "BlockWarpwoodLog", 1, 0),
+ GT_ModHandler.getModItem(Mods.TaintedMagic.ID, "BlockWarpwoodLeaves", 1, 0),
+ null);
}
private static void generateForbiddenMagicTrees() {
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Warpwood
- GT_ModHandler.getModItem(Mods.ForbiddenMagic.ID, "TaintSapling", 1, 0),
- GT_ModHandler.getModItem(Mods.ForbiddenMagic.ID, "TaintLog", 1, 0),
- GT_ModHandler.getModItem(Mods.ForbiddenMagic.ID, "TaintLeaves", 1, 0),
- GT_ModHandler.getModItem(Mods.ForbiddenMagic.ID, "TaintFruit", 1, 0));
+ GT_ModHandler.getModItem(Mods.ForbiddenMagic.ID, "TaintSapling", 1, 0),
+ GT_ModHandler.getModItem(Mods.ForbiddenMagic.ID, "TaintLog", 1, 0),
+ GT_ModHandler.getModItem(Mods.ForbiddenMagic.ID, "TaintLeaves", 1, 0),
+ GT_ModHandler.getModItem(Mods.ForbiddenMagic.ID, "TaintFruit", 1, 0));
}
private static void generateWitcheryTrees() {
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Rowan
- GT_ModHandler.getModItem(Mods.Witchery.ID, "witchsapling", 1, 0),
- GT_ModHandler.getModItem(Mods.Witchery.ID, "witchlog", 1, 0),
- GT_ModHandler.getModItem(Mods.Witchery.ID, "witchleaves", 1, 0),
- GT_ModHandler.getModItem(Mods.Witchery.ID, "ingredient", 1, 63));
+ GT_ModHandler.getModItem(Mods.Witchery.ID, "witchsapling", 1, 0),
+ GT_ModHandler.getModItem(Mods.Witchery.ID, "witchlog", 1, 0),
+ GT_ModHandler.getModItem(Mods.Witchery.ID, "witchleaves", 1, 0),
+ GT_ModHandler.getModItem(Mods.Witchery.ID, "ingredient", 1, 63));
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Alder
- GT_ModHandler.getModItem(Mods.Witchery.ID, "witchsapling", 1, 1),
- GT_ModHandler.getModItem(Mods.Witchery.ID, "witchlog", 1, 1),
- GT_ModHandler.getModItem(Mods.Witchery.ID, "witchleaves", 1, 1),
- null);
+ GT_ModHandler.getModItem(Mods.Witchery.ID, "witchsapling", 1, 1),
+ GT_ModHandler.getModItem(Mods.Witchery.ID, "witchlog", 1, 1),
+ GT_ModHandler.getModItem(Mods.Witchery.ID, "witchleaves", 1, 1),
+ null);
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Hawthorn
- GT_ModHandler.getModItem(Mods.Witchery.ID, "witchsapling", 1, 2),
- GT_ModHandler.getModItem(Mods.Witchery.ID, "witchlog", 1, 2),
- GT_ModHandler.getModItem(Mods.Witchery.ID, "witchleaves", 1, 2),
- null);
+ GT_ModHandler.getModItem(Mods.Witchery.ID, "witchsapling", 1, 2),
+ GT_ModHandler.getModItem(Mods.Witchery.ID, "witchlog", 1, 2),
+ GT_ModHandler.getModItem(Mods.Witchery.ID, "witchleaves", 1, 2),
+ null);
}
/*
@@ -671,11 +671,11 @@ public class RecipeLoader_TreeFarm {
}
GregtechMetaTileEntityTreeFarm.registerForestryTree(
- speciesUID,
- sapling == null ? null : sapling.copy(),
- log == null ? null : log.copy(),
- leaves == null ? null : leaves.copy(),
- fruit == null ? null : fruit.copy());
+ speciesUID,
+ sapling == null ? null : sapling.copy(),
+ log == null ? null : log.copy(),
+ leaves == null ? null : leaves.copy(),
+ fruit == null ? null : fruit.copy());
}
}
@@ -689,7 +689,8 @@ public class RecipeLoader_TreeFarm {
ItemStack log = null;
if (species.getLog() != null) {
- log = species.getLog().getItemStack();
+ log = species.getLog()
+ .getItemStack();
}
ItemStack leaves = new ItemStack(PluginArboriculture.blocks.leaves, 1, 0);
@@ -708,11 +709,11 @@ public class RecipeLoader_TreeFarm {
}
GregtechMetaTileEntityTreeFarm.registerForestryTree(
- speciesUID,
- sapling == null ? null : sapling.copy(),
- log == null ? null : log.copy(),
- leaves == null ? null : leaves.copy(),
- fruit == null ? null : fruit.copy());
+ speciesUID,
+ sapling == null ? null : sapling.copy(),
+ log == null ? null : log.copy(),
+ leaves == null ? null : leaves.copy(),
+ fruit == null ? null : fruit.copy());
}
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java b/src/main/java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java
index d00c7ca1db..6b4a02e984 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java
@@ -31,7 +31,7 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
@Override
public boolean addCokeOvenRecipe(final ItemStack aInput1, final ItemStack aInput2, final FluidStack aFluidInput,
- final FluidStack aFluidOutput, final ItemStack aOutput, int aDuration, final int aEUt) {
+ final FluidStack aFluidOutput, final ItemStack aOutput, int aDuration, final int aEUt) {
if (aInput1 == null || (aOutput == null && aFluidOutput == null)) {
Logger.WARNING("Something was null, returning false");
return false;
@@ -46,229 +46,227 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
GT_Recipe aSpecialRecipe = new GT_Recipe(
- true,
- new ItemStack[] { aInput1, aInput2 },
- new ItemStack[] { aOutput },
- null,
- new int[] {},
- new FluidStack[] { aFluidInput },
- new FluidStack[] { aFluidOutput },
- aDuration,
- Math.max(1, aEUt),
- 0);
+ true,
+ new ItemStack[] { aInput1, aInput2 },
+ new ItemStack[] { aOutput },
+ null,
+ new int[] {},
+ new FluidStack[] { aFluidInput },
+ new FluidStack[] { aFluidOutput },
+ aDuration,
+ Math.max(1, aEUt),
+ 0);
GTPPRecipeMaps.cokeOvenRecipes.add(aSpecialRecipe);
return true;
}
@Override
public boolean addCokeOvenRecipe(int aCircuit, ItemStack aInput2, FluidStack[] aFluidInputs,
- FluidStack[] aFluidOutputs, ItemStack[] aOutputs, int aDuration, int aEUt) {
+ FluidStack[] aFluidOutputs, ItemStack[] aOutputs, int aDuration, int aEUt) {
return addCokeOvenRecipe(
- aInput2,
- CI.getNumberedCircuit(aCircuit),
- aFluidInputs,
- aFluidOutputs,
- aOutputs,
- aDuration,
- aEUt);
+ aInput2,
+ CI.getNumberedCircuit(aCircuit),
+ aFluidInputs,
+ aFluidOutputs,
+ aOutputs,
+ aDuration,
+ aEUt);
}
@Override
public boolean addCokeOvenRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack[] aFluidInputs,
- FluidStack[] aFluidOutputs, ItemStack[] aOutputs, int aDuration, int aEUt) {
+ FluidStack[] aFluidOutputs, ItemStack[] aOutputs, int aDuration, int aEUt) {
GT_Recipe aSpecialRecipe = new GT_Recipe(
- true,
- new ItemStack[] { aInput1, aInput2 },
- aOutputs,
- null,
- new int[] {},
- aFluidInputs,
- aFluidOutputs,
- Math.max(1, aDuration),
- Math.max(1, aEUt),
- 0);
+ true,
+ new ItemStack[] { aInput1, aInput2 },
+ aOutputs,
+ null,
+ new int[] {},
+ aFluidInputs,
+ aFluidOutputs,
+ Math.max(1, aDuration),
+ Math.max(1, aEUt),
+ 0);
GTPPRecipeMaps.cokeOvenRecipes.add(aSpecialRecipe);
return true;
}
@Override
public boolean addMatterFabricatorRecipe(final FluidStack aFluidInput, final FluidStack aFluidOutput,
- final int aDuration, final int aEUt) {
+ final int aDuration, final int aEUt) {
if (aFluidOutput == null) {
Logger.WARNING("Something was null, returning false");
return false;
}
GT_Recipe aRecipe = new GT_Recipe(
- false,
- new ItemStack[] {},
- new ItemStack[] {},
- null,
- new int[] {},
- aFluidInput == null ? new FluidStack[] {} : new FluidStack[] { aFluidInput },
- new FluidStack[] { aFluidOutput },
- aDuration,
- aEUt,
- 0);
+ false,
+ new ItemStack[] {},
+ new ItemStack[] {},
+ null,
+ new int[] {},
+ aFluidInput == null ? new FluidStack[] {} : new FluidStack[] { aFluidInput },
+ new FluidStack[] { aFluidOutput },
+ aDuration,
+ aEUt,
+ 0);
GTPPRecipeMaps.multiblockMassFabricatorRecipes.addRecipe(aRecipe);
return true;
}
@Override
public boolean addDehydratorRecipe(final ItemStack[] aInput, final FluidStack aFluidInput,
- final FluidStack aFluidOutput, final ItemStack[] aOutputItems, final int[] aChances, int aDuration,
- final int aEUt) throws IndexOutOfBoundsException {
+ final FluidStack aFluidOutput, final ItemStack[] aOutputItems, final int[] aChances, int aDuration,
+ final int aEUt) throws IndexOutOfBoundsException {
if (((aInput == null || aInput.length == 0) && (aFluidInput == null))
- || ((aOutputItems == null || aOutputItems.length == 0) && (aFluidOutput == null))) {
+ || ((aOutputItems == null || aOutputItems.length == 0) && (aFluidOutput == null))) {
return false;
}
GT_Recipe aSpecialRecipe = new GT_Recipe(
- true,
- aInput,
- aOutputItems,
- null,
- aChances,
- new FluidStack[] { aFluidInput },
- new FluidStack[] { aFluidOutput },
- Math.max(1, aDuration),
- Math.max(1, aEUt),
- 0);
+ true,
+ aInput,
+ aOutputItems,
+ null,
+ aChances,
+ new FluidStack[] { aFluidInput },
+ new FluidStack[] { aFluidOutput },
+ Math.max(1, aDuration),
+ Math.max(1, aEUt),
+ 0);
GTPPRecipeMaps.chemicalDehydratorRecipes.add(aSpecialRecipe);
return true;
}
@Override
public boolean addBlastSmelterRecipe(final ItemStack[] aInput, FluidStack aOutput, final int aChance, int aDuration,
- final int aEUt) {
+ final int aEUt) {
return addBlastSmelterRecipe(
- aInput,
- (FluidStack) null,
- aOutput,
- new ItemStack[] {},
- new int[] { aChance },
- aDuration,
- aEUt,
- 3700);
+ aInput,
+ (FluidStack) null,
+ aOutput,
+ new ItemStack[] {},
+ new int[] { aChance },
+ aDuration,
+ aEUt,
+ 3700);
}
@Override
public boolean addBlastSmelterRecipe(final ItemStack[] aInput, FluidStack aInputFluid, FluidStack aOutput,
- final int aChance, int aDuration, final int aEUt) {
+ final int aChance, int aDuration, final int aEUt) {
return addBlastSmelterRecipe(
- aInput,
- aInputFluid,
- aOutput,
- new ItemStack[] {},
- new int[] { aChance },
- aDuration,
- aEUt,
- 3700);
+ aInput,
+ aInputFluid,
+ aOutput,
+ new ItemStack[] {},
+ new int[] { aChance },
+ aDuration,
+ aEUt,
+ 3700);
}
@Override
public boolean addBlastSmelterRecipe(final ItemStack[] aInput, FluidStack[] aInputFluid, FluidStack aOutput,
- final int aChance, int aDuration, final int aEUt) {
+ final int aChance, int aDuration, final int aEUt) {
return addBlastSmelterRecipe(
- aInput,
- aInputFluid,
- aOutput,
- new ItemStack[] {},
- new int[] { aChance },
- aDuration,
- aEUt,
- 3700);
+ aInput,
+ aInputFluid,
+ aOutput,
+ new ItemStack[] {},
+ new int[] { aChance },
+ aDuration,
+ aEUt,
+ 3700);
}
@Override
public boolean addBlastSmelterRecipe(final ItemStack[] aInput, FluidStack aInputFluid, FluidStack aOutput,
- ItemStack[] aOutputStack, final int[] aChance, int aDuration, final int aEUt) {
+ ItemStack[] aOutputStack, final int[] aChance, int aDuration, final int aEUt) {
return addBlastSmelterRecipe(aInput, aInputFluid, aOutput, aOutputStack, aChance, aDuration, aEUt, 3700);
}
@Override
public boolean addBlastSmelterRecipe(final ItemStack[] aInput, FluidStack[] aInputFluid, FluidStack aOutput,
- ItemStack[] aOutputStack, final int[] aChance, int aDuration, final int aEUt) {
+ ItemStack[] aOutputStack, final int[] aChance, int aDuration, final int aEUt) {
return addBlastSmelterRecipe(aInput, aInputFluid, aOutput, aOutputStack, aChance, aDuration, aEUt, 3700);
}
@Override
public boolean addBlastSmelterRecipe(ItemStack[] aInput, FluidStack aInputFluid, FluidStack aOutput, int aChance,
- int aDuration, int aEUt, int aSpecialValue) {
+ int aDuration, int aEUt, int aSpecialValue) {
return addBlastSmelterRecipe(
- aInput,
- aInputFluid,
- aOutput,
- new ItemStack[] {},
- new int[] { aChance },
- aDuration,
- aEUt,
- aSpecialValue);
+ aInput,
+ aInputFluid,
+ aOutput,
+ new ItemStack[] {},
+ new int[] { aChance },
+ aDuration,
+ aEUt,
+ aSpecialValue);
}
@Override
public boolean addBlastSmelterRecipe(ItemStack[] aInput, FluidStack[] aInputFluid, FluidStack aOutput, int aChance,
- int aDuration, int aEUt, int aSpecialValue) {
+ int aDuration, int aEUt, int aSpecialValue) {
return addBlastSmelterRecipe(
- aInput,
- aInputFluid,
- aOutput,
- new ItemStack[] {},
- new int[] { aChance },
- aDuration,
- aEUt,
- aSpecialValue);
+ aInput,
+ aInputFluid,
+ aOutput,
+ new ItemStack[] {},
+ new int[] { aChance },
+ aDuration,
+ aEUt,
+ aSpecialValue);
}
@Override
public boolean addBlastSmelterRecipe(ItemStack[] aInput, FluidStack aInputFluid, FluidStack aOutput,
- ItemStack[] aOutputStack, int[] aChance, int aDuration, int aEUt, int aSpecialValue) {
+ ItemStack[] aOutputStack, int[] aChance, int aDuration, int aEUt, int aSpecialValue) {
return addBlastSmelterRecipe(
- aInput,
- aInputFluid,
- aOutput,
- aOutputStack,
- aChance,
- aDuration,
- aEUt,
- aSpecialValue,
- true);
+ aInput,
+ aInputFluid,
+ aOutput,
+ aOutputStack,
+ aChance,
+ aDuration,
+ aEUt,
+ aSpecialValue,
+ true);
}
@Override
public boolean addBlastSmelterRecipe(ItemStack[] aInput, FluidStack[] aInputFluid, FluidStack aOutput,
- ItemStack[] aOutputStack, int[] aChance, int aDuration, int aEUt, int aSpecialValue) {
+ ItemStack[] aOutputStack, int[] aChance, int aDuration, int aEUt, int aSpecialValue) {
return addBlastSmelterRecipe(
- aInput,
- aInputFluid,
- aOutput,
- aOutputStack,
- aChance,
- aDuration,
- aEUt,
- aSpecialValue,
- true);
+ aInput,
+ aInputFluid,
+ aOutput,
+ aOutputStack,
+ aChance,
+ aDuration,
+ aEUt,
+ aSpecialValue,
+ true);
}
@Override
public boolean addBlastSmelterRecipe(ItemStack[] aInput, FluidStack aInputFluid, FluidStack aOutput,
- ItemStack[] aOutputStack, int[] aChance, int aDuration, int aEUt, int aSpecialValue,
- boolean aOptimizeRecipe) {
+ ItemStack[] aOutputStack, int[] aChance, int aDuration, int aEUt, int aSpecialValue, boolean aOptimizeRecipe) {
return addBlastSmelterRecipe(
- aInput,
- new FluidStack[] { aInputFluid },
- aOutput,
- aOutputStack,
- aChance,
- aDuration,
- aEUt,
- aSpecialValue,
- aOptimizeRecipe);
+ aInput,
+ new FluidStack[] { aInputFluid },
+ aOutput,
+ aOutputStack,
+ aChance,
+ aDuration,
+ aEUt,
+ aSpecialValue,
+ aOptimizeRecipe);
}
@Override
public boolean addBlastSmelterRecipe(ItemStack[] aInput, FluidStack[] aInputFluid, FluidStack aOutput,
- ItemStack[] aOutputStack, int[] aChance, int aDuration, int aEUt, int aSpecialValue,
- boolean aOptimizeRecipe) {
+ ItemStack[] aOutputStack, int[] aChance, int aDuration, int aEUt, int aSpecialValue, boolean aOptimizeRecipe) {
if ((aInput == null) || (aOutput == null)) {
Logger.WARNING("Fail - Input or Output was null.");
return false;
@@ -291,22 +289,22 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
GTPPRecipeMaps.alloyBlastSmelterRecipes.addRecipe(
- aOptimizeRecipe,
- aInput,
- aOutputStack,
- null,
- aChance,
- aInputFluid,
- new FluidStack[] { aOutput },
- aDuration,
- Math.max(1, aEUt),
- aSpecialValue);
+ aOptimizeRecipe,
+ aInput,
+ aOutputStack,
+ null,
+ aChance,
+ aInputFluid,
+ new FluidStack[] { aOutput },
+ aDuration,
+ Math.max(1, aEUt),
+ aSpecialValue);
return true;
}
@Override
public boolean addQuantumTransformerRecipe(ItemStack[] aInput, FluidStack[] aFluidInput, FluidStack[] aFluidOutput,
- ItemStack[] aOutputStack, int[] aChances, int aDuration, int aEUt, int aSpecialValue) {
+ ItemStack[] aOutputStack, int[] aChances, int aDuration, int aEUt, int aSpecialValue) {
if (aInput == null) {
aInput = new ItemStack[0];
}
@@ -321,47 +319,47 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
GTPPRecipeMaps.quantumForceTransformerRecipes.add(
- new GT_Recipe(
- false,
- aInput,
- aOutputStack,
- null,
- aChances,
- aFluidInput,
- aFluidOutput,
- aDuration,
- aEUt,
- aSpecialValue));
+ new GT_Recipe(
+ false,
+ aInput,
+ aOutputStack,
+ null,
+ aChances,
+ aFluidInput,
+ aFluidOutput,
+ aDuration,
+ aEUt,
+ aSpecialValue));
return true;
}
@Override
public boolean addFissionFuel(final FluidStack aInput1, final FluidStack aInput2, final FluidStack aInput3,
- final FluidStack aInput4, final FluidStack aInput5, final FluidStack aInput6, final FluidStack aInput7,
- final FluidStack aInput8, final FluidStack aInput9, final FluidStack aOutput1, final FluidStack aOutput2,
- final int aDuration, final int aEUt) {
+ final FluidStack aInput4, final FluidStack aInput5, final FluidStack aInput6, final FluidStack aInput7,
+ final FluidStack aInput8, final FluidStack aInput9, final FluidStack aOutput1, final FluidStack aOutput2,
+ final int aDuration, final int aEUt) {
return addFissionFuel(
- false,
- aInput1,
- aInput2,
- aInput3,
- aInput4,
- aInput5,
- aInput6,
- aInput7,
- aInput8,
- aInput9,
- aOutput1,
- aOutput2,
- aDuration,
- aEUt);
+ false,
+ aInput1,
+ aInput2,
+ aInput3,
+ aInput4,
+ aInput5,
+ aInput6,
+ aInput7,
+ aInput8,
+ aInput9,
+ aOutput1,
+ aOutput2,
+ aDuration,
+ aEUt);
}
@Override
public boolean addFissionFuel(final boolean aOptimise, final FluidStack aInput1, final FluidStack aInput2,
- final FluidStack aInput3, final FluidStack aInput4, final FluidStack aInput5, final FluidStack aInput6,
- final FluidStack aInput7, final FluidStack aInput8, final FluidStack aInput9, final FluidStack aOutput1,
- final FluidStack aOutput2, final int aDuration, final int aEUt) {
+ final FluidStack aInput3, final FluidStack aInput4, final FluidStack aInput5, final FluidStack aInput6,
+ final FluidStack aInput7, final FluidStack aInput8, final FluidStack aInput9, final FluidStack aOutput1,
+ final FluidStack aOutput2, final int aDuration, final int aEUt) {
if ((aInput1 == null) || (aOutput1 == null) || (aDuration < 1) || (aEUt < 1)) {
return false;
}
@@ -369,85 +367,84 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
final FluidStack[] outputs = { aOutput1, aOutput2 };
GTPPRecipeMaps.fissionFuelProcessingRecipes.addRecipe(
- aOptimise,
- new ItemStack[] {},
- new ItemStack[] {},
- null,
- new int[] {},
- inputs,
- outputs,
- aDuration,
- aEUt,
- 0);
+ aOptimise,
+ new ItemStack[] {},
+ new ItemStack[] {},
+ null,
+ new int[] {},
+ inputs,
+ outputs,
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@Override
public boolean addCyclotronRecipe(ItemStack aInputs, FluidStack aFluidInput, ItemStack[] aOutputs,
- FluidStack aFluidOutput, int[] aChances, int aDuration, int aEUt, int aSpecialValue) {
+ FluidStack aFluidOutput, int[] aChances, int aDuration, int aEUt, int aSpecialValue) {
return addCyclotronRecipe(
- new ItemStack[] { aInputs },
- aFluidInput,
- aOutputs,
- aFluidOutput,
- aChances,
- aDuration,
- aEUt,
- aSpecialValue);
+ new ItemStack[] { aInputs },
+ aFluidInput,
+ aOutputs,
+ aFluidOutput,
+ aChances,
+ aDuration,
+ aEUt,
+ aSpecialValue);
}
@Override
public boolean addCyclotronRecipe(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack[] aOutput,
- FluidStack aFluidOutput, int[] aChances, int aDuration, int aEUt, int aSpecialValue) {
+ FluidStack aFluidOutput, int[] aChances, int aDuration, int aEUt, int aSpecialValue) {
if (aOutput == null || aOutput.length < 1 || !ItemUtils.checkForInvalidItems(aOutput)) {
Logger.INFO("Bad output for Cyclotron Recipe.");
return false;
}
GT_Recipe aSpecialRecipe = new GT_Recipe(
- true,
- aInputs,
- aOutput,
- null,
- aChances,
- new FluidStack[] { aFluidInput },
- new FluidStack[] { aFluidOutput },
- Math.max(1, aDuration),
- Math.max(1, aEUt),
- aSpecialValue);
+ true,
+ aInputs,
+ aOutput,
+ null,
+ aChances,
+ new FluidStack[] { aFluidInput },
+ new FluidStack[] { aFluidOutput },
+ Math.max(1, aDuration),
+ Math.max(1, aEUt),
+ aSpecialValue);
GTPPRecipeMaps.cyclotronRecipes.add(aSpecialRecipe);
return true;
}
@Override
public boolean addMixerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aInput3, ItemStack aInput4,
- FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3,
- ItemStack aOutput4, int aDuration, int aEUt) {
+ 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;
}
GT_Recipe aSpecialRecipe = new GT_Recipe(
- true,
- new ItemStack[] { aInput1, aInput2, aInput3, aInput4 },
- new ItemStack[] { aOutput1, aOutput2, aOutput3, aOutput4 },
- null,
- new int[] {},
- new FluidStack[] { aFluidInput },
- new FluidStack[] { aFluidOutput },
- Math.max(1, aDuration),
- Math.max(1, aEUt),
- 0);
+ true,
+ new ItemStack[] { aInput1, aInput2, aInput3, aInput4 },
+ new ItemStack[] { aOutput1, aOutput2, aOutput3, aOutput4 },
+ null,
+ new int[] {},
+ new FluidStack[] { aFluidInput },
+ new FluidStack[] { aFluidOutput },
+ Math.max(1, aDuration),
+ Math.max(1, aEUt),
+ 0);
RecipeMaps.mixerRecipes.add(aSpecialRecipe);
return true;
}
@Override
public boolean addMultiblockCentrifugeRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs,
- FluidStack[] aFluidOutputs, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUtick,
- int aSpecial) {
+ FluidStack[] aFluidOutputs, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUtick, int aSpecial) {
if (areItemsAndFluidsBothNull(aInputs, aFluidInputs) || areItemsAndFluidsBothNull(aOutputs, aFluidOutputs)
- || aEUtick <= 0) {
+ || aEUtick <= 0) {
return false;
}
@@ -461,26 +458,25 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
GT_Recipe aRecipe = new GT_Recipe(
- false,
- aInputs,
- aOutputs,
- null,
- aChances,
- aFluidInputs,
- aFluidOutputs,
- aDuration,
- aEUtick,
- aSpecial);
+ false,
+ aInputs,
+ aOutputs,
+ null,
+ aChances,
+ aFluidInputs,
+ aFluidOutputs,
+ aDuration,
+ aEUtick,
+ aSpecial);
GTPPRecipeMaps.centrifugeNonCellRecipes.addRecipe(aRecipe);
return true;
}
@Override
public boolean addMultiblockElectrolyzerRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs,
- FluidStack[] aFluidOutputs, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUtick,
- int aSpecial) {
+ FluidStack[] aFluidOutputs, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUtick, int aSpecial) {
if (areItemsAndFluidsBothNull(aInputs, aFluidInputs) || areItemsAndFluidsBothNull(aOutputs, aFluidOutputs)
- || aEUtick <= 0) {
+ || aEUtick <= 0) {
return false;
}
if (!ItemUtils.checkForInvalidItems(aInputs, aOutputs)) {
@@ -493,25 +489,25 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
GT_Recipe aRecipe = new GT_Recipe(
- false,
- aInputs,
- aOutputs,
- null,
- aChances,
- aFluidInputs,
- aFluidOutputs,
- aDuration,
- aEUtick,
- aSpecial);
+ false,
+ aInputs,
+ aOutputs,
+ null,
+ aChances,
+ aFluidInputs,
+ aFluidOutputs,
+ aDuration,
+ aEUtick,
+ aSpecial);
GTPPRecipeMaps.electrolyzerNonCellRecipes.addRecipe(aRecipe);
return true;
}
@Override
public boolean addAdvancedFreezerRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs,
- ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUtick, int aSpecial) {
+ ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUtick, int aSpecial) {
if (areItemsAndFluidsBothNull(aInputs, aFluidInputs) || areItemsAndFluidsBothNull(aOutputs, aFluidOutputs)
- || aEUtick <= 0) {
+ || aEUtick <= 0) {
return false;
}
@@ -525,24 +521,24 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
GT_Recipe aRecipe = new GT_Recipe(
- false,
- aInputs,
- aOutputs,
- null,
- aChances,
- aFluidInputs,
- aFluidOutputs,
- aDuration,
- aEUtick,
- aSpecial);
+ false,
+ aInputs,
+ aOutputs,
+ null,
+ aChances,
+ aFluidInputs,
+ aFluidOutputs,
+ aDuration,
+ aEUtick,
+ aSpecial);
GTPPRecipeMaps.advancedFreezerRecipes.addRecipe(aRecipe);
return false;
}
public boolean addMultiblockMixerRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs,
- ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUtick, int aSpecial) {
+ ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUtick, int aSpecial) {
if (areItemsAndFluidsBothNull(aInputs, aFluidInputs) || areItemsAndFluidsBothNull(aOutputs, aFluidOutputs)
- || aEUtick <= 0) {
+ || aEUtick <= 0) {
return false;
}
if (!ItemUtils.checkForInvalidItems(aInputs, aOutputs)) {
@@ -555,25 +551,24 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
GT_Recipe aRecipe = new GT_Recipe(
- false,
- aInputs,
- aOutputs,
- null,
- aChances,
- aFluidInputs,
- aFluidOutputs,
- aDuration,
- aEUtick,
- aSpecial);
+ false,
+ aInputs,
+ aOutputs,
+ null,
+ aChances,
+ aFluidInputs,
+ aFluidOutputs,
+ aDuration,
+ aEUtick,
+ aSpecial);
GTPPRecipeMaps.mixerNonCellRecipes.addRecipe(aRecipe);
return true;
}
public boolean addMultiblockChemicalDehydratorRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs,
- FluidStack[] aFluidOutputs, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUtick,
- int aSpecial) {
+ FluidStack[] aFluidOutputs, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUtick, int aSpecial) {
if (areItemsAndFluidsBothNull(aInputs, aFluidInputs) || areItemsAndFluidsBothNull(aOutputs, aFluidOutputs)
- || aEUtick <= 0) {
+ || aEUtick <= 0) {
return false;
}
if (!ItemUtils.checkForInvalidItems(aInputs, aOutputs)) {
@@ -586,80 +581,80 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
GT_Recipe aRecipe = new GT_Recipe(
- false,
- aInputs,
- aOutputs,
- null,
- aChances,
- aFluidInputs,
- aFluidOutputs,
- aDuration,
- aEUtick,
- aSpecial);
+ false,
+ aInputs,
+ aOutputs,
+ null,
+ aChances,
+ aFluidInputs,
+ aFluidOutputs,
+ aDuration,
+ aEUtick,
+ aSpecial);
GTPPRecipeMaps.chemicalDehydratorNonCellRecipes.addRecipe(aRecipe);
return true;
}
@Override
public boolean addSixSlotAssemblingRecipe(ItemStack[] aInputs, FluidStack aInputFluid, ItemStack aOutput1,
- int aDuration, int aEUt) {
+ int aDuration, int aEUt) {
return RA.addAssemblerRecipe(aInputs, aInputFluid, aOutput1, aDuration, aEUt);
}
@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) {
return RA.addAssemblylineRecipe(aResearchItem, aResearchTime, aInputs, aFluidInputs, aOutput, aDuration, aEUt);
}
@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) {
return RA.addAssemblylineRecipe(aResearchItem, aResearchTime, aInputs, aFluidInputs, aOutput, aDuration, aEUt);
}
@Override
public boolean addChemicalRecipe(ItemStack input1, ItemStack input2, FluidStack inputFluid, FluidStack outputFluid,
- ItemStack output, int time, int eu) {
+ ItemStack output, int time, int eu) {
return addChemicalRecipe(input1, input2, inputFluid, outputFluid, output, null, time, eu);
}
@Override
public boolean addChemicalRecipe(ItemStack input1, ItemStack input2, FluidStack inputFluid, FluidStack outputFluid,
- ItemStack output, Object object, int time, int eu) {
+ ItemStack output, Object object, int time, int eu) {
return RA.addChemicalRecipe(input1, input2, inputFluid, outputFluid, output, time, eu);
}
@Override
public boolean addChemicalRecipe(ItemStack input1, ItemStack input2, FluidStack inputFluid, FluidStack outputFluid,
- ItemStack output, ItemStack output2, int time) {
+ ItemStack output, ItemStack output2, int time) {
return RA.addChemicalRecipe(input1, input2, inputFluid, outputFluid, output, output2, time);
}
@Override
public boolean addChemicalRecipe(ItemStack input1, ItemStack input2, int aCircuit, FluidStack inputFluid,
- FluidStack outputFluid, ItemStack output, ItemStack output2, int time, int eu) {
+ FluidStack outputFluid, ItemStack output, ItemStack output2, int time, int eu) {
if (aCircuit < 0 || aCircuit > 24) {
aCircuit = 22;
}
GT_Recipe aSpecialRecipe = new GT_Recipe(
- false,
- new ItemStack[] { input1, input2 },
- new ItemStack[] { output, output2 },
- CI.getNumberedCircuit(aCircuit),
- new int[] {},
- new FluidStack[] { inputFluid },
- new FluidStack[] { outputFluid },
- time,
- eu,
- 0);
+ false,
+ new ItemStack[] { input1, input2 },
+ new ItemStack[] { output, output2 },
+ CI.getNumberedCircuit(aCircuit),
+ new int[] {},
+ new FluidStack[] { inputFluid },
+ new FluidStack[] { outputFluid },
+ time,
+ eu,
+ 0);
RecipeMaps.chemicalReactorRecipes.add(aSpecialRecipe);
return true;
}
@Override
public boolean addMultiblockChemicalRecipe(ItemStack[] itemStacks, FluidStack[] fluidStacks,
- FluidStack[] fluidStacks2, ItemStack[] outputs, int time, int eu) {
+ FluidStack[] fluidStacks2, ItemStack[] outputs, int time, int eu) {
return RA.addMultiblockChemicalRecipe(itemStacks, fluidStacks, fluidStacks2, outputs, time, eu);
}
@@ -694,40 +689,40 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
return false;
}
RecipeMaps.compressorRecipes.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 addBrewingRecipe(int aCircuit, FluidStack aInput, FluidStack aOutput, int aTime, int aEu,
- boolean aHidden) {
+ boolean aHidden) {
return addBrewingRecipe(CI.getNumberedCircuit(aCircuit), aInput, aOutput, aTime, aEu, aHidden);
}
@Override
public boolean addBrewingRecipe(ItemStack aIngredient, FluidStack aInput, FluidStack aOutput, int aTime, int aEu,
- boolean aHidden) {
+ boolean aHidden) {
if (aIngredient == null || aInput == null || aOutput == null) {
return false;
}
GT_Recipe tRecipe = RecipeMaps.brewingRecipes.addRecipe(
- false,
- new ItemStack[] { aIngredient },
- null,
- null,
- new FluidStack[] { aInput },
- new FluidStack[] { aOutput },
- aTime,
- aEu,
- 0);
+ false,
+ new ItemStack[] { aIngredient },
+ null,
+ null,
+ new FluidStack[] { aInput },
+ new FluidStack[] { aOutput },
+ aTime,
+ aEu,
+ 0);
if (aHidden && tRecipe != null) {
tRecipe.mHidden = true;
}
@@ -749,15 +744,9 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
@Override
public boolean addFluidExtractionRecipe(ItemStack aEmpty, ItemStack aRemains, FluidStack aFluid, int aDuration,
- int aEU) {
- return RA.addFluidSmelterRecipe(
- GT_Utility.copyAmount(1, aEmpty),
- aRemains,
- aFluid,
- 10000,
- aDuration,
- aEU,
- false);
+ int aEU) {
+ return RA
+ .addFluidSmelterRecipe(GT_Utility.copyAmount(1, aEmpty), aRemains, aFluid, 10000, aDuration, aEU, false);
}
@Override
@@ -767,13 +756,13 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
@Override
public boolean addFluidCannerRecipe(ItemStack aContainer, ItemStack aFullContainer, FluidStack rFluidIn,
- FluidStack rFluidOut) {
+ FluidStack rFluidOut) {
return MaterialGenerator.addFluidCannerRecipe(aContainer, aFullContainer, rFluidIn, rFluidOut);
}
@Override
public boolean addFluidCannerRecipe(ItemStack aFullContainer, ItemStack container, FluidStack rFluidIn,
- FluidStack rFluidOut, int aTime, int aEu) {
+ FluidStack rFluidOut, int aTime, int aEu) {
return MaterialGenerator.addFluidCannerRecipe(container, aFullContainer, rFluidIn, rFluidOut, aTime, aEu);
}
@@ -789,16 +778,16 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
@Override
public boolean addVacuumFurnaceRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput,
- FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt, int aLevel) {
+ FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt, int aLevel) {
if (aInput1 != null && aOutput1 != null) {
return addVacuumFurnaceRecipe(
- new ItemStack[] { aInput1, aInput2 },
- new FluidStack[] { aFluidInput },
- new ItemStack[] { aOutput1, aOutput2 },
- new FluidStack[] { aFluidOutput },
- aDuration,
- aEUt,
- aLevel);
+ new ItemStack[] { aInput1, aInput2 },
+ new FluidStack[] { aFluidInput },
+ new ItemStack[] { aOutput1, aOutput2 },
+ new FluidStack[] { aFluidOutput },
+ aDuration,
+ aEUt,
+ aLevel);
} else {
return false;
}
@@ -806,19 +795,19 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
@Override
public boolean addVacuumFurnaceRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs, ItemStack[] aOutputs,
- FluidStack[] aFluidOutputs, int aDuration, int aEUt, int aLevel) {
+ FluidStack[] aFluidOutputs, int aDuration, int aEUt, int aLevel) {
if (aInputs != null && aOutputs != null) {
GTPPRecipeMaps.vacuumFurnaceRecipes.addRecipe(
- false,
- aInputs,
- aOutputs,
- null,
- new int[] {},
- aFluidInputs,
- aFluidOutputs,
- aDuration,
- aEUt,
- aLevel);
+ false,
+ aInputs,
+ aOutputs,
+ null,
+ new int[] {},
+ aFluidInputs,
+ aFluidOutputs,
+ aDuration,
+ aEUt,
+ aLevel);
return true;
} else {
return false;
@@ -829,29 +818,29 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
public boolean addUvLaserRecipe(ItemStack aInput1, ItemStack aOutput, int time, long eu) {
// Generate Special Laser Recipe
GT_Recipe u = new GT_Recipe(
- false,
- new ItemStack[] { aInput1, GregtechItemList.Laser_Lens_WoodsGlass.get(0), },
- new ItemStack[] { aOutput },
- null,
- new int[] { 10000 },
- new FluidStack[] {},
- new FluidStack[] {},
- time,
- (int) eu,
- 0);
+ false,
+ new ItemStack[] { aInput1, GregtechItemList.Laser_Lens_WoodsGlass.get(0), },
+ new ItemStack[] { aOutput },
+ null,
+ new int[] { 10000 },
+ new FluidStack[] {},
+ new FluidStack[] {},
+ time,
+ (int) eu,
+ 0);
RecipeMaps.laserEngraverRecipes.add(u);
return true;
}
@Override
public boolean addChemicalPlantRecipe(ItemStack[] aInputs, FluidStack[] aInputFluids, ItemStack[] aOutputs,
- FluidStack[] aFluidOutputs, int time, long eu, int aTier) {
+ FluidStack[] aFluidOutputs, int time, long eu, int aTier) {
return addChemicalPlantRecipe(aInputs, aInputFluids, aOutputs, aFluidOutputs, new int[] {}, time, eu, aTier);
}
@Override
public boolean addChemicalPlantRecipe(ItemStack[] aInputs, FluidStack[] aInputFluids, ItemStack[] aOutputs,
- FluidStack[] aFluidOutputs, int[] aChances, int time, long eu, int aTier) {
+ FluidStack[] aFluidOutputs, int[] aChances, int time, long eu, int aTier) {
if (aInputs.length > 4 || aInputFluids.length > 4 || aOutputs.length > 6 || aFluidOutputs.length > 3) {
Logger.INFO("Inputs: " + ItemUtils.getArrayStackNames(aInputs));
Logger.INFO("Fluid Inputs: " + ItemUtils.getArrayStackNames(aInputFluids));
@@ -860,34 +849,25 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
CORE.crash();
}
- GTPPRecipeMaps.chemicalPlantRecipes.addRecipe(
- false,
- aInputs,
- aOutputs,
- null,
- aChances,
- aInputFluids,
- aFluidOutputs,
- time,
- (int) eu,
- aTier);
+ GTPPRecipeMaps.chemicalPlantRecipes
+ .addRecipe(false, aInputs, aOutputs, null, aChances, aInputFluids, aFluidOutputs, time, (int) eu, aTier);
return true;
}
@Override
public boolean addBlastRecipe(ItemStack[] aInputs, FluidStack[] aInputFluids, ItemStack[] aOutputs,
- FluidStack[] aFluidOutputs, int time, long eu, int aHeat) {
+ FluidStack[] aFluidOutputs, int time, long eu, int aHeat) {
GT_Recipe aSpecialRecipe = new GT_Recipe(
- false,
- aInputs,
- aOutputs,
- null,
- new int[] {},
- aInputFluids,
- aFluidOutputs,
- time,
- (int) eu,
- aHeat);
+ false,
+ aInputs,
+ aOutputs,
+ null,
+ new int[] {},
+ aInputFluids,
+ aFluidOutputs,
+ time,
+ (int) eu,
+ aHeat);
RecipeMaps.blastFurnaceRecipes.add(aSpecialRecipe);
return true;
@@ -895,27 +875,27 @@ public class GregtechRecipeAdder implements IGregtech_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) {
return RA.addPyrolyseRecipe(aInput, aFluidInput, intCircuit, aOutput, aFluidOutput, aDuration, aEUt);
}
@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) {
if (aDuration <= 0) {
return false;
} else {
GT_Recipe tRecipe = RecipeMaps.distilleryRecipes.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;
}
@@ -935,16 +915,16 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
public boolean addExtractorRecipe(ItemStack aInput, ItemStack aOutput, int aChance, int aDuration, int aEUt) {
if (aInput != null && aOutput != null) {
GT_Recipe aRecipe = new GT_Recipe(
- false,
- new ItemStack[] { aInput.copy() },
- new ItemStack[] { aOutput.copy() },
- null,
- new int[] { aChance },
- null,
- null,
- aDuration,
- aEUt,
- 0);
+ false,
+ new ItemStack[] { aInput.copy() },
+ new ItemStack[] { aOutput.copy() },
+ null,
+ new int[] { aChance },
+ null,
+ null,
+ aDuration,
+ aEUt,
+ 0);
RecipeMaps.extractorRecipes.add(aRecipe);
return true;
} else {
@@ -954,7 +934,7 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
@Override
public boolean addPulverisationRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2,
- ItemStack aOutput3) {
+ ItemStack aOutput3) {
aOutput1 = GT_OreDictUnificator.get(true, aOutput1);
aOutput2 = GT_OreDictUnificator.get(true, aOutput2);
aOutput3 = GT_OreDictUnificator.get(true, aOutput3);
@@ -966,11 +946,11 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
GT_Utility.addSimpleIC2MachineRecipe(aInput, GT_ModHandler.getMaceratorRecipeList(), null, aOutput1);
GT_Values.RA.addPulveriserRecipe(
- aInput,
- new ItemStack[] { aOutput1, aOutput2, aOutput3 },
- new int[] { 10000, 10000, 10000 },
- 400,
- 2);
+ aInput,
+ new ItemStack[] { aOutput1, aOutput2, aOutput3 },
+ new int[] { 10000, 10000, 10000 },
+ 400,
+ 2);
}
return true;
}
@@ -1000,10 +980,10 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
ItemStack[] aInputsOre2 = new ItemStack[] { CI.getNumberedCircuit(11), aOreStack, aMillingBall_Soapstone };
ItemStack[] aInputsCrushed1 = new ItemStack[] { CI.getNumberedCircuit(10), aCrushedStack,
- aMillingBall_Alumina };
+ aMillingBall_Alumina };
ItemStack[] aInputsCrushed2 = new ItemStack[] { CI.getNumberedCircuit(11), aCrushedStack,
- aMillingBall_Soapstone };
+ aMillingBall_Soapstone };
// Outputs
ItemStack[] aOutputsOre1 = new ItemStack[] { aMilledStackOres1 };
@@ -1016,21 +996,21 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
ItemStack[][] aInputArray = new ItemStack[][] { aInputsOre1, aInputsOre2, aInputsCrushed1, aInputsCrushed2 };
ItemStack[][] aOutputArray = new ItemStack[][] { aOutputsOre1, aOutputsOre2, aOutputsCrushed1,
- aOutputsCrushed2 };
+ aOutputsCrushed2 };
int[] aTime = new int[] { 2400, 3000, 1200, 1500 };
for (int i = 0; i < 4; i++) {
GT_Recipe aOreRecipe = new GT_Recipe(
- false,
- aInputArray[i],
- aOutputArray[i],
- null,
- new int[] {},
- null,
- null,
- aTime[i],
- aEU,
- 0);
+ false,
+ aInputArray[i],
+ aOutputArray[i],
+ null,
+ new int[] {},
+ null,
+ null,
+ aTime[i],
+ aEU,
+ 0);
GTPPRecipeMaps.millingRecipes.add(aOreRecipe);
}
return true;
@@ -1038,49 +1018,48 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
@Override
public boolean addFlotationRecipe(Materials aMat, ItemStack aXanthate, FluidStack[] aInputFluids,
- FluidStack[] aOutputFluids, int aTime, int aEU) {
+ FluidStack[] aOutputFluids, int aTime, int aEU) {
return addFlotationRecipe(
- MaterialUtils.generateMaterialFromGtENUM(aMat),
- aXanthate,
- aInputFluids,
- aOutputFluids,
- aTime,
- aEU);
+ MaterialUtils.generateMaterialFromGtENUM(aMat),
+ aXanthate,
+ aInputFluids,
+ aOutputFluids,
+ aTime,
+ aEU);
}
@Override
public boolean addFlotationRecipe(Material aMat, ItemStack aXanthate, FluidStack[] aInputFluids,
- FluidStack[] aOutputFluids, int aTime, int aEU) {
+ FluidStack[] aOutputFluids, int aTime, int aEU) {
FlotationRecipeHandler.registerOreType(aMat);
GT_Recipe aRecipe = new GT_Recipe(
- false,
- new ItemStack[] { ItemUtils.getSimpleStack(aXanthate, 32), aMat.getMilled(64), aMat.getMilled(64),
- aMat.getMilled(64), aMat.getMilled(64), },
- new ItemStack[] {},
- null,
- new int[] {},
- aInputFluids,
- aOutputFluids,
- aTime,
- aEU,
- 0);
+ false,
+ new ItemStack[] { ItemUtils.getSimpleStack(aXanthate, 32), aMat.getMilled(64), aMat.getMilled(64),
+ aMat.getMilled(64), aMat.getMilled(64), },
+ new ItemStack[] {},
+ null,
+ new int[] {},
+ aInputFluids,
+ aOutputFluids,
+ aTime,
+ aEU,
+ 0);
GTPPRecipeMaps.flotationCellRecipes.add(aRecipe);
return true;
}
@Override
public boolean addpackagerRecipe(ItemStack aRecipeType, ItemStack aSmallDust, ItemStack aTinyDust,
- ItemStack aOutputStack1) {
+ ItemStack aOutputStack1) {
AutoMap<Boolean> aResults = new AutoMap<>();
// Dust 1
aResults.put(
- GT_Values.RA
- .addBoxingRecipe(GT_Utility.copyAmount(4L, aSmallDust), aRecipeType, aOutputStack1, 100, 4));
+ GT_Values.RA.addBoxingRecipe(GT_Utility.copyAmount(4L, aSmallDust), aRecipeType, aOutputStack1, 100, 4));
// Dust 2
aResults.put(
- GT_Values.RA.addBoxingRecipe(GT_Utility.copyAmount(9L, aTinyDust), aRecipeType, aOutputStack1, 100, 4));
+ GT_Values.RA.addBoxingRecipe(GT_Utility.copyAmount(9L, aTinyDust), aRecipeType, aOutputStack1, 100, 4));
for (boolean b : aResults) {
if (!b) {
return false;
@@ -1092,32 +1071,32 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
@Override
public boolean addFuelForRTG(ItemStack aFuelPellet, int aFuelDays, int aVoltage) {
GTPPRecipeMaps.rtgFuels.addRecipe(
- true,
- new ItemStack[] { aFuelPellet },
- new ItemStack[] {},
- null,
- null,
- null,
- 0,
- aVoltage,
- aFuelDays);
+ true,
+ new ItemStack[] { aFuelPellet },
+ new ItemStack[] {},
+ null,
+ null,
+ null,
+ 0,
+ aVoltage,
+ aFuelDays);
return true;
}
@Override
public boolean addColdTrapRecipe(int aCircuit, ItemStack aInput, FluidStack aFluidInput, ItemStack[] aOutputs,
- int[] aChances, FluidStack aFluidOutput, int aTime, int aEU) {
+ int[] aChances, FluidStack aFluidOutput, int aTime, int aEU) {
GT_Recipe aRecipe = new GT_Recipe(
- false,
- new ItemStack[] { CI.getNumberedAdvancedCircuit(aCircuit), aInput },
- aOutputs,
- null,
- aChances,
- new FluidStack[] { aFluidInput },
- new FluidStack[] { aFluidOutput },
- aTime,
- aEU,
- 0);
+ false,
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(aCircuit), aInput },
+ aOutputs,
+ null,
+ aChances,
+ new FluidStack[] { aFluidInput },
+ new FluidStack[] { aFluidOutput },
+ aTime,
+ aEU,
+ 0);
GTPPRecipeMaps.coldTrapRecipes.add(aRecipe);
return true;
@@ -1125,28 +1104,27 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
@Override
public boolean addReactorProcessingUnitRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput,
- ItemStack[] aOutputs, int[] aChances, FluidStack aFluidOutput, int aTime, int aEU) {
+ ItemStack[] aOutputs, int[] aChances, FluidStack aFluidOutput, int aTime, int aEU) {
GT_Recipe aRecipe = new GT_Recipe(
- false,
- new ItemStack[] { aInput1, aInput2 },
- aOutputs,
- null,
- aChances,
- new FluidStack[] { aFluidInput },
- new FluidStack[] { aFluidOutput },
- aTime,
- aEU,
- 0);
+ false,
+ new ItemStack[] { aInput1, aInput2 },
+ aOutputs,
+ null,
+ aChances,
+ new FluidStack[] { aFluidInput },
+ new FluidStack[] { aFluidOutput },
+ aTime,
+ aEU,
+ 0);
GTPPRecipeMaps.reactorProcessingUnitRecipes.add(aRecipe);
return true;
}
public boolean addNuclearSaltProcessingPlantRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs,
- FluidStack[] aFluidOutputs, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUtick,
- int aSpecial) {
+ FluidStack[] aFluidOutputs, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUtick, int aSpecial) {
if (areItemsAndFluidsBothNull(aInputs, aFluidInputs) || areItemsAndFluidsBothNull(aOutputs, aFluidOutputs)
- || aEUtick <= 0) {
+ || aEUtick <= 0) {
return false;
}
if (!ItemUtils.checkForInvalidItems(aInputs, aOutputs)) {
@@ -1159,36 +1137,36 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
GT_Recipe aRecipe = new GT_Recipe(
- false,
- aInputs,
- aOutputs,
- null,
- aChances,
- aFluidInputs,
- aFluidOutputs,
- aDuration,
- aEUtick,
- aSpecial);
+ false,
+ aInputs,
+ aOutputs,
+ null,
+ aChances,
+ aFluidInputs,
+ aFluidOutputs,
+ aDuration,
+ aEUtick,
+ aSpecial);
GTPPRecipeMaps.nuclearSaltProcessingPlantRecipes.addRecipe(aRecipe);
return true;
}
@Override
public boolean addFluidHeaterRecipe(ItemStack aInput, FluidStack aFluidInput, FluidStack aOutput, int aDuration,
- int aEUt) {
+ int aEUt) {
if ((aInput == null && aFluidInput == null) || aOutput == null) {
return false;
}
RecipeMaps.fluidHeaterRecipes.addRecipe(
- true,
- new ItemStack[] { aInput },
- null,
- null,
- new FluidStack[] { aFluidInput },
- new FluidStack[] { aOutput },
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aInput },
+ null,
+ null,
+ new FluidStack[] { aFluidInput },
+ new FluidStack[] { aOutput },
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@@ -1198,16 +1176,16 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
return false;
}
GT_Recipe aRecipe = new GT_Recipe(
- false,
- new ItemStack[] { aInput },
- new ItemStack[] { aOutput },
- null,
- new int[] { 10000 },
- new FluidStack[] {},
- new FluidStack[] {},
- aDuration,
- aEUt,
- 0);
+ false,
+ new ItemStack[] { aInput },
+ new ItemStack[] { aOutput },
+ null,
+ new int[] { 10000 },
+ new FluidStack[] {},
+ new FluidStack[] {},
+ aDuration,
+ aEUt,
+ 0);
RecipeMaps.vacuumFreezerRecipes.add(aRecipe);
return true;
@@ -1219,16 +1197,16 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
return false;
}
GT_Recipe aRecipe = new GT_Recipe(
- false,
- new ItemStack[] { aInput },
- new ItemStack[] { aOutput },
- null,
- new int[] { 10000 },
- new FluidStack[] {},
- new FluidStack[] {},
- aDuration,
- aEUt,
- 0);
+ false,
+ new ItemStack[] { aInput },
+ new ItemStack[] { aOutput },
+ null,
+ new int[] { 10000 },
+ new FluidStack[] {},
+ new FluidStack[] {},
+ aDuration,
+ aEUt,
+ 0);
GTPPRecipeMaps.molecularTransformerRecipes.add(aRecipe);
return true;
@@ -1236,7 +1214,7 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
@Override
public boolean addMolecularTransformerRecipe(ItemStack aInput, ItemStack aOutput, int aDuration, int aEUt,
- int aAmps) {
+ int aAmps) {
return addMolecularTransformerRecipe(aInput, aOutput, aDuration, aEUt);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/Gregtech4Content.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/Gregtech4Content.java
index fcdd93d0fd..d08b010e97 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/Gregtech4Content.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/Gregtech4Content.java
@@ -26,70 +26,62 @@ public class Gregtech4Content {
private static void automation() {
Logger.INFO("Gregtech 4 Content | Registering Auto Workbenches.");
- GregtechItemList.GT4_Electric_Auto_Workbench_LV.set(
- new GT_MetaTileEntity_ElectricAutoWorkbench(31091, 1, "Automatic crafting machine").getStackForm(1L));
- GregtechItemList.GT4_Electric_Auto_Workbench_MV.set(
- new GT_MetaTileEntity_ElectricAutoWorkbench(31092, 2, "Automatic crafting machine").getStackForm(1L));
- GregtechItemList.GT4_Electric_Auto_Workbench_HV.set(
- new GT_MetaTileEntity_ElectricAutoWorkbench(31093, 3, "Automatic crafting machine").getStackForm(1L));
- GregtechItemList.GT4_Electric_Auto_Workbench_EV.set(
- new GT_MetaTileEntity_ElectricAutoWorkbench(31094, 4, "Automatic crafting machine").getStackForm(1L));
- GregtechItemList.GT4_Electric_Auto_Workbench_IV.set(
- new GT_MetaTileEntity_ElectricAutoWorkbench(31095, 5, "Automatic crafting machine").getStackForm(1L));
- GregtechItemList.GT4_Electric_Auto_Workbench_LuV.set(
- new GT_MetaTileEntity_ElectricAutoWorkbench(31096, 6, "Automatic crafting machine").getStackForm(1L));
- GregtechItemList.GT4_Electric_Auto_Workbench_ZPM.set(
- new GT_MetaTileEntity_ElectricAutoWorkbench(31097, 7, "Automatic crafting machine").getStackForm(1L));
- GregtechItemList.GT4_Electric_Auto_Workbench_UV.set(
- new GT_MetaTileEntity_ElectricAutoWorkbench(31098, 8, "Automatic crafting machine").getStackForm(1L));
+ GregtechItemList.GT4_Electric_Auto_Workbench_LV
+ .set(new GT_MetaTileEntity_ElectricAutoWorkbench(31091, 1, "Automatic crafting machine").getStackForm(1L));
+ GregtechItemList.GT4_Electric_Auto_Workbench_MV
+ .set(new GT_MetaTileEntity_ElectricAutoWorkbench(31092, 2, "Automatic crafting machine").getStackForm(1L));
+ GregtechItemList.GT4_Electric_Auto_Workbench_HV
+ .set(new GT_MetaTileEntity_ElectricAutoWorkbench(31093, 3, "Automatic crafting machine").getStackForm(1L));
+ GregtechItemList.GT4_Electric_Auto_Workbench_EV
+ .set(new GT_MetaTileEntity_ElectricAutoWorkbench(31094, 4, "Automatic crafting machine").getStackForm(1L));
+ GregtechItemList.GT4_Electric_Auto_Workbench_IV
+ .set(new GT_MetaTileEntity_ElectricAutoWorkbench(31095, 5, "Automatic crafting machine").getStackForm(1L));
+ GregtechItemList.GT4_Electric_Auto_Workbench_LuV
+ .set(new GT_MetaTileEntity_ElectricAutoWorkbench(31096, 6, "Automatic crafting machine").getStackForm(1L));
+ GregtechItemList.GT4_Electric_Auto_Workbench_ZPM
+ .set(new GT_MetaTileEntity_ElectricAutoWorkbench(31097, 7, "Automatic crafting machine").getStackForm(1L));
+ GregtechItemList.GT4_Electric_Auto_Workbench_UV
+ .set(new GT_MetaTileEntity_ElectricAutoWorkbench(31098, 8, "Automatic crafting machine").getStackForm(1L));
}
private static void basic() {
Logger.INFO("Gregtech 4 Content | Registering Crop Managers.");
GregtechItemList.GT4_Crop_Harvester_LV.set(
- new GT_MetaTileEntity_CropHarvestor(31111, 1, "Harvests the Cropsticks in front of it")
- .getStackForm(1L));
+ new GT_MetaTileEntity_CropHarvestor(31111, 1, "Harvests the Cropsticks in front of it").getStackForm(1L));
GregtechItemList.GT4_Crop_Harvester_MV.set(
- new GT_MetaTileEntity_CropHarvestor(31112, 2, "Harvests the Cropsticks in front of it")
- .getStackForm(1L));
+ new GT_MetaTileEntity_CropHarvestor(31112, 2, "Harvests the Cropsticks in front of it").getStackForm(1L));
GregtechItemList.GT4_Crop_Harvester_HV.set(
- new GT_MetaTileEntity_CropHarvestor(31113, 3, "Harvests the Cropsticks in front of it")
- .getStackForm(1L));
+ new GT_MetaTileEntity_CropHarvestor(31113, 3, "Harvests the Cropsticks in front of it").getStackForm(1L));
GregtechItemList.GT4_Crop_Harvester_EV.set(
- new GT_MetaTileEntity_CropHarvestor(31114, 4, "Harvests the Cropsticks in front of it")
- .getStackForm(1L));
+ new GT_MetaTileEntity_CropHarvestor(31114, 4, "Harvests the Cropsticks in front of it").getStackForm(1L));
GregtechItemList.GT4_Crop_Harvester_IV.set(
- new GT_MetaTileEntity_CropHarvestor(31115, 5, "Harvests the Cropsticks in front of it")
- .getStackForm(1L));
+ new GT_MetaTileEntity_CropHarvestor(31115, 5, "Harvests the Cropsticks in front of it").getStackForm(1L));
GregtechItemList.GT4_Crop_Harvester_LuV.set(
- new GT_MetaTileEntity_CropHarvestor(31116, 6, "Harvests the Cropsticks in front of it")
- .getStackForm(1L));
+ new GT_MetaTileEntity_CropHarvestor(31116, 6, "Harvests the Cropsticks in front of it").getStackForm(1L));
GregtechItemList.GT4_Crop_Harvester_ZPM.set(
- new GT_MetaTileEntity_CropHarvestor(31117, 7, "Harvests the Cropsticks in front of it")
- .getStackForm(1L));
+ new GT_MetaTileEntity_CropHarvestor(31117, 7, "Harvests the Cropsticks in front of it").getStackForm(1L));
GregtechItemList.GT4_Crop_Harvester_UV.set(
- new GT_MetaTileEntity_CropHarvestor(31118, 8, "Harvests the Cropsticks in front of it")
- .getStackForm(1L));
+ new GT_MetaTileEntity_CropHarvestor(31118, 8, "Harvests the Cropsticks in front of it").getStackForm(1L));
}
private static void tesseracts() {
// Gregtech 4 Tesseracts
Logger.INFO("Gregtech 4 Content | Registering Tesseracts.");
GregtechItemList.GT4_Tesseract_Generator.set(
- new GT_MetaTileEntity_TesseractGenerator(833, "tesseract.generator", "Tesseract Generator", 4)
- .getStackForm(1L));
+ new GT_MetaTileEntity_TesseractGenerator(833, "tesseract.generator", "Tesseract Generator", 4)
+ .getStackForm(1L));
GregtechItemList.GT4_Tesseract_Terminal.set(
- new GT_MetaTileEntity_TesseractTerminal(834, "tesseract.terminal", "Tesseract Terminal", 4)
- .getStackForm(1L));
+ new GT_MetaTileEntity_TesseractTerminal(834, "tesseract.terminal", "Tesseract Terminal", 4)
+ .getStackForm(1L));
}
private static void thermalBoiler() {
// Gregtech 4 Thermal Boiler
if (CORE.ConfigSwitches.enableMultiblock_ThermalBoiler) {
Logger.INFO("Gregtech 4 Content | Registering Thermal Boiler.");
- GregtechItemList.GT4_Thermal_Boiler.set(
- new GT4Entity_ThermalBoiler(875, "gtplusplus.thermal.boiler", "Thermal Boiler").getStackForm(1L));
+ GregtechItemList.GT4_Thermal_Boiler
+ .set(new GT4Entity_ThermalBoiler(875, "gtplusplus.thermal.boiler", "Thermal Boiler").getStackForm(1L));
}
}
@@ -97,7 +89,7 @@ public class Gregtech4Content {
// Gregtech 4 Multiblock Auto-Crafter
Logger.INFO("Gregtech 4 Content | Registering Multiblock Crafter.");
GregtechItemList.GT4_Multi_Crafter.set(
- new GT4Entity_AutoCrafter(876, "gtplusplus.autocrafter.multi", "Large Scale Auto-Assembler v1.01")
- .getStackForm(1L));
+ new GT4Entity_AutoCrafter(876, "gtplusplus.autocrafter.multi", "Large Scale Auto-Assembler v1.01")
+ .getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechAdvancedBoilers.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechAdvancedBoilers.java
index 85d2f87513..e77e2b1c54 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechAdvancedBoilers.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechAdvancedBoilers.java
@@ -25,54 +25,54 @@ public class GregtechAdvancedBoilers {
private static void run1() {
// Boilers
GregtechItemList.Boiler_Advanced_LV
- .set(new GT_MetaTileEntity_Boiler_LV(753, "Advanced Boiler [LV]", 1).getStackForm(1L));
+ .set(new GT_MetaTileEntity_Boiler_LV(753, "Advanced Boiler [LV]", 1).getStackForm(1L));
GregtechItemList.Boiler_Advanced_MV
- .set(new GT_MetaTileEntity_Boiler_MV(754, "Advanced Boiler [MV]", 2).getStackForm(1L));
+ .set(new GT_MetaTileEntity_Boiler_MV(754, "Advanced Boiler [MV]", 2).getStackForm(1L));
GregtechItemList.Boiler_Advanced_HV
- .set(new GT_MetaTileEntity_Boiler_HV(755, "Advanced Boiler [HV]", 3).getStackForm(1L));
+ .set(new GT_MetaTileEntity_Boiler_HV(755, "Advanced Boiler [HV]", 3).getStackForm(1L));
ItemStack chassisT1 = ItemUtils
- .getItemStackWithMeta(true, "miscutils:itemBoilerChassis", "Boiler_Chassis_T1", 0, 1);
+ .getItemStackWithMeta(true, "miscutils:itemBoilerChassis", "Boiler_Chassis_T1", 0, 1);
ItemStack chassisT2 = ItemUtils
- .getItemStackWithMeta(true, "miscutils:itemBoilerChassis", "Boiler_Chassis_T1", 1, 1);
+ .getItemStackWithMeta(true, "miscutils:itemBoilerChassis", "Boiler_Chassis_T1", 1, 1);
ItemStack chassisT3 = ItemUtils
- .getItemStackWithMeta(true, "miscutils:itemBoilerChassis", "Boiler_Chassis_T1", 2, 1);
+ .getItemStackWithMeta(true, "miscutils:itemBoilerChassis", "Boiler_Chassis_T1", 2, 1);
// Make the Coil in each following recipe a hammer and a Screwdriver.
// Chassis Recipes
GT_ModHandler.addCraftingRecipe(
- chassisT1,
- GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
- | GT_ModHandler.RecipeBits.REVERSIBLE
- | GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "WCW", "GMG", "WPW", Character.valueOf('M'), ItemList.Hull_ULV, Character.valueOf('P'),
- OrePrefixes.pipeLarge.get(Materials.Bronze), Character.valueOf('C'),
- OrePrefixes.circuit.get(Materials.Primitive), Character.valueOf('W'),
- OrePrefixes.plate.get(Materials.Lead), Character.valueOf('G'),
- OrePrefixes.pipeSmall.get(Materials.Copper) });
+ chassisT1,
+ GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
+ | GT_ModHandler.RecipeBits.REVERSIBLE
+ | GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "WCW", "GMG", "WPW", Character.valueOf('M'), ItemList.Hull_ULV, Character.valueOf('P'),
+ OrePrefixes.pipeLarge.get(Materials.Bronze), Character.valueOf('C'),
+ OrePrefixes.circuit.get(Materials.Primitive), Character.valueOf('W'),
+ OrePrefixes.plate.get(Materials.Lead), Character.valueOf('G'),
+ OrePrefixes.pipeSmall.get(Materials.Copper) });
GT_ModHandler.addCraftingRecipe(
- chassisT2,
- GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
- | GT_ModHandler.RecipeBits.REVERSIBLE
- | GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "WCW", "GMG", "WPW", Character.valueOf('M'), ItemList.Hull_LV, Character.valueOf('P'),
- OrePrefixes.pipeLarge.get(Materials.Steel), Character.valueOf('C'),
- OrePrefixes.circuit.get(Materials.Basic), Character.valueOf('W'),
- OrePrefixes.plate.get(Materials.Steel), Character.valueOf('G'),
- OrePrefixes.pipeSmall.get(Materials.Bronze) });
+ chassisT2,
+ GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
+ | GT_ModHandler.RecipeBits.REVERSIBLE
+ | GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "WCW", "GMG", "WPW", Character.valueOf('M'), ItemList.Hull_LV, Character.valueOf('P'),
+ OrePrefixes.pipeLarge.get(Materials.Steel), Character.valueOf('C'),
+ OrePrefixes.circuit.get(Materials.Basic), Character.valueOf('W'),
+ OrePrefixes.plate.get(Materials.Steel), Character.valueOf('G'),
+ OrePrefixes.pipeSmall.get(Materials.Bronze) });
GT_ModHandler.addCraftingRecipe(
- chassisT3,
- GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
- | GT_ModHandler.RecipeBits.REVERSIBLE
- | GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "WCW", "GMG", "WPW", Character.valueOf('M'), ItemList.Hull_MV, Character.valueOf('P'),
- OrePrefixes.pipeLarge.get(Materials.StainlessSteel), Character.valueOf('C'),
- OrePrefixes.circuit.get(Materials.Good), Character.valueOf('W'),
- OrePrefixes.plate.get(Materials.Aluminium), Character.valueOf('G'),
- OrePrefixes.pipeSmall.get(Materials.Steel) });
+ chassisT3,
+ GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
+ | GT_ModHandler.RecipeBits.REVERSIBLE
+ | GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "WCW", "GMG", "WPW", Character.valueOf('M'), ItemList.Hull_MV, Character.valueOf('P'),
+ OrePrefixes.pipeLarge.get(Materials.StainlessSteel), Character.valueOf('C'),
+ OrePrefixes.circuit.get(Materials.Good), Character.valueOf('W'),
+ OrePrefixes.plate.get(Materials.Aluminium), Character.valueOf('G'),
+ OrePrefixes.pipeSmall.get(Materials.Steel) });
ItemStack pipeTier1 = ItemUtils.getItemStackOfAmountFromOreDict(RECIPES_MachineComponents.pipeTier7, 1);
ItemStack pipeTier2 = ItemUtils.getItemStackOfAmountFromOreDict(RECIPES_MachineComponents.pipeTier8, 1);
@@ -80,31 +80,30 @@ public class GregtechAdvancedBoilers {
// Boiler Recipes
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Boiler_Advanced_LV.get(1L, new Object[0]),
- GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
- | GT_ModHandler.RecipeBits.REVERSIBLE
- | GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "dCw", "WMW", "GPG", Character.valueOf('M'), ItemList.Hull_LV, Character.valueOf('P'),
- pipeTier1, Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Basic),
- Character.valueOf('W'), chassisT1, Character.valueOf('G'),
- OrePrefixes.gear.get(Materials.Steel) });
+ GregtechItemList.Boiler_Advanced_LV.get(1L, new Object[0]),
+ GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
+ | GT_ModHandler.RecipeBits.REVERSIBLE
+ | GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "dCw", "WMW", "GPG", Character.valueOf('M'), ItemList.Hull_LV, Character.valueOf('P'),
+ pipeTier1, Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Basic), Character.valueOf('W'),
+ chassisT1, Character.valueOf('G'), OrePrefixes.gear.get(Materials.Steel) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Boiler_Advanced_MV.get(1L, new Object[0]),
- GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
- | GT_ModHandler.RecipeBits.REVERSIBLE
- | GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "dCw", "WMW", "GPG", Character.valueOf('M'), ItemList.Hull_MV, Character.valueOf('P'),
- pipeTier2, Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Good),
- Character.valueOf('W'), chassisT2, Character.valueOf('G'), ALLOY.SILICON_CARBIDE.getGear(1) });
+ GregtechItemList.Boiler_Advanced_MV.get(1L, new Object[0]),
+ GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
+ | GT_ModHandler.RecipeBits.REVERSIBLE
+ | GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "dCw", "WMW", "GPG", Character.valueOf('M'), ItemList.Hull_MV, Character.valueOf('P'),
+ pipeTier2, Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Good), Character.valueOf('W'),
+ chassisT2, Character.valueOf('G'), ALLOY.SILICON_CARBIDE.getGear(1) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Boiler_Advanced_HV.get(1L, new Object[0]),
- GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
- | GT_ModHandler.RecipeBits.REVERSIBLE
- | GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "dCw", "WMW", "GPG", Character.valueOf('M'), ItemList.Hull_HV, Character.valueOf('P'),
- pipeTier3, Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Advanced),
- Character.valueOf('W'), chassisT3, Character.valueOf('G'), ALLOY.SILICON_CARBIDE.getGear(1) });
+ GregtechItemList.Boiler_Advanced_HV.get(1L, new Object[0]),
+ GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
+ | GT_ModHandler.RecipeBits.REVERSIBLE
+ | GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "dCw", "WMW", "GPG", Character.valueOf('M'), ItemList.Hull_HV, Character.valueOf('P'),
+ pipeTier3, Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Advanced), Character.valueOf('W'),
+ chassisT3, Character.valueOf('G'), ALLOY.SILICON_CARBIDE.getGear(1) });
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechAlgaeContent.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechAlgaeContent.java
index 63ca1a3d37..3c244739f6 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechAlgaeContent.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechAlgaeContent.java
@@ -18,16 +18,16 @@ public class GregtechAlgaeContent {
private static void run1() {
// Algae Pond
- GregtechItemList.AlgaeFarm_Controller.set(
- new GregtechMTE_AlgaePondBase(997, "algaefarm.controller.tier.single", "Algae Farm").getStackForm(1L));
+ GregtechItemList.AlgaeFarm_Controller
+ .set(new GregtechMTE_AlgaePondBase(997, "algaefarm.controller.tier.single", "Algae Farm").getStackForm(1L));
// Chemical Plant
GregtechItemList.ChemicalPlant_Controller.set(
- new GregtechMTE_ChemicalPlant(998, "chemicalplant.controller.tier.single", "ExxonMobil Chemical Plant")
- .getStackForm(1L));
+ new GregtechMTE_ChemicalPlant(998, "chemicalplant.controller.tier.single", "ExxonMobil Chemical Plant")
+ .getStackForm(1L));
GregtechItemList.Bus_Catalysts.set(
- (new GT_MetaTileEntity_Hatch_Catalysts(31030, "hatch.catalysts", "Catalyst Housing")).getStackForm(1L));
+ (new GT_MetaTileEntity_Hatch_Catalysts(31030, "hatch.catalysts", "Catalyst Housing")).getStackForm(1L));
int aTier = 0;
// Bronze
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechAmazonWarehouse.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechAmazonWarehouse.java
index 9dee13eddb..8fc84177ca 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechAmazonWarehouse.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechAmazonWarehouse.java
@@ -14,7 +14,7 @@ public class GregtechAmazonWarehouse {
private static void run1() {
// Amazon packager multiblock
GregtechItemList.Amazon_Warehouse_Controller.set(
- new GMTE_AmazonPackager(942, "amazonprime.controller.tier.single", "Amazon Warehousing Depot.")
- .getStackForm(1L));
+ new GMTE_AmazonPackager(942, "amazonprime.controller.tier.single", "Amazon Warehousing Depot.")
+ .getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechBufferDynamos.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechBufferDynamos.java
index 67d70e45e4..20df726ebe 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechBufferDynamos.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechBufferDynamos.java
@@ -20,114 +20,114 @@ public class GregtechBufferDynamos {
private static void run2() {
GregtechItemList.Hatch_Buffer_Dynamo_ULV.set(
- new GT_MetaTileEntity_Hatch_DynamoBuffer(
- mID++,
- "hatch.dynamo.buffer.tier.00",
- "ULV Dynamo Hatch [Buffered]",
- 0).getStackForm(1L));
+ new GT_MetaTileEntity_Hatch_DynamoBuffer(
+ mID++,
+ "hatch.dynamo.buffer.tier.00",
+ "ULV Dynamo Hatch [Buffered]",
+ 0).getStackForm(1L));
GregtechItemList.Hatch_Buffer_Dynamo_LV.set(
- new GT_MetaTileEntity_Hatch_DynamoBuffer(
- mID++,
- "hatch.dynamo.buffer.tier.01",
- "LV Dynamo Hatch [Buffered]",
- 1).getStackForm(1L));
+ new GT_MetaTileEntity_Hatch_DynamoBuffer(
+ mID++,
+ "hatch.dynamo.buffer.tier.01",
+ "LV Dynamo Hatch [Buffered]",
+ 1).getStackForm(1L));
GregtechItemList.Hatch_Buffer_Dynamo_MV.set(
- new GT_MetaTileEntity_Hatch_DynamoBuffer(
- mID++,
- "hatch.dynamo.buffer.tier.02",
- "MV Dynamo Hatch [Buffered]",
- 2).getStackForm(1L));
+ new GT_MetaTileEntity_Hatch_DynamoBuffer(
+ mID++,
+ "hatch.dynamo.buffer.tier.02",
+ "MV Dynamo Hatch [Buffered]",
+ 2).getStackForm(1L));
GregtechItemList.Hatch_Buffer_Dynamo_HV.set(
- new GT_MetaTileEntity_Hatch_DynamoBuffer(
- mID++,
- "hatch.dynamo.buffer.tier.03",
- "HV Dynamo Hatch [Buffered]",
- 3).getStackForm(1L));
+ new GT_MetaTileEntity_Hatch_DynamoBuffer(
+ mID++,
+ "hatch.dynamo.buffer.tier.03",
+ "HV Dynamo Hatch [Buffered]",
+ 3).getStackForm(1L));
GregtechItemList.Hatch_Buffer_Dynamo_EV.set(
- new GT_MetaTileEntity_Hatch_DynamoBuffer(
- mID++,
- "hatch.dynamo.buffer.tier.04",
- "EV Dynamo Hatch [Buffered]",
- 4).getStackForm(1L));
+ new GT_MetaTileEntity_Hatch_DynamoBuffer(
+ mID++,
+ "hatch.dynamo.buffer.tier.04",
+ "EV Dynamo Hatch [Buffered]",
+ 4).getStackForm(1L));
GregtechItemList.Hatch_Buffer_Dynamo_IV.set(
- new GT_MetaTileEntity_Hatch_DynamoBuffer(
- mID++,
- "hatch.dynamo.buffer.tier.05",
- "IV Dynamo Hatch [Buffered]",
- 5).getStackForm(1L));
+ new GT_MetaTileEntity_Hatch_DynamoBuffer(
+ mID++,
+ "hatch.dynamo.buffer.tier.05",
+ "IV Dynamo Hatch [Buffered]",
+ 5).getStackForm(1L));
GregtechItemList.Hatch_Buffer_Dynamo_LuV.set(
- new GT_MetaTileEntity_Hatch_DynamoBuffer(
- mID++,
- "hatch.dynamo.buffer.tier.06",
- "LuV Dynamo Hatch [Buffered]",
- 6).getStackForm(1L));
+ new GT_MetaTileEntity_Hatch_DynamoBuffer(
+ mID++,
+ "hatch.dynamo.buffer.tier.06",
+ "LuV Dynamo Hatch [Buffered]",
+ 6).getStackForm(1L));
GregtechItemList.Hatch_Buffer_Dynamo_ZPM.set(
- new GT_MetaTileEntity_Hatch_DynamoBuffer(
- mID++,
- "hatch.dynamo.buffer.tier.07",
- "ZPM Dynamo Hatch [Buffered]",
- 7).getStackForm(1L));
+ new GT_MetaTileEntity_Hatch_DynamoBuffer(
+ mID++,
+ "hatch.dynamo.buffer.tier.07",
+ "ZPM Dynamo Hatch [Buffered]",
+ 7).getStackForm(1L));
GregtechItemList.Hatch_Buffer_Dynamo_UV.set(
- new GT_MetaTileEntity_Hatch_DynamoBuffer(
- mID++,
- "hatch.dynamo.buffer.tier.08",
- "UV Dynamo Hatch [Buffered]",
- 8).getStackForm(1L));
+ new GT_MetaTileEntity_Hatch_DynamoBuffer(
+ mID++,
+ "hatch.dynamo.buffer.tier.08",
+ "UV Dynamo Hatch [Buffered]",
+ 8).getStackForm(1L));
GregtechItemList.Hatch_Buffer_Dynamo_MAX.set(
- new GT_MetaTileEntity_Hatch_DynamoBuffer(
- mID++,
- "hatch.dynamo.buffer.tier.09",
- "UHV Dynamo Hatch [Buffered]",
- 9).getStackForm(1L));
+ new GT_MetaTileEntity_Hatch_DynamoBuffer(
+ mID++,
+ "hatch.dynamo.buffer.tier.09",
+ "UHV Dynamo Hatch [Buffered]",
+ 9).getStackForm(1L));
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Hatch_Buffer_Dynamo_ULV.get(1L, new Object[0]),
- bitsd,
- new Object[] { "TMC", 'M', ItemList.Hatch_Dynamo_ULV, 'T', CI.getTieredCircuit(0), 'C',
- OrePrefixes.cableGt04.get((Object) Materials.Lead) });
+ GregtechItemList.Hatch_Buffer_Dynamo_ULV.get(1L, new Object[0]),
+ bitsd,
+ new Object[] { "TMC", 'M', ItemList.Hatch_Dynamo_ULV, 'T', CI.getTieredCircuit(0), 'C',
+ OrePrefixes.cableGt04.get((Object) Materials.Lead) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Hatch_Buffer_Dynamo_LV.get(1L, new Object[0]),
- bitsd,
- new Object[] { "TMC", 'M', ItemList.Hatch_Dynamo_LV, 'T', CI.getTieredCircuit(1), 'C',
- OrePrefixes.cableGt04.get((Object) Materials.Tin) });
+ GregtechItemList.Hatch_Buffer_Dynamo_LV.get(1L, new Object[0]),
+ bitsd,
+ new Object[] { "TMC", 'M', ItemList.Hatch_Dynamo_LV, 'T', CI.getTieredCircuit(1), 'C',
+ OrePrefixes.cableGt04.get((Object) Materials.Tin) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Hatch_Buffer_Dynamo_MV.get(1L, new Object[0]),
- bitsd,
- new Object[] { "TMC", 'M', ItemList.Hatch_Dynamo_MV, 'T', CI.getTieredCircuit(2), 'C',
- OrePrefixes.cableGt04.get((Object) Materials.AnyCopper) });
+ GregtechItemList.Hatch_Buffer_Dynamo_MV.get(1L, new Object[0]),
+ bitsd,
+ new Object[] { "TMC", 'M', ItemList.Hatch_Dynamo_MV, 'T', CI.getTieredCircuit(2), 'C',
+ OrePrefixes.cableGt04.get((Object) Materials.AnyCopper) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Hatch_Buffer_Dynamo_HV.get(1L, new Object[0]),
- bitsd,
- new Object[] { "TMC", 'M', ItemList.Hatch_Dynamo_HV, 'T', CI.getTieredCircuit(3), 'C',
- OrePrefixes.cableGt04.get((Object) Materials.Gold) });
+ GregtechItemList.Hatch_Buffer_Dynamo_HV.get(1L, new Object[0]),
+ bitsd,
+ new Object[] { "TMC", 'M', ItemList.Hatch_Dynamo_HV, 'T', CI.getTieredCircuit(3), 'C',
+ OrePrefixes.cableGt04.get((Object) Materials.Gold) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Hatch_Buffer_Dynamo_EV.get(1L, new Object[0]),
- bitsd,
- new Object[] { "TMC", 'M', ItemList.Hatch_Dynamo_EV, 'T', CI.getTieredCircuit(4), 'C',
- OrePrefixes.cableGt04.get((Object) Materials.Aluminium) });
+ GregtechItemList.Hatch_Buffer_Dynamo_EV.get(1L, new Object[0]),
+ bitsd,
+ new Object[] { "TMC", 'M', ItemList.Hatch_Dynamo_EV, 'T', CI.getTieredCircuit(4), 'C',
+ OrePrefixes.cableGt04.get((Object) Materials.Aluminium) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Hatch_Buffer_Dynamo_IV.get(1L, new Object[0]),
- bitsd,
- new Object[] { "TMC", 'M', ItemList.Hatch_Dynamo_IV, 'T', CI.getTieredCircuit(5), 'C',
- OrePrefixes.cableGt04.get((Object) Materials.Tungsten) });
+ GregtechItemList.Hatch_Buffer_Dynamo_IV.get(1L, new Object[0]),
+ bitsd,
+ new Object[] { "TMC", 'M', ItemList.Hatch_Dynamo_IV, 'T', CI.getTieredCircuit(5), 'C',
+ OrePrefixes.cableGt04.get((Object) Materials.Tungsten) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Hatch_Buffer_Dynamo_LuV.get(1L, new Object[0]),
- bitsd,
- new Object[] { "TMC", 'M', ItemList.Hatch_Dynamo_LuV, 'T', CI.getTieredCircuit(6), 'C',
- OrePrefixes.cableGt04.get((Object) Materials.VanadiumGallium) });
+ GregtechItemList.Hatch_Buffer_Dynamo_LuV.get(1L, new Object[0]),
+ bitsd,
+ new Object[] { "TMC", 'M', ItemList.Hatch_Dynamo_LuV, 'T', CI.getTieredCircuit(6), 'C',
+ OrePrefixes.cableGt04.get((Object) Materials.VanadiumGallium) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Hatch_Buffer_Dynamo_ZPM.get(1L, new Object[0]),
- bitsd,
- new Object[] { "TMC", 'M', ItemList.Hatch_Dynamo_ZPM, 'T', CI.getTieredCircuit(7), 'C',
- OrePrefixes.cableGt04.get((Object) Materials.Naquadah) });
+ GregtechItemList.Hatch_Buffer_Dynamo_ZPM.get(1L, new Object[0]),
+ bitsd,
+ new Object[] { "TMC", 'M', ItemList.Hatch_Dynamo_ZPM, 'T', CI.getTieredCircuit(7), 'C',
+ OrePrefixes.cableGt04.get((Object) Materials.Naquadah) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Hatch_Buffer_Dynamo_UV.get(1L, new Object[0]),
- bitsd,
- new Object[] { "TMC", 'M', ItemList.Hatch_Dynamo_UV, 'T', CI.getTieredCircuit(8), 'C',
- OrePrefixes.wireGt12.get((Object) Materials.NaquadahAlloy) });
+ GregtechItemList.Hatch_Buffer_Dynamo_UV.get(1L, new Object[0]),
+ bitsd,
+ new Object[] { "TMC", 'M', ItemList.Hatch_Dynamo_UV, 'T', CI.getTieredCircuit(8), 'C',
+ OrePrefixes.wireGt12.get((Object) Materials.NaquadahAlloy) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Hatch_Buffer_Dynamo_MAX.get(1L, new Object[0]),
- bitsd,
- new Object[] { "TMC", 'M', ItemList.Hatch_Dynamo_MAX, 'T', CI.getTieredCircuit(9), 'C',
- OrePrefixes.wireGt04.get(Materials.SuperconductorUHV) });
+ GregtechItemList.Hatch_Buffer_Dynamo_MAX.get(1L, new Object[0]),
+ bitsd,
+ new Object[] { "TMC", 'M', ItemList.Hatch_Dynamo_MAX, 'T', CI.getTieredCircuit(9), 'C',
+ OrePrefixes.wireGt04.get(Materials.SuperconductorUHV) });
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechConduits.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechConduits.java
index 0b615b9c3d..22d3cd9608 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechConduits.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechConduits.java
@@ -56,92 +56,92 @@ public class GregtechConduits {
try {
Class<GT_MetaPipeEntity_Fluid> aPipeEntity = GT_MetaPipeEntity_Fluid.class;
Constructor<GT_MetaPipeEntity_Fluid> constructor = aPipeEntity.getConstructor(
- int.class,
- String.class,
- String.class,
- float.class,
- Materials.class,
- int.class,
- int.class,
- boolean.class,
- int.class);
+ int.class,
+ String.class,
+ String.class,
+ float.class,
+ Materials.class,
+ int.class,
+ int.class,
+ boolean.class,
+ int.class);
if (constructor != null) {
Logger.INFO("Generating Hexadecuple pipes.");
generateFluidMultiPipes(
- constructor,
- Materials.Copper,
- MaterialUtils.getMaterialName(Materials.Copper),
- "Copper",
- BasePipeHexadecupleID++,
- 60,
- 1000,
- true);
+ constructor,
+ Materials.Copper,
+ MaterialUtils.getMaterialName(Materials.Copper),
+ "Copper",
+ BasePipeHexadecupleID++,
+ 60,
+ 1000,
+ true);
generateFluidMultiPipes(
- constructor,
- Materials.Bronze,
- MaterialUtils.getMaterialName(Materials.Bronze),
- "Bronze",
- BasePipeHexadecupleID++,
- 120,
- 2000,
- true);
+ constructor,
+ Materials.Bronze,
+ MaterialUtils.getMaterialName(Materials.Bronze),
+ "Bronze",
+ BasePipeHexadecupleID++,
+ 120,
+ 2000,
+ true);
generateFluidMultiPipes(
- constructor,
- Materials.Steel,
- MaterialUtils.getMaterialName(Materials.Steel),
- "Steel",
- BasePipeHexadecupleID++,
- 240,
- 2500,
- true);
+ constructor,
+ Materials.Steel,
+ MaterialUtils.getMaterialName(Materials.Steel),
+ "Steel",
+ BasePipeHexadecupleID++,
+ 240,
+ 2500,
+ true);
generateFluidMultiPipes(
- constructor,
- Materials.StainlessSteel,
- MaterialUtils.getMaterialName(Materials.StainlessSteel),
- "Stainless Steel",
- BasePipeHexadecupleID++,
- 360,
- 3000,
- true);
+ constructor,
+ Materials.StainlessSteel,
+ MaterialUtils.getMaterialName(Materials.StainlessSteel),
+ "Stainless Steel",
+ BasePipeHexadecupleID++,
+ 360,
+ 3000,
+ true);
generateFluidMultiPipes(
- constructor,
- Materials.Titanium,
- MaterialUtils.getMaterialName(Materials.Titanium),
- "Titanium",
- BasePipeHexadecupleID++,
- 480,
- 5000,
- true);
+ constructor,
+ Materials.Titanium,
+ MaterialUtils.getMaterialName(Materials.Titanium),
+ "Titanium",
+ BasePipeHexadecupleID++,
+ 480,
+ 5000,
+ true);
generateFluidMultiPipes(
- constructor,
- Materials.TungstenSteel,
- MaterialUtils.getMaterialName(Materials.TungstenSteel),
- "Tungsten Steel",
- BasePipeHexadecupleID++,
- 600,
- 7500,
- true);
+ constructor,
+ Materials.TungstenSteel,
+ MaterialUtils.getMaterialName(Materials.TungstenSteel),
+ "Tungsten Steel",
+ BasePipeHexadecupleID++,
+ 600,
+ 7500,
+ true);
generateFluidMultiPipes(
- constructor,
- Materials.Plastic,
- MaterialUtils.getMaterialName(Materials.Plastic),
- "Plastic",
- BasePipeHexadecupleID++,
- 360,
- 350,
- true);
+ constructor,
+ Materials.Plastic,
+ MaterialUtils.getMaterialName(Materials.Plastic),
+ "Plastic",
+ BasePipeHexadecupleID++,
+ 360,
+ 350,
+ true);
Materials aPTFE = Materials.get("Polytetrafluoroethylene");
if (aPTFE != null) {
generateFluidMultiPipes(
- constructor,
- aPTFE,
- MaterialUtils.getMaterialName(aPTFE),
- "PTFE",
- BasePipeHexadecupleID++,
- 480,
- 600,
- true);
+ constructor,
+ aPTFE,
+ MaterialUtils.getMaterialName(aPTFE),
+ "PTFE",
+ BasePipeHexadecupleID++,
+ 480,
+ 600,
+ true);
}
} else {
Logger.INFO("Failed during Hexadecuple pipe generation.");
@@ -163,20 +163,20 @@ public class GregtechConduits {
}
private static void generateFluidMultiPipes(Constructor<GT_MetaPipeEntity_Fluid> aClazz, Materials aMaterial,
- String name, String displayName, int startID, int transferRatePerSec, int heatCapacity, boolean gasProof) {
+ String name, String displayName, int startID, int transferRatePerSec, int heatCapacity, boolean gasProof) {
GT_MetaPipeEntity_Fluid aPipe;
final int transferRatePerTick = transferRatePerSec / 20;
try {
aPipe = aClazz.newInstance(
- startID,
- "GT_Pipe_" + name + "_Hexadecuple",
- "Hexadecuple " + displayName + " Fluid Pipe",
- 1.0F,
- aMaterial,
- transferRatePerTick,
- heatCapacity,
- gasProof,
- 16);
+ startID,
+ "GT_Pipe_" + name + "_Hexadecuple",
+ "Hexadecuple " + displayName + " Fluid Pipe",
+ 1.0F,
+ aMaterial,
+ transferRatePerTick,
+ heatCapacity,
+ gasProof,
+ 16);
if (aPipe == null) {
Logger.INFO("Failed to Generate " + aMaterial + " Hexadecuple pipes.");
} else {
@@ -184,7 +184,7 @@ public class GregtechConduits {
GT_OreDictUnificator.registerOre("pipeHexadecuple" + aMaterial, aPipe.getStackForm(1L));
}
} catch (InstantiationException | IllegalAccessException | IllegalArgumentException
- | InvocationTargetException e) {
+ | InvocationTargetException e) {
Logger.INFO("Failed to Generate " + aMaterial + " Hexadecuple pipes. [Ecx]");
e.printStackTrace();
}
@@ -222,16 +222,16 @@ public class GregtechConduits {
generateGTFluidPipes(Materials.Lead, BasePipeID + 70, 350, 1200, true);
generateNonGTFluidPipes(
- GT_Materials.TriniumNaquadahCarbonite,
- ALLOY.TRINIUM_NAQUADAH_CARBON,
- 30500,
- 20,
- 250000,
- true);
+ GT_Materials.TriniumNaquadahCarbonite,
+ ALLOY.TRINIUM_NAQUADAH_CARBON,
+ 30500,
+ 20,
+ 250000,
+ true);
}
private static void wireFactory(final String Material, final int Voltage, final int ID, final long insulatedLoss,
- final long uninsulatedLoss, final long Amps, final short[] rgb) {
+ final long uninsulatedLoss, final long Amps, final short[] rgb) {
final Materials T = Materials.get(Material);
int V = GT_Utility.getTier(Voltage);
if (V == -1) {
@@ -243,195 +243,195 @@ public class GregtechConduits {
}
private static void makeWires(final Materials aMaterial, final int aStartID, final long aLossInsulated,
- final long aLoss, final long aAmperage, final long aVoltage, final boolean aInsulatable,
- final boolean aAutoInsulated, final short[] aRGB) {
+ final long aLoss, final long aAmperage, final long aVoltage, final boolean aInsulatable,
+ final boolean aAutoInsulated, final short[] aRGB) {
Logger.WARNING("Gregtech5u Content | Registered " + aMaterial.mName + " as a new material for Wire & Cable.");
GT_OreDictUnificator.registerOre(
- OrePrefixes.wireGt01,
+ OrePrefixes.wireGt01,
+ aMaterial,
+ new GregtechMetaPipeEntity_Cable(
+ aStartID + 0,
+ "wire." + aMaterial.mName.toLowerCase() + ".01",
+ "1x " + aMaterial.mDefaultLocalName + " Wire",
+ 0.125F,
aMaterial,
- new GregtechMetaPipeEntity_Cable(
- aStartID + 0,
- "wire." + aMaterial.mName.toLowerCase() + ".01",
- "1x " + aMaterial.mDefaultLocalName + " Wire",
- 0.125F,
- aMaterial,
- aLoss,
- 1L * aAmperage,
- aVoltage,
- false,
- !aAutoInsulated,
- aRGB).getStackForm(1L));
+ aLoss,
+ 1L * aAmperage,
+ aVoltage,
+ false,
+ !aAutoInsulated,
+ aRGB).getStackForm(1L));
GT_OreDictUnificator.registerOre(
- OrePrefixes.wireGt02,
+ OrePrefixes.wireGt02,
+ aMaterial,
+ new GregtechMetaPipeEntity_Cable(
+ aStartID + 1,
+ "wire." + aMaterial.mName.toLowerCase() + ".02",
+ "2x " + aMaterial.mDefaultLocalName + " Wire",
+ 0.25F,
aMaterial,
- new GregtechMetaPipeEntity_Cable(
- aStartID + 1,
- "wire." + aMaterial.mName.toLowerCase() + ".02",
- "2x " + aMaterial.mDefaultLocalName + " Wire",
- 0.25F,
- aMaterial,
- aLoss,
- 2L * aAmperage,
- aVoltage,
- false,
- !aAutoInsulated,
- aRGB).getStackForm(1L));
+ aLoss,
+ 2L * aAmperage,
+ aVoltage,
+ false,
+ !aAutoInsulated,
+ aRGB).getStackForm(1L));
GT_OreDictUnificator.registerOre(
- OrePrefixes.wireGt04,
+ OrePrefixes.wireGt04,
+ aMaterial,
+ new GregtechMetaPipeEntity_Cable(
+ aStartID + 2,
+ "wire." + aMaterial.mName.toLowerCase() + ".04",
+ "4x " + aMaterial.mDefaultLocalName + " Wire",
+ 0.375F,
aMaterial,
- new GregtechMetaPipeEntity_Cable(
- aStartID + 2,
- "wire." + aMaterial.mName.toLowerCase() + ".04",
- "4x " + aMaterial.mDefaultLocalName + " Wire",
- 0.375F,
- aMaterial,
- aLoss,
- 4L * aAmperage,
- aVoltage,
- false,
- !aAutoInsulated,
- aRGB).getStackForm(1L));
+ aLoss,
+ 4L * aAmperage,
+ aVoltage,
+ false,
+ !aAutoInsulated,
+ aRGB).getStackForm(1L));
GT_OreDictUnificator.registerOre(
- OrePrefixes.wireGt08,
+ OrePrefixes.wireGt08,
+ aMaterial,
+ new GregtechMetaPipeEntity_Cable(
+ aStartID + 3,
+ "wire." + aMaterial.mName.toLowerCase() + ".08",
+ "8x " + aMaterial.mDefaultLocalName + " Wire",
+ 0.50F,
aMaterial,
- new GregtechMetaPipeEntity_Cable(
- aStartID + 3,
- "wire." + aMaterial.mName.toLowerCase() + ".08",
- "8x " + aMaterial.mDefaultLocalName + " Wire",
- 0.50F,
- aMaterial,
- aLoss,
- 8L * aAmperage,
- aVoltage,
- false,
- !aAutoInsulated,
- aRGB).getStackForm(1L));
+ aLoss,
+ 8L * aAmperage,
+ aVoltage,
+ false,
+ !aAutoInsulated,
+ aRGB).getStackForm(1L));
GT_OreDictUnificator.registerOre(
- OrePrefixes.wireGt12,
+ OrePrefixes.wireGt12,
+ aMaterial,
+ new GregtechMetaPipeEntity_Cable(
+ aStartID + 4,
+ "wire." + aMaterial.mName.toLowerCase() + ".12",
+ "12x " + aMaterial.mDefaultLocalName + " Wire",
+ 0.625F,
aMaterial,
- new GregtechMetaPipeEntity_Cable(
- aStartID + 4,
- "wire." + aMaterial.mName.toLowerCase() + ".12",
- "12x " + aMaterial.mDefaultLocalName + " Wire",
- 0.625F,
- aMaterial,
- aLoss,
- 12L * aAmperage,
- aVoltage,
- false,
- !aAutoInsulated,
- aRGB).getStackForm(1L));
+ aLoss,
+ 12L * aAmperage,
+ aVoltage,
+ false,
+ !aAutoInsulated,
+ aRGB).getStackForm(1L));
GT_OreDictUnificator.registerOre(
- OrePrefixes.wireGt16,
+ OrePrefixes.wireGt16,
+ aMaterial,
+ new GregtechMetaPipeEntity_Cable(
+ aStartID + 5,
+ "wire." + aMaterial.mName.toLowerCase() + ".16",
+ "16x " + aMaterial.mDefaultLocalName + " Wire",
+ 0.75F,
aMaterial,
- new GregtechMetaPipeEntity_Cable(
- aStartID + 5,
- "wire." + aMaterial.mName.toLowerCase() + ".16",
- "16x " + aMaterial.mDefaultLocalName + " Wire",
- 0.75F,
- aMaterial,
- aLoss,
- 16L * aAmperage,
- aVoltage,
- false,
- !aAutoInsulated,
- aRGB).getStackForm(1L));
+ aLoss,
+ 16L * aAmperage,
+ aVoltage,
+ false,
+ !aAutoInsulated,
+ aRGB).getStackForm(1L));
if (aInsulatable) {
GT_OreDictUnificator.registerOre(
- OrePrefixes.cableGt01,
+ OrePrefixes.cableGt01,
+ aMaterial,
+ new GregtechMetaPipeEntity_Cable(
+ aStartID + 6,
+ "cable." + aMaterial.mName.toLowerCase() + ".01",
+ "1x " + aMaterial.mDefaultLocalName + " Cable",
+ 0.25F,
aMaterial,
- new GregtechMetaPipeEntity_Cable(
- aStartID + 6,
- "cable." + aMaterial.mName.toLowerCase() + ".01",
- "1x " + aMaterial.mDefaultLocalName + " Cable",
- 0.25F,
- aMaterial,
- aLossInsulated,
- 1L * aAmperage,
- aVoltage,
- true,
- false,
- aRGB).getStackForm(1L));
+ aLossInsulated,
+ 1L * aAmperage,
+ aVoltage,
+ true,
+ false,
+ aRGB).getStackForm(1L));
GT_OreDictUnificator.registerOre(
- OrePrefixes.cableGt02,
+ OrePrefixes.cableGt02,
+ aMaterial,
+ new GregtechMetaPipeEntity_Cable(
+ aStartID + 7,
+ "cable." + aMaterial.mName.toLowerCase() + ".02",
+ "2x " + aMaterial.mDefaultLocalName + " Cable",
+ 0.375F,
aMaterial,
- new GregtechMetaPipeEntity_Cable(
- aStartID + 7,
- "cable." + aMaterial.mName.toLowerCase() + ".02",
- "2x " + aMaterial.mDefaultLocalName + " Cable",
- 0.375F,
- aMaterial,
- aLossInsulated,
- 2L * aAmperage,
- aVoltage,
- true,
- false,
- aRGB).getStackForm(1L));
+ aLossInsulated,
+ 2L * aAmperage,
+ aVoltage,
+ true,
+ false,
+ aRGB).getStackForm(1L));
GT_OreDictUnificator.registerOre(
- OrePrefixes.cableGt04,
+ OrePrefixes.cableGt04,
+ aMaterial,
+ new GregtechMetaPipeEntity_Cable(
+ aStartID + 8,
+ "cable." + aMaterial.mName.toLowerCase() + ".04",
+ "4x " + aMaterial.mDefaultLocalName + " Cable",
+ 0.5F,
aMaterial,
- new GregtechMetaPipeEntity_Cable(
- aStartID + 8,
- "cable." + aMaterial.mName.toLowerCase() + ".04",
- "4x " + aMaterial.mDefaultLocalName + " Cable",
- 0.5F,
- aMaterial,
- aLossInsulated,
- 4L * aAmperage,
- aVoltage,
- true,
- false,
- aRGB).getStackForm(1L));
+ aLossInsulated,
+ 4L * aAmperage,
+ aVoltage,
+ true,
+ false,
+ aRGB).getStackForm(1L));
GT_OreDictUnificator.registerOre(
- OrePrefixes.cableGt08,
+ OrePrefixes.cableGt08,
+ aMaterial,
+ new GregtechMetaPipeEntity_Cable(
+ aStartID + 9,
+ "cable." + aMaterial.mName.toLowerCase() + ".08",
+ "8x " + aMaterial.mDefaultLocalName + " Cable",
+ 0.625F,
aMaterial,
- new GregtechMetaPipeEntity_Cable(
- aStartID + 9,
- "cable." + aMaterial.mName.toLowerCase() + ".08",
- "8x " + aMaterial.mDefaultLocalName + " Cable",
- 0.625F,
- aMaterial,
- aLossInsulated,
- 8L * aAmperage,
- aVoltage,
- true,
- false,
- aRGB).getStackForm(1L));
+ aLossInsulated,
+ 8L * aAmperage,
+ aVoltage,
+ true,
+ false,
+ aRGB).getStackForm(1L));
GT_OreDictUnificator.registerOre(
- OrePrefixes.cableGt12,
+ OrePrefixes.cableGt12,
+ aMaterial,
+ new GregtechMetaPipeEntity_Cable(
+ aStartID + 10,
+ "cable." + aMaterial.mName.toLowerCase() + ".12",
+ "12x " + aMaterial.mDefaultLocalName + " Cable",
+ 0.75F,
aMaterial,
- new GregtechMetaPipeEntity_Cable(
- aStartID + 10,
- "cable." + aMaterial.mName.toLowerCase() + ".12",
- "12x " + aMaterial.mDefaultLocalName + " Cable",
- 0.75F,
- aMaterial,
- aLossInsulated,
- 12L * aAmperage,
- aVoltage,
- true,
- false,
- aRGB).getStackForm(1L));
+ aLossInsulated,
+ 12L * aAmperage,
+ aVoltage,
+ true,
+ false,
+ aRGB).getStackForm(1L));
GT_OreDictUnificator.registerOre(
- OrePrefixes.cableGt16,
+ OrePrefixes.cableGt16,
+ aMaterial,
+ new GregtechMetaPipeEntity_Cable(
+ aStartID + 11,
+ "cable." + aMaterial.mName.toLowerCase() + ".16",
+ "16x " + aMaterial.mDefaultLocalName + " Cable",
+ 0.875f,
aMaterial,
- new GregtechMetaPipeEntity_Cable(
- aStartID + 11,
- "cable." + aMaterial.mName.toLowerCase() + ".16",
- "16x " + aMaterial.mDefaultLocalName + " Cable",
- 0.875f,
- aMaterial,
- aLossInsulated,
- 16L * aAmperage,
- aVoltage,
- true,
- false,
- aRGB).getStackForm(1L));
+ aLossInsulated,
+ 16L * aAmperage,
+ aVoltage,
+ true,
+ false,
+ aRGB).getStackForm(1L));
}
}
private static void customWireFactory(final Material Material, final int Voltage, final int ID,
- final long insulatedLoss, final long uninsulatedLoss, final long Amps) {
+ final long insulatedLoss, final long uninsulatedLoss, final long Amps) {
int V = GT_Utility.getTier(Voltage);
if (V == -1) {
Logger.ERROR("Failed to set voltage on " + Material + ". Invalid voltage of " + Voltage + "V set.");
@@ -442,185 +442,196 @@ public class GregtechConduits {
}
private static void makeCustomWires(final Material aMaterial, final int aStartID, final long aLossInsulated,
- final long aLoss, final long aAmperage, final long aVoltage, final boolean aInsulatable,
- final boolean aAutoInsulated) {
+ final long aLoss, final long aAmperage, final long aVoltage, final boolean aInsulatable,
+ final boolean aAutoInsulated) {
Logger.WARNING(
- "Gregtech5u Content | Registered " + aMaterial.getLocalizedName()
- + " as a new material for Wire & Cable.");
+ "Gregtech5u Content | Registered " + aMaterial.getLocalizedName() + " as a new material for Wire & Cable.");
registerOre(
- OrePrefixes.wireGt01,
- aMaterial,
- new GregtechMetaPipeEntity_Cable(
- aStartID + 0,
- "wire." + aMaterial.getLocalizedName().toLowerCase() + ".01",
- "1x " + aMaterial.getLocalizedName() + " Wire",
- 0.125F,
- aLoss,
- 1L * aAmperage,
- aVoltage,
- false,
- !aAutoInsulated,
- aMaterial.getRGBA()).getStackForm(1L));
+ OrePrefixes.wireGt01,
+ aMaterial,
+ new GregtechMetaPipeEntity_Cable(
+ aStartID + 0,
+ "wire." + aMaterial.getLocalizedName()
+ .toLowerCase() + ".01",
+ "1x " + aMaterial.getLocalizedName() + " Wire",
+ 0.125F,
+ aLoss,
+ 1L * aAmperage,
+ aVoltage,
+ false,
+ !aAutoInsulated,
+ aMaterial.getRGBA()).getStackForm(1L));
registerOre(
- OrePrefixes.wireGt02,
- aMaterial,
- new GregtechMetaPipeEntity_Cable(
- aStartID + 1,
- "wire." + aMaterial.getLocalizedName().toLowerCase() + ".02",
- "2x " + aMaterial.getLocalizedName() + " Wire",
- 0.25F,
- aLoss,
- 2L * aAmperage,
- aVoltage,
- false,
- !aAutoInsulated,
- aMaterial.getRGBA()).getStackForm(1L));
+ OrePrefixes.wireGt02,
+ aMaterial,
+ new GregtechMetaPipeEntity_Cable(
+ aStartID + 1,
+ "wire." + aMaterial.getLocalizedName()
+ .toLowerCase() + ".02",
+ "2x " + aMaterial.getLocalizedName() + " Wire",
+ 0.25F,
+ aLoss,
+ 2L * aAmperage,
+ aVoltage,
+ false,
+ !aAutoInsulated,
+ aMaterial.getRGBA()).getStackForm(1L));
registerOre(
- OrePrefixes.wireGt04,
- aMaterial,
- new GregtechMetaPipeEntity_Cable(
- aStartID + 2,
- "wire." + aMaterial.getLocalizedName().toLowerCase() + ".04",
- "4x " + aMaterial.getLocalizedName() + " Wire",
- 0.375F,
- aLoss,
- 4L * aAmperage,
- aVoltage,
- false,
- !aAutoInsulated,
- aMaterial.getRGBA()).getStackForm(1L));
+ OrePrefixes.wireGt04,
+ aMaterial,
+ new GregtechMetaPipeEntity_Cable(
+ aStartID + 2,
+ "wire." + aMaterial.getLocalizedName()
+ .toLowerCase() + ".04",
+ "4x " + aMaterial.getLocalizedName() + " Wire",
+ 0.375F,
+ aLoss,
+ 4L * aAmperage,
+ aVoltage,
+ false,
+ !aAutoInsulated,
+ aMaterial.getRGBA()).getStackForm(1L));
registerOre(
- OrePrefixes.wireGt08,
- aMaterial,
- new GregtechMetaPipeEntity_Cable(
- aStartID + 3,
- "wire." + aMaterial.getLocalizedName().toLowerCase() + ".08",
- "8x " + aMaterial.getLocalizedName() + " Wire",
- 0.50F,
- aLoss,
- 8L * aAmperage,
- aVoltage,
- false,
- !aAutoInsulated,
- aMaterial.getRGBA()).getStackForm(1L));
+ OrePrefixes.wireGt08,
+ aMaterial,
+ new GregtechMetaPipeEntity_Cable(
+ aStartID + 3,
+ "wire." + aMaterial.getLocalizedName()
+ .toLowerCase() + ".08",
+ "8x " + aMaterial.getLocalizedName() + " Wire",
+ 0.50F,
+ aLoss,
+ 8L * aAmperage,
+ aVoltage,
+ false,
+ !aAutoInsulated,
+ aMaterial.getRGBA()).getStackForm(1L));
registerOre(
- OrePrefixes.wireGt12,
- aMaterial,
- new GregtechMetaPipeEntity_Cable(
- aStartID + 4,
- "wire." + aMaterial.getLocalizedName().toLowerCase() + ".12",
- "12x " + aMaterial.getLocalizedName() + " Wire",
- 0.625F,
- aLoss,
- 12L * aAmperage,
- aVoltage,
- false,
- !aAutoInsulated,
- aMaterial.getRGBA()).getStackForm(1L));
+ OrePrefixes.wireGt12,
+ aMaterial,
+ new GregtechMetaPipeEntity_Cable(
+ aStartID + 4,
+ "wire." + aMaterial.getLocalizedName()
+ .toLowerCase() + ".12",
+ "12x " + aMaterial.getLocalizedName() + " Wire",
+ 0.625F,
+ aLoss,
+ 12L * aAmperage,
+ aVoltage,
+ false,
+ !aAutoInsulated,
+ aMaterial.getRGBA()).getStackForm(1L));
registerOre(
- OrePrefixes.wireGt16,
- aMaterial,
- new GregtechMetaPipeEntity_Cable(
- aStartID + 5,
- "wire." + aMaterial.getLocalizedName().toLowerCase() + ".16",
- "16x " + aMaterial.getLocalizedName() + " Wire",
- 0.75F,
- aLoss,
- 16L * aAmperage,
- aVoltage,
- false,
- !aAutoInsulated,
- aMaterial.getRGBA()).getStackForm(1L));
+ OrePrefixes.wireGt16,
+ aMaterial,
+ new GregtechMetaPipeEntity_Cable(
+ aStartID + 5,
+ "wire." + aMaterial.getLocalizedName()
+ .toLowerCase() + ".16",
+ "16x " + aMaterial.getLocalizedName() + " Wire",
+ 0.75F,
+ aLoss,
+ 16L * aAmperage,
+ aVoltage,
+ false,
+ !aAutoInsulated,
+ aMaterial.getRGBA()).getStackForm(1L));
if (aInsulatable) {
registerOre(
- OrePrefixes.cableGt01,
- aMaterial,
- new GregtechMetaPipeEntity_Cable(
- aStartID + 6,
- "cable." + aMaterial.getLocalizedName().toLowerCase() + ".01",
- "1x " + aMaterial.getLocalizedName() + " Cable",
- 0.25F,
- aLossInsulated,
- 1L * aAmperage,
- aVoltage,
- true,
- false,
- aMaterial.getRGBA()).getStackForm(1L));
+ OrePrefixes.cableGt01,
+ aMaterial,
+ new GregtechMetaPipeEntity_Cable(
+ aStartID + 6,
+ "cable." + aMaterial.getLocalizedName()
+ .toLowerCase() + ".01",
+ "1x " + aMaterial.getLocalizedName() + " Cable",
+ 0.25F,
+ aLossInsulated,
+ 1L * aAmperage,
+ aVoltage,
+ true,
+ false,
+ aMaterial.getRGBA()).getStackForm(1L));
registerOre(
- OrePrefixes.cableGt02,
- aMaterial,
- new GregtechMetaPipeEntity_Cable(
- aStartID + 7,
- "cable." + aMaterial.getLocalizedName().toLowerCase() + ".02",
- "2x " + aMaterial.getLocalizedName() + " Cable",
- 0.375F,
- aLossInsulated,
- 2L * aAmperage,
- aVoltage,
- true,
- false,
- aMaterial.getRGBA()).getStackForm(1L));
+ OrePrefixes.cableGt02,
+ aMaterial,
+ new GregtechMetaPipeEntity_Cable(
+ aStartID + 7,
+ "cable." + aMaterial.getLocalizedName()
+ .toLowerCase() + ".02",
+ "2x " + aMaterial.getLocalizedName() + " Cable",
+ 0.375F,
+ aLossInsulated,
+ 2L * aAmperage,
+ aVoltage,
+ true,
+ false,
+ aMaterial.getRGBA()).getStackForm(1L));
registerOre(
- OrePrefixes.cableGt04,
- aMaterial,
- new GregtechMetaPipeEntity_Cable(
- aStartID + 8,
- "cable." + aMaterial.getLocalizedName().toLowerCase() + ".04",
- "4x " + aMaterial.getLocalizedName() + " Cable",
- 0.5F,
- aLossInsulated,
- 4L * aAmperage,
- aVoltage,
- true,
- false,
- aMaterial.getRGBA()).getStackForm(1L));
+ OrePrefixes.cableGt04,
+ aMaterial,
+ new GregtechMetaPipeEntity_Cable(
+ aStartID + 8,
+ "cable." + aMaterial.getLocalizedName()
+ .toLowerCase() + ".04",
+ "4x " + aMaterial.getLocalizedName() + " Cable",
+ 0.5F,
+ aLossInsulated,
+ 4L * aAmperage,
+ aVoltage,
+ true,
+ false,
+ aMaterial.getRGBA()).getStackForm(1L));
registerOre(
- OrePrefixes.cableGt08,
- aMaterial,
- new GregtechMetaPipeEntity_Cable(
- aStartID + 9,
- "cable." + aMaterial.getLocalizedName().toLowerCase() + ".08",
- "8x " + aMaterial.getLocalizedName() + " Cable",
- 0.625F,
- aLossInsulated,
- 8L * aAmperage,
- aVoltage,
- true,
- false,
- aMaterial.getRGBA()).getStackForm(1L));
+ OrePrefixes.cableGt08,
+ aMaterial,
+ new GregtechMetaPipeEntity_Cable(
+ aStartID + 9,
+ "cable." + aMaterial.getLocalizedName()
+ .toLowerCase() + ".08",
+ "8x " + aMaterial.getLocalizedName() + " Cable",
+ 0.625F,
+ aLossInsulated,
+ 8L * aAmperage,
+ aVoltage,
+ true,
+ false,
+ aMaterial.getRGBA()).getStackForm(1L));
registerOre(
- OrePrefixes.cableGt12,
- aMaterial,
- new GregtechMetaPipeEntity_Cable(
- aStartID + 10,
- "cable." + aMaterial.getLocalizedName().toLowerCase() + ".12",
- "12x " + aMaterial.getLocalizedName() + " Cable",
- 0.75F,
- aLossInsulated,
- 12L * aAmperage,
- aVoltage,
- true,
- false,
- aMaterial.getRGBA()).getStackForm(1L));
+ OrePrefixes.cableGt12,
+ aMaterial,
+ new GregtechMetaPipeEntity_Cable(
+ aStartID + 10,
+ "cable." + aMaterial.getLocalizedName()
+ .toLowerCase() + ".12",
+ "12x " + aMaterial.getLocalizedName() + " Cable",
+ 0.75F,
+ aLossInsulated,
+ 12L * aAmperage,
+ aVoltage,
+ true,
+ false,
+ aMaterial.getRGBA()).getStackForm(1L));
registerOre(
- OrePrefixes.cableGt16,
- aMaterial,
- new GregtechMetaPipeEntity_Cable(
- aStartID + 11,
- "cable." + aMaterial.getLocalizedName().toLowerCase() + ".16",
- "16x " + aMaterial.getLocalizedName() + " Cable",
- 0.875f,
- aLossInsulated,
- 16L * aAmperage,
- aVoltage,
- true,
- false,
- aMaterial.getRGBA()).getStackForm(1L));
+ OrePrefixes.cableGt16,
+ aMaterial,
+ new GregtechMetaPipeEntity_Cable(
+ aStartID + 11,
+ "cable." + aMaterial.getLocalizedName()
+ .toLowerCase() + ".16",
+ "16x " + aMaterial.getLocalizedName() + " Cable",
+ 0.875f,
+ aLossInsulated,
+ 16L * aAmperage,
+ aVoltage,
+ true,
+ false,
+ aMaterial.getRGBA()).getStackForm(1L));
}
}
private static void superConductorFactory(final GT_Materials Material, final int Voltage, final int ID,
- final long insulatedLoss, final long uninsulatedLoss, final long Amps) {
+ final long insulatedLoss, final long uninsulatedLoss, final long Amps) {
final GT_Materials T = Material;
int V = 0;
if (Voltage == 8) {
@@ -651,70 +662,70 @@ public class GregtechConduits {
}
private static void generateGTFluidPipes(final Materials material, final int startID, final int transferRatePerSec,
- final int heatResistance, final boolean isGasProof) {
+ final int heatResistance, final boolean isGasProof) {
final int transferRatePerTick = transferRatePerSec / 20;
final long mass = material.getMass();
final long voltage = material.mMeltingPoint >= 2800 ? 64 : 16;
GT_OreDictUnificator.registerOre(
- OrePrefixes.pipeTiny.get(material),
- new GT_MetaPipeEntity_Fluid(
- startID,
- "GT_Pipe_" + material.mDefaultLocalName + "_Tiny",
- "Tiny " + material.mDefaultLocalName + " Fluid Pipe",
- 0.25F,
- material,
- transferRatePerTick * 2,
- heatResistance,
- isGasProof).getStackForm(1L));
+ OrePrefixes.pipeTiny.get(material),
+ new GT_MetaPipeEntity_Fluid(
+ startID,
+ "GT_Pipe_" + material.mDefaultLocalName + "_Tiny",
+ "Tiny " + material.mDefaultLocalName + " Fluid Pipe",
+ 0.25F,
+ material,
+ transferRatePerTick * 2,
+ heatResistance,
+ isGasProof).getStackForm(1L));
GT_OreDictUnificator.registerOre(
- OrePrefixes.pipeSmall.get(material),
- new GT_MetaPipeEntity_Fluid(
- startID + 1,
- "GT_Pipe_" + material.mDefaultLocalName + "_Small",
- "Small " + material.mDefaultLocalName + " Fluid Pipe",
- 0.375F,
- material,
- transferRatePerTick * 4,
- heatResistance,
- isGasProof).getStackForm(1L));
+ OrePrefixes.pipeSmall.get(material),
+ new GT_MetaPipeEntity_Fluid(
+ startID + 1,
+ "GT_Pipe_" + material.mDefaultLocalName + "_Small",
+ "Small " + material.mDefaultLocalName + " Fluid Pipe",
+ 0.375F,
+ material,
+ transferRatePerTick * 4,
+ heatResistance,
+ isGasProof).getStackForm(1L));
GT_OreDictUnificator.registerOre(
- OrePrefixes.pipeMedium.get(material),
- new GT_MetaPipeEntity_Fluid(
- startID + 2,
- "GT_Pipe_" + material.mDefaultLocalName + "",
- "" + material.mDefaultLocalName + " Fluid Pipe",
- 0.5F,
- material,
- transferRatePerTick * 12,
- heatResistance,
- isGasProof).getStackForm(1L));
+ OrePrefixes.pipeMedium.get(material),
+ new GT_MetaPipeEntity_Fluid(
+ startID + 2,
+ "GT_Pipe_" + material.mDefaultLocalName + "",
+ "" + material.mDefaultLocalName + " Fluid Pipe",
+ 0.5F,
+ material,
+ transferRatePerTick * 12,
+ heatResistance,
+ isGasProof).getStackForm(1L));
GT_OreDictUnificator.registerOre(
- OrePrefixes.pipeLarge.get(material),
- new GT_MetaPipeEntity_Fluid(
- startID + 3,
- "GT_Pipe_" + material.mDefaultLocalName + "_Large",
- "Large " + material.mDefaultLocalName + " Fluid Pipe",
- 0.75F,
- material,
- transferRatePerTick * 24,
- heatResistance,
- isGasProof).getStackForm(1L));
+ OrePrefixes.pipeLarge.get(material),
+ new GT_MetaPipeEntity_Fluid(
+ startID + 3,
+ "GT_Pipe_" + material.mDefaultLocalName + "_Large",
+ "Large " + material.mDefaultLocalName + " Fluid Pipe",
+ 0.75F,
+ material,
+ transferRatePerTick * 24,
+ heatResistance,
+ isGasProof).getStackForm(1L));
GT_OreDictUnificator.registerOre(
- OrePrefixes.pipeHuge.get(material),
- new GT_MetaPipeEntity_Fluid(
- startID + 4,
- "GT_Pipe_" + material.mDefaultLocalName + "_Huge",
- "Huge " + material.mDefaultLocalName + " Fluid Pipe",
- 0.875F,
- material,
- transferRatePerTick * 48,
- heatResistance,
- isGasProof).getStackForm(1L));
+ OrePrefixes.pipeHuge.get(material),
+ new GT_MetaPipeEntity_Fluid(
+ startID + 4,
+ "GT_Pipe_" + material.mDefaultLocalName + "_Huge",
+ "Huge " + material.mDefaultLocalName + " Fluid Pipe",
+ 0.875F,
+ material,
+ transferRatePerTick * 48,
+ heatResistance,
+ isGasProof).getStackForm(1L));
// generatePipeRecipes(material.mDefaultLocalName, mass, voltage);
}
private static void generateNonGTFluidPipes(final GT_Materials material, final Material myMaterial,
- final int startID, final int transferRatePerSec, final int heatResistance, final boolean isGasProof) {
+ final int startID, final int transferRatePerSec, final int heatResistance, final boolean isGasProof) {
final int transferRatePerTick = transferRatePerSec / 20;
long mass;
if (myMaterial != null) {
@@ -726,67 +737,68 @@ public class GregtechConduits {
int tVoltageMultiplier = (material.mBlastFurnaceTemp >= 2800) ? 64 : 16;
GT_OreDictUnificator.registerOre(
- OrePrefixes.pipeTiny.get(material),
- new GregtechMetaPipeEntityFluid(
- startID,
- "GT_Pipe_" + material.mDefaultLocalName + "_Tiny",
- "Tiny " + material.mDefaultLocalName + " Fluid Pipe",
- 0.25F,
- material,
- transferRatePerTick * 2,
- heatResistance,
- isGasProof).getStackForm(1L));
+ OrePrefixes.pipeTiny.get(material),
+ new GregtechMetaPipeEntityFluid(
+ startID,
+ "GT_Pipe_" + material.mDefaultLocalName + "_Tiny",
+ "Tiny " + material.mDefaultLocalName + " Fluid Pipe",
+ 0.25F,
+ material,
+ transferRatePerTick * 2,
+ heatResistance,
+ isGasProof).getStackForm(1L));
GT_OreDictUnificator.registerOre(
- OrePrefixes.pipeSmall.get(material),
- new GregtechMetaPipeEntityFluid(
- startID + 1,
- "GT_Pipe_" + material.mDefaultLocalName + "_Small",
- "Small " + material.mDefaultLocalName + " Fluid Pipe",
- 0.375F,
- material,
- transferRatePerTick * 4,
- heatResistance,
- isGasProof).getStackForm(1L));
+ OrePrefixes.pipeSmall.get(material),
+ new GregtechMetaPipeEntityFluid(
+ startID + 1,
+ "GT_Pipe_" + material.mDefaultLocalName + "_Small",
+ "Small " + material.mDefaultLocalName + " Fluid Pipe",
+ 0.375F,
+ material,
+ transferRatePerTick * 4,
+ heatResistance,
+ isGasProof).getStackForm(1L));
GT_OreDictUnificator.registerOre(
- OrePrefixes.pipeMedium.get(material),
- new GregtechMetaPipeEntityFluid(
- startID + 2,
- "GT_Pipe_" + material.mDefaultLocalName + "",
- "" + material.mDefaultLocalName + " Fluid Pipe",
- 0.5F,
- material,
- transferRatePerTick * 12,
- heatResistance,
- isGasProof).getStackForm(1L));
+ OrePrefixes.pipeMedium.get(material),
+ new GregtechMetaPipeEntityFluid(
+ startID + 2,
+ "GT_Pipe_" + material.mDefaultLocalName + "",
+ "" + material.mDefaultLocalName + " Fluid Pipe",
+ 0.5F,
+ material,
+ transferRatePerTick * 12,
+ heatResistance,
+ isGasProof).getStackForm(1L));
GT_OreDictUnificator.registerOre(
- OrePrefixes.pipeLarge.get(material),
- new GregtechMetaPipeEntityFluid(
- startID + 3,
- "GT_Pipe_" + material.mDefaultLocalName + "_Large",
- "Large " + material.mDefaultLocalName + " Fluid Pipe",
- 0.75F,
- material,
- transferRatePerTick * 24,
- heatResistance,
- isGasProof).getStackForm(1L));
+ OrePrefixes.pipeLarge.get(material),
+ new GregtechMetaPipeEntityFluid(
+ startID + 3,
+ "GT_Pipe_" + material.mDefaultLocalName + "_Large",
+ "Large " + material.mDefaultLocalName + " Fluid Pipe",
+ 0.75F,
+ material,
+ transferRatePerTick * 24,
+ heatResistance,
+ isGasProof).getStackForm(1L));
GT_OreDictUnificator.registerOre(
- OrePrefixes.pipeHuge.get(material),
- new GregtechMetaPipeEntityFluid(
- startID + 4,
- "GT_Pipe_" + material.mDefaultLocalName + "_Huge",
- "Huge " + material.mDefaultLocalName + " Fluid Pipe",
- 0.875F,
- material,
- transferRatePerTick * 48,
- heatResistance,
- isGasProof).getStackForm(1L));
+ OrePrefixes.pipeHuge.get(material),
+ new GregtechMetaPipeEntityFluid(
+ startID + 4,
+ "GT_Pipe_" + material.mDefaultLocalName + "_Huge",
+ "Huge " + material.mDefaultLocalName + " Fluid Pipe",
+ 0.875F,
+ material,
+ transferRatePerTick * 48,
+ heatResistance,
+ isGasProof).getStackForm(1L));
// generatePipeRecipes(material.mDefaultLocalName, mass, tVoltageMultiplier);
}
public static void generatePipeRecipes(final String materialName, final long Mass, final long vMulti) {
- String output = materialName.substring(0, 1).toUpperCase() + materialName.substring(1);
+ String output = materialName.substring(0, 1)
+ .toUpperCase() + materialName.substring(1);
output = Utils.sanitizeString(output);
if (output.equals("VoidMetal")) {
@@ -806,130 +818,125 @@ public class GregtechConduits {
// Check all pipes are not null
Logger.WARNING(
- "Generated pipeTiny from " + materialName
- + "? "
- + ((ItemUtils.getItemStackOfAmountFromOreDict("pipe" + "Tiny" + output, 1) != null) ? true
- : false));
+ "Generated pipeTiny from " + materialName
+ + "? "
+ + ((ItemUtils.getItemStackOfAmountFromOreDict("pipe" + "Tiny" + output, 1) != null) ? true : false));
Logger.WARNING(
- "Generated pipeSmall from " + materialName
- + "? "
- + ((ItemUtils.getItemStackOfAmountFromOreDict("pipe" + "Small" + output, 1) != null) ? true
- : false));
+ "Generated pipeSmall from " + materialName
+ + "? "
+ + ((ItemUtils.getItemStackOfAmountFromOreDict("pipe" + "Small" + output, 1) != null) ? true : false));
Logger.WARNING(
- "Generated pipeNormal from " + materialName
- + "? "
- + ((ItemUtils.getItemStackOfAmountFromOreDict("pipe" + "Medium" + output, 1) != null) ? true
- : false));
+ "Generated pipeNormal from " + materialName
+ + "? "
+ + ((ItemUtils.getItemStackOfAmountFromOreDict("pipe" + "Medium" + output, 1) != null) ? true : false));
Logger.WARNING(
- "Generated pipeLarge from " + materialName
- + "? "
- + ((ItemUtils.getItemStackOfAmountFromOreDict("pipe" + "Large" + output, 1) != null) ? true
- : false));
+ "Generated pipeLarge from " + materialName
+ + "? "
+ + ((ItemUtils.getItemStackOfAmountFromOreDict("pipe" + "Large" + output, 1) != null) ? true : false));
Logger.WARNING(
- "Generated pipeHuge from " + materialName
- + "? "
- + ((ItemUtils.getItemStackOfAmountFromOreDict("pipe" + "Huge" + output, 1) != null) ? true
- : false));
+ "Generated pipeHuge from " + materialName
+ + "? "
+ + ((ItemUtils.getItemStackOfAmountFromOreDict("pipe" + "Huge" + output, 1) != null) ? true : false));
int eut = 120;
eut = (int) (8 * vMulti);
// Add the Three Shaped Recipes First
RecipeUtils.addShapedRecipe(
- pipePlate,
- "craftingToolWrench",
- pipePlate,
- pipePlate,
- null,
- pipePlate,
- pipePlate,
- "craftingToolHardHammer",
- pipePlate,
- ItemUtils.getItemStackOfAmountFromOreDict("pipe" + "Small" + output, 6));
+ pipePlate,
+ "craftingToolWrench",
+ pipePlate,
+ pipePlate,
+ null,
+ pipePlate,
+ pipePlate,
+ "craftingToolHardHammer",
+ pipePlate,
+ ItemUtils.getItemStackOfAmountFromOreDict("pipe" + "Small" + output, 6));
RecipeUtils.addShapedRecipe(
- pipePlate,
- pipePlate,
- pipePlate,
- "craftingToolWrench",
- null,
- "craftingToolHardHammer",
- pipePlate,
- pipePlate,
- pipePlate,
- ItemUtils.getItemStackOfAmountFromOreDict("pipe" + "Medium" + output, 2));
+ pipePlate,
+ pipePlate,
+ pipePlate,
+ "craftingToolWrench",
+ null,
+ "craftingToolHardHammer",
+ pipePlate,
+ pipePlate,
+ pipePlate,
+ ItemUtils.getItemStackOfAmountFromOreDict("pipe" + "Medium" + output, 2));
RecipeUtils.addShapedRecipe(
- pipePlate,
- "craftingToolHardHammer",
- pipePlate,
- pipePlate,
- null,
- pipePlate,
- pipePlate,
- "craftingToolWrench",
- pipePlate,
- ItemUtils.getItemStackOfAmountFromOreDict("pipe" + "Large" + output, 1));
+ pipePlate,
+ "craftingToolHardHammer",
+ pipePlate,
+ pipePlate,
+ null,
+ pipePlate,
+ pipePlate,
+ "craftingToolWrench",
+ pipePlate,
+ ItemUtils.getItemStackOfAmountFromOreDict("pipe" + "Large" + output, 1));
if (pipeIngot != null && ItemUtils.checkForInvalidItems(pipeIngot)) {
// 1 Clay Plate = 1 Clay Dust = 2 Clay Ball
int inputMultiplier = materialName.equals("Clay") ? 2 : 1;
GT_Values.RA.addExtruderRecipe(
- ItemUtils.getSimpleStack(pipeIngot, 1 * inputMultiplier),
- ItemList.Shape_Extruder_Pipe_Tiny.get(0),
- ItemUtils.getItemStackOfAmountFromOreDictNoBroken("pipe" + "Tiny" + output, 2),
- 5,
- eut);
+ ItemUtils.getSimpleStack(pipeIngot, 1 * inputMultiplier),
+ ItemList.Shape_Extruder_Pipe_Tiny.get(0),
+ ItemUtils.getItemStackOfAmountFromOreDictNoBroken("pipe" + "Tiny" + output, 2),
+ 5,
+ eut);
GT_Values.RA.addExtruderRecipe(
- ItemUtils.getSimpleStack(pipeIngot, 1 * inputMultiplier),
- ItemList.Shape_Extruder_Pipe_Small.get(0),
- ItemUtils.getItemStackOfAmountFromOreDict("pipe" + "Small" + output, 1),
- 10,
- eut);
+ ItemUtils.getSimpleStack(pipeIngot, 1 * inputMultiplier),
+ ItemList.Shape_Extruder_Pipe_Small.get(0),
+ ItemUtils.getItemStackOfAmountFromOreDict("pipe" + "Small" + output, 1),
+ 10,
+ eut);
GT_Values.RA.addExtruderRecipe(
- ItemUtils.getSimpleStack(pipeIngot, 3 * inputMultiplier),
- ItemList.Shape_Extruder_Pipe_Medium.get(0),
- ItemUtils.getItemStackOfAmountFromOreDict("pipe" + "Medium" + output, 1),
- 1 * 20,
- eut);
+ ItemUtils.getSimpleStack(pipeIngot, 3 * inputMultiplier),
+ ItemList.Shape_Extruder_Pipe_Medium.get(0),
+ ItemUtils.getItemStackOfAmountFromOreDict("pipe" + "Medium" + output, 1),
+ 1 * 20,
+ eut);
GT_Values.RA.addExtruderRecipe(
- ItemUtils.getSimpleStack(pipeIngot, 6 * inputMultiplier),
- ItemList.Shape_Extruder_Pipe_Large.get(0),
- ItemUtils.getItemStackOfAmountFromOreDict("pipe" + "Large" + output, 1),
- 2 * 20,
- eut);
+ ItemUtils.getSimpleStack(pipeIngot, 6 * inputMultiplier),
+ ItemList.Shape_Extruder_Pipe_Large.get(0),
+ ItemUtils.getItemStackOfAmountFromOreDict("pipe" + "Large" + output, 1),
+ 2 * 20,
+ eut);
GT_Values.RA.addExtruderRecipe(
- ItemUtils.getSimpleStack(pipeIngot, 12 * inputMultiplier),
- ItemList.Shape_Extruder_Pipe_Huge.get(0),
- ItemUtils.getItemStackOfAmountFromOreDict("pipe" + "Huge" + output, 1),
- 4 * 20,
- eut);
+ ItemUtils.getSimpleStack(pipeIngot, 12 * inputMultiplier),
+ ItemList.Shape_Extruder_Pipe_Huge.get(0),
+ ItemUtils.getItemStackOfAmountFromOreDict("pipe" + "Huge" + output, 1),
+ 4 * 20,
+ eut);
}
if ((eut < 512) && !output.equals("Void")) {
try {
final ItemStack pipePlateDouble = ItemUtils.getItemStackOfAmountFromOreDict("plateDouble" + output, 1)
- .copy();
+ .copy();
if (pipePlateDouble != null) {
RecipeUtils.addShapedRecipe(
- pipePlateDouble,
- "craftingToolHardHammer",
- pipePlateDouble,
- pipePlateDouble,
- null,
- pipePlateDouble,
- pipePlateDouble,
- "craftingToolWrench",
- pipePlateDouble,
- ItemUtils.getItemStackOfAmountFromOreDict("pipe" + "Huge" + output, 1));
+ pipePlateDouble,
+ "craftingToolHardHammer",
+ pipePlateDouble,
+ pipePlateDouble,
+ null,
+ pipePlateDouble,
+ pipePlateDouble,
+ "craftingToolWrench",
+ pipePlateDouble,
+ ItemUtils.getItemStackOfAmountFromOreDict("pipe" + "Huge" + output, 1));
} else {
Logger.INFO(
- "Failed to add a recipe for " + materialName
- + " Huge pipes. Double plates probably do not exist.");
+ "Failed to add a recipe for " + materialName
+ + " Huge pipes. Double plates probably do not exist.");
}
} catch (Throwable t) {
t.printStackTrace();
@@ -973,131 +980,122 @@ public class GregtechConduits {
// Adds manual crafting recipe
if (ItemUtils.checkForInvalidItems(new ItemStack[] { aPlate, aWire01 })) {
- RecipeUtils.addShapedRecipe(
- aPlate,
- CI.craftingToolWireCutter,
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- aWire01);
+ RecipeUtils
+ .addShapedRecipe(aPlate, CI.craftingToolWireCutter, null, null, null, null, null, null, null, aWire01);
}
// Wire mill
- if (ItemUtils.checkForInvalidItems(
- new ItemStack[] { aIngot, aWire01, aWire02, aWire04, aWire08, aWire12, aWire16 })) {
+ if (ItemUtils
+ .checkForInvalidItems(new ItemStack[] { aIngot, aWire01, aWire02, aWire04, aWire08, aWire12, aWire16 })) {
GT_Values.RA.addWiremillRecipe(
- aMaterial.getIngot(1),
- GT_Utility.getIntegratedCircuit(1),
- aMaterial.getWire01(2),
- 100,
- 4);
+ aMaterial.getIngot(1),
+ GT_Utility.getIntegratedCircuit(1),
+ aMaterial.getWire01(2),
+ 100,
+ 4);
GT_Values.RA.addWiremillRecipe(
- aMaterial.getIngot(1),
- GT_Utility.getIntegratedCircuit(2),
- aMaterial.getWire02(1),
- 150,
- 4);
+ aMaterial.getIngot(1),
+ GT_Utility.getIntegratedCircuit(2),
+ aMaterial.getWire02(1),
+ 150,
+ 4);
GT_Values.RA.addWiremillRecipe(
- aMaterial.getIngot(2),
- GT_Utility.getIntegratedCircuit(4),
- aMaterial.getWire04(1),
- 200,
- 4);
+ aMaterial.getIngot(2),
+ GT_Utility.getIntegratedCircuit(4),
+ aMaterial.getWire04(1),
+ 200,
+ 4);
GT_Values.RA.addWiremillRecipe(
- aMaterial.getIngot(4),
- GT_Utility.getIntegratedCircuit(8),
- aMaterial.getWire08(1),
- 250,
- 4);
+ aMaterial.getIngot(4),
+ GT_Utility.getIntegratedCircuit(8),
+ aMaterial.getWire08(1),
+ 250,
+ 4);
GT_Values.RA.addWiremillRecipe(
- aMaterial.getIngot(6),
- GT_Utility.getIntegratedCircuit(12),
- aMaterial.getWire12(1),
- 300,
- 4);
+ aMaterial.getIngot(6),
+ GT_Utility.getIntegratedCircuit(12),
+ aMaterial.getWire12(1),
+ 300,
+ 4);
GT_Values.RA.addWiremillRecipe(
- aMaterial.getIngot(8),
- GT_Utility.getIntegratedCircuit(16),
- aMaterial.getWire16(1),
- 350,
- 4);
+ aMaterial.getIngot(8),
+ GT_Utility.getIntegratedCircuit(16),
+ aMaterial.getWire16(1),
+ 350,
+ 4);
}
if (ItemUtils
- .checkForInvalidItems(new ItemStack[] { aRod, aWire01, aWire02, aWire04, aWire08, aWire12, aWire16 })) {
+ .checkForInvalidItems(new ItemStack[] { aRod, aWire01, aWire02, aWire04, aWire08, aWire12, aWire16 })) {
GT_Values.RA.addWiremillRecipe(
- aMaterial.getRod(1),
- GT_Utility.getIntegratedCircuit(1),
- aMaterial.getWire01(1),
- 50,
- 4);
+ aMaterial.getRod(1),
+ GT_Utility.getIntegratedCircuit(1),
+ aMaterial.getWire01(1),
+ 50,
+ 4);
GT_Values.RA.addWiremillRecipe(
- aMaterial.getRod(2),
- GT_Utility.getIntegratedCircuit(2),
- aMaterial.getWire02(1),
- 100,
- 4);
+ aMaterial.getRod(2),
+ GT_Utility.getIntegratedCircuit(2),
+ aMaterial.getWire02(1),
+ 100,
+ 4);
GT_Values.RA.addWiremillRecipe(
- aMaterial.getRod(4),
- GT_Utility.getIntegratedCircuit(4),
- aMaterial.getWire04(1),
- 150,
- 4);
+ aMaterial.getRod(4),
+ GT_Utility.getIntegratedCircuit(4),
+ aMaterial.getWire04(1),
+ 150,
+ 4);
GT_Values.RA.addWiremillRecipe(
- aMaterial.getRod(8),
- GT_Utility.getIntegratedCircuit(8),
- aMaterial.getWire08(1),
- 200,
- 4);
+ aMaterial.getRod(8),
+ GT_Utility.getIntegratedCircuit(8),
+ aMaterial.getWire08(1),
+ 200,
+ 4);
GT_Values.RA.addWiremillRecipe(
- aMaterial.getRod(12),
- GT_Utility.getIntegratedCircuit(12),
- aMaterial.getWire12(1),
- 250,
- 4);
+ aMaterial.getRod(12),
+ GT_Utility.getIntegratedCircuit(12),
+ aMaterial.getWire12(1),
+ 250,
+ 4);
GT_Values.RA.addWiremillRecipe(
- aMaterial.getRod(16),
- GT_Utility.getIntegratedCircuit(16),
- aMaterial.getWire16(1),
- 300,
- 4);
+ aMaterial.getRod(16),
+ GT_Utility.getIntegratedCircuit(16),
+ aMaterial.getWire16(1),
+ 300,
+ 4);
}
if (ItemUtils.checkForInvalidItems(new ItemStack[] { aIngot, aFineWire })) {
GT_Values.RA.addWiremillRecipe(
- aMaterial.getIngot(1),
- GT_Utility.getIntegratedCircuit(3),
- aMaterial.getFineWire(8),
- 100,
- 4);
+ aMaterial.getIngot(1),
+ GT_Utility.getIntegratedCircuit(3),
+ aMaterial.getFineWire(8),
+ 100,
+ 4);
}
if (ItemUtils.checkForInvalidItems(new ItemStack[] { aRod, aFineWire })) {
GT_Values.RA.addWiremillRecipe(
- aMaterial.getRod(1),
- GT_Utility.getIntegratedCircuit(3),
- aMaterial.getFineWire(4),
- 50,
- 4);
+ aMaterial.getRod(1),
+ GT_Utility.getIntegratedCircuit(3),
+ aMaterial.getFineWire(4),
+ 50,
+ 4);
}
if (ItemUtils.checkForInvalidItems(new ItemStack[] { aWire01, aFineWire })) {
GT_Values.RA.addWiremillRecipe(
- aMaterial.getWire01(1),
- GT_Utility.getIntegratedCircuit(1),
- aMaterial.getFineWire(4),
- 200,
- 8);
+ aMaterial.getWire01(1),
+ GT_Utility.getIntegratedCircuit(1),
+ aMaterial.getFineWire(4),
+ 200,
+ 8);
}
// Extruder
if (ItemUtils.checkForInvalidItems(new ItemStack[] { aIngot, aWire01 })) {
GT_Values.RA
- .addExtruderRecipe(aIngot, ItemList.Shape_Extruder_Wire.get(0), aMaterial.getWire01(2), 196, 96);
+ .addExtruderRecipe(aIngot, ItemList.Shape_Extruder_Wire.get(0), aMaterial.getWire01(2), 196, 96);
}
if (ItemUtils.checkForInvalidItems(new ItemStack[] { aCable01, aWire01 })) {
@@ -1168,75 +1166,75 @@ public class GregtechConduits {
// 1x -> 8x
if (ItemUtils.checkForInvalidItems(new ItemStack[] { aWire01, aWire08 })) {
RecipeUtils.addShapelessGregtechRecipe(
- new ItemStack[] { aWire01, aWire01, aWire01, aWire01, aWire01, aWire01, aWire01, aWire01 },
- aWire08);
+ new ItemStack[] { aWire01, aWire01, aWire01, aWire01, aWire01, aWire01, aWire01, aWire01 },
+ aWire08);
}
// Wire to Cable
// 1x
if (ItemUtils.checkForInvalidItems(new ItemStack[] { aWire01, aCable01 })) {
GT_Values.RA.addAssemblerRecipe(
- aWire01,
- CI.getNumberedCircuit(24),
- FluidUtils.getFluidStack("molten.rubber", 144),
- aCable01,
- 100,
- 8);
+ aWire01,
+ CI.getNumberedCircuit(24),
+ FluidUtils.getFluidStack("molten.rubber", 144),
+ aCable01,
+ 100,
+ 8);
}
// 2x
if (ItemUtils.checkForInvalidItems(new ItemStack[] { aWire02, aCable02 })) {
GT_Values.RA.addAssemblerRecipe(
- aWire02,
- CI.getNumberedCircuit(24),
- FluidUtils.getFluidStack("molten.rubber", 144),
- aCable02,
- 100,
- 8);
+ aWire02,
+ CI.getNumberedCircuit(24),
+ FluidUtils.getFluidStack("molten.rubber", 144),
+ aCable02,
+ 100,
+ 8);
}
// 4x
if (ItemUtils.checkForInvalidItems(new ItemStack[] { aWire04, aCable04 })) {
GT_Values.RA.addAssemblerRecipe(
- aWire04,
- CI.getNumberedCircuit(24),
- FluidUtils.getFluidStack("molten.rubber", 288),
- aCable04,
- 100,
- 8);
+ aWire04,
+ CI.getNumberedCircuit(24),
+ FluidUtils.getFluidStack("molten.rubber", 288),
+ aCable04,
+ 100,
+ 8);
}
// 8x
if (ItemUtils.checkForInvalidItems(new ItemStack[] { aWire08, aCable08 })) {
GT_Values.RA.addAssemblerRecipe(
- aWire08,
- CI.getNumberedCircuit(24),
- FluidUtils.getFluidStack("molten.rubber", 432),
- aCable08,
- 100,
- 8);
+ aWire08,
+ CI.getNumberedCircuit(24),
+ FluidUtils.getFluidStack("molten.rubber", 432),
+ aCable08,
+ 100,
+ 8);
}
// 12x
if (ItemUtils.checkForInvalidItems(new ItemStack[] { aWire12, aCable12 })) {
GT_Values.RA.addAssemblerRecipe(
- aWire12,
- CI.getNumberedCircuit(24),
- FluidUtils.getFluidStack("molten.rubber", 576),
- aCable12,
- 100,
- 8);
+ aWire12,
+ CI.getNumberedCircuit(24),
+ FluidUtils.getFluidStack("molten.rubber", 576),
+ aCable12,
+ 100,
+ 8);
}
// 16x
if (ItemUtils.checkForInvalidItems(new ItemStack[] { aWire16, aCable16 })) {
GT_Values.RA.addAssemblerRecipe(
- aWire16,
- CI.getNumberedCircuit(24),
- FluidUtils.getFluidStack("molten.rubber", 720),
- aCable16,
- 100,
- 8);
+ aWire16,
+ CI.getNumberedCircuit(24),
+ FluidUtils.getFluidStack("molten.rubber", 720),
+ aCable16,
+ 100,
+ 8);
}
// Assemble small wires into bigger wires
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechCustomHatches.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechCustomHatches.java
index 8e498a1d3e..148ea9bc68 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechCustomHatches.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechCustomHatches.java
@@ -33,131 +33,134 @@ public class GregtechCustomHatches {
private static void run1() {
GregtechItemList.Hatch_Input_Cryotheum.set(
- new GT_MetaTileEntity_Hatch_CustomFluidBase(
- FluidUtils.getFluidStack("cryotheum", 1).getFluid(), // Fluid
- // to
- // resitrct
- // hatch
- // to
- 128000, // Capacity
- 967, // ID
- "hatch.cryotheum.input.tier.00", // unlocal name
- "Cryotheum Cooling Hatch" // Local name
- ).getStackForm(1L));
+ new GT_MetaTileEntity_Hatch_CustomFluidBase(
+ FluidUtils.getFluidStack("cryotheum", 1)
+ .getFluid(), // Fluid
+ // to
+ // resitrct
+ // hatch
+ // to
+ 128000, // Capacity
+ 967, // ID
+ "hatch.cryotheum.input.tier.00", // unlocal name
+ "Cryotheum Cooling Hatch" // Local name
+ ).getStackForm(1L));
GregtechItemList.Hatch_Input_Pyrotheum.set(
- new GT_MetaTileEntity_Hatch_CustomFluidBase(
- FluidUtils.getFluidStack("pyrotheum", 1).getFluid(), // Fluid
- // to
- // resitrct
- // hatch
- // to
- 128000, // Capacity
- 968, // ID
- "hatch.pyrotheum.input.tier.00", // unlocal name
- "Pyrotheum Heating Vent" // Local name
- ).getStackForm(1L));
+ new GT_MetaTileEntity_Hatch_CustomFluidBase(
+ FluidUtils.getFluidStack("pyrotheum", 1)
+ .getFluid(), // Fluid
+ // to
+ // resitrct
+ // hatch
+ // to
+ 128000, // Capacity
+ 968, // ID
+ "hatch.pyrotheum.input.tier.00", // unlocal name
+ "Pyrotheum Heating Vent" // Local name
+ ).getStackForm(1L));
GregtechItemList.Hatch_Input_Naquadah.set(
- new GT_MetaTileEntity_Hatch_Naquadah(
- 969, // ID
- "hatch.naquadah.input.tier.00", // unlocal name
- "Naquadah Reactor Input hatch" // Local name
- ).getStackForm(1L));
+ new GT_MetaTileEntity_Hatch_Naquadah(
+ 969, // ID
+ "hatch.naquadah.input.tier.00", // unlocal name
+ "Naquadah Reactor Input hatch" // Local name
+ ).getStackForm(1L));
GregtechItemList.Hatch_Input_TurbineHousing.set(
- new GT_MetaTileEntity_Hatch_TurbineProvider(
- 31025, // ID
- "hatch.turbine.input.tier.00", // unlocal name
- "Turbine Housing", // Local name
- 8).getStackForm(1L));
+ new GT_MetaTileEntity_Hatch_TurbineProvider(
+ 31025, // ID
+ "hatch.turbine.input.tier.00", // unlocal name
+ "Turbine Housing", // Local name
+ 8).getStackForm(1L));
// Multiblock Air Intake Hatch
GregtechItemList.Hatch_Air_Intake.set(
- new GT_MetaTileEntity_Hatch_AirIntake(861, "hatch.air.intake.tier.00", "Air Intake Hatch", 5)
- .getStackForm(1L));
+ new GT_MetaTileEntity_Hatch_AirIntake(861, "hatch.air.intake.tier.00", "Air Intake Hatch", 5)
+ .getStackForm(1L));
GregtechItemList.Hatch_Air_Intake_Extreme.set(
- new GT_MetaTileEntity_Hatch_AirIntake_Extreme(
- 31070,
- "hatch.air.intake.tier.01",
- "Extreme Air Intake Hatch",
- 6).getStackForm(1L));
+ new GT_MetaTileEntity_Hatch_AirIntake_Extreme(
+ 31070,
+ "hatch.air.intake.tier.01",
+ "Extreme Air Intake Hatch",
+ 6).getStackForm(1L));
// Multiblock Reservoir Hatch
GregtechItemList.Hatch_Reservoir.set(
- new GT_MetaTileEntity_Hatch_Reservoir(31071, "hatch.water.intake.tier.00", "Reservoir Hatch", 4)
- .getStackForm(1L));
+ new GT_MetaTileEntity_Hatch_Reservoir(31071, "hatch.water.intake.tier.00", "Reservoir Hatch", 4)
+ .getStackForm(1L));
// Steam Hatch
GregtechItemList.Hatch_Input_Steam.set(
- new GT_MetaTileEntity_Hatch_CustomFluidBase(
- FluidUtils.getSteam(1).getFluid(), // Fluid
- // to
- // resitrct
- // hatch
- // to
- 64000, // Capacity
- 31040, // ID
- "hatch.steam.input.tier.00", // unlocal name
- "Steam Hatch" // Local name
- ).getStackForm(1L));
+ new GT_MetaTileEntity_Hatch_CustomFluidBase(
+ FluidUtils.getSteam(1)
+ .getFluid(), // Fluid
+ // to
+ // resitrct
+ // hatch
+ // to
+ 64000, // Capacity
+ 31040, // ID
+ "hatch.steam.input.tier.00", // unlocal name
+ "Steam Hatch" // Local name
+ ).getStackForm(1L));
}
private static void run2() {
GregtechItemList.Hatch_Muffler_Adv_LV.set(
- (new GT_MetaTileEntity_Hatch_Muffler_Adv(
- 30001,
- "hatch.muffler.adv.tier.01",
- "Advanced Muffler Hatch (LV)",
- 1)).getStackForm(1L));
+ (new GT_MetaTileEntity_Hatch_Muffler_Adv(
+ 30001,
+ "hatch.muffler.adv.tier.01",
+ "Advanced Muffler Hatch (LV)",
+ 1)).getStackForm(1L));
GregtechItemList.Hatch_Muffler_Adv_MV.set(
- (new GT_MetaTileEntity_Hatch_Muffler_Adv(
- 30002,
- "hatch.muffler.adv.tier.02",
- "Advanced Muffler Hatch (MV)",
- 2)).getStackForm(1L));
+ (new GT_MetaTileEntity_Hatch_Muffler_Adv(
+ 30002,
+ "hatch.muffler.adv.tier.02",
+ "Advanced Muffler Hatch (MV)",
+ 2)).getStackForm(1L));
GregtechItemList.Hatch_Muffler_Adv_HV.set(
- (new GT_MetaTileEntity_Hatch_Muffler_Adv(
- 30003,
- "hatch.muffler.adv.tier.03",
- "Advanced Muffler Hatch (HV)",
- 3)).getStackForm(1L));
+ (new GT_MetaTileEntity_Hatch_Muffler_Adv(
+ 30003,
+ "hatch.muffler.adv.tier.03",
+ "Advanced Muffler Hatch (HV)",
+ 3)).getStackForm(1L));
GregtechItemList.Hatch_Muffler_Adv_EV.set(
- (new GT_MetaTileEntity_Hatch_Muffler_Adv(
- 30004,
- "hatch.muffler.adv.tier.04",
- "Advanced Muffler Hatch (EV)",
- 4)).getStackForm(1L));
+ (new GT_MetaTileEntity_Hatch_Muffler_Adv(
+ 30004,
+ "hatch.muffler.adv.tier.04",
+ "Advanced Muffler Hatch (EV)",
+ 4)).getStackForm(1L));
GregtechItemList.Hatch_Muffler_Adv_IV.set(
- (new GT_MetaTileEntity_Hatch_Muffler_Adv(
- 30005,
- "hatch.muffler.adv.tier.05",
- "Advanced Muffler Hatch (IV)",
- 5)).getStackForm(1L));
+ (new GT_MetaTileEntity_Hatch_Muffler_Adv(
+ 30005,
+ "hatch.muffler.adv.tier.05",
+ "Advanced Muffler Hatch (IV)",
+ 5)).getStackForm(1L));
GregtechItemList.Hatch_Muffler_Adv_LuV.set(
- (new GT_MetaTileEntity_Hatch_Muffler_Adv(
- 30006,
- "hatch.muffler.adv.tier.06",
- "Advanced Muffler Hatch (LuV)",
- 6)).getStackForm(1L));
+ (new GT_MetaTileEntity_Hatch_Muffler_Adv(
+ 30006,
+ "hatch.muffler.adv.tier.06",
+ "Advanced Muffler Hatch (LuV)",
+ 6)).getStackForm(1L));
GregtechItemList.Hatch_Muffler_Adv_ZPM.set(
- (new GT_MetaTileEntity_Hatch_Muffler_Adv(
- 30007,
- "hatch.muffler.adv.tier.07",
- "Advanced Muffler Hatch (ZPM)",
- 7)).getStackForm(1L));
+ (new GT_MetaTileEntity_Hatch_Muffler_Adv(
+ 30007,
+ "hatch.muffler.adv.tier.07",
+ "Advanced Muffler Hatch (ZPM)",
+ 7)).getStackForm(1L));
GregtechItemList.Hatch_Muffler_Adv_UV.set(
- (new GT_MetaTileEntity_Hatch_Muffler_Adv(
- 30008,
- "hatch.muffler.adv.tier.08",
- "Advanced Muffler Hatch (UV)",
- 8)).getStackForm(1L));
+ (new GT_MetaTileEntity_Hatch_Muffler_Adv(
+ 30008,
+ "hatch.muffler.adv.tier.08",
+ "Advanced Muffler Hatch (UV)",
+ 8)).getStackForm(1L));
GregtechItemList.Hatch_Muffler_Adv_MAX.set(
- (new GT_MetaTileEntity_Hatch_Muffler_Adv(
- 30009,
- "hatch.muffler.adv.tier.09",
- "Advanced Muffler Hatch (UHV)",
- 9)).getStackForm(1L));
+ (new GT_MetaTileEntity_Hatch_Muffler_Adv(
+ 30009,
+ "hatch.muffler.adv.tier.09",
+ "Advanced Muffler Hatch (UHV)",
+ 9)).getStackForm(1L));
}
private static void run3() {
@@ -168,78 +171,78 @@ public class GregtechCustomHatches {
int aStartID = 30022;
GregtechItemList.Hatch_SuperBus_Input_LV.set(
- ((IMetaTileEntity) makeInputBus(aStartID++, "hatch.superbus.input.tier.01", "Super Bus (I) (LV)", 1))
- .getStackForm(1L));
+ ((IMetaTileEntity) makeInputBus(aStartID++, "hatch.superbus.input.tier.01", "Super Bus (I) (LV)", 1))
+ .getStackForm(1L));
GregtechItemList.Hatch_SuperBus_Input_MV.set(
- ((IMetaTileEntity) makeInputBus(aStartID++, "hatch.superbus.input.tier.02", "Super Bus (I) (MV)", 2))
- .getStackForm(1L));
+ ((IMetaTileEntity) makeInputBus(aStartID++, "hatch.superbus.input.tier.02", "Super Bus (I) (MV)", 2))
+ .getStackForm(1L));
GregtechItemList.Hatch_SuperBus_Input_HV.set(
- ((IMetaTileEntity) makeInputBus(aStartID++, "hatch.superbus.input.tier.03", "Super Bus (I) (HV)", 3))
- .getStackForm(1L));
+ ((IMetaTileEntity) makeInputBus(aStartID++, "hatch.superbus.input.tier.03", "Super Bus (I) (HV)", 3))
+ .getStackForm(1L));
GregtechItemList.Hatch_SuperBus_Input_EV.set(
- ((IMetaTileEntity) makeInputBus(aStartID++, "hatch.superbus.input.tier.04", "Super Bus (I) (EV)", 4))
- .getStackForm(1L));
+ ((IMetaTileEntity) makeInputBus(aStartID++, "hatch.superbus.input.tier.04", "Super Bus (I) (EV)", 4))
+ .getStackForm(1L));
GregtechItemList.Hatch_SuperBus_Input_IV.set(
- ((IMetaTileEntity) makeInputBus(aStartID++, "hatch.superbus.input.tier.05", "Super Bus (I) (IV)", 5))
- .getStackForm(1L));
+ ((IMetaTileEntity) makeInputBus(aStartID++, "hatch.superbus.input.tier.05", "Super Bus (I) (IV)", 5))
+ .getStackForm(1L));
GregtechItemList.Hatch_SuperBus_Input_LuV.set(
- ((IMetaTileEntity) makeInputBus(aStartID++, "hatch.superbus.input.tier.06", "Super Bus (I) (LuV)", 6))
- .getStackForm(1L));
+ ((IMetaTileEntity) makeInputBus(aStartID++, "hatch.superbus.input.tier.06", "Super Bus (I) (LuV)", 6))
+ .getStackForm(1L));
GregtechItemList.Hatch_SuperBus_Input_ZPM.set(
- ((IMetaTileEntity) makeInputBus(aStartID++, "hatch.superbus.input.tier.07", "Super Bus (I) (ZPM)", 7))
- .getStackForm(1L));
+ ((IMetaTileEntity) makeInputBus(aStartID++, "hatch.superbus.input.tier.07", "Super Bus (I) (ZPM)", 7))
+ .getStackForm(1L));
GregtechItemList.Hatch_SuperBus_Input_UV.set(
- ((IMetaTileEntity) makeInputBus(aStartID++, "hatch.superbus.input.tier.08", "Super Bus (I) (UV)", 8))
- .getStackForm(1L));
+ ((IMetaTileEntity) makeInputBus(aStartID++, "hatch.superbus.input.tier.08", "Super Bus (I) (UV)", 8))
+ .getStackForm(1L));
GregtechItemList.Hatch_SuperBus_Input_MAX.set(
- ((IMetaTileEntity) makeInputBus(aStartID, "hatch.superbus.input.tier.09", "Super Bus (I) (UHV)", 9))
- .getStackForm(1L));
+ ((IMetaTileEntity) makeInputBus(aStartID, "hatch.superbus.input.tier.09", "Super Bus (I) (UHV)", 9))
+ .getStackForm(1L));
/*
* Super Output Busses
*/
aStartID = 30032;
GregtechItemList.Hatch_SuperBus_Output_LV.set(
- ((IMetaTileEntity) makeOutputBus(aStartID++, "hatch.superbus.output.tier.01", "Super Bus (O) (LV)", 1))
- .getStackForm(1L));
+ ((IMetaTileEntity) makeOutputBus(aStartID++, "hatch.superbus.output.tier.01", "Super Bus (O) (LV)", 1))
+ .getStackForm(1L));
GregtechItemList.Hatch_SuperBus_Output_MV.set(
- ((IMetaTileEntity) makeOutputBus(aStartID++, "hatch.superbus.output.tier.02", "Super Bus (O) (MV)", 2))
- .getStackForm(1L));
+ ((IMetaTileEntity) makeOutputBus(aStartID++, "hatch.superbus.output.tier.02", "Super Bus (O) (MV)", 2))
+ .getStackForm(1L));
GregtechItemList.Hatch_SuperBus_Output_HV.set(
- ((IMetaTileEntity) makeOutputBus(aStartID++, "hatch.superbus.output.tier.03", "Super Bus (O) (HV)", 3))
- .getStackForm(1L));
+ ((IMetaTileEntity) makeOutputBus(aStartID++, "hatch.superbus.output.tier.03", "Super Bus (O) (HV)", 3))
+ .getStackForm(1L));
GregtechItemList.Hatch_SuperBus_Output_EV.set(
- ((IMetaTileEntity) makeOutputBus(aStartID++, "hatch.superbus.output.tier.04", "Super Bus (O) (EV)", 4))
- .getStackForm(1L));
+ ((IMetaTileEntity) makeOutputBus(aStartID++, "hatch.superbus.output.tier.04", "Super Bus (O) (EV)", 4))
+ .getStackForm(1L));
GregtechItemList.Hatch_SuperBus_Output_IV.set(
- ((IMetaTileEntity) makeOutputBus(aStartID++, "hatch.superbus.output.tier.05", "Super Bus (O) (IV)", 5))
- .getStackForm(1L));
+ ((IMetaTileEntity) makeOutputBus(aStartID++, "hatch.superbus.output.tier.05", "Super Bus (O) (IV)", 5))
+ .getStackForm(1L));
GregtechItemList.Hatch_SuperBus_Output_LuV.set(
- ((IMetaTileEntity) makeOutputBus(aStartID++, "hatch.superbus.output.tier.06", "Super Bus (O) (LuV)", 6))
- .getStackForm(1L));
+ ((IMetaTileEntity) makeOutputBus(aStartID++, "hatch.superbus.output.tier.06", "Super Bus (O) (LuV)", 6))
+ .getStackForm(1L));
GregtechItemList.Hatch_SuperBus_Output_ZPM.set(
- ((IMetaTileEntity) makeOutputBus(aStartID++, "hatch.superbus.output.tier.07", "Super Bus (O) (ZPM)", 7))
- .getStackForm(1L));
+ ((IMetaTileEntity) makeOutputBus(aStartID++, "hatch.superbus.output.tier.07", "Super Bus (O) (ZPM)", 7))
+ .getStackForm(1L));
GregtechItemList.Hatch_SuperBus_Output_UV.set(
- ((IMetaTileEntity) makeOutputBus(aStartID++, "hatch.superbus.output.tier.08", "Super Bus (O) (UV)", 8))
- .getStackForm(1L));
+ ((IMetaTileEntity) makeOutputBus(aStartID++, "hatch.superbus.output.tier.08", "Super Bus (O) (UV)", 8))
+ .getStackForm(1L));
GregtechItemList.Hatch_SuperBus_Output_MAX.set(
- ((IMetaTileEntity) makeOutputBus(aStartID, "hatch.superbus.output.tier.09", "Super Bus (O) (UHV)", 9))
- .getStackForm(1L));
+ ((IMetaTileEntity) makeOutputBus(aStartID, "hatch.superbus.output.tier.09", "Super Bus (O) (UHV)", 9))
+ .getStackForm(1L));
}
private static GT_MetaTileEntity_SuperBus_Input makeInputBus(int id, String unlocalizedName, String localizedName,
- int tier) {
+ int tier) {
return new GT_MetaTileEntity_SuperBus_Input(id, unlocalizedName, localizedName, tier);
}
private static GT_MetaTileEntity_SuperBus_Output makeOutputBus(int id, String unlocalizedName, String localizedName,
- int tier) {
+ int tier) {
return new GT_MetaTileEntity_SuperBus_Output(id, unlocalizedName, localizedName, tier);
}
private static GT_MetaTileEntity_ChiselBus makeChiselBus(int id, String unlocalizedName, String localizedName,
- int tier) {
+ int tier) {
return new GT_MetaTileEntity_ChiselBus(id, unlocalizedName, localizedName, tier);
}
@@ -247,11 +250,11 @@ public class GregtechCustomHatches {
int aID = 31778; // 31778 - 31780
GregtechItemList.GT_MetaTileEntity_ChiselBus_LV
- .set((makeChiselBus(aID++, "hatch.chisel.tier.01", "Chisel Bus I", 1)).getStackForm(1L));
+ .set((makeChiselBus(aID++, "hatch.chisel.tier.01", "Chisel Bus I", 1)).getStackForm(1L));
GregtechItemList.GT_MetaTileEntity_ChiselBus_MV
- .set((makeChiselBus(aID++, "hatch.chisel.tier.02", "Chisel Bus II", 2)).getStackForm(1L));
+ .set((makeChiselBus(aID++, "hatch.chisel.tier.02", "Chisel Bus II", 2)).getStackForm(1L));
GregtechItemList.GT_MetaTileEntity_ChiselBus_HV
- .set((makeChiselBus(aID++, "hatch.chisel.tier.03", "Chisel Bus III", 3)).getStackForm(1L));
+ .set((makeChiselBus(aID++, "hatch.chisel.tier.03", "Chisel Bus III", 3)).getStackForm(1L));
}
@@ -259,17 +262,17 @@ public class GregtechCustomHatches {
int aID = 31781; // 31781-31784
GregtechItemList.GT_MetaTileEntity_Solidifier_I.set(
- new GT_MetaTileEntity_Hatch_Solidifier(aID++, "hatch.solidifier.tier.05", "Solidifier Hatch I", 5)
- .getStackForm(1L));
+ new GT_MetaTileEntity_Hatch_Solidifier(aID++, "hatch.solidifier.tier.05", "Solidifier Hatch I", 5)
+ .getStackForm(1L));
GregtechItemList.GT_MetaTileEntity_Solidifier_II.set(
- new GT_MetaTileEntity_Hatch_Solidifier(aID++, "hatch.solidifier.tier.06", "Solidifier Hatch II", 6)
- .getStackForm(1L));
+ new GT_MetaTileEntity_Hatch_Solidifier(aID++, "hatch.solidifier.tier.06", "Solidifier Hatch II", 6)
+ .getStackForm(1L));
GregtechItemList.GT_MetaTileEntity_Solidifier_III.set(
- new GT_MetaTileEntity_Hatch_Solidifier(aID++, "hatch.solidifier.tier.07", "Solidifier Hatch III", 7)
- .getStackForm(1L));
+ new GT_MetaTileEntity_Hatch_Solidifier(aID++, "hatch.solidifier.tier.07", "Solidifier Hatch III", 7)
+ .getStackForm(1L));
GregtechItemList.GT_MetaTileEntity_Solidifier_IV.set(
- new GT_MetaTileEntity_Hatch_Solidifier(aID, "hatch.solidifier.tier.08", "Solidifier Hatch IV", 8)
- .getStackForm(1L));
+ new GT_MetaTileEntity_Hatch_Solidifier(aID, "hatch.solidifier.tier.08", "Solidifier Hatch IV", 8)
+ .getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechCyclotron.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechCyclotron.java
index 6bdfafefb4..7a8c160feb 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechCyclotron.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechCyclotron.java
@@ -13,7 +13,7 @@ public class GregtechCyclotron {
private static void run1() {
GregtechItemList.COMET_Cyclotron.set(
- new GregtechMetaTileEntity_Cyclotron(828, "cyclotron.tier.single", "COMET - Compact Cyclotron", 6)
- .getStackForm(1L));
+ new GregtechMetaTileEntity_Cyclotron(828, "cyclotron.tier.single", "COMET - Compact Cyclotron", 6)
+ .getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechDehydrator.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechDehydrator.java
index 6ad68efbfe..4fccef139e 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechDehydrator.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechDehydrator.java
@@ -41,144 +41,159 @@ public class GregtechDehydrator {
// Make some coils by wrapping wire around a spool.
GT_Values.RA.stdBuilder()
- .itemInputs(
- new ItemStack(ModItems.itemDehydratorCoilWire, 4, 0),
- GT_OreDictUnificator.get(OrePrefixes.pipeMedium, Materials.Bronze, 1))
- .itemOutputs(coilT1).duration(8 * SECONDS).eut(TierEU.RECIPE_MV).addTo(assemblerRecipes);
+ .itemInputs(
+ new ItemStack(ModItems.itemDehydratorCoilWire, 4, 0),
+ GT_OreDictUnificator.get(OrePrefixes.pipeMedium, Materials.Bronze, 1))
+ .itemOutputs(coilT1)
+ .duration(8 * SECONDS)
+ .eut(TierEU.RECIPE_MV)
+ .addTo(assemblerRecipes);
GT_Values.RA.stdBuilder()
- .itemInputs(
- new ItemStack(ModItems.itemDehydratorCoilWire, 4, 1),
- GT_OreDictUnificator.get(OrePrefixes.pipeMedium, Materials.Steel, 1))
- .itemOutputs(coilT2).duration(8 * SECONDS).eut(TierEU.RECIPE_HV / 2).addTo(assemblerRecipes);
+ .itemInputs(
+ new ItemStack(ModItems.itemDehydratorCoilWire, 4, 1),
+ GT_OreDictUnificator.get(OrePrefixes.pipeMedium, Materials.Steel, 1))
+ .itemOutputs(coilT2)
+ .duration(8 * SECONDS)
+ .eut(TierEU.RECIPE_HV / 2)
+ .addTo(assemblerRecipes);
GT_Values.RA.stdBuilder()
- .itemInputs(
- new ItemStack(ModItems.itemDehydratorCoilWire, 4, 2),
- GT_OreDictUnificator.get(OrePrefixes.pipeMedium, Materials.StainlessSteel, 1))
- .itemOutputs(coilT3).duration(8 * SECONDS).eut(TierEU.RECIPE_HV).addTo(assemblerRecipes);
+ .itemInputs(
+ new ItemStack(ModItems.itemDehydratorCoilWire, 4, 2),
+ GT_OreDictUnificator.get(OrePrefixes.pipeMedium, Materials.StainlessSteel, 1))
+ .itemOutputs(coilT3)
+ .duration(8 * SECONDS)
+ .eut(TierEU.RECIPE_HV)
+ .addTo(assemblerRecipes);
GT_Values.RA.stdBuilder()
- .itemInputs(
- new ItemStack(ModItems.itemDehydratorCoilWire, 4, 3),
- GT_OreDictUnificator.get(OrePrefixes.pipeMedium, Materials.Titanium, 1))
- .itemOutputs(coilT4).duration(8 * SECONDS).eut(TierEU.RECIPE_EV / 2).addTo(assemblerRecipes);
+ .itemInputs(
+ new ItemStack(ModItems.itemDehydratorCoilWire, 4, 3),
+ GT_OreDictUnificator.get(OrePrefixes.pipeMedium, Materials.Titanium, 1))
+ .itemOutputs(coilT4)
+ .duration(8 * SECONDS)
+ .eut(TierEU.RECIPE_EV / 2)
+ .addTo(assemblerRecipes);
// Basic
GregtechItemList.GT_Dehydrator_MV.set(
- new GT_MetaTileEntity_BasicMachine_GT_Recipe(
- 911,
- "machine.dehydrator.tier.00",
- "Basic Dehydrator I",
- 2,
- new String[] { "This dehydrates your Grapes into Raisins.", CORE.GT_Tooltip.get() },
- GTPPRecipeMaps.chemicalDehydratorRecipes,
- 2,
- 9,
- true,
- SoundResource.NONE,
- SpecialEffects.NONE,
- "DEHYDRATOR",
- new Object[] { "ECE", "WMW", "GPG", 'M', HULL, 'P', ROBOT_ARM, 'E',
- OrePrefixes.wireFine.get(Materials.RedAlloy), 'C', CIRCUIT, 'W',
- OrePrefixes.cableGt04.get(Materials.Copper), 'G',
- OrePrefixes.gearGt.get(Materials.Steel) }).setRecipeCatalystPriority(6)
- .getStackForm(1L));
+ new GT_MetaTileEntity_BasicMachine_GT_Recipe(
+ 911,
+ "machine.dehydrator.tier.00",
+ "Basic Dehydrator I",
+ 2,
+ new String[] { "This dehydrates your Grapes into Raisins.", CORE.GT_Tooltip.get() },
+ GTPPRecipeMaps.chemicalDehydratorRecipes,
+ 2,
+ 9,
+ true,
+ SoundResource.NONE,
+ SpecialEffects.NONE,
+ "DEHYDRATOR",
+ new Object[] { "ECE", "WMW", "GPG", 'M', HULL, 'P', ROBOT_ARM, 'E',
+ OrePrefixes.wireFine.get(Materials.RedAlloy), 'C', CIRCUIT, 'W',
+ OrePrefixes.cableGt04.get(Materials.Copper), 'G', OrePrefixes.gearGt.get(Materials.Steel) })
+ .setRecipeCatalystPriority(6)
+ .getStackForm(1L));
GregtechItemList.GT_Dehydrator_HV.set(
- new GT_MetaTileEntity_BasicMachine_GT_Recipe(
- 912,
- "machine.dehydrator.tier.01",
- "Basic Dehydrator II",
- 3,
- new String[] { "This dehydrates your Grapes into Raisins.", CORE.GT_Tooltip.get() },
- GTPPRecipeMaps.chemicalDehydratorRecipes,
- 2,
- 9,
- true,
- SoundResource.NONE,
- SpecialEffects.NONE,
- "DEHYDRATOR",
- new Object[] { "ECE", "WMW", "GPG", 'M', HULL, 'P', ROBOT_ARM, 'E',
- OrePrefixes.wireFine.get(Materials.Electrum), 'C', CIRCUIT, 'W',
- OrePrefixes.cableGt04.get(Materials.Silver), 'G', ALLOY.POTIN.getGear(1) })
- .setRecipeCatalystPriority(5).getStackForm(1L));
+ new GT_MetaTileEntity_BasicMachine_GT_Recipe(
+ 912,
+ "machine.dehydrator.tier.01",
+ "Basic Dehydrator II",
+ 3,
+ new String[] { "This dehydrates your Grapes into Raisins.", CORE.GT_Tooltip.get() },
+ GTPPRecipeMaps.chemicalDehydratorRecipes,
+ 2,
+ 9,
+ true,
+ SoundResource.NONE,
+ SpecialEffects.NONE,
+ "DEHYDRATOR",
+ new Object[] { "ECE", "WMW", "GPG", 'M', HULL, 'P', ROBOT_ARM, 'E',
+ OrePrefixes.wireFine.get(Materials.Electrum), 'C', CIRCUIT, 'W',
+ OrePrefixes.cableGt04.get(Materials.Silver), 'G', ALLOY.POTIN.getGear(1) })
+ .setRecipeCatalystPriority(5)
+ .getStackForm(1L));
// Chemical
GregtechItemList.GT_Dehydrator_EV.set(
- new GT_MetaTileEntity_BasicMachine_GT_Recipe(
- 813,
- "advancedmachine.dehydrator.tier.01",
- "Chemical Dehydrator I",
- 4,
- new String[] { "A hangover is the way your body reacts to dehydration.",
- CORE.GT_Tooltip.get() },
- GTPPRecipeMaps.chemicalDehydratorRecipes,
- 2,
- 9,
- true,
- SoundResource.NONE,
- SpecialEffects.NONE,
- "DEHYDRATOR",
- new Object[] { "ECE", "WMW", "GPG", 'M', HULL, 'P', ROBOT_ARM, 'E', coilT1, 'C', CIRCUIT, 'W',
- OrePrefixes.cableGt04.get(Materials.Aluminium), 'G', ALLOY.TUMBAGA.getGear(1) })
- .setRecipeCatalystPriority(4).getStackForm(1L));
+ new GT_MetaTileEntity_BasicMachine_GT_Recipe(
+ 813,
+ "advancedmachine.dehydrator.tier.01",
+ "Chemical Dehydrator I",
+ 4,
+ new String[] { "A hangover is the way your body reacts to dehydration.", CORE.GT_Tooltip.get() },
+ GTPPRecipeMaps.chemicalDehydratorRecipes,
+ 2,
+ 9,
+ true,
+ SoundResource.NONE,
+ SpecialEffects.NONE,
+ "DEHYDRATOR",
+ new Object[] { "ECE", "WMW", "GPG", 'M', HULL, 'P', ROBOT_ARM, 'E', coilT1, 'C', CIRCUIT, 'W',
+ OrePrefixes.cableGt04.get(Materials.Aluminium), 'G', ALLOY.TUMBAGA.getGear(1) })
+ .setRecipeCatalystPriority(4)
+ .getStackForm(1L));
GregtechItemList.GT_Dehydrator_IV.set(
- new GT_MetaTileEntity_BasicMachine_GT_Recipe(
- 814,
- "advancedmachine.dehydrator.tier.02",
- "Chemical Dehydrator II",
- 5,
- new String[] { "A hangover is the way your body reacts to dehydration.",
- CORE.GT_Tooltip.get() },
- GTPPRecipeMaps.chemicalDehydratorRecipes,
- 2,
- 9,
- true,
- SoundResource.NONE,
- SpecialEffects.NONE,
- "DEHYDRATOR",
- new Object[] { "ECE", "WMW", "GPG", 'M', HULL, 'P', ROBOT_ARM, 'E', coilT2, 'C', CIRCUIT, 'W',
- OrePrefixes.cableGt04.get(Materials.Tungsten), 'G', ALLOY.INCONEL_690.getGear(1) })
- .setRecipeCatalystPriority(3).getStackForm(1L));
+ new GT_MetaTileEntity_BasicMachine_GT_Recipe(
+ 814,
+ "advancedmachine.dehydrator.tier.02",
+ "Chemical Dehydrator II",
+ 5,
+ new String[] { "A hangover is the way your body reacts to dehydration.", CORE.GT_Tooltip.get() },
+ GTPPRecipeMaps.chemicalDehydratorRecipes,
+ 2,
+ 9,
+ true,
+ SoundResource.NONE,
+ SpecialEffects.NONE,
+ "DEHYDRATOR",
+ new Object[] { "ECE", "WMW", "GPG", 'M', HULL, 'P', ROBOT_ARM, 'E', coilT2, 'C', CIRCUIT, 'W',
+ OrePrefixes.cableGt04.get(Materials.Tungsten), 'G', ALLOY.INCONEL_690.getGear(1) })
+ .setRecipeCatalystPriority(3)
+ .getStackForm(1L));
GregtechItemList.GT_Dehydrator_LuV.set(
- new GT_MetaTileEntity_BasicMachine_GT_Recipe(
- 815,
- "advancedmachine.dehydrator.tier.03",
- "Chemical Dehydrator III",
- 6,
- new String[] { "You could probably make space icecream with this..", CORE.GT_Tooltip.get() },
- GTPPRecipeMaps.chemicalDehydratorRecipes,
- 2,
- 9,
- true,
- SoundResource.NONE,
- SpecialEffects.NONE,
- "DEHYDRATOR",
- new Object[] { "ECE", "WMW", "GPG", 'M', HULL, 'P', ROBOT_ARM, 'E', coilT3, 'C', CIRCUIT, 'W',
- OrePrefixes.cableGt04.get(Materials.Naquadah), 'G', ALLOY.HASTELLOY_N.getGear(1) })
- .setRecipeCatalystPriority(2).getStackForm(1L));
+ new GT_MetaTileEntity_BasicMachine_GT_Recipe(
+ 815,
+ "advancedmachine.dehydrator.tier.03",
+ "Chemical Dehydrator III",
+ 6,
+ new String[] { "You could probably make space icecream with this..", CORE.GT_Tooltip.get() },
+ GTPPRecipeMaps.chemicalDehydratorRecipes,
+ 2,
+ 9,
+ true,
+ SoundResource.NONE,
+ SpecialEffects.NONE,
+ "DEHYDRATOR",
+ new Object[] { "ECE", "WMW", "GPG", 'M', HULL, 'P', ROBOT_ARM, 'E', coilT3, 'C', CIRCUIT, 'W',
+ OrePrefixes.cableGt04.get(Materials.Naquadah), 'G', ALLOY.HASTELLOY_N.getGear(1) })
+ .setRecipeCatalystPriority(2)
+ .getStackForm(1L));
GregtechItemList.GT_Dehydrator_ZPM.set(
- new GT_MetaTileEntity_BasicMachine_GT_Recipe(
- 816,
- "advancedmachine.dehydrator.tier.04",
- "Chemical Dehydrator IV",
- 7,
- new String[] { "You can definitely make space icecream with this..", CORE.GT_Tooltip.get() },
- GTPPRecipeMaps.chemicalDehydratorRecipes,
- 2,
- 9,
- true,
- SoundResource.NONE,
- SpecialEffects.NONE,
- "DEHYDRATOR",
- new Object[] { "ECE", "WMW", "GPG", 'M', HULL, 'P', ROBOT_ARM, 'E', coilT4, 'C', CIRCUIT, 'W',
- OrePrefixes.cableGt04.get(Materials.Osmium), 'G', ALLOY.ZERON_100.getGear(1) })
- .setRecipeCatalystPriority(1).getStackForm(1L));
+ new GT_MetaTileEntity_BasicMachine_GT_Recipe(
+ 816,
+ "advancedmachine.dehydrator.tier.04",
+ "Chemical Dehydrator IV",
+ 7,
+ new String[] { "You can definitely make space icecream with this..", CORE.GT_Tooltip.get() },
+ GTPPRecipeMaps.chemicalDehydratorRecipes,
+ 2,
+ 9,
+ true,
+ SoundResource.NONE,
+ SpecialEffects.NONE,
+ "DEHYDRATOR",
+ new Object[] { "ECE", "WMW", "GPG", 'M', HULL, 'P', ROBOT_ARM, 'E', coilT4, 'C', CIRCUIT, 'W',
+ OrePrefixes.cableGt04.get(Materials.Osmium), 'G', ALLOY.ZERON_100.getGear(1) })
+ .setRecipeCatalystPriority(1)
+ .getStackForm(1L));
// Advanced
GregtechItemList.Controller_Vacuum_Furnace.set(
- new GregtechMetaTileEntity_IndustrialDehydrator(995, "multimachine.adv.vacuumfurnace", "Utupu-Tanuri")
- .getStackForm(1L));
+ new GregtechMetaTileEntity_IndustrialDehydrator(995, "multimachine.adv.vacuumfurnace", "Utupu-Tanuri")
+ .getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechEnergyBuffer.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechEnergyBuffer.java
index 742e9f9ece..4aebd8a7b5 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechEnergyBuffer.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechEnergyBuffer.java
@@ -32,116 +32,110 @@ public class GregtechEnergyBuffer {
// Energy Buffers
GregtechItemList.Energy_Buffer_1by1_ULV.set(
- new GregtechMetaEnergyBuffer(770, "energybuffer.tier.00", "Ultra Low Voltage Energy Buffer", 0, "", 1)
- .getStackForm(1L));
+ new GregtechMetaEnergyBuffer(770, "energybuffer.tier.00", "Ultra Low Voltage Energy Buffer", 0, "", 1)
+ .getStackForm(1L));
GregtechItemList.Energy_Buffer_1by1_LV.set(
- new GregtechMetaEnergyBuffer(771, "energybuffer.tier.01", "Low Voltage Energy Buffer", 1, "", 1)
- .getStackForm(1L));
+ new GregtechMetaEnergyBuffer(771, "energybuffer.tier.01", "Low Voltage Energy Buffer", 1, "", 1)
+ .getStackForm(1L));
GregtechItemList.Energy_Buffer_1by1_MV.set(
- new GregtechMetaEnergyBuffer(772, "energybuffer.tier.02", "Medium Voltage Energy Buffer", 2, "", 1)
- .getStackForm(1L));
+ new GregtechMetaEnergyBuffer(772, "energybuffer.tier.02", "Medium Voltage Energy Buffer", 2, "", 1)
+ .getStackForm(1L));
GregtechItemList.Energy_Buffer_1by1_HV.set(
- new GregtechMetaEnergyBuffer(773, "energybuffer.tier.03", "High Voltage Energy Buffer", 3, "", 1)
- .getStackForm(1L));
+ new GregtechMetaEnergyBuffer(773, "energybuffer.tier.03", "High Voltage Energy Buffer", 3, "", 1)
+ .getStackForm(1L));
GregtechItemList.Energy_Buffer_1by1_EV.set(
- new GregtechMetaEnergyBuffer(774, "energybuffer.tier.04", "Extreme Voltage Energy Buffer", 4, "", 1)
- .getStackForm(1L));
+ new GregtechMetaEnergyBuffer(774, "energybuffer.tier.04", "Extreme Voltage Energy Buffer", 4, "", 1)
+ .getStackForm(1L));
GregtechItemList.Energy_Buffer_1by1_IV.set(
- new GregtechMetaEnergyBuffer(775, "energybuffer.tier.05", "Insane Voltage Energy Buffer", 5, "", 1)
- .getStackForm(1L));
+ new GregtechMetaEnergyBuffer(775, "energybuffer.tier.05", "Insane Voltage Energy Buffer", 5, "", 1)
+ .getStackForm(1L));
GregtechItemList.Energy_Buffer_1by1_LuV.set(
- new GregtechMetaEnergyBuffer(776, "energybuffer.tier.06", "Ludicrous Voltage Energy Buffer", 6, "", 1)
- .getStackForm(1L));
+ new GregtechMetaEnergyBuffer(776, "energybuffer.tier.06", "Ludicrous Voltage Energy Buffer", 6, "", 1)
+ .getStackForm(1L));
GregtechItemList.Energy_Buffer_1by1_ZPM.set(
- new GregtechMetaEnergyBuffer(777, "energybuffer.tier.07", "ZPM Voltage Energy Buffer", 7, "", 1)
- .getStackForm(1L));
+ new GregtechMetaEnergyBuffer(777, "energybuffer.tier.07", "ZPM Voltage Energy Buffer", 7, "", 1)
+ .getStackForm(1L));
GregtechItemList.Energy_Buffer_1by1_UV.set(
- new GregtechMetaEnergyBuffer(778, "energybuffer.tier.08", "Ultimate Voltage Energy Buffer", 8, "", 1)
- .getStackForm(1L));
+ new GregtechMetaEnergyBuffer(778, "energybuffer.tier.08", "Ultimate Voltage Energy Buffer", 8, "", 1)
+ .getStackForm(1L));
GregtechItemList.Energy_Buffer_1by1_MAX.set(
- new GregtechMetaEnergyBuffer(779, "energybuffer.tier.09", "MAX Voltage Energy Buffer", 9, "", 1)
- .getStackForm(1L));
+ new GregtechMetaEnergyBuffer(779, "energybuffer.tier.09", "MAX Voltage Energy Buffer", 9, "", 1)
+ .getStackForm(1L));
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Energy_Buffer_1by1_ULV.get(1L, new Object[0]),
- GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
- | GT_ModHandler.RecipeBits.REVERSIBLE
- | GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "WTW", "WMW", Character.valueOf('M'), ItemList.Hull_ULV, Character.valueOf('W'),
- OrePrefixes.wireGt08.get(Materials.Lead), Character.valueOf('T'),
- GregtechOreDictNames.buffer_core });
+ GregtechItemList.Energy_Buffer_1by1_ULV.get(1L, new Object[0]),
+ GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
+ | GT_ModHandler.RecipeBits.REVERSIBLE
+ | GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "WTW", "WMW", Character.valueOf('M'), ItemList.Hull_ULV, Character.valueOf('W'),
+ OrePrefixes.wireGt08.get(Materials.Lead), Character.valueOf('T'), GregtechOreDictNames.buffer_core });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Energy_Buffer_1by1_LV.get(1L, new Object[0]),
- GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
- | GT_ModHandler.RecipeBits.REVERSIBLE
- | GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "WTW", "WMW", Character.valueOf('M'), ItemList.Hull_LV, Character.valueOf('W'),
- OrePrefixes.wireGt08.get(Materials.Tin), Character.valueOf('T'),
- GregtechOreDictNames.buffer_core });
+ GregtechItemList.Energy_Buffer_1by1_LV.get(1L, new Object[0]),
+ GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
+ | GT_ModHandler.RecipeBits.REVERSIBLE
+ | GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "WTW", "WMW", Character.valueOf('M'), ItemList.Hull_LV, Character.valueOf('W'),
+ OrePrefixes.wireGt08.get(Materials.Tin), Character.valueOf('T'), GregtechOreDictNames.buffer_core });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Energy_Buffer_1by1_MV.get(1L, new Object[0]),
- GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
- | GT_ModHandler.RecipeBits.REVERSIBLE
- | GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "WTW", "WMW", Character.valueOf('M'), ItemList.Hull_MV, Character.valueOf('W'),
- OrePrefixes.wireGt08.get(Materials.AnyCopper), Character.valueOf('T'),
- GregtechOreDictNames.buffer_core });
+ GregtechItemList.Energy_Buffer_1by1_MV.get(1L, new Object[0]),
+ GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
+ | GT_ModHandler.RecipeBits.REVERSIBLE
+ | GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "WTW", "WMW", Character.valueOf('M'), ItemList.Hull_MV, Character.valueOf('W'),
+ OrePrefixes.wireGt08.get(Materials.AnyCopper), Character.valueOf('T'),
+ GregtechOreDictNames.buffer_core });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Energy_Buffer_1by1_HV.get(1L, new Object[0]),
- GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
- | GT_ModHandler.RecipeBits.REVERSIBLE
- | GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "WTW", "WMW", Character.valueOf('M'), ItemList.Hull_HV, Character.valueOf('W'),
- OrePrefixes.wireGt08.get(Materials.Gold), Character.valueOf('T'),
- GregtechOreDictNames.buffer_core });
+ GregtechItemList.Energy_Buffer_1by1_HV.get(1L, new Object[0]),
+ GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
+ | GT_ModHandler.RecipeBits.REVERSIBLE
+ | GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "WTW", "WMW", Character.valueOf('M'), ItemList.Hull_HV, Character.valueOf('W'),
+ OrePrefixes.wireGt08.get(Materials.Gold), Character.valueOf('T'), GregtechOreDictNames.buffer_core });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Energy_Buffer_1by1_EV.get(1L, new Object[0]),
- GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
- | GT_ModHandler.RecipeBits.REVERSIBLE
- | GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "WTW", "WMW", Character.valueOf('M'), ItemList.Hull_EV, Character.valueOf('W'),
- OrePrefixes.wireGt08.get(Materials.Aluminium), Character.valueOf('T'),
- GregtechOreDictNames.buffer_core });
+ GregtechItemList.Energy_Buffer_1by1_EV.get(1L, new Object[0]),
+ GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
+ | GT_ModHandler.RecipeBits.REVERSIBLE
+ | GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "WTW", "WMW", Character.valueOf('M'), ItemList.Hull_EV, Character.valueOf('W'),
+ OrePrefixes.wireGt08.get(Materials.Aluminium), Character.valueOf('T'),
+ GregtechOreDictNames.buffer_core });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Energy_Buffer_1by1_IV.get(1L, new Object[0]),
- GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
- | GT_ModHandler.RecipeBits.REVERSIBLE
- | GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "WTW", "WMW", Character.valueOf('M'), ItemList.Hull_IV, Character.valueOf('W'),
- OrePrefixes.wireGt08.get(Materials.Tungsten), Character.valueOf('T'),
- GregtechOreDictNames.buffer_core });
+ GregtechItemList.Energy_Buffer_1by1_IV.get(1L, new Object[0]),
+ GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
+ | GT_ModHandler.RecipeBits.REVERSIBLE
+ | GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "WTW", "WMW", Character.valueOf('M'), ItemList.Hull_IV, Character.valueOf('W'),
+ OrePrefixes.wireGt08.get(Materials.Tungsten), Character.valueOf('T'),
+ GregtechOreDictNames.buffer_core });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Energy_Buffer_1by1_LuV.get(1L, new Object[0]),
- GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
- | GT_ModHandler.RecipeBits.REVERSIBLE
- | GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "WTW", "WMW", Character.valueOf('M'), ItemList.Hull_LuV, Character.valueOf('W'),
- OrePrefixes.wireGt08.get(Materials.Osmium), Character.valueOf('T'),
- GregtechOreDictNames.buffer_core });
+ GregtechItemList.Energy_Buffer_1by1_LuV.get(1L, new Object[0]),
+ GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
+ | GT_ModHandler.RecipeBits.REVERSIBLE
+ | GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "WTW", "WMW", Character.valueOf('M'), ItemList.Hull_LuV, Character.valueOf('W'),
+ OrePrefixes.wireGt08.get(Materials.Osmium), Character.valueOf('T'), GregtechOreDictNames.buffer_core });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Energy_Buffer_1by1_ZPM.get(1L, new Object[0]),
- GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
- | GT_ModHandler.RecipeBits.REVERSIBLE
- | GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "WTW", "WMW", Character.valueOf('M'), ItemList.Hull_ZPM, Character.valueOf('W'),
- OrePrefixes.wireGt08.get(Materials.Osmium), Character.valueOf('T'),
- GregtechOreDictNames.buffer_core });
+ GregtechItemList.Energy_Buffer_1by1_ZPM.get(1L, new Object[0]),
+ GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
+ | GT_ModHandler.RecipeBits.REVERSIBLE
+ | GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "WTW", "WMW", Character.valueOf('M'), ItemList.Hull_ZPM, Character.valueOf('W'),
+ OrePrefixes.wireGt08.get(Materials.Osmium), Character.valueOf('T'), GregtechOreDictNames.buffer_core });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Energy_Buffer_1by1_UV.get(1L, new Object[0]),
- GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
- | GT_ModHandler.RecipeBits.REVERSIBLE
- | GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "WTW", "WMW", Character.valueOf('M'), ItemList.Hull_UV, Character.valueOf('W'),
- OrePrefixes.wireGt08.get(Materials.Osmium), Character.valueOf('T'),
- GregtechOreDictNames.buffer_core });
+ GregtechItemList.Energy_Buffer_1by1_UV.get(1L, new Object[0]),
+ GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
+ | GT_ModHandler.RecipeBits.REVERSIBLE
+ | GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "WTW", "WMW", Character.valueOf('M'), ItemList.Hull_UV, Character.valueOf('W'),
+ OrePrefixes.wireGt08.get(Materials.Osmium), Character.valueOf('T'), GregtechOreDictNames.buffer_core });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Energy_Buffer_1by1_MAX.get(1L, new Object[0]),
- GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
- | GT_ModHandler.RecipeBits.REVERSIBLE
- | GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "WTW", "WMW", Character.valueOf('M'), ItemList.Hull_MAX, Character.valueOf('W'),
- OrePrefixes.wireGt08.get(Materials.SuperconductorUHV), Character.valueOf('T'),
- GregtechOreDictNames.buffer_core });
+ GregtechItemList.Energy_Buffer_1by1_MAX.get(1L, new Object[0]),
+ GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
+ | GT_ModHandler.RecipeBits.REVERSIBLE
+ | GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "WTW", "WMW", Character.valueOf('M'), ItemList.Hull_MAX, Character.valueOf('W'),
+ OrePrefixes.wireGt08.get(Materials.SuperconductorUHV), Character.valueOf('T'),
+ GregtechOreDictNames.buffer_core });
/*
* GT_ModHandler.addCraftingRecipe( GregtechItemList.Energy_Buffer_1by1_MAX.get(1L, new Object[0]),
* GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE |
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechFactoryGradeReplacementMultis.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechFactoryGradeReplacementMultis.java
index f642d355f6..6117631244 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechFactoryGradeReplacementMultis.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechFactoryGradeReplacementMultis.java
@@ -17,28 +17,28 @@ public class GregtechFactoryGradeReplacementMultis {
private static void run1() {
Logger.INFO("Gregtech 5 Content | Registering Advanced GT Multiblock replacements.");
- GregtechItemList.Machine_Adv_BlastFurnace.set(
- new GregtechMetaTileEntity_Adv_EBF(963, "multimachine.adv.blastfurnace", "Volcanus").getStackForm(1L));
+ GregtechItemList.Machine_Adv_BlastFurnace
+ .set(new GregtechMetaTileEntity_Adv_EBF(963, "multimachine.adv.blastfurnace", "Volcanus").getStackForm(1L));
GregtechItemList.Machine_Adv_ImplosionCompressor.set(
- new GregtechMetaTileEntity_Adv_Implosion(964, "multimachine.adv.implosioncompressor", "Density^2")
- .getStackForm(1L));
+ new GregtechMetaTileEntity_Adv_Implosion(964, "multimachine.adv.implosioncompressor", "Density^2")
+ .getStackForm(1L));
GregtechItemList.Industrial_Cryogenic_Freezer.set(
- new GregtechMetaTileEntity_IndustrialVacuumFreezer(
- 910,
- "multimachine.adv.industrialfreezer",
- "Cryogenic Freezer").getStackForm(1L));
+ new GregtechMetaTileEntity_IndustrialVacuumFreezer(
+ 910,
+ "multimachine.adv.industrialfreezer",
+ "Cryogenic Freezer").getStackForm(1L));
GregtechItemList.FusionComputer_UV2.set(
- new GregtechMetaTileEntity_Adv_Fusion_MK4(965, "fusioncomputer.tier.09", "FusionTech MK IV")
- .getStackForm(1L));
+ new GregtechMetaTileEntity_Adv_Fusion_MK4(965, "fusioncomputer.tier.09", "FusionTech MK IV")
+ .getStackForm(1L));
GregtechItemList.FusionComputer_UV3.set(
- new GregtechMetaTileEntity_Adv_Fusion_MK5(975, "fusioncomputer.tier.10", "FusionTech MK V")
- .getStackForm(1L));
+ new GregtechMetaTileEntity_Adv_Fusion_MK5(975, "fusioncomputer.tier.10", "FusionTech MK V")
+ .getStackForm(1L));
// 31021
GregtechItemList.Machine_Adv_DistillationTower.set(
- new GregtechMetaTileEntity_Adv_DistillationTower(
- 31021,
- "multimachine.adv.distillationtower",
- "Dangote Distillus").getStackForm(1L));
+ new GregtechMetaTileEntity_Adv_DistillationTower(
+ 31021,
+ "multimachine.adv.distillationtower",
+ "Dangote Distillus").getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechGeothermalThermalGenerator.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechGeothermalThermalGenerator.java
index af18105590..2e012ee7f9 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechGeothermalThermalGenerator.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechGeothermalThermalGenerator.java
@@ -24,57 +24,55 @@ public class GregtechGeothermalThermalGenerator {
private static void run1() {
GregtechItemList.Geothermal_Engine_EV.set(
- new GregtechMetaTileEntityGeothermalGenerator(
- 830,
- "advancedgenerator.geothermalFuel.tier.01",
- "Basic Geothermal Engine",
- 4).getStackForm(1L));
+ new GregtechMetaTileEntityGeothermalGenerator(
+ 830,
+ "advancedgenerator.geothermalFuel.tier.01",
+ "Basic Geothermal Engine",
+ 4).getStackForm(1L));
GregtechItemList.Geothermal_Engine_IV.set(
- new GregtechMetaTileEntityGeothermalGenerator(
- 831,
- "advancedgenerator.geothermalFuel.tier.02",
- "Turbo Geothermal Engine",
- 5).getStackForm(1L));
+ new GregtechMetaTileEntityGeothermalGenerator(
+ 831,
+ "advancedgenerator.geothermalFuel.tier.02",
+ "Turbo Geothermal Engine",
+ 5).getStackForm(1L));
GregtechItemList.Geothermal_Engine_LuV.set(
- new GregtechMetaTileEntityGeothermalGenerator(
- 832,
- "advancedgenerator.geothermalFuel.tier.03",
- "Vulcan Geothermal Engine",
- 6).getStackForm(1L));
+ new GregtechMetaTileEntityGeothermalGenerator(
+ 832,
+ "advancedgenerator.geothermalFuel.tier.03",
+ "Vulcan Geothermal Engine",
+ 6).getStackForm(1L));
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Geothermal_Engine_EV.get(1L, new Object[0]),
- GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
- | GT_ModHandler.RecipeBits.REVERSIBLE
- | GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "CEC", "GMG", "PWP", Character.valueOf('M'), ItemList.Hull_EV, Character.valueOf('P'),
- ItemList.Electric_Piston_EV, Character.valueOf('E'), ItemList.Electric_Motor_EV,
- Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Ultimate), Character.valueOf('W'),
- OrePrefixes.cableGt04.get(Materials.Aluminium), Character.valueOf('G'),
- ALLOY.TANTALLOY_61.getGear(1) });
+ GregtechItemList.Geothermal_Engine_EV.get(1L, new Object[0]),
+ GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
+ | GT_ModHandler.RecipeBits.REVERSIBLE
+ | GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "CEC", "GMG", "PWP", Character.valueOf('M'), ItemList.Hull_EV, Character.valueOf('P'),
+ ItemList.Electric_Piston_EV, Character.valueOf('E'), ItemList.Electric_Motor_EV, Character.valueOf('C'),
+ OrePrefixes.circuit.get(Materials.Ultimate), Character.valueOf('W'),
+ OrePrefixes.cableGt04.get(Materials.Aluminium), Character.valueOf('G'),
+ ALLOY.TANTALLOY_61.getGear(1) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Geothermal_Engine_IV.get(1L, new Object[0]),
- GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
- | GT_ModHandler.RecipeBits.REVERSIBLE
- | GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "CEC", "GMG", "PWP", Character.valueOf('M'), ItemList.Hull_IV, Character.valueOf('P'),
- ItemList.Electric_Piston_IV, Character.valueOf('E'), ItemList.Electric_Motor_IV,
- Character.valueOf('C'), OrePrefixes.circuit.get(Materials.SuperconductorUHV),
- Character.valueOf('W'), OrePrefixes.cableGt04.get(Materials.Platinum), Character.valueOf('G'),
- ALLOY.STELLITE.getGear(1) });
+ GregtechItemList.Geothermal_Engine_IV.get(1L, new Object[0]),
+ GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
+ | GT_ModHandler.RecipeBits.REVERSIBLE
+ | GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "CEC", "GMG", "PWP", Character.valueOf('M'), ItemList.Hull_IV, Character.valueOf('P'),
+ ItemList.Electric_Piston_IV, Character.valueOf('E'), ItemList.Electric_Motor_IV, Character.valueOf('C'),
+ OrePrefixes.circuit.get(Materials.SuperconductorUHV), Character.valueOf('W'),
+ OrePrefixes.cableGt04.get(Materials.Platinum), Character.valueOf('G'), ALLOY.STELLITE.getGear(1) });
final ItemStack INGREDIENT_1 = CI.electricPiston_LuV;
final ItemStack INGREDIENT_2 = CI.electricMotor_LuV;
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Geothermal_Engine_LuV.get(1L, new Object[0]),
- GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
- | GT_ModHandler.RecipeBits.REVERSIBLE
- | GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "CEC", "GMG", "PWP", Character.valueOf('M'), ItemList.Hull_LuV, Character.valueOf('P'),
- INGREDIENT_1, Character.valueOf('E'), INGREDIENT_2, Character.valueOf('C'),
- OrePrefixes.circuit.get(Materials.Infinite), Character.valueOf('W'),
- OrePrefixes.cableGt04.get(Materials.Tungsten), Character.valueOf('G'),
- ALLOY.ZERON_100.getGear(1) });
+ GregtechItemList.Geothermal_Engine_LuV.get(1L, new Object[0]),
+ GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
+ | GT_ModHandler.RecipeBits.REVERSIBLE
+ | GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "CEC", "GMG", "PWP", Character.valueOf('M'), ItemList.Hull_LuV, Character.valueOf('P'),
+ INGREDIENT_1, Character.valueOf('E'), INGREDIENT_2, Character.valueOf('C'),
+ OrePrefixes.circuit.get(Materials.Infinite), Character.valueOf('W'),
+ OrePrefixes.cableGt04.get(Materials.Tungsten), Character.valueOf('G'), ALLOY.ZERON_100.getGear(1) });
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechHiAmpTransformer.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechHiAmpTransformer.java
index 57cc981923..2587cb8524 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechHiAmpTransformer.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechHiAmpTransformer.java
@@ -16,140 +16,148 @@ public class GregtechHiAmpTransformer {
public static void run() {
long bitsd = 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;
int mID = 877;
String mHammerName = "Mallet";
GregtechItemList.Transformer_HA_LV_ULV.set(
- new GregtechMetaTransformerHiAmp(
- mID++,
- "transformer.ha.tier.00",
- "ULV Hi-Amp Transformer",
- 0,
- "LV -> ULV (Use Soft " + mHammerName + " to invert)").getStackForm(1L));
+ new GregtechMetaTransformerHiAmp(
+ mID++,
+ "transformer.ha.tier.00",
+ "ULV Hi-Amp Transformer",
+ 0,
+ "LV -> ULV (Use Soft " + mHammerName + " to invert)").getStackForm(1L));
GregtechItemList.Transformer_HA_MV_LV.set(
- new GregtechMetaTransformerHiAmp(
- mID++,
- "transformer.ha.tier.01",
- "LV Hi-Amp Transformer",
- 1,
- "MV -> LV (Use Soft " + mHammerName + " to invert)").getStackForm(1L));
+ new GregtechMetaTransformerHiAmp(
+ mID++,
+ "transformer.ha.tier.01",
+ "LV Hi-Amp Transformer",
+ 1,
+ "MV -> LV (Use Soft " + mHammerName + " to invert)").getStackForm(1L));
GregtechItemList.Transformer_HA_HV_MV.set(
- new GregtechMetaTransformerHiAmp(
- mID++,
- "transformer.ha.tier.02",
- "MV Hi-Amp Transformer",
- 2,
- "HV -> MV (Use Soft " + mHammerName + " to invert)").getStackForm(1L));
+ new GregtechMetaTransformerHiAmp(
+ mID++,
+ "transformer.ha.tier.02",
+ "MV Hi-Amp Transformer",
+ 2,
+ "HV -> MV (Use Soft " + mHammerName + " to invert)").getStackForm(1L));
GregtechItemList.Transformer_HA_EV_HV.set(
- new GregtechMetaTransformerHiAmp(
- mID++,
- "transformer.ha.tier.03",
- "HV Hi-Amp Transformer",
- 3,
- "EV -> HV (Use Soft " + mHammerName + " to invert)").getStackForm(1L));
+ new GregtechMetaTransformerHiAmp(
+ mID++,
+ "transformer.ha.tier.03",
+ "HV Hi-Amp Transformer",
+ 3,
+ "EV -> HV (Use Soft " + mHammerName + " to invert)").getStackForm(1L));
GregtechItemList.Transformer_HA_IV_EV.set(
- new GregtechMetaTransformerHiAmp(
- mID++,
- "transformer.ha.tier.04",
- "EV Hi-Amp Transformer",
- 4,
- "IV -> EV (Use Soft " + mHammerName + " to invert)").getStackForm(1L));
+ new GregtechMetaTransformerHiAmp(
+ mID++,
+ "transformer.ha.tier.04",
+ "EV Hi-Amp Transformer",
+ 4,
+ "IV -> EV (Use Soft " + mHammerName + " to invert)").getStackForm(1L));
GregtechItemList.Transformer_HA_LuV_IV.set(
- new GregtechMetaTransformerHiAmp(
- mID++,
- "transformer.ha.tier.05",
- "IV Hi-Amp Transformer",
- 5,
- "LuV -> IV (Use Soft " + mHammerName + " to invert)").getStackForm(1L));
+ new GregtechMetaTransformerHiAmp(
+ mID++,
+ "transformer.ha.tier.05",
+ "IV Hi-Amp Transformer",
+ 5,
+ "LuV -> IV (Use Soft " + mHammerName + " to invert)").getStackForm(1L));
GregtechItemList.Transformer_HA_ZPM_LuV.set(
- new GregtechMetaTransformerHiAmp(
- mID++,
- "transformer.ha.tier.06",
- "LuV Hi-Amp Transformer",
- 6,
- "ZPM -> LuV (Use Soft " + mHammerName + " to invert)").getStackForm(1L));
+ new GregtechMetaTransformerHiAmp(
+ mID++,
+ "transformer.ha.tier.06",
+ "LuV Hi-Amp Transformer",
+ 6,
+ "ZPM -> LuV (Use Soft " + mHammerName + " to invert)").getStackForm(1L));
GregtechItemList.Transformer_HA_UV_ZPM.set(
- new GregtechMetaTransformerHiAmp(
- mID++,
- "transformer.ha.tier.07",
- "ZPM Hi-Amp Transformer",
- 7,
- "UV -> ZPM (Use Soft " + mHammerName + " to invert)").getStackForm(1L));
+ new GregtechMetaTransformerHiAmp(
+ mID++,
+ "transformer.ha.tier.07",
+ "ZPM Hi-Amp Transformer",
+ 7,
+ "UV -> ZPM (Use Soft " + mHammerName + " to invert)").getStackForm(1L));
GregtechItemList.Transformer_HA_MAX_UV.set(
- new GregtechMetaTransformerHiAmp(
- mID++,
- "transformer.ha.tier.08",
- "UV Hi-Amp Transformer",
- 8,
- "UHV -> UV (Use Soft " + mHammerName + " to invert)").getStackForm(1L));
+ new GregtechMetaTransformerHiAmp(
+ mID++,
+ "transformer.ha.tier.08",
+ "UV Hi-Amp Transformer",
+ 8,
+ "UHV -> UV (Use Soft " + mHammerName + " to invert)").getStackForm(1L));
ItemStack mItem_1;
ItemStack mItem_2;
ItemStack mItem_3;
- mItem_1 = ItemUtils.simpleMetaStack(ItemUtils.getSimpleStack(GregTech_API.sBlockCasings5).getItem(), 3, 1);
- mItem_2 = ItemUtils.simpleMetaStack(ItemUtils.getSimpleStack(GregTech_API.sBlockCasings5).getItem(), 4, 1);
- mItem_3 = ItemUtils.simpleMetaStack(ItemUtils.getSimpleStack(GregTech_API.sBlockCasings5).getItem(), 9, 1);
+ mItem_1 = ItemUtils.simpleMetaStack(
+ ItemUtils.getSimpleStack(GregTech_API.sBlockCasings5)
+ .getItem(),
+ 3,
+ 1);
+ mItem_2 = ItemUtils.simpleMetaStack(
+ ItemUtils.getSimpleStack(GregTech_API.sBlockCasings5)
+ .getItem(),
+ 4,
+ 1);
+ mItem_3 = ItemUtils.simpleMetaStack(
+ ItemUtils.getSimpleStack(GregTech_API.sBlockCasings5)
+ .getItem(),
+ 9,
+ 1);
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Transformer_HA_LV_ULV.get(1L, new Object[0]),
- bitsd,
- new Object[] { " BB", "CM ", " BB", Character.valueOf('M'), ItemList.Transformer_LV_ULV,
- Character.valueOf('C'), OrePrefixes.wireGt04.get(Materials.Tin), Character.valueOf('B'),
- OrePrefixes.wireGt04.get(Materials.Lead) });
+ GregtechItemList.Transformer_HA_LV_ULV.get(1L, new Object[0]),
+ bitsd,
+ new Object[] { " BB", "CM ", " BB", Character.valueOf('M'), ItemList.Transformer_LV_ULV,
+ Character.valueOf('C'), OrePrefixes.wireGt04.get(Materials.Tin), Character.valueOf('B'),
+ OrePrefixes.wireGt04.get(Materials.Lead) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Transformer_HA_MV_LV.get(1L, new Object[0]),
- bitsd,
- new Object[] { " BB", "CM ", " BB", Character.valueOf('M'), ItemList.Transformer_MV_LV,
- Character.valueOf('C'), OrePrefixes.wireGt04.get(Materials.AnyCopper), Character.valueOf('B'),
- OrePrefixes.wireGt04.get(Materials.Tin) });
+ GregtechItemList.Transformer_HA_MV_LV.get(1L, new Object[0]),
+ bitsd,
+ new Object[] { " BB", "CM ", " BB", Character.valueOf('M'), ItemList.Transformer_MV_LV,
+ Character.valueOf('C'), OrePrefixes.wireGt04.get(Materials.AnyCopper), Character.valueOf('B'),
+ OrePrefixes.wireGt04.get(Materials.Tin) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Transformer_HA_HV_MV.get(1L, new Object[0]),
- bitsd,
- new Object[] { " BB", "CM ", " BB", Character.valueOf('M'), ItemList.Transformer_HV_MV,
- Character.valueOf('C'), OrePrefixes.wireGt04.get(Materials.Gold), Character.valueOf('B'),
- OrePrefixes.wireGt04.get(Materials.AnyCopper) });
+ GregtechItemList.Transformer_HA_HV_MV.get(1L, new Object[0]),
+ bitsd,
+ new Object[] { " BB", "CM ", " BB", Character.valueOf('M'), ItemList.Transformer_HV_MV,
+ Character.valueOf('C'), OrePrefixes.wireGt04.get(Materials.Gold), Character.valueOf('B'),
+ OrePrefixes.wireGt04.get(Materials.AnyCopper) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Transformer_HA_EV_HV.get(1L, new Object[0]),
- bitsd,
- new Object[] { "KBB", "CM ", "KBB", Character.valueOf('M'), ItemList.Transformer_EV_HV,
- Character.valueOf('C'), OrePrefixes.wireGt04.get(Materials.Aluminium), Character.valueOf('B'),
- OrePrefixes.wireGt04.get(Materials.Gold), Character.valueOf('K'),
- ItemList.Casing_Coil_Cupronickel });
+ GregtechItemList.Transformer_HA_EV_HV.get(1L, new Object[0]),
+ bitsd,
+ new Object[] { "KBB", "CM ", "KBB", Character.valueOf('M'), ItemList.Transformer_EV_HV,
+ Character.valueOf('C'), OrePrefixes.wireGt04.get(Materials.Aluminium), Character.valueOf('B'),
+ OrePrefixes.wireGt04.get(Materials.Gold), Character.valueOf('K'), ItemList.Casing_Coil_Cupronickel });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Transformer_HA_IV_EV.get(1L, new Object[0]),
- bitsd,
- new Object[] { "KBB", "CM ", "KBB", Character.valueOf('M'), ItemList.Transformer_IV_EV,
- Character.valueOf('C'), OrePrefixes.wireGt04.get(Materials.Tungsten), Character.valueOf('B'),
- OrePrefixes.wireGt04.get(Materials.Aluminium), Character.valueOf('K'),
- ItemList.Casing_Coil_Kanthal });
+ GregtechItemList.Transformer_HA_IV_EV.get(1L, new Object[0]),
+ bitsd,
+ new Object[] { "KBB", "CM ", "KBB", Character.valueOf('M'), ItemList.Transformer_IV_EV,
+ Character.valueOf('C'), OrePrefixes.wireGt04.get(Materials.Tungsten), Character.valueOf('B'),
+ OrePrefixes.wireGt04.get(Materials.Aluminium), Character.valueOf('K'), ItemList.Casing_Coil_Kanthal });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Transformer_HA_LuV_IV.get(1L, new Object[0]),
- bitsd,
- new Object[] { "KBB", "CM ", "KBB", Character.valueOf('M'), ItemList.Transformer_LuV_IV,
- Character.valueOf('C'), OrePrefixes.wireGt04.get(Materials.VanadiumGallium),
- Character.valueOf('B'), OrePrefixes.wireGt04.get(Materials.Tungsten), Character.valueOf('K'),
- ItemList.Casing_Coil_Nichrome });
+ GregtechItemList.Transformer_HA_LuV_IV.get(1L, new Object[0]),
+ bitsd,
+ new Object[] { "KBB", "CM ", "KBB", Character.valueOf('M'), ItemList.Transformer_LuV_IV,
+ Character.valueOf('C'), OrePrefixes.wireGt04.get(Materials.VanadiumGallium), Character.valueOf('B'),
+ OrePrefixes.wireGt04.get(Materials.Tungsten), Character.valueOf('K'), ItemList.Casing_Coil_Nichrome });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Transformer_HA_ZPM_LuV.get(1L, new Object[0]),
- bitsd,
- new Object[] { "KBB", "CM ", "KBB", Character.valueOf('M'), ItemList.Transformer_ZPM_LuV,
- Character.valueOf('C'), OrePrefixes.wireGt04.get(Materials.Naquadah), Character.valueOf('B'),
- OrePrefixes.wireGt04.get(Materials.VanadiumGallium), Character.valueOf('K'), mItem_1 });
+ GregtechItemList.Transformer_HA_ZPM_LuV.get(1L, new Object[0]),
+ bitsd,
+ new Object[] { "KBB", "CM ", "KBB", Character.valueOf('M'), ItemList.Transformer_ZPM_LuV,
+ Character.valueOf('C'), OrePrefixes.wireGt04.get(Materials.Naquadah), Character.valueOf('B'),
+ OrePrefixes.wireGt04.get(Materials.VanadiumGallium), Character.valueOf('K'), mItem_1 });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Transformer_HA_UV_ZPM.get(1L, new Object[0]),
- bitsd,
- new Object[] { "KBB", "CM ", "KBB", Character.valueOf('M'), ItemList.Transformer_UV_ZPM,
- Character.valueOf('C'), OrePrefixes.wireGt04.get(Materials.NaquadahAlloy),
- Character.valueOf('B'), OrePrefixes.wireGt04.get(Materials.Naquadah), Character.valueOf('K'),
- mItem_2 });
+ GregtechItemList.Transformer_HA_UV_ZPM.get(1L, new Object[0]),
+ bitsd,
+ new Object[] { "KBB", "CM ", "KBB", Character.valueOf('M'), ItemList.Transformer_UV_ZPM,
+ Character.valueOf('C'), OrePrefixes.wireGt04.get(Materials.NaquadahAlloy), Character.valueOf('B'),
+ OrePrefixes.wireGt04.get(Materials.Naquadah), Character.valueOf('K'), mItem_2 });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Transformer_HA_MAX_UV.get(1L, new Object[0]),
- bitsd,
- new Object[] { "KBB", "CM ", "KBB", Character.valueOf('M'), ItemList.Transformer_MAX_UV,
- Character.valueOf('C'), OrePrefixes.wireGt04.get(Materials.Bedrockium), Character.valueOf('B'),
- OrePrefixes.wireGt04.get(Materials.NaquadahAlloy), Character.valueOf('K'), mItem_3 });
+ GregtechItemList.Transformer_HA_MAX_UV.get(1L, new Object[0]),
+ bitsd,
+ new Object[] { "KBB", "CM ", "KBB", Character.valueOf('M'), ItemList.Transformer_MAX_UV,
+ Character.valueOf('C'), OrePrefixes.wireGt04.get(Materials.Bedrockium), Character.valueOf('B'),
+ OrePrefixes.wireGt04.get(Materials.NaquadahAlloy), Character.valueOf('K'), mItem_3 });
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialAlloySmelter.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialAlloySmelter.java
index 6430da1407..dc176e7356 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialAlloySmelter.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialAlloySmelter.java
@@ -13,9 +13,9 @@ public class GregtechIndustrialAlloySmelter {
private static void run1() {
GregtechItemList.Industrial_AlloySmelter.set(
- new GregtechMetaTileEntity_IndustrialAlloySmelter(
- 31023,
- "industrialalloysmelter.controller.tier.single",
- "Zyngen").getStackForm(1L));
+ new GregtechMetaTileEntity_IndustrialAlloySmelter(
+ 31023,
+ "industrialalloysmelter.controller.tier.single",
+ "Zyngen").getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialArcFurnace.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialArcFurnace.java
index b956539aae..3de3da7f88 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialArcFurnace.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialArcFurnace.java
@@ -14,9 +14,9 @@ public class GregtechIndustrialArcFurnace {
private static void run1() {
// Industrial Arc Furnace Multiblock
GregtechItemList.Industrial_Arc_Furnace.set(
- new GregtechMetaTileEntity_IndustrialArcFurnace(
- 862,
- "industrialarcfurnace.controller.tier.single",
- "High Current Industrial Arc Furnace").getStackForm(1L));
+ new GregtechMetaTileEntity_IndustrialArcFurnace(
+ 862,
+ "industrialarcfurnace.controller.tier.single",
+ "High Current Industrial Arc Furnace").getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialBlastSmelter.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialBlastSmelter.java
index fad62a705b..e457575391 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialBlastSmelter.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialBlastSmelter.java
@@ -18,14 +18,14 @@ public class GregtechIndustrialBlastSmelter {
private static void run1() {
// Industrial Alloy Blast Smelter Multiblock
GregtechItemList.Industrial_AlloyBlastSmelter.set(
- new GregtechMetaTileEntity_AlloyBlastSmelter(
- 810,
- "industrialsalloyamelter.controller.tier.single",
- "Alloy Blast Smelter").getStackForm(1L));
+ new GregtechMetaTileEntity_AlloyBlastSmelter(
+ 810,
+ "industrialsalloyamelter.controller.tier.single",
+ "Alloy Blast Smelter").getStackForm(1L));
GregtechItemList.Mega_AlloyBlastSmelter.set(
- new GregTechMetaTileEntity_MegaAlloyBlastSmelter(
- 31150,
- "industrialsalloyamelter.controller.tier.mega",
- "Mega Alloy Blast Smelter").getStackForm(1L));
+ new GregTechMetaTileEntity_MegaAlloyBlastSmelter(
+ 31150,
+ "industrialsalloyamelter.controller.tier.mega",
+ "Mega Alloy Blast Smelter").getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialCentrifuge.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialCentrifuge.java
index 4edd919702..bc51aaae51 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialCentrifuge.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialCentrifuge.java
@@ -17,9 +17,9 @@ public class GregtechIndustrialCentrifuge {
private static void run1() {
// Industrial Centrifuge Multiblock
GregtechItemList.Industrial_Centrifuge.set(
- new GregtechMetaTileEntity_IndustrialCentrifuge(
- 790,
- "industrialcentrifuge.controller.tier.single",
- "Industrial Centrifuge").getStackForm(1L));
+ new GregtechMetaTileEntity_IndustrialCentrifuge(
+ 790,
+ "industrialcentrifuge.controller.tier.single",
+ "Industrial Centrifuge").getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialChisel.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialChisel.java
index feefd45619..ae0e2483cf 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialChisel.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialChisel.java
@@ -8,19 +8,17 @@ public class GregtechIndustrialChisel {
public static void run() {
GregtechItemList.GT_Chisel_LV.set(
- new GregtechMetaTileEntity_AutoChisel(31066, "chisel.tier.01", "Basic Auto-Chisel", 1)
- .getStackForm(1L));
+ new GregtechMetaTileEntity_AutoChisel(31066, "chisel.tier.01", "Basic Auto-Chisel", 1).getStackForm(1L));
GregtechItemList.GT_Chisel_MV.set(
- new GregtechMetaTileEntity_AutoChisel(31067, "chisel.tier.02", "Advanced Auto-Chisel", 2)
- .getStackForm(1L));
+ new GregtechMetaTileEntity_AutoChisel(31067, "chisel.tier.02", "Advanced Auto-Chisel", 2).getStackForm(1L));
GregtechItemList.GT_Chisel_HV.set(
- new GregtechMetaTileEntity_AutoChisel(31068, "chisel.tier.03", "Precision Auto-Chisel", 3)
- .getStackForm(1L));
+ new GregtechMetaTileEntity_AutoChisel(31068, "chisel.tier.03", "Precision Auto-Chisel", 3)
+ .getStackForm(1L));
GregtechItemList.Controller_IndustrialAutoChisel.set(
- new GregtechMetaTileEntity_IndustrialChisel(
- 31069,
- "multimachine.adv.chisel",
- "Industrial 3D Copying Machine").getStackForm(1L));
+ new GregtechMetaTileEntity_IndustrialChisel(
+ 31069,
+ "multimachine.adv.chisel",
+ "Industrial 3D Copying Machine").getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialCokeOven.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialCokeOven.java
index d4d4477f97..af941e58db 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialCokeOven.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialCokeOven.java
@@ -17,9 +17,9 @@ public class GregtechIndustrialCokeOven {
private static void run1() {
// Industrial Centrifuge Multiblock
GregtechItemList.Industrial_CokeOven.set(
- new GregtechMetaTileEntity_IndustrialCokeOven(
- 791,
- "industrialcokeoven.controller.tier.single",
- "Industrial Coke Oven").getStackForm(1L));
+ new GregtechMetaTileEntity_IndustrialCokeOven(
+ 791,
+ "industrialcokeoven.controller.tier.single",
+ "Industrial Coke Oven").getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialCuttingFactory.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialCuttingFactory.java
index cc9365b344..c5ff4a9928 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialCuttingFactory.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialCuttingFactory.java
@@ -17,9 +17,9 @@ public class GregtechIndustrialCuttingFactory {
private static void run1() {
// Industrial Wire Factory Multiblock
GregtechItemList.Industrial_CuttingFactoryController.set(
- new GregtechMetaTileEntity_IndustrialCuttingMachine(
- 992,
- "industrialcuttingmachine.controller.tier.01",
- "Cutting Factory Controller").getStackForm(1L));
+ new GregtechMetaTileEntity_IndustrialCuttingMachine(
+ 992,
+ "industrialcuttingmachine.controller.tier.01",
+ "Cutting Factory Controller").getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialElectrolyzer.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialElectrolyzer.java
index ddd7ad89bf..a114aaf3cd 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialElectrolyzer.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialElectrolyzer.java
@@ -17,9 +17,9 @@ public class GregtechIndustrialElectrolyzer {
private static void run1() {
// Industrial Electrolyzer Multiblock
GregtechItemList.Industrial_Electrolyzer.set(
- new GregtechMetaTileEntity_IndustrialElectrolyzer(
- 796,
- "industrialelectrolyzer.controller.tier.single",
- "Industrial Electrolyzer").getStackForm(1L));
+ new GregtechMetaTileEntity_IndustrialElectrolyzer(
+ 796,
+ "industrialelectrolyzer.controller.tier.single",
+ "Industrial Electrolyzer").getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialElementDuplicator.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialElementDuplicator.java
index 8e1607087d..222a3e7689 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialElementDuplicator.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialElementDuplicator.java
@@ -12,13 +12,13 @@ public class GregtechIndustrialElementDuplicator {
Logger.INFO("Gregtech5u Content | Registering Elemental Duplicator Multiblock.");
GregtechItemList.Controller_ElementalDuplicator.set(
- new GregtechMTE_ElementalDuplicator(31050, "gtpp.multimachine.replicator", "Elemental Duplicator")
- .getStackForm(1L));
+ new GregtechMTE_ElementalDuplicator(31050, "gtpp.multimachine.replicator", "Elemental Duplicator")
+ .getStackForm(1L));
GregtechItemList.Hatch_Input_Elemental_Duplicator.set(
- new GT_MetaTileEntity_Hatch_ElementalDataOrbHolder(
- 31051,
- "hatch.input_bus.elementalorbholder",
- "Data Orb Repository",
- 7).getStackForm(1L));
+ new GT_MetaTileEntity_Hatch_ElementalDataOrbHolder(
+ 31051,
+ "hatch.input_bus.elementalorbholder",
+ "Data Orb Repository",
+ 7).getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialExtruder.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialExtruder.java
index 2f03a0f59f..817858a4a0 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialExtruder.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialExtruder.java
@@ -17,9 +17,9 @@ public class GregtechIndustrialExtruder {
private static void run1() {
// Industrial Presser Multiblock
GregtechItemList.Industrial_Extruder.set(
- new GregtechMetaTileEntity_IndustrialExtruder(
- 859,
- "industrialextruder.controller.tier.single",
- "Industrial Extrusion Machine").getStackForm(1L));
+ new GregtechMetaTileEntity_IndustrialExtruder(
+ 859,
+ "industrialextruder.controller.tier.single",
+ "Industrial Extrusion Machine").getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialFishPond.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialFishPond.java
index 28a2a48da7..182662bfbc 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialFishPond.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialFishPond.java
@@ -13,9 +13,9 @@ public class GregtechIndustrialFishPond {
private static void run1() {
GregtechItemList.Industrial_FishingPond.set(
- new GregtechMetaTileEntity_IndustrialFishingPond(
- 829,
- "industrial.fishpond.controller.tier.single",
- "Zhuhai - Fishing Port").getStackForm(1L));
+ new GregtechMetaTileEntity_IndustrialFishingPond(
+ 829,
+ "industrial.fishpond.controller.tier.single",
+ "Zhuhai - Fishing Port").getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialFluidHeater.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialFluidHeater.java
index decb0dbd04..e25ef2fcae 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialFluidHeater.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialFluidHeater.java
@@ -13,9 +13,9 @@ public class GregtechIndustrialFluidHeater {
private static void run1() {
GregtechItemList.Controller_IndustrialFluidHeater.set(
- new GregtechMetaTileEntity_IndustrialFluidHeater(
- 31077,
- "industrialfluidheater.controller.tier.single",
- "Thermic Heating Device").getStackForm(1L));
+ new GregtechMetaTileEntity_IndustrialFluidHeater(
+ 31077,
+ "industrialfluidheater.controller.tier.single",
+ "Thermic Heating Device").getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialForgeHammer.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialForgeHammer.java
index df8311e761..a73b9fd873 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialForgeHammer.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialForgeHammer.java
@@ -13,9 +13,9 @@ public class GregtechIndustrialForgeHammer {
private static void run1() {
GregtechItemList.Controller_IndustrialForgeHammer.set(
- new GregtechMetaTileEntity_IndustrialForgeHammer(
- 31075,
- "industrialhammer.controller.tier.single",
- "Industrial Sledgehammer").getStackForm(1L));
+ new GregtechMetaTileEntity_IndustrialForgeHammer(
+ 31075,
+ "industrialhammer.controller.tier.single",
+ "Industrial Sledgehammer").getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialFuelRefinery.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialFuelRefinery.java
index b4853c6c55..e45f593c7a 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialFuelRefinery.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialFuelRefinery.java
@@ -17,9 +17,9 @@ public class GregtechIndustrialFuelRefinery {
private static void run1() {
// Industrial Maceration Stack Multiblock
GregtechItemList.Industrial_FuelRefinery.set(
- new GregtechMetaTileEntity_Refinery(
- 835,
- "industrialrefinery.controller.tier.single",
- "Reactor Fuel Processing Plant").getStackForm(1L));
+ new GregtechMetaTileEntity_Refinery(
+ 835,
+ "industrialrefinery.controller.tier.single",
+ "Reactor Fuel Processing Plant").getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialMacerator.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialMacerator.java
index a799719a8c..0912660cc1 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialMacerator.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialMacerator.java
@@ -17,9 +17,9 @@ public class GregtechIndustrialMacerator {
private static void run1() {
// Industrial Maceration Stack Multiblock
GregtechItemList.Industrial_MacerationStack.set(
- new GregtechMetaTileEntity_IndustrialMacerator(
- 797,
- "industrialmacerator.controller.tier.single",
- "Maceration Stack Controller").getStackForm(1L));
+ new GregtechMetaTileEntity_IndustrialMacerator(
+ 797,
+ "industrialmacerator.controller.tier.single",
+ "Maceration Stack Controller").getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialMassFabricator.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialMassFabricator.java
index e631ca0445..92b7182426 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialMassFabricator.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialMassFabricator.java
@@ -27,10 +27,10 @@ public class GregtechIndustrialMassFabricator {
private static void run1() {
// Industrial Matter Fabricator Multiblock
GregtechItemList.Industrial_MassFab.set(
- new GregtechMetaTileEntity_MassFabricator(
- 799,
- "industrialmassfab.controller.tier.single",
- "Matter Fabrication CPU").getStackForm(1L));
+ new GregtechMetaTileEntity_MassFabricator(
+ 799,
+ "industrialmassfab.controller.tier.single",
+ "Matter Fabrication CPU").getStackForm(1L));
}
private static void generateRecipes() {
@@ -39,92 +39,92 @@ public class GregtechIndustrialMassFabricator {
// Basic UUA1
GT_Recipe UUA_From_Scrap = new GT_Recipe(
- false,
- new ItemStack[] { CI.getNumberedCircuit(9), ItemUtils.getSimpleStack(getScrapPile(), 9) },
- new ItemStack[] { GT_Values.NI },
- null,
- null,
- new FluidStack[] { GT_Values.NF },
- new FluidStack[] { Materials.UUAmplifier.getFluid(1) },
- 9 * 20,
- 32,
- 0);
+ false,
+ new ItemStack[] { CI.getNumberedCircuit(9), ItemUtils.getSimpleStack(getScrapPile(), 9) },
+ new ItemStack[] { GT_Values.NI },
+ null,
+ null,
+ new FluidStack[] { GT_Values.NF },
+ new FluidStack[] { Materials.UUAmplifier.getFluid(1) },
+ 9 * 20,
+ 32,
+ 0);
// Basic UUA2
GT_Recipe UUA_From_ScrapBoxes = new GT_Recipe(
- false,
- new ItemStack[] { CI.getNumberedCircuit(19), ItemUtils.getSimpleStack(getScrapBox(), 1) },
- new ItemStack[] { GT_Values.NI },
- null,
- null,
- new FluidStack[] { GT_Values.NF },
- new FluidStack[] { Materials.UUAmplifier.getFluid(1) },
- 9 * 20,
- 32,
- 0);
+ false,
+ new ItemStack[] { CI.getNumberedCircuit(19), ItemUtils.getSimpleStack(getScrapBox(), 1) },
+ new ItemStack[] { GT_Values.NI },
+ null,
+ null,
+ new FluidStack[] { GT_Values.NF },
+ new FluidStack[] { Materials.UUAmplifier.getFluid(1) },
+ 9 * 20,
+ 32,
+ 0);
GTPPRecipeMaps.multiblockMassFabricatorRecipes.add(UUA_From_Scrap);
GTPPRecipeMaps.multiblockMassFabricatorRecipes.add(UUA_From_ScrapBoxes);
// Basic UUM
GT_Recipe generateUUM_LV = new GT_Recipe(
+ false,
+ new ItemStack[] { CI.getNumberedCircuit(1) },
+ new ItemStack[] { GT_Values.NI },
+ null,
+ null,
+ new FluidStack[] { GT_Values.NF },
+ new FluidStack[] { Materials.UUMatter.getFluid(16) },
+ 160 * 20,
+ 4096,
+ 0);
+
+ // Basic UUM
+ GT_Recipe generateUUMFromUUA_LV = new GT_Recipe(
+ false,
+ new ItemStack[] { CI.getNumberedCircuit(2) },
+ new ItemStack[] { GT_Values.NI },
+ null,
+ null,
+ new FluidStack[] { Materials.UUAmplifier.getFluid(16) },
+ new FluidStack[] { Materials.UUMatter.getFluid(16) },
+ 40 * 20,
+ 4096,
+ 0);
+
+ // Advanced UUM
+ GTPPRecipeMaps.multiblockMassFabricatorRecipes.add(
+ new GT_Recipe(
false,
- new ItemStack[] { CI.getNumberedCircuit(1) },
+ new ItemStack[] { CI.getNumberedCircuit(3) },
new ItemStack[] { GT_Values.NI },
null,
null,
new FluidStack[] { GT_Values.NF },
- new FluidStack[] { Materials.UUMatter.getFluid(16) },
+ new FluidStack[] { Materials.UUMatter.getFluid(256) },
160 * 20,
- 4096,
- 0);
+ 65536,
+ 0));
- // Basic UUM
- GT_Recipe generateUUMFromUUA_LV = new GT_Recipe(
+ // Advanced UUM
+ GTPPRecipeMaps.multiblockMassFabricatorRecipes.add(
+ new GT_Recipe(
false,
- new ItemStack[] { CI.getNumberedCircuit(2) },
+ new ItemStack[] { CI.getNumberedCircuit(4) },
new ItemStack[] { GT_Values.NI },
null,
null,
- new FluidStack[] { Materials.UUAmplifier.getFluid(16) },
- new FluidStack[] { Materials.UUMatter.getFluid(16) },
+ new FluidStack[] { Materials.UUAmplifier.getFluid(256) },
+ new FluidStack[] { Materials.UUMatter.getFluid(256) },
40 * 20,
- 4096,
- 0);
-
- // Advanced UUM
- GTPPRecipeMaps.multiblockMassFabricatorRecipes.add(
- new GT_Recipe(
- false,
- new ItemStack[] { CI.getNumberedCircuit(3) },
- new ItemStack[] { GT_Values.NI },
- null,
- null,
- new FluidStack[] { GT_Values.NF },
- new FluidStack[] { Materials.UUMatter.getFluid(256) },
- 160 * 20,
- 65536,
- 0));
-
- // Advanced UUM
- GTPPRecipeMaps.multiblockMassFabricatorRecipes.add(
- new GT_Recipe(
- false,
- new ItemStack[] { CI.getNumberedCircuit(4) },
- new ItemStack[] { GT_Values.NI },
- null,
- null,
- new FluidStack[] { Materials.UUAmplifier.getFluid(256) },
- new FluidStack[] { Materials.UUMatter.getFluid(256) },
- 40 * 20,
- 65536,
- 0));
+ 65536,
+ 0));
GTPPRecipeMaps.multiblockMassFabricatorRecipes.add(generateUUM_LV);
GTPPRecipeMaps.multiblockMassFabricatorRecipes.add(generateUUMFromUUA_LV);
Logger.INFO(
- "Generated " + GTPPRecipeMaps.multiblockMassFabricatorRecipes.getAllRecipes().size()
- + " Matter Fabricator recipes.");
+ "Generated " + GTPPRecipeMaps.multiblockMassFabricatorRecipes.getAllRecipes()
+ .size() + " Matter Fabricator recipes.");
}
public static ItemStack getScrapPile() {
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialMixer.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialMixer.java
index 3b12b4e4d3..07d0432213 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialMixer.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialMixer.java
@@ -17,9 +17,9 @@ public class GregtechIndustrialMixer {
private static void run1() {
// Industrial Mixer Multiblock
GregtechItemList.Industrial_Mixer.set(
- new GregtechMetaTileEntity_IndustrialMixer(
- 811,
- "industrialmixer.controller.tier.single",
- "Industrial Mixing Machine").getStackForm(1L));
+ new GregtechMetaTileEntity_IndustrialMixer(
+ 811,
+ "industrialmixer.controller.tier.single",
+ "Industrial Mixing Machine").getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialMultiMachine.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialMultiMachine.java
index 6b3797b9ca..9ba8810c55 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialMultiMachine.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialMultiMachine.java
@@ -16,9 +16,9 @@ public class GregtechIndustrialMultiMachine {
private static void run1() {
GregtechItemList.Industrial_MultiMachine.set(
- new GregtechMetaTileEntity_IndustrialMultiMachine(
- 860,
- "industrialmultimachine.controller.tier.single",
- "Large Processing Factory").getStackForm(1L));
+ new GregtechMetaTileEntity_IndustrialMultiMachine(
+ 860,
+ "industrialmultimachine.controller.tier.single",
+ "Large Processing Factory").getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialPlatePress.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialPlatePress.java
index d68dfb47a2..60d93e4cb7 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialPlatePress.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialPlatePress.java
@@ -17,9 +17,9 @@ public class GregtechIndustrialPlatePress {
private static void run1() {
// Industrial Presser Multiblock
GregtechItemList.Industrial_PlatePress.set(
- new GregtechMetaTileEntity_IndustrialPlatePress(
- 792,
- "industrialbender.controller.tier.single",
- "Industrial Material Press").getStackForm(1L));
+ new GregtechMetaTileEntity_IndustrialPlatePress(
+ 792,
+ "industrialbender.controller.tier.single",
+ "Industrial Material Press").getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialRockBreaker.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialRockBreaker.java
index b300a5e77c..3e9efb38cf 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialRockBreaker.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialRockBreaker.java
@@ -7,9 +7,9 @@ public class GregtechIndustrialRockBreaker {
public static void run() {
GregtechItemList.Controller_IndustrialRockBreaker.set(
- new GregtechMetaTileEntity_IndustrialRockBreaker(
- 31065,
- "industrialrockcrusher.controller.tier.single",
- "Boldarnator").getStackForm(1L));
+ new GregtechMetaTileEntity_IndustrialRockBreaker(
+ 31065,
+ "industrialrockcrusher.controller.tier.single",
+ "Boldarnator").getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialSifter.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialSifter.java
index 41fd0067ad..87f8cc5e44 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialSifter.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialSifter.java
@@ -16,9 +16,9 @@ public class GregtechIndustrialSifter {
private static void run1() {
GregtechItemList.Industrial_Sifter.set(
- new GregtechMetaTileEntity_IndustrialSifter(
- 840,
- "industrialsifter.controller.tier.single",
- "Large Sifter Control Block").getStackForm(1L));
+ new GregtechMetaTileEntity_IndustrialSifter(
+ 840,
+ "industrialsifter.controller.tier.single",
+ "Large Sifter Control Block").getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialThermalCentrifuge.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialThermalCentrifuge.java
index 6a5e21108c..cf8b585ae9 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialThermalCentrifuge.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialThermalCentrifuge.java
@@ -16,9 +16,9 @@ public class GregtechIndustrialThermalCentrifuge {
private static void run1() {
GregtechItemList.Industrial_ThermalCentrifuge.set(
- new GregtechMetaTileEntity_IndustrialThermalCentrifuge(
- 849,
- "industrialthermalcentrifuge.controller.tier.single",
- "Large Thermal Refinery").getStackForm(1L));
+ new GregtechMetaTileEntity_IndustrialThermalCentrifuge(
+ 849,
+ "industrialthermalcentrifuge.controller.tier.single",
+ "Large Thermal Refinery").getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialTreeFarm.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialTreeFarm.java
index 4c75279c4d..82a0369516 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialTreeFarm.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialTreeFarm.java
@@ -16,7 +16,7 @@ public class GregtechIndustrialTreeFarm {
private static void run1() {
GregtechItemList.Industrial_TreeFarm.set(
- new GregtechMetaTileEntityTreeFarm(836, "treefarm.controller.tier.single", "Tree Growth Simulator")
- .getStackForm(1L));
+ new GregtechMetaTileEntityTreeFarm(836, "treefarm.controller.tier.single", "Tree Growth Simulator")
+ .getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialWashPlant.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialWashPlant.java
index c575f74cb6..982695b02c 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialWashPlant.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialWashPlant.java
@@ -16,9 +16,9 @@ public class GregtechIndustrialWashPlant {
private static void run1() {
GregtechItemList.Industrial_WashPlant.set(
- new GregtechMetaTileEntity_IndustrialWashPlant(
- 850,
- "industrialwashplant.controller.tier.single",
- "Ore Washing Plant").getStackForm(1L));
+ new GregtechMetaTileEntity_IndustrialWashPlant(
+ 850,
+ "industrialwashplant.controller.tier.single",
+ "Ore Washing Plant").getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialWiremill.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialWiremill.java
index 7457391f3f..853013834b 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialWiremill.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIndustrialWiremill.java
@@ -17,9 +17,9 @@ public class GregtechIndustrialWiremill {
private static void run1() {
// Industrial Wire Factory Multiblock
GregtechItemList.Industrial_WireFactory.set(
- new GregtechMetaTileEntity_IndustrialWireMill(
- 798,
- "industrialwiremill.controller.tier.single",
- "Wire Factory Controller").getStackForm(1L));
+ new GregtechMetaTileEntity_IndustrialWireMill(
+ 798,
+ "industrialwiremill.controller.tier.single",
+ "Wire Factory Controller").getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIsaMill.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIsaMill.java
index 9154a608a3..d1719d4b74 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIsaMill.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechIsaMill.java
@@ -13,14 +13,14 @@ public class GregtechIsaMill {
Logger.INFO("Gregtech5u Content | Registering Milling Content.");
GregtechItemList.Controller_IsaMill.set(
- new GregtechMetaTileEntity_IsaMill(31027, "gtpp.multimachine.isamill", "IsaMill Grinding Machine")
- .getStackForm(1L));
+ new GregtechMetaTileEntity_IsaMill(31027, "gtpp.multimachine.isamill", "IsaMill Grinding Machine")
+ .getStackForm(1L));
GregtechItemList.Controller_Flotation_Cell.set(
- new GregtechMTE_FrothFlotationCell(31028, "gtpp.multimachine.flotationcell", "Flotation Cell Regulator")
- .getStackForm(1L));
+ new GregtechMTE_FrothFlotationCell(31028, "gtpp.multimachine.flotationcell", "Flotation Cell Regulator")
+ .getStackForm(1L));
// Milling Ball Bus
- GregtechItemList.Bus_Milling_Balls.set(
- (new GT_MetaTileEntity_Hatch_MillingBalls(31029, "hatch.milling", "Ball Housing")).getStackForm(1L));
+ GregtechItemList.Bus_Milling_Balls
+ .set((new GT_MetaTileEntity_Hatch_MillingBalls(31029, "hatch.milling", "Ball Housing")).getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechLFTR.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechLFTR.java
index 2e91eb4bb0..3a77c3f569 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechLFTR.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechLFTR.java
@@ -22,73 +22,72 @@ public class GregtechLFTR {
private static void run1() {
// LFTR
GregtechItemList.ThoriumReactor.set(
- new GregtechMTE_NuclearReactor(751, "lftr.controller.single", "Thorium Reactor [LFTR]")
- .getStackForm(1L));
+ new GregtechMTE_NuclearReactor(751, "lftr.controller.single", "Thorium Reactor [LFTR]").getStackForm(1L));
// Reactor Processing Units
GregtechItemList.ReactorProcessingUnit_IV.set(
- new GT_MetaTileEntity_BasicMachine_GT_Recipe(
- 31031,
- "rpu.tier.01",
- "Reactor Processing Unit I",
- 5,
- new String[] { "Processes Nuclear things", CORE.GT_Tooltip.get() },
- GTPPRecipeMaps.reactorProcessingUnitRecipes,
- 2,
- 9,
- true,
- SoundResource.NONE,
- SpecialEffects.NONE,
- "REACTOR_PROCESSING_UNIT",
- null).getStackForm(1L));
+ new GT_MetaTileEntity_BasicMachine_GT_Recipe(
+ 31031,
+ "rpu.tier.01",
+ "Reactor Processing Unit I",
+ 5,
+ new String[] { "Processes Nuclear things", CORE.GT_Tooltip.get() },
+ GTPPRecipeMaps.reactorProcessingUnitRecipes,
+ 2,
+ 9,
+ true,
+ SoundResource.NONE,
+ SpecialEffects.NONE,
+ "REACTOR_PROCESSING_UNIT",
+ null).getStackForm(1L));
GregtechItemList.ReactorProcessingUnit_ZPM.set(
- new GT_MetaTileEntity_BasicMachine_GT_Recipe(
- 31032,
- "rpu.tier.02",
- "Reactor Processing Unit II",
- 7,
- new String[] { "Processes Nuclear things", CORE.GT_Tooltip.get() },
- GTPPRecipeMaps.reactorProcessingUnitRecipes,
- 2,
- 9,
- true,
- SoundResource.NONE,
- SpecialEffects.NONE,
- "REACTOR_PROCESSING_UNIT",
- null).getStackForm(1L));
+ new GT_MetaTileEntity_BasicMachine_GT_Recipe(
+ 31032,
+ "rpu.tier.02",
+ "Reactor Processing Unit II",
+ 7,
+ new String[] { "Processes Nuclear things", CORE.GT_Tooltip.get() },
+ GTPPRecipeMaps.reactorProcessingUnitRecipes,
+ 2,
+ 9,
+ true,
+ SoundResource.NONE,
+ SpecialEffects.NONE,
+ "REACTOR_PROCESSING_UNIT",
+ null).getStackForm(1L));
// Cold Traps
GregtechItemList.ColdTrap_IV.set(
- new GT_MetaTileEntity_BasicMachine_GT_Recipe(
- 31033,
- "coldtrap.tier.01",
- "Cold Trap I",
- 5,
- new String[] { "Just like the Arctic", "Does not require ice cubes", CORE.GT_Tooltip.get() },
- GTPPRecipeMaps.coldTrapRecipes,
- 2,
- 9,
- true,
- SoundResource.NONE,
- SpecialEffects.NONE,
- "COLD_TRAP",
- null).getStackForm(1L));
+ new GT_MetaTileEntity_BasicMachine_GT_Recipe(
+ 31033,
+ "coldtrap.tier.01",
+ "Cold Trap I",
+ 5,
+ new String[] { "Just like the Arctic", "Does not require ice cubes", CORE.GT_Tooltip.get() },
+ GTPPRecipeMaps.coldTrapRecipes,
+ 2,
+ 9,
+ true,
+ SoundResource.NONE,
+ SpecialEffects.NONE,
+ "COLD_TRAP",
+ null).getStackForm(1L));
GregtechItemList.ColdTrap_ZPM.set(
- new GT_MetaTileEntity_BasicMachine_GT_Recipe(
- 31034,
- "coldtrap.tier.02",
- "Cold Trap II",
- 7,
- new String[] { "Just like the Arctic", "Does not require ice cubes", CORE.GT_Tooltip.get() },
- GTPPRecipeMaps.coldTrapRecipes,
- 2,
- 9,
- true,
- SoundResource.NONE,
- SpecialEffects.NONE,
- "COLD_TRAP",
- null).getStackForm(1L));
+ new GT_MetaTileEntity_BasicMachine_GT_Recipe(
+ 31034,
+ "coldtrap.tier.02",
+ "Cold Trap II",
+ 7,
+ new String[] { "Just like the Arctic", "Does not require ice cubes", CORE.GT_Tooltip.get() },
+ GTPPRecipeMaps.coldTrapRecipes,
+ 2,
+ 9,
+ true,
+ SoundResource.NONE,
+ SpecialEffects.NONE,
+ "COLD_TRAP",
+ null).getStackForm(1L));
// Sparge Tower
GregtechItemList.Controller_Sparge_Tower.set(
- new GregtechMetaTileEntity_SpargeTower(31035, "sparge.controller.single", "Sparge Tower Controller")
- .getStackForm(1L));
+ new GregtechMetaTileEntity_SpargeTower(31035, "sparge.controller.single", "Sparge Tower Controller")
+ .getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechLargeTurbinesAndHeatExchanger.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechLargeTurbinesAndHeatExchanger.java
index b021764ad2..b75573a9cf 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechLargeTurbinesAndHeatExchanger.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechLargeTurbinesAndHeatExchanger.java
@@ -21,28 +21,28 @@ public class GregtechLargeTurbinesAndHeatExchanger {
private static void run1() {
GregtechItemList.Large_Steam_Turbine.set(
- new GT_MTE_LargeTurbine_Steam(865, "multimachine.largerturbine", "XL Turbo Steam Turbine")
- .getStackForm(1L));
+ new GT_MTE_LargeTurbine_Steam(865, "multimachine.largerturbine", "XL Turbo Steam Turbine")
+ .getStackForm(1L));
GregtechItemList.Large_HPSteam_Turbine.set(
- new GT_MTE_LargeTurbine_SHSteam(866, "multimachine.largerhpturbine", "XL Turbo HP Steam Turbine")
- .getStackForm(1L));
+ new GT_MTE_LargeTurbine_SHSteam(866, "multimachine.largerhpturbine", "XL Turbo HP Steam Turbine")
+ .getStackForm(1L));
GregtechItemList.Large_Gas_Turbine.set(
- new GT_MTE_LargeTurbine_Gas(31073, "multimachine.largergasturbine", "XL Turbo Gas Turbine")
- .getStackForm(1L));
+ new GT_MTE_LargeTurbine_Gas(31073, "multimachine.largergasturbine", "XL Turbo Gas Turbine")
+ .getStackForm(1L));
GregtechItemList.Large_Plasma_Turbine.set(
- new GT_MTE_LargeTurbine_Plasma(31074, "multimachine.largerplasmaturbine", "XL Turbo Plasma Turbine")
- .getStackForm(1L));
+ new GT_MTE_LargeTurbine_Plasma(31074, "multimachine.largerplasmaturbine", "XL Turbo Plasma Turbine")
+ .getStackForm(1L));
if (GoodGenerator.isModLoaded()) {
GregtechItemList.Large_SCSteam_Turbine.set(
- new GT_MTE_LargeTurbine_SCSteam(31076, "multimachine.largerscturbine", "XL Turbo SC Steam Turbine")
- .getStackForm(1L));
+ new GT_MTE_LargeTurbine_SCSteam(31076, "multimachine.largerscturbine", "XL Turbo SC Steam Turbine")
+ .getStackForm(1L));
}
GregtechItemList.Hatch_Turbine_Rotor
- .set(new GT_MetaTileEntity_Hatch_Turbine(30010, "hatch.turbine", "Rotor Assembly", 8).getStackForm(1L));
+ .set(new GT_MetaTileEntity_Hatch_Turbine(30010, "hatch.turbine", "Rotor Assembly", 8).getStackForm(1L));
GregtechItemList.XL_HeatExchanger.set(
- new GregtechMetaTileEntity_Adv_HeatExchanger(
- 31079,
- "multimachine.reallybigheatexchanger",
- "Whakawhiti Wera XL").getStackForm(1L));
+ new GregtechMetaTileEntity_Adv_HeatExchanger(
+ 31079,
+ "multimachine.reallybigheatexchanger",
+ "Whakawhiti Wera XL").getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechMolecularTransformer.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechMolecularTransformer.java
index 6a6cad76d1..ebb0bde1cf 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechMolecularTransformer.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechMolecularTransformer.java
@@ -13,9 +13,9 @@ public class GregtechMolecularTransformer {
private static void run1() {
GregtechItemList.Controller_MolecularTransformer.set(
- new GregtechMetaTileEntity_IndustrialMolecularTransformer(
- 31072,
- "moleculartransformer.controller.tier.single",
- "Molecular Transformer").getStackForm(1L));
+ new GregtechMetaTileEntity_IndustrialMolecularTransformer(
+ 31072,
+ "moleculartransformer.controller.tier.single",
+ "Molecular Transformer").getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechNuclearSaltProcessingPlant.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechNuclearSaltProcessingPlant.java
index 4cd9b63567..0122f525c6 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechNuclearSaltProcessingPlant.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechNuclearSaltProcessingPlant.java
@@ -12,10 +12,10 @@ public class GregtechNuclearSaltProcessingPlant {
if (CORE.ConfigSwitches.enableMultiblock_NuclearSaltProcessingPlant) {
// Nuclear Salt Processing Plant Multiblock
GregtechItemList.Nuclear_Salt_Processing_Plant.set(
- new GregtechMetaTileEntity_NuclearSaltProcessingPlant(
- 749,
- "nuclearsaltprocessingplant.controller.tier.single",
- "Nuclear Salt Processing Plant").getStackForm(1L));
+ new GregtechMetaTileEntity_NuclearSaltProcessingPlant(
+ 749,
+ "nuclearsaltprocessingplant.controller.tier.single",
+ "Nuclear Salt Processing Plant").getStackForm(1L));
}
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechPollutionDevices.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechPollutionDevices.java
index e6c1febd66..fc62698789 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechPollutionDevices.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechPollutionDevices.java
@@ -21,73 +21,73 @@ public class GregtechPollutionDevices {
if (CORE.ConfigSwitches.enableMachine_Pollution) {
// 759
GregtechItemList.Pollution_Detector.set(
- new GregtechMetaPollutionDetector(
- 756,
- "pollutiondetector.01.tier.single",
- "Pollution Detection Device",
- 0,
- "Tells you if you're living in Gwalior yet.",
- 0).getStackForm(1L));
+ new GregtechMetaPollutionDetector(
+ 756,
+ "pollutiondetector.01.tier.single",
+ "Pollution Detection Device",
+ 0,
+ "Tells you if you're living in Gwalior yet.",
+ 0).getStackForm(1L));
GregtechItemList.Pollution_Creator.set(
- new GregtechMetaPollutionCreator(
- 951,
- "pollutioncreator.01.tier.single",
- "Smog Device",
- 4,
- "Polluting the skies.",
- 0).getStackForm(1L));
+ new GregtechMetaPollutionCreator(
+ 951,
+ "pollutioncreator.01.tier.single",
+ "Smog Device",
+ 4,
+ "Polluting the skies.",
+ 0).getStackForm(1L));
GregtechItemList.Pollution_Cleaner_LV.set(
- new GregtechMetaAtmosphericReconditioner(
- 758,
- "pollutioncleaner.02.tier.single",
- "Upgraded Pollution Scrubber",
- 1).getStackForm(1L));
+ new GregtechMetaAtmosphericReconditioner(
+ 758,
+ "pollutioncleaner.02.tier.single",
+ "Upgraded Pollution Scrubber",
+ 1).getStackForm(1L));
GregtechItemList.Pollution_Cleaner_MV.set(
- new GregtechMetaAtmosphericReconditioner(
- 759,
- "pollutioncleaner.03.tier.single",
- "Advanced Pollution Scrubber",
- 2).getStackForm(1L));
+ new GregtechMetaAtmosphericReconditioner(
+ 759,
+ "pollutioncleaner.03.tier.single",
+ "Advanced Pollution Scrubber",
+ 2).getStackForm(1L));
GregtechItemList.Pollution_Cleaner_HV.set(
- new GregtechMetaAtmosphericReconditioner(
- 760,
- "pollutioncleaner.04.tier.single",
- "Precision Pollution Scrubber",
- 3).getStackForm(1L));
+ new GregtechMetaAtmosphericReconditioner(
+ 760,
+ "pollutioncleaner.04.tier.single",
+ "Precision Pollution Scrubber",
+ 3).getStackForm(1L));
GregtechItemList.Pollution_Cleaner_EV.set(
- new GregtechMetaAtmosphericReconditioner(761, "pollutioncleaner.05.tier.single", "Air Recycler", 4)
- .getStackForm(1L));
+ new GregtechMetaAtmosphericReconditioner(761, "pollutioncleaner.05.tier.single", "Air Recycler", 4)
+ .getStackForm(1L));
GregtechItemList.Pollution_Cleaner_IV.set(
- new GregtechMetaAtmosphericReconditioner(
- 762,
- "pollutioncleaner.06.tier.single",
- "Upgraded Air Recycler",
- 5).getStackForm(1L));
+ new GregtechMetaAtmosphericReconditioner(
+ 762,
+ "pollutioncleaner.06.tier.single",
+ "Upgraded Air Recycler",
+ 5).getStackForm(1L));
GregtechItemList.Pollution_Cleaner_LuV.set(
- new GregtechMetaAtmosphericReconditioner(
- 763,
- "pollutioncleaner.07.tier.single",
- "Advanced Air Recycler",
- 6).getStackForm(1L));
+ new GregtechMetaAtmosphericReconditioner(
+ 763,
+ "pollutioncleaner.07.tier.single",
+ "Advanced Air Recycler",
+ 6).getStackForm(1L));
GregtechItemList.Pollution_Cleaner_ZPM.set(
- new GregtechMetaAtmosphericReconditioner(
- 764,
- "pollutioncleaner.08.tier.single",
- "Precision Air Recycler",
- 7).getStackForm(1L));
+ new GregtechMetaAtmosphericReconditioner(
+ 764,
+ "pollutioncleaner.08.tier.single",
+ "Precision Air Recycler",
+ 7).getStackForm(1L));
GregtechItemList.Pollution_Cleaner_UV.set(
- new GregtechMetaAtmosphericReconditioner(
- 765,
- "pollutioncleaner.09.tier.single",
- "Atmospheric Cleaner",
- 8).getStackForm(1L));
+ new GregtechMetaAtmosphericReconditioner(
+ 765,
+ "pollutioncleaner.09.tier.single",
+ "Atmospheric Cleaner",
+ 8).getStackForm(1L));
GregtechItemList.Pollution_Cleaner_MAX.set(
- new GregtechMetaAtmosphericReconditioner(
- 766,
- "pollutioncleaner.10.tier.single",
- "Biosphere Cleanser",
- 9).getStackForm(1L));
+ new GregtechMetaAtmosphericReconditioner(
+ 766,
+ "pollutioncleaner.10.tier.single",
+ "Biosphere Cleanser",
+ 9).getStackForm(1L));
}
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechPowerSubStation.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechPowerSubStation.java
index b15e9c04aa..3fd906b261 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechPowerSubStation.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechPowerSubStation.java
@@ -22,46 +22,40 @@ public class GregtechPowerSubStation {
private static void run1() {
// Steam Condensors
GregtechItemList.PowerSubStation.set(
- new GregtechMetaTileEntity_PowerSubStationController(
- 812,
- "substation.01.input.single",
- "Power Station Control Node").getStackForm(1L));
+ new GregtechMetaTileEntity_PowerSubStationController(
+ 812,
+ "substation.01.input.single",
+ "Power Station Control Node").getStackForm(1L));
int tID = 886;
GregtechItemList.Hatch_Input_Battery_MV.set(
- new GT_MetaTileEntity_Hatch_InputBattery(tID++, "hatch.input_battery.tier.00", "Charging Bus (MV)", 2)
- .getStackForm(1L));
+ new GT_MetaTileEntity_Hatch_InputBattery(tID++, "hatch.input_battery.tier.00", "Charging Bus (MV)", 2)
+ .getStackForm(1L));
GregtechItemList.Hatch_Input_Battery_EV.set(
- new GT_MetaTileEntity_Hatch_InputBattery(tID++, "hatch.input_battery.tier.01", "Charging Bus (EV)", 4)
- .getStackForm(1L));
+ new GT_MetaTileEntity_Hatch_InputBattery(tID++, "hatch.input_battery.tier.01", "Charging Bus (EV)", 4)
+ .getStackForm(1L));
GregtechItemList.Hatch_Output_Battery_MV.set(
- new GT_MetaTileEntity_Hatch_OutputBattery(
- tID++,
- "hatch.output_battery.tier.00",
- "Discharging Bus (MV)",
- 2).getStackForm(1L));
+ new GT_MetaTileEntity_Hatch_OutputBattery(tID++, "hatch.output_battery.tier.00", "Discharging Bus (MV)", 2)
+ .getStackForm(1L));
GregtechItemList.Hatch_Output_Battery_EV.set(
- new GT_MetaTileEntity_Hatch_OutputBattery(
- tID++,
- "hatch.output_battery.tier.01",
- "Discharging Bus (EV)",
- 4).getStackForm(1L));
+ new GT_MetaTileEntity_Hatch_OutputBattery(tID++, "hatch.output_battery.tier.01", "Discharging Bus (EV)", 4)
+ .getStackForm(1L));
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Hatch_Input_Battery_MV.get(1L, new Object[0]),
- CI.bitsd,
- new Object[] { "C", "M", 'M', ItemList.Hull_MV, 'C', ItemList.Battery_Buffer_2by2_MV });
+ GregtechItemList.Hatch_Input_Battery_MV.get(1L, new Object[0]),
+ CI.bitsd,
+ new Object[] { "C", "M", 'M', ItemList.Hull_MV, 'C', ItemList.Battery_Buffer_2by2_MV });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Hatch_Input_Battery_EV.get(1L, new Object[0]),
- CI.bitsd,
- new Object[] { "C", "M", 'M', ItemList.Hull_EV, 'C', ItemList.Battery_Buffer_4by4_EV });
+ GregtechItemList.Hatch_Input_Battery_EV.get(1L, new Object[0]),
+ CI.bitsd,
+ new Object[] { "C", "M", 'M', ItemList.Hull_EV, 'C', ItemList.Battery_Buffer_4by4_EV });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Hatch_Output_Battery_MV.get(1L, new Object[0]),
- CI.bitsd,
- new Object[] { "M", "C", 'M', ItemList.Hull_MV, 'C', ItemList.Battery_Buffer_2by2_MV });
+ GregtechItemList.Hatch_Output_Battery_MV.get(1L, new Object[0]),
+ CI.bitsd,
+ new Object[] { "M", "C", 'M', ItemList.Hull_MV, 'C', ItemList.Battery_Buffer_2by2_MV });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Hatch_Output_Battery_EV.get(1L, new Object[0]),
- CI.bitsd,
- new Object[] { "M", "C", 'M', ItemList.Hull_EV, 'C', ItemList.Battery_Buffer_4by4_EV });
+ GregtechItemList.Hatch_Output_Battery_EV.get(1L, new Object[0]),
+ CI.bitsd,
+ new Object[] { "M", "C", 'M', ItemList.Hull_EV, 'C', ItemList.Battery_Buffer_4by4_EV });
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechQuantumForceTransformer.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechQuantumForceTransformer.java
index 561d70eb5b..5943f3bd28 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechQuantumForceTransformer.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechQuantumForceTransformer.java
@@ -11,10 +11,10 @@ public class GregtechQuantumForceTransformer {
Logger.INFO("Gregtech5u Content | Registering Quantum Force Transformer Multiblock.");
if (CORE.ConfigSwitches.enableMultiblock_QuantumForceTransformer) {
GregtechItemList.QuantumForceTransformer.set(
- new GregtechMetaTileEntity_QuantumForceTransformer(
- 31151,
- "quantumforcetransformer.controller.tier.single",
- "Quantum Force Transformer").getStackForm(1L));
+ new GregtechMetaTileEntity_QuantumForceTransformer(
+ 31151,
+ "quantumforcetransformer.controller.tier.single",
+ "Quantum Force Transformer").getStackForm(1L));
}
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechRTG.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechRTG.java
index a5fc00542e..5eb148a287 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechRTG.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechRTG.java
@@ -13,10 +13,10 @@ public class GregtechRTG {
private static void run1() {
GregtechItemList.RTG.set(
- new GregtechMetaTileEntity_RTG(
- 869,
- "basicgenerator.rtg.tier.01",
- "Radioisotope Thermoelectric Generator",
- 3).getStackForm(1L));
+ new GregtechMetaTileEntity_RTG(
+ 869,
+ "basicgenerator.rtg.tier.01",
+ "Radioisotope Thermoelectric Generator",
+ 3).getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechRocketFuelGenerator.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechRocketFuelGenerator.java
index 4187759a88..b2f53d46ba 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechRocketFuelGenerator.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechRocketFuelGenerator.java
@@ -25,76 +25,74 @@ public class GregtechRocketFuelGenerator {
private static void run1() {
GregtechItemList.Controller_RocketEngine.set(
- new GregtechMetaTileEntity_LargeRocketEngine(
- 996,
- "gtpp.multimachine.rocketengine",
- "Rocketdyne F-1A Engine").getStackForm(1L));
+ new GregtechMetaTileEntity_LargeRocketEngine(
+ 996,
+ "gtpp.multimachine.rocketengine",
+ "Rocketdyne F-1A Engine").getStackForm(1L));
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Controller_RocketEngine.get(1L),
- CI.bitsd,
- new Object[] { "PCP", "EME", "GWG", 'M', ItemList.Machine_Multi_DieselEngine.get(1), 'P',
- ItemList.Electric_Piston_IV, 'E', ItemList.Field_Generator_EV, 'C',
- OrePrefixes.circuit.get(Materials.Master), 'W', OrePrefixes.cableGt08.get(Materials.Platinum),
- 'G', ALLOY.MARAGING350.getGear(1) });
+ GregtechItemList.Controller_RocketEngine.get(1L),
+ CI.bitsd,
+ new Object[] { "PCP", "EME", "GWG", 'M', ItemList.Machine_Multi_DieselEngine.get(1), 'P',
+ ItemList.Electric_Piston_IV, 'E', ItemList.Field_Generator_EV, 'C',
+ OrePrefixes.circuit.get(Materials.Master), 'W', OrePrefixes.cableGt08.get(Materials.Platinum), 'G',
+ ALLOY.MARAGING350.getGear(1) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Casing_RocketEngine.get(1L),
- CI.bitsd,
- new Object[] { "PhP", "RFR", "PWP", 'R', OrePrefixes.pipeMedium.get(Materials.TungstenSteel), 'F',
- ItemList.Casing_RobustTungstenSteel, 'P', ALLOY.NITINOL_60.getGear(1), 'W',
- OrePrefixes.stickLong.get(Materials.TungstenSteel) });
+ GregtechItemList.Casing_RocketEngine.get(1L),
+ CI.bitsd,
+ new Object[] { "PhP", "RFR", "PWP", 'R', OrePrefixes.pipeMedium.get(Materials.TungstenSteel), 'F',
+ ItemList.Casing_RobustTungstenSteel, 'P', ALLOY.NITINOL_60.getGear(1), 'W',
+ OrePrefixes.stickLong.get(Materials.TungstenSteel) });
GregtechItemList.Rocket_Engine_EV.set(
- new GregtechMetaTileEntityRocketFuelGenerator(
- 793,
- "advancedgenerator.rocketFuel.tier.01",
- "Basic Rocket Engine",
- 4).getStackForm(1L));
+ new GregtechMetaTileEntityRocketFuelGenerator(
+ 793,
+ "advancedgenerator.rocketFuel.tier.01",
+ "Basic Rocket Engine",
+ 4).getStackForm(1L));
GregtechItemList.Rocket_Engine_IV.set(
- new GregtechMetaTileEntityRocketFuelGenerator(
- 794,
- "advancedgenerator.rocketFuel.tier.02",
- "Advanced Rocket Engine",
- 5).getStackForm(1L));
+ new GregtechMetaTileEntityRocketFuelGenerator(
+ 794,
+ "advancedgenerator.rocketFuel.tier.02",
+ "Advanced Rocket Engine",
+ 5).getStackForm(1L));
GregtechItemList.Rocket_Engine_LuV.set(
- new GregtechMetaTileEntityRocketFuelGenerator(
- 795,
- "advancedgenerator.rocketFuel.tier.03",
- "Turbo Rocket Engine",
- 6).getStackForm(1L));
+ new GregtechMetaTileEntityRocketFuelGenerator(
+ 795,
+ "advancedgenerator.rocketFuel.tier.03",
+ "Turbo Rocket Engine",
+ 6).getStackForm(1L));
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Rocket_Engine_EV.get(1L, new Object[0]),
- GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
- | GT_ModHandler.RecipeBits.REVERSIBLE
- | GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "PCP", "EME", "GWG", Character.valueOf('M'), ItemList.Hull_EV, Character.valueOf('P'),
- ItemList.Electric_Piston_EV, Character.valueOf('E'), ItemList.Electric_Motor_EV,
- Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Elite), Character.valueOf('W'),
- OrePrefixes.cableGt02.get(Materials.Aluminium), Character.valueOf('G'),
- ALLOY.TANTALLOY_61.getGear(1) });
+ GregtechItemList.Rocket_Engine_EV.get(1L, new Object[0]),
+ GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
+ | GT_ModHandler.RecipeBits.REVERSIBLE
+ | GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "PCP", "EME", "GWG", Character.valueOf('M'), ItemList.Hull_EV, Character.valueOf('P'),
+ ItemList.Electric_Piston_EV, Character.valueOf('E'), ItemList.Electric_Motor_EV, Character.valueOf('C'),
+ OrePrefixes.circuit.get(Materials.Elite), Character.valueOf('W'),
+ OrePrefixes.cableGt02.get(Materials.Aluminium), Character.valueOf('G'),
+ ALLOY.TANTALLOY_61.getGear(1) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Rocket_Engine_IV.get(1L, new Object[0]),
- GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
- | GT_ModHandler.RecipeBits.REVERSIBLE
- | GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "PCP", "EME", "GWG", Character.valueOf('M'), ItemList.Hull_IV, Character.valueOf('P'),
- ItemList.Electric_Piston_IV, Character.valueOf('E'), ItemList.Electric_Motor_IV,
- Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Master), Character.valueOf('W'),
- OrePrefixes.cableGt02.get(Materials.Platinum), Character.valueOf('G'),
- ALLOY.STELLITE.getGear(1) });
+ GregtechItemList.Rocket_Engine_IV.get(1L, new Object[0]),
+ GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
+ | GT_ModHandler.RecipeBits.REVERSIBLE
+ | GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "PCP", "EME", "GWG", Character.valueOf('M'), ItemList.Hull_IV, Character.valueOf('P'),
+ ItemList.Electric_Piston_IV, Character.valueOf('E'), ItemList.Electric_Motor_IV, Character.valueOf('C'),
+ OrePrefixes.circuit.get(Materials.Master), Character.valueOf('W'),
+ OrePrefixes.cableGt02.get(Materials.Platinum), Character.valueOf('G'), ALLOY.STELLITE.getGear(1) });
final ItemStack INGREDIENT_1 = CI.electricPiston_LuV;
final ItemStack INGREDIENT_2 = CI.electricMotor_LuV;
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Rocket_Engine_LuV.get(1L, new Object[0]),
- GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
- | GT_ModHandler.RecipeBits.REVERSIBLE
- | GT_ModHandler.RecipeBits.BUFFERED,
- new Object[] { "PCP", "EME", "GWG", Character.valueOf('M'), ItemList.Hull_LuV, Character.valueOf('P'),
- INGREDIENT_1, Character.valueOf('E'), INGREDIENT_2, Character.valueOf('C'),
- OrePrefixes.circuit.get(Materials.Ultimate), Character.valueOf('W'),
- OrePrefixes.cableGt02.get(Materials.Tungsten), Character.valueOf('G'),
- ALLOY.ZERON_100.getGear(1) });
+ GregtechItemList.Rocket_Engine_LuV.get(1L, new Object[0]),
+ GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE
+ | GT_ModHandler.RecipeBits.REVERSIBLE
+ | GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[] { "PCP", "EME", "GWG", Character.valueOf('M'), ItemList.Hull_LuV, Character.valueOf('P'),
+ INGREDIENT_1, Character.valueOf('E'), INGREDIENT_2, Character.valueOf('C'),
+ OrePrefixes.circuit.get(Materials.Ultimate), Character.valueOf('W'),
+ OrePrefixes.cableGt02.get(Materials.Tungsten), Character.valueOf('G'), ALLOY.ZERON_100.getGear(1) });
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechSemiFluidgenerators.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechSemiFluidgenerators.java
index 32e164bc84..be349d2a81 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechSemiFluidgenerators.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechSemiFluidgenerators.java
@@ -8,39 +8,39 @@ public class GregtechSemiFluidgenerators {
public static void run() {
GregtechItemList.Generator_SemiFluid_LV.set(
- new GT_MetaTileEntity_SemiFluidGenerator(
- 837,
- "basicgenerator.semifluid.tier.01",
- "Basic Semi-Fluid Generator",
- 1).getStackForm(1L));
+ new GT_MetaTileEntity_SemiFluidGenerator(
+ 837,
+ "basicgenerator.semifluid.tier.01",
+ "Basic Semi-Fluid Generator",
+ 1).getStackForm(1L));
GregtechItemList.Generator_SemiFluid_MV.set(
- new GT_MetaTileEntity_SemiFluidGenerator(
- 838,
- "basicgenerator.semifluid.tier.02",
- "Advanced Semi-Fluid Generator",
- 2).getStackForm(1L));
+ new GT_MetaTileEntity_SemiFluidGenerator(
+ 838,
+ "basicgenerator.semifluid.tier.02",
+ "Advanced Semi-Fluid Generator",
+ 2).getStackForm(1L));
GregtechItemList.Generator_SemiFluid_HV.set(
- new GT_MetaTileEntity_SemiFluidGenerator(
- 839,
- "basicgenerator.semifluid.tier.03",
- "Turbo Semi-Fluid Generator",
- 3).getStackForm(1L));
+ new GT_MetaTileEntity_SemiFluidGenerator(
+ 839,
+ "basicgenerator.semifluid.tier.03",
+ "Turbo Semi-Fluid Generator",
+ 3).getStackForm(1L));
GregtechItemList.Generator_SemiFluid_EV.set(
- new GT_MetaTileEntity_SemiFluidGenerator(
- 993,
- "basicgenerator.semifluid.tier.04",
- "Turbo Semi-Fluid Generator II",
- 4).getStackForm(1L));
+ new GT_MetaTileEntity_SemiFluidGenerator(
+ 993,
+ "basicgenerator.semifluid.tier.04",
+ "Turbo Semi-Fluid Generator II",
+ 4).getStackForm(1L));
GregtechItemList.Generator_SemiFluid_IV.set(
- new GT_MetaTileEntity_SemiFluidGenerator(
- 994,
- "basicgenerator.semifluid.tier.05",
- "Turbo Semi-Fluid Generator III",
- 5).getStackForm(1L));
+ new GT_MetaTileEntity_SemiFluidGenerator(
+ 994,
+ "basicgenerator.semifluid.tier.05",
+ "Turbo Semi-Fluid Generator III",
+ 5).getStackForm(1L));
GregtechItemList.Controller_LargeSemifluidGenerator.set(
- new GregtechMetaTileEntity_LargeSemifluidGenerator(
- 31026,
- "gtpp.multimachine.semifluidgenerator",
- "Large Semifluid Burner").getStackForm(1L));
+ new GregtechMetaTileEntity_LargeSemifluidGenerator(
+ 31026,
+ "gtpp.multimachine.semifluidgenerator",
+ "Large Semifluid Burner").getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechSimpleWasher.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechSimpleWasher.java
index 5ae416953f..15d54a7c6d 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechSimpleWasher.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechSimpleWasher.java
@@ -33,55 +33,53 @@ public class GregtechSimpleWasher {
// every other tier, and they were numbered numerically. In order to maintain backwards compatibility,
// the tier numbers need to stay as they were.
List<Quad<GregtechItemList, Integer, String, String>> washers = ImmutableList.of(
- new Quad<>(
- GregtechItemList.SimpleDustWasher_LV,
- 31790,
- "simplewasher.01.tier.06",
- "Simple Washer I"),
- new Quad<>(
- GregtechItemList.SimpleDustWasher_MV,
- 31017,
- "simplewasher.01.tier.02",
- "Simple Washer II"),
- new Quad<>(
- GregtechItemList.SimpleDustWasher_HV,
- 31791,
- "simplewasher.01.tier.07",
- "Simple Washer III"),
- new Quad<>(
- GregtechItemList.SimpleDustWasher_EV,
- 31018,
- "simplewasher.01.tier.03",
- "Simple Washer IV"),
- new Quad<>(
- GregtechItemList.SimpleDustWasher_IV,
- 31792,
- "simplewasher.01.tier.08",
- "Simple Washer V"),
- new Quad<>(
- GregtechItemList.SimpleDustWasher_LuV,
- 31019,
- "simplewasher.01.tier.04",
- "Simple Washer VI"),
- new Quad<>(
- GregtechItemList.SimpleDustWasher_ZPM,
- 31793,
- "simplewasher.01.tier.09",
- "Simple Washer VII"),
- new Quad<>(
- GregtechItemList.SimpleDustWasher_UV,
- 31020,
- "simplewasher.01.tier.05",
- "Simple Washer VIII"));
+ new Quad<>(GregtechItemList.SimpleDustWasher_LV, 31790, "simplewasher.01.tier.06", "Simple Washer I"),
+ new Quad<>(GregtechItemList.SimpleDustWasher_MV, 31017, "simplewasher.01.tier.02", "Simple Washer II"),
+ new Quad<>(GregtechItemList.SimpleDustWasher_HV, 31791, "simplewasher.01.tier.07", "Simple Washer III"),
+ new Quad<>(GregtechItemList.SimpleDustWasher_EV, 31018, "simplewasher.01.tier.03", "Simple Washer IV"),
+ new Quad<>(GregtechItemList.SimpleDustWasher_IV, 31792, "simplewasher.01.tier.08", "Simple Washer V"),
+ new Quad<>(GregtechItemList.SimpleDustWasher_LuV, 31019, "simplewasher.01.tier.04", "Simple Washer VI"),
+ new Quad<>(
+ GregtechItemList.SimpleDustWasher_ZPM,
+ 31793,
+ "simplewasher.01.tier.09",
+ "Simple Washer VII"),
+ new Quad<>(
+ GregtechItemList.SimpleDustWasher_UV,
+ 31020,
+ "simplewasher.01.tier.05",
+ "Simple Washer VIII"));
GregtechItemList.SimpleDustWasher_ULV.set(
- new GT_MetaTileEntity_BasicMachine_GT_Recipe(
- 767,
- "simplewasher.01.tier.01",
- "Deprecated ULV Simple Washer",
- 0,
+ new GT_MetaTileEntity_BasicMachine_GT_Recipe(
+ 767,
+ "simplewasher.01.tier.01",
+ "Deprecated ULV Simple Washer",
+ 0,
+ new String[] { "It's like an automatic Cauldron for washing dusts.",
+ "§cDEPRECATED: No recipe.§r Make a Simple Washer I.", CORE.GT_Tooltip.get() },
+ GTPPRecipeMaps.simpleWasherRecipes,
+ 1,
+ 1,
+ true,
+ SoundResource.NONE,
+ SpecialEffects.NONE,
+ "SIMPLE_WASHER",
+ null).setRecipeCatalystPriority(-11)
+ .getStackForm(1L));
+
+ for (int i = 0; i < washers.size(); i++) {
+ Quad<GregtechItemList, Integer, String, String> washer = washers.get(i);
+ int tier = i + 1;
+ washer.getKey()
+ .set(
+ new GT_MetaTileEntity_BasicMachine_GT_Recipe(
+ washer.getValue_1(),
+ washer.getValue_2(),
+ washer.getValue_3(),
+ tier,
new String[] { "It's like an automatic Cauldron for washing dusts.",
- "§cDEPRECATED: No recipe.§r Make a Simple Washer I.", CORE.GT_Tooltip.get() },
+ CORE.GT_Tooltip.get() },
GTPPRecipeMaps.simpleWasherRecipes,
1,
1,
@@ -89,27 +87,8 @@ public class GregtechSimpleWasher {
SoundResource.NONE,
SpecialEffects.NONE,
"SIMPLE_WASHER",
- null).setRecipeCatalystPriority(-11).getStackForm(1L));
-
- for (int i = 0; i < washers.size(); i++) {
- Quad<GregtechItemList, Integer, String, String> washer = washers.get(i);
- int tier = i + 1;
- washer.getKey().set(
- new GT_MetaTileEntity_BasicMachine_GT_Recipe(
- washer.getValue_1(),
- washer.getValue_2(),
- washer.getValue_3(),
- tier,
- new String[] { "It's like an automatic Cauldron for washing dusts.",
- CORE.GT_Tooltip.get() },
- GTPPRecipeMaps.simpleWasherRecipes,
- 1,
- 1,
- true,
- SoundResource.NONE,
- SpecialEffects.NONE,
- "SIMPLE_WASHER",
- null).setRecipeCatalystPriority(-tier).getStackForm(1L));
+ null).setRecipeCatalystPriority(-tier)
+ .getStackForm(1L));
}
}
}
@@ -122,8 +101,8 @@ public class GregtechSimpleWasher {
ItemStack dustPure;
for (Materials v : Materials.values()) {
if (v == Materials.Platinum || v == Materials.Osmium
- || v == Materials.Iridium
- || v == Materials.Palladium) {
+ || v == Materials.Iridium
+ || v == Materials.Palladium) {
continue;
}
@@ -142,11 +121,13 @@ public class GregtechSimpleWasher {
addSimpleWashRecipe(dustPure, dustClean);
}
- return GTPPRecipeMaps.simpleWasherRecipes.getAllRecipes().size() > mRecipeCount;
+ return GTPPRecipeMaps.simpleWasherRecipes.getAllRecipes()
+ .size() > mRecipeCount;
}
private static boolean generateDirtyCrushedRecipes() {
- int mRecipeCount = GTPPRecipeMaps.simpleWasherRecipes.getAllRecipes().size();
+ int mRecipeCount = GTPPRecipeMaps.simpleWasherRecipes.getAllRecipes()
+ .size();
// Generate Recipe Map for the Dust Washer.
ItemStack crushedClean;
ItemStack crushedDirty;
@@ -162,22 +143,23 @@ public class GregtechSimpleWasher {
addSimpleWashRecipe(crushedDirty, crushedClean);
}
- return GTPPRecipeMaps.simpleWasherRecipes.getAllRecipes().size() > mRecipeCount;
+ return GTPPRecipeMaps.simpleWasherRecipes.getAllRecipes()
+ .size() > mRecipeCount;
}
private static void addSimpleWashRecipe(ItemStack aInput, ItemStack aOutput) {
if (aInput != null && aOutput != null) {
GT_Recipe aRecipe = new GT_Recipe(
- false,
- new ItemStack[] { aInput },
- new ItemStack[] { aOutput },
- null,
- new int[] {},
- new FluidStack[] { FluidUtils.getFluidStack("water", 100) },
- new FluidStack[] {},
- 5,
- 8,
- 0);
+ false,
+ new ItemStack[] { aInput },
+ new ItemStack[] { aOutput },
+ null,
+ new int[] {},
+ new FluidStack[] { FluidUtils.getFluidStack("water", 100) },
+ new FluidStack[] {},
+ 5,
+ 8,
+ 0);
GTPPRecipeMaps.simpleWasherRecipes.addRecipe(aRecipe);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechSolarTower.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechSolarTower.java
index 5e4a367ebc..466e56181b 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechSolarTower.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechSolarTower.java
@@ -19,28 +19,28 @@ public class GregtechSolarTower {
private static void run1() {
// Solar Tower
GregtechItemList.Industrial_Solar_Tower.set(
- new GregtechMetaTileEntity_SolarTower(863, "solartower.controller.tier.single", "Solar Tower")
- .getStackForm(1L));
+ new GregtechMetaTileEntity_SolarTower(863, "solartower.controller.tier.single", "Solar Tower")
+ .getStackForm(1L));
GregtechItemList.Solar_Tower_Reflector.set(
- new TileEntitySolarHeater(
- 864,
- "solarreflector.simple.single",
- "Solar Reflector",
- 8,
- "Part of the Clean Green energy movement",
- 0).getStackForm(1L));
+ new TileEntitySolarHeater(
+ 864,
+ "solarreflector.simple.single",
+ "Solar Reflector",
+ 8,
+ "Part of the Clean Green energy movement",
+ 0).getStackForm(1L));
// NEI recipe
GTPPRecipeMaps.solarTowerRecipes.addRecipe(
- false,
- null,
- null,
- null,
- null,
- new FluidStack[] { MISC_MATERIALS.SOLAR_SALT_COLD.getFluidStack(1000) },
- new FluidStack[] { MISC_MATERIALS.SOLAR_SALT_HOT.getFluidStack(1000) },
- 0,
- 0,
- 0);
+ false,
+ null,
+ null,
+ null,
+ null,
+ new FluidStack[] { MISC_MATERIALS.SOLAR_SALT_COLD.getFluidStack(1000) },
+ new FluidStack[] { MISC_MATERIALS.SOLAR_SALT_HOT.getFluidStack(1000) },
+ 0,
+ 0,
+ 0);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechSteamMultis.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechSteamMultis.java
index 53436350cc..9c3a73092b 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechSteamMultis.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechSteamMultis.java
@@ -14,22 +14,17 @@ public class GregtechSteamMultis {
Logger.INFO("Gregtech5u Content | Registering Steam Multiblocks.");
GregtechItemList.Controller_SteamMaceratorMulti.set(
- new GregtechMetaTileEntity_SteamMacerator(31041, "gtpp.multimachine.steam.macerator", "Steam Grinder")
- .getStackForm(1L));
+ new GregtechMetaTileEntity_SteamMacerator(31041, "gtpp.multimachine.steam.macerator", "Steam Grinder")
+ .getStackForm(1L));
GregtechItemList.Controller_SteamCompressorMulti.set(
- new GregtechMetaTileEntity_SteamCompressor(
- 31078,
- "gtpp.multimachine.steam.compressor",
- "Steam Squasher").getStackForm(1L));
+ new GregtechMetaTileEntity_SteamCompressor(31078, "gtpp.multimachine.steam.compressor", "Steam Squasher")
+ .getStackForm(1L));
GregtechItemList.Hatch_Input_Bus_Steam.set(
- new GT_MetaTileEntity_Hatch_Steam_BusInput(31046, "hatch.input_bus.tier.steam", "Input Bus (Steam)", 0)
- .getStackForm(1L));
+ new GT_MetaTileEntity_Hatch_Steam_BusInput(31046, "hatch.input_bus.tier.steam", "Input Bus (Steam)", 0)
+ .getStackForm(1L));
GregtechItemList.Hatch_Output_Bus_Steam.set(
- new GT_MetaTileEntity_Hatch_Steam_BusOutput(
- 31047,
- "hatch.output_bus.tier.steam",
- "Output Bus (Steam)",
- 0).getStackForm(1L));
+ new GT_MetaTileEntity_Hatch_Steam_BusOutput(31047, "hatch.output_bus.tier.steam", "Output Bus (Steam)", 0)
+ .getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechSuperChests.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechSuperChests.java
index 08ce02b5fa..51ff8c879c 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechSuperChests.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechSuperChests.java
@@ -11,20 +11,20 @@ public class GregtechSuperChests {
String aSuffix = " [Disabled]";
GregtechItemList.Super_Chest_LV.set(
- (new GT_MetaTileEntity_TieredChest(mId++, "super.chest.gtpp.tier.01", "Super Chest I" + aSuffix, 1))
- .getStackForm(1L));
+ (new GT_MetaTileEntity_TieredChest(mId++, "super.chest.gtpp.tier.01", "Super Chest I" + aSuffix, 1))
+ .getStackForm(1L));
GregtechItemList.Super_Chest_MV.set(
- (new GT_MetaTileEntity_TieredChest(mId++, "super.chest.gtpp.tier.02", "Super Chest II" + aSuffix, 2))
- .getStackForm(1L));
+ (new GT_MetaTileEntity_TieredChest(mId++, "super.chest.gtpp.tier.02", "Super Chest II" + aSuffix, 2))
+ .getStackForm(1L));
GregtechItemList.Super_Chest_HV.set(
- (new GT_MetaTileEntity_TieredChest(mId++, "super.chest.gtpp.tier.03", "Super Chest III" + aSuffix, 3))
- .getStackForm(1L));
+ (new GT_MetaTileEntity_TieredChest(mId++, "super.chest.gtpp.tier.03", "Super Chest III" + aSuffix, 3))
+ .getStackForm(1L));
GregtechItemList.Super_Chest_EV.set(
- (new GT_MetaTileEntity_TieredChest(mId++, "super.chest.gtpp.tier.04", "Super Chest IV" + aSuffix, 4))
- .getStackForm(1L));
+ (new GT_MetaTileEntity_TieredChest(mId++, "super.chest.gtpp.tier.04", "Super Chest IV" + aSuffix, 4))
+ .getStackForm(1L));
GregtechItemList.Super_Chest_IV.set(
- (new GT_MetaTileEntity_TieredChest(mId++, "super.chest.gtpp.tier.05", "Super Chest V" + aSuffix, 5))
- .getStackForm(1L));
+ (new GT_MetaTileEntity_TieredChest(mId++, "super.chest.gtpp.tier.05", "Super Chest V" + aSuffix, 5))
+ .getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechThaumcraftDevices.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechThaumcraftDevices.java
index a69f6d7f4b..a8c8a8fa6d 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechThaumcraftDevices.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechThaumcraftDevices.java
@@ -18,12 +18,12 @@ public class GregtechThaumcraftDevices {
private static void run1() {
// 956-960
GregtechItemList.Thaumcraft_Researcher.set(
- new GregtechMetaPollutionCreator(
- 956,
- "thaumcraft.gtpp.machine.01",
- "Arcane Researcher",
- 5,
- "Thinking for you.",
- 0).getStackForm(1L));
+ new GregtechMetaPollutionCreator(
+ 956,
+ "thaumcraft.gtpp.machine.01",
+ "Arcane Researcher",
+ 5,
+ "Thinking for you.",
+ 0).getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechThreadedBuffers.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechThreadedBuffers.java
index 739c77ce87..695ae84b38 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechThreadedBuffers.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechThreadedBuffers.java
@@ -7,7 +7,7 @@ public class GregtechThreadedBuffers {
public static void run() {
GregtechItemList.Infinite_Item_Chest.set(
- (new GT_MetaTileEntity_InfiniteItemHolder(31010, "infinite.chest.tier.01", "Infinite Item Chest", 1))
- .getStackForm(1L));
+ (new GT_MetaTileEntity_InfiniteItemHolder(31010, "infinite.chest.tier.01", "Infinite Item Chest", 1))
+ .getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechTieredFluidTanks.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechTieredFluidTanks.java
index e5116d01d4..b5db00d058 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechTieredFluidTanks.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechTieredFluidTanks.java
@@ -18,16 +18,14 @@ public class GregtechTieredFluidTanks {
int ID = 817;
Logger.INFO("Only loading ULV-IV tier tanks for New Horizons Modpack.");
GregtechItemList.GT_FluidTank_ULV.set(
- new GT_MetaTileEntity_TieredTank(ID++, "fluidtank.tier.00", "Ultra Low Voltage Fluid Tank", 0)
- .getStackForm(1L));
+ new GT_MetaTileEntity_TieredTank(ID++, "fluidtank.tier.00", "Ultra Low Voltage Fluid Tank", 0)
+ .getStackForm(1L));
GregtechItemList.GT_FluidTank_LV.set(
- new GT_MetaTileEntity_TieredTank(ID++, "fluidtank.tier.01", "Low Voltage Fluid Tank", 1)
- .getStackForm(1L));
+ new GT_MetaTileEntity_TieredTank(ID++, "fluidtank.tier.01", "Low Voltage Fluid Tank", 1).getStackForm(1L));
GregtechItemList.GT_FluidTank_MV.set(
- new GT_MetaTileEntity_TieredTank(ID++, "fluidtank.tier.02", "Medium Voltage Fluid Tank", 2)
- .getStackForm(1L));
+ new GT_MetaTileEntity_TieredTank(ID++, "fluidtank.tier.02", "Medium Voltage Fluid Tank", 2)
+ .getStackForm(1L));
GregtechItemList.GT_FluidTank_HV.set(
- new GT_MetaTileEntity_TieredTank(ID++, "fluidtank.tier.03", "High Voltage Fluid Tank", 3)
- .getStackForm(1L));
+ new GT_MetaTileEntity_TieredTank(ID++, "fluidtank.tier.03", "High Voltage Fluid Tank", 3).getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechTreeFarmerTE.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechTreeFarmerTE.java
index 2d79a3bd0b..8b1d4be6ee 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechTreeFarmerTE.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechTreeFarmerTE.java
@@ -15,7 +15,7 @@ public class GregtechTreeFarmerTE {
}
private static void run1() {
- GregtechItemList.TreeFarmer_Structural.set(
- new GregtechMetaTreeFarmerStructural(752, "treefarmer.structural", "Farm Keeper", 0).getStackForm(1L));
+ GregtechItemList.TreeFarmer_Structural
+ .set(new GregtechMetaTreeFarmerStructural(752, "treefarmer.structural", "Farm Keeper", 0).getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechWirelessChargers.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechWirelessChargers.java
index 43645b16fb..452c9117ed 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechWirelessChargers.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechWirelessChargers.java
@@ -14,83 +14,83 @@ public class GregtechWirelessChargers {
Logger.INFO("Gregtech5u Content | Registering Wireless Chargers.");
long bitsd = 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;
int mID = 890;
Utils.registerEvent(new ChargingHelper());
GregtechItemList.Charger_LV.set(
- new GregtechMetaWirelessCharger(
- mID++,
- "wificharger.01.tier.single",
- "Wireless Charger MK I",
- 1,
- "Hopefully won't give you cancer.",
- 0).getStackForm(1L));
+ new GregtechMetaWirelessCharger(
+ mID++,
+ "wificharger.01.tier.single",
+ "Wireless Charger MK I",
+ 1,
+ "Hopefully won't give you cancer.",
+ 0).getStackForm(1L));
GregtechItemList.Charger_MV.set(
- new GregtechMetaWirelessCharger(
- mID++,
- "wificharger.02.tier.single",
- "Wireless Charger MK II",
- 2,
- "Hopefully won't give you cancer.",
- 0).getStackForm(1L));
+ new GregtechMetaWirelessCharger(
+ mID++,
+ "wificharger.02.tier.single",
+ "Wireless Charger MK II",
+ 2,
+ "Hopefully won't give you cancer.",
+ 0).getStackForm(1L));
GregtechItemList.Charger_HV.set(
- new GregtechMetaWirelessCharger(
- mID++,
- "wificharger.03.tier.single",
- "Wireless Charger MK III",
- 3,
- "Hopefully won't give you cancer.",
- 0).getStackForm(1L));
+ new GregtechMetaWirelessCharger(
+ mID++,
+ "wificharger.03.tier.single",
+ "Wireless Charger MK III",
+ 3,
+ "Hopefully won't give you cancer.",
+ 0).getStackForm(1L));
GregtechItemList.Charger_EV.set(
- new GregtechMetaWirelessCharger(
- mID++,
- "wificharger.04.tier.single",
- "Wireless Charger MK IV",
- 4,
- "Hopefully won't give you cancer.",
- 0).getStackForm(1L));
+ new GregtechMetaWirelessCharger(
+ mID++,
+ "wificharger.04.tier.single",
+ "Wireless Charger MK IV",
+ 4,
+ "Hopefully won't give you cancer.",
+ 0).getStackForm(1L));
GregtechItemList.Charger_IV.set(
- new GregtechMetaWirelessCharger(
- mID++,
- "wificharger.05.tier.single",
- "Wireless Charger MK V",
- 5,
- "Hopefully won't give you cancer.",
- 0).getStackForm(1L));
+ new GregtechMetaWirelessCharger(
+ mID++,
+ "wificharger.05.tier.single",
+ "Wireless Charger MK V",
+ 5,
+ "Hopefully won't give you cancer.",
+ 0).getStackForm(1L));
GregtechItemList.Charger_LuV.set(
- new GregtechMetaWirelessCharger(
- mID++,
- "wificharger.06.tier.single",
- "Wireless Charger MK VI",
- 6,
- "Hopefully won't give you cancer.",
- 0).getStackForm(1L));
+ new GregtechMetaWirelessCharger(
+ mID++,
+ "wificharger.06.tier.single",
+ "Wireless Charger MK VI",
+ 6,
+ "Hopefully won't give you cancer.",
+ 0).getStackForm(1L));
GregtechItemList.Charger_ZPM.set(
- new GregtechMetaWirelessCharger(
- mID++,
- "wificharger.07.tier.single",
- "Wireless Charger MK VII",
- 7,
- "Hopefully won't give you cancer.",
- 0).getStackForm(1L));
+ new GregtechMetaWirelessCharger(
+ mID++,
+ "wificharger.07.tier.single",
+ "Wireless Charger MK VII",
+ 7,
+ "Hopefully won't give you cancer.",
+ 0).getStackForm(1L));
GregtechItemList.Charger_UV.set(
- new GregtechMetaWirelessCharger(
- mID++,
- "wificharger.08.tier.single",
- "Wireless Charger MK VIII",
- 8,
- "Hopefully won't give you cancer.",
- 0).getStackForm(1L));
+ new GregtechMetaWirelessCharger(
+ mID++,
+ "wificharger.08.tier.single",
+ "Wireless Charger MK VIII",
+ 8,
+ "Hopefully won't give you cancer.",
+ 0).getStackForm(1L));
GregtechItemList.Charger_UHV.set(
- new GregtechMetaWirelessCharger(
- mID++,
- "wificharger.09.tier.single",
- "Wireless Charger MK IX",
- 9,
- "Hopefully won't give you cancer.",
- 0).getStackForm(1L));
+ new GregtechMetaWirelessCharger(
+ mID++,
+ "wificharger.09.tier.single",
+ "Wireless Charger MK IX",
+ 9,
+ "Hopefully won't give you cancer.",
+ 0).getStackForm(1L));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/ic2/CustomInternalName.java b/src/main/java/gtPlusPlus/xmod/ic2/CustomInternalName.java
index 14ad5cff60..4d7c19792f 100644
--- a/src/main/java/gtPlusPlus/xmod/ic2/CustomInternalName.java
+++ b/src/main/java/gtPlusPlus/xmod/ic2/CustomInternalName.java
@@ -13,11 +13,11 @@ public class CustomInternalName {
public static void init() {
aHazmatHelmetEx = EnumHelper
- .addEnum(InternalName.class, "itemArmorHazmatHelmetEx", new Class[] {}, new Object[] {});
+ .addEnum(InternalName.class, "itemArmorHazmatHelmetEx", new Class[] {}, new Object[] {});
aHazmatChestEx = EnumHelper
- .addEnum(InternalName.class, "itemArmorHazmatChestplateEx", new Class[] {}, new Object[] {});
+ .addEnum(InternalName.class, "itemArmorHazmatChestplateEx", new Class[] {}, new Object[] {});
aHazmatLegsEx = EnumHelper
- .addEnum(InternalName.class, "itemArmorHazmatLeggingsEx", new Class[] {}, new Object[] {});
+ .addEnum(InternalName.class, "itemArmorHazmatLeggingsEx", new Class[] {}, new Object[] {});
aHazmatBootsEx = EnumHelper.addEnum(InternalName.class, "itemArmorRubBootsEx", new Class[] {}, new Object[] {});
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/ic2/item/CustomKineticRotor.java b/src/main/java/gtPlusPlus/xmod/ic2/item/CustomKineticRotor.java
index 92be443da8..82daf41c90 100644
--- a/src/main/java/gtPlusPlus/xmod/ic2/item/CustomKineticRotor.java
+++ b/src/main/java/gtPlusPlus/xmod/ic2/item/CustomKineticRotor.java
@@ -29,10 +29,10 @@ public class CustomKineticRotor extends Item implements IKineticRotor {
private IIcon[] mTextures;
private static final String[] mRegistrationNames = new String[] { "itemwoodrotor", "itemironrotor",
- "itemsteelrotor", "itemwcarbonrotor" };
+ "itemsteelrotor", "itemwcarbonrotor" };
private static final String[] mUnlocalNames = new String[] { "itemEnergeticRotor", "itemTungstenSteelRotor",
- "itemVibrantRotor", "itemIridiumRotor", "itemMagnaliumRotor", "itemUltimetRotor", };
+ "itemVibrantRotor", "itemIridiumRotor", "itemMagnaliumRotor", "itemUltimetRotor", };
private static final int[] mMaxDurability = new int[] { 512000, 809600, 1600000, 3200000 };
private static final int[] mRadius = new int[] { 9, 11, 13, 15 };
private static final float[] mEfficiency = new float[] { 0.9f, 1.0f, 1.2f, 1.5f };
@@ -40,12 +40,12 @@ public class CustomKineticRotor extends Item implements IKineticRotor {
private static final int[] mMaxWindStrength = new int[] { 80, 120, 160, 320 };
private static final ResourceLocation[] mResourceLocations = new ResourceLocation[] {
- new ResourceLocation(IC2.textureDomain, "textures/items/rotors/rotorEnergeticModel.png"),
- new ResourceLocation(IC2.textureDomain, "textures/items/rotors/rotorTungstenSteelModel.png"),
- new ResourceLocation(IC2.textureDomain, "textures/items/rotors/rotorVibrantModel.png"),
- new ResourceLocation(IC2.textureDomain, "textures/items/rotors/rotorIridiumModel.png"),
- new ResourceLocation(IC2.textureDomain, "textures/items/rotors/rotorMagnaliumModel.png"),
- new ResourceLocation(IC2.textureDomain, "textures/items/rotors/rotorUltimetModel.png"), };
+ new ResourceLocation(IC2.textureDomain, "textures/items/rotors/rotorEnergeticModel.png"),
+ new ResourceLocation(IC2.textureDomain, "textures/items/rotors/rotorTungstenSteelModel.png"),
+ new ResourceLocation(IC2.textureDomain, "textures/items/rotors/rotorVibrantModel.png"),
+ new ResourceLocation(IC2.textureDomain, "textures/items/rotors/rotorIridiumModel.png"),
+ new ResourceLocation(IC2.textureDomain, "textures/items/rotors/rotorMagnaliumModel.png"),
+ new ResourceLocation(IC2.textureDomain, "textures/items/rotors/rotorUltimetModel.png"), };
private final int maxWindStrength;
private final int minWindStrength;
@@ -85,18 +85,18 @@ public class CustomKineticRotor extends Item implements IKineticRotor {
public void addInformation(final ItemStack itemStack, final EntityPlayer player, final List info, final boolean b) {
info.add(
- StatCollector.translateToLocalFormatted(
- "ic2.itemrotor.wind.info",
- new Object[] { this.minWindStrength, this.maxWindStrength }));
+ StatCollector.translateToLocalFormatted(
+ "ic2.itemrotor.wind.info",
+ new Object[] { this.minWindStrength, this.maxWindStrength }));
GearboxType type = null;
if (Minecraft.getMinecraft().currentScreen != null
- && Minecraft.getMinecraft().currentScreen instanceof GuiWaterKineticGenerator) {
+ && Minecraft.getMinecraft().currentScreen instanceof GuiWaterKineticGenerator) {
type = GearboxType.WATER;
} else if (Minecraft.getMinecraft().currentScreen != null
- && Minecraft.getMinecraft().currentScreen instanceof GuiWindKineticGenerator) {
- type = GearboxType.WIND;
- }
+ && Minecraft.getMinecraft().currentScreen instanceof GuiWindKineticGenerator) {
+ type = GearboxType.WIND;
+ }
if (type != null) {
info.add(StatCollector.translateToLocal("ic2.itemrotor.fitsin." + this.isAcceptedType(itemStack, type)));
diff --git a/src/main/java/gtPlusPlus/xmod/ic2/item/IC2_Items.java b/src/main/java/gtPlusPlus/xmod/ic2/item/IC2_Items.java
index 823b775d99..3dacc657de 100644
--- a/src/main/java/gtPlusPlus/xmod/ic2/item/IC2_Items.java
+++ b/src/main/java/gtPlusPlus/xmod/ic2/item/IC2_Items.java
@@ -36,55 +36,35 @@ public class IC2_Items {
// Rotor Blades
rotor_Blade_Material_1 = new ItemStack(
- new CoreItem(
- mData1[aIndexEIO],
- AddToCreativeTab.tabMachines,
- 16,
- "A part for an advanced Kinetic Rotor"));
+ new CoreItem(mData1[aIndexEIO], AddToCreativeTab.tabMachines, 16, "A part for an advanced Kinetic Rotor"));
rotor_Blade_Material_2 = new ItemStack(
- new CoreItem(
- "itemTungstenSteelRotorBlade",
- AddToCreativeTab.tabMachines,
- 16,
- "A part for an advanced Kinetic Rotor"));
+ new CoreItem(
+ "itemTungstenSteelRotorBlade",
+ AddToCreativeTab.tabMachines,
+ 16,
+ "A part for an advanced Kinetic Rotor"));
rotor_Blade_Material_3 = new ItemStack(
- new CoreItem(
- mData3[aIndexEIO],
- AddToCreativeTab.tabMachines,
- 16,
- "A part for an advanced Kinetic Rotor"));
+ new CoreItem(mData3[aIndexEIO], AddToCreativeTab.tabMachines, 16, "A part for an advanced Kinetic Rotor"));
rotor_Blade_Material_4 = new ItemStack(
- new CoreItem(
- "itemIridiumRotorBlade",
- AddToCreativeTab.tabMachines,
- 16,
- "A part for an advanced Kinetic Rotor"));
+ new CoreItem(
+ "itemIridiumRotorBlade",
+ AddToCreativeTab.tabMachines,
+ 16,
+ "A part for an advanced Kinetic Rotor"));
// Rotor Shafts
shaft_Material_1 = new ItemStack(
- new CoreItem(
- mData2[aIndexEIO],
- AddToCreativeTab.tabMachines,
- 16,
- "A part for an advanced Kinetic Rotor"));
+ new CoreItem(mData2[aIndexEIO], AddToCreativeTab.tabMachines, 16, "A part for an advanced Kinetic Rotor"));
shaft_Material_2 = new ItemStack(
- new CoreItem(
- "itemTungstenSteelShaft",
- AddToCreativeTab.tabMachines,
- 16,
- "A part for an advanced Kinetic Rotor"));
+ new CoreItem(
+ "itemTungstenSteelShaft",
+ AddToCreativeTab.tabMachines,
+ 16,
+ "A part for an advanced Kinetic Rotor"));
shaft_Material_3 = new ItemStack(
- new CoreItem(
- mData4[aIndexEIO],
- AddToCreativeTab.tabMachines,
- 16,
- "A part for an advanced Kinetic Rotor"));
+ new CoreItem(mData4[aIndexEIO], AddToCreativeTab.tabMachines, 16, "A part for an advanced Kinetic Rotor"));
shaft_Material_4 = new ItemStack(
- new CoreItem(
- "itemIridiumShaft",
- AddToCreativeTab.tabMachines,
- 16,
- "A part for an advanced Kinetic Rotor"));
+ new CoreItem("itemIridiumShaft", AddToCreativeTab.tabMachines, 16, "A part for an advanced Kinetic Rotor"));
// Rotors
rotor_Material_1 = new ItemStack(new CustomKineticRotor(0));
diff --git a/src/main/java/gtPlusPlus/xmod/ic2/recipe/RECIPE_IC2.java b/src/main/java/gtPlusPlus/xmod/ic2/recipe/RECIPE_IC2.java
index d07f1f6314..47ec1afe0f 100644
--- a/src/main/java/gtPlusPlus/xmod/ic2/recipe/RECIPE_IC2.java
+++ b/src/main/java/gtPlusPlus/xmod/ic2/recipe/RECIPE_IC2.java
@@ -95,225 +95,225 @@ public class RECIPE_IC2 {
addAdvancedHazmat();
RecipeUtils.addShapedRecipe(
- plate_T1,
- plate_T1,
- plate_T1,
- plate_T1,
- ring_T1,
- plate_T1,
- plate_T1,
- plate_T1,
- plate_T1,
- rotor_blade_T1);
+ plate_T1,
+ plate_T1,
+ plate_T1,
+ plate_T1,
+ ring_T1,
+ plate_T1,
+ plate_T1,
+ plate_T1,
+ plate_T1,
+ rotor_blade_T1);
RecipeUtils.addShapedRecipe(
- plate_T2,
- plate_T2,
- plate_T2,
- plate_T2,
- ring_T2,
- plate_T2,
- plate_T2,
- plate_T2,
- plate_T2,
- rotor_blade_T2);
+ plate_T2,
+ plate_T2,
+ plate_T2,
+ plate_T2,
+ ring_T2,
+ plate_T2,
+ plate_T2,
+ plate_T2,
+ plate_T2,
+ rotor_blade_T2);
RecipeUtils.addShapedRecipe(
- plate_T3,
- plate_T3,
- plate_T3,
- plate_T3,
- ring_T3,
- plate_T3,
- plate_T3,
- plate_T3,
- plate_T3,
- rotor_blade_T3);
+ plate_T3,
+ plate_T3,
+ plate_T3,
+ plate_T3,
+ ring_T3,
+ plate_T3,
+ plate_T3,
+ plate_T3,
+ plate_T3,
+ rotor_blade_T3);
RecipeUtils.addShapedRecipe(
- plate_T4,
- plate_T4,
- plate_T4,
- plate_T4,
- ring_T4,
- plate_T4,
- plate_T4,
- plate_T4,
- plate_T4,
- rotor_blade_T4);
+ plate_T4,
+ plate_T4,
+ plate_T4,
+ plate_T4,
+ ring_T4,
+ plate_T4,
+ plate_T4,
+ plate_T4,
+ plate_T4,
+ rotor_blade_T4);
// Shaft Extruder Recipe
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Shape_Extruder_WindmillShaft.get(1L, new Object[0]),
- GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE
- | GT_ModHandler.RecipeBits.REVERSIBLE,
- new Object[] { "hXS", "XPX", "fXd", Character.valueOf('P'), ItemList.Shape_Extruder_Rod,
- Character.valueOf('X'), OrePrefixes.plate.get(Materials.DarkSteel), Character.valueOf('S'),
- OrePrefixes.screw.get(Materials.DarkSteel) });
+ GregtechItemList.Shape_Extruder_WindmillShaft.get(1L, new Object[0]),
+ GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE
+ | GT_ModHandler.RecipeBits.REVERSIBLE,
+ new Object[] { "hXS", "XPX", "fXd", Character.valueOf('P'), ItemList.Shape_Extruder_Rod,
+ Character.valueOf('X'), OrePrefixes.plate.get(Materials.DarkSteel), Character.valueOf('S'),
+ OrePrefixes.screw.get(Materials.DarkSteel) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Shape_Extruder_WindmillShaft.get(1L, new Object[0]),
- GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE
- | GT_ModHandler.RecipeBits.REVERSIBLE,
- new Object[] { "hXS", "XPX", "fXd", Character.valueOf('P'), ItemList.Shape_Extruder_Rod,
- Character.valueOf('X'), OrePrefixes.plate.get(Materials.TungstenSteel), Character.valueOf('S'),
- OrePrefixes.screw.get(Materials.TungstenSteel) });
+ GregtechItemList.Shape_Extruder_WindmillShaft.get(1L, new Object[0]),
+ GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE
+ | GT_ModHandler.RecipeBits.REVERSIBLE,
+ new Object[] { "hXS", "XPX", "fXd", Character.valueOf('P'), ItemList.Shape_Extruder_Rod,
+ Character.valueOf('X'), OrePrefixes.plate.get(Materials.TungstenSteel), Character.valueOf('S'),
+ OrePrefixes.screw.get(Materials.TungstenSteel) });
GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Shape_Extruder_WindmillShaft.get(1L, new Object[0]),
- GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE
- | GT_ModHandler.RecipeBits.REVERSIBLE,
- new Object[] { "hXS", "XPX", "fXd", Character.valueOf('P'), ItemList.Shape_Extruder_Rod,
- Character.valueOf('X'), OrePrefixes.plate.get(Materials.Molybdenum), Character.valueOf('S'),
- OrePrefixes.screw.get(Materials.Molybdenum) });
+ GregtechItemList.Shape_Extruder_WindmillShaft.get(1L, new Object[0]),
+ GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE
+ | GT_ModHandler.RecipeBits.REVERSIBLE,
+ new Object[] { "hXS", "XPX", "fXd", Character.valueOf('P'), ItemList.Shape_Extruder_Rod,
+ Character.valueOf('X'), OrePrefixes.plate.get(Materials.Molybdenum), Character.valueOf('S'),
+ OrePrefixes.screw.get(Materials.Molybdenum) });
Logger.INFO("Added recipe item for GT5 Extruder: Shaft Shape");
// Custm Recipes for Iron and Steel
ItemStack mShaftIron = ItemList.IC2_ShaftIron.get(1);
ItemStack mShaftSteel = ItemList.IC2_ShaftSteel.get(1);
GT_Values.RA.addExtruderRecipe(
- GT_Utility.copyAmount(9L, GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Iron, 1L)),
- GregtechItemList.Shape_Extruder_WindmillShaft.get(0L, new Object[0]),
- mShaftIron,
- 32 * 20,
- 120);
+ GT_Utility.copyAmount(9L, GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Iron, 1L)),
+ GregtechItemList.Shape_Extruder_WindmillShaft.get(0L, new Object[0]),
+ mShaftIron,
+ 32 * 20,
+ 120);
GT_Values.RA.addExtruderRecipe(
- GT_Utility.copyAmount(1L, GT_OreDictUnificator.get(OrePrefixes.block, Materials.Iron, 1L)),
- GregtechItemList.Shape_Extruder_WindmillShaft.get(0L, new Object[0]),
- mShaftIron,
- 32 * 20,
- 120);
+ GT_Utility.copyAmount(1L, GT_OreDictUnificator.get(OrePrefixes.block, Materials.Iron, 1L)),
+ GregtechItemList.Shape_Extruder_WindmillShaft.get(0L, new Object[0]),
+ mShaftIron,
+ 32 * 20,
+ 120);
GT_Values.RA.addExtruderRecipe(
- GT_Utility.copyAmount(9L, GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.WroughtIron, 1L)),
- GregtechItemList.Shape_Extruder_WindmillShaft.get(0L, new Object[0]),
- mShaftIron,
- 32 * 20,
- 120);
+ GT_Utility.copyAmount(9L, GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.WroughtIron, 1L)),
+ GregtechItemList.Shape_Extruder_WindmillShaft.get(0L, new Object[0]),
+ mShaftIron,
+ 32 * 20,
+ 120);
GT_Values.RA.addExtruderRecipe(
- GT_Utility.copyAmount(1L, GT_OreDictUnificator.get(OrePrefixes.block, Materials.WroughtIron, 1L)),
- GregtechItemList.Shape_Extruder_WindmillShaft.get(0L, new Object[0]),
- mShaftIron,
- 32 * 20,
- 120);
+ GT_Utility.copyAmount(1L, GT_OreDictUnificator.get(OrePrefixes.block, Materials.WroughtIron, 1L)),
+ GregtechItemList.Shape_Extruder_WindmillShaft.get(0L, new Object[0]),
+ mShaftIron,
+ 32 * 20,
+ 120);
GT_Values.RA.addExtruderRecipe(
- GT_Utility.copyAmount(9L, GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L)),
- GregtechItemList.Shape_Extruder_WindmillShaft.get(0L, new Object[0]),
- mShaftSteel,
- 64 * 20,
- 120);
+ GT_Utility.copyAmount(9L, GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L)),
+ GregtechItemList.Shape_Extruder_WindmillShaft.get(0L, new Object[0]),
+ mShaftSteel,
+ 64 * 20,
+ 120);
GT_Values.RA.addExtruderRecipe(
- GT_Utility.copyAmount(1L, GT_OreDictUnificator.get(OrePrefixes.block, Materials.Steel, 1L)),
- GregtechItemList.Shape_Extruder_WindmillShaft.get(0L, new Object[0]),
- mShaftSteel,
- 64 * 20,
- 120);
+ GT_Utility.copyAmount(1L, GT_OreDictUnificator.get(OrePrefixes.block, Materials.Steel, 1L)),
+ GregtechItemList.Shape_Extruder_WindmillShaft.get(0L, new Object[0]),
+ mShaftSteel,
+ 64 * 20,
+ 120);
// Shaft Recipes
GT_Values.RA.addExtruderRecipe(
- GT_Utility.copyAmount(9L, block_T1),
- GregtechItemList.Shape_Extruder_WindmillShaft.get(0L, new Object[0]),
- shaft_T1,
- 2560,
- 250);
+ GT_Utility.copyAmount(9L, block_T1),
+ GregtechItemList.Shape_Extruder_WindmillShaft.get(0L, new Object[0]),
+ shaft_T1,
+ 2560,
+ 250);
GT_Values.RA.addExtruderRecipe(
- GT_Utility.copyAmount(1L, shaft_block_T1),
- GregtechItemList.Shape_Extruder_WindmillShaft.get(0L, new Object[0]),
- shaft_T1,
- 2560,
- 250);
+ GT_Utility.copyAmount(1L, shaft_block_T1),
+ GregtechItemList.Shape_Extruder_WindmillShaft.get(0L, new Object[0]),
+ shaft_T1,
+ 2560,
+ 250);
Logger.INFO("Added recipe for GT5 Extruder: Windmill Shaft [Energetic]");
GT_Values.RA.addExtruderRecipe(
- GT_Utility.copyAmount(9L, block_T2),
- GregtechItemList.Shape_Extruder_WindmillShaft.get(0L, new Object[0]),
- shaft_T2,
- 5120,
- 500);
+ GT_Utility.copyAmount(9L, block_T2),
+ GregtechItemList.Shape_Extruder_WindmillShaft.get(0L, new Object[0]),
+ shaft_T2,
+ 5120,
+ 500);
GT_Values.RA.addExtruderRecipe(
- GT_Utility.copyAmount(1L, shaft_block_T2),
- GregtechItemList.Shape_Extruder_WindmillShaft.get(0L, new Object[0]),
- shaft_T2,
- 5120,
- 500);
+ GT_Utility.copyAmount(1L, shaft_block_T2),
+ GregtechItemList.Shape_Extruder_WindmillShaft.get(0L, new Object[0]),
+ shaft_T2,
+ 5120,
+ 500);
Logger.INFO("Added recipe for GT5 Extruder: Windmill Shaft [TungstenSteel]");
GT_Values.RA.addExtruderRecipe(
- GT_Utility.copyAmount(9L, block_T3),
- GregtechItemList.Shape_Extruder_WindmillShaft.get(0L, new Object[0]),
- shaft_T3,
- 10240,
- 2000);
+ GT_Utility.copyAmount(9L, block_T3),
+ GregtechItemList.Shape_Extruder_WindmillShaft.get(0L, new Object[0]),
+ shaft_T3,
+ 10240,
+ 2000);
GT_Values.RA.addExtruderRecipe(
- GT_Utility.copyAmount(1L, shaft_block_T3),
- GregtechItemList.Shape_Extruder_WindmillShaft.get(0L, new Object[0]),
- shaft_T3,
- 10240,
- 2000);
+ GT_Utility.copyAmount(1L, shaft_block_T3),
+ GregtechItemList.Shape_Extruder_WindmillShaft.get(0L, new Object[0]),
+ shaft_T3,
+ 10240,
+ 2000);
Logger.INFO("Added recipe for GT5 Extruder: Windmill Shaft [Vibrant]");
GT_Values.RA.addExtruderRecipe(
- GT_Utility.copyAmount(9L, block_T4),
- GregtechItemList.Shape_Extruder_WindmillShaft.get(0L, new Object[0]),
- shaft_T4,
- 20480,
- 4000);
+ GT_Utility.copyAmount(9L, block_T4),
+ GregtechItemList.Shape_Extruder_WindmillShaft.get(0L, new Object[0]),
+ shaft_T4,
+ 20480,
+ 4000);
GT_Values.RA.addExtruderRecipe(
- GT_Utility.copyAmount(1L, shaft_block_T4),
- GregtechItemList.Shape_Extruder_WindmillShaft.get(0L, new Object[0]),
- shaft_T4,
- 20480,
- 4000);
+ GT_Utility.copyAmount(1L, shaft_block_T4),
+ GregtechItemList.Shape_Extruder_WindmillShaft.get(0L, new Object[0]),
+ shaft_T4,
+ 20480,
+ 4000);
Logger.INFO("Added recipe for GT5 Extruder: Windmill Shaft [Iridium]");
RecipeUtils.addShapedRecipe(
- shaft_T1,
- rotor_blade_T1,
- craftingToolHardHammer,
- rotor_blade_T1,
- ring_T1,
- rotor_blade_T1,
- craftingToolWrench,
- rotor_blade_T1,
- shaft_T1,
- rotor_T1);
+ shaft_T1,
+ rotor_blade_T1,
+ craftingToolHardHammer,
+ rotor_blade_T1,
+ ring_T1,
+ rotor_blade_T1,
+ craftingToolWrench,
+ rotor_blade_T1,
+ shaft_T1,
+ rotor_T1);
RecipeUtils.addShapedRecipe(
- shaft_T2,
- rotor_blade_T2,
- craftingToolHardHammer,
- rotor_blade_T2,
- ring_T2,
- rotor_blade_T2,
- craftingToolWrench,
- rotor_blade_T2,
- shaft_T2,
- rotor_T2);
+ shaft_T2,
+ rotor_blade_T2,
+ craftingToolHardHammer,
+ rotor_blade_T2,
+ ring_T2,
+ rotor_blade_T2,
+ craftingToolWrench,
+ rotor_blade_T2,
+ shaft_T2,
+ rotor_T2);
RecipeUtils.addShapedRecipe(
- shaft_T3,
- rotor_blade_T3,
- craftingToolHardHammer,
- rotor_blade_T3,
- ring_T3,
- rotor_blade_T3,
- craftingToolWrench,
- rotor_blade_T3,
- shaft_T3,
- rotor_T3);
+ shaft_T3,
+ rotor_blade_T3,
+ craftingToolHardHammer,
+ rotor_blade_T3,
+ ring_T3,
+ rotor_blade_T3,
+ craftingToolWrench,
+ rotor_blade_T3,
+ shaft_T3,
+ rotor_T3);
RecipeUtils.addShapedRecipe(
- shaft_T4,
- rotor_blade_T4,
- craftingToolHardHammer,
- rotor_blade_T4,
- ring_T4,
- rotor_blade_T4,
- craftingToolWrench,
- rotor_blade_T4,
- shaft_T4,
- rotor_T4);
+ shaft_T4,
+ rotor_blade_T4,
+ craftingToolHardHammer,
+ rotor_blade_T4,
+ ring_T4,
+ rotor_blade_T4,
+ craftingToolWrench,
+ rotor_blade_T4,
+ shaft_T4,
+ rotor_T4);
}
private static void addAdvancedHazmat() {
ItemStack[] aBasicHazmatPieces = new ItemStack[] { Ic2Items.hazmatHelmet.copy(),
- Ic2Items.hazmatChestplate.copy(), Ic2Items.hazmatLeggings.copy(), Ic2Items.hazmatBoots.copy() };
+ Ic2Items.hazmatChestplate.copy(), Ic2Items.hazmatLeggings.copy(), Ic2Items.hazmatBoots.copy() };
Material aRubber = MaterialUtils.generateMaterialFromGtENUM(Materials.Rubber);
ItemStack aYellowWool = ItemUtils.getSimpleStack(Blocks.wool, 4, 1);
@@ -322,44 +322,44 @@ public class RECIPE_IC2 {
ItemStack aPlateCobalt = CI.getTieredComponentOfMaterial(Materials.Cobalt, OrePrefixes.plate, 1);
ItemStack aGearSmallSteel = CI.getTieredComponentOfMaterial(Materials.Steel, OrePrefixes.gearGtSmall, 1);
ItemStack aGearSmallAluminium = CI
- .getTieredComponentOfMaterial(Materials.Aluminium, OrePrefixes.gearGtSmall, 1);
+ .getTieredComponentOfMaterial(Materials.Aluminium, OrePrefixes.gearGtSmall, 1);
ItemStack aGearPotin = ALLOY.TUMBAGA.getGear(1);
ItemStack aGearSiliconCarbide = ALLOY.SILICON_CARBIDE.getGear(1);
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(2), aBasicHazmatPieces[0],
- ItemUtils.getSimpleStack(aYellowWool, 16), ItemUtils.getSimpleStack(aPlateCobalt, 4),
- ItemUtils.getSimpleStack(aCoilIC2, 8), ItemUtils.getSimpleStack(aGearSmallAluminium, 4), },
- aRubber.getFluidStack(144 * 4),
- GregtechItemList.Armour_Hazmat_Advanced_Helmet.get(1),
- 30 * 20,
- MaterialUtils.getVoltageForTier(2));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(2), aBasicHazmatPieces[0],
+ ItemUtils.getSimpleStack(aYellowWool, 16), ItemUtils.getSimpleStack(aPlateCobalt, 4),
+ ItemUtils.getSimpleStack(aCoilIC2, 8), ItemUtils.getSimpleStack(aGearSmallAluminium, 4), },
+ aRubber.getFluidStack(144 * 4),
+ GregtechItemList.Armour_Hazmat_Advanced_Helmet.get(1),
+ 30 * 20,
+ MaterialUtils.getVoltageForTier(2));
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(2), aBasicHazmatPieces[1],
- ItemUtils.getSimpleStack(aYellowWool, 64), ItemUtils.getSimpleStack(aCoilIC2, 32),
- ItemUtils.getSimpleStack(aPlateCobalt, 16), ItemUtils.getSimpleStack(aGearSiliconCarbide, 8), },
- aRubber.getFluidStack(144 * 10),
- GregtechItemList.Armour_Hazmat_Advanced_Chest.get(1),
- 90 * 20,
- MaterialUtils.getVoltageForTier(2));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(2), aBasicHazmatPieces[1],
+ ItemUtils.getSimpleStack(aYellowWool, 64), ItemUtils.getSimpleStack(aCoilIC2, 32),
+ ItemUtils.getSimpleStack(aPlateCobalt, 16), ItemUtils.getSimpleStack(aGearSiliconCarbide, 8), },
+ aRubber.getFluidStack(144 * 10),
+ GregtechItemList.Armour_Hazmat_Advanced_Chest.get(1),
+ 90 * 20,
+ MaterialUtils.getVoltageForTier(2));
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(2), aBasicHazmatPieces[2],
- ItemUtils.getSimpleStack(aYellowWool, 32), ItemUtils.getSimpleStack(aCoilIC2, 16),
- ItemUtils.getSimpleStack(aPlateCobalt, 8), ItemUtils.getSimpleStack(aGearSiliconCarbide, 4), },
- aRubber.getFluidStack(144 * 8),
- GregtechItemList.Armour_Hazmat_Advanced_Legs.get(1),
- 75 * 20,
- MaterialUtils.getVoltageForTier(2));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(2), aBasicHazmatPieces[2],
+ ItemUtils.getSimpleStack(aYellowWool, 32), ItemUtils.getSimpleStack(aCoilIC2, 16),
+ ItemUtils.getSimpleStack(aPlateCobalt, 8), ItemUtils.getSimpleStack(aGearSiliconCarbide, 4), },
+ aRubber.getFluidStack(144 * 8),
+ GregtechItemList.Armour_Hazmat_Advanced_Legs.get(1),
+ 75 * 20,
+ MaterialUtils.getVoltageForTier(2));
CORE.RA.addSixSlotAssemblingRecipe(
- new ItemStack[] { CI.getNumberedAdvancedCircuit(2), aBasicHazmatPieces[3],
- ItemUtils.getSimpleStack(aBlackWool, 16), ItemUtils.getSimpleStack(aCoilIC2, 6),
- ItemUtils.getSimpleStack(aGearSmallSteel, 8), ItemUtils.getSimpleStack(aGearPotin, 4), },
- aRubber.getFluidStack(144 * 6),
- GregtechItemList.Armour_Hazmat_Advanced_Boots.get(1),
- 45 * 20,
- MaterialUtils.getVoltageForTier(2));
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(2), aBasicHazmatPieces[3],
+ ItemUtils.getSimpleStack(aBlackWool, 16), ItemUtils.getSimpleStack(aCoilIC2, 6),
+ ItemUtils.getSimpleStack(aGearSmallSteel, 8), ItemUtils.getSimpleStack(aGearPotin, 4), },
+ aRubber.getFluidStack(144 * 6),
+ GregtechItemList.Armour_Hazmat_Advanced_Boots.get(1),
+ 45 * 20,
+ MaterialUtils.getVoltageForTier(2));
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/pamsharvest/fishtrap/FishTrapHandler.java b/src/main/java/gtPlusPlus/xmod/pamsharvest/fishtrap/FishTrapHandler.java
index fe7d17bb74..ee51f28eaa 100644
--- a/src/main/java/gtPlusPlus/xmod/pamsharvest/fishtrap/FishTrapHandler.java
+++ b/src/main/java/gtPlusPlus/xmod/pamsharvest/fishtrap/FishTrapHandler.java
@@ -16,38 +16,58 @@ public class FishTrapHandler {
static final String suffix = "raw";
static final String greenheartFish = "foodGreenheartfish";
private static final String[] harvestcraftFish = { "Anchovy", "Bass", "Calamari", "Carp", "Catfish", "Charr",
- "Clam", "Crab", "Crayfish", "Eel", "Frog", "Grouper", "Herring", "Jellyfish", "Mudfish", "Octopus", "Perch",
- "Scallop", "Shrimp", "Snail", "Snapper", "Tilapia", "Trout", "Tuna", "Turtle", "Walley" };
+ "Clam", "Crab", "Crayfish", "Eel", "Frog", "Grouper", "Herring", "Jellyfish", "Mudfish", "Octopus", "Perch",
+ "Scallop", "Shrimp", "Snail", "Snapper", "Tilapia", "Trout", "Tuna", "Turtle", "Walley" };
public static void pamsHarvestCraftCompat() {
for (String fish : harvestcraftFish) {
final String itemName = prefix + fish + suffix;
if (ItemUtils.getItemStackOfAmountFromOreDictNoBroken(itemName, 1) != null) {
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getItemStackOfAmountFromOreDict(itemName, 1))
- .itemOutputs(
- ItemUtils.getItemStackOfAmountFromOreDict("dustMeatRaw", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustTinyBone", 1))
- .outputChances(10000, 1000).duration(20 * SECONDS).eut(2).addTo(maceratorRecipes);
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getItemStackOfAmountFromOreDict(itemName, 1))
- .fluidOutputs(FluidUtils.getFluidStack("methane", 48)).duration(19 * SECONDS + 4 * TICKS).eut(5)
- .addTo(centrifugeRecipes);
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getItemStackOfAmountFromOreDict(itemName, 1))
- .fluidOutputs(FluidUtils.getFluidStack("fishoil", 50)).duration(16 * TICKS).eut(4)
- .addTo(fluidExtractionRecipes);
- }
- }
- if (ItemUtils.getItemStackOfAmountFromOreDictNoBroken(greenheartFish, 1) != null) {
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getItemStackOfAmountFromOreDict(greenheartFish, 1))
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getItemStackOfAmountFromOreDict(itemName, 1))
.itemOutputs(
- ItemUtils.getItemStackOfAmountFromOreDict("dustMeatRaw", 1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustTinyBone", 1))
- .outputChances(10000, 1000).duration(20 * SECONDS).eut(2).addTo(maceratorRecipes);
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getItemStackOfAmountFromOreDict(greenheartFish, 1))
- .fluidOutputs(FluidUtils.getFluidStack("methane", 48)).duration(19 * SECONDS + 4 * TICKS).eut(5)
+ ItemUtils.getItemStackOfAmountFromOreDict("dustMeatRaw", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustTinyBone", 1))
+ .outputChances(10000, 1000)
+ .duration(20 * SECONDS)
+ .eut(2)
+ .addTo(maceratorRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getItemStackOfAmountFromOreDict(itemName, 1))
+ .fluidOutputs(FluidUtils.getFluidStack("methane", 48))
+ .duration(19 * SECONDS + 4 * TICKS)
+ .eut(5)
.addTo(centrifugeRecipes);
- GT_Values.RA.stdBuilder().itemInputs(ItemUtils.getItemStackOfAmountFromOreDict(greenheartFish, 1))
- .fluidOutputs(FluidUtils.getFluidStack("fishoil", 50)).duration(16 * TICKS).eut(4)
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getItemStackOfAmountFromOreDict(itemName, 1))
+ .fluidOutputs(FluidUtils.getFluidStack("fishoil", 50))
+ .duration(16 * TICKS)
+ .eut(4)
.addTo(fluidExtractionRecipes);
+ }
+ }
+ if (ItemUtils.getItemStackOfAmountFromOreDictNoBroken(greenheartFish, 1) != null) {
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getItemStackOfAmountFromOreDict(greenheartFish, 1))
+ .itemOutputs(
+ ItemUtils.getItemStackOfAmountFromOreDict("dustMeatRaw", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("dustTinyBone", 1))
+ .outputChances(10000, 1000)
+ .duration(20 * SECONDS)
+ .eut(2)
+ .addTo(maceratorRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getItemStackOfAmountFromOreDict(greenheartFish, 1))
+ .fluidOutputs(FluidUtils.getFluidStack("methane", 48))
+ .duration(19 * SECONDS + 4 * TICKS)
+ .eut(5)
+ .addTo(centrifugeRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(ItemUtils.getItemStackOfAmountFromOreDict(greenheartFish, 1))
+ .fluidOutputs(FluidUtils.getFluidStack("fishoil", 50))
+ .duration(16 * TICKS)
+ .eut(4)
+ .addTo(fluidExtractionRecipes);
}
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/railcraft/HANDLER_Railcraft.java b/src/main/java/gtPlusPlus/xmod/railcraft/HANDLER_Railcraft.java
index 970e62c2b1..4efa85992a 100644
--- a/src/main/java/gtPlusPlus/xmod/railcraft/HANDLER_Railcraft.java
+++ b/src/main/java/gtPlusPlus/xmod/railcraft/HANDLER_Railcraft.java
@@ -31,57 +31,57 @@ public class HANDLER_Railcraft {
public static void preInit() {
// Register Custom Coal Coke
ModItems.itemCoalCoke = new BaseItemBurnable(
- "itemCoalCoke",
- "Coking Coal",
- tabMisc,
- 64,
- 0,
- "Used for metallurgy.",
- "fuelCoke",
- 3200,
- 0).setTextureName(GTPlusPlus.ID + ":burnables/itemCoalCoke");
+ "itemCoalCoke",
+ "Coking Coal",
+ tabMisc,
+ 64,
+ 0,
+ "Used for metallurgy.",
+ "fuelCoke",
+ 3200,
+ 0).setTextureName(GTPlusPlus.ID + ":burnables/itemCoalCoke");
// Add in things that once existed in 1.5.2
ModItems.itemCactusCharcoal = new BaseItemBurnable(
- "itemCactusCharcoal",
- "Cactus Charcoal",
- tabMisc,
- 64,
- 0,
- "Used for smelting.",
- "fuelCactusCharcoal",
- 400,
- 0).setTextureName(GTPlusPlus.ID + ":burnables/itemCactusCharcoal");
+ "itemCactusCharcoal",
+ "Cactus Charcoal",
+ tabMisc,
+ 64,
+ 0,
+ "Used for smelting.",
+ "fuelCactusCharcoal",
+ 400,
+ 0).setTextureName(GTPlusPlus.ID + ":burnables/itemCactusCharcoal");
ModItems.itemSugarCharcoal = new BaseItemBurnable(
- "itemSugarCharcoal",
- "Sugar Charcoal",
- tabMisc,
- 64,
- 0,
- "Used for smelting.",
- "fuelSugarCharcoal",
- 400,
- 0).setTextureName(GTPlusPlus.ID + ":burnables/itemSugarCharcoal");
+ "itemSugarCharcoal",
+ "Sugar Charcoal",
+ tabMisc,
+ 64,
+ 0,
+ "Used for smelting.",
+ "fuelSugarCharcoal",
+ 400,
+ 0).setTextureName(GTPlusPlus.ID + ":burnables/itemSugarCharcoal");
ModItems.itemCactusCoke = new BaseItemBurnable(
- "itemCactusCoke",
- "Cactus Coke",
- tabMisc,
- 64,
- 0,
- "Used for smelting.",
- "fuelCactusCoke",
- 800,
- 0).setTextureName(GTPlusPlus.ID + ":burnables/itemCactusCoke");
+ "itemCactusCoke",
+ "Cactus Coke",
+ tabMisc,
+ 64,
+ 0,
+ "Used for smelting.",
+ "fuelCactusCoke",
+ 800,
+ 0).setTextureName(GTPlusPlus.ID + ":burnables/itemCactusCoke");
ModItems.itemSugarCoke = new BaseItemBurnable(
- "itemSugarCoke",
- "Sugar Coke",
- tabMisc,
- 64,
- 0,
- "Used for smelting.",
- "fuelSugarCoke",
- 800,
- 0).setTextureName(GTPlusPlus.ID + ":burnables/itemSugarCoke");
+ "itemSugarCoke",
+ "Sugar Coke",
+ tabMisc,
+ 64,
+ 0,
+ "Used for smelting.",
+ "fuelSugarCoke",
+ 800,
+ 0).setTextureName(GTPlusPlus.ID + ":burnables/itemSugarCoke");
ItemUtils.addItemToOreDictionary(ItemUtils.getSimpleStack(ModItems.itemCactusCharcoal), "itemCharcoalCactus");
ItemUtils.addItemToOreDictionary(ItemUtils.getSimpleStack(ModItems.itemCactusCoke), "itemCokeCactus");
@@ -95,101 +95,113 @@ public class HANDLER_Railcraft {
private static void generateCokeOvenRecipes() {
ItemStack[] aInputs1 = new ItemStack[] { ItemUtils.getSimpleStack(Blocks.cactus),
- ItemUtils.getSimpleStack(Items.reeds) };
+ ItemUtils.getSimpleStack(Items.reeds) };
ItemStack[] aInputs2 = new ItemStack[] { ItemUtils.getSimpleStack(ModItems.itemCactusCharcoal),
- ItemUtils.getSimpleStack(ModItems.itemSugarCharcoal) };
+ ItemUtils.getSimpleStack(ModItems.itemSugarCharcoal) };
ItemStack[] aOutputs = new ItemStack[] { ItemUtils.getSimpleStack(ModItems.itemCactusCoke),
- ItemUtils.getSimpleStack(ModItems.itemSugarCoke) };
+ ItemUtils.getSimpleStack(ModItems.itemSugarCoke) };
for (int i = 0; i < aOutputs.length; i++) {
// Recipes for the Charcoals and Cokes, outputting either Creosote or Charcoal Byproducts depending on the
// fluid input
CORE.RA.addCokeOvenRecipe(
- aInputs1[i],
- CI.getNumberedCircuit(3),
- null,
- FluidUtils.getFluidStack("creosote", 100),
- aInputs2[i],
- 20,
- 16);
+ aInputs1[i],
+ CI.getNumberedCircuit(3),
+ null,
+ FluidUtils.getFluidStack("creosote", 100),
+ aInputs2[i],
+ 20,
+ 16);
CORE.RA.addCokeOvenRecipe(
- aInputs1[i],
- CI.getNumberedCircuit(4),
- FluidUtils.getFluidStack("nitrogen", 100),
- FluidUtils.getFluidStack("charcoal_byproducts", 200),
- aInputs2[i],
- 10,
- 16);
+ aInputs1[i],
+ CI.getNumberedCircuit(4),
+ FluidUtils.getFluidStack("nitrogen", 100),
+ FluidUtils.getFluidStack("charcoal_byproducts", 200),
+ aInputs2[i],
+ 10,
+ 16);
CORE.RA.addCokeOvenRecipe(
- aInputs2[i],
- CI.getNumberedCircuit(3),
- null,
- FluidUtils.getFluidStack("creosote", 200),
- aOutputs[i],
- 40,
- 16);
+ aInputs2[i],
+ CI.getNumberedCircuit(3),
+ null,
+ FluidUtils.getFluidStack("creosote", 200),
+ aOutputs[i],
+ 40,
+ 16);
CORE.RA.addCokeOvenRecipe(
- aInputs2[i],
- CI.getNumberedCircuit(4),
- FluidUtils.getFluidStack("nitrogen", 50),
- FluidUtils.getFluidStack("charcoal_byproducts", 100),
- aOutputs[i],
- 20,
- 16);
+ aInputs2[i],
+ CI.getNumberedCircuit(4),
+ FluidUtils.getFluidStack("nitrogen", 50),
+ FluidUtils.getFluidStack("charcoal_byproducts", 100),
+ aOutputs[i],
+ 20,
+ 16);
// Generate Wood Tar and Wood Gas from these Cokes
CORE.RA.addCokeOvenRecipe(
- aOutputs[i],
- CI.getNumberedCircuit(5),
- FluidUtils.getFluidStack("steam", 100),
- Materials.WoodTar.getFluid(200),
- Materials.Ash.getDustSmall(1),
- 60,
- 240);
+ aOutputs[i],
+ CI.getNumberedCircuit(5),
+ FluidUtils.getFluidStack("steam", 100),
+ Materials.WoodTar.getFluid(200),
+ Materials.Ash.getDustSmall(1),
+ 60,
+ 240);
CORE.RA.addCokeOvenRecipe(
- aOutputs[i],
- CI.getNumberedCircuit(6),
- FluidUtils.getFluidStack("steam", 100),
- Materials.WoodGas.getFluid(300),
- Materials.Ash.getDustSmall(1),
- 60,
- 240);
+ aOutputs[i],
+ CI.getNumberedCircuit(6),
+ FluidUtils.getFluidStack("steam", 100),
+ Materials.WoodGas.getFluid(300),
+ Materials.Ash.getDustSmall(1),
+ 60,
+ 240);
// Fluid Extracting the Charcoals for Wood Tar
- GT_Values.RA.stdBuilder().itemInputs(aInputs2[i])
- .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 1L)).outputChances(1000)
- .fluidOutputs(Materials.WoodTar.getFluid(50L)).duration(1 * SECONDS + 10 * TICKS).eut(16)
- .addTo(fluidExtractionRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(aInputs2[i])
+ .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 1L))
+ .outputChances(1000)
+ .fluidOutputs(Materials.WoodTar.getFluid(50L))
+ .duration(1 * SECONDS + 10 * TICKS)
+ .eut(16)
+ .addTo(fluidExtractionRecipes);
// Processing the Charcoals with Oxygen to get CO and CO2
// C + O = CO
- GT_Values.RA.stdBuilder().itemInputs(aInputs2[i], GT_Utility.getIntegratedCircuit(1))
- .itemOutputs(Materials.Ash.getDustTiny(1)).fluidInputs(Materials.Oxygen.getGas(500))
- .fluidOutputs(Materials.CarbonMonoxide.getGas(500)).duration(4 * SECONDS).eut(8)
- .addTo(UniversalChemical);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(aInputs2[i], GT_Utility.getIntegratedCircuit(1))
+ .itemOutputs(Materials.Ash.getDustTiny(1))
+ .fluidInputs(Materials.Oxygen.getGas(500))
+ .fluidOutputs(Materials.CarbonMonoxide.getGas(500))
+ .duration(4 * SECONDS)
+ .eut(8)
+ .addTo(UniversalChemical);
// C + 2O = CO2
- GT_Values.RA.stdBuilder().itemInputs(aInputs2[i], 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(aInputs2[i], 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);
}
if (Railcraft.isModLoaded()) {
for (int i = 0; i < aOutputs.length; i++) {
RailcraftUtils.addCokeOvenRecipe(
- aInputs1[i],
- true,
- true,
- aInputs2[i],
- FluidUtils.getFluidStack("creosote", 30),
- 500);
+ aInputs1[i],
+ true,
+ true,
+ aInputs2[i],
+ FluidUtils.getFluidStack("creosote", 30),
+ 500);
}
for (int i = 0; i < aOutputs.length; i++) {
RailcraftUtils.addCokeOvenRecipe(
- aInputs2[i],
- true,
- true,
- aOutputs[i],
- FluidUtils.getFluidStack("creosote", 30),
- 500);
+ aInputs2[i],
+ true,
+ true,
+ aOutputs[i],
+ FluidUtils.getFluidStack("creosote", 30),
+ 500);
}
if (NewHorizonsCoreMod.isModLoaded()) {
diff --git a/src/main/java/gtPlusPlus/xmod/railcraft/utils/RailcraftUtils.java b/src/main/java/gtPlusPlus/xmod/railcraft/utils/RailcraftUtils.java
index d959d3da1d..f2f538ab38 100644
--- a/src/main/java/gtPlusPlus/xmod/railcraft/utils/RailcraftUtils.java
+++ b/src/main/java/gtPlusPlus/xmod/railcraft/utils/RailcraftUtils.java
@@ -9,12 +9,14 @@ import mods.railcraft.common.util.crafting.CokeOvenCraftingManager;
public class RailcraftUtils {
public static void addCokeOvenRecipe(ItemStack input, boolean matchDamage, boolean matchNBT, ItemStack output,
- FluidStack fluidOutput, int cookTime) {
- CokeOvenCraftingManager.getInstance().addRecipe(input, matchDamage, matchNBT, output, fluidOutput, cookTime);
+ FluidStack fluidOutput, int cookTime) {
+ CokeOvenCraftingManager.getInstance()
+ .addRecipe(input, matchDamage, matchNBT, output, fluidOutput, cookTime);
}
public static void addAdvancedCokeOvenRecipe(ItemStack input, boolean matchDamage, boolean matchNBT,
- ItemStack output, int cookTime) {
- BlastFurnaceCraftingManager.getInstance().addRecipe(input, matchDamage, matchNBT, cookTime, output);
+ ItemStack output, int cookTime) {
+ BlastFurnaceCraftingManager.getInstance()
+ .addRecipe(input, matchDamage, matchNBT, cookTime, output);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/thaumcraft/commands/CommandDumpAspects.java b/src/main/java/gtPlusPlus/xmod/thaumcraft/commands/CommandDumpAspects.java
index 19777cc7c9..5dcc27e592 100644
--- a/src/main/java/gtPlusPlus/xmod/thaumcraft/commands/CommandDumpAspects.java
+++ b/src/main/java/gtPlusPlus/xmod/thaumcraft/commands/CommandDumpAspects.java
@@ -59,14 +59,14 @@ public class CommandDumpAspects implements ICommand {
Thread t = createNewThread();
messagePlayer(P, "Beginning to dump information about all items/blocks & their aspects to file.");
messagePlayer(
- P,
- "Please do not close your game during this process, you will be notified upon completion.");
+ P,
+ "Please do not close your game during this process, you will be notified upon completion.");
t.start();
} else {
messagePlayer(
- P,
- "Your last run of DA was less than 30 seconds ago, please wait " + (30 - Z)
- + " seconds before trying again.");
+ P,
+ "Your last run of DA was less than 30 seconds ago, please wait " + (30 - Z)
+ + " seconds before trying again.");
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/thaumcraft/objects/ThreadAspectScanner.java b/src/main/java/gtPlusPlus/xmod/thaumcraft/objects/ThreadAspectScanner.java
index d363b2cba9..1f053220ab 100644
--- a/src/main/java/gtPlusPlus/xmod/thaumcraft/objects/ThreadAspectScanner.java
+++ b/src/main/java/gtPlusPlus/xmod/thaumcraft/objects/ThreadAspectScanner.java
@@ -40,10 +40,13 @@ public class ThreadAspectScanner extends Thread {
nameKey = ItemUtils.getUnlocalizedItemName(aStack);
} catch (NullPointerException n) {
try {
- nameKey = Utils.sanitizeString(aStack.getDisplayName().toLowerCase());
+ nameKey = Utils.sanitizeString(
+ aStack.getDisplayName()
+ .toLowerCase());
} catch (NullPointerException n2) {
try {
- nameKey = aStack.getItem().getUnlocalizedName();
+ nameKey = aStack.getItem()
+ .getUnlocalizedName();
} catch (NullPointerException n3) {
nameKey = "BadItemsGalore";
}
@@ -67,7 +70,8 @@ public class ThreadAspectScanner extends Thread {
long mItemsCounter = 0;
// First, find blocks
- iterator = Block.blockRegistry.getKeys().iterator();
+ iterator = Block.blockRegistry.getKeys()
+ .iterator();
while (iterator.hasNext()) {
String s = (String) iterator.next();
Block block = (Block) Block.blockRegistry.getObject(s);
@@ -79,7 +83,8 @@ public class ThreadAspectScanner extends Thread {
Logger.INFO("Completed Block Scan. Counted " + mBlocksCounter);
// Second Find items, Skipping things that exist.
- iterator = Item.itemRegistry.getKeys().iterator();
+ iterator = Item.itemRegistry.getKeys()
+ .iterator();
while (iterator.hasNext()) {
String s = (String) iterator.next();
Item item = (Item) Item.itemRegistry.getObject(s);
@@ -119,7 +124,7 @@ public class ThreadAspectScanner extends Thread {
}
for (ItemStack stack : group) {
thaumcraft.api.aspects.AspectList a = thaumcraft.common.lib.crafting.ThaumcraftCraftingManager
- .getObjectTags(stack);
+ .getObjectTags(stack);
if (a == null) {
continue;
} else {
@@ -132,10 +137,10 @@ public class ThreadAspectScanner extends Thread {
try {
List<String> mList = new ArrayList<>();
mList.add(
- stack.getDisplayName() + " | Meta: "
- + stack.getItemDamage()
- + " | Unlocal: "
- + stack.getUnlocalizedName());
+ stack.getDisplayName() + " | Meta: "
+ + stack.getItemDamage()
+ + " | Unlocal: "
+ + stack.getUnlocalizedName());
for (Pair<String, Integer> r : aspectPairs) {
if (r != null) {
mList.add(r.getKey() + " x" + r.getValue());
@@ -153,7 +158,7 @@ public class ThreadAspectScanner extends Thread {
}
}
Logger.INFO(
- "Completed Aspect Iteration. AspectInfo.txt is now available to process in the GTplusplus configuration folder.");
+ "Completed Aspect Iteration. AspectInfo.txt is now available to process in the GTplusplus configuration folder.");
CommandDumpAspects.mLastScanTime = System.currentTimeMillis();
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/thermalfoundation/block/TF_Block_Fluid_Cryotheum.java b/src/main/java/gtPlusPlus/xmod/thermalfoundation/block/TF_Block_Fluid_Cryotheum.java
index 3b28aa67a8..b48be445e5 100644
--- a/src/main/java/gtPlusPlus/xmod/thermalfoundation/block/TF_Block_Fluid_Cryotheum.java
+++ b/src/main/java/gtPlusPlus/xmod/thermalfoundation/block/TF_Block_Fluid_Cryotheum.java
@@ -69,7 +69,7 @@ public class TF_Block_Fluid_Cryotheum extends BlockFluidInteractive {
@Override
public void onEntityCollidedWithBlock(final World paramWorld, final int paramInt1, final int paramInt2,
- final int paramInt3, final Entity paramEntity) {
+ final int paramInt3, final Entity paramEntity) {
paramEntity.extinguish();
if (!effect) {
return;
@@ -92,11 +92,11 @@ public class TF_Block_Fluid_Cryotheum extends BlockFluidInteractive {
if (((paramEntity instanceof EntityZombie)) || ((paramEntity instanceof EntityCreeper))) {
final EntitySnowman localEntitySnowman = new EntitySnowman(paramWorld);
localEntitySnowman.setLocationAndAngles(
- paramEntity.posX,
- paramEntity.posY,
- paramEntity.posZ,
- paramEntity.rotationYaw,
- paramEntity.rotationPitch);
+ paramEntity.posX,
+ paramEntity.posY,
+ paramEntity.posZ,
+ paramEntity.rotationYaw,
+ paramEntity.rotationPitch);
paramWorld.spawnEntityInWorld(localEntitySnowman);
paramEntity.setDead();
@@ -115,13 +115,13 @@ public class TF_Block_Fluid_Cryotheum extends BlockFluidInteractive {
@Override
public int getLightValue(final IBlockAccess paramIBlockAccess, final int paramInt1, final int paramInt2,
- final int paramInt3) {
+ final int paramInt3) {
return TF_Fluids.fluidCryotheum.getLuminosity();
}
@Override
public void updateTick(final World paramWorld, final int paramInt1, final int paramInt2, final int paramInt3,
- final Random paramRandom) {
+ final Random paramRandom) {
if (effect) {
this.checkForInteraction(paramWorld, paramInt1, paramInt2, paramInt3);
}
@@ -138,7 +138,7 @@ public class TF_Block_Fluid_Cryotheum extends BlockFluidInteractive {
}
protected void checkForInteraction(final World paramWorld, final int paramInt1, final int paramInt2,
- final int paramInt3) {
+ final int paramInt3) {
if (paramWorld.getBlock(paramInt1, paramInt2, paramInt3) != this) {
return;
}
@@ -159,7 +159,7 @@ public class TF_Block_Fluid_Cryotheum extends BlockFluidInteractive {
}
protected void interactWithBlock(final World paramWorld, final int paramInt1, final int paramInt2,
- final int paramInt3) {
+ final int paramInt3) {
final Block localBlock = paramWorld.getBlock(paramInt1, paramInt2, paramInt3);
if ((localBlock == Blocks.air) || (localBlock == this)) {
return;
@@ -168,11 +168,11 @@ public class TF_Block_Fluid_Cryotheum extends BlockFluidInteractive {
if (this.hasInteraction(localBlock, i)) {
final BlockWrapper localBlockWrapper = this.getInteraction(localBlock, i);
paramWorld
- .setBlock(paramInt1, paramInt2, paramInt3, localBlockWrapper.block, localBlockWrapper.metadata, 3);
+ .setBlock(paramInt1, paramInt2, paramInt3, localBlockWrapper.block, localBlockWrapper.metadata, 3);
} else if ((paramWorld.isSideSolid(paramInt1, paramInt2, paramInt3, ForgeDirection.UP))
- && (paramWorld.isAirBlock(paramInt1, paramInt2 + 1, paramInt3))) {
- paramWorld.setBlock(paramInt1, paramInt2 + 1, paramInt3, Blocks.snow_layer, 0, 3);
- }
+ && (paramWorld.isAirBlock(paramInt1, paramInt2 + 1, paramInt3))) {
+ paramWorld.setBlock(paramInt1, paramInt2 + 1, paramInt3, Blocks.snow_layer, 0, 3);
+ }
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/thermalfoundation/block/TF_Block_Fluid_Ender.java b/src/main/java/gtPlusPlus/xmod/thermalfoundation/block/TF_Block_Fluid_Ender.java
index f43142a06e..9f89d01250 100644
--- a/src/main/java/gtPlusPlus/xmod/thermalfoundation/block/TF_Block_Fluid_Ender.java
+++ b/src/main/java/gtPlusPlus/xmod/thermalfoundation/block/TF_Block_Fluid_Ender.java
@@ -38,7 +38,7 @@ public class TF_Block_Fluid_Ender extends BlockFluidCoFHBase {
@Override
public void onEntityCollidedWithBlock(World paramWorld, int paramInt1, int paramInt2, int paramInt3,
- Entity paramEntity) {
+ Entity paramEntity) {
if ((!effect) || (paramWorld.isRemote)) {
return;
}
@@ -46,7 +46,9 @@ public class TF_Block_Fluid_Ender extends BlockFluidCoFHBase {
int i = paramInt1 - 8 + paramWorld.rand.nextInt(17);
int j = paramInt2 + paramWorld.rand.nextInt(8);
int k = paramInt3 - 8 + paramWorld.rand.nextInt(17);
- if (!paramWorld.getBlock(i, j, k).getMaterial().isSolid()) {
+ if (!paramWorld.getBlock(i, j, k)
+ .getMaterial()
+ .isSolid()) {
CoreUtils.teleportEntityTo(paramEntity, i, j, k);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/thermalfoundation/block/TF_Block_Fluid_Pyrotheum.java b/src/main/java/gtPlusPlus/xmod/thermalfoundation/block/TF_Block_Fluid_Pyrotheum.java
index 03bf3022f2..90c8be8bf7 100644
--- a/src/main/java/gtPlusPlus/xmod/thermalfoundation/block/TF_Block_Fluid_Pyrotheum.java
+++ b/src/main/java/gtPlusPlus/xmod/thermalfoundation/block/TF_Block_Fluid_Pyrotheum.java
@@ -64,7 +64,7 @@ public class TF_Block_Fluid_Pyrotheum extends BlockFluidInteractive {
@Override
public void onEntityCollidedWithBlock(final World paramWorld, final int paramInt1, final int paramInt2,
- final int paramInt3, final Entity paramEntity) {
+ final int paramInt3, final Entity paramEntity) {
if (!effect) {
return;
}
@@ -74,12 +74,13 @@ public class TF_Block_Fluid_Pyrotheum extends BlockFluidInteractive {
if (!(paramEntity instanceof EntityPlayer)) {
if ((paramEntity instanceof EntityCreeper)) {
paramWorld.createExplosion(
- paramEntity,
- paramEntity.posX,
- paramEntity.posY,
- paramEntity.posZ,
- 6.0F,
- paramEntity.worldObj.getGameRules().getGameRuleBooleanValue("mobGriefing"));
+ paramEntity,
+ paramEntity.posX,
+ paramEntity.posY,
+ paramEntity.posZ,
+ 6.0F,
+ paramEntity.worldObj.getGameRules()
+ .getGameRuleBooleanValue("mobGriefing"));
paramEntity.setDead();
}
}
@@ -87,38 +88,38 @@ public class TF_Block_Fluid_Pyrotheum extends BlockFluidInteractive {
@Override
public int getLightValue(final IBlockAccess paramIBlockAccess, final int paramInt1, final int paramInt2,
- final int paramInt3) {
+ final int paramInt3) {
return TF_Fluids.fluidPyrotheum.getLuminosity();
}
@Override
public int getFireSpreadSpeed(final IBlockAccess paramIBlockAccess, final int paramInt1, final int paramInt2,
- final int paramInt3, final ForgeDirection paramForgeDirection) {
+ final int paramInt3, final ForgeDirection paramForgeDirection) {
return effect ? 800 : 0;
}
@Override
public int getFlammability(final IBlockAccess paramIBlockAccess, final int paramInt1, final int paramInt2,
- final int paramInt3, final ForgeDirection paramForgeDirection) {
+ final int paramInt3, final ForgeDirection paramForgeDirection) {
return 0;
}
@Override
public boolean isFlammable(final IBlockAccess paramIBlockAccess, final int paramInt1, final int paramInt2,
- final int paramInt3, final ForgeDirection paramForgeDirection) {
+ final int paramInt3, final ForgeDirection paramForgeDirection) {
return (effect) && (paramForgeDirection.ordinal() > ForgeDirection.UP.ordinal())
- && (paramIBlockAccess.getBlock(paramInt1, paramInt2 - 1, paramInt3) != this);
+ && (paramIBlockAccess.getBlock(paramInt1, paramInt2 - 1, paramInt3) != this);
}
@Override
public boolean isFireSource(final World paramWorld, final int paramInt1, final int paramInt2, final int paramInt3,
- final ForgeDirection paramForgeDirection) {
+ final ForgeDirection paramForgeDirection) {
return effect;
}
@Override
public void updateTick(final World paramWorld, final int paramInt1, final int paramInt2, final int paramInt3,
- final Random paramRandom) {
+ final Random paramRandom) {
if (effect) {
this.checkForInteraction(paramWorld, paramInt1, paramInt2, paramInt3);
}
@@ -126,7 +127,7 @@ public class TF_Block_Fluid_Pyrotheum extends BlockFluidInteractive {
final Block localBlock = paramWorld.getBlock(paramInt1, paramInt2 + this.densityDir, paramInt3);
final int i = paramWorld.getBlockMetadata(paramInt1, paramInt2 + this.densityDir, paramInt3);
if (((localBlock == this) && (i != 0)) || (localBlock
- .isFlammable(paramWorld, paramInt1, paramInt2 + this.densityDir, paramInt3, ForgeDirection.UP))) {
+ .isFlammable(paramWorld, paramInt1, paramInt2 + this.densityDir, paramInt3, ForgeDirection.UP))) {
paramWorld.setBlock(paramInt1, paramInt2 + this.densityDir, paramInt3, this, 0, 3);
paramWorld.setBlockToAir(paramInt1, paramInt2, paramInt3);
return;
@@ -136,7 +137,7 @@ public class TF_Block_Fluid_Pyrotheum extends BlockFluidInteractive {
}
protected void checkForInteraction(final World paramWorld, final int paramInt1, final int paramInt2,
- final int paramInt3) {
+ final int paramInt3) {
if (paramWorld.getBlock(paramInt1, paramInt2, paramInt3) != this) {
return;
}
@@ -157,7 +158,7 @@ public class TF_Block_Fluid_Pyrotheum extends BlockFluidInteractive {
}
protected void interactWithBlock(final World paramWorld, final int paramInt1, final int paramInt2,
- final int paramInt3) {
+ final int paramInt3) {
final Block localBlock = paramWorld.getBlock(paramInt1, paramInt2, paramInt3);
if ((localBlock == Blocks.air) || (localBlock == this)) {
return;
@@ -166,26 +167,26 @@ public class TF_Block_Fluid_Pyrotheum extends BlockFluidInteractive {
if (this.hasInteraction(localBlock, i)) {
final BlockWrapper localBlockWrapper = this.getInteraction(localBlock, i);
paramWorld
- .setBlock(paramInt1, paramInt2, paramInt3, localBlockWrapper.block, localBlockWrapper.metadata, 3);
+ .setBlock(paramInt1, paramInt2, paramInt3, localBlockWrapper.block, localBlockWrapper.metadata, 3);
this.triggerInteractionEffects(paramWorld, paramInt1, paramInt2, paramInt3);
} else if (localBlock.isFlammable(paramWorld, paramInt1, paramInt2, paramInt3, ForgeDirection.UP)) {
paramWorld.setBlock(paramInt1, paramInt2, paramInt3, Blocks.fire);
} else if ((paramWorld.isSideSolid(paramInt1, paramInt2, paramInt3, ForgeDirection.UP))
- && (paramWorld.isAirBlock(paramInt1, paramInt2 + 1, paramInt3))) {
- paramWorld.setBlock(paramInt1, paramInt2 + 1, paramInt3, Blocks.fire, 0, 3);
- }
+ && (paramWorld.isAirBlock(paramInt1, paramInt2 + 1, paramInt3))) {
+ paramWorld.setBlock(paramInt1, paramInt2 + 1, paramInt3, Blocks.fire, 0, 3);
+ }
}
protected void triggerInteractionEffects(final World paramWorld, final int paramInt1, final int paramInt2,
- final int paramInt3) {
+ final int paramInt3) {
if (this.random.nextInt(16) == 0) {
paramWorld.playSoundEffect(
- paramInt1 + 0.5F,
- paramInt2 + 0.5F,
- paramInt3 + 0.5F,
- "random.fizz",
- 0.5F,
- 2.2F + ((paramWorld.rand.nextFloat() - paramWorld.rand.nextFloat()) * 0.8F));
+ paramInt1 + 0.5F,
+ paramInt2 + 0.5F,
+ paramInt3 + 0.5F,
+ "random.fizz",
+ 0.5F,
+ 2.2F + ((paramWorld.rand.nextFloat() - paramWorld.rand.nextFloat()) * 0.8F));
}
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/thermalfoundation/fluid/TF_Fluids.java b/src/main/java/gtPlusPlus/xmod/thermalfoundation/fluid/TF_Fluids.java
index 35819c1f1b..27a0c8e080 100644
--- a/src/main/java/gtPlusPlus/xmod/thermalfoundation/fluid/TF_Fluids.java
+++ b/src/main/java/gtPlusPlus/xmod/thermalfoundation/fluid/TF_Fluids.java
@@ -20,8 +20,11 @@ public class TF_Fluids {
if (pyrotheum == null) {
Logger.INFO("Registering Blazing Pyrotheum as it does not exist.");
- fluidPyrotheum = new Fluid("pyrotheum").setLuminosity(15).setDensity(2000).setViscosity(1200)
- .setTemperature(4000).setRarity(EnumRarity.rare);
+ fluidPyrotheum = new Fluid("pyrotheum").setLuminosity(15)
+ .setDensity(2000)
+ .setViscosity(1200)
+ .setTemperature(4000)
+ .setRarity(EnumRarity.rare);
registerFluid(fluidPyrotheum, "pyrotheum");
} else {
Logger.INFO("Registering Blazing Pyrotheum as it is an already existing Fluid.");
@@ -29,8 +32,11 @@ public class TF_Fluids {
}
if (cryotheum == null) {
Logger.INFO("Registering Gelid Cryotheum as it does not exist.");
- fluidCryotheum = new Fluid("cryotheum").setLuminosity(0).setDensity(4000).setViscosity(3000)
- .setTemperature(50).setRarity(EnumRarity.rare);
+ fluidCryotheum = new Fluid("cryotheum").setLuminosity(0)
+ .setDensity(4000)
+ .setViscosity(3000)
+ .setTemperature(50)
+ .setRarity(EnumRarity.rare);
registerFluid(fluidCryotheum, "cryotheum");
} else {
Logger.INFO("Registering Gelid Cryotheum as it is an already existing Fluid.");
@@ -39,8 +45,11 @@ public class TF_Fluids {
if (ender == null) {
Logger.INFO("Registering Resonant Ender as it does not exist.");
- fluidEnder = new Fluid("ender").setLuminosity(3).setDensity(4000).setViscosity(3000).setTemperature(300)
- .setRarity(EnumRarity.uncommon);
+ fluidEnder = new Fluid("ender").setLuminosity(3)
+ .setDensity(4000)
+ .setViscosity(3000)
+ .setTemperature(300)
+ .setRarity(EnumRarity.uncommon);
registerFluid(fluidEnder, "ender");
} else {
Logger.INFO("Registering Resonant Ender as it is an already existing Fluid.");
diff --git a/src/main/java/gtPlusPlus/xmod/thermalfoundation/item/TF_Items.java b/src/main/java/gtPlusPlus/xmod/thermalfoundation/item/TF_Items.java
index c7c8dd7901..d2ea7ea2d1 100644
--- a/src/main/java/gtPlusPlus/xmod/thermalfoundation/item/TF_Items.java
+++ b/src/main/java/gtPlusPlus/xmod/thermalfoundation/item/TF_Items.java
@@ -33,9 +33,9 @@ public class TF_Items {
public static void preInit() {
itemBucket = (ItemBucket) new ItemBucket("MiscUtils").setUnlocalizedName("bucket")
- .setCreativeTab(AddToCreativeTab.tabMisc);
+ .setCreativeTab(AddToCreativeTab.tabMisc);
itemMaterial = (ItemBase) new ItemBase("MiscUtils").setUnlocalizedName("material")
- .setCreativeTab(AddToCreativeTab.tabMisc);
+ .setCreativeTab(AddToCreativeTab.tabMisc);
bucketPyrotheum = itemBucket.addOreDictItem(1, "bucketPyrotheum");
bucketCryotheum = itemBucket.addOreDictItem(2, "bucketCryotheum");
@@ -64,11 +64,11 @@ public class TF_Items {
BucketHandler.registerBucket(TF_Blocks.blockFluidCryotheum, 0, bucketCryotheum);
BucketHandler.registerBucket(TF_Blocks.blockFluidEnder, 0, bucketEnder);
FluidContainerRegistry
- .registerFluidContainer(TF_Fluids.fluidPyrotheum, bucketPyrotheum, FluidContainerRegistry.EMPTY_BUCKET);
+ .registerFluidContainer(TF_Fluids.fluidPyrotheum, bucketPyrotheum, FluidContainerRegistry.EMPTY_BUCKET);
FluidContainerRegistry
- .registerFluidContainer(TF_Fluids.fluidCryotheum, bucketCryotheum, FluidContainerRegistry.EMPTY_BUCKET);
+ .registerFluidContainer(TF_Fluids.fluidCryotheum, bucketCryotheum, FluidContainerRegistry.EMPTY_BUCKET);
FluidContainerRegistry
- .registerFluidContainer(TF_Fluids.fluidEnder, bucketEnder, FluidContainerRegistry.EMPTY_BUCKET);
+ .registerFluidContainer(TF_Fluids.fluidEnder, bucketEnder, FluidContainerRegistry.EMPTY_BUCKET);
}
public static void postInit() {}
diff --git a/src/main/java/gtPlusPlus/xmod/thermalfoundation/recipe/TF_Gregtech_Recipes.java b/src/main/java/gtPlusPlus/xmod/thermalfoundation/recipe/TF_Gregtech_Recipes.java
index 22966ccb20..cd48964d37 100644
--- a/src/main/java/gtPlusPlus/xmod/thermalfoundation/recipe/TF_Gregtech_Recipes.java
+++ b/src/main/java/gtPlusPlus/xmod/thermalfoundation/recipe/TF_Gregtech_Recipes.java
@@ -28,48 +28,63 @@ public class TF_Gregtech_Recipes {
final FluidStack moltenBlaze = getFluidStack("molten.blaze", 1440);
// Gelid Cryotheum
- GT_Values.RA.stdBuilder().itemInputs(GT_OreDictUnificator.get(OrePrefixes.ore, Materials.Cinnabar, 1L))
- .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cinnabar, 3L))
- .fluidInputs(getFluidStack("cryotheum", 144)).duration(20 * SECONDS).eut(TierEU.RECIPE_LV)
- .addTo(chemicalBathRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(GT_OreDictUnificator.get(OrePrefixes.ore, Materials.Cinnabar, 1L))
+ .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cinnabar, 3L))
+ .fluidInputs(getFluidStack("cryotheum", 144))
+ .duration(20 * SECONDS)
+ .eut(TierEU.RECIPE_LV)
+ .addTo(chemicalBathRecipes);
// Blizz Powder
- GT_Values.RA.stdBuilder().itemInputs(new ItemStack(Items.snowball, 4))
- .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Blizz, 1L)).fluidInputs(moltenBlaze)
- .duration(20 * SECONDS).eut(TierEU.RECIPE_HV / 2).addTo(chemicalBathRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(new ItemStack(Items.snowball, 4))
+ .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Blizz, 1L))
+ .fluidInputs(moltenBlaze)
+ .duration(20 * SECONDS)
+ .eut(TierEU.RECIPE_HV / 2)
+ .addTo(chemicalBathRecipes);
// Blizz Rod
- GT_Values.RA.stdBuilder().itemInputs(new ItemStack(Items.blaze_rod))
- .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Blizz, 1L))
- .duration(((int) Math.max((Materials.Blaze.getMass() * 4) * 3L, 1L)) * TICKS).eut(TierEU.RECIPE_MV)
- .addTo(vacuumFreezerRecipes);
+ GT_Values.RA.stdBuilder()
+ .itemInputs(new ItemStack(Items.blaze_rod))
+ .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Blizz, 1L))
+ .duration(((int) Math.max((Materials.Blaze.getMass() * 4) * 3L, 1L)) * TICKS)
+ .eut(TierEU.RECIPE_MV)
+ .addTo(vacuumFreezerRecipes);
GT_Values.RA.stdBuilder()
- .itemInputs(
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 1L),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1L),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Blaze, 1L))
- .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Pyrotheum, 1L)).duration(8 * SECONDS)
- .eut(TierEU.RECIPE_MV).addTo(mixerRecipes);
+ .itemInputs(
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Blaze, 1L))
+ .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Pyrotheum, 1L))
+ .duration(8 * SECONDS)
+ .eut(TierEU.RECIPE_MV)
+ .addTo(mixerRecipes);
GT_Values.RA.stdBuilder()
- .itemInputs(
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Saltpeter, 1L),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Snow, 1L),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Blizz, 1L))
- .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cryotheum, 1L)).duration(8 * SECONDS)
- .eut(TierEU.RECIPE_MV).addTo(mixerRecipes);
+ .itemInputs(
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Saltpeter, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Snow, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Blizz, 1L))
+ .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cryotheum, 1L))
+ .duration(8 * SECONDS)
+ .eut(TierEU.RECIPE_MV)
+ .addTo(mixerRecipes);
GT_Values.RA.stdBuilder()
- .itemInputs(
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Niter, 1L),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Snow, 1L),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L),
- GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Blizz, 1L))
- .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cryotheum, 1L)).duration(8 * SECONDS)
- .eut(TierEU.RECIPE_MV).addTo(mixerRecipes);
+ .itemInputs(
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Niter, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Snow, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L),
+ GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Blizz, 1L))
+ .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cryotheum, 1L))
+ .duration(8 * SECONDS)
+ .eut(TierEU.RECIPE_MV)
+ .addTo(mixerRecipes);
}
private static FluidStack getFluidStack(final String fluidName, final int amount) {
diff --git a/src/main/java/gtPlusPlus/xmod/tinkers/material/BaseTinkersMaterial.java b/src/main/java/gtPlusPlus/xmod/tinkers/material/BaseTinkersMaterial.java
index 8133b1f78d..f57aa64263 100644
--- a/src/main/java/gtPlusPlus/xmod/tinkers/material/BaseTinkersMaterial.java
+++ b/src/main/java/gtPlusPlus/xmod/tinkers/material/BaseTinkersMaterial.java
@@ -172,7 +172,8 @@ public class BaseTinkersMaterial {
try {
aMatBlock = aMaterial.getBlock();
aMelt = aMaterial.getMeltingPointC();
- aFluid = aMaterial.getFluidStack(0).getFluid();
+ aFluid = aMaterial.getFluidStack(0)
+ .getFluid();
} catch (Throwable t) {
return false;
}
@@ -186,14 +187,10 @@ public class BaseTinkersMaterial {
TinkersUtils.addMelting(aMaterial.getIngot(1), aMatBlock, 0, aMelt, aMaterial.getFluidStack(144));
if (aMelt <= 3600) {
ItemStack ingotcast = TinkersUtils.getPattern(1);
- TinkersUtils.addBasinRecipe(
- aMaterial.getBlock(1),
- aMaterial.getFluidStack(144 * 9),
- (ItemStack) null,
- true,
- 100);
TinkersUtils
- .addCastingTableRecipe(aMaterial.getIngot(1), aMaterial.getFluidStack(144), ingotcast, false, 50);
+ .addBasinRecipe(aMaterial.getBlock(1), aMaterial.getFluidStack(144 * 9), (ItemStack) null, true, 100);
+ TinkersUtils
+ .addCastingTableRecipe(aMaterial.getIngot(1), aMaterial.getFluidStack(144), ingotcast, false, 50);
}
TinkersUtils.generateCastingRecipes(aMaterial, aID);
diff --git a/src/main/java/gtPlusPlus/xmod/tinkers/util/TinkersDryingRecipe.java b/src/main/java/gtPlusPlus/xmod/tinkers/util/TinkersDryingRecipe.java
index 6cbe12c967..33dad51510 100644
--- a/src/main/java/gtPlusPlus/xmod/tinkers/util/TinkersDryingRecipe.java
+++ b/src/main/java/gtPlusPlus/xmod/tinkers/util/TinkersDryingRecipe.java
@@ -27,26 +27,28 @@ public class TinkersDryingRecipe {
List<?> aRecipes = TinkersUtils.getDryingRecipes();
if (aRecipes != null && aRecipes.size() > 0) {
for (Object o : aRecipes) {
- Logger.INFO("Trying to generate recipe using object of type " + o.getClass().getSimpleName());
+ Logger.INFO(
+ "Trying to generate recipe using object of type " + o.getClass()
+ .getSimpleName());
generateFromTinkersRecipeObject(o);
}
} else {
Logger.INFO(
- "Error generating Drying recipes, map was either null or empty. Null? " + (aRecipes != null)
- + ", Size: "
- + aRecipes.size());
+ "Error generating Drying recipes, map was either null or empty. Null? " + (aRecipes != null)
+ + ", Size: "
+ + aRecipes.size());
}
if (!recipes.isEmpty()) {
Logger.INFO("Adding " + recipes.size() + " drying rack recipes to the dehydrator.");
for (TinkersDryingRecipe r : recipes) {
CORE.RA.addDehydratorRecipe(
- new ItemStack[] { CI.getNumberedCircuit(16), r.input },
- GT_Values.NF,
- GT_Values.NF,
- new ItemStack[] { r.result },
- new int[] {},
- r.time / 10,
- 30);
+ new ItemStack[] { CI.getNumberedCircuit(16), r.input },
+ GT_Values.NF,
+ GT_Values.NF,
+ new ItemStack[] { r.result },
+ new int[] {},
+ r.time / 10,
+ 30);
}
}
}
@@ -58,8 +60,8 @@ public class TinkersDryingRecipe {
Class aTinkerClass = ReflectionUtils.getClass("tconstruct.library.crafting.DryingRackRecipes.DryingRecipe"); // o.getClass();
if (aTinkerClass == null || TinkerConstruct.isModLoaded()) {
Logger.INFO(
- "Error generating Drying Recipe, could not find class. Exists? " + ReflectionUtils
- .doesClassExist("tconstruct.library.crafting.DryingRackRecipes.DryingRecipe"));
+ "Error generating Drying Recipe, could not find class. Exists? "
+ + ReflectionUtils.doesClassExist("tconstruct.library.crafting.DryingRackRecipes.DryingRecipe"));
Class clazz = ReflectionUtils.getClass("tconstruct.library.crafting.DryingRackRecipes");
Class[] y = clazz.getDeclaredClasses();
if (y == null || y.length <= 0) {
@@ -69,10 +71,12 @@ public class TinkersDryingRecipe {
boolean found = false;
for (Class h : y) {
Logger.INFO("Found hidden inner class: " + h.getCanonicalName());
- if (h.getSimpleName().toLowerCase().equals("dryingrecipe")) {
+ if (h.getSimpleName()
+ .toLowerCase()
+ .equals("dryingrecipe")) {
Logger.INFO("Found correct recipe. Caching at correct location.");
ReflectionUtils.mCachedClasses
- .put("tconstruct.library.crafting.DryingRackRecipes.DryingRecipe", h);
+ .put("tconstruct.library.crafting.DryingRackRecipes.DryingRecipe", h);
aTinkerClass = h;
found = true;
break;
@@ -102,15 +106,17 @@ public class TinkersDryingRecipe {
this.input = input;
this.result = result;
Logger.INFO(
- "Generating Drying Recipe. Input: " + input.getDisplayName() + ", Output: " + result.getDisplayName());
+ "Generating Drying Recipe. Input: " + input.getDisplayName() + ", Output: " + result.getDisplayName());
recipes.add(this);
}
public boolean matches(ItemStack input) {
if (input.hasTagCompound()) {
input = input.copy();
- input.getTagCompound().removeTag("frypanKill");
- if (input.getTagCompound().hasNoTags()) {
+ input.getTagCompound()
+ .removeTag("frypanKill");
+ if (input.getTagCompound()
+ .hasNoTags()) {
input.setTagCompound((NBTTagCompound) null);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/tinkers/util/TinkersUtils.java b/src/main/java/gtPlusPlus/xmod/tinkers/util/TinkersUtils.java
index b3e9482a92..8b173d5b62 100644
--- a/src/main/java/gtPlusPlus/xmod/tinkers/util/TinkersUtils.java
+++ b/src/main/java/gtPlusPlus/xmod/tinkers/util/TinkersUtils.java
@@ -61,7 +61,7 @@ public class TinkersUtils {
mMethod_getFluidType = ReflectionUtils.getMethod(mClass_FluidType, "getFluidType", String.class);
mMethod_getCastingRecipes = ReflectionUtils
- .getMethod(getCastingInstance(0), "getCastingRecipes", new Class[] {});
+ .getMethod(getCastingInstance(0), "getCastingRecipes", new Class[] {});
}
private static void setTiConDataInstance() {
@@ -72,7 +72,8 @@ public class TinkersUtils {
if (mSmelteryInstance == null) {
if (mClass_Smeltery != null) {
try {
- mSmelteryInstance = ReflectionUtils.getField(mClass_Smeltery, "instance").get(null);
+ mSmelteryInstance = ReflectionUtils.getField(mClass_Smeltery, "instance")
+ .get(null);
} catch (IllegalArgumentException | IllegalAccessException ignored) {}
}
}
@@ -80,7 +81,7 @@ public class TinkersUtils {
if (mClass_TConstructRegistry != null) {
try {
mTinkersRegistryInstance = ReflectionUtils.getField(mClass_TConstructRegistry, "instance")
- .get(null);
+ .get(null);
} catch (IllegalArgumentException | IllegalAccessException ignored) {}
}
}
@@ -96,28 +97,29 @@ public class TinkersUtils {
public static void addSmelteryFuel(Fluid fluid, int power, int duration) {
setTiConDataInstance();
ReflectionUtils.invokeVoid(
- mSmelteryInstance,
- "addSmelteryFuel",
- new Class[] { Fluid.class, int.class, int.class },
- new Object[] { fluid, power, duration });
+ mSmelteryInstance,
+ "addSmelteryFuel",
+ new Class[] { Fluid.class, int.class, int.class },
+ new Object[] { fluid, power, duration });
}
public static boolean registerFluidType(String name, Block block, int meta, int baseTemperature, Fluid fluid,
- boolean isToolpart) {
+ boolean isToolpart) {
if (mMethodCache.get("registerFluidType") == null) {
Method m = ReflectionUtils.getMethod(
- ReflectionUtils.getClass("tconstruct.library.crafting.FluidType"),
- "registerFluidType",
- String.class,
- Block.class,
- int.class,
- int.class,
- Fluid.class,
- boolean.class);
+ ReflectionUtils.getClass("tconstruct.library.crafting.FluidType"),
+ "registerFluidType",
+ String.class,
+ Block.class,
+ int.class,
+ int.class,
+ Fluid.class,
+ boolean.class);
mMethodCache.put("registerFluidType", m);
}
try {
- mMethodCache.get("registerFluidType").invoke(null, name, block, meta, baseTemperature, fluid, isToolpart);
+ mMethodCache.get("registerFluidType")
+ .invoke(null, name, block, meta, baseTemperature, fluid, isToolpart);
return true;
} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {
return false;
@@ -127,64 +129,67 @@ public class TinkersUtils {
public static void addMelting(ItemStack input, Block block, int metadata, int temperature, FluidStack liquid) {
if (mMethodCache.get("addMelting") == null) {
Method m = ReflectionUtils.getMethod(
- mClass_Smeltery,
- "addMelting",
- ItemStack.class,
- Block.class,
- int.class,
- int.class,
- FluidStack.class);
+ mClass_Smeltery,
+ "addMelting",
+ ItemStack.class,
+ Block.class,
+ int.class,
+ int.class,
+ FluidStack.class);
mMethodCache.put("addMelting", m);
}
try {
- mMethodCache.get("addMelting").invoke(null, input, block, metadata, temperature, liquid);
+ mMethodCache.get("addMelting")
+ .invoke(null, input, block, metadata, temperature, liquid);
} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException ignored) {}
}
public static void addMelting(Object type, ItemStack input, int temperatureDifference, int fluidAmount) {
if (mMethodCache.get("addMelting") == null) {
Method m = ReflectionUtils
- .getMethod(mClass_Smeltery, "addMelting", mClass_FluidType, ItemStack.class, int.class, int.class);
+ .getMethod(mClass_Smeltery, "addMelting", mClass_FluidType, ItemStack.class, int.class, int.class);
mMethodCache.put("addMelting", m);
}
try {
- mMethodCache.get("addMelting").invoke(null, type, input, temperatureDifference, fluidAmount);
+ mMethodCache.get("addMelting")
+ .invoke(null, type, input, temperatureDifference, fluidAmount);
} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException ignored) {}
}
public static void addBasinRecipe(ItemStack output, FluidStack metal, ItemStack cast, boolean consume, int delay) {
if (mMethodCache.get("addBasinRecipe") == null) {
Method m = ReflectionUtils.getMethod(
- ReflectionUtils.getClass("tconstruct.library.crafting.LiquidCasting"),
- "addCastingRecipe",
- ItemStack.class,
- FluidStack.class,
- ItemStack.class,
- boolean.class,
- int.class);
+ ReflectionUtils.getClass("tconstruct.library.crafting.LiquidCasting"),
+ "addCastingRecipe",
+ ItemStack.class,
+ FluidStack.class,
+ ItemStack.class,
+ boolean.class,
+ int.class);
mMethodCache.put("addBasinRecipe", m);
}
try {
- mMethodCache.get("addBasinRecipe").invoke(getCastingInstance(0), output, metal, cast, consume, delay);
+ mMethodCache.get("addBasinRecipe")
+ .invoke(getCastingInstance(0), output, metal, cast, consume, delay);
} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException ignored) {}
}
public static void addCastingTableRecipe(ItemStack output, FluidStack metal, ItemStack cast, boolean consume,
- int delay) {
+ int delay) {
if (mMethodCache.get("addCastingTableRecipe") == null) {
Method m = ReflectionUtils.getMethod(
- ReflectionUtils.getClass("tconstruct.library.crafting.LiquidCasting"),
- "addCastingRecipe",
- ItemStack.class,
- FluidStack.class,
- ItemStack.class,
- boolean.class,
- int.class);
+ ReflectionUtils.getClass("tconstruct.library.crafting.LiquidCasting"),
+ "addCastingRecipe",
+ ItemStack.class,
+ FluidStack.class,
+ ItemStack.class,
+ boolean.class,
+ int.class);
mMethodCache.put("addCastingTableRecipe", m);
}
try {
mMethodCache.get("addCastingTableRecipe")
- .invoke(getCastingInstance(1), output, metal, cast, consume, delay);
+ .invoke(getCastingInstance(1), output, metal, cast, consume, delay);
} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException ignored) {}
}
@@ -242,8 +247,8 @@ public class TinkersUtils {
int aCount = 0;
try {
ArrayList<?> recipes = (ArrayList<?>) ReflectionUtils
- .getField(ReflectionUtils.getClass("tconstruct.library.crafting.DryingRackRecipes"), "recipes")
- .get(null);
+ .getField(ReflectionUtils.getClass("tconstruct.library.crafting.DryingRackRecipes"), "recipes")
+ .get(null);
if (recipes != null) {
for (Object o : recipes) {
aData.put(o);
@@ -283,7 +288,8 @@ public class TinkersUtils {
aMoltenIron = (Fluid) mField_MoltenIronFluid.get(null);
} catch (IllegalArgumentException | IllegalAccessException e) {
e.printStackTrace();
- aMoltenIron = Materials.Iron.getMolten(0).getFluid();
+ aMoltenIron = Materials.Iron.getMolten(0)
+ .getFluid();
}
}
while (iterator1.hasNext()) {
@@ -293,8 +299,10 @@ public class TinkersUtils {
}
try {
if (recipe.castingMetal.getFluid() == aMoltenIron && recipe.cast != null
- && mClass_IPattern.isInstance(recipe.cast.getItem())
- && mClass_DynamicToolPart.isInstance(recipe.getResult().getItem())) {
+ && mClass_IPattern.isInstance(recipe.cast.getItem())
+ && mClass_DynamicToolPart.isInstance(
+ recipe.getResult()
+ .getItem())) {
newRecipies.add(recipe);
}
} catch (IllegalArgumentException e) {
@@ -312,9 +320,13 @@ public class TinkersUtils {
continue;
}
// CastingRecipe recipe = (CastingRecipe) i$.next();
- ItemStack output = recipe.getResult().copy();
+ ItemStack output = recipe.getResult()
+ .copy();
output.setItemDamage(aID);
- FluidStack liquid2 = new FluidStack(aMaterial.getFluidStack(0).getFluid(), recipe.castingMetal.amount);
+ FluidStack liquid2 = new FluidStack(
+ aMaterial.getFluidStack(0)
+ .getFluid(),
+ recipe.castingMetal.amount);
addCastingTableRecipe(output, liquid2, recipe.cast, recipe.consumeCast, recipe.coolTime);
addMelting(ft, output, 0, liquid2.amount / 2);
}