Record Class RealmsPdpScreen.PdpHeaderEntry.Subtitle
java.lang.Object
java.lang.Record
com.mojang.realmsclient.gui.screens.RealmsPdpScreen.PdpHeaderEntry.Subtitle
- Enclosing class:
RealmsPdpScreen.PdpHeaderEntry
private static record RealmsPdpScreen.PdpHeaderEntry.Subtitle(Component subTitle, Identifier icon)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IdentifierThe field for theiconrecord component.private final ComponentThe field for thesubTitlerecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSubtitle(Component subTitle, Identifier icon) Creates an instance of aSubtitlerecord 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.icon()Returns the value of theiconrecord component.subTitle()Returns the value of thesubTitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
subTitle
The field for thesubTitlerecord component. -
icon
The field for theiconrecord component.
-
-
Constructor Details
-
Subtitle
Creates an instance of aSubtitlerecord class.- Parameters:
subTitle- the value for thesubTitlerecord componenticon- the value for theiconrecord 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). -
subTitle
Returns the value of thesubTitlerecord component.- Returns:
- the value of the
subTitlerecord component
-
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-