Back to mods
Minecraft Flex UI project artwork

Modrinth · Minecraft mod

Minecraft Flex UI

Implement a Flex layout-based Minecraft GUI framework based on facebook's open source Yoga layout engine.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Minecraft Flex UI release matches 1.19?

Updated 3 years ago
alpha file 0.0.1
Game version 1.19, 1.19.1, 1.19.2
Loader Fabric

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.

Client Optional
Dedicated server Optional
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

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.

1 required mod needs a matching file

Install Fabric API first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.

Fabric API Needed by Minecraft Flex UI 0.0.1
required
No matching file

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.

  1. 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.

  2. 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.

  3. 03

    Put it on the correct side

    Installation on the client is optional. Installation on the dedicated server is optional.

  4. 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

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 sources is 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.

4 available setups

Check 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

1 of 1 releases match

Looking for an older file? The official Modrinth project page is in Resources.