Some checks failed
EpicKnarvik97/Blacksmith/pipeline/head There was a failure building this commit
30 lines
786 B
Java
30 lines
786 B
Java
package net.knarcraft.blacksmith.config;
|
|
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
/**
|
|
* An interface describing an object for managing settings
|
|
*
|
|
* @param <K> <p>The type of setting managed</p>
|
|
*/
|
|
public interface Settings<K extends Setting> {
|
|
|
|
/**
|
|
* Changes the value of the given setting
|
|
*
|
|
* @param setting <p>The setting to change</p>
|
|
* @param newValue <p>The new value of the setting</p>
|
|
*/
|
|
void changeValue(@NotNull K setting, @Nullable Object newValue);
|
|
|
|
/**
|
|
* Gets the current raw value of the given global setting
|
|
*
|
|
* @param setting <p>The setting to get</p>
|
|
* @return <p>The current raw setting value</p>
|
|
*/
|
|
@NotNull Object getRawValue(@NotNull K setting);
|
|
|
|
}
|