Made every CommandNode support an executor
This commit is contained in:
@@ -7,8 +7,17 @@ import net.minecraft.commands.exceptions.IllegalArgumentSyntaxException;
|
||||
import java.util.List;
|
||||
|
||||
public abstract class CommandNode {
|
||||
private final Runnable executor;
|
||||
private final List<CommandNode> children = Lists.newArrayList();
|
||||
|
||||
protected CommandNode(Runnable executor) {
|
||||
this.executor = executor;
|
||||
}
|
||||
|
||||
public Runnable getExecutor() {
|
||||
return executor;
|
||||
}
|
||||
|
||||
public List<CommandNode> getChildren() {
|
||||
return children;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user