Package net.minecraftforge.client.event
Class ScreenEvent.MouseInput
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ScreenEvent
net.minecraftforge.client.event.ScreenEvent.MouseInput
- Direct Known Subclasses:
ScreenEvent.MouseButtonPressed
,ScreenEvent.MouseButtonReleased
,ScreenEvent.MouseDragged
,ScreenEvent.MouseScrolled
- Enclosing class:
- ScreenEvent
Fired whenever an action is performed by the mouse.
See the various subclasses to listen for different actions.
-
Nested Class Summary
Nested classes/interfaces inherited from class 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
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraftforge.client.event.ScreenEvent
getScreen
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
mouseX
private final double mouseX -
mouseY
private final double mouseY
-
-
Constructor Details
-
MouseInput
-
-
Method Details
-
getMouseX
public double getMouseX()Returns the X position of the mouse cursor, relative to the screen.- Returns:
- the X position of the mouse cursor, relative to the screen
-
getMouseY
public double getMouseY()Returns the Y position of the mouse cursor, relative to the screen.- Returns:
- the Y position of the mouse cursor, relative to the screen
-