类 ScreenEvent.MouseInput
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ScreenEvent
net.minecraftforge.client.event.ScreenEvent.MouseInput
- 直接已知子类:
ScreenEvent.MouseButtonPressed
,ScreenEvent.MouseButtonReleased
,ScreenEvent.MouseDragged
,ScreenEvent.MouseScrolled
- 封闭类:
ScreenEvent
Fired whenever an action is performed by the mouse.
See the various subclasses to listen for different actions.
- 另请参阅:
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraftforge.client.event.ScreenEvent
ScreenEvent.BackgroundRendered, ScreenEvent.CharacterTyped, ScreenEvent.Closing, ScreenEvent.Init, ScreenEvent.KeyPressed, ScreenEvent.KeyReleased, ScreenEvent.MouseButtonPressed, ScreenEvent.MouseButtonReleased, ScreenEvent.MouseDragged, ScreenEvent.MouseScrolled, ScreenEvent.Opening, ScreenEvent.Render, ScreenEvent.RenderInventoryMobEffects
从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
从类继承的方法 net.minecraftforge.client.event.ScreenEvent
getScreen
从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
mouseX
private final double mouseX -
mouseY
private final double mouseY
-
-
构造器详细资料
-
MouseInput
-
-
方法详细资料
-
getMouseX
public double getMouseX()返回 the X position of the mouse cursor, relative to the screen。- 返回:
- the X position of the mouse cursor, relative to the screen
-
getMouseY
public double getMouseY()返回 the Y position of the mouse cursor, relative to the screen。- 返回:
- the Y position of the mouse cursor, relative to the screen
-