Elegant code.

Also, the interaction check should only be for LivingEntities (that way we
don't affect other plugins).
Signed-off-by: Chris Sanders <zidane@outlook.com>