Record Class RealmsGenericErrorScreen.ErrorMessage
java.lang.Object
java.lang.Record
com.mojang.realmsclient.gui.screens.RealmsGenericErrorScreen.ErrorMessage
- Enclosing class:
RealmsGenericErrorScreen
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateErrorMessage(Component title, Component detail) Creates an instance of aErrorMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptiondetail()Returns the value of thedetailrecord component.final booleanIndicates whether some other object is "equal to" this one.private static RealmsGenericErrorScreen.ErrorMessageforServiceError(RealmsServiceException realmsServiceException) final inthashCode()Returns a hash code value for this object.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
title
The field for thetitlerecord component. -
detail
The field for thedetailrecord component.
-
-
Constructor Details
-
ErrorMessage
-
-
Method Details
-
forServiceError
private static RealmsGenericErrorScreen.ErrorMessage forServiceError(RealmsServiceException realmsServiceException) -
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). -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
detail
Returns the value of thedetailrecord component.- Returns:
- the value of the
detailrecord component
-