TemporaryWorldManager
Functions
Link copied to clipboard
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
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
Generates a world which does not save, does not keep spawn loaded and is a void world
Link copied to clipboard
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns a generator that leaves every chunk empty.