Klasse CutsceneAttachment

java.lang.Object
de.luckymcdev.foundryengine.common.cutscene.model.CutsceneAttachment
Bekannte direkte Unterklassen:
CommandAttachment, EffectAttachment

public abstract class CutsceneAttachment extends Object
Base class for all cutscene attachments. Attachments are timeline-based objects that can be attached to a cutscene at a specific normalized time position (0..1).

This system makes it easy to add new attachment types in the future by simply extending this class and implementing the required methods.

  • Feldübersicht

    Felder
    Modifikator und Typ
    Feld
    Beschreibung
    protected float
    Normalized time (0..1) along the cutscene playback where this attachment triggers.
    protected String
    A human-readable name/type identifier for this attachment.
  • Konstruktorübersicht

    Konstruktoren
    Modifikator
    Konstruktor
    Beschreibung
    protected
    CutsceneAttachment(float at, String type)
     
  • Methodenübersicht

    Modifikator und Typ
    Methode
    Beschreibung
    Creates a copy of this attachment.
    float
     
    abstract String
    Returns a display name for this attachment (for UI).
    abstract float
    Returns the total normalized duration of this attachment (0..1), or 0 if it's instantaneous.
     
    void
    setAt(float at)
     
    net.minecraft.nbt.CompoundTag
    Serializes this attachment to NBT for saving.

    Von Klasse geerbte Methoden Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Felddetails

    • at

      protected float at
      Normalized time (0..1) along the cutscene playback where this attachment triggers.
    • type

      protected String type
      A human-readable name/type identifier for this attachment. Used for serialization and UI display.
  • Konstruktordetails

    • CutsceneAttachment

      protected CutsceneAttachment(float at, String type)
  • Methodendetails

    • getAt

      public float getAt()
    • setAt

      public void setAt(float at)
    • getType

      public String getType()
    • toNbt

      public net.minecraft.nbt.CompoundTag toNbt()
      Serializes this attachment to NBT for saving. Subclasses should override this to add their specific data.
    • copy

      public abstract CutsceneAttachment copy()
      Creates a copy of this attachment. Subclasses must implement this properly.
    • getDisplayName

      public abstract String getDisplayName()
      Returns a display name for this attachment (for UI).
    • getDuration

      public abstract float getDuration()
      Returns the total normalized duration of this attachment (0..1), or 0 if it's instantaneous.