-
-
Notifications
You must be signed in to change notification settings - Fork 343
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
Command API tweaks #2159
Command API tweaks #2159
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you change the following?
- Supplier<Iterable<String>> literalSupplier
+ Supplier<? extends Collection<String>> literalSupplier
@@ -168,7 +224,7 @@ public static TextBuilder textBuilder() { | |||
* without such a prefix | |||
* @return This builder, for chaining. | |||
*/ | |||
CatalogedTypeBuilder<T> prefix(String prefix); | |||
CatalogedTypeBuilder<T> defaultNamespace(String prefix); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would go for tryNamespace
/tryDefaultNamespace
or something similar because you can have multiple. defaultNamespace
sounds like you can only define one.
60e8d26
to
768ba36
Compare
This uses a modified form of the NBT parser to determine the JSON string. Need to ensure parameters can mark themselves as JSON parsers.
…tion hints to the client
969f603
to
5213414
Compare
Tweaks for commands, from as I implement and realise I did things wrong (or can add super simple things).