Identifier
This commit is contained in:
@@ -11,5 +11,6 @@ subprojects {
|
|||||||
implementation "de.javagl:obj:0.4.0"
|
implementation "de.javagl:obj:0.4.0"
|
||||||
implementation "com.formdev:svgSalamander:1.1.4"
|
implementation "com.formdev:svgSalamander:1.1.4"
|
||||||
implementation "com.github.selimaj-dev:session-java:0.1.6"
|
implementation "com.github.selimaj-dev:session-java:0.1.6"
|
||||||
|
implementation project(":common")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
package org.saturnclient.common;
|
|
||||||
|
|
||||||
public class Common {
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package org.saturnclient.common;
|
||||||
|
|
||||||
|
public record Identifier(String namespace, String path) {
|
||||||
|
public static Identifier of(String namespace, String path) {
|
||||||
|
return new Identifier(namespace, path);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package org.saturnclient.impl;
|
||||||
|
|
||||||
|
import net.minecraft.util.Identifier;
|
||||||
|
|
||||||
|
public class Mincraftify {
|
||||||
|
public static Identifier identifier(org.saturnclient.common.Identifier val) {
|
||||||
|
return Identifier.of(val.namespace(), val.path());
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user