Class SimplyNoShading
java.lang.Object
com.github.startsmercury.simply.no.shading.client.SimplyNoShading
The
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).- Since:
- 6.0.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the config.Returns the config storage.static SimplyNoShadingReturns the first instance of theSimplyNoShadingclass.voidLoads the config from theconfig storagelogging any errors caught.voidSaves the config to theconfig storagelogging any errors caught.voidSets a new config.voidsetConfigStorage(Storage<Config> configStorage) Sets a new config storage.
-
Field Details
-
LOGGER
public static final org.slf4j.Logger LOGGERThis mod's logger.
-
-
Constructor Details
-
SimplyNoShading
public SimplyNoShading()Creates a newSimplyNoShadinginstance.
-
-
Method Details
-
getFirstInstance
Returns the first instance of theSimplyNoShadingclass.- Returns:
- the first instance of the
SimplyNoShadingclass
-
getConfig
Returns the config. It is responsible in storing the states that may modify the behavior of the mod- Returns:
- the config
-
getConfigStorage
Returns the config storage. It dictates where theconfigshould be stored, most likely in a persistent file.- Returns:
- the config storage
-
loadConfig
public void loadConfig()Loads the config from theconfig storagelogging any errors caught. -
saveConfig
public void saveConfig()Saves the config to theconfig storagelogging any errors caught. -
setConfig
Sets a new config. It is responsible in storing the states that may modify the behavior of the mod- Parameters:
config- the new config
-
setConfigStorage
Sets a new config storage. It dictates where theconfigshould be stored, most likely in a persistent file.- Parameters:
configStorage- the new config storage
-