mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-04 14:12:20 -07:00
SPIGOT-7011, SPIGOT-7065: Overhaul of structures
By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
@@ -1903,6 +1903,23 @@ public final class Bukkit {
|
||||
return server.getStructureManager();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the registry for the given class.
|
||||
* <br>
|
||||
* If no registry is present for the given class null will be returned.
|
||||
* <br>
|
||||
* Depending on the implementation not every registry present in
|
||||
* {@link Registry} will be returned by this method.
|
||||
*
|
||||
* @param tClass of the registry to get
|
||||
* @param <T> type of the registry
|
||||
* @return the corresponding registry or null if not present
|
||||
*/
|
||||
@Nullable
|
||||
public static <T extends Keyed> Registry<T> getRegistry(@NotNull Class<T> tClass) {
|
||||
return server.getRegistry(tClass);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the unsafe values instance
|
||||
* @see UnsafeValues
|
||||
|
Reference in New Issue
Block a user