跳到正文

R-UI Lib

作者:radaeli

Build Minecraft mod interfaces from reusable, themed components

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

R-Ui Lib

Reusable interface components for Minecraft mods

WHAT IT IS?

Mod screens can feel inconsistent and cumbersome when every control is built differently. R-Ui Lib gives mods a shared set of clear, reusable interface components for settings, item filters, menus, and other screens.

R-Ui Lib is a library: it adds no standalone screens, items, or blocks. You see it through the Minecraft mods that use it.

WHAT CAN IT DO?

Screens and layouts

Keep information and controls organized.

  • Arrange content in rows, columns, grids, tabs, cards, and scrollable areas.
  • Use panels, labels, progress bars, and tables to make screens easier to scan.
  • Choose a Dark or Light theme and adjust colors, spacing, and other visual settings.

Controls and feedback

Give each screen familiar ways to make choices and see what happened.

  • Use buttons, toggles, sliders, text fields, dropdowns, and segmented choices.
  • Show dialogs, tooltips, and toast notifications.
  • Selectable cards can contain their own interactive controls.

Item selection

Let players choose items without rearranging their inventory.

  • Show item previews, filter slots, and inventory grids.
  • Pick an item from the inventory and place its reference into a supported filter slot; the original stack stays in the inventory.
  • With JEI installed, drag an item from JEI into a supported filter slot.

Colors and previews

Adjust color choices and preview them before applying.

  • Pick colors with RGB sliders or hexadecimal input, then apply or cancel the preview.
  • Use color swatches and scalable item previews in a screen.
  • Scroll through wide groups of components without crowding the screen.

Developer documentation

Build your mod’s interface with the library’s guides and examples.


HOW DO I USE IT?

Install R-Ui Lib alongside a mod that uses it, with matching Minecraft and loader versions. Open that mod’s screen to use the controls it provides.

Heads up: R-Ui Lib does not add its own screen or gameplay content. The available interface depends on the mod using the library.


REQUIREMENTS

  • Minecraft 1.20.1 with Forge 47.4.20 or newer
  • Minecraft 1.21.1 with NeoForge 21.1.236 or newer
  • Install R-Ui Lib on the client and server when a mod you use requires it.
  • JEI is optional: JEI 15 for Forge, or JEI 19+ for NeoForge. It enables dragging items into supported filter slots.

FOUND A BUG?

Report an issue on GitHub. Include your Minecraft version, loader, the mod whose screen is affected, and steps to reproduce the problem. A screenshot or relevant log excerpt can help.


CAN I USE THIS IN A MODPACK?

Yes. R-Ui Lib is released under the MIT License.


See the changelog.

常见问题

R-UI Lib 支持哪些 Minecraft 版本?

R-UI Lib 支持 Minecraft Java 版 1.20.1–1.21.1,共 2 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

R-UI Lib 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

radaeli 的其他作品

查看全部 →