Class Dialogue.DialogueBuilder

java.lang.Object
com.pixelmonmod.pixelmon.api.dialogue.Dialogue.DialogueBuilder
Enclosing class:
Dialogue

@Deprecated(forRemoval=true, since="9.2.7") public static class Dialogue.DialogueBuilder extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Builder for Dialogue objects. Contains four building methods: setText, setLocalizedText, setName, setChoices or its more chain-friendly version, addChoice

Choices are best added through in-line use of Choice.ChoiceBuilder, such that the eventual implementation may have many layers of nesting builders.

Since:
November 20, 2017
  • Constructor Details

    • DialogueBuilder

      public DialogueBuilder()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • build

      public Dialogue build()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setName

      public Dialogue.DialogueBuilder setName(String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setText

      public Dialogue.DialogueBuilder setText(String text)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setLocalizedText

      @Deprecated public Dialogue.DialogueBuilder setLocalizedText(String localizedText)
      Deprecated.
    • addChoice

      public Dialogue.DialogueBuilder addChoice(Choice choice)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setChoices

      public Dialogue.DialogueBuilder setChoices(ArrayList<Choice> choices)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • injectHandler

      public Dialogue.DialogueBuilder injectHandler(Consumer<DialogueChoiceEvent> handle)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • escapeCloses

      public Dialogue.DialogueBuilder escapeCloses()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • requireManualClose

      public Dialogue.DialogueBuilder requireManualClose()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • open

      public void open(net.minecraft.server.level.ServerPlayer... players)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Opens it for the specified players.