aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech
diff options
context:
space:
mode:
authorDraknyte1 <Draknyte1@hotmail.com>2017-08-12 21:56:42 +1000
committerDraknyte1 <Draknyte1@hotmail.com>2017-08-12 21:56:42 +1000
commit2f204855239daa14c085fd74cb34a02fbbf36d73 (patch)
treeceb621923538b9c6bbf7eca87f337ab1ca1c2f8f /src/Java/gtPlusPlus/xmod/gregtech
parent25c74de08a9f7510da2f9f32a0e91bc9636ac9a2 (diff)
downloadGT5-Unofficial-2f204855239daa14c085fd74cb34a02fbbf36d73.tar.gz
GT5-Unofficial-2f204855239daa14c085fd74cb34a02fbbf36d73.tar.bz2
GT5-Unofficial-2f204855239daa14c085fd74cb34a02fbbf36d73.zip
+ Added Lava Filter recipe.
+ Added Thermal Boiler manual recipe. $ Fixed OreDict ASM. % Changed recipe handling for the Thermal Boiler.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GT4Entity_ThermalBoiler.java16
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/registration/gregtech/Gregtech4Content.java10
2 files changed, 24 insertions, 2 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GT4Entity_ThermalBoiler.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GT4Entity_ThermalBoiler.java
index 67cf171e3f..76d9dd520e 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GT4Entity_ThermalBoiler.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GT4Entity_ThermalBoiler.java
@@ -12,6 +12,7 @@ import gregtech.api.util.*;
import gtPlusPlus.core.block.ModBlocks;
import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.core.util.Utils;
+import gtPlusPlus.core.util.item.ItemUtils;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
@@ -59,10 +60,22 @@ extends GT_MetaTileEntity_MultiBlockBase
@Override
public boolean checkRecipe(ItemStack aStack)
{
- Collection<GT_Recipe> hotFuels = GT_Recipe.GT_Recipe_Map.sHotFuels.mRecipeList;
+ Collection<GT_Recipe> hotFuels = Recipe_GT.Gregtech_Recipe_Map.sThermalFuels.mRecipeList;
for (GT_Recipe tRecipe : hotFuels) {
+ Utils.LOG_INFO("iterating hot fuels ");
+ Utils.LOG_INFO("aStack: "+aStack.getDisplayName());
+ Utils.LOG_INFO("========================");
+ Utils.LOG_INFO("Dumping Input: " + ItemUtils.getArrayStackNames(tRecipe.mInputs));
+ Utils.LOG_INFO("Dumping Inputs " + ItemUtils.getFluidArrayStackNames(tRecipe.mFluidInputs));
+ Utils.LOG_INFO("Dumping Duration: " + tRecipe.mDuration);
+ Utils.LOG_INFO("Dumping EU/t: " + tRecipe.mEUt);
+ Utils.LOG_INFO("Dumping Output: " + ItemUtils.getArrayStackNames(tRecipe.mOutputs));
+ Utils.LOG_INFO("Dumping Output: " + ItemUtils.getFluidArrayStackNames(tRecipe.mFluidOutputs));
+ Utils.LOG_INFO("========================");
+
if (depleteInput(tRecipe.getRepresentativeInput(0)))
{
+ Utils.LOG_INFO("found something");
this.mEUt = 400;
this.mMaxProgresstime = (tRecipe.mEUt * 2 / 5);
this.mEfficiencyIncrease = (this.mMaxProgresstime * 30);
@@ -90,6 +103,7 @@ extends GT_MetaTileEntity_MultiBlockBase
if (this.mEUt > 0)
{
int tGeneratedEU = (int)(this.mEUt * 2L * this.mEfficiency / 10000L);
+ Utils.LOG_INFO("tGeneratedEU: "+tGeneratedEU);
if ((tGeneratedEU > 0) && (depleteInput(GT_ModHandler.getWater((tGeneratedEU + 160) / 160)))) {
addOutput(GT_ModHandler.getSteam(tGeneratedEU));
}
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/registration/gregtech/Gregtech4Content.java b/src/Java/gtPlusPlus/xmod/gregtech/registration/gregtech/Gregtech4Content.java
index 121de39221..d5cb8401c6 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/registration/gregtech/Gregtech4Content.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/registration/gregtech/Gregtech4Content.java
@@ -4,12 +4,16 @@ import gregtech.api.util.GT_Utility;
import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.core.lib.LoadedMods;
import gtPlusPlus.core.util.Utils;
+import gtPlusPlus.core.util.item.ItemUtils;
+import gtPlusPlus.core.util.recipe.RecipeUtils;
import gtPlusPlus.xmod.gregtech.api.enums.GregtechItemList;
import gtPlusPlus.xmod.gregtech.common.tileentities.automation.GT_MetaTileEntity_TesseractGenerator;
import gtPlusPlus.xmod.gregtech.common.tileentities.automation.GT_MetaTileEntity_TesseractTerminal;
import gtPlusPlus.xmod.gregtech.common.tileentities.machines.multi.GT4Entity_AutoCrafter;
import gtPlusPlus.xmod.gregtech.common.tileentities.machines.multi.GT4Entity_ThermalBoiler;
import gtPlusPlus.xmod.gregtech.common.tileentities.storage.shelving.*;
+import net.minecraft.init.Items;
+import net.minecraft.item.ItemStack;
public class Gregtech4Content {
@@ -72,8 +76,10 @@ public class Gregtech4Content {
GregtechItemList.GT4_Thermal_Boiler
.set(new GT4Entity_ThermalBoiler(875, "gtplusplus.thermal.boiler", "Thermal Boiler").getStackForm(1L));
+
+
//Thermal Boiler Manual
- GT_Utility.getWrittenBook(
+ ItemStack manual_Boiler = GT_Utility.getWrittenBook(
"Manual_Thermal_Boiler", "Thermal Boiler Manual", "Alkalus",
new String[] {
"This Book explains how to set up and run your Thermal Boiler. We are not responsible for any Damage done by this Book itself nor its content.",
@@ -91,6 +97,8 @@ public class Gregtech4Content {
"The Thermal Boiler will produce 800 Liters of Steam per tick for about 5 or 6 Liters of Water per tick at reaching 100% Efficiency. In case of Lava it consumes 1666 Liters every Second.",
"A Thermal Boiler is worth about 33 small Thermal Generators, and as the Boilers get much less Efficient, when not having enough Fuel, you should consider making a large Nether Pump for Lava, or a good Nuclear Reactor for molten Salt.",
"Input and Output Slots are fully optional, you can place multiple ones of them or even none on the Machine. A Machine without Input couldn't process any Recipes, while a Machine without Output just voids all outputted Items and Liquids.", "It might be useful to use the Screwdriver on the Output Hatches to determine what is outputted where." });
+
+ RecipeUtils.addShapelessGregtechRecipe(new ItemStack[]{ItemUtils.getSimpleStack(Items.writable_book), ItemUtils.getSimpleStack(Items.lava_bucket)}, manual_Boiler);
}
}