Record Class UnpickMetadata.V2
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.providers.mappings.unpick.UnpickMetadata.V2
- Record Components:
namespace- the mapping namespace of the unpick definitionsconstants- An optional maven notation of the constants jar.
- All Implemented Interfaces:
UnpickMetadata
- Enclosing interface:
UnpickMetadata
public static record UnpickMetadata.V2(String namespace, @Nullable String constants)
extends Record
implements UnpickMetadata
Unpick metadata v2.
-
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 TypeMethodDescription@Nullable StringReturns the value of theconstantsrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanbooleanfinal inthashCode()Returns a hash code value for this object.Returns the value of thenamespacerecord component.final StringtoString()Returns a string representation of this record class.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
-
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). -
namespace
Returns the value of thenamespacerecord component.- Returns:
- the value of the
namespacerecord component
-
constants
Returns the value of theconstantsrecord component.- Returns:
- the value of the
constantsrecord component
-