aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/lib
diff options
context:
space:
mode:
authordraknyte1 <draknyte1@hotmail.com>2016-11-02 15:49:00 +1000
committerdraknyte1 <draknyte1@hotmail.com>2016-11-02 15:49:00 +1000
commitd594987b2cfdefa447ee585a68d4a4bef4ece3a5 (patch)
tree814813fc14ce5dcd8dfa7aeaecd939ac42d12877 /src/Java/gtPlusPlus/core/lib
parent26292158575a0f0acb51ae50715887f871d2b5a0 (diff)
parent49a520da5da01594b5c42652d9db5c7c04e49ad8 (diff)
downloadGT5-Unofficial-d594987b2cfdefa447ee585a68d4a4bef4ece3a5.tar.gz
GT5-Unofficial-d594987b2cfdefa447ee585a68d4a4bef4ece3a5.tar.bz2
GT5-Unofficial-d594987b2cfdefa447ee585a68d4a4bef4ece3a5.zip
Merge branch 'master' of https://github.com/draknyte1/GTplusplus
Diffstat (limited to 'src/Java/gtPlusPlus/core/lib')
-rw-r--r--src/Java/gtPlusPlus/core/lib/CORE.java43
-rw-r--r--src/Java/gtPlusPlus/core/lib/LoadedMods.java26
-rw-r--r--src/Java/gtPlusPlus/core/lib/MaterialInfo.java181
3 files changed, 53 insertions, 197 deletions
diff --git a/src/Java/gtPlusPlus/core/lib/CORE.java b/src/Java/gtPlusPlus/core/lib/CORE.java
index d8798f707b..68bf2ec445 100644
--- a/src/Java/gtPlusPlus/core/lib/CORE.java
+++ b/src/Java/gtPlusPlus/core/lib/CORE.java
@@ -6,22 +6,19 @@ import gtPlusPlus.core.util.networking.NetworkUtils;
import gtPlusPlus.xmod.gregtech.api.enums.GregtechOrePrefixes.GT_Materials;
import gtPlusPlus.xmod.gregtech.api.interfaces.internal.IGregtech_RecipeAdder;
import gtPlusPlus.xmod.gregtech.common.Meta_GT_Proxy;
+import gtPlusPlus.xmod.gregtech.common.tileentities.automation.GT_MetaTileEntity_TesseractGenerator;
-import java.util.ArrayList;
-import java.util.List;
+import java.util.HashMap;
import java.util.Map;
-import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.util.EnumChatFormatting;
import net.minecraftforge.common.config.Configuration;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
public class CORE {
public static final String name = "GT++";
public static final String MODID = "miscutils";
- public static final String VERSION = "1.4.8.2-prerelease";
+ public static final String VERSION = "1.4.9-release";
public static final String MASTER_VERSION = NetworkUtils.getContentFromURL("https://raw.githubusercontent.com/draknyte1/GTplusplus/master/Recommended.txt").toLowerCase();
public static boolean isModUpToDate = Utils.isModUpToDate();
public static boolean DEBUG = false;
@@ -34,10 +31,7 @@ public class CORE {
@Deprecated
public static IGregtech_RecipeAdder sRecipeAdder;
public static GregtechRecipe GT_Recipe = new GregtechRecipe();
-
- @SideOnly(Side.CLIENT)
- public static IIconRegister GT_BlockIcons, GT_ItemIcons;
- public static List<Runnable> GT_BlockIconload = new ArrayList<Runnable>();
+
public static Configuration Config;
public static final String GT_Tooltip = "Added by: " + EnumChatFormatting.DARK_GREEN+"Alkalus "+EnumChatFormatting.GRAY+"- "+EnumChatFormatting.RED+"[GT++]";
public static final String GT_Tooltip_Radioactive = EnumChatFormatting.GRAY+"Warning: "+EnumChatFormatting.GREEN+"Radioactive! "+EnumChatFormatting.GOLD+" Avoid direct handling without hazmat protection.";
@@ -47,6 +41,9 @@ public class CORE {
* A List containing all the Materials, which are somehow in use by GT and therefor receive a specific Set of Items.
*/
public static final GT_Materials[] sMU_GeneratedMaterials = new GT_Materials[1000];
+
+ //Tesseract map
+ public static final Map<Integer, GT_MetaTileEntity_TesseractGenerator> sTesseractGenerators = new HashMap<Integer, GT_MetaTileEntity_TesseractGenerator>();
//GUIS
public enum GUI_ENUM
@@ -80,11 +77,8 @@ public class CORE {
//Debug
public static boolean disableEnderIOIntegration = false;
- public static boolean disableStaballoyBlastFurnaceRecipe = false;
- public static boolean disableCentrifugeFormation = false;
//Machine Related
- public static boolean enableSolarGenerators = false;
public static boolean enableAlternativeBatteryAlloy = false;
public static boolean enableThaumcraftShardUnification = false;
public static boolean disableIC2Recipes = false;
@@ -93,6 +87,29 @@ public class CORE {
//Feature Related
public static boolean enableCustomAlvearyBlocks = false;
+ //Single Block Machines
+ public static boolean enableMachine_SolarGenerators = false;
+ public static boolean enableMachine_Dehydrators = true;
+ public static boolean enableMachine_SteamConverter = true;
+ public static boolean enableMachine_FluidTanks = true;
+ public static boolean enableMachine_RocketEngines = true;
+ public static boolean enableMachine_GeothermalEngines = true;
+ public static boolean enableCustom_Pipes = true;
+ public static boolean enableCustom_Cables = true;
+
+ //Multiblocks
+ public static boolean enabledMultiblock_AlloyBlastSmelter = true;
+ public static boolean enabledMultiblock_IndustrialCentrifuge = true;
+ public static boolean enabledMultiblock_IndustrialCokeOven = true;
+ public static boolean enabledMultiblock_IndustrialElectrolyzer = true;
+ public static boolean enabledMultiblock_IndustrialMacerationStack = true;
+ public static boolean enabledMultiblock_IndustrialPlatePress = true;
+ public static boolean enabledMultiblock_IndustrialWireMill = true;
+ public static boolean enabledMultiblock_IronBlastFurnace = true;
+ public static boolean enabledMultiblock_MatterFabricator = true;
+ public static boolean enabledMultiblock_MultiTank = true;
+ public static boolean enabledMultiblock_PowerSubstation = true;
+
}
}
diff --git a/src/Java/gtPlusPlus/core/lib/LoadedMods.java b/src/Java/gtPlusPlus/core/lib/LoadedMods.java
index ad7ab7b2c9..440f72d2c8 100644
--- a/src/Java/gtPlusPlus/core/lib/LoadedMods.java
+++ b/src/Java/gtPlusPlus/core/lib/LoadedMods.java
@@ -34,6 +34,8 @@ public class LoadedMods {
public static boolean MiscUtils = true; //Dummy For MetaData Lookups in MT Wrapper
public static boolean ThermalFoundation = false;
public static boolean IHL = false;
+ public static boolean OpenComputers = false; //OpenComputers
+ public static boolean Computronics = false; //computronics
@@ -119,9 +121,17 @@ public class LoadedMods {
totalMods++;
}
if (Loader.isModLoaded("Growthcraft") == true){
- Growthcraft = true;
- Utils.LOG_INFO("Components enabled for: Growthcraft");
- totalMods++;
+ Utils.LOG_INFO("Growthcraft Version: "+getModVersion("Growthcraft"));
+ if (getModVersion("Growthcraft").equals("1.7.10-2.3.1")){
+ //Load Growthcraft Compat
+ Growthcraft = true;
+ Utils.LOG_INFO("Components enabled for: Growthcraft");
+ totalMods++;
+ }
+ else {
+ Growthcraft = false;
+ Utils.LOG_INFO("Growthcraft found, but the version was too new. I will update GC support eventually.");
+ }
}
if (Loader.isModLoaded("CoFHCore") == true){
CoFHCore = true;
@@ -173,6 +183,16 @@ public class LoadedMods {
Utils.LOG_INFO("Components enabled for: Baubles");
totalMods++;
}
+ if (Loader.isModLoaded("OpenComputers") == true){
+ OpenComputers = true;
+ Utils.LOG_INFO("Components enabled for: OpenComputers");
+ totalMods++;
+ }
+ if (Loader.isModLoaded("computronics") == true){
+ Computronics = true;
+ Utils.LOG_INFO("Components enabled for: Computronics");
+ totalMods++;
+ }
Utils.LOG_INFO("Content found for "+totalMods+" mods");
diff --git a/src/Java/gtPlusPlus/core/lib/MaterialInfo.java b/src/Java/gtPlusPlus/core/lib/MaterialInfo.java
deleted file mode 100644
index 455becc2d1..0000000000
--- a/src/Java/gtPlusPlus/core/lib/MaterialInfo.java
+++ /dev/null
@@ -1,181 +0,0 @@
-package gtPlusPlus.core.lib;
-
-import static gtPlusPlus.core.lib.CORE.noItem;
-import static gtPlusPlus.core.util.item.UtilsItems.getItemStackOfAmountFromOreDict;
-import gregtech.api.enums.Dyes;
-import gregtech.api.enums.Materials;
-import gregtech.api.enums.TextureSet;
-import gtPlusPlus.GTplusplus;
-import gtPlusPlus.core.util.materials.MaterialUtils;
-
-import java.util.List;
-
-import net.minecraft.item.ItemStack;
-
-public enum MaterialInfo {
-
- ENERGYCRYSTAL(GTplusplus.randomDust_A, 8, GTplusplus.randomDust_B, 8, GTplusplus.randomDust_C, 8, GTplusplus.randomDust_D, 8, "dustEnergyCrystal", 1, noItem, 0),
-
- BLOODSTEEL(noItem, 0, noItem, 0, noItem, 0, noItem, 0, noItem, 0, noItem, 0),
-
- STABALLOY("dustTitanium", 1, "dustUranium", 8, noItem, 0, noItem, 0, "dustStaballoy", 1, noItem, 0),
-
- TANTALLOY60("dustTungsten", 1, "dustTantalum", 8, "dustTinyTitanium", 5, noItem, 0, "dustTantalloy60", 1, noItem, 0),
-
- TANTALLOY61("dustTungsten", 1, "dustSmallTitanium", 3, "dustSmallYttrium", 2, "dustTantalum", 9, "dustTantalloy61", 1, noItem, 0),
-
- QUANTUM(noItem, 0, noItem, 0, noItem, 0, noItem, 0, noItem, 0, noItem, 0),
-
- TUMBAGA("dustGold", 6, "dustCopper", 3, noItem, 0, noItem, 0, "dustTumbaga", 2, noItem, 0),
-
- POTIN("dustBronze", 3, "dustTin", 2, "dustLead", 4, noItem, 0, "dustPotin", 3, noItem, 0),
-
- BEDROCKIUM(noItem, 0, noItem, 0, noItem, 0, noItem, 0, noItem, 0, noItem, 0),
-
- INCONEL625("dustNickel", 5, "dustChrome", 2, "dustWroughtIron", 1, "dustMolybdenum", 1, "dustInconel625", 4, "dustTinyDarkAsh", 1),
-
- INCONEL690("dustNickel", 5, "dustChrome", 2, "dustNiobium", 1, "dustMolybdenum", 1, "dustInconel690", 2, "dustTinyDarkAsh", 1),
-
- INCONEL792("dustNickel", 5, "dustChrome", 1, "dustAluminium", 2, "dustNiobium", 1, "dustInconel792", 2, "dustTinyDarkAsh", 1),
-
- TUNGSTENCARBIDE("dustTungsten", 16, "dustCarbon", 16, noItem, 0, noItem, 0, "dustTungstenCarbide", 4, noItem, 0),
-
- SILICONCARBIDE("dustSilicon", 16, "dustCarbon", 16, noItem, 0, noItem, 0, "dustSiliconCarbide", 4, noItem, 0),
-
- ZERON100("dustChrome", 5, "dustSmallNickel", 6, "dustSmallMolybdenum", 3, "dustSteel", 14, "dustZeron100", 5, noItem, 0),
-
- MARAGING250("dustSteel", 4, "dustNickel", 2, "dustCobalt", 1, "dustTinyTitanium", 1, "dustMaragingSteel250", 6, noItem, 0),
-
- MARAGING300("dustSteel", 5, "dustNickel", 2, "dustCobalt", 2, "dustSmallTitanium", 1, "dustMaragingSteel300", 5, noItem, 0),
-
- MARAGING350("dustSteel", 6, "dustNickel", 3, "dustCobalt", 3, "dustTitanium", 1, "dustMaragingSteel350", 4, noItem, 0),
-
- STELLITE("dustCobalt", 4, "dustChrome", 4, "dustManganese", 2, "dustTitanium", 1, "dustStellite", 2, noItem, 0),
-
- TALONITE("dustCobalt", 4, "dustChrome", 4, "dustPhosphorus", 1, "dustMolybdenum", 1, "dustTalonite", 2, noItem, 0),
-
- HASTELLOY_W("dustSmallCobalt", 1, "dustSmallChrome", 4, "dustMolybdenum", 2, "dustNickel", 6, "dustHastelloyW", 2, noItem, 0),
-
- HASTELLOY_X("dustTinyCobalt", 6, "dustChrome", 2, "dustMolybdenum", 1, "dustNickel", 5, "dustHastelloyX", 2, noItem, 0),
-
- HASTELLOY_C276("dustSmallCobalt", 1, "dustSmallChrome", 14, "dustSmallMolybdenum", 14, "dustNickel", 5, "dustHastelloyC276", 2, noItem, 0),
-
- INCOLOY020("dustIron", 4, "dustChrome", 2, "dustTinyCarbon", 2, "dustSmallCopper", 4, "dustIncoloy020", 1, noItem, 0),
-
- INCOLOYDS("dustIron", 4, "dustChrome", 2, "dustTinyTitanium", 2, "dustSmallManganese", 1, "dustIncoloyDS", 1, noItem, 0),
-
- INCOLOYMA956("dustIron", 6, "dustChrome", 2, "dustSmallAluminium", 5, "dustTinyYttrium", 1, "dustIncoloyMA956", 1, noItem, 0),
-
- TANTALUMCARBIDE("dustTantalum", 4, "dustCarbon", 2, noItem, 0, noItem, 0, "dustTantalumCarbide", 1, noItem, 0),
-
- ZIRCONIUM(noItem, 0, noItem, 0, noItem, 0, noItem, 0, "dustZirconium", 1, noItem, 0),
-
- ZIRCONIUMCARBIDE("dustZirconium", 2, "dustCarbon", 2, noItem, 0, noItem, 0, "dustZirconiumCarbide", 1, noItem, 0),
-
- NIOMBIUMCARBIDE("dustNiobium", 2, "dustCarbon", 2, noItem, 0, noItem, 0, "dustNiobiumCarbide", 1, noItem, 0),
-
- HASTELLOY_N("dustIron", 1, "dustSmallChrome", 7, "dustSmallMolybdenum", 12, "dustNickel", 4, "dustHastelloyN", 1, noItem, 0),
-
- URANIUM233(noItem, 0, noItem, 0, noItem, 0, noItem, 0, noItem, 0, noItem, 0);
-
-
-
- private String input1;
- private String input2;
- private String input3;
- private String input4;
- private int inputAmount1;
- private int inputAmount2;
- private int inputAmount3;
- private int inputAmount4;
- private String out1;
- private String out2;
- private int outAmount1;
- private int outAmount2;
- public static List<String> nonLoadedInputs;
- public final Materials materialGT;
-
- private MaterialInfo (
- String inputMaterial_1, int amountIn1,
- String inputMaterial_2, int amountIn2,
- String inputMaterial_3, int amountIn3,
- String inputMaterial_4, int amountIn4,
- String output_A,int amount1, String output_B, int amount2)
- {
- this.input1 = inputMaterial_1;
- this.input2 = inputMaterial_2;
- this.input3 = inputMaterial_3;
- this.input4 = inputMaterial_4;
- this.inputAmount1 = amountIn1;
- this.inputAmount2 = amountIn2;
- this.inputAmount3 = amountIn3;
- this.inputAmount4 = amountIn4;
- this.out1 = output_A;
- this.out2 = output_B;
- this.outAmount1 = amount1;
- this.outAmount2 = amount2;
-
-
-
- this.materialGT = MaterialUtils.addGtMaterial(
- getMaterialName().toLowerCase(), TextureSet.SET_DULL, 2f, 512, 2,
- 1 | 2 | 16 | 32 | 64 | 128,
- 193, 211, 217, 0, getMaterialName(), 0, 0, 3015, 2150, true,
- false, 1, 2, 1, Dyes.dyeWhite, 2, null, null);
- }
-
- public ItemStack[] getInputs() {
- return new ItemStack[]{
- getStack(input1, inputAmount1),
- getStack(input2, inputAmount2),
- getStack(input3, inputAmount3),
- getStack(input4, inputAmount4)
- };
- }
-
- public ItemStack[] getOutputs() {
- return new ItemStack[]{
- getStack(out1, outAmount1),
- getStack(out2, outAmount2)
- };
- }
-
- public String[] getInputItemsAsList(){
- String[] inputArray = {
- input1,
- input2,
- input3,
- input4
- };
- return inputArray;
- }
-
- public int[] getInputStackSizesAsList(){
- int[] inputArray = {
- inputAmount1,
- inputAmount2,
- inputAmount3,
- inputAmount4
- };
- return inputArray;
- }
-
- @SuppressWarnings("static-method")
- public ItemStack getStack(String i, int r){
- if (i == ""){
- return null;
- }
- ItemStack temp = getItemStackOfAmountFromOreDict(i,r);
- if (temp.getDisplayName().toLowerCase().contains("tell alkalus")){
- //temp = null;
- }
- return temp;
- }
-
- public String getMaterialName(){
- String x = this.name();
- return x;
- }
-
-
-}