Use npc.getEntity() instead of npc.getLivingEntity() where possible. Traits still need reviewed.