mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 14:38:53 +00:00
24 lines
614 B
Java
24 lines
614 B
Java
package net.william278.huskhomes.command;
|
|
|
|
import net.william278.huskhomes.user.OnlineUser;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
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 args Current command arguments
|
|
* @return List of String arguments to offer TAB suggestions
|
|
*/
|
|
@NotNull
|
|
List<String> onTabComplete(@NotNull String[] args, @Nullable OnlineUser user);
|
|
|
|
}
|