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
@@ -30,17 +30,17 @@ public class WrapperInvSlot
private final IInventory inv;
public WrapperInvSlot( IInventory inv )
public WrapperInvSlot( final IInventory inv )
{
this.inv = inv;
}
public IInventory getWrapper( int slot )
public IInventory getWrapper( final int slot )
{
return new InternalInterfaceWrapper( this.inv, slot );
}
protected boolean isItemValid( ItemStack itemstack )
protected boolean isItemValid( final ItemStack itemstack )
{
return true;
}
@@ -51,7 +51,7 @@ public class WrapperInvSlot
private final IInventory inv;
private final int slot;
public InternalInterfaceWrapper( IInventory target, int slot )
public InternalInterfaceWrapper( final IInventory target, final int slot )
{
this.inv = target;
this.slot = slot;
@@ -64,25 +64,25 @@ public class WrapperInvSlot
}
@Override
public ItemStack getStackInSlot( int i )
public ItemStack getStackInSlot( final int i )
{
return this.inv.getStackInSlot( this.slot );
}
@Override
public ItemStack decrStackSize( int i, int num )
public ItemStack decrStackSize( final int i, final int num )
{
return this.inv.decrStackSize( this.slot, num );
}
@Override
public ItemStack getStackInSlotOnClosing( int i )
public ItemStack getStackInSlotOnClosing( final int i )
{
return this.inv.getStackInSlotOnClosing( this.slot );
}
@Override
public void setInventorySlotContents( int i, ItemStack itemstack )
public void setInventorySlotContents( final int i, final ItemStack itemstack )
{
this.inv.setInventorySlotContents( this.slot, itemstack );
}
@@ -100,7 +100,7 @@ public class WrapperInvSlot
}
@Override
public boolean isUseableByPlayer( EntityPlayer entityplayer )
public boolean isUseableByPlayer( final EntityPlayer entityplayer )
{
return this.inv.isUseableByPlayer( entityplayer );
}
@@ -119,14 +119,14 @@ public class WrapperInvSlot
@Override
public void openInventory(
EntityPlayer player )
final EntityPlayer player )
{
this.inv.openInventory(player);
}
@Override
public void closeInventory(
EntityPlayer player )
final EntityPlayer player )
{
this.inv.closeInventory(player);
}
@@ -139,7 +139,7 @@ public class WrapperInvSlot
@Override
public int getField(
int id )
final int id )
{
return inv.getField( id );
}
@@ -151,7 +151,7 @@ public class WrapperInvSlot
}
@Override
public boolean isItemValidForSlot( int i, ItemStack itemstack )
public boolean isItemValidForSlot( final int i, final ItemStack itemstack )
{
return WrapperInvSlot.this.isItemValid( itemstack ) && this.inv.isItemValidForSlot( this.slot, itemstack );
}
@@ -164,8 +164,8 @@ public class WrapperInvSlot
@Override
public void setField(
int id,
int value )
final int id,
final int value )
{
inv.setField( id, value );
}