Class SpongeSchematicV1Reader
java.lang.Object
com.sk89q.worldedit.extent.clipboard.io.sponge.SpongeSchematicV1Reader
- All Implemented Interfaces:
ClipboardReader
,Closeable
,AutoCloseable
Reads schematic files using the Sponge Schematic Specification (Version 1).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
static BlockArrayClipboard
doRead
(org.enginehub.linbus.tree.LinCompoundTag schematicTag) Get the DataVersion from a file (if possible).read()
Read aClipboard
.
-
Constructor Details
-
SpongeSchematicV1Reader
public SpongeSchematicV1Reader(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 BlockArrayClipboard 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
-