The SchematicManager handles loading, saving, and parsing of island schematics.
Methods
getSchematic
Schematic getSchematic(String name)
Get a schematic by its name.
The schematic with that name or null if not found
getSchematics
List<String> getSchematics()
Get a list of all the schematics.
Schematic Parsers
registerSchematicParser
void registerSchematicParser(SchematicParser schematicParser)
Register a new schematic parser. Files will be parsed using the registered parsers. The plugin will attempt to parse the schematic files using each of the parsers in the same order they were registered. If no parsers are available, or no parser could parse the file, the plugin will use the default parser.
The schematic-parser to register
getSchematicParsers
List<SchematicParser> getSchematicParsers()
Get all the registered parsers, in the same order they were registered.
List of registered schematic parsers
Saving Schematics
saveSchematic (Simple)
void saveSchematic(SuperiorPlayer superiorPlayer, String schematicName)
void saveSchematic(SuperiorPlayer superiorPlayer, String schematicName, boolean saveAir)
Save a schematic using the player’s WorldEdit selection.
The player who saves the schematic
Whether to save air blocks into the schematic
saveSchematic (With Positions)
void saveSchematic(Location pos1, Location pos2, int offsetX, int offsetY, int offsetZ, String schematicName)
void saveSchematic(Location pos1, Location pos2, int offsetX, int offsetY, int offsetZ, float yaw, float pitch, String schematicName)
void saveSchematic(Location pos1, Location pos2, int offsetX, int offsetY, int offsetZ, String schematicName, Runnable callable)
void saveSchematic(Location pos1, Location pos2, int offsetX, int offsetY, int offsetZ, float yaw, float pitch, String schematicName, @Nullable Runnable callable)
Save a schematic from two positions.
First position for the schematic
Second position for the schematic
The offset x value for the schematic (from minimum location between the two)
The offset y value for the schematic (from minimum location between the two)
The offset z value for the schematic (from minimum location between the two)
The yaw value of the schematic
The pitch value of the schematic
The new schematic name that will be created
A runnable that will be ran after the task is completed (nullable)
saveSchematic (With Options)
void saveSchematic(Location pos1, Location pos2, SchematicOptions schematicOptions)
void saveSchematic(Location pos1, Location pos2, SchematicOptions schematicOptions, @Nullable Runnable callable)
Save a schematic with custom options.
First position for the schematic
Second position for the schematic
The options for creating the new schematic
A runnable that will be ran after the task is completed (nullable)