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 theChunkIoServicefor 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 theFunctionIoServicefor this world, to be used for reading and writing functions.Gets theWorldMetadataServicefor this world, to be used for reading and writing world metadata (seed, time, so on).Gets thePlayerDataServicefor this world, to be used for reading and writing data for online and offline players.Gets thePlayerStatisticIoServicefor this world, to be used for reading and writing player statistics.Gets theScoreboardIoServicefor this world, to be used for reading and writing data for scoreboards.Gets theStructureDataServicefor this world, to be used for reading and writing data for structures.voidInitializes 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 theChunkIoServicefor this world, to be used for reading and writing chunk data.- Returns:
- The
ChunkIoService.
-
getMetadataService
WorldMetadataService getMetadataService()Gets theWorldMetadataServicefor this world, to be used for reading and writing world metadata (seed, time, so on).- Returns:
- The
WorldMetadataService.
-
getPlayerDataService
PlayerDataService getPlayerDataService()Gets thePlayerDataServicefor this world, to be used for reading and writing data for online and offline players.- Returns:
- The
PlayerDataService.
-
getStructureDataService
StructureDataService getStructureDataService()Gets theStructureDataServicefor this world, to be used for reading and writing data for structures.- Returns:
- The
StructureDataService.
-
getScoreboardIoService
ScoreboardIoService getScoreboardIoService()Gets theScoreboardIoServicefor this world, to be used for reading and writing data for scoreboards.- Returns:
- The
ScoreboardIoService.
-
getPlayerStatisticIoService
PlayerStatisticIoService getPlayerStatisticIoService()Gets thePlayerStatisticIoServicefor this world, to be used for reading and writing player statistics.- Returns:
- The
PlayerStatisticIoService.
-
getFunctionIoService
FunctionIoService getFunctionIoService()Gets theFunctionIoServicefor this world, to be used for reading and writing functions.- Returns:
- The
FunctionIoService.
-