Class ScreenEvent.MouseButtonPressed
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.ScreenEvent
net.neoforged.neoforge.client.event.ScreenEvent.MouseInput
net.neoforged.neoforge.client.event.ScreenEvent.MouseButtonPressed
- Direct Known Subclasses:
ScreenEvent.MouseButtonPressed.Post
,ScreenEvent.MouseButtonPressed.Pre
- Enclosing class:
ScreenEvent
Fired when a mouse button is pressed.
See the two subclasses for listening before and after the normal handling.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
This event is fired after the mouse click is handled, if the correspondingScreenEvent.MouseButtonPressed.Pre
was not cancelled.static class
Fired before the mouse click is handled by the screen.Nested classes/interfaces inherited from class net.neoforged.neoforge.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
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class net.neoforged.neoforge.client.event.ScreenEvent.MouseInput
getMouseX, getMouseY
Methods inherited from class net.neoforged.neoforge.client.event.ScreenEvent
getScreen
-
Field Details
-
button
private final int button
-
-
Constructor Details
-
MouseButtonPressed
-
-
Method Details
-
getButton
public int getButton()Returns the mouse button's input code.- Returns:
- the mouse button's input code
- See Also:
-