Package net.minheur.potoflux.utils
Class UserPrefsManager
java.lang.Object
net.minheur.potoflux.utils.UserPrefsManager
This class is used to store and retrieve user preferences.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringGetter for the user lang (direct)static StringGetter for the terminal's ASCIIstatic StringgetTheme()Getter for the user's themestatic StringGetter for the user lang (asking if null)static voidRuns the reset for the terminal's ASCIIstatic voidRuns the reset for the themestatic voidRuns the reset for the user lang
-
Constructor Details
-
UserPrefsManager
public UserPrefsManager()
-
-
Method Details
-
getTerminalASCII
Getter for the terminal's ASCII- Returns:
- the terminal's ASCII
-
getStrictUserLang
Getter for the user lang (direct)- Returns:
- the user lang
-
getUserLang
Getter for the user lang (asking if null)- Returns:
- the user lang or asks the user for it
-
getTheme
Getter for the user's theme- Returns:
- the user's theme
-
resetUserLang
public static void resetUserLang()Runs the reset for the user lang -
resetTerminalAscii
public static void resetTerminalAscii()Runs the reset for the terminal's ASCII -
resetTheme
public static void resetTheme()Runs the reset for the theme
-