mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-22 18:46:27 +01:00
Updated Instances (markdown)
parent
5eb34d7045
commit
27b4a6065b
@ -52,6 +52,7 @@ 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 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
|
||||
// Save all chunks based on the IChunkLoader (instance containers save to the current storage location by default)
|
||||
// you can specify a callback in order to know when the saving is done
|
||||
instanceContainer.saveChunksToStorage();
|
||||
```
|
Loading…
Reference in New Issue
Block a user