Interface PlatformUkutils


public interface PlatformUkutils
Modding platform-specific utilities. Mostly for ukulib internal stuff, but feel free to use :-)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final PlatformUkutils
    Singleton instance of the class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Map<ModMeta, UnaryOperator<net.minecraft.client.gui.screens.Screen>>
    Fetches and collects the mods using the ukulib config system.
    Creates a config path for a file name.
    void
    registerKeyBindingInternal(net.minecraft.client.KeyMapping keyMapping)
    Registers a keybinding in Minecraft via the modding platform.
  • Field Details

    • INSTANCE

      static final PlatformUkutils INSTANCE
      Singleton instance of the class.
  • Method Details

    • getConfigPath

      Path getConfigPath(String name)
      Creates a config path for a file name.
      Parameters:
      name - The name of the file
      Returns:
      The path to the file
    • 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