Class ScreenEvent.MouseButtonReleased
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.MouseButtonReleased
- Direct Known Subclasses:
ScreenEvent.MouseButtonReleased.Post
,ScreenEvent.MouseButtonReleased.Pre
- Enclosing class:
ScreenEvent
Fired when a mouse button is released.
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 release is handled, if the correspondingScreenEvent.MouseButtonReleased.Pre
was not cancelled.static class
Fired before the mouse release 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
ConstructorDescriptionMouseButtonReleased
(Screen screen, double mouseX, double mouseY, int button) -
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
-
MouseButtonReleased
-
-
Method Details
-
getButton
public int getButton()Returns the mouse button's input code.- Returns:
- the mouse button's input code
- See Also:
-