public abstract class SchematicFormat extends Object
| Modifier and Type | Field and Description |
|---|---|
static SchematicFormat |
MCEDIT |
| Modifier | Constructor and Description |
|---|---|
protected |
SchematicFormat(String name,
String... lookupNames) |
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
getBlockForId(int id,
short data) |
static SchematicFormat |
getFormat(File file) |
static SchematicFormat |
getFormat(String lookupName) |
static Set<SchematicFormat> |
getFormats() |
String[] |
getLookupNames() |
String |
getName()
Gets the official/display name for this schematic format
|
abstract boolean |
isOfFormat(File file) |
abstract CuboidClipboard |
load(File file)
Loads a schematic from the given file into a CuboidClipboard
|
abstract void |
save(CuboidClipboard clipboard,
File file)
Saves the data from the specified CuboidClipboard to the given file, overwriting any
existing data in the file
|
public static final SchematicFormat MCEDIT
public static Set<SchematicFormat> getFormats()
public static SchematicFormat getFormat(String lookupName)
public static SchematicFormat getFormat(File file)
public String getName()
public String[] getLookupNames()
public BaseBlock getBlockForId(int id, short data)
public abstract CuboidClipboard load(File file) throws IOException, DataException
file - The file to load fromIOException - If an error occurs while reading dataDataException - if data is not in the correct formatpublic abstract void save(CuboidClipboard clipboard, File file) throws IOException, DataException
clipboard - The clipboard to get data fromfile - The file to save toIOException - If an error occurs while writing dataDataException - If the clipboard has data which cannot be storedpublic abstract boolean isOfFormat(File file)
Copyright © 2010-2014. All Rights Reserved.