Package org.aincraft.registry
Interface RegistryAccess
public sealed interface RegistryAccess
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceRegistryAccess.RegistryAccessKey<T extends net.kyori.adventure.key.Keyed> -
Method Summary
Modifier and TypeMethodDescription<T extends net.kyori.adventure.key.Keyed>
voidaddRegistry(RegistryAccess.RegistryAccessKey<T> key, Registry<T> registry) <T extends net.kyori.adventure.key.Keyed>
Registry<T> getRegistry(RegistryAccess.RegistryAccessKey<T> registryKey) static RegistryAccessregistryAccess(@NotNull org.bukkit.plugin.Plugin plugin)
-
Method Details
-
registryAccess
-
getRegistry
<T extends net.kyori.adventure.key.Keyed> Registry<T> getRegistry(RegistryAccess.RegistryAccessKey<T> registryKey) -
addRegistry
<T extends net.kyori.adventure.key.Keyed> void addRegistry(RegistryAccess.RegistryAccessKey<T> key, Registry<T> registry)
-