Keybind option

Example

@Keybind(
    title = "My Keybind",
    description = "This is my keybind", // Recommended, default = ""
    icon = "/my_keybind.svg", // Optional, default = ""
    category = "Keybinds", // Recommended, default = "General"
    subcategory = "General" // Recommended, default = "General"
)
public static KeyBinder.Bind myKeybind = KeybindHelper.builder().keys(UKeyboard.KEY_NONE).does(() -> {
    System.out.println("Hello, OneConfig!");
}).build();

public MyConfig() {
    registerKeybind(myKeybind);
}

Last updated