MinecraftProvider structure
This commit is contained in:
@@ -1,7 +0,0 @@
|
|||||||
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,7 @@
|
|||||||
|
package org.saturnclient.common.minecraft;
|
||||||
|
|
||||||
|
public abstract class MinecraftProvider {
|
||||||
|
public static MinecraftProvider PROVIDER;
|
||||||
|
|
||||||
|
public abstract Object createIdentifier(String namespace, String path);
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package org.saturnclient.common.minecraft;
|
||||||
|
|
||||||
|
public class SaturnIdentifier {
|
||||||
|
public Object id;
|
||||||
|
|
||||||
|
public SaturnIdentifier(String namespace, String path) {
|
||||||
|
this.id = MinecraftProvider.PROVIDER.createIdentifier(namespace, path);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
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