public function kill()
{
$this->health = 0;
$this->removeAllEffects();
$this->scheduleUpdate();
if ($this->getLevel()->getServer()->expEnabled) {
$exp = mt_rand($this->getDropExpMin(), $this->getDropExpMax());
if ($exp > 0) {
$this->getLevel()->spawnXPOrb($this, $exp);
}
}
}