
Modrinth · Minecraft mod
Minecraft Flex UI
Implement a Flex layout-based Minecraft GUI framework based on facebook's open source Yoga layout engine.
Quick answer
Which Minecraft Flex UI release matches 1.19?
Minecraft Flex UI 0.0.1 targets 1.19, 1.19.1, 1.19.2 with Fabric. Installation on the client is optional. Installation on the dedicated server is optional. 1 required mod needs a matching file.
Where it goes
Is Minecraft Flex UI required on the client, server, or both?
Installation on the client is optional. Installation on the dedicated server is optional.
The source marks this as usable on both the client and server.
What else does Minecraft Flex UI 0.0.1 need?
0.0.1 on 1.19. Every mod below is checked against that same setup.
Install Fabric API first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.
We only count dependency files that match this setup. A file for another loader does not fill the gap.
Before you install it
Add Minecraft Flex UI without breaking your instance.
Built for Minecraft Flex UI 0.0.1 on 1.19. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 0.0.1. It targets 1.19, 1.19.1, 1.19.2 with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
Install Fabric API first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.
- 03
Put it on the correct side
Installation on the client is optional. Installation on the dedicated server is optional.
- 04
Pick the file you checked
Use the “Get this file” button beside 0.0.1. It opens that exact file at the source.
About this project
What does Minecraft Flex UI add?
Minecraft Flex UI
For ordinary players do not download the mod
In most cases the module is used by other module developers and is included in their mod Jar package
Description
Based on facebook open source Yoga layout engine implements the Minecraft GUI framework based on the Flex layout.
A subset of the Flex standard is implemented on top of Yoga and most of the CSS properties are implemented as well.
The design concept of MVC is adopted to realize the one-way and two-way data binding.
Developers can design and implement complex UI interfaces on top of this, and this project can be used as Yoga engine embedded in the game as a non-exhaustive reference implementation of the game layout engine.
Example

public class WidgetTestScreen extends WidgetScreen {
protected StringBuilderObservable text = new StringBuilderObservable();
public WidgetTestScreen() {
super(Text.of("test"));
}
@Override
public void widget(ScreenWidget root) {
root.flexDirection.set(WidgetFlexDirection.Row)
.justifyContent.set(WidgetJustify.Center)
.alignItems.set(WidgetAlign.Center)
.child(new BoxWidget()
.background.set(RectDrawable.LIGHT_PANEL)
.child(new LabelWidget()
.text.binding(text.computed((StringBuilderObservable text) -> Text.of(text.getString())))
.margin(WidgetEdge.All, 4))
.child(new TextBoxWidget()
.text.binding(text))
.child(new ButtonWidget()
.click.on((mouse) -> close())
.child(new LabelWidget()
.text.set(Text.of("取消"))))
);
}
}
Data Binding
By default all bindings from non-computed binding sources are bi-directional bindings.
Setting values for
computed binding sourcesis ignored
But most components will only operate one-way on bound values
Project description from Modrinth.
Pick your setup
Minecraft Flex UI by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.19.3
1 loader build1.19.2
1 loader build1.19.1
1 loader build1.19
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Minecraft Flex UI versions and loaders
0.0.1
mfui-0.0.1.jar
30 Jan 2023
Looking for an older file? The official Modrinth project page is in Resources.