pick 97420a31d The big reformat of 2020
This commit is contained in:
@@ -18,40 +18,32 @@
|
||||
|
||||
package appeng.me;
|
||||
|
||||
|
||||
import appeng.api.networking.IGridNode;
|
||||
import appeng.api.networking.IGridVisitor;
|
||||
|
||||
class GridSplitDetector implements IGridVisitor {
|
||||
|
||||
class GridSplitDetector implements IGridVisitor
|
||||
{
|
||||
private final IGridNode pivot;
|
||||
private boolean pivotFound;
|
||||
|
||||
private final IGridNode pivot;
|
||||
private boolean pivotFound;
|
||||
public GridSplitDetector(final IGridNode pivot) {
|
||||
this.pivot = pivot;
|
||||
}
|
||||
|
||||
public GridSplitDetector( final IGridNode pivot )
|
||||
{
|
||||
this.pivot = pivot;
|
||||
}
|
||||
@Override
|
||||
public boolean visitNode(final IGridNode n) {
|
||||
if (n == this.pivot) {
|
||||
this.setPivotFound(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean visitNode( final IGridNode n )
|
||||
{
|
||||
if( n == this.pivot )
|
||||
{
|
||||
this.setPivotFound( true );
|
||||
}
|
||||
return !this.isPivotFound();
|
||||
}
|
||||
|
||||
return !this.isPivotFound();
|
||||
}
|
||||
public boolean isPivotFound() {
|
||||
return this.pivotFound;
|
||||
}
|
||||
|
||||
public boolean isPivotFound()
|
||||
{
|
||||
return this.pivotFound;
|
||||
}
|
||||
|
||||
private void setPivotFound( final boolean pivotFound )
|
||||
{
|
||||
this.pivotFound = pivotFound;
|
||||
}
|
||||
private void setPivotFound(final boolean pivotFound) {
|
||||
this.pivotFound = pivotFound;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user