Record Class ParchmentMappingLayer
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.providers.mappings.parchment.ParchmentMappingLayer
- All Implemented Interfaces:
MappingLayer
public record ParchmentMappingLayer(Path parchmentFile, boolean removePrefix)
extends Record
implements MappingLayer
-
Constructor Summary
ConstructorsConstructorDescriptionParchmentMappingLayer(Path parchmentFile, boolean removePrefix)Creates an instance of aParchmentMappingLayerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.Returns the value of theparchmentFilerecord component.booleanReturns the value of theremovePrefixrecord component.toString()Returns a string representation of this record class.voidvisit(net.fabricmc.mappingio.MappingVisitor mappingVisitor)Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.fabricmc.loom.api.mappings.layered.MappingLayer
dependsOn, getSourceNamespace
-
Constructor Details
-
ParchmentMappingLayer
Creates an instance of aParchmentMappingLayerrecord class.- Parameters:
parchmentFile- the value for theparchmentFilerecord componentremovePrefix- the value for theremovePrefixrecord component
-
-
Method Details
-
visit
- Specified by:
visitin interfaceMappingLayer- Throws:
IOException
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
parchmentFile
Returns the value of theparchmentFilerecord component.- Returns:
- the value of the
parchmentFilerecord component
-
removePrefix
public boolean removePrefix()Returns the value of theremovePrefixrecord component.- Returns:
- the value of the
removePrefixrecord component
-