Download Tau — Minecraft Mods — MetaMods

Downloads

1

Last update

1 year ago

Versions

1.16.3 — 1.20.6
Client
Forge
Neoforge
Libraries

Tau

Tau is a user interface library for Minecraft Forge that significantly simplifies the process of creating graphical interfaces. It uses syntax reminiscent of Flutter, allowing developers to easily customize the appearance of UI elements and create attractive, responsive, and functional interfaces.

Key Features

Flutter-like Syntax - Developers familiar with Flutter can quickly master Tau thanks to a similar approach to interface creation.

Extensibility - The library is designed with functionality expansion capabilities, allowing the addition of custom user interface elements and widgets.

Ease of Use - Tau transforms the traditional workflow of creating Minecraft interfaces into a more organized and maintainable format, making development more convenient and efficient.

Rendering Capabilities

Currently, Tau supports two types of renderers built on existing Minecraft interface rendering systems. One is intended for screens, and the other for HUD elements. This allows using the library to create various types of interfaces and HUD elements according to project needs. Version 1.0.0 lacks support for creating container interfaces, but this functionality is planned for future implementation.

Usage Example

Here is an example code for creating a simple interface using Tau:

public class ExampleUI implements UIComponent {
    @Override
    public UIComponent build(Layout layout) {
        return new Stack(
            new Container.Builder().withColor(Color.WHITE),
            new Center(new Sized(
                Size.staticSize(new Vector2i(100, 20)),
                new TextField.Builder()
                    .withMessage(new StringTextComponent("Hello"))
                    .withHintText(new StringTextComponent("Hello!")))
        ));
    }
}

In this example, a list of interface elements that overlay each other is created. Specifically, an empty white container and a text field measuring 100x20 pixels, positioned in the center of the screen with the main text "Hello" and a hint "Hello!" are created.

To display the created interface on the screen, the following code is used:

Minecraft.getInstance().setScreen(new ScreenUIRenderer(new TestStatic()));
Project members
W1nter-isHere

W1nter-isHere

Developer

winterSteve25

winterSteve25

Created: 4 Apr 2023

ID: 14808