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
Modifier and TypeFieldDescriptionprivate final String
The field for themultiplayer
record component.private final String
The field for thepath
record component.private final String
The field for therealms
record component.private final String
The field for thesingleplayer
record component. -
Constructor Summary
ConstructorDescriptionQuickPlayData
(String path, String singleplayer, String multiplayer, String realms) Creates an instance of aQuickPlayData
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of themultiplayer
record component.path()
Returns the value of thepath
record component.realms()
Returns the value of therealms
record component.Returns the value of thesingleplayer
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
path
The field for thepath
record component. -
singleplayer
The field for thesingleplayer
record component. -
multiplayer
The field for themultiplayer
record component. -
realms
The field for therealms
record component.
-
-
Constructor Details
-
QuickPlayData
public QuickPlayData(@Nullable String path, @Nullable String singleplayer, @Nullable String multiplayer, @Nullable String realms) Creates an instance of aQuickPlayData
record class.- Parameters:
path
- the value for thepath
record componentsingleplayer
- the value for thesingleplayer
record componentmultiplayer
- the value for themultiplayer
record componentrealms
- the value for therealms
record 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 thepath
record component.- Returns:
- the value of the
path
record component
-
singleplayer
Returns the value of thesingleplayer
record component.- Returns:
- the value of the
singleplayer
record component
-
multiplayer
Returns the value of themultiplayer
record component.- Returns:
- the value of the
multiplayer
record component
-
realms
Returns the value of therealms
record component.- Returns:
- the value of the
realms
record component
-