Class ScreenEvent.MouseScrolled

java.lang.Object
net.minecraftforge.eventbus.api.Event
Direct Known Subclasses:
ScreenEvent.MouseScrolled.Post, ScreenEvent.MouseScrolled.Pre
Enclosing class:
ScreenEvent

public abstract static class ScreenEvent.MouseScrolled extends ScreenEvent.MouseInput
Fired when the mouse was dragged while a button is being held down. See the two subclasses for listening before and after the normal handling.
See Also:
  • Field Details

    • scrollDelta

      private final double scrollDelta
  • Constructor Details

    • MouseScrolled

      @Internal public MouseScrolled(Screen screen, double mouseX, double mouseY, double scrollDelta)
  • Method Details

    • getScrollDelta

      public double getScrollDelta()
      Returns the amount of change / delta of the mouse scroll.
      Returns:
      the amount of change / delta of the mouse scroll