public class NbtWorldMetadataService extends Object implements WorldMetadataService
WorldMetadataService.WorldFinalValues| Constructor and Description |
|---|
NbtWorldMetadataService(GlowWorld world,
File dir)
Creates the instance for the given world's metadata.
|
| Modifier and Type | Method and Description |
|---|---|
WorldMetadataService.WorldFinalValues |
readWorldData()
Reads the world's metadata from storage, including final values such as seed and UUID that
are only set on first load.
|
void |
writeWorldData()
Write the world's metadata to storage.
|
public NbtWorldMetadataService(GlowWorld world, File dir)
world - the worlddir - the world's metadata folder, containing uid.dat and level.dat if the world has
been previously saved; if this folder doesn't exist, it is createdpublic WorldMetadataService.WorldFinalValues readWorldData()
WorldMetadataServicereadWorldData in interface WorldMetadataServiceWorldMetadataService.WorldFinalValues with the seed and UUID.public void writeWorldData()
throws IOException
WorldMetadataServicewriteWorldData in interface WorldMetadataServiceIOException - if an I/O error occurs.Copyright © 2021. All rights reserved.