Added commandbuilder.then() and argumentbuilder

This commit is contained in:
Nathan Adams
2014-09-17 13:00:41 +02:00
parent dadedbb322
commit 934ba3336f
8 changed files with 138 additions and 0 deletions
@@ -0,0 +1,18 @@
package net.minecraft.commands.builder;
import com.google.common.collect.Lists;
import java.util.List;
public abstract class ArgumentBuilder {
private final List<ArgumentBuilder> arguments = Lists.newArrayList();
public ArgumentBuilder then(ArgumentBuilder argument) {
arguments.add(argument);
return this;
}
public List<ArgumentBuilder> getArguments() {
return arguments;
}
}