Package com.mojang.realmsclient.dto
Record Class RealmsConfigurationDto
java.lang.Object
java.lang.Record
com.mojang.realmsclient.dto.RealmsConfigurationDto
- All Implemented Interfaces:
ReflectionBasedSerialization
public record RealmsConfigurationDto(RealmsSlotUpdateDto options, List<RealmsSetting> settings, @Nullable RegionSelectionPreferenceDto regionSelectionPreference, @Nullable RealmsDescriptionDto description)
extends Record
implements ReflectionBasedSerialization
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RealmsDescriptionDtoThe field for thedescriptionrecord component.private final RealmsSlotUpdateDtoThe field for theoptionsrecord component.private final RegionSelectionPreferenceDtoThe field for theregionSelectionPreferencerecord component.private final List<RealmsSetting> The field for thesettingsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRealmsConfigurationDto(RealmsSlotUpdateDto options, List<RealmsSetting> settings, RegionSelectionPreferenceDto regionSelectionPreference, RealmsDescriptionDto description) Creates an instance of aRealmsConfigurationDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.options()Returns the value of theoptionsrecord component.Returns the value of theregionSelectionPreferencerecord component.settings()Returns the value of thesettingsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
options
The field for theoptionsrecord component. -
settings
The field for thesettingsrecord component. -
regionSelectionPreference
@Nullable @SerializedName("regionSelectionPreference") private final RegionSelectionPreferenceDto regionSelectionPreferenceThe field for theregionSelectionPreferencerecord component. -
description
The field for thedescriptionrecord component.
-
-
Constructor Details
-
RealmsConfigurationDto
public RealmsConfigurationDto(RealmsSlotUpdateDto options, List<RealmsSetting> settings, @Nullable RegionSelectionPreferenceDto regionSelectionPreference, @Nullable RealmsDescriptionDto description) Creates an instance of aRealmsConfigurationDtorecord class.- Parameters:
options- the value for theoptionsrecord componentsettings- the value for thesettingsrecord componentregionSelectionPreference- the value for theregionSelectionPreferencerecord componentdescription- the value for thedescriptionrecord component
-
-
Method Details
-
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). -
options
Returns the value of theoptionsrecord component.- Returns:
- the value of the
optionsrecord component
-
settings
Returns the value of thesettingsrecord component.- Returns:
- the value of the
settingsrecord component
-
regionSelectionPreference
@Nullable @SerializedName("regionSelectionPreference") public RegionSelectionPreferenceDto regionSelectionPreference()Returns the value of theregionSelectionPreferencerecord component.- Returns:
- the value of the
regionSelectionPreferencerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-