You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, i use Brigadier API and i would make a thing like that :
List<RequiredArgumentBuilder> list;
for (varargument : list) {
builder.then(argument);
}
builder.execute(myCommand);
So, i have a list of arguments, and I would like my command to be executed only after all the arguments are saved. But I did not find how.
Even if there is an existing solution in the API, it would still be handy to create two new methods that would support collections. Something like this :
publicTthen(finalArgumentBuilder<S, ?>... arguments) {
if (target != null) {
thrownewIllegalStateException("Cannot add children to a redirected node");
}
for (varargument : arguments) {
this.arguments.addChild(argument.build());
}
returngetThis();
}
Hello, i use Brigadier API and i would make a thing like that :
So, i have a list of arguments, and I would like my command to be executed only after all the arguments are saved. But I did not find how.
Even if there is an existing solution in the API, it would still be handy to create two new methods that would support collections. Something like this :
I have made a pull request here : #70
The text was updated successfully, but these errors were encountered: