51 int $ridingActorRuntimeId,
57 $result->actorRuntimeId = $actorRuntimeId;
58 $result->position = $position;
59 $result->pitch = $pitch;
61 $result->headYaw = $headYaw;
62 $result->mode = $mode;
63 $result->onGround = $onGround;
64 $result->ridingActorRuntimeId = $ridingActorRuntimeId;
65 $result->teleportCause = $teleportCause;
66 $result->teleportItem = $teleportItem;
67 $result->tick = $tick;
82 return self::create($actorRuntimeId, $position, $pitch, $yaw, $headYaw, $mode, $onGround, $ridingActorRuntimeId, 0, 0, $tick);
102 $out->putActorRuntimeId($this->actorRuntimeId);
104 $out->putLFloat($this->pitch);
105 $out->putLFloat($this->yaw);
106 $out->putLFloat($this->headYaw);
107 $out->putByte($this->mode);
108 $out->putBool($this->onGround);
109 $out->putActorRuntimeId($this->ridingActorRuntimeId);
110 if($this->mode === MovePlayerPacket::MODE_TELEPORT){
111 $out->putLInt($this->teleportCause);
112 $out->putLInt($this->teleportItem);