File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/main/java/mods/Hileb/shotaasm Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1515import java .util .stream .Collectors ;
1616
1717public class ScriptLoader {
18- private static Collection <IScriptLocator > locators ;
19- private static HashMap <String , IScriptCompiler > compilers = new HashMap <>();
18+ public static Collection <IScriptLocator > locators ;
19+ public static HashMap <String , IScriptCompiler > compilers = new HashMap <>();
2020
2121 public static void initialize () {
2222 locators = loadServices (IScriptLocator .class ).stream ().map ( aClass -> {
Original file line number Diff line number Diff line change @@ -6,4 +6,8 @@ public static void initialize() {}
66 public static boolean isClassExist (String name ) {
77 return net .minecraft .launchwrapper .Launch .classLoader .isClassExist (name );
88 }
9+
10+ public static java .util .Set <String > supportedCompilers () {
11+ return mods .Hileb .shotaasm .ScriptLoader .compilers .keySet ();
12+ }
913}
You can’t perform that action at this time.
0 commit comments