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)
WorldStorageProvidersetWorld in interface WorldStorageProviderworld - The world to use.public File getFolder()
WorldStorageProvidergetFolder in interface WorldStorageProviderpublic AnvilChunkIoService getChunkIoService()
WorldStorageProviderChunkIoService for this world, to be used for reading and writing chunk
data.getChunkIoService in interface WorldStorageProviderChunkIoService.public NbtWorldMetadataService getMetadataService()
WorldStorageProviderWorldMetadataService for this world, to be used for reading and writing
world metadata (seed, time, so on).getMetadataService in interface WorldStorageProviderWorldMetadataService.public StructureDataService getStructureDataService()
WorldStorageProviderStructureDataService for this world, to be used for reading and writing data
for structures.getStructureDataService in interface WorldStorageProviderStructureDataService.public PlayerDataService getPlayerDataService()
WorldStorageProviderPlayerDataService for this world, to be used for reading and writing data
for online and offline players.getPlayerDataService in interface WorldStorageProviderPlayerDataService.public ScoreboardIoService getScoreboardIoService()
WorldStorageProviderScoreboardIoService for this world, to be used for reading and writing data
for scoreboards.getScoreboardIoService in interface WorldStorageProviderScoreboardIoService.public JsonPlayerStatisticIoService getPlayerStatisticIoService()
WorldStorageProviderPlayerStatisticIoService for this world, to be used for reading and writing
player statistics.getPlayerStatisticIoService in interface WorldStorageProviderPlayerStatisticIoService.public FunctionIoService getFunctionIoService()
WorldStorageProviderFunctionIoService for this world, to be used for reading and writing
functions.getFunctionIoService in interface WorldStorageProviderFunctionIoService.Copyright © 2021. All rights reserved.