Interface UIClickEvent

Object where you can specify how the UI element will behave on touch events.

interface UIClickEvent {
    onClick?: ((position: Vector, container: ItemContainer | UiAbstractContainer, tileEntity: any, window: IWindow, canvas: Canvas, scale: number) => void);
    onLongClick?: ((position: Vector, container: ItemContainer | UiAbstractContainer, tileEntity: any, window: IWindow, canvas: Canvas, scale: number) => void);
}

Properties

onClick?: ((position: Vector, container: ItemContainer | UiAbstractContainer, tileEntity: any, window: IWindow, canvas: Canvas, scale: number) => void)

This function will be called when element is short touched.

onLongClick?: ((position: Vector, container: ItemContainer | UiAbstractContainer, tileEntity: any, window: IWindow, canvas: Canvas, scale: number) => void)

This function will be called when element is long touched.

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.