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 ClassesNested classes/interfaces inherited from class net.neoforged.neoforge.client.event.ScreenEvent.MouseButtonPressed
ScreenEvent.MouseButtonPressed.Post, ScreenEvent.MouseButtonPressed.PreNested 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
FieldsModifier and TypeFieldDescriptionprivate final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns The (possibly event-modified) state of the click.Returns the result of this event, which controls if the click will be treated as handled.voidChanges the result of this event.booleanReturns true if the mouse click was already handled by its screen.Methods inherited from class net.neoforged.neoforge.client.event.ScreenEvent.MouseButtonPressed
getButtonMethods 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
-
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
-