Package net.blueva.arcade.api.config
Interface ModuleSettings
Deprecated.
Provides access to module-specific settings from settings.yml
This interface allows game modules to read configuration values from their settings.yml file using dot-notation paths. Supports common data types and provides default value overloads for safe configuration reading.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Checks if a configuration path exists.booleangetBoolean(String path) Deprecated.Gets a boolean value from the configuration.booleangetBoolean(String path, boolean def) Deprecated.Gets a boolean value with a default fallback.doubleDeprecated.Gets a double value from the configuration.doubleDeprecated.Gets a double value with a default fallback.intDeprecated.Gets an integer value from the configuration.intDeprecated.Gets an integer value with a default fallback.Deprecated.Gets a string value from the configuration.Deprecated.Gets a string value with a default fallback.getStringList(String path) Deprecated.Gets a list of strings from the configuration.
-
Method Details
-
getString
Deprecated.Gets a string value from the configuration.- Parameters:
path- the dot-notation path to the value- Returns:
- the string value, or null if not found
-
getString
Deprecated.Gets a string value with a default fallback.- Parameters:
path- the dot-notation path to the valuedef- the default value if path not found- Returns:
- the string value, or the default if not found
-
getInt
Deprecated.Gets an integer value from the configuration.- Parameters:
path- the dot-notation path to the value- Returns:
- the integer value, or 0 if not found
-
getInt
Deprecated.Gets an integer value with a default fallback.- Parameters:
path- the dot-notation path to the valuedef- the default value if path not found- Returns:
- the integer value, or the default if not found
-
getDouble
Deprecated.Gets a double value from the configuration.- Parameters:
path- the dot-notation path to the value- Returns:
- the double value, or 0.0 if not found
-
getDouble
Deprecated.Gets a double value with a default fallback.- Parameters:
path- the dot-notation path to the valuedef- the default value if path not found- Returns:
- the double value, or the default if not found
-
getBoolean
Deprecated.Gets a boolean value from the configuration.- Parameters:
path- the dot-notation path to the value- Returns:
- the boolean value, or false if not found
-
getBoolean
Deprecated.Gets a boolean value with a default fallback.- Parameters:
path- the dot-notation path to the valuedef- the default value if path not found- Returns:
- the boolean value, or the default if not found
-
getStringList
Deprecated.Gets a list of strings from the configuration.- Parameters:
path- the dot-notation path to the list- Returns:
- the string list, or an empty list if not found
-
contains
Deprecated.Checks if a configuration path exists.- Parameters:
path- the dot-notation path to check- Returns:
- true if the path exists, false otherwise
-
ModuleConfigAPIinstead for better flexibility