addRegistry

fun <E : Any> addRegistry(addon: Addon, registryName: String): WritableRegistry<E>
fun <E : Any, R : Registry<E>> addRegistry(addon: Addon, registryName: String, registryConstructor: (ResourceKey<out R>, Lifecycle) -> R): R