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/RealmsConfigurationDto
intermediary net/minecraft/class_11302
official fpq
named options
intermediary comp_4176
official a
named settings
intermediary comp_4177
official b
named regionSelectionPreference
intermediary comp_4178
official c
named description
intermediary comp_4179
official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable RealmsDescriptionDto
The field for thedescription
record component.private final RealmsOptionsDto
The field for theoptions
record component.private final @Nullable RealmsRegionSelectionPreference
The field for theregionSelectionPreference
record component.private final List
<RealmsSettingDto> The field for thesettings
record component. -
Constructor Summary
ConstructorsConstructorDescriptionRealmsConfigurationDto
(RealmsOptionsDto realmsOptionsDto, List<RealmsSettingDto> list, @Nullable RealmsRegionSelectionPreference realmsRegionSelectionPreference, @Nullable RealmsDescriptionDto realmsDescriptionDto) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.options()
Returns the value of theoptions
record component.Returns the value of theregionSelectionPreference
record component.settings()
Returns the value of thesettings
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
options
The field for theoptions
record component. -
settings
The field for thesettings
record component. -
regionSelectionPreference
@Nullable @SerializedName("regionSelectionPreference") private final @Nullable RealmsRegionSelectionPreference regionSelectionPreferenceThe field for theregionSelectionPreference
record component. -
description
The field for thedescription
record 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 theoptions
record component.- Returns:
- the value of the
options
record component
-
settings
Returns the value of thesettings
record component.- Returns:
- the value of the
settings
record component
-
regionSelectionPreference
@Nullable @SerializedName("regionSelectionPreference") public @Nullable RealmsRegionSelectionPreference regionSelectionPreference()Returns the value of theregionSelectionPreference
record component.- Returns:
- the value of the
regionSelectionPreference
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-