Yarn: RegistryKey -> TypedIdentifier

Created on 10 Aug 2020  路  2Comments  路  Source: FabricMC/yarn

Though this key is pretty much designed around registry, much of the key now is used for generic type-identification purpose (like for worlds), and TypedIdentifier<Registry<T>> is easier to understand than RegistryKey<Registry<T>>, or TypedIdentifier<DimensionType> vs RegistryKey<DimensionType>

discussion refactor

Most helpful comment

I prefer the name TypedIdentifier to TypedKey. However I still think we should wait a little longer for where Mojang takes this class. It still has a little too many registry-specific methods in it for me to be comfortable with the rename as of 1.16.2.

All 2 comments

I prefer the name TypedIdentifier to TypedKey. However I still think we should wait a little longer for where Mojang takes this class. It still has a little too many registry-specific methods in it for me to be comfortable with the rename as of 1.16.2.

Does it look fit to be named TypedIdentifier now?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Bixilon picture Bixilon  路  5Comments

Awakened-Redstone picture Awakened-Redstone  路  4Comments

Runemoro picture Runemoro  路  4Comments

asiekierka picture asiekierka  路  3Comments

copygirl picture copygirl  路  6Comments