Record Class GameConfig.QuickPlayRealmsData
java.lang.Object
java.lang.Record
net.minecraft.client.main.GameConfig.QuickPlayRealmsData
- All Implemented Interfaces:
GameConfig.QuickPlayVariant
- Enclosing class:
GameConfig
public static record GameConfig.QuickPlayRealmsData(String realmId)
extends Record
implements GameConfig.QuickPlayVariant
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for therealmIdrecord component.Fields inherited from interface GameConfig.QuickPlayVariant
DISABLED -
Constructor Summary
ConstructorsConstructorDescriptionQuickPlayRealmsData(String realmId) Creates an instance of aQuickPlayRealmsDatarecord 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.booleanrealmId()Returns the value of therealmIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
realmId
The field for therealmIdrecord component.
-
-
Constructor Details
-
QuickPlayRealmsData
Creates an instance of aQuickPlayRealmsDatarecord class.- Parameters:
realmId- the value for therealmIdrecord component
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceGameConfig.QuickPlayVariant
-
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). -
realmId
Returns the value of therealmIdrecord component.- Returns:
- the value of the
realmIdrecord component
-