Package net.minecraftforge.client.event
Class ScreenEvent.MouseClickedEvent.Post
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ScreenEvent
net.minecraftforge.client.event.ScreenEvent.MouseInputEvent
net.minecraftforge.client.event.ScreenEvent.MouseClickedEvent
net.minecraftforge.client.event.ScreenEvent.MouseClickedEvent.Post
- Enclosing class:
- ScreenEvent.MouseClickedEvent
This event fires after
GuiEventListener.mouseClicked(double, double, int)
.
This event has a result.
Event.Result.ALLOW
- to force set the mouse click as handledEvent.Result.DEFAULT
- to use the default value ofhandled
Event.Result.DENY
- to force set the mouse click as not handled
Note that this event is currently pre-cancelled if ContainerEventHandler.mouseClicked(double, double, int)
returns true
to retain old behavior. This will be changed in 1.18 when the event is made non-cancellable.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.client.event.ScreenEvent.MouseClickedEvent
ScreenEvent.MouseClickedEvent.Post, ScreenEvent.MouseClickedEvent.Pre
Nested classes/interfaces inherited from class net.minecraftforge.client.event.ScreenEvent
ScreenEvent.BackgroundDrawnEvent, ScreenEvent.DrawScreenEvent, ScreenEvent.InitScreenEvent, ScreenEvent.KeyboardCharTypedEvent, ScreenEvent.KeyboardKeyEvent, ScreenEvent.KeyboardKeyPressedEvent, ScreenEvent.KeyboardKeyReleasedEvent, ScreenEvent.MouseClickedEvent, ScreenEvent.MouseDragEvent, ScreenEvent.MouseInputEvent, ScreenEvent.MouseReleasedEvent, ScreenEvent.MouseScrollEvent, ScreenEvent.PotionShiftEvent, ScreenEvent.PotionSizeEvent
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraftforge.client.event.ScreenEvent.MouseClickedEvent
getButton
Methods inherited from class net.minecraftforge.client.event.ScreenEvent.MouseInputEvent
getMouseX, getMouseY
Methods inherited from class net.minecraftforge.client.event.ScreenEvent
getScreen
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
handled
private final boolean handled
-
-
Constructor Details
-
Post
-
-
Method Details
-
wasHandled
public boolean wasHandled()- Returns:
true
if the mouse click was already handled by its screen
-