public function decode() { $this->eid = $this->getEntityId(); //EntityRuntimeID $this->item = $this->getSlot(); $this->slot = $this->getByte(); $this->selectedSlot = $this->getByte(); $this->unknownByte = $this->getByte(); }