Class SingleEntitySelectorArgument.SingleEntitySelectorParser<C>
java.lang.Object
cloud.commandframework.bukkit.parsers.selector.SingleEntitySelectorArgument.SingleEntitySelectorParser<C>
- All Implemented Interfaces:
cloud.commandframework.arguments.parser.ArgumentParser<C,SingleEntitySelector>
- Enclosing class:
- SingleEntitySelectorArgument<C>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final classcloud.commandframework.bukkit.parsers.selector.SelectorUtils.SelectorParser.Thrower -
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from interface cloud.commandframework.arguments.parser.ArgumentParser
DEFAULT_ARGUMENT_COUNT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected cloud.commandframework.arguments.parser.ArgumentParseResult<SingleEntitySelector>legacyParse(cloud.commandframework.context.CommandContext<C> commandContext, Queue<String> inputQueue) legacySuggestions(cloud.commandframework.context.CommandContext<C> commandContext, String input) mapResult(@NonNull String input, @NonNull cloud.commandframework.bukkit.parsers.selector.SelectorUtils.EntitySelectorWrapper wrapper) cloud.commandframework.arguments.parser.ArgumentParseResult<SingleEntitySelector>suggestions(cloud.commandframework.context.CommandContext<C> commandContext, String input) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cloud.commandframework.arguments.parser.ArgumentParser
getRequestedArgumentCount, isContextFree, map
-
Field Details
-
NO_PLAYERS_EXCEPTION_TYPE
-
NO_ENTITIES_EXCEPTION_TYPE
-
-
Constructor Details
-
SingleEntitySelectorParser
public SingleEntitySelectorParser()Creates a newSingleEntitySelectorArgument.SingleEntitySelectorParser.
-
-
Method Details
-
mapResult
public SingleEntitySelector mapResult(@NonNull String input, @NonNull cloud.commandframework.bukkit.parsers.selector.SelectorUtils.EntitySelectorWrapper wrapper) -
legacyParse
protected cloud.commandframework.arguments.parser.ArgumentParseResult<SingleEntitySelector> legacyParse(cloud.commandframework.context.CommandContext<C> commandContext, Queue<String> inputQueue) -
legacySuggestions
-
parse
public cloud.commandframework.arguments.parser.ArgumentParseResult<SingleEntitySelector> parse(cloud.commandframework.context.CommandContext<C> commandContext, Queue<String> inputQueue) - Specified by:
parsein interfacecloud.commandframework.arguments.parser.ArgumentParser<C,T>
-
suggestions
public List<String> suggestions(cloud.commandframework.context.CommandContext<C> commandContext, String input) - Specified by:
suggestionsin interfacecloud.commandframework.arguments.parser.ArgumentParser<C,T>
-