This page describes how to load a world folder using AnvilLoader
In order to load a world into an instance, use the
An example of using this method to load a world is:
This will load the world inside of the
worlds/worlddirectory into the InstanceContainer, allowing you to use the instance as before but having the world loaded inside.
In order to load a world, the world folder will only need the
/regionfolder, as it contains the block data.
In order to save a world, you will have to use the
InstanceContainer#saveChunksToStorage()function, this will only work if you have previously loaded a world into the instance using AnvilLoader.