Files
HuskHomes/common/src/main/java/net/william278/huskhomes/command/TabCompletable.java
T
2022-05-26 23:56:14 +01:00

23 lines
616 B
Java

package net.william278.huskhomes.command;
import net.william278.huskhomes.player.Player;
import org.jetbrains.annotations.NotNull;
import java.util.List;
/**
* Interface providing tab completions for a command
*/
public interface TabCompletable {
/**
* What should be returned when the player attempts to TAB-complete the command
*
* @param player {@link Player} doing the TAB completion
* @param args Current command arguments
* @return List of String arguments to offer TAB suggestions
*/
List<String> onTabComplete(@NotNull Player player, @NotNull String[] args);
}