swapWith method

Score swapWith(
  1. Score score
)

swaps two scores

Implementation

Score swapWith(Score score) {
  return addCommandRet(
    Command(
      'scoreboard players operation ${toString()} >< ${toString(entity: score.entity, score: score.score)}',
    ),
  );
}