Package com.sk89q.worldedit.command
Class SchematicCommands
java.lang.Object
com.sk89q.worldedit.command.SchematicCommands
Commands that work with schematic files.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear
(Actor actor, LocalSession session) void
delete
(Actor actor, LocalSession session, String filename) void
void
list
(Actor actor, LocalSession session, int page, boolean oldFirst, boolean newFirst, String formatName, String filter, Arguments arguments) void
load
(Actor actor, LocalSession session, String filename, String formatName, boolean randomRotate) void
loadall
(Actor actor, LocalSession session, String formatName, String filename, boolean overwrite) Deprecated.void
move
(Actor actor, LocalSession session, String directory) void
save
(Actor actor, LocalSession session, String filename, ClipboardFormat format, boolean allowOverwrite, boolean global) void
share
(Actor actor, LocalSession session, String schematicName, ClipboardShareDestination destination, ClipboardFormat format) void
unload
(Actor actor, LocalSession session, String fileName)
-
Constructor Details
-
SchematicCommands
Create a new instance.- Parameters:
worldEdit
- reference to WorldEdit
-
-
Method Details
-
loadall
@Deprecated public void loadall(Actor actor, LocalSession session, @Arg(desc="Format name.",def="fast") String formatName, @Arg(desc="File name.") String filename, @Switch(name='o',desc="Overwrite/replace existing clipboard(s)") boolean overwrite) throws FilenameException Deprecated.- Throws:
FilenameException
-
clear
- Throws:
WorldEditException
-
unload
public void unload(Actor actor, LocalSession session, @Arg(desc="File name, requires extension.") String fileName) throws WorldEditException - Throws:
WorldEditException
-
move
public void move(Actor actor, LocalSession session, @Arg(desc="Directory.") String directory) throws WorldEditException, IOException - Throws:
WorldEditException
IOException
-
load
public void load(Actor actor, LocalSession session, @Arg(desc="File name.") String filename, @Arg(desc="Format name.",def="") String formatName, @Switch(name='r',desc="Apply random rotation to the clipboard") boolean randomRotate) throws FilenameException - Throws:
FilenameException
-
save
public void save(Actor actor, LocalSession session, @Arg(desc="File name.") String filename, @Arg(desc="Format name.",def="fast") ClipboardFormat format, @Switch(name='f',desc="Overwrite an existing file.") boolean allowOverwrite, @Switch(name='g',desc="Bypasses per-player-schematic folders") boolean global) throws WorldEditException - Throws:
WorldEditException
-
delete
public void delete(Actor actor, LocalSession session, @Arg(desc="File name.") String filename) throws WorldEditException, IOException - Throws:
WorldEditException
IOException
-
formats
-
list
public void list(Actor actor, LocalSession session, @ArgFlag(name='p',desc="Page to view.",def="1") int page, @Switch(name='d',desc="Sort by date, oldest first") boolean oldFirst, @Switch(name='n',desc="Sort by date, newest first") boolean newFirst, @ArgFlag(name='f',desc="Restricts by format.",def="") String formatName, @Arg(name="filter",desc="Filter for schematics",def="all") String filter, Arguments arguments) throws WorldEditException - Throws:
WorldEditException
-