Package 

Class IdentityWeightedChoice

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      T choose() Chooses one of the available options and returns it.
      final T choose(Function1<T, Boolean> block) Chooses one of the available options and returns it based on weight.
      • Methods inherited from class com.tealcube.minecraft.bukkit.mythicdrops.api.choices.Choice

        addOption, addOptions, addOptions
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IdentityWeightedChoice

        IdentityWeightedChoice()
    • Method Detail

      • choose

         T choose()

        Chooses one of the available options and returns it.

      • choose

         final T choose(Function1<T, Boolean> block)

        Chooses one of the available options and returns it based on weight.

        Parameters:
        block - Extra block to execute to determine if option is selectable