Class CameraSequencePacketHandler

java.lang.Object
com.hypixel.hytale.server.core.modules.camera.CameraSequencePacketHandler
All Implemented Interfaces:
SubPacketHandler

public class CameraSequencePacketHandler extends Object implements SubPacketHandler
Per-connection driver for camera sequences: holds the active CameraSequenceSource and serves the client's keyframe-window requests on demand, so the full track never has to live on the server at once. A new sequence supersedes any active one. Requests and the completion ack carry the sequence id so packets for a superseded sequence are discarded.

The sequence state is confined to the world thread: the request and completion handlers run through onWorldThread(Runnable), and begin(CameraSequenceSource) must likewise be called from the world thread.