public abstract class NegativityProofStorage extends Object
Constructor and Description |
---|
NegativityProofStorage() |
Modifier and Type | Method and Description |
---|---|
void |
enable() |
abstract CompletableFuture<List<Proof>> |
getProof(UUID playerId) |
abstract CompletableFuture<List<Proof>> |
getProofForCheat(UUID playerId,
CheatKeys key) |
static NegativityProofStorage |
getStorage() |
static String |
getStorageId() |
static Map<String,NegativityProofStorage> |
getStorages() |
static void |
init() |
static void |
register(String id,
NegativityProofStorage storage) |
void |
saveProof(List<Proof> proof) |
abstract void |
saveProof(Proof proof) |
static void |
setDefaultStorage(String storageId) |
static void |
setStorageId(String storageId) |
public static Map<String,NegativityProofStorage> getStorages()
public void enable()
public abstract CompletableFuture<List<Proof>> getProof(UUID playerId)
public abstract CompletableFuture<List<Proof>> getProofForCheat(UUID playerId, CheatKeys key)
public abstract void saveProof(Proof proof)
public static NegativityProofStorage getStorage()
public static void register(String id, NegativityProofStorage storage)
public static String getStorageId()
public static void setStorageId(String storageId)
public static void setDefaultStorage(String storageId)
public static void init()