final variables and parameters

seeing some methods it does actually help to enforce the parameters
This commit is contained in:
thatsIch
2015-09-25 23:10:56 +02:00
parent e52400bf26
commit 410d2f1e0d
819 changed files with 9390 additions and 9396 deletions
@@ -40,7 +40,7 @@ public class GuiSpatialIOPort extends AEBaseGui
final ContainerSpatialIOPort container;
GuiImgButton units;
public GuiSpatialIOPort( InventoryPlayer inventoryPlayer, TileSpatialIOPort te )
public GuiSpatialIOPort( final InventoryPlayer inventoryPlayer, final TileSpatialIOPort te )
{
super( new ContainerSpatialIOPort( inventoryPlayer, te ) );
this.ySize = 199;
@@ -48,11 +48,11 @@ public class GuiSpatialIOPort extends AEBaseGui
}
@Override
protected void actionPerformed( GuiButton btn )
protected void actionPerformed( final GuiButton btn )
{
super.actionPerformed( btn );
boolean backwards = Mouse.isButtonDown( 1 );
final boolean backwards = Mouse.isButtonDown( 1 );
if( btn == this.units )
{
@@ -71,7 +71,7 @@ public class GuiSpatialIOPort extends AEBaseGui
}
@Override
public void drawFG( int offsetX, int offsetY, int mouseX, int mouseY )
public void drawFG( final int offsetX, final int offsetY, final int mouseX, final int mouseY )
{
this.fontRendererObj.drawString( GuiText.StoredPower.getLocal() + ": " + Platform.formatPowerLong( this.container.currentPower, false ), 13, 21, 4210752 );
this.fontRendererObj.drawString( GuiText.MaxPower.getLocal() + ": " + Platform.formatPowerLong( this.container.maxPower, false ), 13, 31, 4210752 );
@@ -83,7 +83,7 @@ public class GuiSpatialIOPort extends AEBaseGui
}
@Override
public void drawBG( int offsetX, int offsetY, int mouseX, int mouseY )
public void drawBG( final int offsetX, final int offsetY, final int mouseX, final int mouseY )
{
this.bindTexture( "guis/spatialio.png" );
this.drawTexturedModalRect( offsetX, offsetY, 0, 0, this.xSize, this.ySize );