Class RewardPool<T>
java.lang.Object
com.pixelmonmod.pixelmon.api.util.RewardPool<T>
-
Nested Class Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
RewardPool
(RewardPool.Builder<T> builder) protected
RewardPool
(Optional<T> guaranteedReward, int rewardRollsMin, int rewardRollsMax, double chanceOfAdditionalRewards, RandomWeightedSet<T> rewards) -
Method Summary
Modifier and TypeMethodDescriptionstatic <A> RewardPool.Builder<A>
builder
(A guaranteedReward) static <A> com.mojang.serialization.Codec<RewardPool<A>>
codec
(com.mojang.serialization.Codec<A> codec)
-
Constructor Details
-
RewardPool
-
RewardPool
protected RewardPool(Optional<T> guaranteedReward, int rewardRollsMin, int rewardRollsMax, double chanceOfAdditionalRewards, RandomWeightedSet<T> rewards)
-
-
Method Details
-
codec
public static <A> com.mojang.serialization.Codec<RewardPool<A>> codec(com.mojang.serialization.Codec<A> codec) -
roll
-
builder
-