| Constructor and Description |
|---|
ServerDatabase(java.lang.String key) |
| Modifier and Type | Method and Description |
|---|---|
static ServerDatabase |
getInstance(java.lang.String modID)
synchronized for avoid ConcurrentModificationException with instances
|
DBFolder |
getNonPersistentFolder() |
DBFolder |
getPersistentFolder() |
static void |
onServerStarting() |
static void |
onServerStopping() |
void |
readFromNBT(NBTTagCompound compound) |
NBTTagCompound |
writeToNBT(NBTTagCompound compound) |
public static void onServerStarting()
public static void onServerStopping()
public static ServerDatabase getInstance(java.lang.String modID)
public DBFolder getPersistentFolder()
getPersistentFolder in interface Databasepublic DBFolder getNonPersistentFolder()
getNonPersistentFolder in interface Databasepublic void readFromNBT(NBTTagCompound compound)
public NBTTagCompound writeToNBT(NBTTagCompound compound)