net.minecraft.client.option

public class KeyBinding

implements Comparable<KeyBinding>

fzx
net.minecraft.client.KeyMapping
net.minecraft.class_304
net.minecraft.client.option.KeyBinding
net.minecraft.unmapped.C_sygikzty
net.minecraft.client.option.KeyBind
net.minecraft.src.C_3387_

Field summary

Modifier and TypeField
private static final Map<String, KeyBinding>
b
ALL
field_1657
KEYS_BY_ID
f_axzzilwx
KEY_BINDS
f_90809_
private static final Map<InputUtil$Key, List<KeyBinding>>
c
MAP
field_1658
KEY_TO_BINDINGS
f_khpbnlde
KEY_BINDS_BY_KEY
f_90810_
private final String
d
name
field_1660
id
f_dabvqpsd
translationKey
f_90813_
private final InputUtil$Key
e
defaultKey
field_1654
defaultKey
f_mcjktbbz
defaultKey
f_90814_
private final KeyBinding$Category
f
category
field_1659
category
f_pseqyjfw
category
f_90815_
protected InputUtil$Key
a
key
field_1655
boundKey
f_lmswahcj
boundKey
f_90816_
private boolean
g
isDown
field_1653
pressed
f_zfcgiyqi
pressed
f_90817_
private int
h
clickCount
field_1661
timesPressed
f_dynqxsuy
timesPressed
f_90818_

Constructor summary

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

Method summary

Modifier and TypeMethod
public static void
a(fst$a o)
click(InputConstants$Key arg0)
method_1420(class_3675$class_306 arg0)
onKeyPressed(InputUtil$Key key)
m_gvwjhavd(C_vdmgqzcl$C_smckmtvp arg0)
onKeyPressed(InputUtil$Key key)
m_90835_(C_3140_$C_3142_ p_90836_)
public static void
a(fst$a o, boolean o)
set(InputConstants$Key arg0, boolean arg1)
method_1416(class_3675$class_306 arg0, boolean arg1)
setKeyPressed(InputUtil$Key key, boolean pressed)
m_zmekjuap(C_vdmgqzcl$C_smckmtvp arg0, boolean arg1)
setKeyPressed(InputUtil$Key key, boolean pressed)
m_90837_(C_3140_$C_3142_ p_90838_, boolean p_90839_)
private static void
a(fst$a o, Consumer<fzx> o)
forAllKeyMappings(InputConstants$Key arg0, Consumer<KeyMapping> arg1)
method_74179(class_3675$class_306 arg0, Consumer<class_304> arg1)
forAllKeyBinds(InputUtil$Key key, Consumer<KeyBinding> keyConsumer)
m_rqbponea(C_vdmgqzcl$C_smckmtvp arg0, Consumer<C_sygikzty> arg1)
m_417474_(C_3140_$C_3142_ p_424096_, Consumer<C_3387_> p_427756_)
public static void
a()
setAll()
method_1424()
updatePressedStates()
m_nbuirqvv()
updatePressedStates()
m_90829_()
public static void
b()
releaseAll()
method_1437()
unpressAll()
m_godmkzch()
resetAll()
m_90847_()
public static void
c()
restoreToggleStatesOnScreenClosed()
method_73359()
restoreToggleStates()
m_dhrzrmjb()
m_416857_()
public static void
d()
resetToggleKeys()
method_52231()
untoggleStickyKeys()
m_lgozeqdn()
unpressStickyKeys()
m_289723_()
public static void
e()
resetMapping()
method_1426()
updateKeysByCode()
m_jmbdmqyl()
updateBoundKeys()
m_90854_()
public boolean
f()
isDown()
method_1434()
isPressed()
m_getjkdwe()
isPressed()
m_90857_()
public KeyBinding$Category
g()
getCategory()
method_1423()
getCategory()
m_xnsoxapo()
getCategory()
m_90858_()
public boolean
h()
consumeClick()
method_1436()
wasPressed()
m_vnukpaip()
wasPressed()
m_90859_()
protected void
i()
release()
method_1425()
reset()
m_dvvrqcxa()
reset()
m_90866_()
protected boolean
j()
shouldSetOnIngameFocus()
method_72701()
shouldSetOnGameFocus()
m_xffmiyza()
m_417901_()
public String
k()
getName()
method_1431()
getId()
m_vakxsktj()
getTranslationKey()
m_90860_()
public InputUtil$Key
l()
getDefaultKey()
method_1429()
getDefaultKey()
m_isuoshsj()
getDefaultKey()
m_90861_()
public void
b(fst$a arg0)
setKey(InputConstants$Key arg0)
method_1422(class_3675$class_306 arg0)
setBoundKey(InputUtil$Key boundKey)
m_tffyxrzc(C_vdmgqzcl$C_smckmtvp arg0)
setBoundKey(InputUtil$Key boundKey)
m_90848_(C_3140_$C_3142_ arg0)
public int
a(fzx arg0)
compareTo(KeyMapping arg0)
method_1430(class_304 arg0)
compareTo(KeyBinding arg0)
m_sztkfjux(C_sygikzty arg0)
compareTo(KeyBind arg0)
compareTo(C_3387_ arg0)
public static Supplier<Text>
a(String o)
createNameSupplier(String arg0)
method_1419(String arg0)
getLocalizedName(String id)
m_oicaydpw(String arg0)
getKeyBindTextSupplier(String id)
m_90842_(String p_90843_)
public boolean
b(fzx arg0)
same(KeyMapping arg0)
method_1435(class_304 arg0)
equals(KeyBinding other)
m_qfyzbven(C_sygikzty arg0)
keyEquals(KeyBind other)
m_90850_(C_3387_ arg0)
public boolean
m()
isUnbound()
method_1415()
isUnbound()
m_wstzqzzo()
isUnbound()
m_90862_()
public boolean
a(gth arg0)
matches(KeyEvent arg0)
method_1417(class_11908 arg0)
matchesKey(KeyInput key)
m_vvqqomqn(C_tuexkjlb arg0)
matchesKey(KeyEvent arg0)
m_90832_(C_411099_ arg0)
public boolean
a(gti arg0)
matchesMouse(MouseButtonEvent arg0)
method_1433(class_11909 arg0)
matchesMouse(Click click)
m_blqmdugx(C_vvcrnmew arg0)
matchesMouseButton(MouseButtonEvent arg0)
m_90830_(C_410856_ arg0)
public Text
n()
getTranslatedKeyMessage()
method_16007()
getBoundKeyLocalizedText()
m_ktykqjqb()
getKeyName()
m_90863_()
public boolean
o()
isDefault()
method_1427()
isDefault()
m_fmzpyagn()
isDefault()
m_90864_()
public String
p()
saveString()
method_1428()
getBoundKeyTranslationKey()
m_gaavbsyf()
getKeyTranslationKey()
m_90865_()
public void
a(boolean arg0)
setDown(boolean arg0)
method_23481(boolean arg0)
setPressed(boolean pressed)
m_hfuhalee(boolean arg0)
setPressed(boolean pressed)
m_7249_(boolean arg0)
private void
c(fst$a arg0)
registerMapping(InputConstants$Key arg0)
method_74181(class_3675$class_306 arg0)
registerBinding(InputUtil$Key key)
m_jtbtjlyg(C_vdmgqzcl$C_smckmtvp arg0)
m_jtbtjlyg(InputUtil$Key key)
m_417717_(C_3140_$C_3142_ arg0)
public static KeyBinding
b(String o)
get(String arg0)
method_65807(String arg0)
byId(String id)
m_iiroruri(String arg0)
m_373569_(String p_378660_)