T2CodeLib/src/main/java/net/t2code/t2codelib/T2CconfigItemLanguages.java
JaTiTV 44c35bd185 Changes to the creation of config files
- Comments in multiple languages
- Language files with the new ConfigWriter
2024-07-03 23:48:51 +02:00

38 lines
802 B
Java

package net.t2code.t2codelib;
import java.util.HashMap;
import java.util.List;
public interface T2CconfigItemLanguages {
/**
* Returns the path of the option for the config
*
* @return Config path of the option
*/
String getPath();
/**
* Returns the default value of the option and, after reading the config, the value from the config
*
* @return Value of the option
*/
Object getValue();
HashMap<T2CLanguageEnum, String> getLanguage();
/**
* Set the description of the option here, the '# ' is automatically set in front of it
*/
HashMap<T2CLanguageEnum, List<String>> getComments();
/**
* This @void is used to reset the value of @getValue()
*/
default void setValue(Object newValue) {
}
}