Package org.quiltmc.qkl.wrapper.qsl.client.screen

Types

Link copied to clipboard
typealias KeyboardKey<T> = Screen.(key: Int, scanCode: Int, modifiers: Int) -> T
Link copied to clipboard
typealias MouseClick<T> = Screen.(mouseX: Double, mouseY: Double, button: Int) -> T
Link copied to clipboard
typealias MouseScroll<T> = Screen.(mouseX: Double, mouseY: Double, scrollX: Double, scrollY: Double) -> T
Link copied to clipboard
typealias ScreenGenericCallback = Screen.() -> Unit
Link copied to clipboard
typealias ScreenInitCallback = Screen.(client: MinecraftClient, scaledWidth: Int, scaledHeight: Int) -> Unit
Link copied to clipboard
typealias ScreenRenderCallback = Screen.(matrices: MatrixStack, mouseX: Int, mouseY: Int, tickDelta: Float) -> Unit

Functions

Link copied to clipboard
fun EventRegistration.afterKeyPress(callback: KeyboardKey<Unit>)
Link copied to clipboard
fun EventRegistration.afterKeyRelease(callback: KeyboardKey<Unit>)
Link copied to clipboard
fun EventRegistration.afterMouseClick(callback: MouseClick<Unit>)
Link copied to clipboard
fun EventRegistration.afterMouseRelease(callback: MouseClick<Unit>)
Link copied to clipboard
fun EventRegistration.afterMouseScroll(callback: MouseScroll<Unit>)
Link copied to clipboard
fun EventRegistration.afterScreenInit(callback: ScreenInitCallback)
Link copied to clipboard
fun EventRegistration.afterScreenRender(callback: ScreenRenderCallback)
Link copied to clipboard
fun EventRegistration.afterScreenTick(callback: ScreenGenericCallback)
Link copied to clipboard
fun EventRegistration.allowKeyPress(callback: KeyboardKey<TriState>)
Link copied to clipboard
fun EventRegistration.allowKeyRelease(callback: KeyboardKey<TriState>)
Link copied to clipboard
fun EventRegistration.allowMouseClick(callback: MouseClick<TriState>)
Link copied to clipboard
fun EventRegistration.allowMouseRelease(callback: MouseClick<TriState>)
Link copied to clipboard
fun EventRegistration.allowMouseScroll(callback: MouseScroll<TriState>)
Link copied to clipboard
fun EventRegistration.beforeKeyPress(callback: KeyboardKey<Unit>)
Link copied to clipboard
fun EventRegistration.beforeKeyRelease(callback: KeyboardKey<Unit>)
Link copied to clipboard
fun EventRegistration.beforeMouseClick(callback: MouseClick<Unit>)
Link copied to clipboard
fun EventRegistration.beforeMouseRelease(callback: MouseClick<Unit>)
Link copied to clipboard
fun EventRegistration.beforeMouseScroll(callback: MouseScroll<Unit>)
Link copied to clipboard
fun EventRegistration.beforeScreenInit(callback: ScreenInitCallback)
Link copied to clipboard
fun EventRegistration.beforeScreenRender(callback: ScreenRenderCallback)
Link copied to clipboard
fun EventRegistration.beforeScreenTick(callback: ScreenGenericCallback)
Link copied to clipboard
fun EventRegistration.onScreenRemoved(callback: ScreenGenericCallback)

Properties

Link copied to clipboard
val Screen.buttons: MutableList<ClickableWidget>

All buttons on the screen. Adding and removing buttons can be done by modifying this list, and doing so in a different way is not recommended.

Link copied to clipboard
val Screen.client: MinecraftClient

The current Minecraft client instance.

Link copied to clipboard
val Screen.itemRenderer: ItemRenderer

The current item renderer.

Link copied to clipboard
val Screen.textRenderer: TextRenderer

The current text renderer.