Record Class MojangMappingLayer
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.providers.mappings.mojmap.MojangMappingLayer
- All Implemented Interfaces:
MappingLayer
public record MojangMappingLayer(MinecraftVersionMeta.Download clientDownload, MinecraftVersionMeta.Download serverDownload, Path workingDir, org.gradle.api.logging.Logger logger)
extends Record
implements MappingLayer
-
Constructor Summary
ConstructorsConstructorDescriptionMojangMappingLayer(MinecraftVersionMeta.Download clientDownload, MinecraftVersionMeta.Download serverDownload, Path workingDir, org.gradle.api.logging.Logger logger)Creates an instance of aMojangMappingLayerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclientDownloadrecord component.List<Class<? extends MappingLayer>>Provides a list of layer classes that this mapping layer depends on.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.org.gradle.api.logging.Loggerlogger()Returns the value of theloggerrecord component.Returns the value of theserverDownloadrecord component.toString()Returns a string representation of this record class.voidvisit(net.fabricmc.mappingio.MappingVisitor mappingVisitor)Returns the value of theworkingDirrecord component.
-
Constructor Details
-
MojangMappingLayer
public MojangMappingLayer(MinecraftVersionMeta.Download clientDownload, MinecraftVersionMeta.Download serverDownload, Path workingDir, org.gradle.api.logging.Logger logger)Creates an instance of aMojangMappingLayerrecord class.- Parameters:
clientDownload- the value for theclientDownloadrecord componentserverDownload- the value for theserverDownloadrecord componentworkingDir- the value for theworkingDirrecord componentlogger- the value for theloggerrecord component
-
-
Method Details
-
visit
- Specified by:
visitin interfaceMappingLayer- Throws:
IOException
-
getSourceNamespace
- Specified by:
getSourceNamespacein interfaceMappingLayer
-
dependsOn
Description copied from interface:MappingLayerProvides a list of layer classes that this mapping layer depends on. If such a layer is not present an Exception will be thrown when trying to resolve the layer.- Specified by:
dependsOnin interfaceMappingLayer- Returns:
- A list of MappingLayer classes to depend on.
-
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). -
clientDownload
Returns the value of theclientDownloadrecord component.- Returns:
- the value of the
clientDownloadrecord component
-
serverDownload
Returns the value of theserverDownloadrecord component.- Returns:
- the value of the
serverDownloadrecord component
-
workingDir
Returns the value of theworkingDirrecord component.- Returns:
- the value of the
workingDirrecord component
-
logger
public org.gradle.api.logging.Logger logger()Returns the value of theloggerrecord component.- Returns:
- the value of the
loggerrecord component
-