Class InputEvent.MouseButton.Pre

java.lang.Object
net.neoforged.bus.api.Event
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

invalid reference
have a result
. If the event is cancelled, then the mouse event will not be processed by vanilla (e.g. keymappings and screens)

This event is fired on the main Forge event bus, only on the logical client.

See Also:
  • Constructor Details

    • Pre

      @Internal public Pre(int button, int action, int modifiers)