Class Button

java.lang.Object
net.storm.api.plugins.config.Button

public class Button extends Object
Marker class used to identify button-type configuration items.

When a ConfigItem method returns a Button type, the configuration panel will render it as a clickable button instead of an input field. The button's action is typically defined through the configuration system's event handling.

Example usage:


 @ConfigItem(
     keyName = "resetSettings",
     name = "Reset Settings",
     description = "Click to reset all settings to defaults"
 )
 default Button resetSettings() {
     return new Button();
 }
 

Button clicks generate configuration change events that can be handled by subscribing to the appropriate event type.

See Also:
  • Constructor Details

    • Button

      public Button()