Class KhazKeybind

java.lang.Object
com.khazoda.core.keybind.KhazKeybind

public final class KhazKeybind extends Object
Common descriptor for a client-side Minecraft keybind. Supports pressed, held and held-in-GUI states. Should work for all standard keyboard keys as well as mouse buttons
  • Method Details

    • builder

      public static KhazKeybind.Builder builder(net.minecraft.resources.Identifier id)
    • id

      public net.minecraft.resources.Identifier id()
    • category

      public net.minecraft.resources.Identifier category()
    • isBoundInputHeldInUi

      public boolean isBoundInputHeldInUi()
      Returns true while the input is held, including inside UI screens. Best for tooltip/gui item controls
    • hasBoundInput

      public boolean hasBoundInput()
      Returns false when a keybind is unbound by default or by the player
    • boundInputLabel

      public net.minecraft.network.chat.Component boundInputLabel()
      Returns Minecraft's current display label for the bound input. Good for tooltips to show user a dynamic input