public class FabricKeyBinding
extends net.minecraft.client.options.KeyBinding
KeyBinding
for use by Fabric mods.
*ALL* instantiated FabricKeyBindings should be registered in
KeyBindingRegistry.register(FabricKeyBinding)
!
Modifier and Type | Class and Description |
---|---|
static class |
FabricKeyBinding.Builder |
Modifier | Constructor and Description |
---|---|
protected |
FabricKeyBinding(net.minecraft.util.Identifier id,
net.minecraft.client.util.InputUtil.Type type,
int code,
String category) |
Modifier and Type | Method and Description |
---|---|
net.minecraft.client.util.InputUtil.KeyCode |
getBoundKey()
Returns the configured KeyCode assigned to the KeyBinding from the player's settings.
|
compareTo, equals, getCategory, getDefaultKeyCode, getId, getLocalizedName, getLocalizedName, getName, isDefault, isNotBound, isPressed, matchesKey, matchesMouse, onKeyPressed, setKeyCode, setKeyPressed, setPressed, unpressAll, updateKeysByCode, updatePressedStates, wasPressed
protected FabricKeyBinding(net.minecraft.util.Identifier id, net.minecraft.client.util.InputUtil.Type type, int code, String category)