diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2016-05-15 11:33:32 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2016-05-15 11:33:32 +1000 |
commit | 6d4c465858fe1a199628de86edff1152f97faa52 (patch) | |
tree | 3b6b27cbff7c245308306910f9e7b9be22eb24f4 /src/Java/miscutil/core/common/compat | |
parent | 1d5ca1b761e2fba9e1ba63655da738c7a4cb8137 (diff) | |
download | GT5-Unofficial-6d4c465858fe1a199628de86edff1152f97faa52.tar.gz GT5-Unofficial-6d4c465858fe1a199628de86edff1152f97faa52.tar.bz2 GT5-Unofficial-6d4c465858fe1a199628de86edff1152f97faa52.zip |
First steps towards the Industrial Coking Oven, plus some other misc fixes.
SteamCondenser doesn't show it's tickTime in GUI anymore.
Added compat for some IC2 cables and TC/FB shards.
Added compat for CompactWindmills.
Implemented compat handler for OreDicting/Recipe handling
Diffstat (limited to 'src/Java/miscutil/core/common/compat')
3 files changed, 131 insertions, 0 deletions
diff --git a/src/Java/miscutil/core/common/compat/COMPAT_CompactWindmills.java b/src/Java/miscutil/core/common/compat/COMPAT_CompactWindmills.java new file mode 100644 index 0000000000..98988f25c0 --- /dev/null +++ b/src/Java/miscutil/core/common/compat/COMPAT_CompactWindmills.java @@ -0,0 +1,20 @@ +package miscutil.core.common.compat; + +import static miscutil.core.common.compat.COMPAT_HANDLER.RemoveRecipeQueue; + + + +public class COMPAT_CompactWindmills { + + public static void OreDict(){ + run(); + } + + private static final void run(){ + RemoveRecipeQueue.add("CompactWindmills:WOOL"); + RemoveRecipeQueue.add("CompactWindmills:WOOD"); + RemoveRecipeQueue.add("CompactWindmills:ALLOY"); + RemoveRecipeQueue.add("CompactWindmills:CARBON"); + RemoveRecipeQueue.add("CompactWindmills:IRIDIUM"); + } +} diff --git a/src/Java/miscutil/core/common/compat/COMPAT_HANDLER.java b/src/Java/miscutil/core/common/compat/COMPAT_HANDLER.java new file mode 100644 index 0000000000..7c39859a1a --- /dev/null +++ b/src/Java/miscutil/core/common/compat/COMPAT_HANDLER.java @@ -0,0 +1,63 @@ +package miscutil.core.common.compat; + +import static miscutil.core.util.UtilsItems.removeCraftingRecipe; + +import java.util.LinkedList; +import java.util.Queue; + +import miscutil.core.lib.LoadedMods; + +public class COMPAT_HANDLER { + + public static Queue<Object> RemoveRecipeQueue = new LinkedList<Object>(); + public static Queue<Object> AddRecipeQueue = new LinkedList<Object>(); + + //InterMod + public static void run(){ + + if (LoadedMods.Big_Reactors){ + COMPAT_BigReactors.OreDict(); + } + if (LoadedMods.EnderIO){ + COMPAT_EnderIO.OreDict(); + } + if (LoadedMods.MorePlanets){ + COMPAT_MorePlanets.OreDict(); + } + if (LoadedMods.Simply_Jetpacks){ + COMPAT_SimplyJetpacks.OreDict(); + } + if (LoadedMods.RFTools){ + COMPAT_RFTools.OreDict(); + } + if (LoadedMods.Thaumcraft){ + COMPAT_Thaumcraft.OreDict(); + } + if (LoadedMods.Extra_Utils){ + COMPAT_ExtraUtils.OreDict(); + } + if (LoadedMods.PneumaticCraft){ + COMPAT_PneumaticCraft.OreDict(); + } + if (LoadedMods.CompactWindmills){ + COMPAT_CompactWindmills.OreDict(); + } + if (LoadedMods.IndustrialCraft2){ + COMPAT_IC2.OreDict(); + } + } + + public static void ServerStartedEvent(){ + //Removal of Recipes + for(Object item : RemoveRecipeQueue){ + removeCraftingRecipe(item); + } + } + + public static void ServerStartedEvent_RECIPES(){ + //Remoal Recipes + for(Object item : AddRecipeQueue){ + removeCraftingRecipe(item); + } + } +} diff --git a/src/Java/miscutil/core/common/compat/COMPAT_IC2.java b/src/Java/miscutil/core/common/compat/COMPAT_IC2.java new file mode 100644 index 0000000000..50daca16ce --- /dev/null +++ b/src/Java/miscutil/core/common/compat/COMPAT_IC2.java @@ -0,0 +1,48 @@ +package miscutil.core.common.compat; + +import static miscutil.core.common.compat.COMPAT_HANDLER.RemoveRecipeQueue; +import miscutil.core.util.UtilsItems; +import net.minecraft.item.ItemStack; + + +public class COMPAT_IC2 { + + private static ItemStack temp_1; + private static ItemStack temp_2; + private static ItemStack temp_3; + private static ItemStack temp_4; + private static ItemStack temp_5; + + + + public static void OreDict(){ + //Get ItemStacks for results + temp_1 = UtilsItems.getItemStack("IC2:itemCropnalyzer", 1); + temp_2 = UtilsItems.getItemStack("IC2:itemSolarHelmet", 1); + run(); + } + + private static final void run(){ + //Fuck these right off. + RemoveRecipeQueue.add("IC2:itemCable"); + RemoveRecipeQueue.add("IC2:itemCable:1"); + RemoveRecipeQueue.add("IC2:itemCable:2"); + RemoveRecipeQueue.add("IC2:itemCable:3"); + RemoveRecipeQueue.add("IC2:itemCable:5"); + RemoveRecipeQueue.add("IC2:itemCable:6"); + RemoveRecipeQueue.add("IC2:itemCable:10"); + RemoveRecipeQueue.add("IC2:itemCable:13"); + + RemoveRecipeQueue.add(temp_1); + UtilsItems.recipeBuilder("ore:craftingWireCopper", "ore:craftingWireCopper", null, + "minecraft:redstone", "minecraft:glass", "minecraft:redstone", + "minecraft:redstone", "ore:circuitBasic", "minecraft:redstone", + temp_1); + RemoveRecipeQueue.add(temp_2); + UtilsItems.recipeBuilder("ore:plateIron", "ore:plateIron", "ore:plateIron", + "ore:plateIron", "gregtech:gt.metaitem.01:32750", "ore:plateIron", + "ore:craftingWireCopper", "ore:craftingWireCopper", "ore:craftingWireCopper", + temp_2); + } + +} |