Class WeightedList.Builder<E>
java.lang.Object
net.minecraft.util.random.WeightedList.Builder<E>
- Enclosing class:
WeightedList<E>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionNeo: add the given weighted valueaddAll(Collection<Weighted<E>> values) Neo: add the given weighted valuesaddAll(WeightedList<E> other) build()getList()Neo: Returns an unmodifiable view of the backing list.Neo: remove the given valueNeo: remove the given weighted valueNeo: remove values matching the given predicate
-
Field Details
-
result
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
add
-
add
-
addAll
-
add
Neo: add the given weighted value -
addAll
Neo: add the given weighted values -
remove
Neo: remove the given weighted value -
remove
Neo: remove the given value -
removeIf
Neo: remove values matching the given predicate -
getList
-
build
-