Class CollectionPredicate.Builder<T, P extends Predicate<T>>
java.lang.Object
net.minestom.server.instance.block.predicate.CollectionPredicate.Builder<T,P>
- Enclosing class:
CollectionPredicate<T, P extends Predicate<T>>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Specifies that the collection's size must be inside thesizerange.mustContain(P predicate) Specifies thatpredicatemust match at least once.mustMatchCount(P predicate, Range.Int count) Specifies that the number of times thatpredicatematches must fall in thecountrange.
-
Method Details
-
mustContain
Specifies thatpredicatemust match at least once. -
mustMatchCount
Specifies that the number of times thatpredicatematches must fall in thecountrange. -
matchSize
Specifies that the collection's size must be inside thesizerange. -
build
-