Package net.glowstone.io
Interface WorldMetadataService
- All Known Implementing Classes:
NbtWorldMetadataService
public interface WorldMetadataService
Provider of I/O for world metadata.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA structure representing properties stored about a world that cannot be changed after its initialization, namely seed and UUID. -
Method Summary
Modifier and TypeMethodDescriptionReads the world's metadata from storage, including final values such as seed and UUID that are only set on first load.voidWrite the world's metadata to storage.
-
Method Details
-
readWorldData
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.- Returns:
- A
WorldMetadataService.WorldFinalValueswith the seed and UUID.
-
writeWorldData
Write the world's metadata to storage.- Throws:
IOException- if an I/O error occurs.
-