Enum Class CursorType
- All Implemented Interfaces:
Serializable, Comparable<CursorType>, Constable
An enumeration representing different types of mouse cursors that can be used in the
graphical user interface (GUI).
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionStandard arrow.Crosshair.Default cursor icon.Vertical line with serifs.
Indicates an editable text field.Slashed circle (circle with a diagonal line ⊘).
Indicating an action cannot be performed, like clicking or during drag-and-drop operations.Hand Pointer with index finger pointing up.
Indicating a clickable link or interactive UI element.Four-way arrow (↔ with ↕ overlaid).
For moving an element or resizing in any direction.Vertical double arrow (↕).
For resizing a window or element vertically.Horizontal double arrow (↔).
For resizing a window or element horizontally. -
Method Summary
Modifier and TypeMethodDescriptionfinal com.mojang.blaze3d.platform.cursor.CursorTypeReturns the game's correspondingCursorTypeintance that is represented by thisCursorType.static CursorTypeReturns the enum constant of this class with the specified name.static CursorType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Default cursor icon. Same asARROW. -
ARROW
Standard arrow. Default pointer.
General navigation, for non-interactive elements. -
IBEAM
Vertical line with serifs.
Indicates an editable text field. For text selection and insertion. -
CROSSHAIR
Crosshair. Thin plus-shaped icon.
For precise selection, drawing, or targeting. -
POINTING_HAND
Hand Pointer with index finger pointing up.
Indicating a clickable link or interactive UI element. -
RESIZE_NS
Horizontal double arrow (↔).
For resizing a window or element horizontally. -
RESIZE_EW
Vertical double arrow (↕).
For resizing a window or element vertically. -
RESIZE_ALL
Four-way arrow (↔ with ↕ overlaid).
For moving an element or resizing in any direction. -
NOT_ALLOWED
Slashed circle (circle with a diagonal line ⊘).
Indicating an action cannot be performed, like clicking or during drag-and-drop operations.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getNative
@Internal public final com.mojang.blaze3d.platform.cursor.CursorType getNative()Returns the game's correspondingCursorTypeintance that is represented by thisCursorType.Used internally by this API mod to display said cursor on screen.
-