Formatted code

This commit is contained in:
yueh
2015-12-24 02:03:16 +01:00
parent e94a0cfccf
commit c9e8a6e939
216 changed files with 1196 additions and 1187 deletions
@@ -29,8 +29,8 @@ import appeng.api.networking.IGridNode;
/**
* Nested iterator for {@link appeng.me.MachineSet}
*
* Traverses first over the {@link appeng.me.MachineSet}
* and then over every containing {@link appeng.api.networking.IGridNode}
* Traverses first over the {@link appeng.me.MachineSet} and then over every containing
* {@link appeng.api.networking.IGridNode}
*/
public class GridNodeIterator implements Iterator<IGridNode>
{
+4 -3
View File
@@ -41,12 +41,13 @@ public class GridStorage implements IGridStorage
private final GridStorageSearch mySearchEntry; // keep myself in the list until I'm
private final WeakHashMap<GridStorage, Boolean> divided = new WeakHashMap<GridStorage, Boolean>();
private WeakReference<IGrid> internalGrid = null;
// lost...
/**
* for use with world settings
*
* @param id ID of grid storage
* @param id ID of grid storage
* @param gss grid storage search
*/
public GridStorage( final long id, final GridStorageSearch gss )
@@ -60,8 +61,8 @@ public class GridStorage implements IGridStorage
* for use with world settings
*
* @param input array of bytes string
* @param id ID of grid storage
* @param gss grid storage search
* @param id ID of grid storage
* @param gss grid storage search
*/
public GridStorage( final String input, final long id, final GridStorageSearch gss )
{
-1
View File
@@ -390,7 +390,6 @@ public class GridStorageCache implements IStorageGrid
}
}
private class CellChangeTracker
{
+3 -3
View File
@@ -140,14 +140,14 @@ public class SecurityCache implements ISecurityGrid
public void populateGridStorage( final IGridStorage destinationStorage )
{
} @Override
}
@Override
public boolean isAvailable()
{
return this.securityProvider.size() == 1 && this.securityProvider.get( 0 ).isSecurityEnabled();
}
@Override
public boolean hasPermission( final EntityPlayer player, final SecurityPermissions perm )
{
+1 -1
View File
@@ -55,7 +55,7 @@ public class TickTracker implements Comparable<TickTracker>
public long getAvgNanos()
{
return ( this.LastFiveTicksTime / 5 );
return( this.LastFiveTicksTime / 5 );
}
public void setRate( final int rate )
@@ -57,7 +57,7 @@ public class ControllerValidator implements IGridVisitor
final TileController c = (TileController) host;
final BlockPos pos = c.getPos();
this.minX = Math.min( pos.getX(), this.minX );
this.maxX = Math.max( pos.getX(), this.maxX );
this.minY = Math.min( pos.getY(), this.minY );
@@ -69,7 +69,9 @@ public class NetworkInventoryHandler<T extends IAEStack<T>> implements IMEInvent
{
this.myChannel = chan;
this.security = security;
this.priorityInventory = new TreeMap<Integer, List<IMEInventoryHandler<T>>>( PRIORITY_SORTER ); // TreeMultimap.create( prioritySorter, hashSorter );
this.priorityInventory = new TreeMap<Integer, List<IMEInventoryHandler<T>>>( PRIORITY_SORTER ); // TreeMultimap.create(
// prioritySorter,
// hashSorter );
}
public void addNewStorage( final IMEInventoryHandler<T> h )