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
Reads schematic files using the Sponge Schematic Specification.
-
Constructor Summary
-
Method Summary
Methods inherited from class com.sk89q.worldedit.extent.clipboard.io.NBTSchematicReader
getTag, requireTag
-
Constructor Details
-
SpongeSchematicReader
Create a new instance.- Parameters:
inputStream
- the input stream to read from
-
-
Method Details
-
read
Description copied from interface:ClipboardReader
Read aClipboard
.- Returns:
- the read clipboard
- Throws:
IOException
- thrown on I/O error
-
getDataVersion
Description copied from interface:ClipboardReader
Get the DataVersion from a file (if possible).- Returns:
- The data version, or empty
-
close
- Throws:
IOException
-