Klasse Cutscene
java.lang.Object
de.luckymcdev.foundryengine.common.cutscene.model.Cutscene
-
Feldübersicht
Felder -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCutscene(String name, net.minecraft.world.phys.Vec2 initialRot, net.minecraft.world.phys.Vec2 finalRot, BezierPath path) -
Methodenübersicht
Modifikator und TypMethodeBeschreibungvoidAdds an attachment to the cutscene.voidVeraltet.Use addAttachment() with EffectAttachment instead.floatcomputeProgress(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.endAtPlayer(net.minecraft.world.entity.player.Player player) static CutscenefromNbt(net.minecraft.nbt.CompoundTag tag) double[]intgetAnchorHoldTicks(int anchorIndex) intArrayList<net.minecraft.world.phys.Vec2> Returns all attachments.getColor()intReturns all attachments of type CommandAttachment.intintintReturns all attachments of type EffectAttachment.net.minecraft.world.phys.Vec2net.minecraft.world.phys.Vec2getName()getPath()net.minecraft.world.phys.Vec3getPosAt(float t) net.minecraft.world.phys.Vec2getRotAt(float t) intReturns the total number of hold ticks across all anchors (sum of anchorHoldTicks).voidinsertAnchorRotationAtEnd(net.minecraft.world.phys.Vec2 rot) voidinsertAnchorRotationAtStart(net.minecraft.world.phys.Vec2 rot) originAtPlayer(net.minecraft.world.entity.player.Player player) voidvoidvoidremoveAttachment(int index, Class<? extends CutsceneAttachment> type) Removes an attachment at the specified index (from the filtered list).voidRemoves an attachment by its direct reference.voidremoveScreenEffect(int index) Veraltet.Use removeAttachment() instead.voidsetAnchorHoldTicks(int anchorIndex, int ticks) voidsetAnchorRotation(int anchorIndex, net.minecraft.world.phys.Vec2 rot) voidvoidsetColorArgb(int argb) voidsetDefaultEasing(String defaultEasing) voidsetDefaultHoldEnd(int defaultHoldEnd) voidsetDefaultHoldStart(int defaultHoldStart) voidsetDefaultLength(int defaultLength) voidsetFinalRot(net.minecraft.world.phys.Vec2 rot) voidsetInitRot(net.minecraft.world.phys.Vec2 rot) voidsetRotationForAnchorPoint(BezierPoint point, net.minecraft.world.phys.Vec2 rot) net.minecraft.nbt.CompoundTagtoNbt()
-
Felddetails
-
path
-
-
Konstruktordetails
-
Cutscene
public Cutscene(String name, net.minecraft.world.phys.Vec2 initialRot, net.minecraft.world.phys.Vec2 finalRot, BezierPath path)
-
-
Methodendetails
-
fromNbt
-
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
-
endAtPlayer
-
toNbt
public net.minecraft.nbt.CompoundTag toNbt() -
getAnchorPointCount
public int getAnchorPointCount() -
getColor
-
setColor
-
getColorArgb
public int getColorArgb() -
setColorArgb
public void setColorArgb(int argb) -
getAnchorRotations
-
getEffectAttachments
Returns all attachments of type EffectAttachment. For backward compatibility, this replaces the old getScreenEffects(). -
getCommandAttachments
Returns all attachments of type CommandAttachment. -
getAttachments
Returns all attachments. -
addAttachment
Adds an attachment to the cutscene. -
removeAttachment
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
Removes an attachment by its direct reference. -
addScreenEffect
Veraltet.Use addAttachment() with EffectAttachment instead. -
removeScreenEffect
Veraltet.Use removeAttachment() instead. -
setAnchorRotation
public void setAnchorRotation(int anchorIndex, net.minecraft.world.phys.Vec2 rot) -
setRotationForAnchorPoint
-
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
-
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
-
setDefaultEasing
-
getPath
-