aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/gui/machine
diff options
context:
space:
mode:
authordraknyte1 <draknyte1@hotmail.com>2017-02-15 20:09:32 +1000
committerdraknyte1 <draknyte1@hotmail.com>2017-02-15 20:09:32 +1000
commitf03b1c8457aa428f0aacbe5062676248f8133bb7 (patch)
treebf3477164b3ddd07455c187219b92d62ad55f6da /src/Java/gtPlusPlus/core/gui/machine
parent3022f3f4f96d8892b6d8c073eea7f852dcf1d71c (diff)
downloadGT5-Unofficial-f03b1c8457aa428f0aacbe5062676248f8133bb7.tar.gz
GT5-Unofficial-f03b1c8457aa428f0aacbe5062676248f8133bb7.tar.bz2
GT5-Unofficial-f03b1c8457aa428f0aacbe5062676248f8133bb7.zip
+ Finished off the fishtrap, the basis of it works, it just needs loot.
Diffstat (limited to 'src/Java/gtPlusPlus/core/gui/machine')
-rw-r--r--src/Java/gtPlusPlus/core/gui/machine/GUI_FishTrap.java58
1 files changed, 58 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/core/gui/machine/GUI_FishTrap.java b/src/Java/gtPlusPlus/core/gui/machine/GUI_FishTrap.java
new file mode 100644
index 0000000000..7c0be39146
--- /dev/null
+++ b/src/Java/gtPlusPlus/core/gui/machine/GUI_FishTrap.java
@@ -0,0 +1,58 @@
+package gtPlusPlus.core.gui.machine;
+
+import gtPlusPlus.core.container.Container_FishTrap;
+import gtPlusPlus.core.lib.CORE;
+import gtPlusPlus.core.tileentities.general.TileEntityFishTrap;
+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_FishTrap extends GuiContainer {
+
+ private static final ResourceLocation craftingTableGuiTextures = new ResourceLocation(CORE.MODID, "textures/gui/BronzeCraftingTable.png");
+
+ public GUI_FishTrap(InventoryPlayer player_inventory, TileEntityFishTrap te){
+ super(new Container_FishTrap(player_inventory, te));
+ }
+
+
+ @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);
+ }
+
+
+ //This method is called when the Gui is first called!
+ @Override
+ public void initGui()
+ {
+ //You have to add this line for the Gui to function properly!
+ super.initGui();
+
+ //The parameters of GuiButton are(id, x, y, width, height, text);
+ //this.buttonList.add(new GuiButton( 1, 367, 132, 18, 18, "X"));
+ //this.buttonList.add(new GuiButton( 2, 385, 132, 18, 18, "Y"));
+ //NOTE: the id always has to be different or else it might get called twice or never!
+
+ //Add any other buttons here too!
+ }
+
+} \ No newline at end of file