Package kboyle.oktane.core.prefix
Interface Prefix
- All Known Implementing Classes:
CharPrefix,DiscordPrefix,MentionPrefix,StringPrefix
public interface Prefix
Represents a prefix for an input to passed to
CommandHandler.execute(String, CommandContext).-
Method Summary
Modifier and TypeMethodDescriptionintfind(CommandContext context)Returns the index after the prefix, -1 if not found.value()
-
Method Details
-
find
Returns the index after the prefix, -1 if not found.- Parameters:
context- The current executionCommandContext.- Returns:
- The index where the current prefix ends, -1 if not found.
-
value
Object value()
-