Class DialogueSession
java.lang.Object
de.luckymcdev.foundryengine.common.dialogue.DialogueSession
Tracks an in-progress dialogue for a single player on the server.
Serialized to NBT for network sync to the client.
-
Constructor Summary
ConstructorsConstructorDescriptionDialogueSession(net.minecraft.resources.Identifier treeId, String currentNodeId) -
Method Summary
Modifier and TypeMethodDescriptionvoidend()static DialogueSessionfromNbt(net.minecraft.nbt.CompoundTag tag) getStyle()net.minecraft.resources.IdentifiergetVariable(String key) booleanisEnded()voidsetCurrentNodeId(String currentNodeId) voidsetDisplayMode(DialogueDisplayMode displayMode) voidsetStyle(DialogueStyle style) voidsetVariable(String key, String value) net.minecraft.nbt.CompoundTagtoNbt()
-
Constructor Details
-
DialogueSession
-
-
Method Details
-
fromNbt
-
getTreeId
public net.minecraft.resources.Identifier getTreeId() -
getCurrentNodeId
-
setCurrentNodeId
-
isEnded
public boolean isEnded() -
end
public void end() -
getDisplayMode
-
setDisplayMode
-
getStyle
-
setStyle
-
getHistory
-
getVariables
-
getVariable
-
setVariable
-
toNbt
public net.minecraft.nbt.CompoundTag toNbt()
-