Interface ClipboardReader

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
MCEditSchematicReader, NBTSchematicReader, SpongeSchematicReader, SpongeSchematicV1Reader, SpongeSchematicV2Reader, SpongeSchematicV3Reader

public interface ClipboardReader extends Closeable
Reads Clipboards.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default OptionalInt
    Get the DataVersion from a file (if possible).
    Read a Clipboard.

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • read

      Clipboard read() throws IOException
      Read a Clipboard.
      Returns:
      the read clipboard
      Throws:
      IOException - thrown on I/O error
    • getDataVersion

      default OptionalInt getDataVersion()
      Get the DataVersion from a file (if possible).
      Returns:
      The data version, or empty