Class WeightedList<T>
java.lang.Object
net.minestom.server.utils.WeightedList<T>
- All Implemented Interfaces:
Iterable<T>
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Codec<WeightedList<T>> static <T> Codec<WeightedList<T>> codec(StructCodec<T> valueCodec) entries()iterator()static <T> NetworkBuffer.Type<WeightedList<T>> networkType(NetworkBuffer.Type<T> valueType) static <T> WeightedList<T> of(WeightedList.Entry<T>... entries) pickOrThrow(Random random) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
WeightedList
-
-
Method Details
-
networkType
-
codec
-
codec
-
of
-
entries
-
pick
-
pickOrThrow
-
iterator
-