Class DialogueNode
java.lang.Object
de.luckymcdev.foundryengine.common.dialogue.DialogueNode
A single node in a dialogue tree. Contains speaker text, options, enter actions, and conditions.
Supports narrative-only flow via
nextNodeId.-
Constructor Summary
ConstructorsConstructorDescriptionDialogueNode(String id, String speaker, String text) DialogueNode(String id, String speaker, String text, int speakerColor) -
Method Summary
Modifier and TypeMethodDescriptionstatic DialogueNodefromNbt(net.minecraft.nbt.CompoundTag tag) getId()intgetText()voidsetNextNodeId(String nextNodeId) net.minecraft.nbt.CompoundTagtoNbt()
-
Constructor Details
-
DialogueNode
-
DialogueNode
-
-
Method Details
-
fromNbt
-
toNbt
public net.minecraft.nbt.CompoundTag toNbt() -
getId
-
getSpeaker
-
getText
-
getSpeakerColor
public int getSpeakerColor() -
getNextNodeId
-
setNextNodeId
-
getOptions
-
getEnterActionIds
-
getConditionIds
-