Class ScreenEvent.MouseButtonPressed

java.lang.Object
net.neoforged.bus.api.Event
Direct Known Subclasses:
ScreenEvent.MouseButtonPressed.Post, ScreenEvent.MouseButtonPressed.Pre
Enclosing class:
ScreenEvent

public abstract static class ScreenEvent.MouseButtonPressed extends ScreenEvent.MouseInput
Fired when a mouse button is pressed. See the two subclasses for listening before and after the normal handling.
See Also:
  • Field Details

    • button

      private final int button
  • Constructor Details

    • MouseButtonPressed

      @Internal public MouseButtonPressed(Screen screen, double mouseX, double mouseY, int button)
  • Method Details

    • getButton

      public int getButton()
      Returns the mouse button's input code.
      Returns:
      the mouse button's input code
      See Also: