Class ThirdPartyConfig

java.lang.Object
me.desht.pneumaticcraft.common.config.subconfig.AuxConfigJson
me.desht.pneumaticcraft.common.config.subconfig.ThirdPartyConfig
All Implemented Interfaces:
IAuxConfig

public class ThirdPartyConfig extends AuxConfigJson
  • Field Details

  • Method Details

    • getConfigFilename

      public String getConfigFilename()
      Description copied from interface: IAuxConfig
      Get the filename (within the "pneumaticcraft/" folder in the top-level config directory) where this config should be stored.
      Returns:
      the config file name
    • writeToJson

      protected void writeToJson(com.google.gson.JsonObject json)
      Specified by:
      writeToJson in class AuxConfigJson
    • readFromJson

      protected void readFromJson(com.google.gson.JsonObject json)
      Specified by:
      readFromJson in class AuxConfigJson
    • getSidedness

      public IAuxConfig.Sidedness getSidedness()
      Description copied from interface: IAuxConfig
      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.
      Returns:
      the side configs are relevant to
    • setupDefaults

      public static void setupDefaults(Set<String> modids)
    • isEnabled

      public static boolean isEnabled(String modId)