public function kill()
{
if (!$this->isAlive()) {
return;
}
parent::kill();
$this->server->getPluginManager()->callEvent($ev = new EntityDeathEvent($this, $this->getDrops()));
foreach ($ev->getDrops() as $item) {
$this->getLevel()->dropItem($this, $item);
}
}