Package net.citizensnpcs.commands
Class NPCCommandSelector
java.lang.Object
org.bukkit.conversations.ValidatingPrompt
org.bukkit.conversations.NumericPrompt
net.citizensnpcs.commands.NPCCommandSelector
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.bukkit.conversations.Prompt
END_OF_CONVERSATION
-
Constructor Summary
ConstructorsConstructorDescriptionNPCCommandSelector
(NPCCommandSelector.Callback callback, List<NPC> possible) -
Method Summary
Modifier and TypeMethodDescriptionprotected Prompt
acceptValidatedInput
(ConversationContext context, Number input) getPromptText
(ConversationContext context) static void
start
(NPCCommandSelector.Callback callback, Conversable player, List<NPC> possible) static void
startWithCallback
(NPCCommandSelector.Callback callback, NPCRegistry npcRegistry, CommandSender sender, CommandContext args, String raw) Methods inherited from class org.bukkit.conversations.NumericPrompt
acceptValidatedInput, getFailedValidationText, getFailedValidationText, getInputNotNumericText, isInputValid, isNumberValid
Methods inherited from class org.bukkit.conversations.ValidatingPrompt
acceptInput, blocksForInput
-
Constructor Details
-
NPCCommandSelector
-
-
Method Details
-
acceptValidatedInput
- Specified by:
acceptValidatedInput
in classNumericPrompt
-
getPromptText
-
start
public static void start(NPCCommandSelector.Callback callback, Conversable player, List<NPC> possible) -
startWithCallback
public static void startWithCallback(NPCCommandSelector.Callback callback, NPCRegistry npcRegistry, CommandSender sender, CommandContext args, String raw) throws CommandException - Throws:
CommandException
-