Changing default key bind
The getKeyBind()
method within DynamicHudIntegration retrieves a Key Bind that is utilized to open the previously specified AbstractMoveableScreen during gameplay.
In order to change the default keybind, you need to override the getKeyBind()
method.
public class MyIntegration implements DynamicHudIntegration{
@Override
public KeyBinding getKeyBind() {
return KeyBindingHelper.registerKeyBinding(new KeyBinding(
"My Translation",
INPUT_TYPE,
KEY,
"My Category"
));
}
}
Last updated
Was this helpful?