Deleted unnecessary casts with Eclipse

This commit is contained in:
Andrew
2014-09-28 11:56:16 -07:00
parent 94d5319038
commit da63aca95c
89 changed files with 348 additions and 360 deletions
@@ -313,7 +313,7 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
if ( finalOutput.equals( what ) )
{
if ( myLastLink != null )
return ((CraftingLink) myLastLink).injectItems( (IAEItemStack) what.copy(), type );
return ((CraftingLink) myLastLink).injectItems( what.copy(), type );
return what; // ignore it.
}
@@ -331,7 +331,7 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
{
if ( myLastLink != null )
{
leftOver.add( ((CraftingLink) myLastLink).injectItems( (IAEItemStack) used.copy(), type ) );
leftOver.add( ((CraftingLink) myLastLink).injectItems( used.copy(), type ) );
return leftOver;
}
@@ -391,7 +391,7 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
if ( myLastLink != null )
{
what.add( ((CraftingLink) myLastLink).injectItems( (IAEItemStack) insert.copy(), type ) );
what.add( ((CraftingLink) myLastLink).injectItems( insert.copy(), type ) );
return what;
}
@@ -61,7 +61,7 @@ public class QuantumCalculator extends MBCalculator
num++;
if ( num == 5 )
{
flags = (byte) (num);
flags = (num);
c.setCenter( te );
}
else
@@ -69,7 +69,7 @@ public class QuantumCalculator extends MBCalculator
if ( num == 1 || num == 3 || num == 7 || num == 9 )
flags = (byte) (tqb.corner | num);
else
flags = (byte) (num);
flags = (num);
c.Ring[ringNum++] = te;
}
@@ -133,7 +133,7 @@ public class QuantumCluster implements ILocatable, IAECluster
if ( myOtherSide instanceof QuantumCluster )
{
QuantumCluster sideA = (QuantumCluster) this;
QuantumCluster sideA = this;
QuantumCluster sideB = (QuantumCluster) myOtherSide;
if ( sideA.isActive() && sideB.isActive() )