activated = $r->readBool(); } protected function encodeState(BlockDataWriter $w) : void{ parent::encodeState($w); $w->writeBool($this->activated); } public function isActivated() : bool{ return $this->activated; } /** @return $this */ public function setActivated(bool $activated) : self{ $this->activated = $activated; return $this; } //TODO }