Added code that while it won't break should probably be replaced to get
an inventory for a villager from the entity.