pocketmine\block\RedstoneBlock::getDrops PHP Method

getDrops() public method

public getDrops ( Item $item )
$item pocketmine\item\Item
    public function getDrops(Item $item)
    {
        if ($item->isPickaxe() >= Tool::TIER_WOODEN) {
            return [[Item::REDSTONE_BLOCK, 0, 1]];
        } else {
            return [];
        }
    }