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 PromptacceptValidatedInput(ConversationContext context, Number input) getPromptText(ConversationContext context) static voidstart(NPCCommandSelector.Callback callback, Conversable player, List<NPC> possible) static voidstartWithCallback(NPCCommandSelector.Callback callback, NPCRegistry npcRegistry, CommandSender sender, CommandContext args, String raw) Methods inherited from class org.bukkit.conversations.NumericPrompt
acceptValidatedInput, getFailedValidationText, getFailedValidationText, getInputNotNumericText, isInputValid, isNumberValidMethods inherited from class org.bukkit.conversations.ValidatingPrompt
acceptInput, blocksForInput
-
Constructor Details
-
NPCCommandSelector
-
-
Method Details
-
acceptValidatedInput
- Specified by:
acceptValidatedInputin 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
-