Class FormWizard

java.lang.Object
net.chen.legacyLand.gui.FormWizard

public abstract class FormWizard extends Object
多步骤向导表单 每个步骤是一个独立的 GuiForm,向导负责步骤间导航和数据聚合
  • Constructor Details

    • FormWizard

      protected FormWizard(String wizardId, String title)
  • Method Details

    • buildSteps

      protected abstract void buildSteps()
      子类实现:添加步骤
    • addStep

      protected void addStep(GuiForm step)
      添加步骤
    • onComplete

      public FormWizard onComplete(Consumer<FormResult> callback)
    • onCancel

      public FormWizard onCancel(Consumer<FormResult> callback)
    • open

      public void open(org.bukkit.entity.Player player)
      打开向导(从第一步开始)
    • getWizardData

      public Object getWizardData(String key)
      获取跨步骤数据
    • getWizardId

      public String getWizardId()
    • getCurrentStepIndex

      public int getCurrentStepIndex()
    • getTotalSteps

      public int getTotalSteps()