public void sync(){
  try {
    barrier.await();
  }
 catch (  InterruptedException|BrokenBarrierException e) {
    LogHelper.fatal(e.getLocalizedMessage());
  }
}

public void sync ( ) { try { barrier . await ( ) ; } catch ( InterruptedException | BrokenBarrierException e ) { LogHelper . fatal ( e . getLocalizedMessage ( ) ) ; } }
this method is called from the games main server thread in the server tick handler
