Skip to content

Commit

Permalink
Make task actions public
Browse files Browse the repository at this point in the history
  • Loading branch information
MsRandom committed Dec 14, 2024
1 parent a70510b commit 303d23e
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ abstract class AddClientSideAnnotations<T> : DefaultTask() where T : AnnotationV
}

@TaskAction
private fun addAnnotations() {
fun addAnnotations() {
val cachedClientOnlyMembers = hashMapOf<String, CachedClientOnlyMembers>()
val handled = hashSetOf<File>()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ abstract class ResolveMinecraftClient : CachedMinecraftTask() {
}

@TaskAction
private fun extract() {
fun extract() {
val versionList = cacheParameters.versionList()

val version = versionList.version(version.get())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ abstract class ResolveMinecraftCommon : CachedMinecraftTask() {
}

@TaskAction
private fun extract() {
fun extract() {
val versionList = cacheParameters.versionList()

val version = versionList.version(version.get())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ abstract class ResolveMinecraftMappings : CachedMinecraftTask() {
}

@TaskAction
private fun download() {
fun download() {
val versionList = cacheParameters.versionList()

val version = versionList.version(version.get())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ abstract class Decompile : DefaultTask() {
}

@TaskAction
private fun decompile() {
fun decompile() {
val input = inputFile.getAsPath()
val output = outputFile.getAsPath()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ abstract class MergeAccessWideners : DefaultTask() {
}

@TaskAction
private fun generate() {
fun generate() {
output.get().asFile.bufferedWriter().use {
val writer = AccessWidenerWriter()
val reader = AccessWidenerReader(writer)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ abstract class SplitModClient : DefaultTask() {
}

@TaskAction
private fun split() {
fun split() {

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ abstract class GenerateAccessTransformer : DefaultTask() {
}

@TaskAction
private fun generate() {
fun generate() {
val accessTransformers = AccessTransformSet.create()

for (accessWidener in input) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ abstract class ResolvePatchedMinecraft : CachedMinecraftTask() {
}

@TaskAction
private fun resolve() {
fun resolve() {
val cacheDirectory = cacheParameters.directory.getAsPath()
val isOffline = cacheParameters.isOffline.get()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ abstract class JarIntersection : DefaultTask() {
}

@TaskAction
private fun intersection() {
fun intersection() {
val output = output.getAsPath()

output.deleteIfExists()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ abstract class Mixin : DefaultTask() {
}

@TaskAction
private fun mixin() {
fun mixin() {
val input = inputFile.getAsPath()
val output = outputFile.getAsPath()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ abstract class DownloadAssets : CachedMinecraftTask() {
}

@TaskAction
private fun download() {
fun download() {
val resourcesDirectory = resourcesDirectory.get()
val indexesDirectory = assetsDirectory.dir("indexes").get()
val objectsDirectory = assetsDirectory.dir("objects").get()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ abstract class ExtractNatives : CachedMinecraftTask() {
}

@TaskAction
private fun extract() {
fun extract() {
val output = destinationDirectory.getAsPath()

val metadata = cacheParameters.versionList().version(version.get())
Expand Down

0 comments on commit 303d23e

Please sign in to comment.