MCPcopy Index your code
hub / github.com/PaperMC/Paper / getTag

Method getTag

paper-api/src/main/java/org/bukkit/Server.java:2302–2302  ·  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

2300 * @return the tag or null
2301 */
2302 @Nullable
2303 <T extends Keyed> Tag<T> getTag(@NotNull String registry, @NotNull NamespacedKey tag, @NotNull Class<T> clazz);
2304
2305 /**

Callers 8

setupMethod · 0.95
TestServerClass · 0.65
getTagMethod · 0.65
constructMethod · 0.65
testToolMethod · 0.65
getTagMethod · 0.65
CraftLegacyClass · 0.65

Implementers 1

CraftServerpaper-server/src/main/java/org/bukkit/

Calls

no outgoing calls

Tested by 2

setupMethod · 0.76
testToolMethod · 0.52