ConfigAnytime
作者:Cleanroom
Allows Forge configurations to be setup at any point in time. Especially for developers that use Forge's configuration system during coremod/tweaker's loading stage.
介绍
中文介绍正在准备中,下面暂时显示原文。
ConfigAnytime
Allows Forge configurations to be setup at any point in time. Especially for developers that use Forge’s configuration system during coremod/tweaker’s loading stage.
Dev Usage:
- Add CleanroomMC’s repository and depend on ConfigAnytime’s maven entry:
repositories {
maven {
url 'https://maven.cleanroommc.com'
}
}
dependencies {
implementation 'com.cleanroommc:configanytime:3.0'
}
- Example API Usage:
@Config(modid = "configanytime")
public class ConfigClass {
public static boolean configBooleanProperty = true;
public static int configIntProperty = 42;
public static final InnerClass INNER_CLASS = new InnerClass(); // Inner access via this member, this is processed automatically by ConfigManager
public static class InnerClass {
public boolean innerProperty = false; // Must be non-static, referenced via the member field in the outer class
}
// Static initializers go after the properties!
// This will run automatically when you retrieve any properties from this config class
static {
ConfigAnytime.register(ConfigClass.class);
}
}
常见问题
ConfigAnytime 支持哪些 Minecraft 版本?
ConfigAnytime 支持 Minecraft Java 版 1.12.2,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
ConfigAnytime 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
Cleanroom 的其他作品
查看全部 →Had Enough Items
by Cleanroom
1.12.2 的 JEI 分支,带有性能优化。现在拥有重做的书签和自动合成功能!
556.2万
1 天前
Modrinth · CurseForge
Cleanroom Relauncher
by Cleanroom
Relaunches Forge into Cleanroom!
3.6万
12 天前
Modrinth
AssetMover
by Cleanroom
Allows acquiring of vanilla/mod assets at runtime instead of including them in builds potentially violating licenses.
1.4万
6 天前
Modrinth
Flare (Spark for 1.12.2)
by Cleanroom
Profiling Suite for 1.12.2 that includes and improves on Spark.
8,688
7 个月前
Modrinth
评论
登录后评论和评分