Fixed up tests to use the new reader in type parsing

This commit is contained in:
Nathan Adams
2017-07-25 15:31:14 +02:00
parent 9e481e3f24
commit d2a5eeedc5
3 changed files with 43 additions and 218 deletions
@@ -8,6 +8,7 @@ import com.mojang.brigadier.exceptions.CommandException;
import java.util.Set;
public interface ArgumentType<T> {
@Deprecated
default <S> ParsedArgument<S, T> parse(String command, CommandContextBuilder<S> contextBuilder) throws CommandException {
StringReader reader = new StringReader(command);
T result = parse(reader, contextBuilder);