Class InputEvent.MouseButton.Pre

java.lang.Object
net.minecraftforge.eventbus.api.Event
Enclosing class:
InputEvent.MouseButton

public static class InputEvent.MouseButton.Pre extends InputEvent.MouseButton
Fired when a mouse button is pressed/released, before being processed by vanilla.

This event is cancellable, and does not 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)