Record Class MojangMappingLayer
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.providers.mappings.mojmap.MojangMappingLayer
- All Implemented Interfaces:
MappingLayer
public record MojangMappingLayer(String minecraftVersion, Path clientMappings, Path serverMappings, boolean nameSyntheticMembers, boolean dropNoneIntermediaryRoots, @Nullable Supplier<net.fabricmc.mappingio.tree.MemoryMappingTree> intermediarySupplier, org.gradle.api.logging.Logger logger, MojangMappingsSpec.SilenceLicenseOption silenceLicense)
extends Record
implements MappingLayer
-
Constructor Summary
ConstructorsConstructorDescriptionMojangMappingLayer(String minecraftVersion, Path clientMappings, Path serverMappings, boolean nameSyntheticMembers, boolean dropNoneIntermediaryRoots, @Nullable Supplier<net.fabricmc.mappingio.tree.MemoryMappingTree> intermediarySupplier, org.gradle.api.logging.Logger logger, MojangMappingsSpec.SilenceLicenseOption silenceLicense) Creates an instance of aMojangMappingLayerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclientMappingsrecord component.List<Class<? extends MappingLayer>> Provides a list of layer classes that this mapping layer depends on.booleanReturns the value of thedropNoneIntermediaryRootsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable Supplier<net.fabricmc.mappingio.tree.MemoryMappingTree> Returns the value of theintermediarySupplierrecord component.org.gradle.api.logging.Loggerlogger()Returns the value of theloggerrecord component.Returns the value of theminecraftVersionrecord component.booleanReturns the value of thenameSyntheticMembersrecord component.Returns the value of theserverMappingsrecord component.Returns the value of thesilenceLicenserecord component.final StringtoString()Returns a string representation of this record class.voidvisit(net.fabricmc.mappingio.MappingVisitor mappingVisitor)
-
Constructor Details
-
MojangMappingLayer
public MojangMappingLayer(String minecraftVersion, Path clientMappings, Path serverMappings, boolean nameSyntheticMembers, boolean dropNoneIntermediaryRoots, @Nullable Supplier<net.fabricmc.mappingio.tree.MemoryMappingTree> intermediarySupplier, org.gradle.api.logging.Logger logger, MojangMappingsSpec.SilenceLicenseOption silenceLicense) Creates an instance of aMojangMappingLayerrecord class.- Parameters:
minecraftVersion- the value for theminecraftVersionrecord componentclientMappings- the value for theclientMappingsrecord componentserverMappings- the value for theserverMappingsrecord componentnameSyntheticMembers- the value for thenameSyntheticMembersrecord componentdropNoneIntermediaryRoots- the value for thedropNoneIntermediaryRootsrecord componentintermediarySupplier- the value for theintermediarySupplierrecord componentlogger- the value for theloggerrecord componentsilenceLicense- the value for thesilenceLicenserecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
minecraftVersion
Returns the value of theminecraftVersionrecord component.- Returns:
- the value of the
minecraftVersionrecord component
-
clientMappings
Returns the value of theclientMappingsrecord component.- Returns:
- the value of the
clientMappingsrecord component
-
serverMappings
Returns the value of theserverMappingsrecord component.- Returns:
- the value of the
serverMappingsrecord component
-
nameSyntheticMembers
public boolean nameSyntheticMembers()Returns the value of thenameSyntheticMembersrecord component.- Returns:
- the value of the
nameSyntheticMembersrecord component
-
dropNoneIntermediaryRoots
public boolean dropNoneIntermediaryRoots()Returns the value of thedropNoneIntermediaryRootsrecord component.- Returns:
- the value of the
dropNoneIntermediaryRootsrecord component
-
intermediarySupplier
Returns the value of theintermediarySupplierrecord component.- Returns:
- the value of the
intermediarySupplierrecord component
-
logger
public org.gradle.api.logging.Logger logger()Returns the value of theloggerrecord component.- Returns:
- the value of the
loggerrecord component
-
silenceLicense
Returns the value of thesilenceLicenserecord component.- Returns:
- the value of the
silenceLicenserecord component
-