public function getRulesArray() { $data = []; self::toArray($data, $this->writeToNBT()); return $data; }