Package net.minecraft.client.main
Record Class GameConfig.QuickPlayData
java.lang.Object
java.lang.Record
net.minecraft.client.main.GameConfig.QuickPlayData
- Enclosing class:
GameConfig
public static record GameConfig.QuickPlayData(@Nullable String logPath, GameConfig.QuickPlayVariant variant)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
The field for thelogPath
record component.private final GameConfig.QuickPlayVariant
The field for thevariant
record component. -
Constructor Summary
ConstructorsConstructorDescriptionQuickPlayData
(String logPath, GameConfig.QuickPlayVariant variant) 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
logPath()
Returns the value of thelogPath
record component.final String
toString()
Returns a string representation of this record class.variant()
Returns the value of thevariant
record component.
-
Field Details
-
logPath
The field for thelogPath
record component. -
variant
The field for thevariant
record component.
-
-
Constructor Details
-
QuickPlayData
Creates an instance of aQuickPlayData
record class.- Parameters:
logPath
- the value for thelogPath
record componentvariant
- the value for thevariant
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)
. -
logPath
Returns the value of thelogPath
record component.- Returns:
- the value of the
logPath
record component
-
variant
Returns the value of thevariant
record component.- Returns:
- the value of the
variant
record component
-