Gets a tag which has already been defined within the server. Plugins are suggested to use the concrete tags in Tag rather than this method which makes no guarantees about which tags are available, and may also be less performant due to lack of caching. Tags will be searched for in an im
(@NotNull String registry, @NotNull NamespacedKey tag, @NotNull Class<T> clazz)
| 2551 | * @return the tag or null |
| 2552 | */ |
| 2553 | @Nullable |
| 2554 | public static <T extends Keyed> Tag<T> getTag(@NotNull String registry, @NotNull NamespacedKey tag, @NotNull Class<T> clazz) { |
| 2555 | return server.getTag(registry, tag, clazz); |
| 2556 | } |
| 2557 | |
| 2558 | /** |
| 2559 | * Gets all tags which have been defined within the server. |