Remove Argument redirect API (should use NodeMaker instead)

This commit is contained in:
themode 2021-02-11 03:09:00 +01:00
parent 053ef06ee1
commit 86908fbd0e

View File

@ -186,38 +186,6 @@ public abstract class Argument<T> {
return this;
}
/**
* Gets the argument this argument will redirect to.
* <p>
* A non-null value means that this will redirect to that argument.
*
* @return The argument this argument will redirect to
*/
@Nullable
public Argument<?> getRedirect() {
return redirect;
}
/**
* Checks if an argument has a redirect.
* <p>
* Mostly used to make sure there isnt an argument after.
*
* @return If this argument will redirect to an argument.
*/
public boolean hasRedirect() {
return redirect != null;
}
/**
* Sets the redirect of this argument.
*
* @param argument The argument to set the redirect to
*/
public void setRedirect(Argument<?> argument) {
this.redirect = argument;
}
/**
* Gets if the argument has any error callback.
*