diff options
author | draknyte1 <draknyte1@hotmail.com> | 2017-03-12 13:55:59 +1000 |
---|---|---|
committer | draknyte1 <draknyte1@hotmail.com> | 2017-03-12 13:55:59 +1000 |
commit | d30eb824cb12b0a7301c435330875cf1c60fb29a (patch) | |
tree | 68be4a02d45ca04bb9b71d6f66ae3250f7f83b64 /src/Java/gtPlusPlus/core/gui/machine | |
parent | f11f2ebc76a5a80851da94b03cbafb0608fc2a7d (diff) | |
download | GT5-Unofficial-d30eb824cb12b0a7301c435330875cf1c60fb29a.tar.gz GT5-Unofficial-d30eb824cb12b0a7301c435330875cf1c60fb29a.tar.bz2 GT5-Unofficial-d30eb824cb12b0a7301c435330875cf1c60fb29a.zip |
+ Added missing classes from the Helium Generator. Forgot to commit them last time.
Diffstat (limited to 'src/Java/gtPlusPlus/core/gui/machine')
-rw-r--r-- | src/Java/gtPlusPlus/core/gui/machine/GUI_HeliumGenerator.java | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/core/gui/machine/GUI_HeliumGenerator.java b/src/Java/gtPlusPlus/core/gui/machine/GUI_HeliumGenerator.java new file mode 100644 index 0000000000..0f02b709e6 --- /dev/null +++ b/src/Java/gtPlusPlus/core/gui/machine/GUI_HeliumGenerator.java @@ -0,0 +1,37 @@ +package gtPlusPlus.core.gui.machine; + +import org.lwjgl.opengl.GL11; + +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; +import gtPlusPlus.core.container.Container_HeliumGenerator; +import gtPlusPlus.core.lib.CORE; +import gtPlusPlus.core.tileentities.general.TileEntityHeliumGenerator; +import net.minecraft.client.gui.inventory.GuiContainer; +import net.minecraft.entity.player.InventoryPlayer; +import net.minecraft.util.ResourceLocation; + +@SideOnly(Side.CLIENT) +public class GUI_HeliumGenerator extends GuiContainer { + + private static final ResourceLocation guiTexture = new ResourceLocation(CORE.MODID, "textures/gui/helium_collector_gui.png"); + + public GUI_HeliumGenerator(final InventoryPlayer player_inventory, final TileEntityHeliumGenerator te){ + super(new Container_HeliumGenerator(player_inventory, te)); + } + + @Override + protected void drawGuiContainerForegroundLayer(final int i, final int j){ + //this.fontRendererObj.drawString(I18n.format("", new Object[0]), 28, 6, 4210752); + } + + @Override + protected void drawGuiContainerBackgroundLayer(final float f, final int i, final int j){ + GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f); + this.mc.renderEngine.bindTexture(guiTexture); + final int x = (this.width - this.xSize) / 2; + final int y = (this.height - this.ySize) / 2; + this.drawTexturedModalRect(x, y, 0, 0, this.xSize, this.ySize); + } + +}
\ No newline at end of file |