Klasse DialogueStyle
java.lang.Object
de.luckymcdev.foundryengine.common.dialogue.DialogueStyle
Style configuration for dialogue rendering.
Values are stored as named entries in a stack of DialogueStyle.StyleLayers. Getters
resolve a key by walking the stack from the top down, falling back to
DEFAULTS when no layer overrides it. This allows temporary overrides via
push() / pop() while the tree-level base style stays intact.
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifikator und TypKlasseBeschreibungstatic final classA named set of style values. -
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibungstatic DialogueStylefromNbt(net.minecraft.nbt.CompoundTag tag) Resolves a value by walking the layers, falling back toDEFAULTS.intintintintintintintintintintbooleanpeek()The current top layer, used for writing.@Nullable DialogueStyle.StyleLayerpop()Pops the top override layer.voidpush()Pushes a new empty layer on top.voidreset()Discards all overrides, leaving a single base layer seeded fromDEFAULTS.voidWrites a value into the current top layer.voidvoidvoidsetButtonHeight(int v) voidvoidvoidvoidsetDialogueBorderWidth(int v) voidsetDialogueFontSize(int v) voidsetMargin(int v) voidvoidvoidvoidsetOptionFontSize(int v) voidsetOptionGap(int v) voidvoidvoidsetOptionsBorderWidth(int v) voidvoidsetPanelHeight(int v) voidsetSpeakerFontSize(int v) voidsetTypewriterCharsPerSecond(int v) voidsetTypewriterSoundEnabled(boolean v) net.minecraft.nbt.CompoundTagtoNbt()voidRemoves a value from the current top layer.
-
Felddetails
-
DEFAULTS
-
-
Konstruktordetails
-
DialogueStyle
public DialogueStyle()
-
-
Methodendetails
-
fromNbt
-
push
public void push()Pushes a new empty layer on top. Subsequentset(String, Object)calls write into this layer;pop()removes it again. -
pop
Pops the top override layer. At least one layer is always kept.- Gibt zurück:
- the removed layer, or
nullif none could be removed
-
reset
public void reset()Discards all overrides, leaving a single base layer seeded fromDEFAULTS. -
peek
The current top layer, used for writing. -
get
-
set
-
unset
Removes a value from the current top layer. -
getDialogueBackground
-
setDialogueBackground
-
getDialogueBorder
-
setDialogueBorder
-
getDialogueBorderWidth
public int getDialogueBorderWidth() -
setDialogueBorderWidth
public void setDialogueBorderWidth(int v) -
getOptionsBackground
-
setOptionsBackground
-
getOptionsBorder
-
setOptionsBorder
-
getOptionsBorderWidth
public int getOptionsBorderWidth() -
setOptionsBorderWidth
public void setOptionsBorderWidth(int v) -
getButtonBackground
-
setButtonBackground
-
getButtonHover
-
setButtonHover
-
getButtonBorder
-
setButtonBorder
-
getOverlayColor
-
setOverlayColor
-
getSpeakerFontSize
public int getSpeakerFontSize() -
setSpeakerFontSize
public void setSpeakerFontSize(int v) -
getDialogueFontSize
public int getDialogueFontSize() -
setDialogueFontSize
public void setDialogueFontSize(int v) -
getOptionFontSize
public int getOptionFontSize() -
setOptionFontSize
public void setOptionFontSize(int v) -
getMargin
public int getMargin() -
setMargin
public void setMargin(int v) -
getPanelHeight
public int getPanelHeight() -
setPanelHeight
public void setPanelHeight(int v) -
getButtonHeight
public int getButtonHeight() -
setButtonHeight
public void setButtonHeight(int v) -
getOptionGap
public int getOptionGap() -
setOptionGap
public void setOptionGap(int v) -
isTypewriterSoundEnabled
public boolean isTypewriterSoundEnabled() -
setTypewriterSoundEnabled
public void setTypewriterSoundEnabled(boolean v) -
getTypewriterCharsPerSecond
public int getTypewriterCharsPerSecond() -
setTypewriterCharsPerSecond
public void setTypewriterCharsPerSecond(int v) -
toNbt
public net.minecraft.nbt.CompoundTag toNbt()
-