Class AmadronPlayerOffers
java.lang.Object
me.desht.pneumaticcraft.common.config.subconfig.AuxConfigJson
me.desht.pneumaticcraft.common.config.subconfig.AmadronPlayerOffers
- All Implemented Interfaces:
IAuxConfig
-
Nested Class Summary
Nested classes/interfaces inherited from interface me.desht.pneumaticcraft.common.config.subconfig.IAuxConfig
IAuxConfig.Sidedness -
Field Summary
FieldsFields inherited from class me.desht.pneumaticcraft.common.config.subconfig.AuxConfigJson
file -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear the contents of this config when init'ing a new config file.Get the filename (within the "pneumaticcraft/" folder in the top-level config directory) where this config should be stored.Map<net.minecraft.resources.ResourceLocation,AmadronPlayerOffer> Which side should these configs be loaded on? If configs are only relevant to client or server, use this to skip loading them on the other side.protected voidreadFromJson(com.google.gson.JsonObject json) static voidsave()booleanIf true, use a world-local directory for this config, outside the normal config/ hierarchy.protected voidwriteToJson(com.google.gson.JsonObject json) Methods inherited from class me.desht.pneumaticcraft.common.config.subconfig.AuxConfigJson
postInit, preInit, tryWriteToFile, writeToFile
-
Field Details
-
INSTANCE
-
-
Method Details
-
getConfigFilename
Description copied from interface:IAuxConfigGet the filename (within the "pneumaticcraft/" folder in the top-level config directory) where this config should be stored.- Returns:
- the config file name
-
getPlayerOffers
-
save
public static void save() -
clear
public void clear()Description copied from interface:IAuxConfigClear the contents of this config when init'ing a new config file. This is required for world-specific configs to avoid carrying configs between worlds when switching worlds in single-player. -
writeToJson
protected void writeToJson(com.google.gson.JsonObject json) - Specified by:
writeToJsonin classAuxConfigJson
-
readFromJson
protected void readFromJson(com.google.gson.JsonObject json) - Specified by:
readFromJsonin classAuxConfigJson
-
useWorldSpecificDir
public boolean useWorldSpecificDir()Description copied from interface:IAuxConfigIf true, use a world-local directory for this config, outside the normal config/ hierarchy. Used for world-specific (rather than game-global) saved data. World-specific data is only loaded on the server, and only in the post-init phase.- Returns:
- true to use a world-specific directory, false to use the usual config directory
-
getSidedness
Description copied from interface:IAuxConfigWhich side should these configs be loaded on? If configs are only relevant to client or server, use this to skip loading them on the other side.- Returns:
- the side configs are relevant to
-