aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Java/gtPlusPlus/GTplusplus.java11
-rw-r--r--src/Java/gtPlusPlus/GTplusplus_Secondary.java8
-rw-r--r--src/Java/gtPlusPlus/core/container/Container_FishTrap.java127
-rw-r--r--src/Java/gtPlusPlus/core/item/ModItems.java6
-rw-r--r--src/Java/gtPlusPlus/core/item/base/BaseItemComponent.java6
-rw-r--r--src/Java/gtPlusPlus/core/item/base/CoreItem.java20
-rw-r--r--src/Java/gtPlusPlus/core/material/Material.java64
-rw-r--r--src/Java/gtPlusPlus/core/material/gregtech/CustomGTMaterials.java95
-rw-r--r--src/Java/gtPlusPlus/core/recipe/RECIPES_MachineComponents.java16
-rw-r--r--src/Java/gtPlusPlus/core/recipe/RECIPES_Machines.java127
-rw-r--r--src/Java/gtPlusPlus/core/recipe/common/CI.java10
-rw-r--r--src/Java/gtPlusPlus/core/slots/SlotNoInput.java4
-rw-r--r--src/Java/gtPlusPlus/core/tileentities/general/TileEntityFishTrap.java108
-rw-r--r--src/Java/gtPlusPlus/core/util/Utils.java4
-rw-r--r--src/Java/gtPlusPlus/core/util/gregtech/material/MaterialBuilder.java254
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/HANDLER_GT.java13
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/api/util/GTPP_Config.java98
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/api/world/GTPP_Worldgen.java61
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/api/world/GTPP_Worldgen_Boulder.java76
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/api/world/GTPP_Worldgen_GT_Ore_Layer.java127
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/api/world/GTPP_Worldgen_Handler.java41
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/api/world/GTPP_Worldgen_Ore.java32
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/api/world/GTPP_Worldgen_Ore_Normal.java74
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/api/world/GT_OreVein_Object.java31
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/api/world/WorldGenUtils.java23
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMTE_NuclearReactor.java221
-rw-r--r--src/resources/assets/miscutils/textures/items/itemCircuitLFTR.pngbin0 -> 181 bytes
27 files changed, 1429 insertions, 228 deletions
diff --git a/src/Java/gtPlusPlus/GTplusplus.java b/src/Java/gtPlusPlus/GTplusplus.java
index 91efec62fb..bd79aeb764 100644
--- a/src/Java/gtPlusPlus/GTplusplus.java
+++ b/src/Java/gtPlusPlus/GTplusplus.java
@@ -20,6 +20,7 @@ import cpw.mods.fml.relauncher.IFMLLoadingPlugin.MCVersion;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import gregtech.api.enums.GT_Values;
+import gregtech.api.enums.Materials;
import gregtech.api.util.EmptyRecipeMap;
import gregtech.api.util.GT_Recipe;
import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
@@ -30,6 +31,7 @@ import gtPlusPlus.core.handler.Recipes.RegistrationHandler;
import gtPlusPlus.core.handler.events.LoginEventHandler;
import gtPlusPlus.core.item.general.RF2EU_Battery;
import gtPlusPlus.core.lib.CORE;
+import gtPlusPlus.core.material.gregtech.CustomGTMaterials;
import gtPlusPlus.core.util.Utils;
import gtPlusPlus.core.util.item.ItemUtils;
import gtPlusPlus.core.util.reflect.ReflectionUtils;
@@ -206,6 +208,11 @@ public class GTplusplus implements ActionListener {
FMLCommonHandler.instance().bus().register(new LoginEventHandler());
Utils.LOG_INFO("Login Handler Initialized");
+ //Early load materials
+ try {
+ CustomGTMaterials.run();
+ } catch (Throwable t){}
+
if (CORE.configSwitches.enableOldGTcircuits && CORE.MAIN_GREGTECH_5U_EXPERIMENTAL_FORK){
removeCircuitRecipeMap(); //Bye shitty recipes.
}
@@ -243,6 +250,10 @@ public class GTplusplus implements ActionListener {
this.dumpGtRecipeMap(Gregtech_Recipe_Map.sMatterFab2Recipes);
this.dumpGtRecipeMap(Gregtech_Recipe_Map.sAlloyBlastSmelterRecipes);
}
+
+ for (Materials s : gtPlusPlus.core.material.gregtech.CustomGTMaterials.Custom_GT_Materials){
+ Utils.LOG_INFO("Verification for New Material: "+s.mName);
+ }
// ~
//ReflectionUtils.becauseIWorkHard();
diff --git a/src/Java/gtPlusPlus/GTplusplus_Secondary.java b/src/Java/gtPlusPlus/GTplusplus_Secondary.java
index 057810955f..b71d770c0c 100644
--- a/src/Java/gtPlusPlus/GTplusplus_Secondary.java
+++ b/src/Java/gtPlusPlus/GTplusplus_Secondary.java
@@ -1,5 +1,6 @@
package gtPlusPlus;
+import java.io.File;
import java.util.Random;
import org.apache.logging.log4j.Level;
@@ -16,9 +17,12 @@ import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.core.util.Utils;
import gtPlusPlus.core.world.darkworld.Dimension_DarkWorld;
import gtPlusPlus.core.world.darkworld.biome.Biome_DarkWorld;
+import gtPlusPlus.xmod.gregtech.HANDLER_GT;
+import gtPlusPlus.xmod.gregtech.api.util.GTPP_Config;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import net.minecraft.world.chunk.IChunkProvider;
+import net.minecraftforge.common.config.Configuration;
@MCVersion(value = "1.7.10")
@ChildMod(parent = CORE.MODID, mod = @Mod(modid = "GT++DarkWorld",
@@ -64,6 +68,10 @@ public class GTplusplus_Secondary implements IFuelHandler, IWorldGenerator{
DarkWorld_Dimension.instance = GTplusplus.instance;
DarkWorld_Biome.preInit(event);
DarkWorld_Dimension.preInit(event);
+
+ //Load/Set Custom Ore Gen
+ HANDLER_GT.sCustomWorldgenFile = new GTPP_Config(new Configuration(new File(new File(event.getModConfigurationDirectory(), "GTplusplus"), "WorldGeneration.cfg")));
+
}
@EventHandler
diff --git a/src/Java/gtPlusPlus/core/container/Container_FishTrap.java b/src/Java/gtPlusPlus/core/container/Container_FishTrap.java
index 46b9a0c523..34cfdf9bf3 100644
--- a/src/Java/gtPlusPlus/core/container/Container_FishTrap.java
+++ b/src/Java/gtPlusPlus/core/container/Container_FishTrap.java
@@ -21,14 +21,15 @@ public class Container_FishTrap extends Container {
private final int posY;
private final int posZ;
-
- public static int StorageSlotNumber = 15; //Number of slots in storage area
- public static int InventorySlotNumber = 36; //Inventory Slots (Inventory and Hotbar)
- public static int FullSlotNumber = InventorySlotNumber + StorageSlotNumber; //All slots
+ public static int StorageSlotNumber = 15; // Number of slots in storage area
+ public static int InventorySlotNumber = 36; // Inventory Slots (Inventory
+ // and Hotbar)
+ public static int FullSlotNumber = InventorySlotNumber + StorageSlotNumber; // All
+ // slots
private final int[] slotStorage = new int[15];
- public Container_FishTrap(final InventoryPlayer inventory, final TileEntityFishTrap te){
+ public Container_FishTrap(final InventoryPlayer inventory, final TileEntityFishTrap te) {
this.tile_entity = te;
this.inventoryChest = te.getInventory();
@@ -39,120 +40,87 @@ public class Container_FishTrap extends Container {
this.posY = te.yCoord;
this.posZ = te.zCoord;
- int o=0;
+ int o = 0;
- //Storage Side
- for (var6 = 0; var6 < 3; ++var6)
- {
- for (var7 = 0; var7 < 5; ++var7)
- {
- //Utils.LOG_WARNING("Adding slots at var:"+(var7 + var6 * 4)+" x:"+(8 + var7 * 18)+" y:"+(7 + var6 * 18));
- this.addSlotToContainer(new SlotNoInput(this.inventoryChest, var7 + (var6 * 4), 36+ 8 + (var7 * 18), 8 + 7 + (var6 * 18)));
+ // Storage Side
+ for (var6 = 0; var6 < 3; var6++) {
+ for (var7 = 0; var7 < 5; var7++) {
this.slotStorage[o] = o;
- o++;
+ this.addSlotToContainer(new SlotNoInput(this.inventoryChest, o++, 44 + (var7 * 18), 15 + (var6 * 18)));
}
}
- o=0;
-
- //Player Inventory
- for (var6 = 0; var6 < 3; ++var6)
- {
- for (var7 = 0; var7 < 9; ++var7)
- {
+ // 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)));
}
}
- //Player Hotbar
- for (var6 = 0; var6 < 9; ++var6)
- {
+ // Player Hotbar
+ for (var6 = 0; var6 < 9; ++var6) {
this.addSlotToContainer(new Slot(inventory, var6, 8 + (var6 * 18), 142));
}
}
@Override
- public ItemStack slotClick(final int aSlotIndex, final int aMouseclick, final int aShifthold, final EntityPlayer aPlayer){
+ public ItemStack slotClick(final int aSlotIndex, final int aMouseclick, final int aShifthold,
+ final EntityPlayer aPlayer) {
- if (!aPlayer.worldObj.isRemote){
- if ((aSlotIndex == 999) || (aSlotIndex == -999)){
- //Utils.LOG_WARNING("??? - "+aSlotIndex);
+ if (!aPlayer.worldObj.isRemote) {
+ if ((aSlotIndex == 999) || (aSlotIndex == -999)) {
+ // Utils.LOG_WARNING("??? - "+aSlotIndex);
}
}
return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer);
}
-
-
-
-
@Override
- public void onContainerClosed(final EntityPlayer par1EntityPlayer){
+ public void onContainerClosed(final EntityPlayer par1EntityPlayer) {
super.onContainerClosed(par1EntityPlayer);
}
-
@Override
- public boolean canInteractWith(final EntityPlayer par1EntityPlayer){
- if (this.worldObj.getBlock(this.posX, this.posY, this.posZ) != ModBlocks.blockFishTrap){
+ public boolean canInteractWith(final EntityPlayer par1EntityPlayer) {
+ if (this.worldObj.getBlock(this.posX, this.posY, this.posZ) != ModBlocks.blockFishTrap) {
return false;
}
return par1EntityPlayer.getDistanceSq(this.posX + 0.5D, this.posY + 0.5D, this.posZ + 0.5D) <= 64D;
}
-
@Override
- public ItemStack transferStackInSlot(final EntityPlayer par1EntityPlayer, final int par2)
- {
+ public ItemStack transferStackInSlot(final EntityPlayer par1EntityPlayer, final int par2) {
ItemStack var3 = null;
- final Slot var4 = (Slot)this.inventorySlots.get(par2);
+ final Slot var4 = (Slot) this.inventorySlots.get(par2);
- if ((var4 != null) && var4.getHasStack())
- {
+ if ((var4 != null) && var4.getHasStack()) {
final ItemStack var5 = var4.getStack();
var3 = var5.copy();
- /*if (par2 == 0)
- {
- if (!this.mergeItemStack(var5, InOutputSlotNumber, FullSlotNumber, true))
- {
- return null;
- }
-
- var4.onSlotChange(var5, var3);
- }
- else if (par2 >= InOutputSlotNumber && par2 < InventoryOutSlotNumber)
- {
- if (!this.mergeItemStack(var5, InventoryOutSlotNumber, FullSlotNumber, false))
- {
- return null;
- }
- }
- else if (par2 >= InventoryOutSlotNumber && par2 < FullSlotNumber)
- {
- if (!this.mergeItemStack(var5, InOutputSlotNumber, InventoryOutSlotNumber, false))
- {
- return null;
- }
- }
- else if (!this.mergeItemStack(var5, InOutputSlotNumber, FullSlotNumber, false))
- {
- return null;
- }*/
-
- if (var5.stackSize == 0)
- {
- var4.putStack((ItemStack)null);
- }
- else
- {
+ /*
+ * if (par2 == 0) { if (!this.mergeItemStack(var5,
+ * InOutputSlotNumber, FullSlotNumber, true)) { return null; }
+ *
+ * var4.onSlotChange(var5, var3); } else if (par2 >=
+ * InOutputSlotNumber && par2 < InventoryOutSlotNumber) { if
+ * (!this.mergeItemStack(var5, InventoryOutSlotNumber,
+ * FullSlotNumber, false)) { return null; } } else if (par2 >=
+ * InventoryOutSlotNumber && par2 < FullSlotNumber) { if
+ * (!this.mergeItemStack(var5, InOutputSlotNumber,
+ * InventoryOutSlotNumber, false)) { return null; } } else if
+ * (!this.mergeItemStack(var5, InOutputSlotNumber, FullSlotNumber,
+ * false)) { return null; }
+ */
+
+ if (var5.stackSize == 0) {
+ var4.putStack((ItemStack) null);
+ } else {
var4.onSlotChanged();
}
- if (var5.stackSize == var3.stackSize)
- {
+ if (var5.stackSize == var3.stackSize) {
return null;
}
@@ -162,11 +130,10 @@ public class Container_FishTrap extends Container {
return var3;
}
- //Can merge Slot
+ // Can merge Slot
@Override
public boolean func_94530_a(final ItemStack p_94530_1_, final Slot p_94530_2_) {
return super.func_94530_a(p_94530_1_, p_94530_2_);
}
-
} \ No newline at end of file
diff --git a/src/Java/gtPlusPlus/core/item/ModItems.java b/src/Java/gtPlusPlus/core/item/ModItems.java
index 3a242ea10b..ec32b0bb9f 100644
--- a/src/Java/gtPlusPlus/core/item/ModItems.java
+++ b/src/Java/gtPlusPlus/core/item/ModItems.java
@@ -217,6 +217,8 @@ public final class ModItems {
public static Item itemCoalCoke;
+ public static CoreItem itemCircuitLFTR;
+
@@ -480,6 +482,10 @@ public final class ModItems {
dustLi2BeF4 = ItemUtils.generateSpecialUseDusts("Li2BeF4", "Li2BeF4 Fuel Compound", Utils.rgbtoHexValue(255, 255, 255))[0]; //https://en.wikipedia.org/wiki/FLiBe
fluidFLiBeSalt = FluidUtils.generateFluid("Li2BeF4", "Li2BeF4", 7430, new short[]{255, 255, 255, 100});
+ //LFTR Control Circuit
+ itemCircuitLFTR = new CoreItem("itemCircuitLFTR", ""+EnumChatFormatting.GREEN+"Thorium Reactor Control Circuit", AddToCreativeTab.tabMisc, 1, 0, "Helps your LFTR not explode", EnumRarity.epic, EnumChatFormatting.DARK_GREEN, false, null);
+
+
//Zirconium
//Cinter Pellet.
itemZirconiumChlorideCinterPellet = new CoreItem("itemZirconiumPellet", "Zirconium Pellet ["+StringUtils.subscript("ZrCl4")+"]", tabMisc).setTextureName(CORE.MODID + ":itemShard");
diff --git a/src/Java/gtPlusPlus/core/item/base/BaseItemComponent.java b/src/Java/gtPlusPlus/core/item/base/BaseItemComponent.java
index 4731581d83..35f1942040 100644
--- a/src/Java/gtPlusPlus/core/item/base/BaseItemComponent.java
+++ b/src/Java/gtPlusPlus/core/item/base/BaseItemComponent.java
@@ -187,7 +187,11 @@ public class BaseItemComponent 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_) {
if (this.componentMaterial != null){
- EntityUtils.applyRadiationDamageToEntity(this.componentMaterial.vRadiationLevel, world, entityHolding);
+ if (entityHolding instanceof EntityPlayer){
+ if (!((EntityPlayer) entityHolding).capabilities.isCreativeMode){
+ EntityUtils.applyRadiationDamageToEntity(this.componentMaterial.vRadiationLevel, world, entityHolding);
+ }
+ }
}
}
diff --git a/src/Java/gtPlusPlus/core/item/base/CoreItem.java b/src/Java/gtPlusPlus/core/item/base/CoreItem.java
index 62fc5c0160..951d2050f5 100644
--- a/src/Java/gtPlusPlus/core/item/base/CoreItem.java
+++ b/src/Java/gtPlusPlus/core/item/base/CoreItem.java
@@ -132,6 +132,26 @@ public class CoreItem extends Item
GameRegistry.registerItem(this, unlocalizedName);
}
+ //6
+ /*
+ * 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)
+ {
+ this.setUnlocalizedName(unlocalizedName);
+ this.itemName = displayName;
+ this.setTextureName(CORE.MODID + ":" + unlocalizedName);
+ this.setCreativeTab(creativeTab);
+ this.setMaxStackSize(stackSize);
+ this.setMaxDamage(maxDmg);
+ this.rarity = regRarity;
+ this.itemDescription = description;
+ this.descColour = colour;
+ this.hasEffect = Effect;
+ this.turnsInto = OverrideItem;
+ GameRegistry.registerItem(this, unlocalizedName);
+ }
+
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public void addInformation(final ItemStack stack, final EntityPlayer aPlayer, final List list, final boolean bool) {
diff --git a/src/Java/gtPlusPlus/core/material/Material.java b/src/Java/gtPlusPlus/core/material/Material.java
index c7d50c55b2..d4d306d5af 100644
--- a/src/Java/gtPlusPlus/core/material/Material.java
+++ b/src/Java/gtPlusPlus/core/material/Material.java
@@ -228,11 +228,11 @@ public class Material {
this.vChemicalFormula = this.getToolTip(chemicalSymbol, OrePrefixes.dust.mMaterialAmount / M, true);
}
else if (!this.vChemicalSymbol.equals("")){
- Utils.LOG_MACHINE_INFO("materialInput is null, using a valid chemical symbol.");
+ Utils.LOG_WARNING("materialInput is null, using a valid chemical symbol.");
this.vChemicalFormula = this.vChemicalSymbol;
}
else{
- Utils.LOG_MACHINE_INFO("MaterialInput == null && chemicalSymbol probably equals nothing");
+ Utils.LOG_WARNING("MaterialInput == null && chemicalSymbol probably equals nothing");
this.vChemicalFormula = "??";
}
@@ -268,13 +268,13 @@ public class Material {
}
}
- Utils.LOG_MACHINE_INFO("Creating a Material instance for "+materialName);
- Utils.LOG_MACHINE_INFO("Formula: "+this.vChemicalFormula + " Smallest Stack: "+this.smallestStackSizeWhenProcessing+" Smallest Ratio:"+ratio);
- Utils.LOG_MACHINE_INFO("Protons: "+this.vProtons);
- Utils.LOG_MACHINE_INFO("Neutrons: "+this.vNeutrons);
- Utils.LOG_MACHINE_INFO("Mass: "+this.vMass+"/units");
- Utils.LOG_MACHINE_INFO("Melting Point: "+this.meltingPointC+"C.");
- Utils.LOG_MACHINE_INFO("Boiling Point: "+this.boilingPointC+"C.");
+ Utils.LOG_WARNING("Creating a Material instance for "+materialName);
+ Utils.LOG_WARNING("Formula: "+this.vChemicalFormula + " Smallest Stack: "+this.smallestStackSizeWhenProcessing+" Smallest Ratio:"+ratio);
+ Utils.LOG_WARNING("Protons: "+this.vProtons);
+ Utils.LOG_WARNING("Neutrons: "+this.vNeutrons);
+ Utils.LOG_WARNING("Mass: "+this.vMass+"/units");
+ Utils.LOG_WARNING("Melting Point: "+this.meltingPointC+"C.");
+ Utils.LOG_WARNING("Boiling Point: "+this.boilingPointC+"C.");
}
public final String getLocalizedName(){
@@ -428,21 +428,21 @@ public class Material {
if (!this.vMaterialInput.isEmpty()){
final ItemStack[] temp = new ItemStack[this.vMaterialInput.size()];
for (int i=0;i<this.vMaterialInput.size();i++){
- //Utils.LOG_MACHINE_INFO("i:"+i);
+ //Utils.LOG_WARNING("i:"+i);
ItemStack testNull = null;
try {
testNull = this.vMaterialInput.get(i).getValidStack();
} catch (final Throwable r){
- Utils.LOG_MACHINE_INFO("Failed gathering material stack for "+this.localizedName+".");
- Utils.LOG_MACHINE_INFO("What Failed: Length:"+this.vMaterialInput.size()+" current:"+i);
+ Utils.LOG_WARNING("Failed gathering material stack for "+this.localizedName+".");
+ Utils.LOG_WARNING("What Failed: Length:"+this.vMaterialInput.size()+" current:"+i);
}
try {
if (testNull != null){
- //Utils.LOG_MACHINE_INFO("not null");
+ //Utils.LOG_WARNING("not null");
temp[i] = this.vMaterialInput.get(i).getValidStack();
}
} catch (final Throwable r){
- Utils.LOG_MACHINE_INFO("Failed setting slot "+i+", using "+this.localizedName);
+ Utils.LOG_WARNING("Failed setting slot "+i+", using "+this.localizedName);
}
}
return temp;
@@ -490,9 +490,9 @@ public class Material {
public final long[] getSmallestRatio(final ArrayList<MaterialStack> tempInput){
if (tempInput != null){
if (!tempInput.isEmpty()){
- Utils.LOG_MACHINE_INFO("length: "+tempInput.size());
- Utils.LOG_MACHINE_INFO("(inputs != null): "+(tempInput != null));
- //Utils.LOG_MACHINE_INFO("length: "+inputs.length);
+ Utils.LOG_WARNING("length: "+tempInput.size());
+ Utils.LOG_WARNING("(inputs != null): "+(tempInput != null));
+ //Utils.LOG_WARNING("length: "+inputs.length);
final long[] tempRatio = new long[tempInput.size()];
for (int x=0;x<tempInput.size();x++){
//tempPercentage = tempPercentage+inputs[x].percentageToUse;
@@ -509,7 +509,7 @@ public class Material {
for (int r=0;r<tempRatio.length;r++){
tempRatioStringThing1 = tempRatioStringThing1 + tempRatio[r] +" : ";
}
- Utils.LOG_MACHINE_INFO("Default Ratio: "+tempRatioStringThing1);
+ Utils.LOG_WARNING("Default Ratio: "+tempRatioStringThing1);
String tempRatioStringThing = "";
int tempSmallestCraftingUseSize = 0;
@@ -518,7 +518,7 @@ public class Material {
tempSmallestCraftingUseSize = (int) (tempSmallestCraftingUseSize + smallestRatio[r]);
}
//this.smallestStackSizeWhenProcessing = tempSmallestCraftingUseSize;
- Utils.LOG_MACHINE_INFO("Smallest Ratio: "+tempRatioStringThing);
+ Utils.LOG_WARNING("Smallest Ratio: "+tempRatioStringThing);
return smallestRatio;
}
}
@@ -530,7 +530,7 @@ public class Material {
if (!aShowQuestionMarks && (this.vChemicalFormula.equals("?")||this.vChemicalFormula.equals("??"))) {
return "";
}
- Utils.LOG_MACHINE_INFO("===============| Calculating Atomic Formula for "+this.localizedName+" |===============");
+ Utils.LOG_WARNING("===============| Calculating Atomic Formula for "+this.localizedName+" |===============");
if (!chemSymbol.equals("")) {
return chemSymbol;
}
@@ -573,13 +573,13 @@ public class Material {
return StringUtils.subscript(dummyFormula);
//return dummyFormula;
}
- Utils.LOG_MACHINE_INFO("dummyFormulaArray <= 0");
+ Utils.LOG_WARNING("dummyFormulaArray <= 0");
}
- Utils.LOG_MACHINE_INFO("dummyFormulaArray == null");
+ Utils.LOG_WARNING("dummyFormulaArray == null");
}
- Utils.LOG_MACHINE_INFO("tempInput.length <= 0");
+ Utils.LOG_WARNING("tempInput.length <= 0");
}
- Utils.LOG_MACHINE_INFO("tempInput == null");
+ Utils.LOG_WARNING("tempInput == null");
return "??";
}
@@ -593,7 +593,7 @@ public class Material {
} catch (final Throwable e){}
if (Materials.get(this.localizedName).mFluid == null){
- Utils.LOG_MACHINE_INFO("Generating our own fluid.");
+ Utils.LOG_WARNING("Generating our own fluid.");
//Generate a Cell if we need to
if (ItemUtils.getItemStackOfAmountFromOreDictNoBroken("cell"+this.getUnlocalizedName(), 1) == null){
@@ -639,7 +639,7 @@ public class Material {
return this.generatePlasma();
}
}
- Utils.LOG_MACHINE_INFO("Getting the fluid from a GT material instead.");
+ Utils.LOG_WARNING("Getting the fluid from a GT material instead.");
return Materials.get(this.localizedName).mFluid;
}
@@ -648,11 +648,11 @@ public class Material {
if ((isValid != Materials._NULL) && (isValid != null) && (isValid != Materials.Clay) && (isValid != Materials.Clay)
&& (isValid != Materials.Phosphorus) && (isValid != Materials.Steel) && (isValid != Materials.Bronze)){
if (isValid.mPlasma != null){
- Utils.LOG_MACHINE_INFO("Using a pre-defined Plasma from GT.");
+ Utils.LOG_WARNING("Using a pre-defined Plasma from GT.");
return isValid.mPlasma;
}
}
- Utils.LOG_MACHINE_INFO("Generating our own Plasma.");
+ Utils.LOG_WARNING("Generating our own Plasma.");
return FluidUtils.addGTPlasma(this);
//return null;
}
@@ -660,9 +660,9 @@ public class Material {
final public FluidStack getFluid(final int fluidAmount) {
- Utils.LOG_MACHINE_INFO("Attempting to get "+fluidAmount+"L of "+this.vMoltenFluid.getName());
+ //Utils.LOG_WARNING("Attempting to get "+fluidAmount+"L of "+this.vMoltenFluid.getName());
final FluidStack moltenFluid = new FluidStack(this.vMoltenFluid, fluidAmount);
- Utils.LOG_MACHINE_INFO("Info: "+moltenFluid.getFluid().getName()+" Info: "+moltenFluid.amount+" Info: "+moltenFluid.getFluidID());
+ //Utils.LOG_WARNING("Info: "+moltenFluid.getFluid().getName()+" Info: "+moltenFluid.amount+" Info: "+moltenFluid.getFluidID());
return moltenFluid;
}
@@ -672,10 +672,10 @@ public class Material {
for (MaterialStack part : this.vMaterialInput){
int incrementor = part.getStackMaterial().getMeltingPointC();
meltingPoint += incrementor;
- Utils.LOG_MACHINE_INFO("Melting Point for "+this.getLocalizedName()+" increased to "+ incrementor);
+ Utils.LOG_WARNING("Melting Point for "+this.getLocalizedName()+" increased to "+ incrementor);
}
int divisor = (this.vMaterialInput.size()>0 ? this.vMaterialInput.size() : 1);
- Utils.LOG_MACHINE_INFO("Dividing "+meltingPoint+" / "+divisor+" to get average melting point.");
+ Utils.LOG_WARNING("Dividing "+meltingPoint+" / "+divisor+" to get average melting point.");
meltingPoint = (meltingPoint/divisor);
return meltingPoint;
}
diff --git a/src/Java/gtPlusPlus/core/material/gregtech/CustomGTMaterials.java b/src/Java/gtPlusPlus/core/material/gregtech/CustomGTMaterials.java
new file mode 100644
index 0000000000..96a4b34d98
--- /dev/null
+++ b/src/Java/gtPlusPlus/core/material/gregtech/CustomGTMaterials.java
@@ -0,0 +1,95 @@
+package gtPlusPlus.core.material.gregtech;
+
+import static gregtech.api.enums.Materials.*;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+
+import gregtech.api.enums.Dyes;
+import gregtech.api.enums.Element;
+import gregtech.api.enums.Materials;
+import gregtech.api.enums.TC_Aspects;
+import gregtech.api.enums.TC_Aspects.TC_AspectStack;
+import gregtech.api.enums.TextureSet;
+import gregtech.api.interfaces.IMaterialHandler;
+import gregtech.api.objects.MaterialStack;
+import gtPlusPlus.core.util.Utils;
+
+public class CustomGTMaterials {
+
+ //public static Materials Fireclay = new MaterialBuilder(626, TextureSet.SET_ROUGH, "Fireclay").addDustItems().setRGB(173, 160, 155).setColor(Dyes.dyeBrown).setMaterialList(new MaterialStack(Brick, 1)).constructMaterial();
+
+ /**int aMetaItemSubID,
+ * TextureSet aIconSet,
+ * float aToolSpeed,
+ * int aDurability,
+ * int aToolQuality,
+ * boolean aUnificatable,
+ * String aName, String aDefaultLocalName,
+ * String aConfigSection,
+ * boolean aCustomOre,
+ * String aCustomID) {
+
+ **/
+
+ public static List<Materials> Custom_GT_Materials = new ArrayList<Materials>();
+
+ public static Materials Zirconium = materialBuilder_Element(1232, TextureSet.SET_METALLIC, 6.0F, 256, 2, 1|2|8|32|64|128, 200, 200, 200, 0, "Zirconium", "Zirconium", 0, 0, 1811, 0, false, false, 3, 1, 1, Dyes.dyeLightGray, Element.Zr, Arrays.asList(new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 3)));
+ public static Materials Geikielite = materialBuilder(1234, TextureSet.SET_SHINY, new int[]{1,2,3}, "Geikielite", Dyes.dyeBlack, Arrays.asList(new MaterialStack(Titanium, 1), new MaterialStack(Magnesium, 1), new MaterialStack(Oxygen, 3)));
+ public static Materials Zirconolite = materialBuilder(1235, TextureSet.SET_METALLIC, new int[]{1,2,3}, "Zirconolite", Dyes.dyeBlack, Arrays.asList(new MaterialStack(Calcium, 1), new MaterialStack(Zirconium, 1), new MaterialStack(Titanium, 2), new MaterialStack(Oxygen, 7)));
+
+ public static final void run(){
+ Utils.LOG_INFO("[Custom] Trying to initialise custom materials.");
+ }
+
+ private final static boolean registerMaterial(Materials r){
+ Custom_GT_Materials.add(r);
+ Utils.LOG_INFO("[Custom] Registered new Gregtech material - "+r.mName);
+ return true;
+ }
+
+ public final static Materials materialBuilder(int ID, TextureSet texture, int[] rgb, String materialName, Dyes dyeColour, List<MaterialStack> composition){
+ Materials newMat = new Materials(
+ ID,
+ texture,
+ 1.0F,
+ 0,
+ 2,
+ 1 |8 ,
+ rgb[0], rgb[1], rgb[2], 0,
+ materialName, materialName,
+ 0, 0, -1, 0, false, false, 3, 1, 1,
+ dyeColour,
+ 1,
+ composition
+ );
+ registerMaterial(newMat);
+ return newMat;
+ }
+
+ public final static Materials materialBuilder_Element(
+ int ID, TextureSet texture,
+ float a, int b, int c,
+ int d, int r2, int g2, int b2, int a2,
+ String materialName, String e,
+ int f, int g, int h, int i,
+ boolean j, boolean k,
+ int l, int m, int n,
+ Dyes dyeColour, Element o,
+ List<TC_AspectStack> aspects){
+ Materials newMat = new Materials(
+ ID, texture,
+ a, b, c,
+ d, r2, g2, b2, a2,
+ materialName, e,
+ f, g, h, i, j, k, l, m, n,
+ dyeColour, o,
+ aspects
+ );
+ registerMaterial(newMat);
+ return newMat;
+ }
+
+
+}
diff --git a/src/Java/gtPlusPlus/core/recipe/RECIPES_MachineComponents.java b/src/Java/gtPlusPlus/core/recipe/RECIPES_MachineComponents.java
index c6d03b345b..fb3aa64564 100644
--- a/src/Java/gtPlusPlus/core/recipe/RECIPES_MachineComponents.java
+++ b/src/Java/gtPlusPlus/core/recipe/RECIPES_MachineComponents.java
@@ -93,10 +93,6 @@ public class RECIPES_MachineComponents {
public static String smallGearTier9 = "gearGtSmallOsmium";
public static String smallGearTier10 = "gearGtSmallNeutronium";
- //Crafting Tools
- public static String craftingToolWrench = "craftingToolWrench";
- public static String craftingToolScrewdriver = "craftingToolScrewdriver";
-
public static final void RECIPES_LOAD(){
Utils.LOG_INFO("Loading Recipes for the Various Circuits and Machine components.");
if (!CORE.MAIN_GREGTECH_5U_EXPERIMENTAL_FORK){
@@ -135,22 +131,22 @@ public class RECIPES_MachineComponents {
//Electric Pump
RecipeUtils.addShapedGregtechRecipe(
cableTier7, rotorTier7, itemRubberRing,
- craftingToolScrewdriver, pipeTier7, craftingToolWrench,
+ CI.craftingToolScrewdriver, pipeTier7, CI.craftingToolWrench,
itemRubberRing, CI.electricMotor_LuV, cableTier7,
CI.electricPump_LuV);
RecipeUtils.addShapedGregtechRecipe(
cableTier8, rotorTier8, itemRubberRing,
- craftingToolScrewdriver, pipeTier8, craftingToolWrench,
+ CI.craftingToolScrewdriver, pipeTier8, CI.craftingToolWrench,
itemRubberRing, CI.electricMotor_ZPM, cableTier8,
CI.electricPump_ZPM);
RecipeUtils.addShapedGregtechRecipe(
cableTier9, rotorTier9, itemRubberRing,
- craftingToolScrewdriver, pipeTier9, craftingToolWrench,
+ CI.craftingToolScrewdriver, pipeTier9, CI.craftingToolWrench,
itemRubberRing, CI.electricMotor_UV, cableTier9,
CI.electricPump_UV);
RecipeUtils.addShapedGregtechRecipe(
cableTier10, rotorTier10, itemRubberRing,
- craftingToolScrewdriver, pipeTier10, craftingToolWrench,
+ CI.craftingToolScrewdriver, pipeTier10, CI.craftingToolWrench,
itemRubberRing, CI.electricMotor_MAX, cableTier10,
CI.electricPump_MAX);
@@ -301,7 +297,7 @@ public class RECIPES_MachineComponents {
RecipeUtils.addShapedGregtechRecipe(
cableTier0, rotorTier0, itemRubberRing,
- craftingToolScrewdriver, pipeTier0, craftingToolWrench,
+ CI.craftingToolScrewdriver, pipeTier0, CI.craftingToolWrench,
itemRubberRing, CI.electricMotor_ULV, cableTier0,
CI.electricPump_ULV);
@@ -350,7 +346,7 @@ public class RECIPES_MachineComponents {
CI.electricMotor_MAX);
RecipeUtils.addShapedGregtechRecipe(
cableTier10, rotorTier10, itemRubberRing,
- craftingToolScrewdriver, pipeTier10, craftingToolWrench,
+ CI.craftingToolScrewdriver, pipeTier10, CI.craftingToolWrench,
itemRubberRing, CI.electricMotor_MAX, cableTier10,
CI.electricPump_MAX);
RecipeUtils.addShapedGregtechRecipe(
diff --git a/src/Java/gtPlusPlus/core/recipe/RECIPES_Machines.java b/src/Java/gtPlusPlus/core/recipe/RECIPES_Machines.java
index effff15171..eb58ba3928 100644
--- a/src/Java/gtPlusPlus/core/recipe/RECIPES_Machines.java
+++ b/src/Java/gtPlusPlus/core/recipe/RECIPES_Machines.java
@@ -74,8 +74,13 @@ public class RECIPES_Machines {
//Thermal Boiler
public static ItemStack RECIPE_ThermalBoilerController;
public static ItemStack RECIPE_ThermalBoilerCasing;
-
-
+
+ //Thorium Reactor
+ public static ItemStack RECIPE_LFTRController;
+ public static ItemStack RECIPE_LFTROuterCasing;
+ public static ItemStack RECIPE_LFTRInnerCasing;
+
+
//Buffer Cores
public static ItemStack RECIPE_BufferCore_ULV = ItemUtils.getItemStack("miscutils:item.itemBufferCore1", 1);
public static ItemStack RECIPE_BufferCore_LV = ItemUtils.getItemStack("miscutils:item.itemBufferCore2", 1);
@@ -222,7 +227,7 @@ public class RECIPES_Machines {
private static void runModRecipes(){
if (LoadedMods.Gregtech){
-
+
//Computer Cube
RecipeUtils.addShapedGregtechRecipe(
CI.getDataOrb(),ItemList.Cover_Screen.get(1),"circuitMaster",
@@ -756,7 +761,7 @@ public class RECIPES_Machines {
"plateTitanium",CI.machineHull_EV,"plateTitanium",
RECIPE_TesseractTerminal);