@Environment(value=CLIENT) public static enum InputUtil.Type extends Enum<InputUtil.Type>
Modifier and Type | Field and Description |
---|---|
private it.unimi.dsi.fastutil.ints.Int2ObjectMap<InputUtil.Key> |
map |
private String |
name |
private BiFunction<Integer,String,Text> |
textTranslator |
Modifier and Type | Method and 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.
|
public static final InputUtil.Type KEYSYM
public static final InputUtil.Type SCANCODE
public static final InputUtil.Type MOUSE
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<InputUtil.Key> map
private final String name
private final BiFunction<Integer,String,Text> textTranslator
public static InputUtil.Type[] values()
for (InputUtil.Type c : InputUtil.Type.values()) System.out.println(c);
public static InputUtil.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullprivate static void mapKey(InputUtil.Type type, String translationKey, int keyCode)
public InputUtil.Key createFromCode(int code)