Class AmadronPlayerOffers

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

public class AmadronPlayerOffers 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
    • getPlayerOffers

      public Map<net.minecraft.resources.ResourceLocation,AmadronPlayerOffer> getPlayerOffers()
    • save

      public static void save()
    • clear

      public void clear()
      Description copied from interface: IAuxConfig
      Clear 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:
      writeToJson in class AuxConfigJson
    • readFromJson

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

      public boolean useWorldSpecificDir()
      Description copied from interface: IAuxConfig
      If 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

      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