类 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 pRandom) static <E> SimpleWeightedRandomList<E>
single
(E pData) static <E> com.mojang.serialization.Codec<SimpleWeightedRandomList<E>>
wrappedCodec
(com.mojang.serialization.Codec<E> pElementCodec) static <E> com.mojang.serialization.Codec<SimpleWeightedRandomList<E>>
wrappedCodecAllowingEmpty
(com.mojang.serialization.Codec<E> pCodec)
-
构造器详细资料
-
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> pCodec) -
wrappedCodec
public static <E> com.mojang.serialization.Codec<SimpleWeightedRandomList<E>> wrappedCodec(com.mojang.serialization.Codec<E> pElementCodec) -
builder
-
empty
-
single
-
getRandomValue
-