tterrag1098 / Registrate

Your mod's best friend - keep your registry objects simple and organized
Mozilla Public License 2.0
114 stars 32 forks source link

Better API for tagging entries #19

Closed tterrag1098 closed 4 years ago

tterrag1098 commented 4 years ago

Builder#tag (and ItemBuilder#tag, etc.) only allow one tag, and overwrite the previous data provider if called multiple times. This is not ergonomic and requires users to fall back to setData.

There should be an abstracted Tag API that allows for multiple tags to be specified easily. This might involve moving tag up into AbstractBuilder so that tag callbacks can be managed in a field rather than added as a data provider directly.