public abstract static class GuiScreenEvent.MouseDragEvent extends GuiScreenEvent.MouseInputEvent
Modifier and Type | Class and Description |
---|---|
static class |
GuiScreenEvent.MouseDragEvent.Post
This event fires after
IGuiEventListener.mouseDragged(double, double, int, double, double) if the drag was not already handled. |
static class |
GuiScreenEvent.MouseDragEvent.Pre
This event fires when a mouse drag is detected for a GuiScreen, before it is handled.
|
GuiScreenEvent.ActionPerformedEvent, GuiScreenEvent.BackgroundDrawnEvent, GuiScreenEvent.DrawScreenEvent, GuiScreenEvent.InitGuiEvent, GuiScreenEvent.KeyboardCharTypedEvent, GuiScreenEvent.KeyboardKeyEvent, GuiScreenEvent.KeyboardKeyPressedEvent, GuiScreenEvent.KeyboardKeyReleasedEvent, GuiScreenEvent.MouseClickedEvent, GuiScreenEvent.MouseDragEvent, GuiScreenEvent.MouseInputEvent, GuiScreenEvent.MouseReleasedEvent, GuiScreenEvent.MouseScrollEvent, GuiScreenEvent.PotionShiftEvent
Modifier and Type | Field and Description |
---|---|
private double |
dragX |
private double |
dragY |
private int |
mouseButton |
Constructor and Description |
---|
MouseDragEvent(Screen gui,
double mouseX,
double mouseY,
int mouseButton,
double dragX,
double dragY) |
Modifier and Type | Method and Description |
---|---|
double |
getDragX() |
double |
getDragY() |
int |
getMouseButton() |
getMouseX, getMouseY
getGui
private final int mouseButton
private final double dragX
private final double dragY
public MouseDragEvent(Screen gui, double mouseX, double mouseY, int mouseButton, double dragX, double dragY)