
5.8M
787

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}"
}
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"
]
}
Совместимость
Создатели
Детали
Лицензия:MPL-2.0
Опубликован:3 года назад
Обновлён:1 месяц назад