public function encode() { $this->reset(); $this->putLong($this->eid); $this->putInt($this->action); $this->putInt($this->x); $this->putInt($this->y); $this->putInt($this->z); $this->putInt($this->face); }