类 ScreenEvent.MouseDragged
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ScreenEvent
net.minecraftforge.client.event.ScreenEvent.MouseInput
net.minecraftforge.client.event.ScreenEvent.MouseDragged
- 封闭类:
ScreenEvent
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.
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明static class
Fired after the mouse drag is handled, if not handled by the screen and the correspondingScreenEvent.MouseDragged.Pre
is not cancelled.static class
Fired before the mouse drag is handled by the screen.从类继承的嵌套类/接口 net.minecraftforge.client.event.ScreenEvent
ScreenEvent.BackgroundRendered, ScreenEvent.CharacterTyped, ScreenEvent.Closing, ScreenEvent.Init, ScreenEvent.KeyPressed, ScreenEvent.KeyReleased, ScreenEvent.MouseButtonPressed, ScreenEvent.MouseButtonReleased, ScreenEvent.MouseDragged, ScreenEvent.MouseScrolled, ScreenEvent.Opening, ScreenEvent.Render, ScreenEvent.RenderInventoryMobEffects
从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段 -
构造器概要
构造器构造器说明MouseDragged
(Screen screen, double mouseX, double mouseY, int mouseButton, double dragX, double dragY) -
方法概要
从类继承的方法 net.minecraftforge.client.event.ScreenEvent.MouseInput
getMouseX, getMouseY
从类继承的方法 net.minecraftforge.client.event.ScreenEvent
getScreen
从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
mouseButton
private final int mouseButton -
dragX
private final double dragX -
dragY
private final double dragY
-
-
构造器详细资料
-
MouseDragged
@Internal public MouseDragged(Screen screen, double mouseX, double mouseY, int mouseButton, double dragX, double dragY)
-
-
方法详细资料
-
getMouseButton
public int getMouseButton()返回 the mouse button's input code。- 返回:
- the mouse button's input code
- 另请参阅:
-
getDragX
public double getDragX()返回 amount of mouse drag along the X axis。- 返回:
- amount of mouse drag along the X axis
-
getDragY
public double getDragY()返回 amount of mouse drag along the Y axis。- 返回:
- amount of mouse drag along the Y axis
-