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 StringThe field for thelogPathrecord component.private final GameConfig.QuickPlayVariantThe field for thevariantrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionQuickPlayData(String logPath, GameConfig.QuickPlayVariant variant) 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.booleanlogPath()Returns the value of thelogPathrecord component.final StringtoString()Returns a string representation of this record class.variant()Returns the value of thevariantrecord component.
-
Field Details
-
logPath
The field for thelogPathrecord component. -
variant
The field for thevariantrecord component.
-
-
Constructor Details
-
QuickPlayData
Creates an instance of aQuickPlayDatarecord class.- Parameters:
logPath- the value for thelogPathrecord componentvariant- the value for thevariantrecord 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 thelogPathrecord component.- Returns:
- the value of the
logPathrecord component
-
variant
Returns the value of thevariantrecord component.- Returns:
- the value of the
variantrecord component
-