Package dev.architectury.loom.forge
Class MethodInheritanceMappingsMigrator
java.lang.Object
dev.architectury.loom.forge.MethodInheritanceMappingsMigrator
- All Implemented Interfaces:
MappingsMigrator
With some forge patches, methods can inherit methods from a class that is not in the mappings.
This migrator will try to detect all the methods that are inherited from a class that is not in the mappings,
see if there are different names for the same method in the mappings, and remove them.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.architectury.loom.forge.MappingsMigrator
MappingsMigrator.MappingsEntry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidmigrate(org.gradle.api.Project project, List<MappingsMigrator.MappingsEntry> entries) longsetup(org.gradle.api.Project project, MinecraftProvider minecraftProvider, Path cache, Path rawMappings, boolean hasSrg, boolean hasMojang)
-
Constructor Details
-
MethodInheritanceMappingsMigrator
public MethodInheritanceMappingsMigrator()
-
-
Method Details
-
setup
public long setup(org.gradle.api.Project project, MinecraftProvider minecraftProvider, Path cache, Path rawMappings, boolean hasSrg, boolean hasMojang) throws IOException - Specified by:
setupin interfaceMappingsMigrator- Throws:
IOException
-
migrate
public void migrate(org.gradle.api.Project project, List<MappingsMigrator.MappingsEntry> entries) throws IOException - Specified by:
migratein interfaceMappingsMigrator- Throws:
IOException
-