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_341206_) static <T,
P extends Predicate<T>>
CollectionCountsPredicate<T, P> of
(List<CollectionCountsPredicate.Entry<T, P>> p_341102_) static <T,
P extends Predicate<T>>
CollectionCountsPredicate<T, P> of
(CollectionCountsPredicate.Entry<T, P>... p_341225_) 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_341206_) -
of
@SafeVarargs static <T,P extends Predicate<T>> CollectionCountsPredicate<T,P> of(CollectionCountsPredicate.Entry<T, P>... p_341225_) -
of
static <T,P extends Predicate<T>> CollectionCountsPredicate<T,P> of(List<CollectionCountsPredicate.Entry<T, P>> p_341102_)
-