public function decode() { $this->windowid = $this->getByte(); $this->slot = $this->getShort(); $this->hotbarSlot = $this->getShort(); $this->item = $this->getSlot(); }