SPIGOT-2450: Improve scoreboard criteria API, add missing DisplaySlots

By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
Bukkit/Spigot
2022-08-08 21:48:35 +10:00
parent ee7f1a0800
commit 9802bd131d
9 changed files with 503 additions and 1 deletions

View File

@@ -99,6 +99,16 @@ public final class TestServer implements InvocationHandler {
}
}
);
methodMap.put(
Server.class.getMethod("getScoreboardCriteria", String.class),
new MethodHandler() {
@Override
public Object handle(TestServer server, Object[] args) {
// Does not need to return anything. Exists solely to test CriteriaTest which has static init fields
return null;
}
}
);
methods = methodMap.build();
TestServer server = new TestServer();