public function encode() { $this->reset(); $this->putEntityId($this->eid); //EntityRuntimeID $this->putSlot($this->item); $this->putByte($this->slot); $this->putByte($this->selectedSlot); $this->putByte($this->unknownByte); }