public abstract class AuxConfigJson extends java.lang.Object implements IAuxConfig
| Modifier and Type | Field and Description |
|---|---|
protected java.io.File |
file |
| Modifier and Type | Method and Description |
|---|---|
void |
postInit(java.io.File file)
Called during the post-init phase, after the server has finished loading.
|
void |
preInit(java.io.File file)
Called during the pre-init phase, with the top-level mod config file name (pneumaticcraft.cfg)
|
protected abstract void |
readFromJson(com.google.gson.JsonObject json) |
void |
tryWriteToFile() |
void |
writeToFile() |
protected abstract void |
writeToJson(com.google.gson.JsonObject json) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, getConfigFilename, useWorldSpecificDirpublic void preInit(java.io.File file)
throws java.io.IOException
IAuxConfigpreInit in interface IAuxConfigfile - the config file namejava.io.IOException - if there is a problem reading/writing any filespublic void postInit(java.io.File file)
throws java.io.IOException
IAuxConfigpostInit in interface IAuxConfigfile - the config file namejava.io.IOException - if there is a problem reading/writing any filespublic void writeToFile()
throws java.io.IOException
java.io.IOExceptionpublic void tryWriteToFile()
protected abstract void writeToJson(com.google.gson.JsonObject json)
protected abstract void readFromJson(com.google.gson.JsonObject json)