summaryrefslogtreecommitdiff
path: root/plugin/src/main/kotlin/moe/nea/archenemy/mojang/MappingDependency.kt
blob: 76f109c03c07eefc9e787bcc1a514e543224fe47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package moe.nea.archenemy.mojang

import org.gradle.api.Project
import org.gradle.api.artifacts.Dependency
import org.gradle.api.provider.Provider
import java.io.File
import java.security.MessageDigest

interface MappingDependency : Provider<Dependency> {
    fun updateHash(digest: MessageDigest)
    fun title(): String
    fun resolveMappingsOnce(extension: ArchenemyMojangExtension)
    fun applyMapping(
        sourceFile: File,
        targetFile: File,
        sourceNameSpace: String,
        targetNameSpace: String,
    )
}