Class WeightedChoice.Choice<T>

java.lang.Object
com.sk89q.worldedit.util.WeightedChoice.Choice<T>
Type Parameters:
T - the choice type
Enclosing class:
WeightedChoice<T>

public static class WeightedChoice.Choice<T> extends Object
A tuple of choice and score.
  • Method Details

    • getValue

      public T getValue()
      Get the chosen value.
      Returns:
      the value
    • getScore

      public double getScore()
      Get the score.
      Returns:
      the score