Class 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.
-
Field Summary
FieldsFields inherited from class CutsceneAttachment
at, type -
Constructor Summary
ConstructorsConstructorDescriptionEffectAttachment(float at, String effectName, float introDuration, float holdDuration, float outroDuration, String lerpType) -
Method Summary
Modifier and TypeMethodDescriptioncopy()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.Methods inherited from class CutsceneAttachment
getAt, getType, setAt
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
EffectAttachment
-
-
Method Details
-
fromNbt
-
toNbt
public net.minecraft.nbt.CompoundTag toNbt()Description copied from class:CutsceneAttachmentSerializes this attachment to NBT for saving. Subclasses should override this to add their specific data.- Overrides:
toNbtin classCutsceneAttachment
-
copy
Description copied from class:CutsceneAttachmentCreates a copy of this attachment. Subclasses must implement this properly.- Specified by:
copyin classCutsceneAttachment
-
getDisplayName
Description copied from class:CutsceneAttachmentReturns a display name for this attachment (for UI).- Specified by:
getDisplayNamein classCutsceneAttachment
-
getDuration
public float getDuration()Description copied from class:CutsceneAttachmentReturns the total normalized duration of this attachment (0..1), or 0 if it's instantaneous.- Specified by:
getDurationin classCutsceneAttachment
-
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)
-