Package com.mojang.realmsclient
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 RealmsServiceExceptionThe field for theexceptionrecord component.private final RealmsAvailability.TypeThe field for thetyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionResult(RealmsServiceException p_294364_) Result(RealmsAvailability.Type p_294456_) Result(RealmsAvailability.Type type, RealmsServiceException exception) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncreateErrorScreen(Screen p_296406_) final booleanIndicates whether some other object is "equal to" this one.Returns 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
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). -
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
-