Class SimplyNoShading

java.lang.Object
com.github.startsmercury.simply.no.shading.client.SimplyNoShading

@Deprecated(since="7.0.0", forRemoval=true) public class SimplyNoShading extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
As of version 7.0.0, replaced by 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
    Modifier and Type
    Field
    Description
    static final org.slf4j.Logger
    Deprecated, for removal: This API element is subject to removal in a future version.
    This mod's logger.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a new SimplyNoShading instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, 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.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the first instance of the SimplyNoShading class.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Loads the config from the config storage logging any errors caught.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Saves the config to the config storage logging any errors caught.
    void
    setConfig(Config config)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets a new config.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets a new config storage.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOGGER

      public static final org.slf4j.Logger LOGGER
      Deprecated, 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 new SimplyNoShading instance.
  • Method Details

    • getFirstInstance

      public static SimplyNoShading getFirstInstance()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the first instance of the SimplyNoShading class.
      Returns:
      the first instance of the SimplyNoShading class
    • getConfig

      public Config 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

      public Storage<Config> getConfigStorage()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the config storage. It dictates where the config should 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 the config storage logging 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 the config storage logging any errors caught.
    • setConfig

      public void setConfig(Config config)
      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

      public void setConfigStorage(Storage<Config> configStorage)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets a new config storage. It dictates where the config should be stored, most likely in a persistent file.
      Parameters:
      configStorage - the new config storage