Class BedrockButtonDefinition

java.lang.Object
net.blueva.arcade.api.ui.menu.BedrockButtonDefinition
Record Components:
text - the button text displayed to players
imageUrl - the URL to an image icon (optional), or null
actions - the list of action commands to execute when clicked

@Deprecated public final class BedrockButtonDefinition extends Object
Deprecated.
Since 3.2. Use MCBedrockButtonDefinition instead. This class is kept for backward compatibility with API 3.1 modules.
Bedrock menu button definition for form-based UIs.

Defines a clickable button in a Bedrock form menu, including display text, optional image, and actions to execute when clicked.

  • Constructor Details

    • BedrockButtonDefinition

      public BedrockButtonDefinition(String text, String imageUrl, List<String> actions)
      Deprecated.
  • Method Details

    • text

      public String text()
      Deprecated.
    • imageUrl

      public String imageUrl()
      Deprecated.
    • actions

      public List<String> actions()
      Deprecated.
    • equals

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

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

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • of

      public static BedrockButtonDefinition of(String text, List<String> actions)
      Deprecated.
      Creates a button without an image.
      Parameters:
      text - the button text
      actions - the actions to execute
      Returns:
      a new BedrockButtonDefinition
    • of

      public static BedrockButtonDefinition of(String text, String imageUrl, List<String> actions)
      Deprecated.
      Creates a button with an image.
      Parameters:
      text - the button text
      imageUrl - the image URL
      actions - the actions to execute
      Returns:
      a new BedrockButtonDefinition