getOrThrow

fun <T> Registry<T>.getOrThrow(id: ResourceLocation): T
fun <T> Registry<T>.getOrThrow(key: String): T