public class AnvilWorldStorageProvider extends Object implements WorldStorageProvider
WorldStorageProvider
for the Anvil map format.Constructor and Description |
---|
AnvilWorldStorageProvider(File folder)
Create an instance for the given root folder.
|
Modifier and Type | Method and Description |
---|---|
AnvilChunkIoService |
getChunkIoService()
Gets the
ChunkIoService for this world, to be used for reading and writing chunk
data. |
File |
getFolder()
Gets the folder holding the world data, if the filesystem is being used.
|
FunctionIoService |
getFunctionIoService()
Gets the
FunctionIoService for this world, to be used for reading and writing
functions. |
NbtWorldMetadataService |
getMetadataService()
Gets the
WorldMetadataService for this world, to be used for reading and writing
world metadata (seed, time, so on). |
PlayerDataService |
getPlayerDataService()
Gets the
PlayerDataService for this world, to be used for reading and writing data
for online and offline players. |
JsonPlayerStatisticIoService |
getPlayerStatisticIoService()
Gets the
PlayerStatisticIoService for this world, to be used for reading and writing
player statistics. |
ScoreboardIoService |
getScoreboardIoService()
Gets the
ScoreboardIoService for this world, to be used for reading and writing data
for scoreboards. |
StructureDataService |
getStructureDataService()
Gets the
StructureDataService for this world, to be used for reading and writing data
for structures. |
void |
setWorld(GlowWorld world)
Initializes the storage to correspond to the given world.
|
public AnvilWorldStorageProvider(File folder)
folder
- the root folderpublic void setWorld(GlowWorld world)
WorldStorageProvider
setWorld
in interface WorldStorageProvider
world
- The world to use.public File getFolder()
WorldStorageProvider
getFolder
in interface WorldStorageProvider
public AnvilChunkIoService getChunkIoService()
WorldStorageProvider
ChunkIoService
for this world, to be used for reading and writing chunk
data.getChunkIoService
in interface WorldStorageProvider
ChunkIoService
.public NbtWorldMetadataService getMetadataService()
WorldStorageProvider
WorldMetadataService
for this world, to be used for reading and writing
world metadata (seed, time, so on).getMetadataService
in interface WorldStorageProvider
WorldMetadataService
.public StructureDataService getStructureDataService()
WorldStorageProvider
StructureDataService
for this world, to be used for reading and writing data
for structures.getStructureDataService
in interface WorldStorageProvider
StructureDataService
.public PlayerDataService getPlayerDataService()
WorldStorageProvider
PlayerDataService
for this world, to be used for reading and writing data
for online and offline players.getPlayerDataService
in interface WorldStorageProvider
PlayerDataService
.public ScoreboardIoService getScoreboardIoService()
WorldStorageProvider
ScoreboardIoService
for this world, to be used for reading and writing data
for scoreboards.getScoreboardIoService
in interface WorldStorageProvider
ScoreboardIoService
.public JsonPlayerStatisticIoService getPlayerStatisticIoService()
WorldStorageProvider
PlayerStatisticIoService
for this world, to be used for reading and writing
player statistics.getPlayerStatisticIoService
in interface WorldStorageProvider
PlayerStatisticIoService
.public FunctionIoService getFunctionIoService()
WorldStorageProvider
FunctionIoService
for this world, to be used for reading and writing
functions.getFunctionIoService
in interface WorldStorageProvider
FunctionIoService
.Copyright © 2021. All rights reserved.