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);
    }
  }
}

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 ) ; } } }
adds a gem to the specified entity
