Enum Class InputUtil.Type

java.lang.Object
java.lang.Enum<InputUtil.Type>
net.minecraft.client.util.InputUtil.Type
All Implemented Interfaces:
Serializable, Comparable<InputUtil.Type>, Constable
Enclosing class:
InputUtil

@Environment(CLIENT) public static enum InputUtil.Type extends Enum<InputUtil.Type>
Mappings:
Namespace Name
named net/minecraft/client/util/InputUtil$Type
intermediary net/minecraft/class_3675$class_307
official eyv$b
  • Enum Constant Details Link icon

    • KEYSYM Link icon

      public static final InputUtil.Type KEYSYM
      Mappings:
      Namespace Name Mixin selector
      named KEYSYM Lnet/minecraft/client/util/InputUtil$Type;KEYSYM:Lnet/minecraft/client/util/InputUtil$Type;
      intermediary field_1668 Lnet/minecraft/class_3675$class_307;field_1668:Lnet/minecraft/class_3675$class_307;
      official a Leyv$b;a:Leyv$b;
    • SCANCODE Link icon

      public static final InputUtil.Type SCANCODE
      Mappings:
      Namespace Name Mixin selector
      named SCANCODE Lnet/minecraft/client/util/InputUtil$Type;SCANCODE:Lnet/minecraft/client/util/InputUtil$Type;
      intermediary field_1671 Lnet/minecraft/class_3675$class_307;field_1671:Lnet/minecraft/class_3675$class_307;
      official b Leyv$b;b:Leyv$b;
    • MOUSE Link icon

      public static final InputUtil.Type MOUSE
      Mappings:
      Namespace Name Mixin selector
      named MOUSE Lnet/minecraft/client/util/InputUtil$Type;MOUSE:Lnet/minecraft/client/util/InputUtil$Type;
      intermediary field_1672 Lnet/minecraft/class_3675$class_307;field_1672:Lnet/minecraft/class_3675$class_307;
      official c Leyv$b;c:Leyv$b;
  • Field Details Link icon

    • UNKNOWN_TRANSLATION_KEY Link icon

      private static final String UNKNOWN_TRANSLATION_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named UNKNOWN_TRANSLATION_KEY Lnet/minecraft/client/util/InputUtil$Type;UNKNOWN_TRANSLATION_KEY:Ljava/lang/String;
      intermediary field_44919 Lnet/minecraft/class_3675$class_307;field_44919:Ljava/lang/String;
      official d Leyv$b;d:Ljava/lang/String;
    • map Link icon

      private final Int2ObjectMap<InputUtil.Key> map
      Mappings:
      Namespace Name Mixin selector
      named map Lnet/minecraft/client/util/InputUtil$Type;map:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      intermediary field_1674 Lnet/minecraft/class_3675$class_307;field_1674:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      official e Leyv$b;e:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
    • name Link icon

      final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/client/util/InputUtil$Type;name:Ljava/lang/String;
      intermediary field_1673 Lnet/minecraft/class_3675$class_307;field_1673:Ljava/lang/String;
      official f Leyv$b;f:Ljava/lang/String;
    • textTranslator Link icon

      final BiFunction<Integer,String,Text> textTranslator
      Mappings:
      Namespace Name Mixin selector
      named textTranslator Lnet/minecraft/client/util/InputUtil$Type;textTranslator:Ljava/util/function/BiFunction;
      intermediary field_24197 Lnet/minecraft/class_3675$class_307;field_24197:Ljava/util/function/BiFunction;
      official g Leyv$b;g:Ljava/util/function/BiFunction;
  • Constructor Details Link icon

    • Type Link icon

      private Type(String name, BiFunction<Integer,String,Text> textTranslator)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/util/InputUtil$Type;<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
      official <init> Leyv$b;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/util/function/BiFunction;)V
  • Method Details Link icon

    • values Link icon

      public static InputUtil.Type[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf Link icon

      public static InputUtil.Type valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • mapKey Link icon

      private static void mapKey(InputUtil.Type type, String translationKey, int keyCode)
      Mappings:
      Namespace Name Mixin selector
      named mapKey Lnet/minecraft/client/util/InputUtil$Type;mapKey(Lnet/minecraft/client/util/InputUtil$Type;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
      official a Leyv$b;a(Leyv$b;Ljava/lang/String;I)V
    • createFromCode Link icon

      public InputUtil.Key createFromCode(int code)
      Mappings:
      Namespace Name Mixin selector
      named createFromCode Lnet/minecraft/client/util/InputUtil$Type;createFromCode(I)Lnet/minecraft/client/util/InputUtil$Key;
      intermediary method_1447 Lnet/minecraft/class_3675$class_307;method_1447(I)Lnet/minecraft/class_3675$class_306;
      official a Leyv$b;a(I)Leyv$a;