-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Registry#getTags #11795
Add Registry#getTags #11795
Conversation
First of all, thank you for doing this, I appreciate it. Secondly, I didnt really properly think about this when I asked for getTags, but is it possible to also add |
You can pretty easily just map the Stream from |
Sorry I may have miss worded that. Forget I said "list". Obviously I can do Tag#tagKey(), but I figured a method to get all TagKeys would be a nice addition. |
Yeah, any such API method would just be doing the |
Ok yeah thats fair. Not terribly difficult on the users end. |
It feels weird to return a stream here since it's just arbitrary internal design that happens to return a Stream, I would just toList it or skip the stream and directly iterate over the bound TagSet to throw it into a List/Collection. Performance shouldn't be of any concern there |
2d11a19
to
bb4981a
Compare
Sorry to sound like a total pain in the rear end here... |
Yeah, I asked about that, but there isn't really any API that consumes a collection of tag keys, so just make the stream yourself anyways. This shouldn't really be any sort of performance thing, tags don't change except on minecraft:reloads so checking constantly shouldn't be an issue. |
Closes #11758