retrieve

abstract fun retrieve(key: NamespacedKey): T(source)

Gets the value of the keyed type corresponding to T.

For example, if you are using this for io.github.pylonmc.pylon.core.item.research.Researches, you would want to do PylonRegistry.RESEARCHES.getOrThrow(key).