entity = $entity; } public function encode() : array{ return [ ActorEventPacket::create($this->entity->getId(), ActorEvent::RESPAWN, 0) ]; } }