Record Class UnpickMetadata.V1
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.providers.mappings.unpick.UnpickMetadata.V1
- Record Components:
unpickGroup- Deprecated, always uses the version of unpick loom depends on.unpickVersion- Deprecated, always uses the version of unpick loom depends on.
- All Implemented Interfaces:
UnpickMetadata
- Enclosing interface:
UnpickMetadata
public static record UnpickMetadata.V1(String unpickGroup, String unpickVersion)
extends Record
implements UnpickMetadata
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.fabricmc.loom.configuration.providers.mappings.unpick.UnpickMetadata
UnpickMetadata.V1, UnpickMetadata.V2 -
Field Summary
Fields inherited from interface net.fabricmc.loom.configuration.providers.mappings.unpick.UnpickMetadata
UNPICK_DEFINITIONS_PATH, UNPICK_METADATA_PATH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanbooleanfinal inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Deprecated.Deprecated.withConstants(String constants) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.fabricmc.loom.configuration.providers.mappings.unpick.UnpickMetadata
withoutConstants
-
Constructor Details
-
V1
Creates an instance of aV1record class.- Parameters:
unpickGroup- the value for theunpickGrouprecord componentunpickVersion- the value for theunpickVersionrecord component
-
-
Method Details
-
hasConstants
public boolean hasConstants()- Specified by:
hasConstantsin interfaceUnpickMetadata- Returns:
- whether constants are required by the Unpick definitions
-
hasConstantsLocation
public boolean hasConstantsLocation()- Specified by:
hasConstantsLocationin interfaceUnpickMetadata- Returns:
- whether the maven location of the constants is specified by this metadata
-
withConstants
- Specified by:
withConstantsin interfaceUnpickMetadata
-
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). -
unpickGroup
Deprecated.Returns the value of theunpickGrouprecord component.- Returns:
- the value of the
unpickGrouprecord component
-
unpickVersion
Deprecated.Returns the value of theunpickVersionrecord component.- Returns:
- the value of the
unpickVersionrecord component
-