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

Method getRegistry

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

Returns the registry for the given class. If no registry is present for the given class null will be returned. Depending on the implementation not every registry present in Registry will be returned by this method. @param tClass of the registry to get @param type of the regist

(@NotNull Class<T> tClass)

Source from the content-addressed store, hash-verified

2634 * with keys from {@link io.papermc.paper.registry.RegistryKey}
2635 */
2636 @Nullable
2637 @Deprecated(since = "1.20.6")
2638 public static <T extends Keyed> Registry<T> getRegistry(@NotNull Class<T> tClass) {
2639 return server.getRegistry(tClass);
2640 }
2641
2642 /**
2643 * @return the unsafe values instance

Callers 1

initValueClassesMethod · 0.95

Calls 1

getRegistryMethod · 0.65

Tested by 1

initValueClassesMethod · 0.76