Interface CollectionCountsPredicate<T,P extends Predicate<T>>
- All Known Implementing Classes:
CollectionCountsPredicate.Multiple
,CollectionCountsPredicate.Single
,CollectionCountsPredicate.Zero
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final record
CollectionCountsPredicate.Entry<T,
P extends Predicate<T>> static final record
CollectionCountsPredicate.Multiple<T,
P extends Predicate<T>> static final record
CollectionCountsPredicate.Single<T,
P extends Predicate<T>> static class
CollectionCountsPredicate.Zero<T,
P extends Predicate<T>> -
Method Summary
Modifier and TypeMethodDescriptionstatic <T,
P extends Predicate<T>>
com.mojang.serialization.Codec<CollectionCountsPredicate<T, P>> codec
(com.mojang.serialization.Codec<P> p_335836_) static <T,
P extends Predicate<T>>
CollectionCountsPredicate<T, P> of
(List<CollectionCountsPredicate.Entry<T, P>> p_334665_) static <T,
P extends Predicate<T>>
CollectionCountsPredicate<T, P> of
(CollectionCountsPredicate.Entry<T, P>... p_332496_) unpack()
-
Method Details
-
unpack
List<CollectionCountsPredicate.Entry<T,P>> unpack() -
codec
static <T,P extends Predicate<T>> com.mojang.serialization.Codec<CollectionCountsPredicate<T,P>> codec(com.mojang.serialization.Codec<P> p_335836_) -
of
@SafeVarargs static <T,P extends Predicate<T>> CollectionCountsPredicate<T,P> of(CollectionCountsPredicate.Entry<T, P>... p_332496_) -
of
static <T,P extends Predicate<T>> CollectionCountsPredicate<T,P> of(List<CollectionCountsPredicate.Entry<T, P>> p_334665_)
-