Package net.blueva.arcade.api.setup
Class TabCompleteContext<P,C>
java.lang.Object
net.blueva.arcade.api.setup.TabCompleteContext<P,C>
- Type Parameters:
P- the player type (platform-specific)C- the command sender type (platform-specific)
Context passed to setup handlers for tab completion.
This context provides information about the command being typed, including the current argument index and all previous arguments. Handlers use this to provide relevant suggestions for command completion.
-
Constructor Summary
ConstructorsConstructorDescriptionTabCompleteContext(C sender, P player, int arenaId, String gameId, String[] args, int startIndex, int currentArgIndex) -
Method Summary
Modifier and TypeMethodDescriptionintgetArg(int index) Get the argument at specific index.String[]getArgs()Get the argument currently being typed.intGet the index of the argument currently being completed.Get previous argument (before the one being typed).intGet the relative index being completed (relative to handler start).intbooleanisPlayer()
-
Constructor Details
-
TabCompleteContext
-
-
Method Details
-
getSender
-
getPlayer
-
isPlayer
public boolean isPlayer() -
getArenaId
public int getArenaId() -
getGameId
-
getArgs
-
getStartIndex
public int getStartIndex() -
getCurrentArgIndex
public int getCurrentArgIndex()Get the index of the argument currently being completed. -
getRelativeArgIndex
public int getRelativeArgIndex()Get the relative index being completed (relative to handler start). -
getArg
Get the argument at specific index. -
getCurrentArg
Get the argument currently being typed. -
getPreviousArg
Get previous argument (before the one being typed).
-