Package net.glowstone.io.anvil
Class AnvilWorldStorageProvider
java.lang.Object
net.glowstone.io.anvil.AnvilWorldStorageProvider
- All Implemented Interfaces:
WorldStorageProvider
A
WorldStorageProvider
for the Anvil map format.-
Constructor Summary
ConstructorsConstructorDescriptionAnvilWorldStorageProvider
(File folder) Create an instance for the given root folder. -
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.
-
Constructor Details
-
AnvilWorldStorageProvider
Create an instance for the given root folder.- Parameters:
folder
- the root folder
-
-
Method Details
-
setWorld
Description copied from interface:WorldStorageProvider
Initializes the storage to correspond to the given world.- Specified by:
setWorld
in interfaceWorldStorageProvider
- Parameters:
world
- The world to use.
-
getFolder
Description copied from interface:WorldStorageProvider
Gets the folder holding the world data, if the filesystem is being used.- Specified by:
getFolder
in interfaceWorldStorageProvider
- Returns:
- The world folder, or null.
-
getPlayerDataService
Description copied from interface:WorldStorageProvider
Gets thePlayerDataService
for this world, to be used for reading and writing data for online and offline players.- Specified by:
getPlayerDataService
in interfaceWorldStorageProvider
- Returns:
- The
PlayerDataService
.
-
getScoreboardIoService
Description copied from interface:WorldStorageProvider
Gets theScoreboardIoService
for this world, to be used for reading and writing data for scoreboards.- Specified by:
getScoreboardIoService
in interfaceWorldStorageProvider
- Returns:
- The
ScoreboardIoService
.
-
getPlayerStatisticIoService
Description copied from interface:WorldStorageProvider
Gets thePlayerStatisticIoService
for this world, to be used for reading and writing player statistics.- Specified by:
getPlayerStatisticIoService
in interfaceWorldStorageProvider
- Returns:
- The
PlayerStatisticIoService
.
-
getFunctionIoService
Description copied from interface:WorldStorageProvider
Gets theFunctionIoService
for this world, to be used for reading and writing functions.- Specified by:
getFunctionIoService
in interfaceWorldStorageProvider
- Returns:
- The
FunctionIoService
.
-
getChunkIoService
Description copied from interface:WorldStorageProvider
Gets theChunkIoService
for this world, to be used for reading and writing chunk data.- Specified by:
getChunkIoService
in interfaceWorldStorageProvider
- Returns:
- The
ChunkIoService
.
-
getMetadataService
Description copied from interface:WorldStorageProvider
Gets theWorldMetadataService
for this world, to be used for reading and writing world metadata (seed, time, so on).- Specified by:
getMetadataService
in interfaceWorldStorageProvider
- Returns:
- The
WorldMetadataService
.
-
getStructureDataService
Description copied from interface:WorldStorageProvider
Gets theStructureDataService
for this world, to be used for reading and writing data for structures.- Specified by:
getStructureDataService
in interfaceWorldStorageProvider
- Returns:
- The
StructureDataService
.
-