net.minecraft.client.option

public class KeyBinding

implements Comparable<KeyBinding>

net.minecraft.client.KeyMapping
net.minecraft.class_304
net.minecraft.client.option.KeyBinding

Field summary

Modifier and TypeField
private static final Map<String, KeyBinding>
ALL
field_1657
KEYS_BY_ID
private static final Map<InputUtil$Key, List<KeyBinding>>
MAP
field_1658
KEY_TO_BINDINGS
private final String
name
field_1660
id
private final InputUtil$Key
defaultKey
field_1654
defaultKey
private final KeyBinding$Category
category
field_1659
category
protected InputUtil$Key
key
field_1655
boundKey
private boolean
isDown
field_1653
pressed
private int
clickCount
field_1661
timesPressed
private final int
order
field_63464
field_63464

Constructor summary

ModifierConstructor
public (String id, int code, KeyBinding$Category category)
public (String id, InputUtil$Type type, int code, KeyBinding$Category category)
public (String id, InputUtil$Type type, int code, KeyBinding$Category category, int order)

Method summary

Modifier and TypeMethod
public static void
click(InputConstants$Key key)
method_1420(class_3675$class_306 arg0)
onKeyPressed(InputUtil$Key key)
public static void
set(InputConstants$Key key, boolean state)
method_1416(class_3675$class_306 arg0, boolean arg1)
setKeyPressed(InputUtil$Key key, boolean pressed)
private static void
forAllKeyMappings(InputConstants$Key key, Consumer<KeyMapping> operation)
method_74179(class_3675$class_306 arg0, Consumer<class_304> arg1)
forAllKeyBinds(InputUtil$Key key, Consumer<KeyBinding> keyConsumer)
public static void
setAll()
method_1424()
updatePressedStates()
public static void
releaseAll()
method_1437()
unpressAll()
public static void
restoreToggleStatesOnScreenClosed()
method_73359()
restoreToggleStates()
public static void
resetToggleKeys()
method_52231()
untoggleStickyKeys()
public static void
resetMapping()
method_1426()
updateKeysByCode()
public boolean
isDown()
method_1434()
isPressed()
public KeyBinding$Category
getCategory()
method_1423()
getCategory()
public boolean
consumeClick()
method_1436()
wasPressed()
protected void
release()
method_1425()
reset()
protected boolean
shouldSetOnIngameFocus()
method_72701()
shouldSetOnGameFocus()
public String
getName()
method_1431()
getId()
public InputUtil$Key
getDefaultKey()
method_1429()
getDefaultKey()
public void
setKey(InputConstants$Key key)
method_1422(class_3675$class_306 arg0)
setBoundKey(InputUtil$Key boundKey)
public int
compareTo(KeyMapping o)
method_1430(class_304 arg0)
compareTo(KeyBinding arg0)
public static Supplier<Text>
createNameSupplier(String key)
method_1419(String arg0)
getLocalizedName(String id)
public boolean
same(KeyMapping that)
method_1435(class_304 arg0)
equals(KeyBinding other)
public boolean
isUnbound()
method_1415()
isUnbound()
public boolean
matches(KeyEvent event)
method_1417(class_11908 arg0)
matchesKey(KeyInput key)
public boolean
matchesMouse(MouseButtonEvent event)
method_1433(class_11909 arg0)
matchesMouse(Click click)
public Text
getTranslatedKeyMessage()
method_16007()
getBoundKeyLocalizedText()
public boolean
isDefault()
method_1427()
isDefault()
public String
saveString()
method_1428()
getBoundKeyTranslationKey()
public void
setDown(boolean down)
method_23481(boolean arg0)
setPressed(boolean pressed)
private void
registerMapping(InputConstants$Key key)
method_74181(class_3675$class_306 arg0)
registerBinding(InputUtil$Key key)
public static KeyBinding
get(String name)
method_65807(String arg0)
byId(String id)
public int
compareTo(Object o)
compareTo(Object arg0)
compareTo(Object other)
private static List
lambda$registerMapping$0(InputConstants$Key arg0)
method_74183(class_3675$class_306 arg0)
method_74183(InputUtil$Key keyx)
private static Text
lambda$createNameSupplier$0(String arg0)
method_27465(String arg0)
method_27465(String arg0)
private static void
lambda$set$0(boolean arg0, KeyMapping arg1)
method_74180(boolean arg0, class_304 arg1)
method_74180(boolean arg0, KeyBinding key)
private static void
lambda$click$0(KeyMapping arg0)
method_74182(class_304 arg0)
method_74182(KeyBinding key)