Contents
Record Class AssetPackSaveBrowser.ActionResult
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.ui.browser.AssetPackSaveBrowser.ActionResult
- Enclosing class:
AssetPackSaveBrowser
public static record AssetPackSaveBrowser.ActionResult(@Nonnull UICommandBuilder commandBuilder, @Nullable UIEventBuilder eventBuilder, @Nullable String errorKey, boolean packConfirmed)
extends Record
Result of
AssetPackSaveBrowser.handleAction(String, AssetPackSaveBrowserEventData, String). Contains pre-built UI updates for the page to send.
packConfirmed is true when the user confirmed their pack selection, signaling
the page to persist the choice.-
Constructor Summary
ConstructorsConstructorDescriptionActionResult(UICommandBuilder commandBuilder, UIEventBuilder eventBuilder, String errorKey, boolean packConfirmed) Creates an instance of aActionResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecommandBuilderrecord component.final booleanIndicates whether some other object is "equal to" this one.errorKey()Returns the value of theerrorKeyrecord component.Returns the value of theeventBuilderrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thepackConfirmedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ActionResult
public ActionResult(@Nonnull UICommandBuilder commandBuilder, @Nullable UIEventBuilder eventBuilder, @Nullable String errorKey, boolean packConfirmed) Creates an instance of aActionResultrecord class.- Parameters:
commandBuilder- the value for thecommandBuilderrecord componenteventBuilder- the value for theeventBuilderrecord componenterrorKey- the value for theerrorKeyrecord componentpackConfirmed- the value for thepackConfirmedrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
commandBuilder
Returns the value of thecommandBuilderrecord component.- Returns:
- the value of the
commandBuilderrecord component
-
eventBuilder
Returns the value of theeventBuilderrecord component.- Returns:
- the value of the
eventBuilderrecord component
-
errorKey
Returns the value of theerrorKeyrecord component.- Returns:
- the value of the
errorKeyrecord component
-
packConfirmed
public boolean packConfirmed()Returns the value of thepackConfirmedrecord component.- Returns:
- the value of the
packConfirmedrecord component
-