pocketmine\entity\Squid::getDrops PHP Метод

getDrops() публичный Метод

public getDrops ( )
    public function getDrops()
    {
        $lootingL = 0;
        $cause = $this->lastDamageCause;
        if ($cause instanceof EntityDamageByEntityEvent and $cause->getDamager() instanceof Player) {
            $lootingL = $cause->getDamager()->getItemInHand()->getEnchantmentLevel(Enchantment::TYPE_WEAPON_LOOTING);
        }
        return [ItemItem::get(ItemItem::DYE, 0, mt_rand(1, 3 + $lootingL))];
    }