net.minecraft.client

public class KeyMapping

implements Comparable<KeyMapping>

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

Field summary

Modifier and TypeField
private static final Map<String, KeyMapping>
h
ALL
field_1657
KEYS_BY_ID
private static final Map<InputConstants$Key, KeyMapping>
i
MAP
field_1658
KEY_TO_BINDINGS
private static final Set<String>
j
CATEGORIES
field_1652
KEY_CATEGORIES
public static final String
a
CATEGORY_MOVEMENT
field_32136
MOVEMENT_CATEGORY
public static final String
b
CATEGORY_MISC
field_32137
MISC_CATEGORY
public static final String
c
CATEGORY_MULTIPLAYER
field_32138
MULTIPLAYER_CATEGORY
public static final String
d
CATEGORY_GAMEPLAY
field_32139
GAMEPLAY_CATEGORY
public static final String
e
CATEGORY_INVENTORY
field_32140
INVENTORY_CATEGORY
public static final String
f
CATEGORY_INTERFACE
field_32141
UI_CATEGORY
public static final String
g
CATEGORY_CREATIVE
field_32142
CREATIVE_CATEGORY
private static final Map<String, Integer>
k
CATEGORY_SORT_ORDER
field_1656
CATEGORY_ORDER_MAP
private final String
l
name
field_1660
translationKey
private final InputConstants$Key
m
defaultKey
field_1654
defaultKey
private final String
n
category
field_1659
category
private InputConstants$Key
o
key
field_1655
boundKey
private boolean
p
isDown
field_1653
pressed
private int
q
clickCount
field_1661
timesPressed

Constructor summary

ModifierConstructor
public (String translationKey, int code, String category)
public (String translationKey, InputConstants$Type type, int code, String category)

Method summary

Modifier and TypeMethod
public static void
a(feq$a arg0)
click(InputConstants$Key arg0)
method_1420(class_3675$class_306 arg0)
onKeyPressed(InputUtil$Key key)
public static void
a(feq$a arg0, boolean arg1)
set(InputConstants$Key arg0, boolean arg1)
method_1416(class_3675$class_306 arg0, boolean arg1)
setKeyPressed(InputUtil$Key key, boolean pressed)
public static void
a()
setAll()
method_1424()
updatePressedStates()
public static void
b()
releaseAll()
method_1437()
unpressAll()
public static void
c()
resetToggleKeys()
method_52231()
untoggleStickyKeys()
public static void
d()
resetMapping()
method_1426()
updateKeysByCode()
public boolean
e()
isDown()
method_1434()
isPressed()
public String
f()
getCategory()
method_1423()
getCategory()
public boolean
g()
consumeClick()
method_1436()
wasPressed()
private void
n()
release()
method_1425()
reset()
public String
h()
getName()
method_1431()
getTranslationKey()
public InputConstants$Key
i()
getDefaultKey()
method_1429()
getDefaultKey()
public void
b(feq$a arg0)
setKey(InputConstants$Key arg0)
method_1422(class_3675$class_306 arg0)
setBoundKey(InputUtil$Key boundKey)
public int
a(fli arg0)
compareTo(KeyMapping arg0)
method_1430(class_304 arg0)
compareTo(KeyBinding arg0)
public static Supplier<Component>
a(String arg0)
createNameSupplier(String arg0)
method_1419(String arg0)
getLocalizedName(String id)
public boolean
b(fli arg0)
same(KeyMapping arg0)
method_1435(class_304 arg0)
equals(KeyBinding other)
public boolean
j()
isUnbound()
method_1415()
isUnbound()
public boolean
a(int arg0, int arg1)
matches(int arg0, int arg1)
method_1417(int arg0, int arg1)
matchesKey(int keyCode, int scanCode)
public boolean
a(int arg0)
matchesMouse(int arg0)
method_1433(int arg0)
matchesMouse(int code)
public Component
k()
getTranslatedKeyMessage()
method_16007()
getBoundKeyLocalizedText()
public boolean
l()
isDefault()
method_1427()
isDefault()
public String
m()
saveString()
method_1428()
getBoundKeyTranslationKey()
public void
a(boolean arg0)
setDown(boolean arg0)
method_23481(boolean arg0)
setPressed(boolean pressed)
public static KeyMapping
b(String arg0)
get(String arg0)
method_65807(String arg0)
byId(String id)