pocketmine\item\Item::isShears PHP Method

isShears() public method

public isShears ( )
    public function isShears()
    {
        return false;
    }

Usage Example

Example #1
0
 public function getDrops(Item $item)
 {
     if ($item->isShears() || $item->isSword() >= Tool::TIER_WOODEN) {
         return [[Item::STRING, 0, 1]];
     } else {
         return [];
     }
 }
All Usage Examples Of pocketmine\item\Item::isShears