getValueOrThrow

fun <T> Registry<T>.getValueOrThrow(key: String): T
fun <T> Registry<T>.getValueOrThrow(id: ResourceLocation): T
fun <T : Any> RegistryAccess.getValueOrThrow(key: ResourceKey<T>): T