setInt(self::TAG_PRIMARY, $this->primaryEffect); $nbt->setInt(self::TAG_SECONDARY, $this->secondaryEffect); } public function readSaveData(CompoundTag $nbt) : void{ //TODO: PC uses Primary and Secondary (capitalized first letter), we don't read them here because the IDs would be different $this->primaryEffect = $nbt->getInt(self::TAG_PRIMARY, 0); $this->secondaryEffect = $nbt->getInt(self::TAG_SECONDARY, 0); } protected function writeSaveData(CompoundTag $nbt) : void{ $nbt->setInt(self::TAG_PRIMARY, $this->primaryEffect); $nbt->setInt(self::TAG_SECONDARY, $this->secondaryEffect); } public function getPrimaryEffect() : int{ return $this->primaryEffect; } public function setPrimaryEffect(int $primaryEffect) : void{ $this->primaryEffect = $primaryEffect; } public function getSecondaryEffect() : int{ return $this->secondaryEffect; } public function setSecondaryEffect(int $secondaryEffect) : void{ $this->secondaryEffect = $secondaryEffect; } }