Code format
This commit is contained in:
@@ -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>
|
||||
{
|
||||
|
||||
@@ -43,12 +43,13 @@ public class GridStorage implements IGridStorage
|
||||
private final WeakHashMap<GridStorage, Boolean> divided = new WeakHashMap<GridStorage, Boolean>();
|
||||
public boolean isDirty = false;
|
||||
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( long id, GridStorageSearch gss )
|
||||
@@ -62,8 +63,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( String input, long id, GridStorageSearch gss )
|
||||
{
|
||||
|
||||
@@ -162,7 +162,6 @@ public class NetworkEventBus
|
||||
private static final long serialVersionUID = -3079021487019171205L;
|
||||
}
|
||||
|
||||
|
||||
class EventMethod
|
||||
{
|
||||
|
||||
@@ -199,7 +198,6 @@ public class NetworkEventBus
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class MENetworkEventInfo
|
||||
{
|
||||
|
||||
|
||||
@@ -380,7 +380,6 @@ public class GridStorageCache implements IStorageGrid
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private class CellChangeTracker
|
||||
{
|
||||
|
||||
|
||||
+3
-3
@@ -141,14 +141,14 @@ public class SecurityCache implements ISecurityGrid
|
||||
public void populateGridStorage( IGridStorage destinationStorage )
|
||||
{
|
||||
|
||||
} @Override
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAvailable()
|
||||
{
|
||||
return this.securityProvider.size() == 1 && this.securityProvider.get( 0 ).isSecurityEnabled();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public boolean hasPermission( EntityPlayer player, SecurityPermissions perm )
|
||||
{
|
||||
|
||||
+1
-1
@@ -56,7 +56,7 @@ public class TickTracker implements Comparable<TickTracker>
|
||||
|
||||
public long getAvgNanos()
|
||||
{
|
||||
return ( this.LastFiveTicksTime / 5 );
|
||||
return( this.LastFiveTicksTime / 5 );
|
||||
}
|
||||
|
||||
public void setRate( int rate )
|
||||
|
||||
@@ -153,7 +153,7 @@ public abstract class MBCalculator
|
||||
/**
|
||||
* construct the correct cluster, usually very simple.
|
||||
*
|
||||
* @param w world
|
||||
* @param w world
|
||||
* @param min min world coord
|
||||
* @param max max world coord
|
||||
*
|
||||
@@ -171,8 +171,8 @@ public abstract class MBCalculator
|
||||
/**
|
||||
* configure the multi-block tiles, most of the important stuff is in here.
|
||||
*
|
||||
* @param c updated cluster
|
||||
* @param w in world
|
||||
* @param c updated cluster
|
||||
* @param w in world
|
||||
* @param min min world coord
|
||||
* @param max max world coord
|
||||
*/
|
||||
|
||||
@@ -419,7 +419,7 @@ public class CellInventory implements ICellInventory
|
||||
}
|
||||
|
||||
// clean any old crusty stuff...
|
||||
for(; x < oldStoredItems && x < this.maxItemTypes; x++ )
|
||||
for( ; x < oldStoredItems && x < this.maxItemTypes; x++ )
|
||||
{
|
||||
this.tagCompound.removeTag( itemSlots[x] );
|
||||
this.tagCompound.removeTag( itemSlotCount[x] );
|
||||
|
||||
@@ -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( IMEInventoryHandler<T> h )
|
||||
|
||||
Reference in New Issue
Block a user