@Override public List<String> getSuggestions(CommandSource source, String arguments, @Nullable Location<World> targetPos) throws CommandException { CommandArgs args = new CommandArgs(arguments, getInputTokenizer().tokenize(arguments, true)); CommandContext ctx = new CommandContext(); if (targetPos != null) { ctx.putArg(CommandContext.TARGET_BLOCK_ARG, targetPos); } ctx.putArg(CommandContext.TAB_COMPLETION, true); return complete(source, args, ctx); }
return ((CommandSpec) child.get().getCallable()).complete(src, args, context);
@Override public List<String> getSuggestions(CommandSource source, String arguments, @Nullable Location<World> targetPos) throws CommandException { CommandArgs args = new CommandArgs(arguments, getInputTokenizer().tokenize(arguments, true)); CommandContext ctx = new CommandContext(); if (targetPos != null) { ctx.putArg(CommandContext.TARGET_BLOCK_ARG, targetPos); } return complete(source, args, ctx); }
return ((CommandSpec) child.get().getCallable()).complete(src, args, context); } else { args.nextIfPresent();