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
@@ -68,8 +68,8 @@ public class ItemEncodedPattern extends AEBaseItem implements ICraftingPatternIt
@Override
public void registerIcons(
ClientHelper proxy,
String name )
final ClientHelper proxy,
final String name )
{
encodedPatternModel = res = proxy.setIcon( this, name );
@@ -79,15 +79,15 @@ public class ItemEncodedPattern extends AEBaseItem implements ICraftingPatternIt
@Override
public ModelResourceLocation getModelLocation(
ItemStack stack )
final ItemStack stack )
{
if ( recursive == false )
{
this.recursive = true;
ItemEncodedPattern iep = (ItemEncodedPattern) stack.getItem();
final ItemEncodedPattern iep = (ItemEncodedPattern) stack.getItem();
ItemStack is = iep.getOutput( stack );
final ItemStack is = iep.getOutput( stack );
if ( Minecraft.getMinecraft().thePlayer.isSneaking() )
{
return encodedPatternModel;
@@ -103,7 +103,7 @@ public class ItemEncodedPattern extends AEBaseItem implements ICraftingPatternIt
}
@Override
public ItemStack onItemRightClick( ItemStack stack, World w, EntityPlayer player )
public ItemStack onItemRightClick( final ItemStack stack, final World w, final EntityPlayer player )
{
this.clearPattern( stack, player );
@@ -112,19 +112,19 @@ public class ItemEncodedPattern extends AEBaseItem implements ICraftingPatternIt
@Override
public boolean onItemUseFirst(
ItemStack stack,
EntityPlayer player,
World world,
BlockPos pos,
EnumFacing side,
float hitX,
float hitY,
float hitZ )
final ItemStack stack,
final EntityPlayer player,
final World world,
final BlockPos pos,
final EnumFacing side,
final float hitX,
final float hitY,
final float hitZ )
{
return this.clearPattern( stack, player );
}
private boolean clearPattern( ItemStack stack, EntityPlayer player )
private boolean clearPattern( final ItemStack stack, final EntityPlayer player )
{
if( player.isSneaking() )
{
@@ -133,13 +133,13 @@ public class ItemEncodedPattern extends AEBaseItem implements ICraftingPatternIt
return false;
}
InventoryPlayer inv = player.inventory;
final InventoryPlayer inv = player.inventory;
for( int s = 0; s < player.inventory.getSizeInventory(); s++ )
{
if( inv.getStackInSlot( s ) == stack )
{
for( ItemStack blankPattern : AEApi.instance().definitions().materials().blankPattern().maybeStack( stack.stackSize ).asSet() )
for( final ItemStack blankPattern : AEApi.instance().definitions().materials().blankPattern().maybeStack( stack.stackSize ).asSet() )
{
inv.setInventorySlotContents( s, blankPattern );
}
@@ -153,9 +153,9 @@ public class ItemEncodedPattern extends AEBaseItem implements ICraftingPatternIt
}
@Override
public void addCheckedInformation( ItemStack stack, EntityPlayer player, List<String> lines, boolean displayMoreInfo )
public void addCheckedInformation( final ItemStack stack, final EntityPlayer player, final List<String> lines, final boolean displayMoreInfo )
{
ICraftingPatternDetails details = this.getPatternForItem( stack, player.worldObj );
final ICraftingPatternDetails details = this.getPatternForItem( stack, player.worldObj );
if( details == null )
{
@@ -163,17 +163,17 @@ public class ItemEncodedPattern extends AEBaseItem implements ICraftingPatternIt
return;
}
boolean isCrafting = details.isCraftable();
final boolean isCrafting = details.isCraftable();
IAEItemStack[] in = details.getCondensedInputs();
IAEItemStack[] out = details.getCondensedOutputs();
final IAEItemStack[] in = details.getCondensedInputs();
final IAEItemStack[] out = details.getCondensedOutputs();
String label = ( isCrafting ? GuiText.Crafts.getLocal() : GuiText.Creates.getLocal() ) + ": ";
String and = ' ' + GuiText.And.getLocal() + ' ';
String with = GuiText.With.getLocal() + ": ";
final String label = ( isCrafting ? GuiText.Crafts.getLocal() : GuiText.Creates.getLocal() ) + ": ";
final String and = ' ' + GuiText.And.getLocal() + ' ';
final String with = GuiText.With.getLocal() + ": ";
boolean first = true;
for( IAEItemStack anOut : out )
for( final IAEItemStack anOut : out )
{
if( anOut == null )
{
@@ -185,7 +185,7 @@ public class ItemEncodedPattern extends AEBaseItem implements ICraftingPatternIt
}
first = true;
for( IAEItemStack anIn : in )
for( final IAEItemStack anIn : in )
{
if( anIn == null )
{
@@ -198,19 +198,19 @@ public class ItemEncodedPattern extends AEBaseItem implements ICraftingPatternIt
}
@Override
public ICraftingPatternDetails getPatternForItem( ItemStack is, World w )
public ICraftingPatternDetails getPatternForItem( final ItemStack is, final World w )
{
try
{
return new PatternHelper( is, w );
}
catch( Throwable t )
catch( final Throwable t )
{
return null;
}
}
public ItemStack getOutput( ItemStack item )
public ItemStack getOutput( final ItemStack item )
{
ItemStack out = SIMPLE_CACHE.get( item );
if( out != null )
@@ -218,13 +218,13 @@ public class ItemEncodedPattern extends AEBaseItem implements ICraftingPatternIt
return out;
}
World w = CommonHelper.proxy.getWorld();
final World w = CommonHelper.proxy.getWorld();
if( w == null )
{
return null;
}
ICraftingPatternDetails details = this.getPatternForItem( item, w );
final ICraftingPatternDetails details = this.getPatternForItem( item, w );
if( details == null )
{