mirror of
https://github.com/GTNewHorizons/waila.git
synced 2026-11-20 04:10:04 +00:00
* update buildscript + deps * applyDecompilerCleanupToMain * remove commented out code * move to tags based injected version * cleanup code * remove .bak files
45 lines
1.2 KiB
Java
45 lines
1.2 KiB
Java
package mcp.mobius.waila.api;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Set;
|
|
|
|
/**
|
|
* Read-only interface for Waila internal config storage.<br>
|
|
* An instance of this interface is passed to most of Waila callbacks as a way to change the behavior depending on
|
|
* client settings.
|
|
*
|
|
* @author ProfMobius
|
|
*
|
|
*/
|
|
public interface IWailaConfigHandler {
|
|
|
|
/**
|
|
* Returns a set of all the currently loaded modules in the config handler.
|
|
*/
|
|
Set<String> getModuleNames();
|
|
|
|
/**
|
|
* Returns all the currently available options for a given module
|
|
*
|
|
* @param modName Module name
|
|
*/
|
|
HashMap<String, String> getConfigKeys(String modName);
|
|
|
|
/**
|
|
* Returns the current value of an option (true/false) with a default value if not set.
|
|
*
|
|
* @param key Option to lookup
|
|
* @param defvalue Default values
|
|
* @return Value of the option or defvalue if not set.
|
|
*/
|
|
boolean getConfig(String key, boolean defvalue);
|
|
|
|
/**
|
|
* Returns the current value of an option (true/false) with a default value true if not set
|
|
*
|
|
* @param key Option to lookup
|
|
* @return Value of the option or true if not set.
|
|
*/
|
|
boolean getConfig(String key);
|
|
}
|