Class SimplyNoShading

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

public class SimplyNoShading extends Object
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 Details

    • LOGGER

      public static final org.slf4j.Logger LOGGER
      This mod's logger.
  • Constructor Details

    • SimplyNoShading

      public SimplyNoShading()
      Creates a new SimplyNoShading instance.
  • Method Details

    • getFirstInstance

      public static SimplyNoShading getFirstInstance()
      Returns the first instance of the SimplyNoShading class.
      Returns:
      the first instance of the SimplyNoShading class
    • getConfig

      public Config getConfig()
      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()
      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()
      Loads the config from the config storage logging any errors caught.
    • saveConfig

      public void saveConfig()
      Saves the config to the config storage logging any errors caught.
    • setConfig

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