Class CommonClass

java.lang.Object
com.dashtiss.tpsnitch.CommonClass

public class CommonClass extends Object
Shared logic for TPSnitch across all supported loaders. Place cross-platform logic here.
  • Constructor Details

    • CommonClass

      public CommonClass()
  • Method Details

    • init

      public static void init()
      Initialize common logic. Called by loader-specific entry points. Logs mod load status and demonstrates cross-platform service use.
    • saveJson

      public boolean saveJson(String json, String path, boolean debug)
      Saves a JSON string to a file, pretty-printing it for readability.
      Parameters:
      json - Raw JSON string
      path - Path to write the file
      debug - Whether to log the save message
      Returns:
      true if successful, false otherwise