Class ScreenEvent.MouseButtonPressed.Post
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
net.neoforged.neoforge.client.event.ScreenEvent.MouseButtonPressed.Post
- Enclosing class:
ScreenEvent.MouseButtonPressed
This event is fired after the mouse click is handled, if the corresponding
ScreenEvent.MouseButtonPressed.Pre
was not
cancelled.
It is only fired on the physical client.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.client.event.ScreenEvent.MouseButtonPressed
ScreenEvent.MouseButtonPressed.Post, ScreenEvent.MouseButtonPressed.Pre
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
Modifier and TypeFieldDescriptionprivate final boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns The (possibly event-modified) state of the click.Returns the result of this event, which controls if the click will be treated as handled.void
Changes the result of this event.boolean
Returns true if the mouse click was already handled by its screen.Methods inherited from class net.neoforged.neoforge.client.event.ScreenEvent.MouseButtonPressed
getButton
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
-
handled
private final boolean handled -
result
-
-
Constructor Details
-
Post
-
-
Method Details
-
wasClickHandled
public boolean wasClickHandled()Returns true if the mouse click was already handled by its screen.- Returns:
- true if the mouse click was already handled by its screen
-
setResult
Changes the result of this event. -
getResult
Returns the result of this event, which controls if the click will be treated as handled.- Returns:
- the result of this event, which controls if the click will be treated as handled
-
getClickResult
public boolean getClickResult()Returns The (possibly event-modified) state of the click.- Returns:
- The (possibly event-modified) state of the click
-