mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Formatting and code readability cleanup (#5467)
* First pass reformatting code to be more readable (common still not done) * Replace google common collect calls with Java calls where possible * Remove a bunch of unnecessary parenthesis leaving clarifying ones * Add some missing @Nonnull annotations * Fix checking wrong type * Remove unnecessary continue/return statements and simplify comparision check * Pass exception instead of directly printing stack trace * Work on cleaning up common, through config so far * Work on cleaning up common, through integration so far * Work on cleaning up common, through network so far * Work on cleaning up common, through tier so far * Remove empty constructors that get created by default anyways * Work on cleaning up common, through transmitters so far * Work on cleaning up common, through utils so far * Finish cleaning up spacing for common
This commit is contained in:
1 parent
91ef2a5c3d
commit
0d4b50908f
909 files changed
+6234
-15623
No files matched your search
@@ -185,8 +185,7 @@ import net.minecraftforge.oredict.OreDictionary;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
@Mod(modid = Mekanism.MODID, useMetadata = true, guiFactory = "mekanism.client.gui.ConfigGuiFactory",
|
||||
acceptedMinecraftVersions = "[1.12,1.13)", version = "${version}")
|
||||
@Mod(modid = Mekanism.MODID, useMetadata = true, guiFactory = "mekanism.client.gui.ConfigGuiFactory", acceptedMinecraftVersions = "[1.12,1.13)", version = "${version}")
|
||||
@Mod.EventBusSubscriber()
|
||||
public class Mekanism {
|
||||
|
||||
@@ -237,11 +236,9 @@ public class Mekanism {
|
||||
*/
|
||||
public static FrequencyManager publicTeleporters = new FrequencyManager(Frequency.class, Frequency.TELEPORTER);
|
||||
public static Map<UUID, FrequencyManager> privateTeleporters = new HashMap<>();
|
||||
public static FrequencyManager publicEntangloporters = new FrequencyManager(InventoryFrequency.class,
|
||||
InventoryFrequency.ENTANGLOPORTER);
|
||||
public static FrequencyManager publicEntangloporters = new FrequencyManager(InventoryFrequency.class, InventoryFrequency.ENTANGLOPORTER);
|
||||
public static Map<UUID, FrequencyManager> privateEntangloporters = new HashMap<>();
|
||||
public static FrequencyManager securityFrequencies = new FrequencyManager(SecurityFrequency.class,
|
||||
SecurityFrequency.SECURITY);
|
||||
public static FrequencyManager securityFrequencies = new FrequencyManager(SecurityFrequency.class, SecurityFrequency.SECURITY);
|
||||
/**
|
||||
* Mekanism creative tab
|
||||
*/
|
||||
@@ -259,8 +256,7 @@ public class Mekanism {
|
||||
*/
|
||||
public static GenHandler genHandler = new GenHandler();
|
||||
/**
|
||||
* The version of ore generation in this version of Mekanism. Increment this every time the default ore generation
|
||||
* changes.
|
||||
* The version of ore generation in this version of Mekanism. Increment this every time the default ore generation changes.
|
||||
*/
|
||||
public static int baseWorldGenVersion = 0;
|
||||
/**
|
||||
@@ -270,8 +266,7 @@ public class Mekanism {
|
||||
/**
|
||||
* The GameProfile used by the dummy Mekanism player
|
||||
*/
|
||||
public static GameProfile gameProfile = new GameProfile(UUID.nameUUIDFromBytes("mekanism.common".getBytes()),
|
||||
Mekanism.LOG_TAG);
|
||||
public static GameProfile gameProfile = new GameProfile(UUID.nameUUIDFromBytes("mekanism.common".getBytes()), Mekanism.LOG_TAG);
|
||||
public static KeySync keyMap = new KeySync();
|
||||
public static Set<Coord4D> activeVibrators = new HashSet<>();
|
||||
|
||||
@@ -296,16 +291,11 @@ public class Mekanism {
|
||||
|
||||
@SubscribeEvent
|
||||
public static void registerEntities(RegistryEvent.Register<EntityEntry> event) {
|
||||
EntityRegistry.registerModEntity(new ResourceLocation(MODID, "ObsidianTNT"), EntityObsidianTNT.class,
|
||||
"ObsidianTNT", 0, Mekanism.instance, 64, 5, true);
|
||||
EntityRegistry.registerModEntity(new ResourceLocation(MODID, "Robit"), EntityRobit.class, "Robit", 1,
|
||||
Mekanism.instance, 64, 2, true);
|
||||
EntityRegistry.registerModEntity(new ResourceLocation(MODID, "Balloon"), EntityBalloon.class, "Balloon", 2,
|
||||
Mekanism.instance, 64, 1, true);
|
||||
EntityRegistry.registerModEntity(new ResourceLocation(MODID, "BabySkeleton"), EntityBabySkeleton.class,
|
||||
"BabySkeleton", 3, Mekanism.instance, 64, 5, true, 0xFFFFFF, 0x800080);
|
||||
EntityRegistry.registerModEntity(new ResourceLocation(MODID, "Flame"), EntityFlame.class, "Flame", 4,
|
||||
Mekanism.instance, 64, 5, true);
|
||||
EntityRegistry.registerModEntity(new ResourceLocation(MODID, "ObsidianTNT"), EntityObsidianTNT.class, "ObsidianTNT", 0, Mekanism.instance, 64, 5, true);
|
||||
EntityRegistry.registerModEntity(new ResourceLocation(MODID, "Robit"), EntityRobit.class, "Robit", 1, Mekanism.instance, 64, 2, true);
|
||||
EntityRegistry.registerModEntity(new ResourceLocation(MODID, "Balloon"), EntityBalloon.class, "Balloon", 2, Mekanism.instance, 64, 1, true);
|
||||
EntityRegistry.registerModEntity(new ResourceLocation(MODID, "BabySkeleton"), EntityBabySkeleton.class, "BabySkeleton", 3, Mekanism.instance, 64, 5, true, 0xFFFFFF, 0x800080);
|
||||
EntityRegistry.registerModEntity(new ResourceLocation(MODID, "Flame"), EntityFlame.class, "Flame", 4, Mekanism.instance, 64, 5, true);
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
@@ -332,92 +322,62 @@ public class Mekanism {
|
||||
*/
|
||||
public static void addRecipes() {
|
||||
//Furnace Recipes
|
||||
GameRegistry.addSmelting(new ItemStack(MekanismBlocks.OreBlock, 1, 0), new ItemStack(MekanismItems.Ingot, 1, 1),
|
||||
1.0F);
|
||||
GameRegistry.addSmelting(new ItemStack(MekanismBlocks.OreBlock, 1, 1), new ItemStack(MekanismItems.Ingot, 1, 5),
|
||||
1.0F);
|
||||
GameRegistry.addSmelting(new ItemStack(MekanismBlocks.OreBlock, 1, 2), new ItemStack(MekanismItems.Ingot, 1, 6),
|
||||
1.0F);
|
||||
GameRegistry.addSmelting(new ItemStack(MekanismItems.Dust, 1, Resource.OSMIUM.ordinal()),
|
||||
new ItemStack(MekanismItems.Ingot, 1, 1), 0.0F);
|
||||
GameRegistry.addSmelting(new ItemStack(MekanismItems.Dust, 1, Resource.IRON.ordinal()),
|
||||
new ItemStack(Items.IRON_INGOT), 0.0F);
|
||||
GameRegistry.addSmelting(new ItemStack(MekanismItems.Dust, 1, Resource.GOLD.ordinal()),
|
||||
new ItemStack(Items.GOLD_INGOT), 0.0F);
|
||||
GameRegistry.addSmelting(new ItemStack(MekanismItems.OtherDust, 1, 1), new ItemStack(MekanismItems.Ingot, 1, 4),
|
||||
0.0F);
|
||||
GameRegistry.addSmelting(new ItemStack(MekanismItems.Dust, 1, Resource.COPPER.ordinal()),
|
||||
new ItemStack(MekanismItems.Ingot, 1, 5), 0.0F);
|
||||
GameRegistry.addSmelting(new ItemStack(MekanismItems.Dust, 1, Resource.TIN.ordinal()),
|
||||
new ItemStack(MekanismItems.Ingot, 1, 6), 0.0F);
|
||||
GameRegistry.addSmelting(new ItemStack(MekanismBlocks.OreBlock, 1, 0), new ItemStack(MekanismItems.Ingot, 1, 1), 1.0F);
|
||||
GameRegistry.addSmelting(new ItemStack(MekanismBlocks.OreBlock, 1, 1), new ItemStack(MekanismItems.Ingot, 1, 5), 1.0F);
|
||||
GameRegistry.addSmelting(new ItemStack(MekanismBlocks.OreBlock, 1, 2), new ItemStack(MekanismItems.Ingot, 1, 6), 1.0F);
|
||||
GameRegistry.addSmelting(new ItemStack(MekanismItems.Dust, 1, Resource.OSMIUM.ordinal()), new ItemStack(MekanismItems.Ingot, 1, 1), 0.0F);
|
||||
GameRegistry.addSmelting(new ItemStack(MekanismItems.Dust, 1, Resource.IRON.ordinal()), new ItemStack(Items.IRON_INGOT), 0.0F);
|
||||
GameRegistry.addSmelting(new ItemStack(MekanismItems.Dust, 1, Resource.GOLD.ordinal()), new ItemStack(Items.GOLD_INGOT), 0.0F);
|
||||
GameRegistry.addSmelting(new ItemStack(MekanismItems.OtherDust, 1, 1), new ItemStack(MekanismItems.Ingot, 1, 4), 0.0F);
|
||||
GameRegistry.addSmelting(new ItemStack(MekanismItems.Dust, 1, Resource.COPPER.ordinal()), new ItemStack(MekanismItems.Ingot, 1, 5), 0.0F);
|
||||
GameRegistry.addSmelting(new ItemStack(MekanismItems.Dust, 1, Resource.TIN.ordinal()), new ItemStack(MekanismItems.Ingot, 1, 6), 0.0F);
|
||||
|
||||
//Enrichment Chamber Recipes
|
||||
if (MekanismConfig.current().general.machinesManager.isEnabled(MachineType.ENRICHMENT_CHAMBER)) {
|
||||
RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Blocks.OBSIDIAN),
|
||||
new ItemStack(MekanismItems.OtherDust, 4, 6));
|
||||
RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Items.COAL, 1, 0),
|
||||
new ItemStack(MekanismItems.CompressedCarbon));
|
||||
RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Items.COAL, 1, 1),
|
||||
new ItemStack(MekanismItems.CompressedCarbon));
|
||||
RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Items.REDSTONE),
|
||||
new ItemStack(MekanismItems.CompressedRedstone));
|
||||
RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Blocks.MOSSY_COBBLESTONE),
|
||||
new ItemStack(Blocks.COBBLESTONE));
|
||||
RecipeHandler
|
||||
.addEnrichmentChamberRecipe(new ItemStack(Blocks.STONE), new ItemStack(Blocks.STONEBRICK, 1, 2));
|
||||
RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Blocks.OBSIDIAN), new ItemStack(MekanismItems.OtherDust, 4, 6));
|
||||
RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Items.COAL, 1, 0), new ItemStack(MekanismItems.CompressedCarbon));
|
||||
RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Items.COAL, 1, 1), new ItemStack(MekanismItems.CompressedCarbon));
|
||||
RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Items.REDSTONE), new ItemStack(MekanismItems.CompressedRedstone));
|
||||
RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Blocks.MOSSY_COBBLESTONE), new ItemStack(Blocks.COBBLESTONE));
|
||||
RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Blocks.STONE), new ItemStack(Blocks.STONEBRICK, 1, 2));
|
||||
RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Blocks.SAND), new ItemStack(Blocks.GRAVEL));
|
||||
RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Blocks.GRAVEL), new ItemStack(Blocks.COBBLESTONE));
|
||||
RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Items.GUNPOWDER), new ItemStack(Items.FLINT));
|
||||
RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Blocks.STONEBRICK, 1, 2),
|
||||
new ItemStack(Blocks.STONEBRICK, 1, 0));
|
||||
RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Blocks.STONEBRICK, 1, 0),
|
||||
new ItemStack(Blocks.STONEBRICK, 1, 3));
|
||||
RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Blocks.STONEBRICK, 1, 1),
|
||||
new ItemStack(Blocks.STONEBRICK, 1, 0));
|
||||
RecipeHandler
|
||||
.addEnrichmentChamberRecipe(new ItemStack(Blocks.GLOWSTONE), new ItemStack(Items.GLOWSTONE_DUST, 4));
|
||||
RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Blocks.STONEBRICK, 1, 2), new ItemStack(Blocks.STONEBRICK, 1, 0));
|
||||
RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Blocks.STONEBRICK, 1, 0), new ItemStack(Blocks.STONEBRICK, 1, 3));
|
||||
RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Blocks.STONEBRICK, 1, 1), new ItemStack(Blocks.STONEBRICK, 1, 0));
|
||||
RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Blocks.GLOWSTONE), new ItemStack(Items.GLOWSTONE_DUST, 4));
|
||||
RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Blocks.CLAY), new ItemStack(Items.CLAY_BALL, 4));
|
||||
RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(MekanismBlocks.SaltBlock),
|
||||
new ItemStack(MekanismItems.Salt, 4));
|
||||
RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Items.DIAMOND),
|
||||
new ItemStack(MekanismItems.CompressedDiamond));
|
||||
RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(MekanismItems.Polyethene, 3, 0),
|
||||
new ItemStack(MekanismItems.Polyethene, 1, 2));
|
||||
RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(MekanismBlocks.SaltBlock), new ItemStack(MekanismItems.Salt, 4));
|
||||
RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Items.DIAMOND), new ItemStack(MekanismItems.CompressedDiamond));
|
||||
RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(MekanismItems.Polyethene, 3, 0), new ItemStack(MekanismItems.Polyethene, 1, 2));
|
||||
|
||||
for (int i = 0; i < EnumColor.DYES.length; i++) {
|
||||
RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(MekanismBlocks.PlasticBlock, 1, i),
|
||||
new ItemStack(MekanismBlocks.SlickPlasticBlock, 1, i));
|
||||
RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(MekanismBlocks.PlasticBlock, 1, i), new ItemStack(MekanismBlocks.SlickPlasticBlock, 1, i));
|
||||
}
|
||||
}
|
||||
|
||||
//Combiner recipes
|
||||
if (MekanismConfig.current().general.machinesManager.isEnabled(MachineType.COMBINER)) {
|
||||
RecipeHandler.addCombinerRecipe(new ItemStack(Items.FLINT), new ItemStack(Blocks.COBBLESTONE),
|
||||
new ItemStack(Blocks.GRAVEL));
|
||||
RecipeHandler.addCombinerRecipe(new ItemStack(Items.COAL, 3), new ItemStack(Blocks.COBBLESTONE),
|
||||
new ItemStack(Blocks.COAL_ORE));
|
||||
RecipeHandler.addCombinerRecipe(new ItemStack(Items.FLINT), new ItemStack(Blocks.COBBLESTONE), new ItemStack(Blocks.GRAVEL));
|
||||
RecipeHandler.addCombinerRecipe(new ItemStack(Items.COAL, 3), new ItemStack(Blocks.COBBLESTONE), new ItemStack(Blocks.COAL_ORE));
|
||||
}
|
||||
|
||||
//Osmium Compressor Recipes
|
||||
if (MekanismConfig.current().general.machinesManager.isEnabled(MachineType.OSMIUM_COMPRESSOR)) {
|
||||
RecipeHandler.addOsmiumCompressorRecipe(new ItemStack(Items.GLOWSTONE_DUST),
|
||||
new ItemStack(MekanismItems.Ingot, 1, 3));
|
||||
RecipeHandler.addOsmiumCompressorRecipe(new ItemStack(Items.GLOWSTONE_DUST), new ItemStack(MekanismItems.Ingot, 1, 3));
|
||||
}
|
||||
|
||||
//Crusher Recipes
|
||||
if (MekanismConfig.current().general.machinesManager.isEnabled(MachineType.CRUSHER)) {
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.IRON_INGOT),
|
||||
new ItemStack(MekanismItems.Dust, 1, Resource.IRON.ordinal()));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.GOLD_INGOT),
|
||||
new ItemStack(MekanismItems.Dust, 1, Resource.GOLD.ordinal()));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.IRON_INGOT), new ItemStack(MekanismItems.Dust, 1, Resource.IRON.ordinal()));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.GOLD_INGOT), new ItemStack(MekanismItems.Dust, 1, Resource.GOLD.ordinal()));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Blocks.GRAVEL), new ItemStack(Blocks.SAND));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Blocks.STONE), new ItemStack(Blocks.COBBLESTONE));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Blocks.COBBLESTONE), new ItemStack(Blocks.GRAVEL));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Blocks.STONEBRICK, 1, 2), new ItemStack(Blocks.STONE));
|
||||
RecipeHandler
|
||||
.addCrusherRecipe(new ItemStack(Blocks.STONEBRICK, 1, 0), new ItemStack(Blocks.STONEBRICK, 1, 2));
|
||||
RecipeHandler
|
||||
.addCrusherRecipe(new ItemStack(Blocks.STONEBRICK, 1, 3), new ItemStack(Blocks.STONEBRICK, 1, 0));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Blocks.STONEBRICK, 1, 0), new ItemStack(Blocks.STONEBRICK, 1, 2));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Blocks.STONEBRICK, 1, 3), new ItemStack(Blocks.STONEBRICK, 1, 0));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.FLINT), new ItemStack(Items.GUNPOWDER));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Blocks.SANDSTONE), new ItemStack(Blocks.SAND, 2));
|
||||
|
||||
@@ -440,11 +400,9 @@ public class Mekanism {
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.MELON), new ItemStack(MekanismItems.BioFuel, 4));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Blocks.PUMPKIN), new ItemStack(MekanismItems.BioFuel, 6));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.BAKED_POTATO), new ItemStack(MekanismItems.BioFuel, 4));
|
||||
RecipeHandler
|
||||
.addCrusherRecipe(new ItemStack(Items.POISONOUS_POTATO), new ItemStack(MekanismItems.BioFuel, 4));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.POISONOUS_POTATO), new ItemStack(MekanismItems.BioFuel, 4));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.BEETROOT), new ItemStack(MekanismItems.BioFuel, 4));
|
||||
RecipeHandler
|
||||
.addCrusherRecipe(new ItemStack(Items.BEETROOT_SEEDS), new ItemStack(MekanismItems.BioFuel, 2));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.BEETROOT_SEEDS), new ItemStack(MekanismItems.BioFuel, 2));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Blocks.CACTUS), new ItemStack(MekanismItems.BioFuel, 2));
|
||||
}
|
||||
|
||||
@@ -455,217 +413,133 @@ public class Mekanism {
|
||||
|
||||
//Chemical Injection Chamber Recipes
|
||||
if (MekanismConfig.current().general.machinesManager.isEnabled(MachineType.CHEMICAL_INJECTION_CHAMBER)) {
|
||||
RecipeHandler.addChemicalInjectionChamberRecipe(new ItemStack(Blocks.DIRT), MekanismFluids.Water,
|
||||
new ItemStack(Blocks.CLAY));
|
||||
RecipeHandler.addChemicalInjectionChamberRecipe(new ItemStack(Blocks.HARDENED_CLAY), MekanismFluids.Water,
|
||||
new ItemStack(Blocks.CLAY));
|
||||
RecipeHandler.addChemicalInjectionChamberRecipe(new ItemStack(Items.BRICK), MekanismFluids.Water,
|
||||
new ItemStack(Items.CLAY_BALL));
|
||||
RecipeHandler
|
||||
.addChemicalInjectionChamberRecipe(new ItemStack(Items.GUNPOWDER), MekanismFluids.HydrogenChloride,
|
||||
new ItemStack(MekanismItems.OtherDust, 1, 3));
|
||||
RecipeHandler.addChemicalInjectionChamberRecipe(new ItemStack(Blocks.DIRT), MekanismFluids.Water, new ItemStack(Blocks.CLAY));
|
||||
RecipeHandler.addChemicalInjectionChamberRecipe(new ItemStack(Blocks.HARDENED_CLAY), MekanismFluids.Water, new ItemStack(Blocks.CLAY));
|
||||
RecipeHandler.addChemicalInjectionChamberRecipe(new ItemStack(Items.BRICK), MekanismFluids.Water, new ItemStack(Items.CLAY_BALL));
|
||||
RecipeHandler.addChemicalInjectionChamberRecipe(new ItemStack(Items.GUNPOWDER), MekanismFluids.HydrogenChloride, new ItemStack(MekanismItems.OtherDust, 1, 3));
|
||||
}
|
||||
|
||||
//Precision Sawmill Recipes
|
||||
if (MekanismConfig.current().general.machinesManager.isEnabled(MachineType.PRECISION_SAWMILL)) {
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.LADDER, 3), new ItemStack(Items.STICK, 7));
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.TORCH, 4), new ItemStack(Items.STICK),
|
||||
new ItemStack(Items.COAL), 1);
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.TORCH, 4), new ItemStack(Items.STICK), new ItemStack(Items.COAL), 1);
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.CHEST), new ItemStack(Blocks.PLANKS, 8));
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.TRAPDOOR), new ItemStack(Blocks.PLANKS, 3));
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Items.BOAT), new ItemStack(Blocks.PLANKS, 5));
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Items.BED), new ItemStack(Blocks.PLANKS, 3),
|
||||
new ItemStack(Blocks.WOOL, 3), 1);
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Items.BED), new ItemStack(Blocks.PLANKS, 3), new ItemStack(Blocks.WOOL, 3), 1);
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Items.OAK_DOOR), new ItemStack(Blocks.PLANKS, 2, 0));
|
||||
RecipeHandler
|
||||
.addPrecisionSawmillRecipe(new ItemStack(Items.SPRUCE_DOOR), new ItemStack(Blocks.PLANKS, 2, 1));
|
||||
RecipeHandler
|
||||
.addPrecisionSawmillRecipe(new ItemStack(Items.BIRCH_DOOR), new ItemStack(Blocks.PLANKS, 2, 2));
|
||||
RecipeHandler
|
||||
.addPrecisionSawmillRecipe(new ItemStack(Items.JUNGLE_DOOR), new ItemStack(Blocks.PLANKS, 2, 3));
|
||||
RecipeHandler
|
||||
.addPrecisionSawmillRecipe(new ItemStack(Items.ACACIA_DOOR), new ItemStack(Blocks.PLANKS, 2, 4));
|
||||
RecipeHandler
|
||||
.addPrecisionSawmillRecipe(new ItemStack(Items.DARK_OAK_DOOR), new ItemStack(Blocks.PLANKS, 2, 5));
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.JUKEBOX), new ItemStack(Blocks.PLANKS, 8),
|
||||
new ItemStack(Items.DIAMOND), 1);
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.BOOKSHELF), new ItemStack(Blocks.PLANKS, 6),
|
||||
new ItemStack(Items.BOOK, 3), 1);
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.WOODEN_PRESSURE_PLATE),
|
||||
new ItemStack(Blocks.PLANKS, 2));
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Items.SPRUCE_DOOR), new ItemStack(Blocks.PLANKS, 2, 1));
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Items.BIRCH_DOOR), new ItemStack(Blocks.PLANKS, 2, 2));
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Items.JUNGLE_DOOR), new ItemStack(Blocks.PLANKS, 2, 3));
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Items.ACACIA_DOOR), new ItemStack(Blocks.PLANKS, 2, 4));
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Items.DARK_OAK_DOOR), new ItemStack(Blocks.PLANKS, 2, 5));
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.JUKEBOX), new ItemStack(Blocks.PLANKS, 8), new ItemStack(Items.DIAMOND), 1);
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.BOOKSHELF), new ItemStack(Blocks.PLANKS, 6), new ItemStack(Items.BOOK, 3), 1);
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.WOODEN_PRESSURE_PLATE), new ItemStack(Blocks.PLANKS, 2));
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.OAK_FENCE), new ItemStack(Items.STICK, 3));
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.SPRUCE_FENCE), new ItemStack(Items.STICK, 3));
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.BIRCH_FENCE), new ItemStack(Items.STICK, 3));
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.JUNGLE_FENCE), new ItemStack(Items.STICK, 3));
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.ACACIA_FENCE), new ItemStack(Items.STICK, 3));
|
||||
RecipeHandler
|
||||
.addPrecisionSawmillRecipe(new ItemStack(Blocks.DARK_OAK_FENCE), new ItemStack(Items.STICK, 3));
|
||||
RecipeHandler
|
||||
.addPrecisionSawmillRecipe(new ItemStack(Blocks.OAK_FENCE_GATE), new ItemStack(Blocks.PLANKS, 2, 0),
|
||||
new ItemStack(Items.STICK, 4), 1);
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.SPRUCE_FENCE_GATE),
|
||||
new ItemStack(Blocks.PLANKS, 2, 1), new ItemStack(Items.STICK, 4), 1);
|
||||
RecipeHandler
|
||||
.addPrecisionSawmillRecipe(new ItemStack(Blocks.BIRCH_FENCE_GATE), new ItemStack(Blocks.PLANKS, 2, 2),
|
||||
new ItemStack(Items.STICK, 4), 1);
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.JUNGLE_FENCE_GATE),
|
||||
new ItemStack(Blocks.PLANKS, 2, 3), new ItemStack(Items.STICK, 4), 1);
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.ACACIA_FENCE_GATE),
|
||||
new ItemStack(Blocks.PLANKS, 2, 4), new ItemStack(Items.STICK, 4), 1);
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.DARK_OAK_FENCE_GATE),
|
||||
new ItemStack(Blocks.PLANKS, 2, 5), new ItemStack(Items.STICK, 4), 1);
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.NOTEBLOCK), new ItemStack(Blocks.PLANKS, 8),
|
||||
new ItemStack(Items.REDSTONE), 1);
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.REDSTONE_TORCH), new ItemStack(Items.STICK),
|
||||
new ItemStack(Items.REDSTONE), 1);
|
||||
RecipeHandler
|
||||
.addPrecisionSawmillRecipe(new ItemStack(Blocks.CRAFTING_TABLE), new ItemStack(Blocks.PLANKS, 4));
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.DARK_OAK_FENCE), new ItemStack(Items.STICK, 3));
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.OAK_FENCE_GATE), new ItemStack(Blocks.PLANKS, 2, 0), new ItemStack(Items.STICK, 4), 1);
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.SPRUCE_FENCE_GATE), new ItemStack(Blocks.PLANKS, 2, 1), new ItemStack(Items.STICK, 4), 1);
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.BIRCH_FENCE_GATE), new ItemStack(Blocks.PLANKS, 2, 2), new ItemStack(Items.STICK, 4), 1);
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.JUNGLE_FENCE_GATE), new ItemStack(Blocks.PLANKS, 2, 3), new ItemStack(Items.STICK, 4), 1);
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.ACACIA_FENCE_GATE), new ItemStack(Blocks.PLANKS, 2, 4), new ItemStack(Items.STICK, 4), 1);
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.DARK_OAK_FENCE_GATE), new ItemStack(Blocks.PLANKS, 2, 5), new ItemStack(Items.STICK, 4), 1);
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.NOTEBLOCK), new ItemStack(Blocks.PLANKS, 8), new ItemStack(Items.REDSTONE), 1);
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.REDSTONE_TORCH), new ItemStack(Items.STICK), new ItemStack(Items.REDSTONE), 1);
|
||||
RecipeHandler.addPrecisionSawmillRecipe(new ItemStack(Blocks.CRAFTING_TABLE), new ItemStack(Blocks.PLANKS, 4));
|
||||
}
|
||||
|
||||
//Metallurgic Infuser Recipes
|
||||
if (MekanismConfig.current().general.machinesManager.isEnabled(MachineType.METALLURGIC_INFUSER)) {
|
||||
RecipeHandler.addMetallurgicInfuserRecipe(InfuseRegistry.get("CARBON"), 10, new ItemStack(Items.IRON_INGOT),
|
||||
new ItemStack(MekanismItems.EnrichedIron));
|
||||
RecipeHandler.addMetallurgicInfuserRecipe(InfuseRegistry.get("CARBON"), 10,
|
||||
new ItemStack(MekanismItems.EnrichedIron), new ItemStack(MekanismItems.OtherDust, 1, 1));
|
||||
RecipeHandler
|
||||
.addMetallurgicInfuserRecipe(InfuseRegistry.get("REDSTONE"), 10, new ItemStack(Items.IRON_INGOT),
|
||||
new ItemStack(MekanismItems.EnrichedAlloy));
|
||||
RecipeHandler.addMetallurgicInfuserRecipe(InfuseRegistry.get("FUNGI"), 10, new ItemStack(Blocks.DIRT),
|
||||
new ItemStack(Blocks.MYCELIUM));
|
||||
RecipeHandler.addMetallurgicInfuserRecipe(InfuseRegistry.get("BIO"), 10, new ItemStack(Blocks.COBBLESTONE),
|
||||
new ItemStack(Blocks.MOSSY_COBBLESTONE));
|
||||
RecipeHandler
|
||||
.addMetallurgicInfuserRecipe(InfuseRegistry.get("BIO"), 10, new ItemStack(Blocks.STONEBRICK, 1, 0),
|
||||
new ItemStack(Blocks.STONEBRICK, 1, 1));
|
||||
RecipeHandler.addMetallurgicInfuserRecipe(InfuseRegistry.get("BIO"), 10, new ItemStack(Blocks.SAND),
|
||||
new ItemStack(Blocks.DIRT));
|
||||
RecipeHandler.addMetallurgicInfuserRecipe(InfuseRegistry.get("BIO"), 10, new ItemStack(Blocks.DIRT),
|
||||
new ItemStack(Blocks.DIRT, 1, 2));
|
||||
RecipeHandler.addMetallurgicInfuserRecipe(InfuseRegistry.get("DIAMOND"), 10,
|
||||
new ItemStack(MekanismItems.EnrichedAlloy), new ItemStack(MekanismItems.ReinforcedAlloy));
|
||||
RecipeHandler.addMetallurgicInfuserRecipe(InfuseRegistry.get("OBSIDIAN"), 10,
|
||||
new ItemStack(MekanismItems.ReinforcedAlloy), new ItemStack(MekanismItems.AtomicAlloy));
|
||||
RecipeHandler.addMetallurgicInfuserRecipe(InfuseRegistry.get("CARBON"), 10, new ItemStack(Items.IRON_INGOT), new ItemStack(MekanismItems.EnrichedIron));
|
||||
RecipeHandler.addMetallurgicInfuserRecipe(InfuseRegistry.get("CARBON"), 10, new ItemStack(MekanismItems.EnrichedIron), new ItemStack(MekanismItems.OtherDust, 1, 1));
|
||||
RecipeHandler.addMetallurgicInfuserRecipe(InfuseRegistry.get("REDSTONE"), 10, new ItemStack(Items.IRON_INGOT), new ItemStack(MekanismItems.EnrichedAlloy));
|
||||
RecipeHandler.addMetallurgicInfuserRecipe(InfuseRegistry.get("FUNGI"), 10, new ItemStack(Blocks.DIRT), new ItemStack(Blocks.MYCELIUM));
|
||||
RecipeHandler.addMetallurgicInfuserRecipe(InfuseRegistry.get("BIO"), 10, new ItemStack(Blocks.COBBLESTONE), new ItemStack(Blocks.MOSSY_COBBLESTONE));
|
||||
RecipeHandler.addMetallurgicInfuserRecipe(InfuseRegistry.get("BIO"), 10, new ItemStack(Blocks.STONEBRICK, 1, 0), new ItemStack(Blocks.STONEBRICK, 1, 1));
|
||||
RecipeHandler.addMetallurgicInfuserRecipe(InfuseRegistry.get("BIO"), 10, new ItemStack(Blocks.SAND), new ItemStack(Blocks.DIRT));
|
||||
RecipeHandler.addMetallurgicInfuserRecipe(InfuseRegistry.get("BIO"), 10, new ItemStack(Blocks.DIRT), new ItemStack(Blocks.DIRT, 1, 2));
|
||||
RecipeHandler.addMetallurgicInfuserRecipe(InfuseRegistry.get("DIAMOND"), 10, new ItemStack(MekanismItems.EnrichedAlloy), new ItemStack(MekanismItems.ReinforcedAlloy));
|
||||
RecipeHandler.addMetallurgicInfuserRecipe(InfuseRegistry.get("OBSIDIAN"), 10, new ItemStack(MekanismItems.ReinforcedAlloy), new ItemStack(MekanismItems.AtomicAlloy));
|
||||
}
|
||||
|
||||
//Chemical Infuser Recipes
|
||||
if (MekanismConfig.current().general.machinesManager.isEnabled(MachineType.CHEMICAL_INFUSER)) {
|
||||
RecipeHandler.addChemicalInfuserRecipe(new GasStack(MekanismFluids.Oxygen, 1),
|
||||
new GasStack(MekanismFluids.SulfurDioxide, 2), new GasStack(MekanismFluids.SulfurTrioxide, 2));
|
||||
RecipeHandler.addChemicalInfuserRecipe(new GasStack(MekanismFluids.SulfurTrioxide, 1),
|
||||
new GasStack(MekanismFluids.Water, 1), new GasStack(MekanismFluids.SulfuricAcid, 1));
|
||||
RecipeHandler.addChemicalInfuserRecipe(new GasStack(MekanismFluids.Hydrogen, 1),
|
||||
new GasStack(MekanismFluids.Chlorine, 1), new GasStack(MekanismFluids.HydrogenChloride, 1));
|
||||
RecipeHandler.addChemicalInfuserRecipe(new GasStack(MekanismFluids.Deuterium, 1),
|
||||
new GasStack(MekanismFluids.Tritium, 1), new GasStack(MekanismFluids.FusionFuel, 2));
|
||||
RecipeHandler.addChemicalInfuserRecipe(new GasStack(MekanismFluids.Oxygen, 1), new GasStack(MekanismFluids.SulfurDioxide, 2), new GasStack(MekanismFluids.SulfurTrioxide, 2));
|
||||
RecipeHandler.addChemicalInfuserRecipe(new GasStack(MekanismFluids.SulfurTrioxide, 1), new GasStack(MekanismFluids.Water, 1), new GasStack(MekanismFluids.SulfuricAcid, 1));
|
||||
RecipeHandler.addChemicalInfuserRecipe(new GasStack(MekanismFluids.Hydrogen, 1), new GasStack(MekanismFluids.Chlorine, 1), new GasStack(MekanismFluids.HydrogenChloride, 1));
|
||||
RecipeHandler.addChemicalInfuserRecipe(new GasStack(MekanismFluids.Deuterium, 1), new GasStack(MekanismFluids.Tritium, 1), new GasStack(MekanismFluids.FusionFuel, 2));
|
||||
}
|
||||
|
||||
//Electrolytic Separator Recipes
|
||||
if (MekanismConfig.current().general.machinesManager.isEnabled(MachineType.ELECTROLYTIC_SEPARATOR)) {
|
||||
RecipeHandler.addElectrolyticSeparatorRecipe(FluidRegistry.getFluidStack("water", 2),
|
||||
2 * MekanismConfig.current().general.FROM_H2.val(),
|
||||
RecipeHandler.addElectrolyticSeparatorRecipe(FluidRegistry.getFluidStack("water", 2), 2 * MekanismConfig.current().general.FROM_H2.val(),
|
||||
new GasStack(MekanismFluids.Hydrogen, 2), new GasStack(MekanismFluids.Oxygen, 1));
|
||||
RecipeHandler.addElectrolyticSeparatorRecipe(FluidRegistry.getFluidStack("brine", 10),
|
||||
2 * MekanismConfig.current().general.FROM_H2.val(),
|
||||
RecipeHandler.addElectrolyticSeparatorRecipe(FluidRegistry.getFluidStack("brine", 10), 2 * MekanismConfig.current().general.FROM_H2.val(),
|
||||
new GasStack(MekanismFluids.Sodium, 1), new GasStack(MekanismFluids.Chlorine, 1));
|
||||
RecipeHandler.addElectrolyticSeparatorRecipe(FluidRegistry.getFluidStack("heavywater", 2),
|
||||
MekanismConfig.current().usage.heavyWaterElectrolysis.val(),
|
||||
new GasStack(MekanismFluids.Deuterium, 2),
|
||||
new GasStack(MekanismFluids.Oxygen, 1));
|
||||
RecipeHandler.addElectrolyticSeparatorRecipe(FluidRegistry.getFluidStack("heavywater", 2), MekanismConfig.current().usage.heavyWaterElectrolysis.val(),
|
||||
new GasStack(MekanismFluids.Deuterium, 2), new GasStack(MekanismFluids.Oxygen, 1));
|
||||
}
|
||||
|
||||
//Thermal Evaporation Plant Recipes
|
||||
RecipeHandler.addThermalEvaporationRecipe(FluidRegistry.getFluidStack("water", 10),
|
||||
FluidRegistry.getFluidStack("brine", 1));
|
||||
RecipeHandler.addThermalEvaporationRecipe(FluidRegistry.getFluidStack("brine", 10),
|
||||
FluidRegistry.getFluidStack("liquidlithium", 1));
|
||||
RecipeHandler.addThermalEvaporationRecipe(FluidRegistry.getFluidStack("water", 10), FluidRegistry.getFluidStack("brine", 1));
|
||||
RecipeHandler.addThermalEvaporationRecipe(FluidRegistry.getFluidStack("brine", 10), FluidRegistry.getFluidStack("liquidlithium", 1));
|
||||
|
||||
//Chemical Crystallizer Recipes
|
||||
if (MekanismConfig.current().general.machinesManager.isEnabled(MachineType.CHEMICAL_CRYSTALLIZER)) {
|
||||
RecipeHandler.addChemicalCrystallizerRecipe(new GasStack(MekanismFluids.Lithium, 100),
|
||||
new ItemStack(MekanismItems.OtherDust, 1, 4));
|
||||
RecipeHandler.addChemicalCrystallizerRecipe(new GasStack(MekanismFluids.Brine, 15),
|
||||
new ItemStack(MekanismItems.Salt));
|
||||
RecipeHandler.addChemicalCrystallizerRecipe(new GasStack(MekanismFluids.Lithium, 100), new ItemStack(MekanismItems.OtherDust, 1, 4));
|
||||
RecipeHandler.addChemicalCrystallizerRecipe(new GasStack(MekanismFluids.Brine, 15), new ItemStack(MekanismItems.Salt));
|
||||
}
|
||||
|
||||
//T4 Processing Recipes
|
||||
for (Gas gas : GasRegistry.getRegisteredGasses()) {
|
||||
if (gas instanceof OreGas && !((OreGas) gas).isClean()) {
|
||||
OreGas oreGas = (OreGas) gas;
|
||||
|
||||
if (MekanismConfig.current().general.machinesManager.isEnabled(MachineType.CHEMICAL_WASHER)) {
|
||||
RecipeHandler
|
||||
.addChemicalWasherRecipe(new GasStack(oreGas, 1), new GasStack(oreGas.getCleanGas(), 1));
|
||||
RecipeHandler.addChemicalWasherRecipe(new GasStack(oreGas, 1), new GasStack(oreGas.getCleanGas(), 1));
|
||||
}
|
||||
|
||||
//do the crystallizer only if it's one of ours!
|
||||
Resource gasResource = Resource.getFromName(oreGas.getName());
|
||||
if (gasResource != null && MekanismConfig.current().general.machinesManager
|
||||
.isEnabled(MachineType.CHEMICAL_CRYSTALLIZER)) {
|
||||
RecipeHandler.addChemicalCrystallizerRecipe(new GasStack(oreGas.getCleanGas(), 200),
|
||||
new ItemStack(MekanismItems.Crystal, 1, gasResource.ordinal()));
|
||||
if (gasResource != null && MekanismConfig.current().general.machinesManager.isEnabled(MachineType.CHEMICAL_CRYSTALLIZER)) {
|
||||
RecipeHandler.addChemicalCrystallizerRecipe(new GasStack(oreGas.getCleanGas(), 200), new ItemStack(MekanismItems.Crystal, 1, gasResource.ordinal()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//Pressurized Reaction Chamber Recipes
|
||||
if (MekanismConfig.current().general.machinesManager.isEnabled(MachineType.PRESSURIZED_REACTION_CHAMBER)) {
|
||||
RecipeHandler.addPRCRecipe(
|
||||
new ItemStack(MekanismItems.BioFuel, 2), new FluidStack(FluidRegistry.WATER, 10),
|
||||
new GasStack(MekanismFluids.Hydrogen, 100),
|
||||
new ItemStack(MekanismItems.Substrate), new GasStack(MekanismFluids.Ethene, 100),
|
||||
0,
|
||||
100
|
||||
);
|
||||
RecipeHandler.addPRCRecipe(
|
||||
new ItemStack(MekanismItems.Substrate), new FluidStack(MekanismFluids.Ethene.getFluid(), 50),
|
||||
new GasStack(MekanismFluids.Oxygen, 10),
|
||||
new ItemStack(MekanismItems.Polyethene), new GasStack(MekanismFluids.Oxygen, 5),
|
||||
1000,
|
||||
60
|
||||
);
|
||||
RecipeHandler.addPRCRecipe(
|
||||
new ItemStack(MekanismItems.Substrate), new FluidStack(FluidRegistry.WATER, 200),
|
||||
new GasStack(MekanismFluids.Ethene, 100),
|
||||
new ItemStack(MekanismItems.Substrate, 8), new GasStack(MekanismFluids.Oxygen, 10),
|
||||
200,
|
||||
400
|
||||
);
|
||||
RecipeHandler.addPRCRecipe(new ItemStack(MekanismItems.BioFuel, 2), new FluidStack(FluidRegistry.WATER, 10), new GasStack(MekanismFluids.Hydrogen, 100),
|
||||
new ItemStack(MekanismItems.Substrate), new GasStack(MekanismFluids.Ethene, 100), 0, 100);
|
||||
RecipeHandler.addPRCRecipe(new ItemStack(MekanismItems.Substrate), new FluidStack(MekanismFluids.Ethene.getFluid(), 50),
|
||||
new GasStack(MekanismFluids.Oxygen, 10), new ItemStack(MekanismItems.Polyethene), new GasStack(MekanismFluids.Oxygen, 5), 1000, 60);
|
||||
RecipeHandler.addPRCRecipe(new ItemStack(MekanismItems.Substrate), new FluidStack(FluidRegistry.WATER, 200), new GasStack(MekanismFluids.Ethene, 100),
|
||||
new ItemStack(MekanismItems.Substrate, 8), new GasStack(MekanismFluids.Oxygen, 10), 200, 400);
|
||||
}
|
||||
|
||||
//Solar Neutron Activator Recipes
|
||||
if (MekanismConfig.current().general.machinesManager.isEnabled(MachineType.SOLAR_NEUTRON_ACTIVATOR)) {
|
||||
RecipeHandler.addSolarNeutronRecipe(new GasStack(MekanismFluids.Lithium, 1),
|
||||
new GasStack(MekanismFluids.Tritium, 1));
|
||||
RecipeHandler.addSolarNeutronRecipe(new GasStack(MekanismFluids.Lithium, 1), new GasStack(MekanismFluids.Tritium, 1));
|
||||
}
|
||||
|
||||
//Infuse objects
|
||||
InfuseRegistry.registerInfuseObject(new ItemStack(MekanismItems.BioFuel),
|
||||
new InfuseObject(InfuseRegistry.get("BIO"), 5));
|
||||
InfuseRegistry.registerInfuseObject(new ItemStack(Items.COAL, 1, 0),
|
||||
new InfuseObject(InfuseRegistry.get("CARBON"), 10));
|
||||
InfuseRegistry.registerInfuseObject(new ItemStack(Items.COAL, 1, 1),
|
||||
new InfuseObject(InfuseRegistry.get("CARBON"), 20));
|
||||
InfuseRegistry.registerInfuseObject(new ItemStack(Blocks.COAL_BLOCK, 1, 0),
|
||||
new InfuseObject(InfuseRegistry.get("CARBON"), 90));
|
||||
InfuseRegistry.registerInfuseObject(new ItemStack(MekanismBlocks.BasicBlock, 1, 3),
|
||||
new InfuseObject(InfuseRegistry.get("CARBON"), 180));
|
||||
InfuseRegistry.registerInfuseObject(new ItemStack(MekanismItems.CompressedCarbon),
|
||||
new InfuseObject(InfuseRegistry.get("CARBON"), 80));
|
||||
InfuseRegistry.registerInfuseObject(new ItemStack(Items.REDSTONE),
|
||||
new InfuseObject(InfuseRegistry.get("REDSTONE"), 10));
|
||||
InfuseRegistry.registerInfuseObject(new ItemStack(Blocks.REDSTONE_BLOCK),
|
||||
new InfuseObject(InfuseRegistry.get("REDSTONE"), 90));
|
||||
InfuseRegistry.registerInfuseObject(new ItemStack(MekanismItems.CompressedRedstone),
|
||||
new InfuseObject(InfuseRegistry.get("REDSTONE"), 80));
|
||||
InfuseRegistry.registerInfuseObject(new ItemStack(Blocks.RED_MUSHROOM),
|
||||
new InfuseObject(InfuseRegistry.get("FUNGI"), 10));
|
||||
InfuseRegistry.registerInfuseObject(new ItemStack(Blocks.BROWN_MUSHROOM),
|
||||
new InfuseObject(InfuseRegistry.get("FUNGI"), 10));
|
||||
InfuseRegistry.registerInfuseObject(new ItemStack(MekanismItems.CompressedDiamond),
|
||||
new InfuseObject(InfuseRegistry.get("DIAMOND"), 80));
|
||||
InfuseRegistry.registerInfuseObject(new ItemStack(MekanismItems.CompressedObsidian),
|
||||
new InfuseObject(InfuseRegistry.get("OBSIDIAN"), 80));
|
||||
InfuseRegistry.registerInfuseObject(new ItemStack(MekanismItems.BioFuel), new InfuseObject(InfuseRegistry.get("BIO"), 5));
|
||||
InfuseRegistry.registerInfuseObject(new ItemStack(Items.COAL, 1, 0), new InfuseObject(InfuseRegistry.get("CARBON"), 10));
|
||||
InfuseRegistry.registerInfuseObject(new ItemStack(Items.COAL, 1, 1), new InfuseObject(InfuseRegistry.get("CARBON"), 20));
|
||||
InfuseRegistry.registerInfuseObject(new ItemStack(Blocks.COAL_BLOCK, 1, 0), new InfuseObject(InfuseRegistry.get("CARBON"), 90));
|
||||
InfuseRegistry.registerInfuseObject(new ItemStack(MekanismBlocks.BasicBlock, 1, 3), new InfuseObject(InfuseRegistry.get("CARBON"), 180));
|
||||
InfuseRegistry.registerInfuseObject(new ItemStack(MekanismItems.CompressedCarbon), new InfuseObject(InfuseRegistry.get("CARBON"), 80));
|
||||
InfuseRegistry.registerInfuseObject(new ItemStack(Items.REDSTONE), new InfuseObject(InfuseRegistry.get("REDSTONE"), 10));
|
||||
InfuseRegistry.registerInfuseObject(new ItemStack(Blocks.REDSTONE_BLOCK), new InfuseObject(InfuseRegistry.get("REDSTONE"), 90));
|
||||
InfuseRegistry.registerInfuseObject(new ItemStack(MekanismItems.CompressedRedstone), new InfuseObject(InfuseRegistry.get("REDSTONE"), 80));
|
||||
InfuseRegistry.registerInfuseObject(new ItemStack(Blocks.RED_MUSHROOM), new InfuseObject(InfuseRegistry.get("FUNGI"), 10));
|
||||
InfuseRegistry.registerInfuseObject(new ItemStack(Blocks.BROWN_MUSHROOM), new InfuseObject(InfuseRegistry.get("FUNGI"), 10));
|
||||
InfuseRegistry.registerInfuseObject(new ItemStack(MekanismItems.CompressedDiamond), new InfuseObject(InfuseRegistry.get("DIAMOND"), 80));
|
||||
InfuseRegistry.registerInfuseObject(new ItemStack(MekanismItems.CompressedObsidian), new InfuseObject(InfuseRegistry.get("OBSIDIAN"), 80));
|
||||
|
||||
//Fuel Gases
|
||||
FuelHandler.addGas(MekanismFluids.Hydrogen, 1, MekanismConfig.current().general.FROM_H2.val());
|
||||
@@ -676,8 +550,7 @@ public class Mekanism {
|
||||
*/
|
||||
public static void registerOreDict() {
|
||||
//Add specific items to ore dictionary for recipe usage in other mods.
|
||||
OreDictionary.registerOre("universalCable",
|
||||
MekanismUtils.getTransmitter(TransmitterType.UNIVERSAL_CABLE, BaseTier.BASIC, 1));
|
||||
OreDictionary.registerOre("universalCable", MekanismUtils.getTransmitter(TransmitterType.UNIVERSAL_CABLE, BaseTier.BASIC, 1));
|
||||
OreDictionary.registerOre("battery", MekanismItems.EnergyTablet.getUnchargedItem());
|
||||
OreDictionary.registerOre("pulpWood", MekanismItems.Sawdust);
|
||||
OreDictionary.registerOre("dustWood", MekanismItems.Sawdust);
|
||||
@@ -728,16 +601,11 @@ public class Mekanism {
|
||||
OreDictionary.registerOre("blockTin", new ItemStack(MekanismBlocks.BasicBlock, 1, 13));
|
||||
|
||||
for (Resource resource : Resource.values()) {
|
||||
OreDictionary
|
||||
.registerOre("dust" + resource.getName(), new ItemStack(MekanismItems.Dust, 1, resource.ordinal()));
|
||||
OreDictionary.registerOre("dustDirty" + resource.getName(),
|
||||
new ItemStack(MekanismItems.DirtyDust, 1, resource.ordinal()));
|
||||
OreDictionary
|
||||
.registerOre("clump" + resource.getName(), new ItemStack(MekanismItems.Clump, 1, resource.ordinal()));
|
||||
OreDictionary
|
||||
.registerOre("shard" + resource.getName(), new ItemStack(MekanismItems.Shard, 1, resource.ordinal()));
|
||||
OreDictionary.registerOre("crystal" + resource.getName(),
|
||||
new ItemStack(MekanismItems.Crystal, 1, resource.ordinal()));
|
||||
OreDictionary.registerOre("dust" + resource.getName(), new ItemStack(MekanismItems.Dust, 1, resource.ordinal()));
|
||||
OreDictionary.registerOre("dustDirty" + resource.getName(), new ItemStack(MekanismItems.DirtyDust, 1, resource.ordinal()));
|
||||
OreDictionary.registerOre("clump" + resource.getName(), new ItemStack(MekanismItems.Clump, 1, resource.ordinal()));
|
||||
OreDictionary.registerOre("shard" + resource.getName(), new ItemStack(MekanismItems.Shard, 1, resource.ordinal()));
|
||||
OreDictionary.registerOre("crystal" + resource.getName(), new ItemStack(MekanismItems.Crystal, 1, resource.ordinal()));
|
||||
}
|
||||
|
||||
OreDictionary.registerOre("oreOsmium", new ItemStack(MekanismBlocks.OreBlock, 1, 0));
|
||||
@@ -917,24 +785,13 @@ public class Mekanism {
|
||||
Mekanism.proxy.preInit();
|
||||
|
||||
//Register infuses
|
||||
InfuseRegistry.registerInfuseType(
|
||||
new InfuseType("CARBON", new ResourceLocation("mekanism:blocks/infuse/Carbon"))
|
||||
.setTranslationKey("carbon"));
|
||||
InfuseRegistry.registerInfuseType(
|
||||
new InfuseType("TIN", new ResourceLocation("mekanism:blocks/infuse/Tin")).setTranslationKey("tin"));
|
||||
InfuseRegistry.registerInfuseType(
|
||||
new InfuseType("DIAMOND", new ResourceLocation("mekanism:blocks/infuse/Diamond"))
|
||||
.setTranslationKey("diamond"));
|
||||
InfuseRegistry.registerInfuseType(
|
||||
new InfuseType("REDSTONE", new ResourceLocation("mekanism:blocks/infuse/Redstone"))
|
||||
.setTranslationKey("redstone"));
|
||||
InfuseRegistry.registerInfuseType(
|
||||
new InfuseType("FUNGI", new ResourceLocation("mekanism:blocks/infuse/Fungi")).setTranslationKey("fungi"));
|
||||
InfuseRegistry.registerInfuseType(
|
||||
new InfuseType("BIO", new ResourceLocation("mekanism:blocks/infuse/Bio")).setTranslationKey("bio"));
|
||||
InfuseRegistry.registerInfuseType(
|
||||
new InfuseType("OBSIDIAN", new ResourceLocation("mekanism:blocks/infuse/Obsidian"))
|
||||
.setTranslationKey("obsidian"));
|
||||
InfuseRegistry.registerInfuseType(new InfuseType("CARBON", new ResourceLocation("mekanism:blocks/infuse/Carbon")).setTranslationKey("carbon"));
|
||||
InfuseRegistry.registerInfuseType(new InfuseType("TIN", new ResourceLocation("mekanism:blocks/infuse/Tin")).setTranslationKey("tin"));
|
||||
InfuseRegistry.registerInfuseType(new InfuseType("DIAMOND", new ResourceLocation("mekanism:blocks/infuse/Diamond")).setTranslationKey("diamond"));
|
||||
InfuseRegistry.registerInfuseType(new InfuseType("REDSTONE", new ResourceLocation("mekanism:blocks/infuse/Redstone")).setTranslationKey("redstone"));
|
||||
InfuseRegistry.registerInfuseType(new InfuseType("FUNGI", new ResourceLocation("mekanism:blocks/infuse/Fungi")).setTranslationKey("fungi"));
|
||||
InfuseRegistry.registerInfuseType(new InfuseType("BIO", new ResourceLocation("mekanism:blocks/infuse/Bio")).setTranslationKey("bio"));
|
||||
InfuseRegistry.registerInfuseType(new InfuseType("OBSIDIAN", new ResourceLocation("mekanism:blocks/infuse/Obsidian")).setTranslationKey("obsidian"));
|
||||
|
||||
Capabilities.registerCapabilities();
|
||||
|
||||
@@ -976,8 +833,7 @@ public class Mekanism {
|
||||
//Add baby skeleton spawner
|
||||
if (MekanismConfig.current().general.spawnBabySkeletons.val()) {
|
||||
for (Biome biome : BiomeProvider.allowedBiomes) {
|
||||
if (biome.getSpawnableList(EnumCreatureType.MONSTER) != null
|
||||
&& biome.getSpawnableList(EnumCreatureType.MONSTER).size() > 0) {
|
||||
if (biome.getSpawnableList(EnumCreatureType.MONSTER) != null && biome.getSpawnableList(EnumCreatureType.MONSTER).size() > 0) {
|
||||
EntityRegistry.addSpawn(EntityBabySkeleton.class, 40, 1, 3, EnumCreatureType.MONSTER, biome);
|
||||
}
|
||||
}
|
||||
@@ -1003,14 +859,12 @@ public class Mekanism {
|
||||
|
||||
@EventHandler
|
||||
public void postInit(FMLPostInitializationEvent event) {
|
||||
logger.info(
|
||||
"Fake player readout: UUID = " + gameProfile.getId().toString() + ", name = " + gameProfile.getName());
|
||||
logger.info("Fake player readout: UUID = " + gameProfile.getId().toString() + ", name = " + gameProfile.getName());
|
||||
|
||||
// Add all furnace recipes to the energized smelter
|
||||
// Must happen after CraftTweaker for vanilla stuff has run.
|
||||
for (Map.Entry<ItemStack, ItemStack> entry : FurnaceRecipes.instance().getSmeltingList().entrySet()) {
|
||||
SmeltingRecipe recipe = new SmeltingRecipe(new ItemStackInput(entry.getKey()),
|
||||
new ItemStackOutput(entry.getValue()));
|
||||
SmeltingRecipe recipe = new SmeltingRecipe(new ItemStackInput(entry.getKey()), new ItemStackOutput(entry.getValue()));
|
||||
Recipe.ENERGIZED_SMELTER.put(recipe);
|
||||
}
|
||||
|
||||
@@ -1024,8 +878,7 @@ public class Mekanism {
|
||||
@SubscribeEvent
|
||||
public void onEnergyTransferred(EnergyTransferEvent event) {
|
||||
try {
|
||||
packetHandler.sendToReceivers(new TransmitterUpdateMessage(PacketType.ENERGY,
|
||||
event.energyNetwork.firstTransmitter().coord(), event.power),
|
||||
packetHandler.sendToReceivers(new TransmitterUpdateMessage(PacketType.ENERGY, event.energyNetwork.firstTransmitter().coord(), event.power),
|
||||
event.energyNetwork.getPacketRange());
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
@@ -1034,9 +887,8 @@ public class Mekanism {
|
||||
@SubscribeEvent
|
||||
public void onGasTransferred(GasTransferEvent event) {
|
||||
try {
|
||||
packetHandler.sendToReceivers(
|
||||
new TransmitterUpdateMessage(PacketType.GAS, event.gasNetwork.firstTransmitter().coord(),
|
||||
event.transferType, event.didTransfer), event.gasNetwork.getPacketRange());
|
||||
packetHandler.sendToReceivers(new TransmitterUpdateMessage(PacketType.GAS, event.gasNetwork.firstTransmitter().coord(), event.transferType, event.didTransfer),
|
||||
event.gasNetwork.getPacketRange());
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
}
|
||||
@@ -1044,8 +896,7 @@ public class Mekanism {
|
||||
@SubscribeEvent
|
||||
public void onLiquidTransferred(FluidTransferEvent event) {
|
||||
try {
|
||||
packetHandler.sendToReceivers(new TransmitterUpdateMessage(PacketType.FLUID,
|
||||
event.fluidNetwork.firstTransmitter().coord(), event.fluidType, event.didTransfer),
|
||||
packetHandler.sendToReceivers(new TransmitterUpdateMessage(PacketType.FLUID, event.fluidNetwork.firstTransmitter().coord(), event.fluidType, event.didTransfer),
|
||||
event.fluidNetwork.getPacketRange());
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
@@ -1054,9 +905,8 @@ public class Mekanism {
|
||||
@SubscribeEvent
|
||||
public void onTransmittersAddedEvent(TransmittersAddedEvent event) {
|
||||
try {
|
||||
packetHandler.sendToReceivers(
|
||||
new TransmitterUpdateMessage(PacketType.UPDATE, event.network.firstTransmitter().coord(),
|
||||
event.newNetwork, event.newTransmitters), event.network.getPacketRange());
|
||||
packetHandler.sendToReceivers(new TransmitterUpdateMessage(PacketType.UPDATE, event.network.firstTransmitter().coord(), event.newNetwork, event.newTransmitters),
|
||||
event.network.getPacketRange());
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
}
|
||||
@@ -1143,13 +993,10 @@ public class Mekanism {
|
||||
if (!event.getWorld().isRemote) {
|
||||
if (MekanismConfig.current().general.enableWorldRegeneration.val()) {
|
||||
NBTTagCompound loadData = event.getData();
|
||||
|
||||
if (loadData.getInteger("MekanismWorldGen") == baseWorldGenVersion
|
||||
&& loadData.getInteger("MekanismUserWorldGen") == MekanismConfig
|
||||
.current().general.userWorldGenVersion.val()) {
|
||||
if (loadData.getInteger("MekanismWorldGen") == baseWorldGenVersion &&
|
||||
loadData.getInteger("MekanismUserWorldGen") == MekanismConfig.current().general.userWorldGenVersion.val()) {
|
||||
return;
|
||||
}
|
||||
|
||||
ChunkPos coordPair = event.getChunk().getPos();
|
||||
worldTickHandler.addRegenChunk(event.getWorld().provider.getDimension(), coordPair);
|
||||
}
|
||||
@@ -1177,4 +1024,4 @@ public class Mekanism {
|
||||
MekFakePlayer.releaseInstance(event.getWorld());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user