Steal testmod code from fapi
This commit is contained in:
parent
93455e5691
commit
0f166a0ce3
21
build.gradle
21
build.gradle
@ -21,10 +21,19 @@ dependencies {
|
|||||||
modImplementation "com.terraformersmc:modmenu:2.0.2"
|
modImplementation "com.terraformersmc:modmenu:2.0.2"
|
||||||
}
|
}
|
||||||
|
|
||||||
task runTestmodClient(type: TestmodTask, constructorArgs: ["client"]) {
|
loom {
|
||||||
classpath sourceSets.testmod.runtimeClasspath
|
runs {
|
||||||
}
|
testmodClient {
|
||||||
|
client()
|
||||||
task runTestmodServer(type: TestmodTask, constructorArgs: ["server"]) {
|
ideConfigGenerated project.rootProject == project
|
||||||
classpath sourceSets.testmod.runtimeClasspath
|
name = "Testmod Client"
|
||||||
|
source sourceSets.testmod
|
||||||
|
}
|
||||||
|
testmodServer {
|
||||||
|
server()
|
||||||
|
ideConfigGenerated project.rootProject == project
|
||||||
|
name = "Testmod Server"
|
||||||
|
source sourceSets.testmod
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,8 +3,6 @@ package io.gitlab.jfronny.libjf.data;
|
|||||||
import net.minecraft.resource.ResourceType;
|
import net.minecraft.resource.ResourceType;
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
|
|
||||||
public class ResourcePath implements AutoCloseable {
|
public class ResourcePath implements AutoCloseable {
|
||||||
private final ResourceType type;
|
private final ResourceType type;
|
||||||
private final Identifier id;
|
private final Identifier id;
|
||||||
|
Loading…
Reference in New Issue
Block a user