x = $this->getShort(); $this->y = $this->getByte(); $this->z = $this->getShort(); $this->namedtag = $this->get(true); } public function encode(){ $this->reset(); $this->putShort($this->x); $this->putByte($this->y); $this->putShort($this->z); $this->put($this->namedtag); } }