Class ScreenEvent.MouseButtonReleased.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.MouseButtonReleased
net.neoforged.neoforge.client.event.ScreenEvent.MouseButtonReleased.Post
- Enclosing class:
ScreenEvent.MouseButtonReleased
This event is fired after the mouse release is handled, if the corresponding
ScreenEvent.MouseButtonReleased.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.MouseButtonReleased
ScreenEvent.MouseButtonReleased.Post, ScreenEvent.MouseButtonReleased.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 release.Returns the result of this event, which controls if the release will be treated as handled.void
Changes the result of this event.boolean
Methods inherited from class net.neoforged.neoforge.client.event.ScreenEvent.MouseButtonReleased
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
-
wasReleaseHandled
public boolean wasReleaseHandled()- Returns:
true
if the mouse release was already handled by the screen
-
setResult
Changes the result of this event. -
getResult
Returns the result of this event, which controls if the release will be treated as handled.- Returns:
- the result of this event, which controls if the release will be treated as handled
-
getReleaseResult
public boolean getReleaseResult()Returns The (possibly event-modified) state of the release.- Returns:
- The (possibly event-modified) state of the release
-