Package net.glowstone.io
Interface WorldStorageProvider
- All Known Implementing Classes:
AnvilWorldStorageProvider
public interface WorldStorageProvider
Interface for providers of world data storage, including chunks and various metadata.
-
Method Summary
Modifier and TypeMethodDescriptionGets theChunkIoService
for this world, to be used for reading and writing chunk data.Gets the folder holding the world data, if the filesystem is being used.Gets theFunctionIoService
for this world, to be used for reading and writing functions.Gets theWorldMetadataService
for this world, to be used for reading and writing world metadata (seed, time, so on).Gets thePlayerDataService
for this world, to be used for reading and writing data for online and offline players.Gets thePlayerStatisticIoService
for this world, to be used for reading and writing player statistics.Gets theScoreboardIoService
for this world, to be used for reading and writing data for scoreboards.Gets theStructureDataService
for this world, to be used for reading and writing data for structures.void
Initializes the storage to correspond to the given world.
-
Method Details
-
setWorld
Initializes the storage to correspond to the given world.- Parameters:
world
- The world to use.
-
getFolder
File getFolder()Gets the folder holding the world data, if the filesystem is being used.- Returns:
- The world folder, or null.
-
getChunkIoService
ChunkIoService getChunkIoService()Gets theChunkIoService
for this world, to be used for reading and writing chunk data.- Returns:
- The
ChunkIoService
.
-
getMetadataService
WorldMetadataService getMetadataService()Gets theWorldMetadataService
for this world, to be used for reading and writing world metadata (seed, time, so on).- Returns:
- The
WorldMetadataService
.
-
getPlayerDataService
PlayerDataService getPlayerDataService()Gets thePlayerDataService
for this world, to be used for reading and writing data for online and offline players.- Returns:
- The
PlayerDataService
.
-
getStructureDataService
StructureDataService getStructureDataService()Gets theStructureDataService
for this world, to be used for reading and writing data for structures.- Returns:
- The
StructureDataService
.
-
getScoreboardIoService
ScoreboardIoService getScoreboardIoService()Gets theScoreboardIoService
for this world, to be used for reading and writing data for scoreboards.- Returns:
- The
ScoreboardIoService
.
-
getPlayerStatisticIoService
PlayerStatisticIoService getPlayerStatisticIoService()Gets thePlayerStatisticIoService
for this world, to be used for reading and writing player statistics.- Returns:
- The
PlayerStatisticIoService
.
-
getFunctionIoService
FunctionIoService getFunctionIoService()Gets theFunctionIoService
for this world, to be used for reading and writing functions.- Returns:
- The
FunctionIoService
.
-