Record Class RealmTierConfigurationDto
java.lang.Object
java.lang.Record
com.mojang.realmsclient.dto.RealmTierConfigurationDto
- All Implemented Interfaces:
ReflectionBasedSerialization
public record RealmTierConfigurationDto(RealmTierConfigurationDto.RealmTierRangeDto renderDistance, RealmTierConfigurationDto.RealmTierRangeDto simDistance)
extends Record
implements ReflectionBasedSerialization
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RealmTierConfigurationDto.RealmTierRangeDtoThe field for therenderDistancerecord component.private final RealmTierConfigurationDto.RealmTierRangeDtoThe field for thesimDistancerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRealmTierConfigurationDto(RealmTierConfigurationDto.RealmTierRangeDto renderDistance, RealmTierConfigurationDto.RealmTierRangeDto simDistance) Creates an instance of aRealmTierConfigurationDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therenderDistancerecord component.Returns the value of thesimDistancerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
renderDistance
@SerializedName("renderDistance") private final RealmTierConfigurationDto.RealmTierRangeDto renderDistanceThe field for therenderDistancerecord component. -
simDistance
@SerializedName("simDistance") private final RealmTierConfigurationDto.RealmTierRangeDto simDistanceThe field for thesimDistancerecord component.
-
-
Constructor Details
-
RealmTierConfigurationDto
public RealmTierConfigurationDto(RealmTierConfigurationDto.RealmTierRangeDto renderDistance, RealmTierConfigurationDto.RealmTierRangeDto simDistance) Creates an instance of aRealmTierConfigurationDtorecord class.- Parameters:
renderDistance- the value for therenderDistancerecord componentsimDistance- the value for thesimDistancerecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
renderDistance
@SerializedName("renderDistance") public RealmTierConfigurationDto.RealmTierRangeDto renderDistance()Returns the value of therenderDistancerecord component.- Returns:
- the value of the
renderDistancerecord component
-
simDistance
Returns the value of thesimDistancerecord component.- Returns:
- the value of the
simDistancerecord component
-