Class EffectAttachment

java.lang.Object
de.luckymcdev.foundryengine.common.cutscene.model.CutsceneAttachment
de.luckymcdev.foundryengine.common.cutscene.model.EffectAttachment

public class EffectAttachment extends CutsceneAttachment
Attachment for screen effects (post-processing shaders). Handles phased transitions: intro, hold, and outro with configurable durations and easing.
  • Field Details

  • Constructor Details

    • EffectAttachment

      public EffectAttachment(float at, String effectName, float introDuration, float holdDuration, float outroDuration, String lerpType)
  • Method Details

    • fromNbt

      public static EffectAttachment fromNbt(net.minecraft.nbt.CompoundTag tag)
    • toNbt

      public net.minecraft.nbt.CompoundTag toNbt()
      Description copied from class: CutsceneAttachment
      Serializes this attachment to NBT for saving. Subclasses should override this to add their specific data.
      Overrides:
      toNbt in class CutsceneAttachment
    • copy

      public CutsceneAttachment copy()
      Description copied from class: CutsceneAttachment
      Creates a copy of this attachment. Subclasses must implement this properly.
      Specified by:
      copy in class CutsceneAttachment
    • getDisplayName

      public String getDisplayName()
      Description copied from class: CutsceneAttachment
      Returns a display name for this attachment (for UI).
      Specified by:
      getDisplayName in class CutsceneAttachment
    • getDuration

      public float getDuration()
      Description copied from class: CutsceneAttachment
      Returns the total normalized duration of this attachment (0..1), or 0 if it's instantaneous.
      Specified by:
      getDuration in class CutsceneAttachment
    • getEffectName

      public String getEffectName()
    • setEffectName

      public void setEffectName(String effectName)
    • 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

      public String getLerpType()
    • setLerpType

      public void setLerpType(String lerpType)
    • getIntroTicks

      public int getIntroTicks(float cutsceneLength)
    • getHoldTicks

      public int getHoldTicks(float cutsceneLength)
    • getOutroTicks

      public int getOutroTicks(float cutsceneLength)