diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2016-09-25 21:11:05 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2016-09-25 21:11:05 +1000 |
commit | d43694eb98a0968190c3dbaa4ab5121c39feaf1f (patch) | |
tree | 441d4ed0300d675382539b8a650abe8e7bdf67f9 /src/Java/gtPlusPlus/core/gui | |
parent | 6a95a11b16cfa38e7789418d93e70b1dc12b19c7 (diff) | |
download | GT5-Unofficial-d43694eb98a0968190c3dbaa4ab5121c39feaf1f.tar.gz GT5-Unofficial-d43694eb98a0968190c3dbaa4ab5121c39feaf1f.tar.bz2 GT5-Unofficial-d43694eb98a0968190c3dbaa4ab5121c39feaf1f.zip |
+ Added the Work Bench, from Gregtech 4.
% Renamed a method that converted arrays to fixed sized lists.
% Added a Util function to determine server or client easier.
Diffstat (limited to 'src/Java/gtPlusPlus/core/gui')
-rw-r--r-- | src/Java/gtPlusPlus/core/gui/machine/GUI_Workbench.java | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/core/gui/machine/GUI_Workbench.java b/src/Java/gtPlusPlus/core/gui/machine/GUI_Workbench.java new file mode 100644 index 0000000000..c1b6904cb4 --- /dev/null +++ b/src/Java/gtPlusPlus/core/gui/machine/GUI_Workbench.java @@ -0,0 +1,41 @@ +package gtPlusPlus.core.gui.machine; + +import gtPlusPlus.core.container.Container_Workbench; +import gtPlusPlus.core.lib.CORE; +import gtPlusPlus.core.tileentities.machines.TileEntityWorkbench; +import net.minecraft.client.gui.inventory.GuiContainer; +import net.minecraft.entity.player.InventoryPlayer; +import net.minecraft.util.ResourceLocation; + +import org.lwjgl.opengl.GL11; + +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; + +@SideOnly(Side.CLIENT) +public class GUI_Workbench extends GuiContainer { + + private static final ResourceLocation craftingTableGuiTextures = new ResourceLocation(CORE.MODID, "textures/gui/Workbench.png"); + + public GUI_Workbench(InventoryPlayer player_inventory, TileEntityWorkbench tile){ + super(new Container_Workbench(player_inventory, tile)); +} + + + @Override + protected void drawGuiContainerForegroundLayer(int i, int j){ + //this.fontRendererObj.drawString(I18n.format("Workbench", new Object[0]), 28, 6, 4210752); + //this.fontRendererObj.drawString(I18n.format("container.inventory", new Object[0]), 8, this.ySize - 96 + 2, 4210752); + + } + + + @Override + protected void drawGuiContainerBackgroundLayer(float f, int i, int j){ + GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f); + this.mc.renderEngine.bindTexture(craftingTableGuiTextures); + int x = (width - xSize) / 2; + int y = (height - ySize) / 2; + this.drawTexturedModalRect(x, y, 0, 0, xSize, ySize); + } +}
\ No newline at end of file |