public final class Keybind
extends java.lang.Object
| Constructor and Description |
|---|
Keybind(ResourceName name,
int defKey) |
| Modifier and Type | Method and 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) |
boolean |
wasPressedWithinTime(int amount,
long time) |
public Keybind(ResourceName name, int defKey)
public static boolean isMouse(int key)
@ApiInternal public void setBind(int key)
public boolean isDown()
public boolean wasPressedWithinTime(int amount,
long time)
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()