pocketmine\item\Tool::isUnbreakable PHP Method

isUnbreakable() public method

public isUnbreakable ( )
    public function isUnbreakable()
    {
        $tag = $this->getNamedTagEntry("Unbreakable");
        return $tag !== null and $tag->getValue() > 0;
    }