public static class InputEvent.ClickInputEvent extends InputEvent
InputEvent.ClickInputEvent, InputEvent.KeyInputEvent, InputEvent.MouseInputEvent, InputEvent.MouseScrollEvent, InputEvent.RawMouseEvent
Event.HasResult, Event.Result
コンストラクタと説明 |
---|
ClickInputEvent(int button,
KeyBinding keyBinding,
Hand hand) |
修飾子とタイプ | メソッドと説明 |
---|---|
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() |
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
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()