public function encode() { $this->reset(); $this->putVarInt($this->action); $this->putEntityId($this->eid); }