aboutsummaryrefslogtreecommitdiff
path: root/main/java/gregtech/common/gui/GT_GUIContainer_Boiler.java
diff options
context:
space:
mode:
authorBlood Asp <Blood@Asp>2015-04-23 18:14:22 +0200
committerBlood Asp <Blood@Asp>2015-04-23 18:14:22 +0200
commit7224ac4299098c70efae9dbd04c50a97e3f5f583 (patch)
treec739bb7d176a9735bc8e598063918023de32330c /main/java/gregtech/common/gui/GT_GUIContainer_Boiler.java
downloadGT5-Unofficial-7224ac4299098c70efae9dbd04c50a97e3f5f583.tar.gz
GT5-Unofficial-7224ac4299098c70efae9dbd04c50a97e3f5f583.tar.bz2
GT5-Unofficial-7224ac4299098c70efae9dbd04c50a97e3f5f583.zip
Initial Commit
Diffstat (limited to 'main/java/gregtech/common/gui/GT_GUIContainer_Boiler.java')
-rw-r--r--main/java/gregtech/common/gui/GT_GUIContainer_Boiler.java53
1 files changed, 53 insertions, 0 deletions
diff --git a/main/java/gregtech/common/gui/GT_GUIContainer_Boiler.java b/main/java/gregtech/common/gui/GT_GUIContainer_Boiler.java
new file mode 100644
index 0000000000..58b520fc48
--- /dev/null
+++ b/main/java/gregtech/common/gui/GT_GUIContainer_Boiler.java
@@ -0,0 +1,53 @@
+/* 1: */ package gregtech.common.gui;
+/* 2: */
+/* 3: */ import gregtech.api.gui.GT_GUIContainerMetaTile_Machine;
+/* 4: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+/* 5: */ import net.minecraft.client.gui.FontRenderer;
+/* 6: */ import net.minecraft.entity.player.InventoryPlayer;
+/* 7: */
+/* 8: */ public class GT_GUIContainer_Boiler
+/* 9: */ extends GT_GUIContainerMetaTile_Machine
+/* 10: */ {
+/* 11: */ public GT_GUIContainer_Boiler(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, String aTextureName, int aSteamCapacity)
+/* 12: */ {
+/* 13:10 */ super(new GT_Container_Boiler(aInventoryPlayer, aTileEntity, aSteamCapacity), "gregtech:textures/gui/" + aTextureName);
+/* 14: */ }
+/* 15: */
+/* 16: */ protected void drawGuiContainerForegroundLayer(int par1, int par2)
+/* 17: */ {
+/* 18:15 */ this.fontRendererObj.drawString("Boiler", 8, 4, 4210752);
+/* 19: */ }
+/* 20: */
+/* 21: */ protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3)
+/* 22: */ {
+/* 23:20 */ super.drawGuiContainerBackgroundLayer(par1, par2, par3);
+/* 24:21 */ int x = (this.width - this.xSize) / 2;
+/* 25:22 */ int y = (this.height - this.ySize) / 2;
+/* 26:23 */ drawTexturedModalRect(x, y, 0, 0, this.xSize, this.ySize);
+/* 27:25 */ if (this.mContainer != null)
+/* 28: */ {
+/* 29:27 */ int tScale = ((GT_Container_Boiler)this.mContainer).mSteamAmount;
+/* 30:28 */ if (tScale > 0) {
+/* 31:28 */ drawTexturedModalRect(x + 70, y + 25 + 54 - tScale, 194, 54 - tScale, 10, tScale);
+/* 32: */ }
+/* 33:29 */ tScale = ((GT_Container_Boiler)this.mContainer).mWaterAmount;
+/* 34:30 */ if (tScale > 0) {
+/* 35:30 */ drawTexturedModalRect(x + 83, y + 25 + 54 - tScale, 204, 54 - tScale, 10, tScale);
+/* 36: */ }
+/* 37:31 */ tScale = ((GT_Container_Boiler)this.mContainer).mTemperature;
+/* 38:32 */ if (tScale > 0) {
+/* 39:32 */ drawTexturedModalRect(x + 96, y + 25 + 54 - tScale, 214, 54 - tScale, 10, tScale);
+/* 40: */ }
+/* 41:33 */ tScale = ((GT_Container_Boiler)this.mContainer).mProcessingEnergy;
+/* 42:34 */ if (tScale > 0) {
+/* 43:34 */ drawTexturedModalRect(x + 117, y + 44 + 14 - tScale, 177, 14 - tScale, 15, tScale + 1);
+/* 44: */ }
+/* 45: */ }
+/* 46: */ }
+/* 47: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.gui.GT_GUIContainer_Boiler
+ * JD-Core Version: 0.7.0.1
+ */ \ No newline at end of file