public final class Keybind
extends java.lang.Object
| Constructor | Description |
|---|---|
Keybind(ResourceName name,
int defKey) |
|
Keybind(ResourceName name,
int defKey,
boolean defIsMouse) |
Deprecated.
Use the
Keybind(ResourceName, int) constructor |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getDisplayName() |
|
int |
getKey() |
|
ResourceName |
getName() |
|
boolean |
isDown() |
|
boolean |
isKey(int key) |
|
boolean |
isMouse() |
|
static boolean |
isMouse(int key) |
|
boolean |
isPressed() |
|
Keybind |
register() |
|
void |
setBind(int key) |
@Deprecated public Keybind(ResourceName name, int defKey, boolean defIsMouse)
Keybind(ResourceName, int) constructorpublic Keybind(ResourceName name, int defKey)
@ApiInternal public void setBind(int key)
public boolean isDown()
public boolean isPressed()
public java.lang.String getDisplayName()
public boolean isKey(int key)
public ResourceName getName()
public int getKey()
public boolean isMouse()
public Keybind register()
public static boolean isMouse(int key)