Skip to content
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

Rename ClientCompletionKey and ClientSuggestionProvider #2348

Merged
merged 1 commit into from
May 4, 2021

Conversation

dualspiral
Copy link
Contributor

@dualspiral dualspiral commented May 3, 2021

SpongeAPI | Sponge

Specifically:

  • ClientCompletionKey -> CommandTreeNodeType
  • ClientSuggestionProvider -> CommandCompletionProvider

The previous terminology was a hangover to when I originally designed the system and from numerous issues and chats on Discord, it's clear that... well, it's not clear what they are. Along with making sure we're consistent with using "completion" instead of "suggestion", it makes sense to revisit this and make sure the names are sensible (and the Javadocs are clearer)

I have not renamed "ClientCompletionType" because that's for use with parameterized commands and for what it does, it's a reasonable name (while I'm open to that being renamed, it's less important here).

This kind of follows on from #2347 where we should basically be consistent with terminology, but done separately as the CCK rename is out of scope there.

This PR won't stick around for long, mostly a diff check and a quick oppotunity for any other reasonable comments.

@dualspiral dualspiral added system: command api: 8 (u) version: 1.16 (unsupported since Oct 17th 2023) labels May 3, 2021
@dualspiral dualspiral force-pushed the api8/rename-cck branch 2 times, most recently from bd36e36 to 999dc34 Compare May 3, 2021 19:21
Specifically:

* ClientCompletionKey -> CommandTreeNodeType
* ClientSuggestionProvider -> CommandCompletionProvider

The previous terminology was a hangover to when I originally designed the system and from numerous issues and chats on Discord, it's clear that... well, it's not clear what they are. Along with making sure we're consistent with using "completion" instead of "suggestion", it makes sense to revisit this and make sure the names are sensible (and the Javadocs are clearer)

I have not renamed "ClientCompletionType" because that's for use with parameterized commands and for what it does, it's a reasonable name (while I'm open to that being renamed, it's less important here)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: 8 (u) version: 1.16 (unsupported since Oct 17th 2023) system: command
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant