Package net.minecraftforge.client.event
Class GuiScreenEvent.MouseDragEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.GuiScreenEvent
net.minecraftforge.client.event.GuiScreenEvent.MouseInputEvent
net.minecraftforge.client.event.GuiScreenEvent.MouseDragEvent
- Direct Known Subclasses:
GuiScreenEvent.MouseDragEvent.Post
,GuiScreenEvent.MouseDragEvent.Pre
- Enclosing class:
- GuiScreenEvent
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
This event fires afterGuiEventListener.mouseDragged(double, double, int, double, double)
if the drag was not already handled.static class
This event fires when a mouse drag is detected for a GuiScreen, before it is handled.Nested classes/interfaces inherited from class net.minecraftforge.client.event.GuiScreenEvent
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
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Modifier and TypeFieldDescriptionprivate double
private double
private int
-
Constructor Summary
ConstructorDescriptionMouseDragEvent(Screen gui, double mouseX, double mouseY, int mouseButton, double dragX, double dragY)
-
Method Summary
Methods inherited from class net.minecraftforge.client.event.GuiScreenEvent.MouseInputEvent
getMouseX, getMouseY
Methods inherited from class net.minecraftforge.client.event.GuiScreenEvent
getGui
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
mouseButton
private final int mouseButton -
dragX
private final double dragX -
dragY
private final double dragY
-
-
Constructor Details
-
MouseDragEvent
public MouseDragEvent(Screen gui, double mouseX, double mouseY, int mouseButton, double dragX, double dragY)
-
-
Method Details
-
getMouseButton
public int getMouseButton() -
getDragX
public double getDragX() -
getDragY
public double getDragY()
-