java.lang.Object
me.neznamy.tab.shared.features.sorting.types.SortingType
Direct Known Subclasses:
Groups, Permissions, Placeholder, PlaceholderAtoZ, PlaceholderHighToLow, PlaceholderLowToHigh, PlaceholderZtoA

public abstract class SortingType extends Object
  • Field Details

    • DEFAULT_NUMBER

      protected final int DEFAULT_NUMBER
      See Also:
    • sortingPlaceholder

      protected String sortingPlaceholder
  • Constructor Details

    • SortingType

      protected SortingType()
    • SortingType

      protected SortingType(Sorting sorting, String sortingPlaceholder)
      Constructs new instance with given parameter
      Parameters:
      sortingPlaceholder - placeholder to sort by
  • Method Details

    • setPlaceholders

      protected String setPlaceholders(me.neznamy.tab.api.TabPlayer player)
      Applies all placeholders for specified player
      Parameters:
      player - player to set placeholders for
      Returns:
      text with replaced placeholders
    • convertSortingElements

      protected LinkedHashMap<String,String> convertSortingElements(String[] elements)
    • getChars

      public abstract String getChars(ITabPlayer p)
      Returns current sorting characters of this sorting type for specified player
      Parameters:
      p - player to get chars for
      Returns:
      an as-short-as-possible character sequence for unique sorting