Added method to set mob type in spawner