Klasse 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.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungDialogueSession(net.minecraft.resources.Identifier treeId, String currentNodeId) -
Methodenübersicht
Modifikator und TypMethodeBeschreibungvoidend()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()
-
Konstruktordetails
-
DialogueSession
-
-
Methodendetails
-
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()
-