diff options
| author | Kiwi <42833050+Kiwi233@users.noreply.github.com> | 2020-05-22 20:23:55 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-22 20:23:55 +0800 |
| commit | 56689ec7b67c46c882d49da4742770e3397a4e9f (patch) | |
| tree | 879a3372906ec2c5f2a53a4ac46f7dde860a654f /src/main/java/client/gui/GUIContainer_ModularNuclearReactor.java | |
| parent | bc19f3ab32c9bccbf936bbeffcc8ddad967ffffd (diff) | |
| parent | 306a0822c27c59cdbd0a61698939a2dfc02068d2 (diff) | |
| download | GT5-Unofficial-56689ec7b67c46c882d49da4742770e3397a4e9f.tar.gz GT5-Unofficial-56689ec7b67c46c882d49da4742770e3397a4e9f.tar.bz2 GT5-Unofficial-56689ec7b67c46c882d49da4742770e3397a4e9f.zip | |
Merge pull request #1 from kekzdealer/master
5/22
Diffstat (limited to 'src/main/java/client/gui/GUIContainer_ModularNuclearReactor.java')
| -rw-r--r-- | src/main/java/client/gui/GUIContainer_ModularNuclearReactor.java | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/main/java/client/gui/GUIContainer_ModularNuclearReactor.java b/src/main/java/client/gui/GUIContainer_ModularNuclearReactor.java new file mode 100644 index 0000000000..d6f2a61ce4 --- /dev/null +++ b/src/main/java/client/gui/GUIContainer_ModularNuclearReactor.java @@ -0,0 +1,46 @@ +package client.gui;
+
+import org.lwjgl.opengl.GL11;
+
+import common.container.Container_ModularNuclearReactor;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import kekztech.KekzCore;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.gui.inventory.GuiContainer;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.util.ResourceLocation;
+
+public class GUIContainer_ModularNuclearReactor extends GuiContainer {
+
+ private ResourceLocation texture = new ResourceLocation(KekzCore.MODID, "textures/gui/MultiblockDisplay_REACTOR.png");
+
+ private InventoryPlayer inventory;
+ private IGregTechTileEntity te;
+
+ public GUIContainer_ModularNuclearReactor(IGregTechTileEntity te, EntityPlayer player)
+ {
+ super(new Container_ModularNuclearReactor(te, player));
+ inventory = player.inventory;
+ this.te = te;
+ }
+
+ @Override
+ protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3)
+ {
+ Minecraft.getMinecraft().renderEngine.bindTexture(texture);
+
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+
+ final int x = (super.width - super.xSize) / 2;
+ final int y = (super.height - super.ySize) / 2;
+ super.drawTexturedModalRect(x, y, 0, 0, super.xSize, super.ySize);
+ }
+
+ @Override
+ protected void drawGuiContainerForegroundLayer(int par1, int par2)
+ {
+
+ }
+
+}
|
