DeductibleRequirement.java

1
package sh.okx.rankup.requirements;
2
3
import org.bukkit.entity.Player;
4
5
public interface DeductibleRequirement {
6
  /**
7
   * Apply the effect of this requirement to the player.
8
   * For money, this could be taking money away from the player.
9
   * You can assume that <code>Requirement#check(Player)</code> has been called,
10
   * and has returned true immediately prior to this.
11
   *
12
   * Currently the multiplier will always be 1, but that may change in the future.
13
   *
14
   * @param player the player to take from
15
   * @param multiplier The multiplier for the value
16
   */
17
  void apply(Player player, double multiplier);
18
19
  default void apply(Player player) {
20 1 1. apply : removed call to sh/okx/rankup/requirements/DeductibleRequirement::apply → KILLED
    apply(player, 1);
21
  }
22
}

Mutations

20

1.1
Location : apply
Killed by : sh.okx.rankup.requirements.PrestigeRequirementsTest.[engine:junit-jupiter]/[class:sh.okx.rankup.requirements.PrestigeRequirementsTest]/[method:testPrestigeRequirements()]
removed call to sh/okx/rankup/requirements/DeductibleRequirement::apply → KILLED

Active mutators

Tests examined


Report generated by PIT 1.7.0