Class ConversationManager
java.lang.Object
rocks.gravili.notquests.spigot.conversation.ConversationManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionanalyze
(ConversationLine conversationLine, String beginningSpaces) void
deepDiveAndConnectStarterLines
(Conversation conversation, ArrayList<ConversationLine> lines, org.bukkit.configuration.file.YamlConfiguration config) final ArrayList<Conversation>
final Conversation
getConversation
(String identifier) final Conversation
getConversationAttachedToArmorstand
(org.bukkit.entity.ArmorStand armorstand) getConversationForNPCID
(int npcID) final int
getOpenConversation
(UUID uuid) final HashMap<UUID,
ConversationPlayer> void
parseActionString
(List<String> allActionsString) parseConditionsString
(List<String> allConditionsString) void
playConversation
(org.bukkit.entity.Player player, Conversation conversation) boolean
void
stopConversation
(ConversationPlayer conversationPlayer)
-
Constructor Details
-
ConversationManager
-
-
Method Details
-
getMaxChatHistory
public final int getMaxChatHistory() -
getConversationsFolder
-
getConversationForNPCID
-
getOpenConversation
-
getOpenConversations
-
createTestConversation
-
playConversation
-
prepareConversationsFolder
public boolean prepareConversationsFolder() -
loadConversationsFromConfig
public void loadConversationsFromConfig() -
deepDiveAndConnectStarterLines
public void deepDiveAndConnectStarterLines(Conversation conversation, ArrayList<ConversationLine> lines, org.bukkit.configuration.file.YamlConfiguration config) -
getChatHistory
-
getConversationChatHistory
-
getAllConversations
-
stopConversation
-
parseConditionsString
-
parseActionString
-
getConversation
-
getConversationAttachedToArmorstand
public final Conversation getConversationAttachedToArmorstand(org.bukkit.entity.ArmorStand armorstand) -
analyze
-