aboutsummaryrefslogtreecommitdiff
path: root/src/Java/miscutil/gregtech/gui/GUI_SafeBlock.java
diff options
context:
space:
mode:
authorDraknyte1 <Draknyte1@hotmail.com>2016-03-21 02:46:32 +1000
committerDraknyte1 <Draknyte1@hotmail.com>2016-03-21 02:46:32 +1000
commitb6ee1cacc50dec9ee65d30d8d62f0fbe1591bdc7 (patch)
treecb6f45036f4366623a908a2dfdfa809ce5869df8 /src/Java/miscutil/gregtech/gui/GUI_SafeBlock.java
parente667f347a505929d34883b5abf595d3d6111f730 (diff)
downloadGT5-Unofficial-b6ee1cacc50dec9ee65d30d8d62f0fbe1591bdc7.tar.gz
GT5-Unofficial-b6ee1cacc50dec9ee65d30d8d62f0fbe1591bdc7.tar.bz2
GT5-Unofficial-b6ee1cacc50dec9ee65d30d8d62f0fbe1591bdc7.zip
Final version of safes for now.
Cleaned up some handler code and left some new classes in for future use. Also, skipped a build and brought a fresh one along.
Diffstat (limited to 'src/Java/miscutil/gregtech/gui/GUI_SafeBlock.java')
-rw-r--r--src/Java/miscutil/gregtech/gui/GUI_SafeBlock.java31
1 files changed, 14 insertions, 17 deletions
diff --git a/src/Java/miscutil/gregtech/gui/GUI_SafeBlock.java b/src/Java/miscutil/gregtech/gui/GUI_SafeBlock.java
index 264cc7c556..fea5c1bfc1 100644
--- a/src/Java/miscutil/gregtech/gui/GUI_SafeBlock.java
+++ b/src/Java/miscutil/gregtech/gui/GUI_SafeBlock.java
@@ -3,7 +3,6 @@ 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
@@ -12,31 +11,29 @@ public class GUI_SafeBlock
super(new CONTAINER_SafeBlock(aInventoryPlayer, aTileEntity), CORE.MODID + ":" + "textures/gui/" + "SafeBlock.png");
}
- String UUID = ((CONTAINER_SafeBlock)this.mContainer).ownerUUID;
+ //String UUID = ((CONTAINER_SafeBlock)this.mContainer).ownerUUID.toString();
boolean blockStatus = ((CONTAINER_SafeBlock)this.mContainer).blockStatus;
- String tempPlayer = PlayerCache.lookupPlayerByUUID(UUID);
+ //String tempPlayer;
+
+ private void updateVars(){
+ //UUID = ((CONTAINER_SafeBlock)this.mContainer).ownerUUID;
+ blockStatus = ((CONTAINER_SafeBlock)this.mContainer).blockStatus;
+ // tempPlayer = PlayerCache.lookupPlayerByUUID(UUID);
+ }
@Override
protected void drawGuiContainerForegroundLayer(int par1, int par2)
{
-
- UUID = ((CONTAINER_SafeBlock)this.mContainer).ownerUUID;
- blockStatus = ((CONTAINER_SafeBlock)this.mContainer).blockStatus;
- tempPlayer = PlayerCache.lookupPlayerByUUID(UUID);
-
+ updateVars();
+ //this.fontRendererObj.drawString("Owner: "+ tempPlayer, 64, 72, 4210752);
+ //this.fontRendererObj.drawString(": "+ UUID.toLowerCase(), 44, 82, 4210752);
+ this.fontRendererObj.drawString("Safe Status", 76, 61, 4210752);
if (blockStatus){
- this.fontRendererObj.drawString("Safe Status: Locked", 64, 62, 4210752);
+ this.fontRendererObj.drawString("Locked", 88, 73, 4210752);
}
else {
- this.fontRendererObj.drawString("Safe Status: Unlocked", 64, 62, 4210752);
+ this.fontRendererObj.drawString("Unlocked", 82, 73, 4210752);
}
-
- this.fontRendererObj.drawString("Owner: "+ tempPlayer, 64, 72, 4210752);
- this.fontRendererObj.drawString(": "+ tempPlayer, 64, 82, 4210752);
-
- if (!CORE.DEBUG){
-
- }
}
@Override