Interface CollectionCountsPredicate<T, P extends Predicate<T>>
- All Known Implementing Classes:
CollectionCountsPredicate.Multiple, CollectionCountsPredicate.Single, CollectionCountsPredicate.Zero
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordCollectionCountsPredicate.Entry<T, P extends Predicate<T>>static final recordCollectionCountsPredicate.Multiple<T, P extends Predicate<T>>static final recordCollectionCountsPredicate.Single<T, P extends Predicate<T>>static classCollectionCountsPredicate.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> elementCodec) static <T, P extends Predicate<T>>
CollectionCountsPredicate<T, P> of(List<CollectionCountsPredicate.Entry<T, P>> predicates) static <T, P extends Predicate<T>>
CollectionCountsPredicate<T, P> of(CollectionCountsPredicate.Entry<T, P>... predicates) 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> elementCodec) -
of
@SafeVarargs static <T, P extends Predicate<T>> CollectionCountsPredicate<T,P> of(CollectionCountsPredicate.Entry<T, P>... predicates) -
of
static <T, P extends Predicate<T>> CollectionCountsPredicate<T,P> of(List<CollectionCountsPredicate.Entry<T, P>> predicates)
-