Class WeightedList<T>
java.lang.Object
org.geysermc.mcprotocollib.protocol.data.game.WeightedList<T>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionWeightedList(io.netty.buffer.ByteBuf in, Function<io.netty.buffer.ByteBuf, T> reader) WeightedList(List<WeightedList.Entry<T>> entries) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(WeightedList.Entry<T> entry) voidprotected booleanbooleanbooleanget(int index) inthashCode()@NonNull StringtoString()voidwrite(io.netty.buffer.ByteBuf out, BiConsumer<T, io.netty.buffer.ByteBuf> writer)
-
Constructor Details
-
WeightedList
-
WeightedList
-
-
Method Details
-
write
-
with
public WeightedList<T> with(T value, @org.checkerframework.checker.index.qual.NonNegative int weight) -
add
-
add
-
get
-
contains
-
getEntries
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-