mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-03 21:52:05 -07:00
SPIGOT-7011, SPIGOT-7065: Overhaul of structures
By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
@@ -1615,6 +1615,21 @@ public interface Server extends PluginMessageRecipient {
|
||||
@NotNull
|
||||
StructureManager 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
|
||||
<T extends Keyed> Registry<T> getRegistry(@NotNull Class<T> tClass);
|
||||
|
||||
/**
|
||||
* @return the unsafe values instance
|
||||
* @see UnsafeValues
|
||||
|
Reference in New Issue
Block a user