Klasse CommandAttachment
java.lang.Object
de.luckymcdev.foundryengine.common.cutscene.model.CutsceneAttachment
de.luckymcdev.foundryengine.common.cutscene.model.CommandAttachment
Attachment for executing server commands at a specific point in the cutscene.
Commands are executed on the server with appropriate permission checks.
-
Feldübersicht
FelderVon Klasse geerbte Felder CutsceneAttachment
at, type -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibungcopy()Creates a copy of this attachment.static CommandAttachmentfromNbt(net.minecraft.nbt.CompoundTag tag) floatgetDelay()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.floatReturns the effective trigger time (at + delay) in normalized form.intgetTriggerTick(float cutsceneLength) Returns the effective trigger tick based on cutscene length.voidsetCommand(String command) voidsetDelay(float delay) net.minecraft.nbt.CompoundTagtoNbt()Serializes this attachment to NBT for saving.Von Klasse geerbte Methoden CutsceneAttachment
getAt, getType, setAt
-
Felddetails
-
TYPE
- Siehe auch:
-
-
Konstruktordetails
-
CommandAttachment
-
-
Methodendetails
-
fromNbt
-
toNbt
public net.minecraft.nbt.CompoundTag toNbt()Beschreibung aus Klasse kopiert:CutsceneAttachmentSerializes this attachment to NBT for saving. Subclasses should override this to add their specific data.- Setzt außer Kraft:
toNbtin KlasseCutsceneAttachment
-
copy
Beschreibung aus Klasse kopiert:CutsceneAttachmentCreates a copy of this attachment. Subclasses must implement this properly.- Angegeben von:
copyin KlasseCutsceneAttachment
-
getDisplayName
Beschreibung aus Klasse kopiert:CutsceneAttachmentReturns a display name for this attachment (for UI).- Angegeben von:
getDisplayNamein KlasseCutsceneAttachment
-
getDuration
public float getDuration()Beschreibung aus Klasse kopiert:CutsceneAttachmentReturns the total normalized duration of this attachment (0..1), or 0 if it's instantaneous.- Angegeben von:
getDurationin KlasseCutsceneAttachment
-
getCommand
-
setCommand
-
getDelay
public float getDelay() -
setDelay
public void setDelay(float delay) -
getEffectiveAt
public float getEffectiveAt()Returns the effective trigger time (at + delay) in normalized form. -
getTriggerTick
public int getTriggerTick(float cutsceneLength) Returns the effective trigger tick based on cutscene length.
-