public static boolean isManipulator(TileEntity tile){
  if (tile != null)   return tile instanceof IEnergyManipulator;
  return false;
}

public static boolean isManipulator ( TileEntity tile ) { if ( tile != null ) return tile instanceof IEnergyManipulator ; return false ; }
checks if a tileentity is a pe manipulator ( extends ienergymanipulator )
