Klasse Cutscene

java.lang.Object
de.luckymcdev.foundryengine.common.cutscene.model.Cutscene

public class Cutscene extends Object
  • Felddetails

  • Konstruktordetails

    • Cutscene

      public Cutscene(String name, net.minecraft.world.phys.Vec2 initialRot, net.minecraft.world.phys.Vec2 finalRot, BezierPath path)
  • Methodendetails

    • fromNbt

      public static Cutscene fromNbt(net.minecraft.nbt.CompoundTag tag)
    • getName

      public String getName()
    • getInitialRot

      public net.minecraft.world.phys.Vec2 getInitialRot()
    • getFinalRot

      public net.minecraft.world.phys.Vec2 getFinalRot()
    • setFinalRot

      public void setFinalRot(net.minecraft.world.phys.Vec2 rot)
    • setInitRot

      public void setInitRot(net.minecraft.world.phys.Vec2 rot)
    • getPosAt

      public net.minecraft.world.phys.Vec3 getPosAt(float t)
    • getRotAt

      public net.minecraft.world.phys.Vec2 getRotAt(float t)
    • originAtPlayer

      public Cutscene originAtPlayer(net.minecraft.world.entity.player.Player player)
    • endAtPlayer

      public Cutscene endAtPlayer(net.minecraft.world.entity.player.Player player)
    • toNbt

      public net.minecraft.nbt.CompoundTag toNbt()
    • getAnchorPointCount

      public int getAnchorPointCount()
    • getColor

      public Color getColor()
    • setColor

      public void setColor(Color color)
    • getColorArgb

      public int getColorArgb()
    • setColorArgb

      public void setColorArgb(int argb)
    • getAnchorRotations

      public ArrayList<net.minecraft.world.phys.Vec2> getAnchorRotations()
    • getEffectAttachments

      public ArrayList<EffectAttachment> getEffectAttachments()
      Returns all attachments of type EffectAttachment. For backward compatibility, this replaces the old getScreenEffects().
    • getCommandAttachments

      public ArrayList<CommandAttachment> getCommandAttachments()
      Returns all attachments of type CommandAttachment.
    • getAttachments

      public ArrayList<CutsceneAttachment> getAttachments()
      Returns all attachments.
    • addAttachment

      public void addAttachment(CutsceneAttachment att)
      Adds an attachment to the cutscene.
    • removeAttachment

      public void removeAttachment(int index, Class<? extends CutsceneAttachment> type)
      Removes an attachment at the specified index (from the filtered list).
      Parameter:
      index - Index in the filtered list of the specific type.
      type - The class type to filter by.
    • removeAttachment

      public void removeAttachment(CutsceneAttachment att)
      Removes an attachment by its direct reference.
    • addScreenEffect

      @Deprecated public void addScreenEffect(EffectAttachment ev)
      Veraltet.
      Use addAttachment() with EffectAttachment instead.
    • removeScreenEffect

      @Deprecated public void removeScreenEffect(int index)
      Veraltet.
      Use removeAttachment() instead.
    • setAnchorRotation

      public void setAnchorRotation(int anchorIndex, net.minecraft.world.phys.Vec2 rot)
    • setRotationForAnchorPoint

      public void setRotationForAnchorPoint(BezierPoint point, net.minecraft.world.phys.Vec2 rot)
    • insertAnchorRotationAtStart

      public void insertAnchorRotationAtStart(net.minecraft.world.phys.Vec2 rot)
    • insertAnchorRotationAtEnd

      public void insertAnchorRotationAtEnd(net.minecraft.world.phys.Vec2 rot)
    • removeAnchorRotationAtStart

      public void removeAnchorRotationAtStart()
    • removeAnchorRotationAtEnd

      public void removeAnchorRotationAtEnd()
    • getAnchorDistanceKeys

      public double[] getAnchorDistanceKeys()
    • computeProgress

      public float computeProgress(float ageTicks, float motionLengthTicks, float holdStartTicks, float holdEndTicks)
      Computes the effective progress t (0..1) for a given tick position in the playback timeline, accounting for per-anchor hold times, holdStart, and holdEnd.
    • getAnchorHoldTicks

      public ArrayList<Integer> getAnchorHoldTicks()
    • getAnchorHoldTicks

      public int getAnchorHoldTicks(int anchorIndex)
    • setAnchorHoldTicks

      public void setAnchorHoldTicks(int anchorIndex, int ticks)
    • getTotalAnchorHoldTicks

      public int getTotalAnchorHoldTicks()
      Returns the total number of hold ticks across all anchors (sum of anchorHoldTicks).
    • getDefaultHoldEnd

      public int getDefaultHoldEnd()
    • setDefaultHoldEnd

      public void setDefaultHoldEnd(int defaultHoldEnd)
    • getDefaultHoldStart

      public int getDefaultHoldStart()
    • setDefaultHoldStart

      public void setDefaultHoldStart(int defaultHoldStart)
    • getDefaultLength

      public int getDefaultLength()
    • setDefaultLength

      public void setDefaultLength(int defaultLength)
    • getDefaultEasing

      public String getDefaultEasing()
    • setDefaultEasing

      public void setDefaultEasing(String defaultEasing)
    • getPath

      public BezierPath getPath()