DecoratedActiveButtonWidget
constructor(title: Text, width: Int, height: Int, decoration: Identifier, activeProvider: Supplier<Boolean>, pressAction: Consumer<ActiveButtonWidget>, background: Identifier? = null)
constructor(titleSupplier: Supplier<Text>, width: Int, height: Int, decoration: Identifier, activeProvider: Supplier<Boolean>, pressAction: Consumer<ActiveButtonWidget>, background: Identifier? = null)
Parameters
titleSupplier
Supplier<Text> - supplies the message/label for this button
width
Int - width of the widget
height
Int - height of the widget
activeSupplier
Supplier
pressAction
Consumer
background
Identifier, optional - a custom background identifier. needs to be a nine-patch sprite