reset(); $this->putByte($this->windowid); $this->putByte($this->type); $this->putByte($this->slots); $this->putInt($this->x); $this->putInt($this->y); $this->putInt($this->z); } }