Improved readability of variables

Hopefully improved semantics of variables

Fixed typos

Added hyphenations
This commit is contained in:
thatsIch
2014-09-28 11:47:17 +02:00
parent 6b60a0996b
commit 76b147fd5b
220 changed files with 1643 additions and 1662 deletions
@@ -39,10 +39,10 @@ public class LayerISidedInventory extends LayerBase implements ISidedInventory
{
// cache of inventory state.
int sideData[][] = null;
List<ISidedInventory> invs = null;
List<ISidedInventory> inventories = null;
List<InvSot> slots = null;
invs = new ArrayList();
inventories = new ArrayList();
int slotCount = 0;
for (ForgeDirection side : ForgeDirection.VALID_DIRECTIONS)
@@ -52,13 +52,13 @@ public class LayerISidedInventory extends LayerBase implements ISidedInventory
{
ISidedInventory part = (ISidedInventory) bp;
slotCount += part.getSizeInventory();
invs.add( part );
inventories.add( part );
}
}
if ( invs.isEmpty() || slotCount == 0 )
if ( inventories.isEmpty() || slotCount == 0 )
{
invs = null;
inventories = null;
sideData = null;
slots = null;
}
@@ -69,7 +69,7 @@ public class LayerISidedInventory extends LayerBase implements ISidedInventory
int offsetForLayer = 0;
int offsetForPart = 0;
for (ISidedInventory sides : invs)
for (ISidedInventory sides : inventories)
{
offsetForPart = 0;
slotCount = sides.getSizeInventory();
@@ -94,7 +94,7 @@ public class LayerISidedInventory extends LayerBase implements ISidedInventory
if ( sideData == null || slots == null )
invLayer = null;
else
invLayer = new InvLayerData( sideData, invs, slots );
invLayer = new InvLayerData( sideData, inventories, slots );
// make sure inventory is updated before we call FMP.
super.notifyNeighbors();
@@ -106,7 +106,7 @@ public class LayerISidedInventory extends LayerBase implements ISidedInventory
if ( invLayer == null )
return null;
return invLayer.decrStackSize( slot, amount );
return invLayer.decreaseStackSize( slot, amount );
}
@Override