Class CotaniDialogs
java.lang.Object
com.cotani.dialog.CotaniDialogs
Entrypoint factory for the
cotani-dialog module.-
Method Summary
Modifier and TypeMethodDescriptionstatic AnvilPromptBuilderanvil()Creates a new anvil prompt builder.static <T> ChatPromptBuilder<T> chat()Creates a new chat prompt builder.static DialogServicecreate(org.bukkit.plugin.Plugin plugin) Creates and registers a newDialogServicefor the given plugin.static DialogServicecreate(org.bukkit.plugin.Plugin plugin, com.cotani.task.api.PaperTaskScheduler scheduler) Creates and registers a newDialogServiceusing the given scheduler.static ConversationWizardBuilderwizard()Creates a new conversation wizard builder.
-
Method Details
-
create
Creates and registers a newDialogServicefor the given plugin.- Parameters:
plugin- owning plugin- Returns:
- new dialog service instance
-
create
public static DialogService create(org.bukkit.plugin.Plugin plugin, com.cotani.task.api.PaperTaskScheduler scheduler) Creates and registers a newDialogServiceusing the given scheduler.- Parameters:
plugin- owning pluginscheduler- task scheduler- Returns:
- new dialog service instance
-
chat
Creates a new chat prompt builder.- Type Parameters:
T- value type- Returns:
- builder
-
anvil
-
wizard
Creates a new conversation wizard builder.- Returns:
- builder
-