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)

public class TabCompleteContext<P,C> extends Object
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 Details

    • TabCompleteContext

      public TabCompleteContext(C sender, P player, int arenaId, String gameId, String[] args, int startIndex, int currentArgIndex)
  • Method Details

    • getSender

      public C getSender()
    • getPlayer

      public P getPlayer()
    • isPlayer

      public boolean isPlayer()
    • getArenaId

      public int getArenaId()
    • getGameId

      public String getGameId()
    • getArgs

      public String[] 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

      public String getArg(int index)
      Get the argument at specific index.
    • getCurrentArg

      public String getCurrentArg()
      Get the argument currently being typed.
    • getPreviousArg

      public String getPreviousArg()
      Get previous argument (before the one being typed).