Files
FalsePatternLib/src/main/java/com/falsepattern/lib/internal/config/LibraryConfig.java
T

53 lines
2.4 KiB
Java
Raw Normal View History

2022-07-31 20:41:56 +02:00
/*
2022-07-30 15:21:11 +02:00
* Copyright (C) 2022 FalsePattern
* All Rights Reserved
*
* The above copyright notice, this permission notice and the word "SNEED"
* shall be included in all copies or substantial portions of the Software.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
2022-07-30 23:26:25 +02:00
package com.falsepattern.lib.internal.config;
2022-06-09 20:14:11 +02:00
2022-08-06 13:12:55 +02:00
import com.falsepattern.lib.StableAPI;
2022-06-09 20:14:11 +02:00
import com.falsepattern.lib.config.Config;
2022-07-30 23:26:25 +02:00
import com.falsepattern.lib.internal.Tags;
2022-06-09 20:14:11 +02:00
@Config(modid = Tags.MODID)
public class LibraryConfig {
@Config.Comment({"Used to control whether FalsePatternLib should check for outdated mods.",
2022-07-30 23:26:25 +02:00
"If you're building a public modpack, you should turn this off so that your users don't " +
"get nagged about outdated mods."})
2022-06-09 20:14:11 +02:00
@Config.LangKey("config.falsepatternlib.updatecheck")
2022-07-30 23:26:25 +02:00
@Config.DefaultBoolean(true)
public static boolean ENABLE_UPDATE_CHECKER;
2022-06-09 20:14:11 +02:00
@Config.Comment({"Used to control whether FalsePatternLib should be allowed to use the internet.",
2022-07-30 23:26:25 +02:00
"If this is disabled, library downloads will be blocked.",
"Note that if a mod tries to download a library that is not downloaded yet, the game will crash."})
2022-06-09 20:14:11 +02:00
@Config.LangKey("config.falsepatternlib.disableinternet")
2022-07-30 23:26:25 +02:00
@Config.DefaultBoolean(true)
public static boolean ENABLE_LIBRARY_DOWNLOADS;
2022-07-31 20:28:37 +02:00
@Config.Comment("How \"loud\" the config error logging should be.")
@Config.LangKey("config.falsepatternlib.configlogging")
@Config.DefaultEnum("Log")
public static ValidationLogging CONFIG_ERROR_LOUDNESS;
public enum ValidationLogging {
2022-08-17 20:10:51 +02:00
@StableAPI.Expose(since = "__INTERNAL__") None,
@StableAPI.Expose(since = "__INTERNAL__") Log,
@StableAPI.Expose(since = "__INTERNAL__") LogAndToast
2022-07-31 20:28:37 +02:00
}
2022-06-09 20:14:11 +02:00
}