question: public static void addGem ( Entity entity , CircleGemType gemType , CircleGem . CombatType combatType ) { if ( entity . hasCapability ( CapabilityRegistry . CAPABILITY_ENTITY_CIRCLE_GEM , null ) ) { ICircleGemCapability capability = entity . getCapability ( CapabilityRegistry . CAPABILITY_ENTITY_CIRCLE_GEM , null ) ; CircleGem gem = new CircleGem ( gemType , combatType ) ; if ( capability . canAdd ( gem ) ) { capability . addGem ( gem ) ; } } }
target:  Adds a gem to the specified entity