addButton

fun addButton(button: GuiButton): Gui

Add a base Minecraft button to the gui

Return

the Gui for method chaining

Parameters

button

the button to add


fun addButton(buttonId: Int, x: Int, y: Int, width: Int = 200, height: Int = 20, buttonText: String): Gui

Add a base Minecraft button to the gui

Return

the Gui for method chaining

Parameters

buttonId

id for the button

x

the x position of the button

y

the y position of the button

width

the width of the button

height

the height of the button

buttonText

the label of the button