AdvancedElementKeyBind

Provides a key bind element.

Author

Aton

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
fun drawScreen(mouseX: Int, mouseY: Int, partialTicks: Float)
Link copied to clipboard
open override fun keyTyped(typedChar: Char, keyCode: Int): Boolean

Register key strokes. Used to set the key bind.

Link copied to clipboard
open override fun mouseClicked(mouseX: Int, mouseY: Int, mouseButton: Int): Boolean

Handles mouse clicks for this element and returns true if an action was performed. Used to interact with the element and to register mouse binds.

Link copied to clipboard
open fun mouseReleased(mouseX: Int, mouseY: Int, state: Int)
Link copied to clipboard
Link copied to clipboard
open override fun renderElement(mouseX: Int, mouseY: Int, partialTicks: Float): Int

Render the element

Link copied to clipboard
fun setDimensions(x: Int, y: Int, width: Int, height: Int)
Link copied to clipboard
fun setPosition(x: Int, y: Int)

Properties

Link copied to clipboard
Link copied to clipboard
var height: Int

Height of the entire element consisting of the setting and description. Essentially the height of the higher one of the two

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Height of the Setting without the description text.

Link copied to clipboard

Width of the Setting without the description text.

Link copied to clipboard
Link copied to clipboard
var width: Int

Width of the entire element consisting of the setting and description.

Link copied to clipboard
var x: Int
Link copied to clipboard
var y: Int