Class ShufflingList<U>
java.lang.Object
net.minecraft.world.entity.ai.behavior.ShufflingList<U>
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected final List<ShufflingList.WeightedEntry<U>>
private final RandomSource
-
Constructor Summary
ModifierConstructorDescriptionprivate
ShufflingList
(List<ShufflingList.WeightedEntry<U>> p_147921_) -
Method Summary
Modifier and TypeMethodDescriptionstatic <U> com.mojang.serialization.Codec<ShufflingList<U>>
codec
(com.mojang.serialization.Codec<U> p_147928_) shuffle()
stream()
toString()
-
Field Details
-
entries
-
random
-
-
Constructor Details
-
ShufflingList
public ShufflingList() -
ShufflingList
-
-
Method Details
-
codec
public static <U> com.mojang.serialization.Codec<ShufflingList<U>> codec(com.mojang.serialization.Codec<U> p_147928_) -
add
-
shuffle
-
stream
-
toString
-