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
Choices are best added through in-line use of
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 Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.build()
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.injectHandler
(Consumer<DialogueChoiceEvent> handle) Deprecated, for removal: This API element is subject to removal in a future version.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.Deprecated, for removal: This API element is subject to removal in a future version.setChoices
(ArrayList<Choice> choices) Deprecated, for removal: This API element is subject to removal in a future version.setLocalizedText
(String localizedText) Deprecated.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
DialogueBuilder
public DialogueBuilder()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
build
Deprecated, for removal: This API element is subject to removal in a future version. -
setName
Deprecated, for removal: This API element is subject to removal in a future version. -
setText
Deprecated, for removal: This API element is subject to removal in a future version. -
setLocalizedText
Deprecated. -
addChoice
Deprecated, for removal: This API element is subject to removal in a future version. -
setChoices
Deprecated, for removal: This API element is subject to removal in a future version. -
injectHandler
Deprecated, for removal: This API element is subject to removal in a future version. -
escapeCloses
Deprecated, for removal: This API element is subject to removal in a future version. -
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.
-