pick 97420a31d The big reformat of 2020

This commit is contained in:
yueh
2020-06-16 21:41:28 +02:00
parent 5304b3febe
commit 5225ea426b
2252 changed files with 95466 additions and 118582 deletions
+19 -27
View File
@@ -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;
}
}