more work

This commit is contained in:
Mariell Hoversholm
2021-03-16 17:00:33 +01:00
parent 0750bfaf8c
commit c9ba11e0fc
2 changed files with 25 additions and 2 deletions

View File

@@ -1104,8 +1104,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ }
+
+ List<Class<?>> classes;
+ try (ScanResult scanResult = new ClassGraph().enableAllInfo().whitelistPackages("net.minecraft.server").scan()) {
+ classes = scanResult.getSubclasses("net.minecraft.server.PathfinderGoal").loadClasses();
+ try (ScanResult scanResult = new ClassGraph().enableAllInfo().whitelistPackages("net.minecraft").scan()) {
+ classes = scanResult.getSubclasses(PathfinderGoal.class.getName()).loadClasses();
+ }
+
+ List<GoalKey<?>> vanillaNames = classes.stream()