Package net.minecraftforge.client.event
Class ScreenEvent.MouseButtonPressed.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.MouseButtonPressed
net.minecraftforge.client.event.ScreenEvent.MouseButtonPressed.Post
- Enclosing class:
ScreenEvent.MouseButtonPressed
Fired after the mouse click is handled, if the corresponding
ScreenEvent.MouseButtonPressed.Pre
was not
cancelled.
This event is not cancellable, has a result.
Event.Result.ALLOW
- forcibly sets the mouse click as handledEvent.Result.DEFAULT
- defaults to the return value ofContainerEventHandler.mouseClicked(double, double, int)
from the screen (seewasHandled()
.Event.Result.DENY
- forcibly sets the mouse click 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.MouseButtonPressed
ScreenEvent.MouseButtonPressed.Post, ScreenEvent.MouseButtonPressed.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
Modifier and TypeMethodDescriptionboolean
Returnstrue
if the mouse click was already handled by its screen.Methods inherited from class net.minecraftforge.client.event.ScreenEvent.MouseButtonPressed
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()Returnstrue
if the mouse click was already handled by its screen.- Returns:
true
if the mouse click was already handled by its screen
-