Package net.blueva.arcade.api.ui.menu
Class BedrockButtonDefinition
java.lang.Object
net.blueva.arcade.api.ui.menu.BedrockButtonDefinition
- Record Components:
text- the button text displayed to playersimageUrl- the URL to an image icon (optional), or nullactions- the list of action commands to execute when clicked
Deprecated.
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 Summary
ConstructorsConstructorDescriptionBedrockButtonDefinition(String text, String imageUrl, List<String> actions) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionactions()Deprecated.booleanDeprecated.inthashCode()Deprecated.imageUrl()Deprecated.static BedrockButtonDefinitionDeprecated.Creates a button with an image.static BedrockButtonDefinitionDeprecated.Creates a button without an image.text()Deprecated.toString()Deprecated.
-
Constructor Details
-
BedrockButtonDefinition
Deprecated.
-
-
Method Details
-
text
Deprecated. -
imageUrl
Deprecated. -
actions
Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated. -
of
Deprecated.Creates a button without an image.- Parameters:
text- the button textactions- the actions to execute- Returns:
- a new BedrockButtonDefinition
-
of
Deprecated.Creates a button with an image.- Parameters:
text- the button textimageUrl- the image URLactions- the actions to execute- Returns:
- a new BedrockButtonDefinition
-
MCBedrockButtonDefinitioninstead. This class is kept for backward compatibility with API 3.1 modules.