MCPcopy Create free account
hub / github.com/PaperMC/Paper / getTag

Method getTag

paper-api/src/main/java/org/bukkit/Bukkit.java:2553–2556  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 2

TagInterface · 0.95
getTagMethod · 0.95

Calls 1

getTagMethod · 0.65

Tested by

no test coverage detected