Class Suggestion

java.lang.Object
dev.rollczi.litecommands.suggestion.Suggestion

public class Suggestion extends Object
  • Method Details

    • firstLevel

      public String firstLevel()
    • lastLevel

      public String lastLevel()
    • multilevel

      public String multilevel()
    • multilevelList

      public List<String> multilevelList()
    • isMultilevel

      public boolean isMultilevel()
    • lengthMultilevel

      public int lengthMultilevel()
    • tooltip

      @Experimental public String tooltip()
      Since:
      3.9.0
    • deleteLeft

      public Suggestion deleteLeft(int levels)
    • deleteRight

      public Suggestion deleteRight(int levels)
    • appendLeft

      public Suggestion appendLeft(String... left)
    • appendLeft

      public Suggestion appendLeft(Iterable<String> left)
    • appendRight

      public Suggestion appendRight(String... right)
    • appendRight

      public Suggestion appendRight(Iterable<String> right)
    • slashLevel

      @Deprecated public Suggestion slashLevel(int level)
      Deprecated.
    • appendLevel

      public Suggestion appendLevel(String levelPart)
    • from

      @Experimental @Internal public static Suggestion from(List<String> suggestion, String tooltip)
      Creates a new suggestion with the given tooltip. The List of suggestions will be joined by space.
      Since:
      3.9.0
    • from

      @Internal public static Suggestion from(List<String> suggestion)
      Creates a new suggestion from the given list of suggestions that will be joined by space.
    • of

      @Experimental public static Suggestion of(String suggestion, String tooltip)
      Creates a new suggestion with the given tooltip.
      Since:
      3.9.0
    • of

      public static Suggestion of(String suggestion)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object