Package net.minecraft.client.main
Record Class GameConfig.QuickPlayData
java.lang.Object
java.lang.Record
net.minecraft.client.main.GameConfig.QuickPlayData
- Enclosing class:
GameConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for themultiplayerrecord component.private final StringThe field for thepathrecord component.private final StringThe field for therealmsrecord component.private final StringThe field for thesingleplayerrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionQuickPlayData(String path, String singleplayer, String multiplayer, String realms) Creates an instance of aQuickPlayDatarecord 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.booleanReturns the value of themultiplayerrecord component.path()Returns the value of thepathrecord component.realms()Returns the value of therealmsrecord component.Returns the value of thesingleplayerrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
path
The field for thepathrecord component. -
singleplayer
The field for thesingleplayerrecord component. -
multiplayer
The field for themultiplayerrecord component. -
realms
The field for therealmsrecord component.
-
-
Constructor Details
-
QuickPlayData
public QuickPlayData(@Nullable String path, @Nullable String singleplayer, @Nullable String multiplayer, @Nullable String realms) Creates an instance of aQuickPlayDatarecord class.- Parameters:
path- the value for thepathrecord componentsingleplayer- the value for thesingleplayerrecord componentmultiplayer- the value for themultiplayerrecord componentrealms- the value for therealmsrecord component
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
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). -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
singleplayer
Returns the value of thesingleplayerrecord component.- Returns:
- the value of the
singleplayerrecord component
-
multiplayer
Returns the value of themultiplayerrecord component.- Returns:
- the value of the
multiplayerrecord component
-
realms
Returns the value of therealmsrecord component.- Returns:
- the value of the
realmsrecord component
-