TemporaryWorldManager

Constructors

Link copied to clipboard
public void TemporaryWorldManager()

Functions

Link copied to clipboard
public static void asyncPermanentlyDeleteWorld(World world)
Whenever possible, use this async method over the sync method.
Link copied to clipboard
public static World createTemporaryWorldWithGenerator(String worldName, World.Environment environment, ChunkGenerator generator)
Creates a fresh temporary world using a caller-supplied ChunkGenerator, with no template folder on disk.
Link copied to clipboard
public static World createVoidTemporaryWorld(String worldName, World.Environment environment)
Generates a world which does not save, does not keep spawn loaded and is a void world
Link copied to clipboard
public static World loadTemporaryWorldWithGenerator(String worldName, World.Environment environment, ChunkGenerator generator)
Loads a temporary world using a caller-supplied ChunkGenerator instead of the built-in void generator.
Link copied to clipboard
public static World loadVoidTemporaryWorld(String worldName, World.Environment environment)
Generates a world which does not save, does not keep spawn loaded and is a void world
Link copied to clipboard
public static void permanentlyDeleteWorld(World world)
Link copied to clipboard
public static void syncPermanentlyDeleteWorld(World world)
This is not ideal, but it is necessary if you need to delete a world on a shutdown sequence since you can't register async tasks while shutting down, nor would it be desirable
Link copied to clipboard
public static boolean tryAsyncPermanentlyDeleteWorld(World world)
Link copied to clipboard
public static boolean tryPermanentlyDeleteWorld(World world)
Link copied to clipboard
public static boolean trySyncPermanentlyDeleteWorld(World world)
Link copied to clipboard
public static ChunkGenerator voidGenerator()
Returns a generator that leaves every chunk empty.