net.minestom.server.command.builder.suggestion.Suggestion Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of minestom-snapshots Show documentation
Show all versions of minestom-snapshots Show documentation
1.20.4 Lightweight Minecraft server
package net.minestom.server.command.builder.suggestion;
import org.jetbrains.annotations.NotNull;
import java.util.ArrayList;
import java.util.List;
public class Suggestion {
private final String input;
private int start;
private int length;
private final List suggestionEntries = new ArrayList<>();
public Suggestion(@NotNull String input, int start, int length) {
this.input = input;
this.start = start;
this.length = length;
}
@NotNull
public String getInput() {
return input;
}
public int getStart() {
return start;
}
public void setStart(int start) {
this.start = start;
}
public int getLength() {
return length;
}
public void setLength(int length) {
this.length = length;
}
@NotNull
public List getEntries() {
return suggestionEntries;
}
public void addEntry(@NotNull SuggestionEntry entry) {
this.suggestionEntries.add(entry);
}
}