Class JSONUtils.CommonDataJSONObject

Object
JSONObject
CommonDataJSONObject
All Implemented Interfaces:
AutoCloseable
Enclosing class:
JSONUtils

public static class JSONUtils.CommonDataJSONObject extends JSONObject implements AutoCloseable
Provides a wrapper around JSONObject that allows saving and restoring its values to/from the common data folder (saves/common). Use this to have global settings that persist between saves.
Since:
2.4
  • Constructor Details

    • CommonDataJSONObject

      public CommonDataJSONObject(String filename)
      Creates a new JSONObject that will save to the provided filename in the common data folder.
      Parameters:
      filename - The filename to save to under the common data folder.
      Since:
      2.4
  • Method Details