Package net.minecraftforge.client.event
Class ScreenEvent.MouseButtonReleased.Post
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ScreenEvent
net.minecraftforge.client.event.ScreenEvent.MouseInput
net.minecraftforge.client.event.ScreenEvent.MouseButtonReleased
net.minecraftforge.client.event.ScreenEvent.MouseButtonReleased.Post
- Enclosing class:
- ScreenEvent.MouseButtonReleased
Fired after the mouse release is handled, if the corresponding
ScreenEvent.MouseButtonReleased.Pre
was
not cancelled.
This event is not cancellable, has a result.
Event.Result.ALLOW
- forcibly sets the mouse release as handledEvent.Result.DEFAULT
- defaults to the return value ofContainerEventHandler.mouseReleased(double, double, int)
from the screen (seewasHandled()
.Event.Result.DENY
- forcibly sets the mouse release as not handled.
This event is fired on the main Forge event bus, only on the logical client.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.client.event.ScreenEvent.MouseButtonReleased
ScreenEvent.MouseButtonReleased.Post, ScreenEvent.MouseButtonReleased.Pre
Nested classes/interfaces inherited from class net.minecraftforge.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
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.MouseButtonReleased
getButton
Methods inherited from class net.minecraftforge.client.event.ScreenEvent.MouseInput
getMouseX, getMouseY
Methods inherited from class net.minecraftforge.client.event.ScreenEvent
getScreen
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
handled
private final boolean handled
-
-
Constructor Details
-
Post
-
-
Method Details
-
wasHandled
public boolean wasHandled()- Returns:
true
if the mouse release was already handled by its screen
-