org.bukkit.conversations.ConversationFactory Maven / Gradle / Ivy
package org.bukkit.conversations;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* A ConversationFactory is responsible for creating a {@link Conversation}
* from a predefined template. A ConversationFactory is typically created when
* a plugin is instantiated and builds a Conversation each time a user
* initiates a conversation with the plugin. Each Conversation maintains its
* own state and calls back as needed into the plugin.
*
* The ConversationFactory implements a fluid API, allowing parameters to be
* set as an extension to the constructor.
*/
public class ConversationFactory {
protected Plugin plugin;
protected boolean isModal;
protected boolean localEchoEnabled;
protected ConversationPrefix prefix;
protected Prompt firstPrompt;
protected Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy