Skip to content

Various utilities

This page serves as a non-exhaustive list of utilities provided by ukulib.

Ukutils

Ukutils is a beautiful utility class with a bunch of functions that may or may not be of use to you. PlatformUkutils also provides a few methods that have differing implementations depending on the mod loader.

SilentButtonWidget

SilentButtonWidget is virtually identical to a button, but without the sound when it's clicked. Useful if you want to make a button that plays another sound.

PlayerArgumentType

PlayerArgumentType is a client argument type that can be used to autocomplete to any player present in the current world, but also allows to take in an UUID. See the Fabric documentation for usage.