aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/gui
diff options
context:
space:
mode:
authorAlkalus <3060479+draknyte1@users.noreply.github.com>2018-12-24 14:55:21 +0000
committerAlkalus <3060479+draknyte1@users.noreply.github.com>2018-12-24 14:55:21 +0000
commita641e66b8417ef72acca286a74b090ae759152d8 (patch)
treeac0a6f7b350e64c6d6073bb987f04577d09883e8 /src/Java/gtPlusPlus/core/gui
parentcce81dbd131542db14eb9c12bcc47880c330e09f (diff)
downloadGT5-Unofficial-a641e66b8417ef72acca286a74b090ae759152d8.tar.gz
GT5-Unofficial-a641e66b8417ef72acca286a74b090ae759152d8.tar.bz2
GT5-Unofficial-a641e66b8417ef72acca286a74b090ae759152d8.zip
+ Added a storage container for radioactive materials.
$ Fixed Decayable dusts not working as intended, Closes #393. $ Made recycling recipe generation less verbose & more readable. $ Fixed issue with the Advanced Mufflers onConfigLoad function.
Diffstat (limited to 'src/Java/gtPlusPlus/core/gui')
-rw-r--r--src/Java/gtPlusPlus/core/gui/machine/GUI_DecayablesChest.java59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/core/gui/machine/GUI_DecayablesChest.java b/src/Java/gtPlusPlus/core/gui/machine/GUI_DecayablesChest.java
new file mode 100644
index 0000000000..094629ae48
--- /dev/null
+++ b/src/Java/gtPlusPlus/core/gui/machine/GUI_DecayablesChest.java
@@ -0,0 +1,59 @@
+package gtPlusPlus.core.gui.machine;
+
+import org.lwjgl.opengl.GL11;
+
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+
+import net.minecraft.client.gui.inventory.GuiContainer;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.util.ResourceLocation;
+
+import gtPlusPlus.core.container.Container_DecayablesChest;
+import gtPlusPlus.core.lib.CORE;
+import gtPlusPlus.core.tileentities.general.TileEntityDecayablesChest;
+
+@SideOnly(Side.CLIENT)
+public class GUI_DecayablesChest extends GuiContainer {
+
+ private static final ResourceLocation craftingTableGuiTextures = new ResourceLocation(CORE.MODID, "textures/gui/FishTrap.png");
+
+ public GUI_DecayablesChest(final InventoryPlayer player_inventory, final TileEntityDecayablesChest te){
+ super(new Container_DecayablesChest(player_inventory, te));
+ }
+
+
+ @Override
+ protected void drawGuiContainerForegroundLayer(final int i, final 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(final float f, final int i, final int j){
+ GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
+ this.mc.renderEngine.bindTexture(craftingTableGuiTextures);
+ 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);
+ }
+
+
+ //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