Updated Instances (markdown)

TheMode 2020-09-28 02:33:57 +02:00
parent 1021d58b59
commit 5eb34d7045

@ -52,6 +52,6 @@ Check [here](https://github.com/Minestom/Minestom/wiki/Storage) if you want more
// Here is how to create an instance having a storage location
StorageLocation storageLocation = MinecraftServer.getStorageManager().getLocation("chunk_data");
InstanceContainer instanceContainer = instanceManager.createInstanceContainer(storageLocation);
// Save all chunks to files, you can specify a callback in order to know when the saving is done
// Save all chunks based on the IChunkLoader (instance containers save to storage location by default), you can specify a callback in order to know when the saving is done
instanceContainer.saveChunksToStorage();
```