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