public class MCEditSchematicFormat extends SchematicFormat
MCEDIT
Modifier | Constructor and Description |
---|---|
protected |
MCEditSchematicFormat() |
Modifier and Type | Method and Description |
---|---|
boolean |
isOfFormat(java.io.File file) |
CuboidClipboard |
load(java.io.File file)
Loads a schematic from the given file into a CuboidClipboard
|
CuboidClipboard |
load(java.io.InputStream stream) |
void |
save(CuboidClipboard clipboard,
java.io.File file)
Saves the data from the specified CuboidClipboard to the given file, overwriting any
existing data in the file
|
getBlockForId, getFormat, getFormat, getFormats, getLookupNames, getName
public CuboidClipboard load(java.io.InputStream stream) throws java.io.IOException, DataException
java.io.IOException
DataException
public CuboidClipboard load(java.io.File file) throws java.io.IOException, DataException
SchematicFormat
load
in class SchematicFormat
file
- The file to load fromjava.io.IOException
- If an error occurs while reading dataDataException
- if data is not in the correct formatpublic void save(CuboidClipboard clipboard, java.io.File file) throws java.io.IOException, DataException
SchematicFormat
save
in class SchematicFormat
clipboard
- The clipboard to get data fromfile
- The file to save tojava.io.IOException
- If an error occurs while writing dataDataException
- If the clipboard has data which cannot be storedpublic boolean isOfFormat(java.io.File file)
isOfFormat
in class SchematicFormat