Class CotaniDialogs

java.lang.Object
com.cotani.dialog.CotaniDialogs

public final class CotaniDialogs extends Object
Entrypoint factory for the cotani-dialog module.
  • Method Details

    • create

      public static DialogService create(org.bukkit.plugin.Plugin plugin)
      Creates and registers a new DialogService for 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 new DialogService using the given scheduler.
      Parameters:
      plugin - owning plugin
      scheduler - task scheduler
      Returns:
      new dialog service instance
    • chat

      public static <T> ChatPromptBuilder<T> chat()
      Creates a new chat prompt builder.
      Type Parameters:
      T - value type
      Returns:
      builder
    • anvil

      public static AnvilPromptBuilder anvil()
      Creates a new anvil prompt builder.
      Returns:
      builder
    • wizard

      public static ConversationWizardBuilder wizard()
      Creates a new conversation wizard builder.
      Returns:
      builder