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 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.
-
Constructor Details
-
AnvilWorldStorageProvider
Create an instance for the given root folder.- Parameters:
folder- the root folder
-
-
Method Details
-
setWorld
Description copied from interface:WorldStorageProviderInitializes the storage to correspond to the given world.- Specified by:
setWorldin interfaceWorldStorageProvider- Parameters:
world- The world to use.
-
getFolder
Description copied from interface:WorldStorageProviderGets the folder holding the world data, if the filesystem is being used.- Specified by:
getFolderin interfaceWorldStorageProvider- Returns:
- The world folder, or null.
-
getPlayerDataService
Description copied from interface:WorldStorageProviderGets thePlayerDataServicefor this world, to be used for reading and writing data for online and offline players.- Specified by:
getPlayerDataServicein interfaceWorldStorageProvider- Returns:
- The
PlayerDataService.
-
getScoreboardIoService
Description copied from interface:WorldStorageProviderGets theScoreboardIoServicefor this world, to be used for reading and writing data for scoreboards.- Specified by:
getScoreboardIoServicein interfaceWorldStorageProvider- Returns:
- The
ScoreboardIoService.
-
getPlayerStatisticIoService
Description copied from interface:WorldStorageProviderGets thePlayerStatisticIoServicefor this world, to be used for reading and writing player statistics.- Specified by:
getPlayerStatisticIoServicein interfaceWorldStorageProvider- Returns:
- The
PlayerStatisticIoService.
-
getFunctionIoService
Description copied from interface:WorldStorageProviderGets theFunctionIoServicefor this world, to be used for reading and writing functions.- Specified by:
getFunctionIoServicein interfaceWorldStorageProvider- Returns:
- The
FunctionIoService.
-
getChunkIoService
Description copied from interface:WorldStorageProviderGets theChunkIoServicefor this world, to be used for reading and writing chunk data.- Specified by:
getChunkIoServicein interfaceWorldStorageProvider- Returns:
- The
ChunkIoService.
-
getMetadataService
Description copied from interface:WorldStorageProviderGets theWorldMetadataServicefor this world, to be used for reading and writing world metadata (seed, time, so on).- Specified by:
getMetadataServicein interfaceWorldStorageProvider- Returns:
- The
WorldMetadataService.
-
getStructureDataService
Description copied from interface:WorldStorageProviderGets theStructureDataServicefor this world, to be used for reading and writing data for structures.- Specified by:
getStructureDataServicein interfaceWorldStorageProvider- Returns:
- The
StructureDataService.
-