Class SpongeSchematicReader

java.lang.Object
com.sk89q.worldedit.extent.clipboard.io.NBTSchematicReader
com.sk89q.worldedit.extent.clipboard.io.SpongeSchematicReader
All Implemented Interfaces:
ClipboardReader, Closeable, AutoCloseable

@Deprecated public class SpongeSchematicReader extends NBTSchematicReader
Deprecated.
Slow, resource intensive, but sometimes safer than using the recommended FastSchematicReader. Avoid reading large schematics with this reader.
Reads schematic files using the Sponge Schematic Specification.
  • Constructor Details

    • SpongeSchematicReader

      public SpongeSchematicReader(NBTInputStream inputStream)
      Deprecated.
      Create a new instance.
      Parameters:
      inputStream - the input stream to read from
  • Method Details

    • read

      public Clipboard read() throws IOException
      Deprecated.
      Description copied from interface: ClipboardReader
      Read a Clipboard.
      Returns:
      the read clipboard
      Throws:
      IOException - thrown on I/O error
    • getDataVersion

      public OptionalInt getDataVersion()
      Deprecated.
      Description copied from interface: ClipboardReader
      Get the DataVersion from a file (if possible).
      Returns:
      The data version, or empty
    • close

      public void close() throws IOException
      Deprecated.
      Throws:
      IOException