Record Class DialogReference
java.lang.Object
java.lang.Record
fr.fidorial.dialog.DialogReference
- Record Components:
key- the key the dialog is registered under
- All Implemented Interfaces:
Dialog, DialogLike
@SinceMinecraft("1.21.6")
public record DialogReference(TypedKey<DialogDefinition> key)
extends Record
implements Dialog
A pointer to a dialog held by the dialog registry.
- Since:
- 0.1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aDialogReferencerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DialogReference
Creates an instance of aDialogReferencerecord class.- Parameters:
key- the value for thekeyrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
key
-