Class TabCompleter

java.lang.Object
net.okocraft.box.api.util.TabCompleter

public final class TabCompleter extends Object
A utility class for tab completions.
  • Method Details

    • itemNames

      @NotNull public static @NotNull List<String> itemNames(@NotNull @NotNull String filter)
      Gets the set of item names that match the filter.
      Parameters:
      filter - the item name filter
      Returns:
      the list of item names that match the filter
    • players

      @NotNull public static @NotNull List<String> players(@NotNull @NotNull String filter)
      Gets the set of player names that match the filter.
      Parameters:
      filter - the player name filter
      Returns:
      the list of player names that match the filter
    • players

      @NotNull public static @NotNull List<String> players(@NotNull @NotNull String filter, @Nullable @Nullable String permissionNode)
      Gets the set of player names that match the filter.
      Parameters:
      filter - the player name filter
      permissionNode - the permission node to check
      Returns:
      the list of player names that match the filter