public function __construct(Player $player, DataPacket $packet) { $this->packet = $packet; $this->player = $player; }