Interface PlatformUkutils
public interface PlatformUkutils
Modding platform-specific utilities. Mostly for ukulib internal stuff, but feel free to use :-)
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionMap<ModMeta, UnaryOperator<net.minecraft.client.gui.screens.Screen>> Fetches and collects the mods using the ukulib config system.getConfigPath(String name) Creates a config path for a file name.voidregisterKeyBindingInternal(net.minecraft.client.KeyMapping keyMapping) Registers a keybinding in Minecraft via the modding platform.
-
Field Details
-
INSTANCE
Singleton instance of the class.
-
-
Method Details
-
getConfigPath
-
registerKeyBindingInternal
void registerKeyBindingInternal(net.minecraft.client.KeyMapping keyMapping) Registers a keybinding in Minecraft via the modding platform.- Parameters:
keyMapping- The keybinding
-
getConfigMods
Map<ModMeta, UnaryOperator<net.minecraft.client.gui.screens.Screen>> getConfigMods()Fetches and collects the mods using the ukulib config system.- Returns:
- All the registered mods
-