Package com.dashtiss.tpsnitch
Class CommonClass
java.lang.Object
com.dashtiss.tpsnitch.CommonClass
Shared logic for TPSnitch across all supported loaders.
Place cross-platform logic here.
-
Constructor Summary
Constructors -
Method Summary
-
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
Saves a JSON string to a file, pretty-printing it for readability.- Parameters:
json- Raw JSON stringpath- Path to write the filedebug- Whether to log the save message- Returns:
- true if successful, false otherwise
-