Record Class RealmsAvailability.Result
java.lang.Object
java.lang.Record
com.mojang.realmsclient.RealmsAvailability.Result
- Enclosing class:
RealmsAvailability
public static record RealmsAvailability.Result(RealmsAvailability.Type type, @Nullable RealmsServiceException exception)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable RealmsServiceExceptionThe field for theexceptionrecord component.private final RealmsAvailability.TypeThe field for thetyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionResult(RealmsServiceException exception) Result(RealmsAvailability.Type type, @Nullable RealmsServiceException exception) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable ScreencreateErrorScreen(Screen lastScreen) final booleanIndicates whether some other object is "equal to" this one.@Nullable RealmsServiceExceptionReturns the value of theexceptionrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
type
The field for thetyperecord component. -
exception
The field for theexceptionrecord component.
-
-
Constructor Details
-
Result
-
Result
-
Result
Creates an instance of aResultrecord class.- Parameters:
type- the value for thetyperecord componentexception- the value for theexceptionrecord component
-
-
Method Details
-
createErrorScreen
-
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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
exception
Returns the value of theexceptionrecord component.- Returns:
- the value of the
exceptionrecord component
-