Minecraft wiki entry for Development_versions, associated text: Added the hasitem filter for target selector of entities.
Allows the player to target entities based on the items that have in their inventory or are wearing.