Mob Spawners

Does anyone know how to obtain which type of entity a mob spawner spawns from a block snapshot obtained through a transaction?

Get the TileEntity of the block and cast it to MonsterSpawner. After that use the function of

possibleEntitiesToSpawn

That will give you a list of EntityArchatypes (which are Entity Snapshots with all the data attached to them.