Package net.minecraftforge.client.event
Class ScreenEvent.MouseButtonReleased
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
- Direct Known Subclasses:
ScreenEvent.MouseButtonReleased.Post
,ScreenEvent.MouseButtonReleased.Pre
- Enclosing class:
ScreenEvent
Fired when a mouse button is released.
See the two subclasses for listening before and after the normal handling.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Fired after the mouse release is handled, if the correspondingScreenEvent.MouseButtonReleased.Pre
was not cancelled.static class
Fired before the mouse release is handled by the screen.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
ConstructorDescriptionMouseButtonReleased
(Screen screen, double mouseX, double mouseY, int button) -
Method Summary
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
-
button
private final int button
-
-
Constructor Details
-
MouseButtonReleased
-
-
Method Details
-
getButton
public int getButton()Returns the mouse button's input code.- Returns:
- the mouse button's input code
- See Also:
-