From 0b2414808ea87f4486dccd09962ce58016a76c44 Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Wed, 7 Feb 2018 13:45:50 +0100 Subject: [PATCH] Version 0.1.24 --- build.gradle | 2 +- .../mojang/brigadier/suggestion/SuggestionsBuilder.java | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index c81bd9cd..75ca9167 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ import groovy.io.FileType apply plugin: 'java-library' apply plugin: 'maven' -version = '0.1.23' +version = '0.1.24' group = 'com.mojang' task wrapper(type: Wrapper) { diff --git a/src/main/java/com/mojang/brigadier/suggestion/SuggestionsBuilder.java b/src/main/java/com/mojang/brigadier/suggestion/SuggestionsBuilder.java index 58ce6b57..9e6518c3 100644 --- a/src/main/java/com/mojang/brigadier/suggestion/SuggestionsBuilder.java +++ b/src/main/java/com/mojang/brigadier/suggestion/SuggestionsBuilder.java @@ -55,6 +55,15 @@ public SuggestionsBuilder suggest(final String text, final Message tooltip) { return this; } + public SuggestionsBuilder add(final SuggestionsBuilder other) { + result.addAll(other.result); + return this; + } + + public SuggestionsBuilder createOffset(final int start) { + return new SuggestionsBuilder(input, start); + } + public SuggestionsBuilder restart() { return new SuggestionsBuilder(input, start); }