idk
This commit is contained in:
commit
428877fbf6
1072 files changed
+160209
No files matched your search
@@ -0,0 +1,4 @@
|
||||
dependencies {
|
||||
compileOnly(project(":api"))
|
||||
listOf("v26_1", "v26_2", "v26_3").forEach { compileOnly(project(":nms:$it")) }
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.ticxo.modelengine.core25;
|
||||
|
||||
import com.ticxo.modelengine.api.nms.NMSHandler;
|
||||
import com.ticxo.modelengine.v26_1.NMSHandler_v26_1;
|
||||
import com.ticxo.modelengine.v26_2.NMSHandler_v26_2;
|
||||
import com.ticxo.modelengine.v26_3.NMSHandler_v26_3;
|
||||
|
||||
public class Java25Helper {
|
||||
public static NMSHandler createNMSHandler(String version) {
|
||||
return (NMSHandler)(switch (version) {
|
||||
case "26.1", "26.1.1", "26.1.2" -> new NMSHandler_v26_1();
|
||||
case "26.2", "26.2.1", "26.2.2" -> new NMSHandler_v26_2();
|
||||
case "26.3", "26.3.1", "26.3.2" -> new NMSHandler_v26_3();
|
||||
default -> null;
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user