Class ConversationManager

java.lang.Object
rocks.gravili.notquests.spigot.conversation.ConversationManager

public class ConversationManager extends Object
  • Constructor Details

    • ConversationManager

      public ConversationManager(NotQuests main)
  • Method Details

    • getMaxChatHistory

      public final int getMaxChatHistory()
    • getConversationsFolder

      public File getConversationsFolder()
    • getConversationForNPCID

      public Conversation getConversationForNPCID(int npcID)
    • getOpenConversation

      public ConversationPlayer getOpenConversation(UUID uuid)
    • getOpenConversations

      public final HashMap<UUID,ConversationPlayer> getOpenConversations()
    • createTestConversation

      public Conversation createTestConversation()
    • playConversation

      public void playConversation(org.bukkit.entity.Player player, Conversation conversation)
    • prepareConversationsFolder

      public boolean prepareConversationsFolder()
    • loadConversationsFromConfig

      public void loadConversationsFromConfig()
    • deepDiveAndConnectStarterLines

      public void deepDiveAndConnectStarterLines(Conversation conversation, ArrayList<ConversationLine> lines, org.bukkit.configuration.file.YamlConfiguration config)
    • getChatHistory

      public final HashMap<UUID,ArrayList<net.kyori.adventure.text.Component>> getChatHistory()
    • getConversationChatHistory

      public final HashMap<UUID,ArrayList<net.kyori.adventure.text.Component>> getConversationChatHistory()
    • getAllConversations

      public final ArrayList<Conversation> getAllConversations()
    • stopConversation

      public void stopConversation(ConversationPlayer conversationPlayer)
    • parseConditionsString

      public final ArrayList<Condition> parseConditionsString(List<String> allConditionsString)
    • parseActionString

      public final ArrayList<Action> parseActionString(List<String> allActionsString)
    • getConversation

      public final Conversation getConversation(String identifier)
    • getConversationAttachedToArmorstand

      public final Conversation getConversationAttachedToArmorstand(org.bukkit.entity.ArmorStand armorstand)
    • analyze

      public String analyze(ConversationLine conversationLine, String beginningSpaces)