public class SimplyNoShading
extends java.lang.Object
SimplyNoShading class models the Simply No Shading mod. It
contains the config, allows changing the config, and loading and saving of
the config. The model does not directly interact with the game, aside from
setConfig(Config) which reloads the level when a change is detected.
Coupling this class with the base game is the responsibility of
SimplyNoShadingClientEntrypoint (and the mixins).| Modifier and Type | Field and Description |
|---|---|
static org.apache.logging.log4j.Logger |
LOGGER
This mod's logger.
|
| Constructor and Description |
|---|
SimplyNoShading()
Creates a new
SimplyNoShading instance. |
| Modifier and Type | Method and Description |
|---|---|
Config |
getConfig()
Returns the config.
|
Storage<Config> |
getConfigStorage()
Returns the config storage.
|
static SimplyNoShading |
getFirstInstance()
Returns the first instance of the
SimplyNoShading class. |
void |
loadConfig()
Loads the config from the
config storage logging
any errors caught. |
void |
saveConfig()
Saves the config to the
config storage logging
any errors caught. |
void |
setConfig(Config config)
Sets a new config.
|
void |
setConfigStorage(Storage<Config> configStorage)
Sets a new config storage.
|
public static SimplyNoShading getFirstInstance()
SimplyNoShading class.SimplyNoShading classpublic Config getConfig()
public Storage<Config> getConfigStorage()
config
should be stored, most likely in a persistent file.public void loadConfig()
config storage logging
any errors caught.public void saveConfig()
config storage logging
any errors caught.public void setConfig(Config config)
config - the new config