More cleanup

This commit is contained in:
Nathan Adams
2017-06-21 14:36:17 +02:00
parent c2141ce38b
commit eba88b2773
17 changed files with 35 additions and 27 deletions
@@ -42,7 +42,7 @@ public class CommandDispatcher<T> {
context.getCommand().run(context);
}
protected CommandContext<T> parseNodes(CommandNode node, String command, CommandContextBuilder<T> contextBuilder) throws CommandException {
private CommandContext<T> parseNodes(CommandNode node, String command, CommandContextBuilder<T> contextBuilder) throws CommandException {
CommandException exception = null;
for (CommandNode child : node.getChildren()) {
@@ -17,7 +17,7 @@ public class IntegerArgumentType implements CommandArgumentType<Integer> {
private final int minimum;
private final int maximum;
protected IntegerArgumentType(int minimum, int maximum) {
private IntegerArgumentType(int minimum, int maximum) {
this.minimum = minimum;
this.maximum = maximum;
}
@@ -26,7 +26,7 @@ public abstract class ArgumentBuilder<T extends ArgumentBuilder<?>> {
return getThis();
}
public Command getCommand() {
protected Command getCommand() {
return command;
}
@@ -19,7 +19,7 @@ public class LiteralArgumentBuilder extends ArgumentBuilder<LiteralArgumentBuild
return this;
}
public String getLiteral() {
private String getLiteral() {
return literal;
}
@@ -8,7 +8,7 @@ public class RequiredArgumentBuilder<T> extends ArgumentBuilder<RequiredArgument
private final String name;
private final CommandArgumentType<T> type;
protected RequiredArgumentBuilder(String name, CommandArgumentType<T> type) {
private RequiredArgumentBuilder(String name, CommandArgumentType<T> type) {
this.name = name;
this.type = type;
}
@@ -22,11 +22,11 @@ public class RequiredArgumentBuilder<T> extends ArgumentBuilder<RequiredArgument
return this;
}
public CommandArgumentType<T> getType() {
private CommandArgumentType<T> getType() {
return type;
}
public String getName() {
private String getName() {
return name;
}