public function setResting(bool $resting) { $this->namedtag->isResting = new ByteTag("isResting", $resting ? 1 : 0); }