ConfigAnytime
作者:rebot | 分类:模组
价格:0 墨喵币
下载量:0
点赞:0
版本 3.0
本资源为搬运资源,原资源地址:
https://modrinth.com/mod/configanytime
资源信息
Minecraft 版本: 1.12.2
平台: forge
标签: library utility
资源介绍
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:
```java
@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);
}
}
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
请 登录 后发表评论。
举报此资源
请登录后举报
暂无评论,抢个沙发吧~