All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.minestom.server.command.builder.suggestion.Suggestion Maven / Gradle / Ivy

There is a newer version: 7320437640
Show newest version
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);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy