diff options
Diffstat (limited to 'plugin/src/main/kotlin/moe/nea/archenemy/mojang/ArchenemyMojangExtension.kt')
-rw-r--r-- | plugin/src/main/kotlin/moe/nea/archenemy/mojang/ArchenemyMojangExtension.kt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugin/src/main/kotlin/moe/nea/archenemy/mojang/ArchenemyMojangExtension.kt b/plugin/src/main/kotlin/moe/nea/archenemy/mojang/ArchenemyMojangExtension.kt index db667ae..8125900 100644 --- a/plugin/src/main/kotlin/moe/nea/archenemy/mojang/ArchenemyMojangExtension.kt +++ b/plugin/src/main/kotlin/moe/nea/archenemy/mojang/ArchenemyMojangExtension.kt @@ -52,12 +52,17 @@ abstract class ArchenemyMojangExtension(val project: Project) { return OfficialMappingDependency(side, version, project.providers.provider { dependency }) } + fun intermediaryMappings(version: String): MappingDependency { + return yarnMappings(project.dependencies.create("net.fabricmc:intermediary:$version:v2")) + } + fun mapJar( - dependency: ModuleDependency, + dependency: Dependency, mappings: MappingDependency, sourceNamespace: String, destinationNamespace: String ): Dependency { + dependency as ModuleDependency _registerMinecraftProvider return project.dependencies.create( mappedRepositoryProvider.getDependencyCoordiante( |