Serpentine 图标

Serpentine

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 2.0.5
本资源为搬运资源,原资源地址: https://modrinth.com/mod/serpentine
资源信息

Minecraft 版本: 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8 1.21.9 1.21.10 1.21.11

平台: fabric

标签: game-mechanics library utility

资源介绍

Multiplayer only works on 2.0.0+

github

Serpentine

Serpentine is a lightweight configuration library mod that can easily be used in other projects.

Serpentine provides an easy way to setup configuration for any mod, all you need is a class that extends the Config class provided by Serpentine and to then register it in your modInitializer.

Potential Bloat

what bloat?

The config screen is probably the only bloat in this mod but even then its just three classes that automate making a config screen for you.

what does the config screen do?

The config screen parses your config's expects and detects their default value's type. If it is an integer it makes a SliderWidget that goes from 0-100 (I'll add more customisation for this in later versions), if it is a boolean it'll make two buttons for True and False, the currently selected one (not saved one) will have a checkmark next to it. If it is a float or string then a textField will be made where the user can type in their desired value.

How to setup serpentine?

Check this out for how to install serpentine as a dependency.

Then to setup a config, check out this example

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
PlatinumMC

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

查看详情
Cave Enhancements

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

查看详情
24w33a Redstone Torches

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

查看详情
Mechanical Arm

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

查看详情