Class HytaleUIEventBinding

java.lang.Object
net.blueva.arcade.api.ui.menu.hytale.HytaleUIEventBinding
Record Components:
elementSelector - the CSS-like selector for the target element (e.g. "#ConfirmButton")
eventType - the Hytale UI event type name (e.g. "Activating", "Hovering")
actionId - an action identifier sent back to the server handler
actions - the list of action commands to execute when triggered

public final class HytaleUIEventBinding extends Object
Binds a Hytale UI element to a server-side action.

When the user interacts with the element in the client UI, the server receives an event with the specified action identifier. The event type corresponds to Hytale's CustomUIEventBindingType values.

Since:
3.2
  • Constructor Details

  • Method Details

    • elementSelector

      public String elementSelector()
    • eventType

      public String eventType()
    • actionId

      public String actionId()
    • actions

      public List<String> actions()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • click

      public static HytaleUIEventBinding click(String selector, String actionId, List<String> actions)
      Creates a simple button-click binding.
      Parameters:
      selector - the element selector
      actionId - the action identifier
      actions - the actions to execute
      Returns:
      a new HytaleUIEventBinding for Activating events