MagicCombatButtonGroupAction

implement this interface to tell a button group what action to perform

Example implementation:

public class ExampleButtonGroupAction implements ButtonGroupAction {
@Override
public void execute(@NotNull List<?> data, @Nullable Object selectedButtonData, @Nullable Object unselectedButtonData) {
Global.getLogger(this.getClass()).info("A button in the button group was clicked. Button group data:");
Global.getLogger(this.getClass()).info(data);
}

@Override
public void onHover() {
}
}

Author

Jannes

Since

1.3.0

Functions

Link copied to clipboard
abstract fun execute(data: List<Any>, selectedButtonData: Any?, deselectedButtonData: Any? = null)

This method will get called when a button in this button group gets clicked by the user

Link copied to clipboard
open fun onHover()

Override this function to perform some kind of action when a button of the group is hovered over