Class ClientCutsceneManager
java.lang.Object
de.luckymcdev.foundryengine.client.cutscene.ClientCutsceneManager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal classstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleMaximum distance in blocks from the player for cutscene camera override to be active. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidnet.minecraft.world.phys.Vec3getPos()net.minecraft.world.phys.Vec2getRot()voidhandlePacket(CutscenePacket packet) booleanbooleanvoidqueueCutscene(ClientCutsceneManager.PlayingCutscene cutscene, float length, LerpType lerpType, float holdStart, float holdEnd) voidvoidsetPreview(Cutscene cutscene, float t)
-
Field Details
-
RENDER_PLAYER_RANGE
public static final double RENDER_PLAYER_RANGEMaximum distance in blocks from the player for cutscene camera override to be active.- See Also:
-
-
Constructor Details
-
ClientCutsceneManager
public ClientCutsceneManager()
-
-
Method Details
-
clientTick
public void clientTick() -
setPreview
-
clearPreview
public void clearPreview() -
isCameraOverrideDisabled
public boolean isCameraOverrideDisabled() -
renderTick
public void renderTick() -
handlePacket
-
inCutscene
public boolean inCutscene() -
getPos
public net.minecraft.world.phys.Vec3 getPos() -
getRot
public net.minecraft.world.phys.Vec2 getRot() -
queueCutscene
public void queueCutscene(ClientCutsceneManager.PlayingCutscene cutscene, float length, LerpType lerpType, float holdStart, float holdEnd)
-