Class SpongeSchematicV2Reader
java.lang.Object
com.sk89q.worldedit.extent.clipboard.io.sponge.SpongeSchematicV2Reader
- All Implemented Interfaces:
ClipboardReader
,Closeable
,AutoCloseable
Reads schematic files using the Sponge Schematic Specification (Version 2).
-
Constructor Details
-
SpongeSchematicV2Reader
public SpongeSchematicV2Reader(org.enginehub.linbus.stream.LinStream rootStream)
-
-
Method Details
-
read
Description copied from interface:ClipboardReader
Read aClipboard
.- Specified by:
read
in interfaceClipboardReader
- Returns:
- the read clipboard
- Throws:
IOException
- thrown on I/O error
-
doRead
public static Clipboard doRead(org.enginehub.linbus.tree.LinCompoundTag schematicTag) throws IOException - Throws:
IOException
-
getDataVersion
Description copied from interface:ClipboardReader
Get the DataVersion from a file (if possible).- Specified by:
getDataVersion
in interfaceClipboardReader
- Returns:
- The data version, or empty
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-