aboutsummaryrefslogtreecommitdiff
path: root/src/Java/miscutil/gregtech/gui/GUI_SafeBlock.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/Java/miscutil/gregtech/gui/GUI_SafeBlock.java')
-rw-r--r--src/Java/miscutil/gregtech/gui/GUI_SafeBlock.java37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/Java/miscutil/gregtech/gui/GUI_SafeBlock.java b/src/Java/miscutil/gregtech/gui/GUI_SafeBlock.java
new file mode 100644
index 0000000000..c4b2d540ba
--- /dev/null
+++ b/src/Java/miscutil/gregtech/gui/GUI_SafeBlock.java
@@ -0,0 +1,37 @@
+package miscutil.gregtech.gui;
+
+import gregtech.api.gui.GT_GUIContainerMetaTile_Machine;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import miscutil.core.lib.CORE;
+import miscutil.core.util.PlayerCache;
+import net.minecraft.entity.player.InventoryPlayer;
+
+public class GUI_SafeBlock
+ extends GT_GUIContainerMetaTile_Machine {
+ public GUI_SafeBlock(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity) {
+ super(new CONTAINER_SafeBlock(aInventoryPlayer, aTileEntity), CORE.MODID + ":" + "textures/gui/" + "SafeBlock.png");
+ }
+
+ String UUID = ((CONTAINER_SafeBlock)this.mContainer).UUID;
+ private String tempPlayer = PlayerCache.lookupPlayerByUUID(UUID);
+
+ @Override
+ protected void drawGuiContainerForegroundLayer(int par1, int par2)
+ {
+ this.fontRendererObj.drawString("Safe", 64, 64, 4210752);
+ if (!CORE.DEBUG){
+ this.fontRendererObj.drawString("Owner: "+ tempPlayer, 120, 80, 4210752);
+ }
+ }
+
+ @Override
+ protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3) {
+ super.drawGuiContainerBackgroundLayer(par1, par2, par3);
+ int x = (this.width - this.xSize) / 2;
+ int y = (this.height - this.ySize) / 2;
+ drawTexturedModalRect(x, y, 0, 0, this.xSize, this.ySize);
+ /*String UUID = ((CONTAINER_SafeBlock)this.mContainer).UUID;
+ this.fontRendererObj.drawString("Owner UUID: "+ UUID, 8, 12, 4210752);*/
+
+ }
+}