类 InputEvent.MouseButton
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.InputEvent
net.minecraftforge.client.event.InputEvent.MouseButton
- 封闭类:
InputEvent
Fired when a mouse button is pressed/released. Sub-events get fired
before
and after
this happens.
These events are fired on the main Forge event bus, only on the logical client.
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明static class
Fired when a mouse button is pressed/released, after processing.static class
Fired when a mouse button is pressed/released, before being processed by vanilla.从类继承的嵌套类/接口 net.minecraftforge.client.event.InputEvent
InputEvent.InteractionKeyMappingTriggered, InputEvent.Key, InputEvent.MouseButton, InputEvent.MouseScrollingEvent
从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明int
返回 the mouse button's action。int
返回 the mouse button's input code。int
返回 a bit field representing the active modifier keys。从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
button
private final int button -
action
private final int action -
modifiers
private final int modifiers
-
-
构造器详细资料
-
MouseButton
@Internal protected MouseButton(int button, int action, int modifiers)
-
-
方法详细资料
-
getButton
public int getButton()返回 the mouse button's input code。- 返回:
- the mouse button's input code
- 另请参阅:
-
getAction
public int getAction()返回 the mouse button's action。- 返回:
- the mouse button's action
- 另请参阅:
-
getModifiers
public int getModifiers()返回 a bit field representing the active modifier keys。- 返回:
- a bit field representing the active modifier keys
- 另请参阅:
-