Package net.minecraft.client.util
Enum InputUtil.Type
- All Implemented Interfaces:
Serializable
,Comparable<InputUtil.Type>
,java.lang.constant.Constable
- Enclosing class:
- InputUtil
@Environment(CLIENT) public static enum InputUtil.Type extends Enum<InputUtil.Type>
- Mappings:
Namespace Name official dkt$b
intermediary net/minecraft/class_3675$class_307
named net/minecraft/client/util/InputUtil$Type
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description private Int2ObjectMap<InputUtil.Key>
map
private String
name
private BiFunction<Integer,String,Text>
textTranslator
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description InputUtil.Key
createFromCode(int code)
private static void
mapKey(InputUtil.Type type, String translationKey, int keyCode)
static InputUtil.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static InputUtil.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
KEYSYM
- Mappings:
Namespace Name Mixin selector official a
Ldkt$b;a:Ldkt$b;
intermediary field_1668
Lnet/minecraft/class_3675$class_307;field_1668:Lnet/minecraft/class_3675$class_307;
named KEYSYM
Lnet/minecraft/client/util/InputUtil$Type;KEYSYM:Lnet/minecraft/client/util/InputUtil$Type;
-
SCANCODE
- Mappings:
Namespace Name Mixin selector official b
Ldkt$b;b:Ldkt$b;
intermediary field_1671
Lnet/minecraft/class_3675$class_307;field_1671:Lnet/minecraft/class_3675$class_307;
named SCANCODE
Lnet/minecraft/client/util/InputUtil$Type;SCANCODE:Lnet/minecraft/client/util/InputUtil$Type;
-
MOUSE
- Mappings:
Namespace Name Mixin selector official c
Ldkt$b;c:Ldkt$b;
intermediary field_1672
Lnet/minecraft/class_3675$class_307;field_1672:Lnet/minecraft/class_3675$class_307;
named MOUSE
Lnet/minecraft/client/util/InputUtil$Type;MOUSE:Lnet/minecraft/client/util/InputUtil$Type;
-
-
Field Details
-
map
- Mappings:
Namespace Name Mixin selector official d
Ldkt$b;d:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
intermediary field_1674
Lnet/minecraft/class_3675$class_307;field_1674:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
named map
Lnet/minecraft/client/util/InputUtil$Type;map:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
-
name
- Mappings:
Namespace Name Mixin selector official e
Ldkt$b;e:Ljava/lang/String;
intermediary field_1673
Lnet/minecraft/class_3675$class_307;field_1673:Ljava/lang/String;
named name
Lnet/minecraft/client/util/InputUtil$Type;name:Ljava/lang/String;
-
textTranslator
- Mappings:
Namespace Name Mixin selector official f
Ldkt$b;f:Ljava/util/function/BiFunction;
intermediary field_24197
Lnet/minecraft/class_3675$class_307;field_24197:Ljava/util/function/BiFunction;
named textTranslator
Lnet/minecraft/client/util/InputUtil$Type;textTranslator:Ljava/util/function/BiFunction;
-
-
Constructor Details
-
Type
- Mappings:
Namespace Name Mixin selector official <init>
Ldkt$b;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/util/function/BiFunction;)V
intermediary <init>
Lnet/minecraft/class_3675$class_307;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/util/function/BiFunction;)V
named <init>
Lnet/minecraft/client/util/InputUtil$Type;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/util/function/BiFunction;)V
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
mapKey
- Mappings:
Namespace Name Mixin selector official a
Ldkt$b;a(Ldkt$b;Ljava/lang/String;I)V
intermediary method_1446
Lnet/minecraft/class_3675$class_307;method_1446(Lnet/minecraft/class_3675$class_307;Ljava/lang/String;I)V
named mapKey
Lnet/minecraft/client/util/InputUtil$Type;mapKey(Lnet/minecraft/client/util/InputUtil$Type;Ljava/lang/String;I)V
-
createFromCode
- Mappings:
Namespace Name Mixin selector official a
Ldkt$b;a(I)Ldkt$a;
intermediary method_1447
Lnet/minecraft/class_3675$class_307;method_1447(I)Lnet/minecraft/class_3675$class_306;
named createFromCode
Lnet/minecraft/client/util/InputUtil$Type;createFromCode(I)Lnet/minecraft/client/util/InputUtil$Key;
-