Class SimplyNoShading
java.lang.Object
com.github.startsmercury.simply.no.shading.client.SimplyNoShading
Deprecated, for removal: This API element is subject to removal in a future version.
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
FieldsModifier and TypeFieldDescriptionstatic final org.slf4j.LoggerDeprecated, for removal: This API element is subject to removal in a future version.This mod's logger. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Creates a newSimplyNoShadinginstance. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Returns the config.Deprecated, for removal: This API element is subject to removal in a future version.Returns the config storage.static SimplyNoShadingDeprecated, for removal: This API element is subject to removal in a future version.Returns the first instance of theSimplyNoShadingclass.voidDeprecated, for removal: This API element is subject to removal in a future version.Loads the config from theconfig storagelogging any errors caught.voidDeprecated, for removal: This API element is subject to removal in a future version.Saves the config to theconfig storagelogging any errors caught.voidDeprecated, for removal: This API element is subject to removal in a future version.Sets a new config.voidsetConfigStorage(Storage<Config> configStorage) Deprecated, for removal: This API element is subject to removal in a future version.Sets a new config storage.
-
Field Details
-
LOGGER
public static final org.slf4j.Logger LOGGERDeprecated, for removal: This API element is subject to removal in a future version.This mod's logger.
-
-
Constructor Details
-
SimplyNoShading
public SimplyNoShading()Deprecated, for removal: This API element is subject to removal in a future version.Creates a newSimplyNoShadinginstance.
-
-
Method Details
-
getFirstInstance
Deprecated, for removal: This API element is subject to removal in a future version.Returns the first instance of theSimplyNoShadingclass.- Returns:
- the first instance of the
SimplyNoShadingclass
-
getConfig
Deprecated, for removal: This API element is subject to removal in a future version.Returns the config. It is responsible in storing the states that may modify the behavior of the mod- Returns:
- the config
-
getConfigStorage
Deprecated, for removal: This API element is subject to removal in a future version.Returns the config storage. It dictates where theconfigshould be stored, most likely in a persistent file.- Returns:
- the config storage
-
loadConfig
public void loadConfig()Deprecated, for removal: This API element is subject to removal in a future version.Loads the config from theconfig storagelogging any errors caught. -
saveConfig
public void saveConfig()Deprecated, for removal: This API element is subject to removal in a future version.Saves the config to theconfig storagelogging any errors caught. -
setConfig
Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.Sets a new config storage. It dictates where theconfigshould be stored, most likely in a persistent file.- Parameters:
configStorage- the new config storage
-
SimplyNoShading