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 SummaryFieldsModifier and TypeFieldDescriptionprivate final RealmsServiceExceptionThe field for theexceptionrecord component.private final RealmsAvailability.TypeThe field for thetyperecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionResult(RealmsServiceException p_297806_) Result(RealmsAvailability.Type p_298726_) Result(RealmsAvailability.Type type, RealmsServiceException exception) Creates an instance of aResultrecord class.
- 
Method SummaryModifier and TypeMethodDescriptioncreateErrorScreen(Screen p_299167_) 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- 
typeThe field for thetyperecord component.
- 
exceptionThe field for theexceptionrecord component.
 
- 
- 
Constructor Details- 
Result
- 
Result
- 
ResultCreates an instance of aResultrecord class.- Parameters:
- type- the value for the- typerecord component
- exception- the value for the- exceptionrecord component
 
 
- 
- 
Method Details- 
createErrorScreen
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
typeReturns the value of thetyperecord component.- Returns:
- the value of the typerecord component
 
- 
exceptionReturns the value of theexceptionrecord component.- Returns:
- the value of the exceptionrecord component
 
 
-