Steal testmod code from fapi

This commit is contained in:
JFronny 2021-07-18 10:36:51 +02:00
parent 93455e5691
commit 0f166a0ce3
No known key found for this signature in database
GPG Key ID: BEC5ACBBD4EE17E5
2 changed files with 15 additions and 8 deletions

View File

@ -21,10 +21,19 @@ dependencies {
modImplementation "com.terraformersmc:modmenu:2.0.2"
}
task runTestmodClient(type: TestmodTask, constructorArgs: ["client"]) {
classpath sourceSets.testmod.runtimeClasspath
}
task runTestmodServer(type: TestmodTask, constructorArgs: ["server"]) {
classpath sourceSets.testmod.runtimeClasspath
loom {
runs {
testmodClient {
client()
ideConfigGenerated project.rootProject == project
name = "Testmod Client"
source sourceSets.testmod
}
testmodServer {
server()
ideConfigGenerated project.rootProject == project
name = "Testmod Server"
source sourceSets.testmod
}
}
}

View File

@ -3,8 +3,6 @@ package io.gitlab.jfronny.libjf.data;
import net.minecraft.resource.ResourceType;
import net.minecraft.util.Identifier;
import java.io.IOException;
public class ResourcePath implements AutoCloseable {
private final ResourceType type;
private final Identifier id;