Class InputEvent.MouseButton.Pre
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.InputEvent
net.neoforged.neoforge.client.event.InputEvent.MouseButton
net.neoforged.neoforge.client.event.InputEvent.MouseButton.Pre
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
InputEvent.MouseButton
public static class InputEvent.MouseButton.Pre
extends InputEvent.MouseButton
implements net.neoforged.bus.api.ICancellableEvent
Fired when a mouse button is pressed/released, before being processed by vanilla.
This event is cancellable, and does not
.
If the event is cancelled, then the mouse event will not be processed by vanilla (e.g. keymappings and screens) invalid reference
have a result
This event is fired on the main Forge event bus, only on the logical client.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.client.event.InputEvent.MouseButton
InputEvent.MouseButton.Post, InputEvent.MouseButton.Pre
Nested classes/interfaces inherited from class net.neoforged.neoforge.client.event.InputEvent
InputEvent.InteractionKeyMappingTriggered, InputEvent.Key, InputEvent.MouseButton, InputEvent.MouseScrollingEvent
-
Constructor Summary
-
Method Summary
Methods inherited from class net.neoforged.neoforge.client.event.InputEvent.MouseButton
getAction, getButton, getModifiers
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Constructor Details
-
Pre
@Internal public Pre(int button, int action, int modifiers)
-