DiskPlayerStorageProvider

public class DiskPlayerStorageProvider implements PlayerStorageProvider

Class DiskPlayerStorageProvider. Provides diskplayerstorageprovider functionality for the Hytale server.

java.lang.Object > DiskPlayerStorageProvider

Field Summary

path

private Path path

Field path.

file

final Path file

Field file.

document

final BsonDocument document

Field document.

fileName

final String fileName

Field fileName.

Method Detail

DiskPlayerStorageProvider

public public DiskPlayerStorageProvider ()

Method DiskPlayerStorageProvider.

getPath

public Path getPath ()

Method getPath.

getPlayerStorage

public PlayerStorage getPlayerStorage ()

Method getPlayerStorage.

toString

public String toString ()

Method toString.

load

public CompletableFuture> load (@Nonnull final UUID uuid)

Method load.

Parameters:
@Nonnull final UUID uuid

save

public CompletableFuture save (@Nonnull final UUID uuid, @Nonnull final Holder holder)

Method save.

Parameters:
@Nonnull final UUID uuid
@Nonnull final Holder holder

remove

public CompletableFuture remove (@Nonnull final UUID uuid)

Method remove.

Parameters:
@Nonnull final UUID uuid

getPlayers

public Set getPlayers ()

Method getPlayers.