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 SummaryNested classes/interfaces inherited from class net.neoforged.neoforge.client.event.InputEvent.MouseButtonInputEvent.MouseButton.Post, InputEvent.MouseButton.PreNested classes/interfaces inherited from class net.neoforged.neoforge.client.event.InputEventInputEvent.InteractionKeyMappingTriggered, InputEvent.Key, InputEvent.MouseButton, InputEvent.MouseScrollingEvent
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class net.neoforged.neoforge.client.event.InputEvent.MouseButtongetAction, getButton, getModifiersMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.bus.api.ICancellableEventisCanceled, setCanceled
- 
Constructor Details- 
Pre@Internal public Pre(int button, int action, int modifiers) 
 
-