Interface SimplyNoShading
- All Known Implementing Classes:
SimplyNoShadingImpl
public interface SimplyNoShading
Simply No Shading.
A concrete instance of this class represents the state of Simply No Shading as a Minecraft modification.
- Since:
- 6.2.0
-
Method Summary
Modifier and TypeMethodDescription@NotNull Configconfig()The Simply No Shading config.Simply No Shading's client configuration file path.static @NotNull SimplyNoShadinginstance()The Simply No Shading implementation instance.voidChanges the config.
-
Method Details
-
instance
The Simply No Shading implementation instance.- Implementation Note
- It is possible to call this method before the instance is initialized, which may result in a runtime exception.
- Implementation Requirements
- It is discouraged for this method to return different instances for an implementation as callers may validly assume that the first valid instance is a singleton.
-
configPath
Path configPath()Simply No Shading's client configuration file path.- Implementation Requirements
- This method should preferably return the same path and should
never be
null.
-
config
The Simply No Shading config.- See Also:
- Implementation Requirements
- This method may return any non-
nullconcrete implementation ofConfigand preferrably carry no side-effects to future calls to this method.
-
setConfig
Changes the config.- See Also:
- Implementation Requirements
- This method may throw an exception on
nullvalues and preferable copy the values to avoid untrivial side-effects.
-