Package net.minecraftforge.client.event
Class GuiScreenEvent.MouseReleasedEvent.Post
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.GuiScreenEvent
net.minecraftforge.client.event.GuiScreenEvent.MouseInputEvent
net.minecraftforge.client.event.GuiScreenEvent.MouseReleasedEvent
net.minecraftforge.client.event.GuiScreenEvent.MouseReleasedEvent.Post
- Enclosing class:
- GuiScreenEvent.MouseReleasedEvent
public static class GuiScreenEvent.MouseReleasedEvent.Post
extends GuiScreenEvent.MouseReleasedEvent
This event fires after
GuiEventListener.mouseReleased(double, double, int)
.
This event has a result.
Event.Result.ALLOW
- to force set the mouse release as handledEvent.Result.DEFAULT
- to use the default value ofhandled
Event.Result.DENY
- to force set the mouse release as not handled
Note that this event is currently pre-cancelled if ContainerEventHandler.mouseReleased(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.GuiScreenEvent.MouseReleasedEvent
GuiScreenEvent.MouseReleasedEvent.Post, GuiScreenEvent.MouseReleasedEvent.Pre
Nested classes/interfaces inherited from class net.minecraftforge.client.event.GuiScreenEvent
GuiScreenEvent.BackgroundDrawnEvent, GuiScreenEvent.DrawScreenEvent, GuiScreenEvent.InitGuiEvent, GuiScreenEvent.KeyboardCharTypedEvent, GuiScreenEvent.KeyboardKeyEvent, GuiScreenEvent.KeyboardKeyPressedEvent, GuiScreenEvent.KeyboardKeyReleasedEvent, GuiScreenEvent.MouseClickedEvent, GuiScreenEvent.MouseDragEvent, GuiScreenEvent.MouseInputEvent, GuiScreenEvent.MouseReleasedEvent, GuiScreenEvent.MouseScrollEvent, GuiScreenEvent.PotionShiftEvent
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.GuiScreenEvent.MouseReleasedEvent
getButton
Methods inherited from class net.minecraftforge.client.event.GuiScreenEvent.MouseInputEvent
getMouseX, getMouseY
Methods inherited from class net.minecraftforge.client.event.GuiScreenEvent
getGui
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setPhase, setResult, setup
-
Field Details
-
handled
private final boolean handled
-
-
Constructor Details
-
Post
-
-
Method Details
-
setCanceled
Deprecated.event now has a result instead and will no longer be cancellable in 1.18; useEvent.setResult(Result)
- Overrides:
setCanceled
in classnet.minecraftforge.eventbus.api.Event
-
wasHandled
public boolean wasHandled()- Returns:
true
if the mouse release was already handled by its screen
-
Event.setResult(Result)