code: public static void writeFile(CompoundTag tag, File file) throws IOException {
          writeFile(tag, file, true, false);
      }
docs: Writes the given root CompoundTag to the given file, compressed and in big endian.
  
  @param tag  Tag to write.
  @param file File to write to.
  @throws java.io.IOException If an I/O error occurs.