Buttons
Creating a Button
A Button
can be created using either the Button.of(ItemType)
factory method.
Button Styling
You can use any of the following methods to style aButton
:
Any updates to a Button
will be immediately reflected in the Gui
without having to explicitly update the Gui
.
Click Handling
Button
clicks can be handled using the onClick(Consumer<Click>)
method:
Last updated