aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech
diff options
context:
space:
mode:
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/api/gui/GUI_AdvancedBoiler.java44
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_Boiler_Base.java6
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechAdvancedBoilers.java67
3 files changed, 81 insertions, 36 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/api/gui/GUI_AdvancedBoiler.java b/src/Java/gtPlusPlus/xmod/gregtech/api/gui/GUI_AdvancedBoiler.java
new file mode 100644
index 0000000000..2d00f98d40
--- /dev/null
+++ b/src/Java/gtPlusPlus/xmod/gregtech/api/gui/GUI_AdvancedBoiler.java
@@ -0,0 +1,44 @@
+package gtPlusPlus.xmod.gregtech.api.gui;
+
+import gregtech.api.gui.GT_GUIContainerMetaTile_Machine;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.common.gui.GT_Container_Boiler;
+import net.minecraft.entity.player.InventoryPlayer;
+
+public class GUI_AdvancedBoiler
+ extends GT_GUIContainerMetaTile_Machine {
+ public GUI_AdvancedBoiler(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, String aTextureName, int aSteamCapacity) {
+ super(new GT_Container_Boiler(aInventoryPlayer, aTileEntity, aSteamCapacity), "miscutils:textures/gui/" + aTextureName);
+ }
+
+ @Override
+ protected void drawGuiContainerForegroundLayer(int par1, int par2) {
+ this.fontRendererObj.drawString("Boiler", 8, 4, 4210752);
+ }
+
+ @Override
+ protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3) {
+ super.drawGuiContainerBackgroundLayer(par1, par2, par3);
+ int x = (this.width - this.xSize) / 2;
+ int y = (this.height - this.ySize) / 2;
+ drawTexturedModalRect(x, y, 0, 0, this.xSize, this.ySize);
+ if (this.mContainer != null) {
+ int tScale = ((GT_Container_Boiler) this.mContainer).mSteamAmount;
+ if (tScale > 0) {
+ drawTexturedModalRect(x + 70, y + 25 + 54 - tScale, 194, 54 - tScale, 10, tScale);
+ }
+ tScale = ((GT_Container_Boiler) this.mContainer).mWaterAmount;
+ if (tScale > 0) {
+ drawTexturedModalRect(x + 83, y + 25 + 54 - tScale, 204, 54 - tScale, 10, tScale);
+ }
+ tScale = ((GT_Container_Boiler) this.mContainer).mTemperature;
+ if (tScale > 0) {
+ drawTexturedModalRect(x + 96, y + 25 + 54 - tScale, 214, 54 - tScale, 10, tScale);
+ }
+ tScale = ((GT_Container_Boiler) this.mContainer).mProcessingEnergy;
+ if (tScale > 0) {
+ drawTexturedModalRect(x + 117, y + 44 + 14 - tScale, 177, 14 - tScale, 15, tScale + 1);
+ }
+ }
+ }
+}
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_Boiler_Base.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_Boiler_Base.java
index 961e9c05c8..17cfa1cc65 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_Boiler_Base.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/GT_MetaTileEntity_Boiler_Base.java
@@ -9,8 +9,9 @@ import gregtech.api.objects.GT_RenderedTexture;
import gregtech.api.util.GT_ModHandler;
import gregtech.api.util.GT_OreDictUnificator;
import gregtech.common.gui.GT_Container_Boiler;
-import gregtech.common.gui.GT_GUIContainer_Boiler;
import gregtech.common.tileentities.boilers.GT_MetaTileEntity_Boiler;
+import gtPlusPlus.core.util.Utils;
+import gtPlusPlus.xmod.gregtech.api.gui.GUI_AdvancedBoiler;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.util.ForgeDirection;
@@ -92,7 +93,7 @@ extends GT_MetaTileEntity_Boiler {
@Override
public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) {
- return new GT_GUIContainer_Boiler(aPlayerInventory, aBaseMetaTileEntity, "AdvancedBoiler.png", getCapacity());
+ return new GUI_AdvancedBoiler(aPlayerInventory, aBaseMetaTileEntity, "AdvancedBoiler.png", getCapacity());
}
@Override
@@ -179,6 +180,7 @@ extends GT_MetaTileEntity_Boiler {
if (vCurrentBurnTime > 0){
return true;
}
+ Utils.LOG_INFO("Invalid Boiler Fuel. Fuel:"+inputItem.getDisplayName()+" burns for "+vCurrentBurnTime);
return false;
}
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechAdvancedBoilers.java b/src/Java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechAdvancedBoilers.java
index 3ed456d841..15f9bc11e2 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechAdvancedBoilers.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechAdvancedBoilers.java
@@ -34,40 +34,8 @@ public class GregtechAdvancedBoilers {
//Make the Coil in each following recipe a hammer and a Screwdriver.
- GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Boiler_Advanced_LV.get(1L, new Object[0]),
- GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE | GT_ModHandler.RecipeBits.BUFFERED,
- new Object[]{"ECE", "WMW", "GPG",
- Character.valueOf('M'), ItemList.Hull_LV,
- Character.valueOf('P'), ItemList.Robot_Arm_EV, //TODO
- Character.valueOf('E'), chassisT1, //TODO
- Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Basic),
- Character.valueOf('W'), chassisT1,
- Character.valueOf('G'), OrePrefixes.gear.get(Materials.Steel)});
-
- GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Boiler_Advanced_MV.get(1L, new Object[0]),
- GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE | GT_ModHandler.RecipeBits.BUFFERED,
- new Object[]{"ECE", "WMW", "GPG",
- Character.valueOf('M'), ItemList.Hull_MV,
- Character.valueOf('P'), ItemList.Robot_Arm_IV, //TODO
- Character.valueOf('E'), chassisT2, //TODO
- Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Good),
- Character.valueOf('W'), chassisT2,
- Character.valueOf('G'), ALLOY.SILICON_CARBIDE.getGear(1)});
-
- GT_ModHandler.addCraftingRecipe(
- GregtechItemList.Boiler_Advanced_HV.get(1L, new Object[0]),
- GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE | GT_ModHandler.RecipeBits.BUFFERED,
- new Object[]{"ECE", "WMW", "GPG",
- Character.valueOf('M'), ItemList.Hull_HV,
- Character.valueOf('P'), RECIPE_CONSTANTS.robotArm_LuV, //TODO
- Character.valueOf('E'), chassisT3, //TODO
- Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Advanced),
- Character.valueOf('W'), chassisT3,
- Character.valueOf('G'), ALLOY.SILICON_CARBIDE.getGear(1)});
-
-
+
+ //Chassis Recipes
GT_ModHandler.addCraftingRecipe(
chassisT1,
GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE | GT_ModHandler.RecipeBits.BUFFERED,
@@ -99,6 +67,37 @@ public class GregtechAdvancedBoilers {
Character.valueOf('G'), OrePrefixes.pipeSmall.get(Materials.Steel)});
+ //Boiler Recipes
+ GT_ModHandler.addCraftingRecipe(
+ GregtechItemList.Boiler_Advanced_LV.get(1L, new Object[0]),
+ GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE | GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[]{"dCw", "WMW", "GPG",
+ Character.valueOf('M'), ItemList.Hull_LV,
+ Character.valueOf('P'), ItemList.Robot_Arm_EV, //TODO
+ Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Basic),
+ Character.valueOf('W'), chassisT1,
+ Character.valueOf('G'), OrePrefixes.gear.get(Materials.Steel)});
+
+ GT_ModHandler.addCraftingRecipe(
+ GregtechItemList.Boiler_Advanced_MV.get(1L, new Object[0]),
+ GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE | GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[]{"dCw", "WMW", "GPG",
+ Character.valueOf('M'), ItemList.Hull_MV,
+ Character.valueOf('P'), ItemList.Robot_Arm_IV, //TODO
+ Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Good),
+ Character.valueOf('W'), chassisT2,
+ Character.valueOf('G'), ALLOY.SILICON_CARBIDE.getGear(1)});
+
+ GT_ModHandler.addCraftingRecipe(
+ GregtechItemList.Boiler_Advanced_HV.get(1L, new Object[0]),
+ GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE | GT_ModHandler.RecipeBits.BUFFERED,
+ new Object[]{"dCw", "WMW", "GPG",
+ Character.valueOf('M'), ItemList.Hull_HV,
+ Character.valueOf('P'), RECIPE_CONSTANTS.robotArm_LuV, //TODO
+ Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Advanced),
+ Character.valueOf('W'), chassisT3,
+ Character.valueOf('G'), ALLOY.SILICON_CARBIDE.getGear(1)});
+
}