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 ClassesNested classes/interfaces inherited from class net.neoforged.neoforge.client.event.ScreenEvent.MouseButtonReleased
ScreenEvent.MouseButtonReleased.Post, ScreenEvent.MouseButtonReleased.PreNested classes/interfaces inherited from class net.neoforged.neoforge.client.event.ScreenEvent
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
FieldsModifier and TypeFieldDescriptionprivate final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns The (possibly event-modified) state of the release.Returns the result of this event, which controls if the release will be treated as handled.voidChanges the result of this event.booleanMethods inherited from class net.neoforged.neoforge.client.event.ScreenEvent.MouseButtonReleased
getButton, getMouseButtonEventMethods inherited from class net.neoforged.neoforge.client.event.ScreenEvent.MouseInput
getMouseX, getMouseYMethods 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:
trueif 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
-