Record Class PaperDialogPayload
java.lang.Object
java.lang.Record
io.github.projectunified.unidialog.paper.payload.PaperDialogPayload
- All Implemented Interfaces:
io.github.projectunified.unidialog.core.payload.DialogPayload
-
Constructor Summary
ConstructorsConstructorDescriptionPaperDialogPayload(UUID owner, @Nullable io.papermc.paper.dialog.DialogResponseView view) Creates an instance of aPaperDialogPayloadrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable BooleanbooleanValue(String key) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.map()@Nullable NumbernumberValue(String key) owner()Returns the value of theownerrecord component.@Nullable Stringfinal StringtoString()Returns a string representation of this record class.@Nullable io.papermc.paper.dialog.DialogResponseViewview()Returns the value of theviewrecord component.
-
Constructor Details
-
PaperDialogPayload
public PaperDialogPayload(UUID owner, @Nullable @Nullable io.papermc.paper.dialog.DialogResponseView view) Creates an instance of aPaperDialogPayloadrecord class.- Parameters:
owner- the value for theownerrecord componentview- the value for theviewrecord component
-
-
Method Details
-
textValue
- Specified by:
textValuein interfaceio.github.projectunified.unidialog.core.payload.DialogPayload
-
booleanValue
- Specified by:
booleanValuein interfaceio.github.projectunified.unidialog.core.payload.DialogPayload
-
numberValue
- Specified by:
numberValuein interfaceio.github.projectunified.unidialog.core.payload.DialogPayload
-
map
- Specified by:
mapin interfaceio.github.projectunified.unidialog.core.payload.DialogPayload
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
owner
Returns the value of theownerrecord component.- Specified by:
ownerin interfaceio.github.projectunified.unidialog.core.payload.DialogPayload- Returns:
- the value of the
ownerrecord component
-
view
@Nullable public @Nullable io.papermc.paper.dialog.DialogResponseView view()Returns the value of theviewrecord component.- Returns:
- the value of the
viewrecord component
-