getOrThrow

fun <T> Registry<T>.getOrThrow(key: String): Holder<T>
fun <T> Registry<T>.getOrThrow(id: ResourceLocation): Holder<T>
fun <T> Registry<T>.getOrThrow(key: Key): Holder<T>
fun <T> ResourceKey<Registry<T>>.getOrThrow(key: ResourceKey<T>): Holder.Reference<T>
fun <T> ResourceKey<Registry<T>>.getOrThrow(id: ResourceLocation): Holder.Reference<T>
fun <T> ResourceKey<Registry<T>>.getOrThrow(id: Key): Holder.Reference<T>
fun <T> ResourceKey<Registry<T>>.getOrThrow(key: String): Holder.Reference<T>
fun <T : Any> RegistryAccess.getOrThrow(key: ResourceKey<T>): Holder.Reference<T>