Class AddToCutsceneRotation
java.lang.Object
net.thewinnt.cutscenes.rotation.handler.AddToCutsceneRotation
- All Implemented Interfaces:
RotationHandler
-
Field Summary
FieldsFields inherited from interface net.thewinnt.cutscenes.rotation.RotationHandler
UNKNOWN -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.phys.Vec3apply(net.minecraft.world.phys.Vec3 initCamRot, net.minecraft.world.phys.Vec3 startRot, net.minecraft.world.phys.Vec3 playerRot, net.minecraft.world.phys.Vec3 cutsceneRot, double dt) Applies the rotation transform.Returns a serializer suitable for this rotation handler
-
Field Details
-
INSTANCE
-
-
Method Details
-
apply
public net.minecraft.world.phys.Vec3 apply(net.minecraft.world.phys.Vec3 initCamRot, net.minecraft.world.phys.Vec3 startRot, net.minecraft.world.phys.Vec3 playerRot, net.minecraft.world.phys.Vec3 cutsceneRot, double dt) Description copied from interface:RotationHandlerApplies the rotation transform. There is at most one rotation handler ticked at any point in time, so you can freely store data in your instances.- Specified by:
applyin interfaceRotationHandler- Parameters:
initCamRot- the initial player rotation, right before the cutscene startedstartRot- the start rotation of the cutscene, aka the third argument inCutsceneManager#startCutsceneplayerRot- the current player rotation (as if the cutscene never began)cutsceneRot- the rotation value output by the cutscene, relative to zerodt- the time difference since last call of this method, in seconds. Always less than or equal to zero on the first call to this during a cutscene.- Returns:
- the camera rotation that the player will ultimately see
-
serializer
Description copied from interface:RotationHandlerReturns a serializer suitable for this rotation handler- Specified by:
serializerin interfaceRotationHandler- Returns:
- a serializer that can be used with this rotation handler
-