clientUI

Methods
2
Fields
None

Getting one

clientUI

Methods

MethodReturnsDescription
setCursor(BufferedImage, string?)()Shows image as the cursor over the game canvas until resetCursor, its hotspot at the top-left pixel, scaled to the system cursor size b…
resetCursor()()Puts back the game's own cursor.

Method details

setCursor

setCursor: (ClientUI, BufferedImage, string?) -> ()

Shows image as the cursor over the game canvas until resetCursor, its hotspot at the top-left pixel, scaled to the system cursor size by pixel replication, each pixel either transparent (alpha 0) or opaque (its colour over black). The image's pixels are read now; drawing on it later changes nothing. name names the cursor. It takes over from the next client tick, when the pointer next moves over the canvas; egui's own windows keep their cursors.