类 SimpleWeightedRandomList<E>
java.lang.Object
net.minecraft.util.random.WeightedRandomList<WeightedEntry.Wrapper<E>>
net.minecraft.util.random.SimpleWeightedRandomList<E>
-
嵌套类概要
嵌套类 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static <E> SimpleWeightedRandomList.Builder
<E> builder()
static <E> SimpleWeightedRandomList
<E> empty()
getRandomValue
(RandomSource p_216821_) static <E> SimpleWeightedRandomList
<E> single
(E p_185863_) static <E> com.mojang.serialization.Codec
<SimpleWeightedRandomList<E>> wrappedCodec
(com.mojang.serialization.Codec<E> p_146265_) static <E> com.mojang.serialization.Codec
<SimpleWeightedRandomList<E>> wrappedCodecAllowingEmpty
(com.mojang.serialization.Codec<E> p_185861_)
-
构造器详细资料
-
SimpleWeightedRandomList
SimpleWeightedRandomList(List<? extends WeightedEntry.Wrapper<E>> p_146262_)
-
-
方法详细资料
-
wrappedCodecAllowingEmpty
public static <E> com.mojang.serialization.Codec<SimpleWeightedRandomList<E>> wrappedCodecAllowingEmpty(com.mojang.serialization.Codec<E> p_185861_) -
wrappedCodec
public static <E> com.mojang.serialization.Codec<SimpleWeightedRandomList<E>> wrappedCodec(com.mojang.serialization.Codec<E> p_146265_) -
builder
-
empty
-
single
-
getRandomValue
-