public class WeightedList<U>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
WeightedList.Entry<T> |
Modifier and Type | Field and Description |
---|---|
protected java.util.List<WeightedList.Entry<? extends U>> |
field_220658_a |
private java.util.Random |
random |
Constructor and Description |
---|
WeightedList() |
WeightedList(com.mojang.datafixers.Dynamic<T> p_i225709_1_,
java.util.function.Function<com.mojang.datafixers.Dynamic<T>,U> p_i225709_2_) |
WeightedList(java.util.Random p_i50335_1_) |
Modifier and Type | Method and Description |
---|---|
java.util.stream.Stream<? extends U> |
func_220655_b() |
WeightedList<U> |
func_226309_a_() |
<T> T |
func_226310_a_(com.mojang.datafixers.types.DynamicOps<T> p_226310_1_,
java.util.function.Function<U,com.mojang.datafixers.Dynamic<T>> p_226310_2_) |
WeightedList<U> |
func_226313_a_(U p_226313_1_,
int p_226313_2_) |
WeightedList<U> |
func_226314_a_(java.util.Random p_226314_1_) |
U |
func_226318_b_(java.util.Random p_226318_1_) |
java.util.stream.Stream<WeightedList.Entry<? extends U>> |
func_226319_c_() |
java.lang.String |
toString() |
protected final java.util.List<WeightedList.Entry<? extends U>> field_220658_a
private final java.util.Random random
public WeightedList(java.util.Random p_i50335_1_)
public WeightedList()
public WeightedList(com.mojang.datafixers.Dynamic<T> p_i225709_1_, java.util.function.Function<com.mojang.datafixers.Dynamic<T>,U> p_i225709_2_)
public <T> T func_226310_a_(com.mojang.datafixers.types.DynamicOps<T> p_226310_1_, java.util.function.Function<U,com.mojang.datafixers.Dynamic<T>> p_226310_2_)
public WeightedList<U> func_226313_a_(U p_226313_1_, int p_226313_2_)
public WeightedList<U> func_226309_a_()
public WeightedList<U> func_226314_a_(java.util.Random p_226314_1_)
public java.util.stream.Stream<? extends U> func_220655_b()
public java.util.stream.Stream<WeightedList.Entry<? extends U>> func_226319_c_()
public U func_226318_b_(java.util.Random p_226318_1_)
public java.lang.String toString()
toString
in class java.lang.Object