attach

public static void attach(UUID viewer, int vehicle, int passenger, float yaw, float pitch)

Vehicles may turn a passenger they take to their own view (horses do, on the client as well), so the rotation the passenger was spawned with is kept here and restored after every passenger packet.