Bento Config 图标

Bento Config

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 0.1.0+1.21
本资源为搬运资源,原资源地址: https://modrinth.com/mod/bento-config
资源信息

Minecraft 版本: 1.21 1.21.1

平台: fabric

标签: library

资源介绍

Bento Config

Bento Config is an annotation-driven configuration system built using Bento GUI. It aims to be simple yet powerful, with no magic pre-processors or arbitrary limitations.

Features:

Bento Config is documented in-code with JavaDocs and on my wiki.

public class MyConfig extends BentoConfig<MyConfig> {
    public boolean spawn_creepers = true;
    @Regex("[a-z]{1,10}")
    public String creeper_name = "creeper";
    @Header("spawn_settings")
    @Range(min = 1, max = 10)
    public int spawn_amount = 3;
    @Percentage
    public float spawn_chance = 0.5f;
    @Header("loot_settings")
    public Item creeper_loot = Items.GUNPOWDER;
}
public class MyModInitializer implements ModInitializer {
   ...
   public static final MyConfig CONFIG = new MyConfig.register("my_mod_id");
   ...
}
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Vanilla with a Cherry on Top

价格:0 墨喵币
下载量:0

查看详情
SDK's Mod StationAPI

价格:0 墨喵币
下载量:0

查看详情
Scaffolding Delta - Universal

价格:0 墨喵币
下载量:0

查看详情
FastHoppersLove

价格:0 墨喵币
下载量:0

查看详情