WorldBlueprint

public final class WorldBlueprint

Inspects one exported dimension, copies it without modifying the source, and replaces it with the server's own conversion of it.

Types

Link copied to clipboard
public interface CopyListener
Follows a copy into a new world folder.

Functions

Link copied to clipboard
public void adoptConversion(Path convertedWorld, boolean modernServer, int serverDataVersion)
Replaces the blueprint with the world folder the server saved while converting it, keeping no per-world identity.
Link copied to clipboard
public void copyForConversion(Path worldFolder)
Copies the blueprint into the world folder the server loads and saves to convert it.
Link copied to clipboard
public void copyTo(Path destination, World.Environment environment, boolean modernServer)
public void copyTo(Path destination, World.Environment environment, boolean modernServer, WorldBlueprint.CopyListener listener)
Link copied to clipboard
public static boolean hasInterruptedConversion(Path root)
Whether a conversion left its staged replacement or the blueprint it replaced beside this one.
Link copied to clipboard
public static WorldBlueprint inspect(Path root, World.Environment environment)
Link copied to clipboard
public boolean needsConversion(boolean modernServer, int serverDataVersion)
Whether this server rebuilds the blueprint's storage for every copy it loads: Paper 26.1+ imports any world with its own level data into its dimension storage, and every server upgrades level data an older version saved.
Link copied to clipboard
public static void recoverInterruptedConversion(Path root)
Restores a blueprint whose conversion stopped between moving it aside and moving its replacement in.
Link copied to clipboard
public void requireCompatibleServer(boolean modernServer)
Link copied to clipboard
public boolean usesModernDestination(boolean modernServer)
Worlds with their own level data retain Paper's native migration; terrain-only inputs use the live layout.