public static class InputEvent.ClickInputEvent extends InputEvent
InputEvent.ClickInputEvent, InputEvent.KeyInputEvent, InputEvent.MouseInputEvent, InputEvent.MouseScrollEvent, InputEvent.RawMouseEvent
Modifier and Type | Field and Description |
---|---|
private int |
button |
private Hand |
hand |
private boolean |
handSwing |
private KeyBinding |
keyBinding |
Constructor and Description |
---|
ClickInputEvent(int button,
KeyBinding keyBinding,
Hand hand) |
Modifier and Type | Method and Description |
---|---|
Hand |
getHand()
The hand which is causing the event to get triggered.
|
KeyBinding |
getKeyBinding() |
boolean |
isAttack() |
boolean |
isPickBlock() |
boolean |
isUseItem() |
void |
setSwingHand(boolean value)
Set to false to disable the hand swing animation.
|
boolean |
shouldSwingHand() |
private final int button
private final KeyBinding keyBinding
private final Hand hand
private boolean handSwing
public ClickInputEvent(int button, KeyBinding keyBinding, Hand hand)
public void setSwingHand(boolean value)
public boolean shouldSwingHand()
public Hand getHand()
public boolean isAttack()
public boolean isUseItem()
public boolean isPickBlock()
public KeyBinding getKeyBinding()