Klasse CutsceneAttachment
java.lang.Object
de.luckymcdev.foundryengine.common.cutscene.model.CutsceneAttachment
- Bekannte direkte Unterklassen:
CommandAttachment, EffectAttachment
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 -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibungabstract CutsceneAttachmentcopy()Creates a copy of this attachment.floatgetAt()abstract StringReturns a display name for this attachment (for UI).abstract floatReturns the total normalized duration of this attachment (0..1), or 0 if it's instantaneous.getType()voidsetAt(float at) net.minecraft.nbt.CompoundTagtoNbt()Serializes this attachment to NBT for saving.
-
Felddetails
-
at
protected float atNormalized time (0..1) along the cutscene playback where this attachment triggers. -
type
A human-readable name/type identifier for this attachment. Used for serialization and UI display.
-
-
Konstruktordetails
-
CutsceneAttachment
-
-
Methodendetails
-
getAt
public float getAt() -
setAt
public void setAt(float at) -
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
Creates a copy of this attachment. Subclasses must implement this properly. -
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.
-