Interface ScreenMouseEvents.AllowMouseDrag
- Enclosing class:
ScreenMouseEvents
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanallowMouseDrag(net.minecraft.client.gui.screens.Screen screen, net.minecraft.client.input.MouseButtonEvent context, double horizontalAmount, double verticalAmount) Checks if the mouse should be allowed to drag in a screen by moving the cursor while a mouse button is held down.
-
Method Details
-
allowMouseDrag
boolean allowMouseDrag(net.minecraft.client.gui.screens.Screen screen, net.minecraft.client.input.MouseButtonEvent context, double horizontalAmount, double verticalAmount) Checks if the mouse should be allowed to drag in a screen by moving the cursor while a mouse button is held down.- Parameters:
screen- the screencontext- the context of the mouse drag, containing the mouse position and buttonhorizontalAmount- the horizontal drag amountverticalAmount- the vertical drag amount- Returns:
- whether the mouse should be allowed to drag
- See Also:
-