2019-06-28 17:55:20 -04:00
CLASS net/minecraft/class_364 net/minecraft/client/gui/Element
2020-09-24 06:30:57 -04:00
COMMENT Base GUI interface for handling callbacks related to
COMMENT keyboard or mouse actions.
COMMENT
COMMENT Mouse coordinate is bounded by the size of the window in
COMMENT pixels.
2019-06-28 17:55:20 -04:00
METHOD method_16014 mouseMoved (DD)V
2020-09-24 06:30:57 -04:00
COMMENT Callback for when a mouse move event has been captured.
COMMENT
COMMENT @see net.minecraft.client.Mouse#onCursorPos
2019-06-28 17:55:20 -04:00
ARG 1 mouseX
2020-09-24 06:30:57 -04:00
COMMENT the X coordinate of the mouse
2019-06-28 17:55:20 -04:00
ARG 3 mouseY
2020-09-24 06:30:57 -04:00
COMMENT the Y coordinate of the mouse
2019-06-28 17:55:20 -04:00
METHOD method_16803 keyReleased (III)Z
2020-09-24 06:30:57 -04:00
COMMENT Callback for when a key down event has been captured.
COMMENT
COMMENT The key code is identified by the constants in
COMMENT {@link org.lwjgl.glfw.GLFW GLFW} class.
COMMENT
COMMENT @return {@code true} to indicate that the event handling is successful/valid
COMMENT @see net.minecraft.client.Keyboard#onKey(long, int, int, int, int)
COMMENT @see org.lwjgl.glfw.GLFW#GLFW_KEY_Q
COMMENT @see org.lwjgl.glfw.GLFWKeyCallbackI#invoke(long, int, int, int, int)
2019-06-28 17:55:20 -04:00
ARG 1 keyCode
2020-09-24 06:30:57 -04:00
COMMENT the named key code of the event as described in the {@link org.lwjgl.glfw.GLFW GLFW} class
2019-06-28 17:55:20 -04:00
ARG 2 scanCode
2020-09-24 06:30:57 -04:00
COMMENT the unique/platform-specific scan code of the keyboard input
2019-06-28 17:55:20 -04:00
ARG 3 modifiers
2020-11-20 12:31:04 -05:00
COMMENT a GLFW bitfield describing the modifier keys that are held down (see <a href="https://www.glfw.org/docs/3.3/group__mods.html">GLFW Modifier key flags</a>)
2020-03-04 18:18:13 -05:00
METHOD method_25400 charTyped (CI)Z
2020-09-24 06:30:57 -04:00
COMMENT Callback for when a character input has been captured.
COMMENT
COMMENT The key code is identified by the constants in
COMMENT {@link org.lwjgl.glfw.GLFW GLFW} class.
COMMENT
COMMENT @return {@code true} to indicate that the event handling is successful/valid
COMMENT @see net.minecraft.client.Keyboard#onChar(long, int, int)
COMMENT @see org.lwjgl.glfw.GLFW#GLFW_KEY_Q
COMMENT @see org.lwjgl.glfw.GLFWKeyCallbackI#invoke(long, int, int, int, int)
2020-03-04 15:22:46 -05:00
ARG 1 chr
2020-09-24 06:30:57 -04:00
COMMENT the captured character
2021-02-02 12:52:37 -05:00
ARG 2 modifiers
COMMENT a GLFW bitfield describing the modifier keys that are held down (see <a href="https://www.glfw.org/docs/3.3/group__mods.html">GLFW Modifier key flags</a>)
2020-03-04 18:18:13 -05:00
METHOD method_25401 mouseScrolled (DDD)Z
2020-09-24 06:30:57 -04:00
COMMENT Callback for when a mouse button scroll event
COMMENT has been captured.
COMMENT
COMMENT @return {@code true} to indicate that the event handling is successful/valid
COMMENT @see net.minecraft.client.Mouse#onMouseScroll(long, double, double)
2020-03-04 15:22:46 -05:00
ARG 1 mouseX
2020-09-24 06:30:57 -04:00
COMMENT the X coordinate of the mouse
2020-03-04 15:22:46 -05:00
ARG 3 mouseY
2020-09-24 06:30:57 -04:00
COMMENT the Y coordinate of the mouse
2020-03-04 15:22:46 -05:00
ARG 5 amount
2021-08-21 05:37:06 -04:00
COMMENT value is {@code < 0} if scrolled down, {@code > 0} if scrolled up
2020-03-04 18:18:13 -05:00
METHOD method_25402 mouseClicked (DDI)Z
2020-09-24 06:30:57 -04:00
COMMENT Callback for when a mouse button down event
COMMENT has been captured.
COMMENT
COMMENT The button number is identified by the constants in
COMMENT {@link org.lwjgl.glfw.GLFW GLFW} class.
COMMENT
COMMENT @return {@code true} to indicate that the event handling is successful/valid
COMMENT @see net.minecraft.client.Mouse#onMouseButton(long, int, int, int)
COMMENT @see org.lwjgl.glfw.GLFW#GLFW_MOUSE_BUTTON_1
2019-02-21 13:15:03 -05:00
ARG 1 mouseX
2020-09-24 06:30:57 -04:00
COMMENT the X coordinate of the mouse
2019-02-21 13:15:03 -05:00
ARG 3 mouseY
2020-09-24 06:30:57 -04:00
COMMENT the Y coordinate of the mouse
2019-02-21 13:15:03 -05:00
ARG 5 button
2020-09-24 06:30:57 -04:00
COMMENT the mouse button number
2020-03-04 18:18:13 -05:00
METHOD method_25403 mouseDragged (DDIDD)Z
2020-09-24 06:30:57 -04:00
COMMENT Callback for when a mouse button drag event
COMMENT has been captured.
COMMENT
COMMENT The button number is identified by the constants in
COMMENT {@link org.lwjgl.glfw.GLFW GLFW} class.
COMMENT
COMMENT @return {@code true} to indicate that the event handling is successful/valid
COMMENT @see net.minecraft.client.Mouse#onCursorPos(long, double, double)
COMMENT @see org.lwjgl.glfw.GLFW#GLFW_MOUSE_BUTTON_1
2019-02-21 13:15:03 -05:00
ARG 1 mouseX
2020-09-24 06:30:57 -04:00
COMMENT the current X coordinate of the mouse
2019-02-21 13:15:03 -05:00
ARG 3 mouseY
2020-09-24 06:30:57 -04:00
COMMENT the current Y coordinate of the mouse
2019-02-21 13:15:03 -05:00
ARG 5 button
2020-09-24 06:30:57 -04:00
COMMENT the mouse button number
2019-02-21 13:15:03 -05:00
ARG 6 deltaX
2020-09-24 06:30:57 -04:00
COMMENT the difference of the current X with the previous X coordinate
2019-02-21 13:15:03 -05:00
ARG 8 deltaY
2020-09-24 06:30:57 -04:00
COMMENT the difference of the current Y with the previous Y coordinate
2020-03-04 18:18:13 -05:00
METHOD method_25404 keyPressed (III)Z
2020-09-24 06:30:57 -04:00
COMMENT Callback for when a key down event has been captured.
COMMENT
COMMENT The key code is identified by the constants in
COMMENT {@link org.lwjgl.glfw.GLFW GLFW} class.
COMMENT
COMMENT @return {@code true} to indicate that the event handling is successful/valid
COMMENT @see net.minecraft.client.Keyboard#onKey(long, int, int, int, int)
COMMENT @see org.lwjgl.glfw.GLFW#GLFW_KEY_Q
COMMENT @see org.lwjgl.glfw.GLFWKeyCallbackI#invoke(long, int, int, int, int)
2020-03-04 15:22:46 -05:00
ARG 1 keyCode
2020-09-24 06:30:57 -04:00
COMMENT the named key code of the event as described in the {@link org.lwjgl.glfw.GLFW GLFW} class
2020-03-04 15:22:46 -05:00
ARG 2 scanCode
2020-09-24 06:30:57 -04:00
COMMENT the unique/platform-specific scan code of the keyboard input
2020-03-04 15:22:46 -05:00
ARG 3 modifiers
2020-11-20 12:31:04 -05:00
COMMENT a GLFW bitfield describing the modifier keys that are held down (see <a href="https://www.glfw.org/docs/3.3/group__mods.html">GLFW Modifier key flags</a>)
2020-03-04 18:18:13 -05:00
METHOD method_25405 isMouseOver (DD)Z
2020-09-24 06:30:57 -04:00
COMMENT Checks if the mouse position is within the bound
COMMENT of the element.
COMMENT
COMMENT @return {@code true} if the mouse is within the bound of the element, otherwise {@code false}
2019-02-21 13:15:03 -05:00
ARG 1 mouseX
2020-09-24 06:30:57 -04:00
COMMENT the X coordinate of the mouse
2019-02-21 13:15:03 -05:00
ARG 3 mouseY
2020-09-24 06:30:57 -04:00
COMMENT the Y coordinate of the mouse
2020-03-04 18:18:13 -05:00
METHOD method_25406 mouseReleased (DDI)Z
2020-09-24 06:30:57 -04:00
COMMENT Callback for when a mouse button release event
COMMENT has been captured.
COMMENT
COMMENT The button number is identified by the constants in
COMMENT {@link org.lwjgl.glfw.GLFW GLFW} class.
COMMENT
COMMENT @return {@code true} to indicate that the event handling is successful/valid
COMMENT @see net.minecraft.client.Mouse#onMouseButton(long, int, int, int)
COMMENT @see org.lwjgl.glfw.GLFW#GLFW_MOUSE_BUTTON_1
2019-04-22 08:29:05 -04:00
ARG 1 mouseX
2020-09-24 06:30:57 -04:00
COMMENT the X coordinate of the mouse
2019-04-22 08:29:05 -04:00
ARG 3 mouseY
2020-09-24 06:30:57 -04:00
COMMENT the Y coordinate of the mouse
2020-03-04 15:22:46 -05:00
ARG 5 button
2020-09-24 06:30:57 -04:00
COMMENT the mouse button number
2020-03-04 18:18:13 -05:00
METHOD method_25407 changeFocus (Z)Z
2020-09-24 06:30:57 -04:00
COMMENT Changes the focusing element by cycling to the next/previous element.
COMMENT
COMMENT This action is done typically when the user has pressed the 'Tab' or 'Ctrl+Tab'
COMMENT key.
COMMENT
COMMENT @return {@code true} to indicate that the event handling is successful/valid
2020-03-04 15:22:46 -05:00
ARG 1 lookForwards
2020-09-24 06:30:57 -04:00
COMMENT {@code true} to cycle forwards, otherwise cycle backwards