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,17 @@
package net.minecraft.commands.builder;
import net.minecraft.commands.arguments.CommandArgumentType;
public class RequiredArgumentBuilder extends ArgumentBuilder {
private final String name;
private final CommandArgumentType type;
protected RequiredArgumentBuilder(String name, CommandArgumentType type) {
this.name = name;
this.type = type;
}
public static RequiredArgumentBuilder argument(String name, CommandArgumentType type) {
return new RequiredArgumentBuilder(name, type);
}
}