What are you searching for?

ukulib
ukulib

ukulib

small utility library used in my mods

download 5.3M Downloads · favorite 758 Followers · Updated 1 month ago
Fabric Library Neoforge Quilt Utility b1.7.3 1.14.4 1.15.2 1.16.5 1.17.1 +30 more

Versions

inventory_2
1.10.2+1.21.11

1.10.2+1.21.11 · 1 month ago · 453.39 KB

Release download
Fabric Quilt 1.21.11
inventory_2
2.0.0-alpha.1+26.1-snapshot-2

2.0.0-alpha.1+26.1-snapshot-2 · 1 month ago · 282.72 KB

Neoforge 26.1-snapshot-2
inventory_2
2.0.0-alpha.1+26.1-snapshot-2

2.0.0-alpha.1+26.1-snapshot-2 · 1 month ago · 434.01 KB

Fabric Quilt 26.1-snapshot-2
inventory_2
1.10.1+1.21.11

1.10.1+1.21.11 · 2 months ago · 453.18 KB

Release download
Fabric Quilt 1.21.11
inventory_2
1.10.0+1.21.11

1.10.0+1.21.11 · 2 months ago · 453.17 KB

Release download
Fabric Quilt 1.21.11

About

banner

Maven metadata URL Javadoc badge

Mod icon by aqo

The coolest fabric library mod on the internet, which has 0 (zero) dependencies.
Javadoc can be found here for the latest version, or at https://maven.uku3lig.net/javadoc/releases/net/uku3lig/ukulib/VERSION for older versions.

Features

  • A simple yet powerful config system, which also provides utilities for vanilla-style config screens.
  • Various sets of utilities for commands, positioning, text manipulation, etc.
  • Only this for now... but more will come soon™️ ! (ideas and feedback are appreciated :D)

How to use

Add the following to your gradle.properties (see above shield or the maven repo for version info):

# https://github.com/uku3lig/ukulib
ukulib_version=...

build.gradle:

repositories {
    maven {
        url "https://maven.uku3lig.net/releases"
    }
}

dependencies {
    modApi "net.uku3lig:ukulib:${project.ukulib_version}"

    // you can also include it directly if you don't want your users to download it
    include "net.uku3lig:ukulib:${project.ukulib_version}"
}
Development versions

GitHub Workflow Status Maven metadata URL

Development version numbers end with -build.<build number>, e.g. 0.2.2+1.19.2-build.65.
They are not guaranteed to be stable or even work at all, but they are available if you want to test the latest changes.
They are also not published to the releases maven repo, so you have to add the following to your build.gradle:

repositories {
    maven {
        url "https://maven.uku3lig.net/snapshots"
    }
}

Integrating your config screen

Ukulib provides an api class, UkulibAPI, which you can extend to integrate your mod's config screen with ukulib. Example:

public class YourUkulibAPIClass implements UkulibAPI {
    @Override
    public Function<Screen, AbstractConfigScreen<?>> supplyConfigScreen() {
        return parent -> new YourConfigScreen(parent, ...);
    }
}

You then need to add the ukulib entrypoint in your fabric.mod.json:

"entrypoints": {
    ...
    "ukulib": [
      "your.awesome.mod.YourUkulibAPIClass"
    ]
  }
open_in_new View on Modrinth
Compatibility
Client: Required Server: Unsupported
gavel MPL-2.0

Conversation

What are your thoughts?

Related projects

Library
Fabric API
Fabric API

by modmuss50

Lightweight and modular API providing common hooks and intercompatibility measures utilized by mods using the Fabric toolchain.

download 135.0M
favorite 27,864
Library
Cloth Config API
Cloth Config API

by shedaniel

Configuration Library for Minecraft Mods

download 98.8M
favorite 13,844
Optimization Utility
FerriteCore
FerriteCore

by malte0811

Memory usage optimizations

download 88.8M
favorite 12,944
Utility
Mod Menu
Mod Menu

by Prospector

Adds a mod menu to view the list of mods you have installed.

download 81.9M
favorite 22,429
lock Cookie consent

SkinMC uses cookies to provide functionality and features.