SwitchComponent

A gui element displaying a switch to represent a boolean value.

Constructors

Link copied to clipboard
constructor(value: GetSetter<Boolean>, timeToReachTarget: Int)

Functions

Link copied to clipboard
open fun getHeight(): Int
Get the requested y size for this element.
Link copied to clipboard
open fun getWidth(): Int
Get the requested x size for this element.
Link copied to clipboard
open fun mouseEvent(event: MouseEvent, context: GuiImmediateContext): Boolean
Called by the parent renderer.
Link copied to clipboard
open fun render(context: GuiImmediateContext)
Called by the parent renderer.