reset(); $this->putLong($this->clientID); $this->putString($this->username); $this->putInt($this->eid); $this->putFloat($this->x); $this->putFloat($this->y); $this->putFloat($this->z); $this->putByte($this->yaw); $this->putByte($this->pitch); $this->putShort($this->itemID); $this->putShort($this->itemAuxValue); //Example: bow shooting power $this->put(Utils::writeMetadata($this->metadata)); } public function eidsToLocal(Player $p){ if(!$this->localEids){ $this->localEids = true; $this->eid = $p->global2localEID[$this->eid] ?? false; if($this->eid === false) return false; } return true; } }