Klasse EffectAttachment
java.lang.Object
de.luckymcdev.foundryengine.common.cutscene.model.CutsceneAttachment
de.luckymcdev.foundryengine.common.cutscene.model.EffectAttachment
Attachment for screen effects (post-processing shaders).
Handles phased transitions: intro, hold, and outro with configurable durations and easing.
-
Feldübersicht
FelderVon Klasse geerbte Felder CutsceneAttachment
at, type -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungEffectAttachment(float at, String effectName, float introDuration, float holdDuration, float outroDuration, String lerpType) -
Methodenübersicht
Modifikator und TypMethodeBeschreibungcopy()Creates a copy of this attachment.static EffectAttachmentfromNbt(net.minecraft.nbt.CompoundTag tag) Returns a display name for this attachment (for UI).floatReturns the total normalized duration of this attachment (0..1), or 0 if it's instantaneous.floatintgetHoldTicks(float cutsceneLength) floatintgetIntroTicks(float cutsceneLength) floatintgetOutroTicks(float cutsceneLength) voidsetEffectName(String effectName) voidsetHoldDuration(float holdDuration) voidsetIntroDuration(float introDuration) voidsetLerpType(String lerpType) voidsetOutroDuration(float outroDuration) net.minecraft.nbt.CompoundTagtoNbt()Serializes this attachment to NBT for saving.Von Klasse geerbte Methoden CutsceneAttachment
getAt, getType, setAt
-
Felddetails
-
TYPE
- Siehe auch:
-
-
Konstruktordetails
-
EffectAttachment
-
-
Methodendetails
-
fromNbt
-
toNbt
public net.minecraft.nbt.CompoundTag toNbt()Beschreibung aus Klasse kopiert:CutsceneAttachmentSerializes this attachment to NBT for saving. Subclasses should override this to add their specific data.- Setzt außer Kraft:
toNbtin KlasseCutsceneAttachment
-
copy
Beschreibung aus Klasse kopiert:CutsceneAttachmentCreates a copy of this attachment. Subclasses must implement this properly.- Angegeben von:
copyin KlasseCutsceneAttachment
-
getDisplayName
Beschreibung aus Klasse kopiert:CutsceneAttachmentReturns a display name for this attachment (for UI).- Angegeben von:
getDisplayNamein KlasseCutsceneAttachment
-
getDuration
public float getDuration()Beschreibung aus Klasse kopiert:CutsceneAttachmentReturns the total normalized duration of this attachment (0..1), or 0 if it's instantaneous.- Angegeben von:
getDurationin KlasseCutsceneAttachment
-
getEffectName
-
setEffectName
-
getIntroDuration
public float getIntroDuration() -
setIntroDuration
public void setIntroDuration(float introDuration) -
getHoldDuration
public float getHoldDuration() -
setHoldDuration
public void setHoldDuration(float holdDuration) -
getOutroDuration
public float getOutroDuration() -
setOutroDuration
public void setOutroDuration(float outroDuration) -
getLerpType
-
setLerpType
-
getIntroTicks
public int getIntroTicks(float cutsceneLength) -
getHoldTicks
public int getHoldTicks(float cutsceneLength) -
getOutroTicks
public int getOutroTicks(float cutsceneLength)
-