public class PlayerKeyEvent extends PlayerEvent
| Constructor and Description | 
|---|
PlayerKeyEvent(Player player,
              int key,
              boolean pressed)  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getKeyCode()
Gets the key code of the key that has been pressed by the player. 
 | 
boolean | 
isPressed()
Gets whether the key is pressed or released. 
 | 
getPlayerpublic PlayerKeyEvent(Player player, int key, boolean pressed)
public int getKeyCode()
KeyInputpublic boolean isPressed()