Package net.minecraft.client.realms.dto
Record Class RealmsConfigurationDto
java.lang.Object
java.lang.Record
net.minecraft.client.realms.dto.RealmsConfigurationDto
- Record Components:
options-settings-regionSelectionPreference-description-
- All Implemented Interfaces:
RealmsSerializable
@Environment(CLIENT)
public record RealmsConfigurationDto(RealmsOptionsDto options, List<RealmsSettingDto> settings, @Nullable RealmsRegionSelectionPreference regionSelectionPreference, @Nullable RealmsDescriptionDto description)
extends Record
implements RealmsSerializable
- Mappings:
Namespace Name named net/minecraft/client/realms/dto/RealmsConfigurationDtointermediary net/minecraft/class_11302official fvnnamed optionsintermediary comp_4176official anamed settingsintermediary comp_4177official bnamed regionSelectionPreferenceintermediary comp_4178official cnamed descriptionintermediary comp_4179official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable RealmsDescriptionDtoThe field for thedescriptionrecord component.private final RealmsOptionsDtoThe field for theoptionsrecord component.private final @Nullable RealmsRegionSelectionPreferenceThe field for theregionSelectionPreferencerecord component.private final List<RealmsSettingDto> The field for thesettingsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRealmsConfigurationDto(RealmsOptionsDto realmsOptionsDto, List<RealmsSettingDto> list, @Nullable RealmsRegionSelectionPreference realmsRegionSelectionPreference, @Nullable RealmsDescriptionDto realmsDescriptionDto) -
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 @Nullable RealmsRegionSelectionPreference regionSelectionPreferenceThe field for theregionSelectionPreferencerecord component. -
description
The field for thedescriptionrecord component.
-
-
Constructor Details
-
RealmsConfigurationDto
public RealmsConfigurationDto(RealmsOptionsDto realmsOptionsDto, List<RealmsSettingDto> list, @Nullable @Nullable RealmsRegionSelectionPreference realmsRegionSelectionPreference, @Nullable @Nullable RealmsDescriptionDto realmsDescriptionDto)
-
-
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 @Nullable RealmsRegionSelectionPreference 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
-