public class NPCCommandSelector extends NumericPrompt
Modifier and Type | Class and Description |
---|---|
static interface |
NPCCommandSelector.Callback |
END_OF_CONVERSATION
Constructor and Description |
---|
NPCCommandSelector(NPCCommandSelector.Callback callback,
List<net.citizensnpcs.api.npc.NPC> possible) |
Modifier and Type | Method and Description |
---|---|
protected Prompt |
acceptValidatedInput(ConversationContext context,
Number input) |
String |
getPromptText(ConversationContext context) |
static void |
start(NPCCommandSelector.Callback callback,
Conversable player,
List<net.citizensnpcs.api.npc.NPC> possible) |
static void |
startWithCallback(NPCCommandSelector.Callback callback,
net.citizensnpcs.api.npc.NPCRegistry npcRegistry,
CommandSender sender,
net.citizensnpcs.api.command.CommandContext args,
String raw) |
acceptValidatedInput, getFailedValidationText, getFailedValidationText, getInputNotNumericText, isInputValid, isNumberValid
acceptInput, blocksForInput
public NPCCommandSelector(NPCCommandSelector.Callback callback, List<net.citizensnpcs.api.npc.NPC> possible)
protected Prompt acceptValidatedInput(ConversationContext context, Number input)
acceptValidatedInput
in class NumericPrompt
public String getPromptText(ConversationContext context)
public static void start(NPCCommandSelector.Callback callback, Conversable player, List<net.citizensnpcs.api.npc.NPC> possible)
public static void startWithCallback(NPCCommandSelector.Callback callback, net.citizensnpcs.api.npc.NPCRegistry npcRegistry, CommandSender sender, net.citizensnpcs.api.command.CommandContext args, String raw) throws net.citizensnpcs.api.command.exception.CommandException
net.citizensnpcs.api.command.exception.CommandException
Copyright © 2019. All rights reserved.