Class AuxConfigJson
java.lang.Object
me.desht.pneumaticcraft.common.config.subconfig.AuxConfigJson
- All Implemented Interfaces:
IAuxConfig
- Direct Known Subclasses:
AmadronPlayerOffers,ArmorFeatureStatus,ArmorHUDLayout,MicromissileDefaults,ProgWidgetConfig,ThirdPartyConfig
-
Nested Class Summary
Nested classes/interfaces inherited from interface me.desht.pneumaticcraft.common.config.subconfig.IAuxConfig
IAuxConfig.Sidedness -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled during the post-init phase; on the server, after the server has finished loading, and on the client, during the player connection process (PlayerEvent.PlayerLoggedInEvent).voidCalled during the pre-init phase, with the top-level mod config file name (pneumaticcraft.cfg).protected abstract voidreadFromJson(com.google.gson.JsonObject json) voidvoidprotected abstract voidwriteToJson(com.google.gson.JsonObject json) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.desht.pneumaticcraft.common.config.subconfig.IAuxConfig
clear, getConfigFilename, getSidedness, useWorldSpecificDir
-
Field Details
-
file
-
-
Method Details
-
preInit
Description copied from interface:IAuxConfigCalled during the pre-init phase, with the top-level mod config file name (pneumaticcraft.cfg). Pre-init configs are always loaded on both client and server (IAuxConfig.getSidedness()is ignored).- Specified by:
preInitin interfaceIAuxConfig- Parameters:
file- the config file name- Throws:
IOException- if there is a problem reading/writing any files
-
postInit
Description copied from interface:IAuxConfigCalled during the post-init phase; on the server, after the server has finished loading, and on the client, during the player connection process (PlayerEvent.PlayerLoggedInEvent).- Specified by:
postInitin interfaceIAuxConfig- Parameters:
file- the config file name- Throws:
IOException- if there is a problem reading/writing any files
-
writeToFile
- Throws:
IOException
-
tryWriteToFile
public void tryWriteToFile() -
writeToJson
protected abstract void writeToJson(com.google.gson.JsonObject json) -
readFromJson
protected abstract void readFromJson(com.google.gson.JsonObject json)
-