aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/ic2/block/RTGGenerator/gui
diff options
context:
space:
mode:
authordraknyte1 <draknyte1@hotmail.com>2016-11-04 15:23:26 +1000
committerdraknyte1 <draknyte1@hotmail.com>2016-11-04 15:23:26 +1000
commit0669f5eb9d5029a8b94ec552171b0837605f7747 (patch)
tree6b40e64c04d51b7a33cf2f0b35f7232cf37c4247 /src/Java/gtPlusPlus/xmod/ic2/block/RTGGenerator/gui
parent3654052fb63a571c5eaca7f20714b87c17f7e966 (diff)
downloadGT5-Unofficial-0669f5eb9d5029a8b94ec552171b0837605f7747.tar.gz
GT5-Unofficial-0669f5eb9d5029a8b94ec552171b0837605f7747.tar.bz2
GT5-Unofficial-0669f5eb9d5029a8b94ec552171b0837605f7747.zip
$ Cleaned up the entire project.
> Much neat, very nices.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/ic2/block/RTGGenerator/gui')
-rw-r--r--src/Java/gtPlusPlus/xmod/ic2/block/RTGGenerator/gui/CONTAINER_RTG.java18
-rw-r--r--src/Java/gtPlusPlus/xmod/ic2/block/RTGGenerator/gui/GUI_RTG.java72
2 files changed, 43 insertions, 47 deletions
diff --git a/src/Java/gtPlusPlus/xmod/ic2/block/RTGGenerator/gui/CONTAINER_RTG.java b/src/Java/gtPlusPlus/xmod/ic2/block/RTGGenerator/gui/CONTAINER_RTG.java
index 7e0733de24..8336cad6f4 100644
--- a/src/Java/gtPlusPlus/xmod/ic2/block/RTGGenerator/gui/CONTAINER_RTG.java
+++ b/src/Java/gtPlusPlus/xmod/ic2/block/RTGGenerator/gui/CONTAINER_RTG.java
@@ -7,27 +7,23 @@ import ic2.core.block.generator.container.ContainerRTGenerator;
import ic2.core.slot.SlotInvSlot;
import net.minecraft.entity.player.EntityPlayer;
-public class CONTAINER_RTG
-extends ContainerRTGenerator
-{
- public CONTAINER_RTG(EntityPlayer entityPlayer, TileEntityRTG tileEntity1)
- {
+public class CONTAINER_RTG extends ContainerRTGenerator {
+ public CONTAINER_RTG(final EntityPlayer entityPlayer, final TileEntityRTG tileEntity1) {
super(entityPlayer, tileEntity1);
for (int i = 0; i < 4; i++) {
- addSlotToContainer(new SlotInvSlot(tileEntity1.fuelSlot, i, 36 + i * 18, 18));
+ this.addSlotToContainer(new SlotInvSlot(tileEntity1.fuelSlot, i, 36 + i * 18, 18));
}
for (int i = 4; i < 8; i++) {
- addSlotToContainer(new SlotInvSlot(tileEntity1.fuelSlot, i, 36 + (i - 4) * 18, 36));
+ this.addSlotToContainer(new SlotInvSlot(tileEntity1.fuelSlot, i, 36 + (i - 4) * 18, 36));
}
for (int i = 8; i < 12; i++) {
- addSlotToContainer(new SlotInvSlot(tileEntity1.fuelSlot, i, 36 + (i - 8) * 18, 54));
+ this.addSlotToContainer(new SlotInvSlot(tileEntity1.fuelSlot, i, 36 + (i - 8) * 18, 54));
}
}
@Override
- public List<String> getNetworkedFields()
- {
- List<String> ret = super.getNetworkedFields();
+ public List<String> getNetworkedFields() {
+ final List<String> ret = super.getNetworkedFields();
ret.add("storage");
diff --git a/src/Java/gtPlusPlus/xmod/ic2/block/RTGGenerator/gui/GUI_RTG.java b/src/Java/gtPlusPlus/xmod/ic2/block/RTGGenerator/gui/GUI_RTG.java
index 756d272c9d..d7cdc17fe8 100644
--- a/src/Java/gtPlusPlus/xmod/ic2/block/RTGGenerator/gui/GUI_RTG.java
+++ b/src/Java/gtPlusPlus/xmod/ic2/block/RTGGenerator/gui/GUI_RTG.java
@@ -12,40 +12,40 @@ import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
@SideOnly(Side.CLIENT)
-public class GUI_RTG
- extends GuiRTGenerator
-{
- public CONTAINER_RTG container;
- public String name;
-
- public GUI_RTG(CONTAINER_RTG container1)
- {
- super(container1);
-
- this.container = container1;
- this.name = "RTG Mach II";
- }
-
- @Override
-protected void drawGuiContainerForegroundLayer(int par1, int par2)
- {
- this.fontRendererObj.drawString(this.name, (this.xSize - this.fontRendererObj.getStringWidth(this.name)) / 2, 4, 4210752);
-
- GuiTooltipHelper.drawAreaTooltip(par1 - this.guiLeft, par2 - this.guiTop, StatCollector.translateToLocalFormatted("ic2.generic.text.bufferEU", new Object[] { Double.valueOf(((TileEntityRTG)this.container.base).storage) }), 117, 38, 150, 48);
- }
-
- @Override
-protected void drawGuiContainerBackgroundLayer(float f, int x, int y)
- {
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- this.mc.getTextureManager().bindTexture(background);
- int j = (this.width - this.xSize) / 2;
- int k = (this.height - this.ySize) / 2;
- drawTexturedModalRect(j, k, 0, 0, this.xSize, this.ySize);
-
- int i1 = ((TileEntityRTG)this.container.base).gaugeStorageScaled(31);
- drawTexturedModalRect(j + 119, k + 40, 179, 3, i1, 8);
- }
-
- private static final ResourceLocation background = new ResourceLocation(IC2.textureDomain, "textures/gui/GUIRTGenerator.png");
+public class GUI_RTG extends GuiRTGenerator {
+ private static final ResourceLocation background = new ResourceLocation(IC2.textureDomain,
+ "textures/gui/GUIRTGenerator.png");
+ public CONTAINER_RTG container;
+
+ public String name;
+
+ public GUI_RTG(final CONTAINER_RTG container1) {
+ super(container1);
+
+ this.container = container1;
+ this.name = "RTG Mach II";
+ }
+
+ @Override
+ protected void drawGuiContainerBackgroundLayer(final float f, final int x, final int y) {
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ this.mc.getTextureManager().bindTexture(GUI_RTG.background);
+ final int j = (this.width - this.xSize) / 2;
+ final int k = (this.height - this.ySize) / 2;
+ this.drawTexturedModalRect(j, k, 0, 0, this.xSize, this.ySize);
+
+ final int i1 = ((TileEntityRTG) this.container.base).gaugeStorageScaled(31);
+ this.drawTexturedModalRect(j + 119, k + 40, 179, 3, i1, 8);
+ }
+
+ @Override
+ protected void drawGuiContainerForegroundLayer(final int par1, final int par2) {
+ this.fontRendererObj.drawString(this.name, (this.xSize - this.fontRendererObj.getStringWidth(this.name)) / 2, 4,
+ 4210752);
+
+ GuiTooltipHelper.drawAreaTooltip(par1 - this.guiLeft, par2 - this.guiTop,
+ StatCollector.translateToLocalFormatted("ic2.generic.text.bufferEU", new Object[] {
+ Double.valueOf(((TileEntityRTG) this.container.base).storage)
+ }), 117, 38, 150, 48);
+ }
}