Steal testmod code from fapi
This commit is contained in:
parent
93455e5691
commit
0f166a0ce3
19
build.gradle
19
build.gradle
@ -21,10 +21,19 @@ dependencies {
|
||||
modImplementation "com.terraformersmc:modmenu:2.0.2"
|
||||
}
|
||||
|
||||
task runTestmodClient(type: TestmodTask, constructorArgs: ["client"]) {
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
task runTestmodServer(type: TestmodTask, constructorArgs: ["server"]) {
|
||||
classpath sourceSets.testmod.runtimeClasspath
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user