Package 

Interface WeightedManager

    • Method Summary

      Modifier and Type Method Description
      abstract T randomByWeight(Function1<T, Boolean> block) Returns a random T from the managed Ts based on Weighted.weight and block.
      T randomByWeight() Returns a random T from the managed Ts based on Weighted.weight.
      • Methods inherited from class com.tealcube.minecraft.bukkit.mythicdrops.api.managers.WeightedManager

        add, addAll, clear, contains, get, getById, random, remove
      • Methods inherited from class java.lang.Object

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

      • randomByWeight

         abstract T randomByWeight(Function1<T, Boolean> block)

        Returns a random T from the managed Ts based on Weighted.weight and block. Null if one cannot be picked.

        Parameters:
        block - block that filters applicable managed items
      • randomByWeight

         T randomByWeight()

        Returns a random T from the managed Ts based on Weighted.weight. Null if one cannot be picked.