final variables and parameters

This commit is contained in:
thatsIch
2015-09-30 14:24:40 +02:00
parent 059523f543
commit 8b3a954f73
732 changed files with 9253 additions and 9256 deletions
@@ -29,7 +29,7 @@ public class CellConfig extends AppEngInternalInventory
final ItemStack is;
public CellConfig( ItemStack is )
public CellConfig( final ItemStack is )
{
super( null, 63 );
this.is = is;
@@ -28,7 +28,7 @@ public final class CellUpgrades extends StackUpgradeInventory
{
final ItemStack is;
public CellUpgrades( ItemStack is, int upgrades )
public CellUpgrades( final ItemStack is, final int upgrades )
{
super( is, null, upgrades );
this.is = is;
@@ -36,7 +36,7 @@ public class NetworkToolViewer implements INetworkTool
final ItemStack is;
final IGridHost gh;
public NetworkToolViewer( ItemStack is, IGridHost gHost )
public NetworkToolViewer( final ItemStack is, final IGridHost gHost )
{
this.is = is;
this.gh = gHost;
@@ -54,25 +54,25 @@ public class NetworkToolViewer implements INetworkTool
}
@Override
public ItemStack getStackInSlot( int i )
public ItemStack getStackInSlot( final int i )
{
return this.inv.getStackInSlot( i );
}
@Override
public ItemStack decrStackSize( int i, int j )
public ItemStack decrStackSize( final int i, final int j )
{
return this.inv.decrStackSize( i, j );
}
@Override
public ItemStack getStackInSlotOnClosing( int i )
public ItemStack getStackInSlotOnClosing( final int i )
{
return this.inv.getStackInSlotOnClosing( i );
}
@Override
public void setInventorySlotContents( int i, ItemStack itemstack )
public void setInventorySlotContents( final int i, final ItemStack itemstack )
{
this.inv.setInventorySlotContents( i, itemstack );
}
@@ -103,25 +103,25 @@ public class NetworkToolViewer implements INetworkTool
}
@Override
public boolean isUseableByPlayer( EntityPlayer entityplayer )
public boolean isUseableByPlayer( final EntityPlayer entityplayer )
{
return this.inv.isUseableByPlayer( entityplayer );
}
@Override
public void openInventory(EntityPlayer player)
public void openInventory( final EntityPlayer player)
{
this.inv.openInventory(player);
}
@Override
public void closeInventory(EntityPlayer player)
public void closeInventory( final EntityPlayer player)
{
this.inv.closeInventory(player);
}
@Override
public boolean isItemValidForSlot( int i, ItemStack itemstack )
public boolean isItemValidForSlot( final int i, final ItemStack itemstack )
{
return this.inv.isItemValidForSlot( i, itemstack ) && itemstack.getItem() instanceof IUpgradeModule && ( (IUpgradeModule) itemstack.getItem() ).getType( itemstack ) != null;
}
@@ -140,15 +140,15 @@ public class NetworkToolViewer implements INetworkTool
@Override
public int getField(
int id )
final int id )
{
return inv.getField( id );
}
@Override
public void setField(
int id,
int value )
final int id,
final int value )
{
inv.setField( id, value );
}
@@ -48,7 +48,7 @@ public class PortableCellViewer extends MEMonitorHandler<IAEItemStack> implement
private final IAEItemPowerStorage ips;
private final int inventorySlot;
public PortableCellViewer( ItemStack is, int slot )
public PortableCellViewer( final ItemStack is, final int slot )
{
super( CellInventory.getCell( is, null ) );
this.ips = (IAEItemPowerStorage) is.getItem();
@@ -69,7 +69,7 @@ public class PortableCellViewer extends MEMonitorHandler<IAEItemStack> implement
}
@Override
public double extractAEPower( double amt, Actionable mode, PowerMultiplier usePowerMultiplier )
public double extractAEPower( double amt, final Actionable mode, final PowerMultiplier usePowerMultiplier )
{
amt = usePowerMultiplier.multiply( amt );
@@ -100,9 +100,9 @@ public class PortableCellViewer extends MEMonitorHandler<IAEItemStack> implement
{
@Override
public void updateSetting( IConfigManager manager, Enum settingName, Enum newValue )
public void updateSetting( final IConfigManager manager, final Enum settingName, final Enum newValue )
{
NBTTagCompound data = Platform.openNbtData( PortableCellViewer.this.target );
final NBTTagCompound data = Platform.openNbtData( PortableCellViewer.this.target );
manager.writeToNBT( data );
}
} );
@@ -28,7 +28,7 @@ public class QuartzKnifeObj implements IGuiItemObject
final ItemStack is;
public QuartzKnifeObj( ItemStack o )
public QuartzKnifeObj( final ItemStack o )
{
this.is = o;
}