WorldBlueprints

public final class WorldBlueprints

The world blueprints a plugin copies into new worlds, such as dungeon and level maps. Each blueprint is converted once into the format this server saves worlds in, so its copies load without the server converting every one, and no copy reads a blueprint while its conversion replaces it.

Functions

Link copied to clipboard
public static void convert(Path root, World.Environment environment, String name)
Queues the one-time conversion of a blueprint, unless it already loads without converting.
Link copied to clipboard
public static Path copy(Path root, World.Environment environment, String worldName, WorldBlueprint.CopyListener listener)
Copies a blueprint into a new world named worldName, in the folder this server loads that world from.
Link copied to clipboard
public static void validate(Path root, World.Environment environment)
Restores a blueprint an interrupted conversion left half replaced, then checks that this server can copy it.