pocketmine\item\enchantment\Enchantment::equals PHP Method

equals() public method

public equals ( Enchantment $ent )
$ent Enchantment
    public function equals(Enchantment $ent)
    {
        if ($ent->getId() == $this->getId() and $ent->getLevel() == $this->getLevel() and $ent->getActivationType() == $this->getActivationType() and $ent->getRarity() == $this->getRarity()) {
            return true;
        }
        return false;
    }