Interface CollectionContentsPredicate<T,P extends Predicate<T>>
- All Known Implementing Classes:
CollectionContentsPredicate.Multiple
,CollectionContentsPredicate.Single
,CollectionContentsPredicate.Zero
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final record
CollectionContentsPredicate.Multiple<T,
P extends Predicate<T>> static final record
CollectionContentsPredicate.Single<T,
P extends Predicate<T>> static class
CollectionContentsPredicate.Zero<T,
P extends Predicate<T>> -
Method Summary
Modifier and TypeMethodDescriptionstatic <T,
P extends Predicate<T>>
com.mojang.serialization.Codec<CollectionContentsPredicate<T, P>> codec
(com.mojang.serialization.Codec<P> p_330819_) static <T,
P extends Predicate<T>>
CollectionContentsPredicate<T, P> static <T,
P extends Predicate<T>>
CollectionContentsPredicate<T, P> of
(P... p_329822_) unpack()
-
Method Details
-
unpack
-
codec
static <T,P extends Predicate<T>> com.mojang.serialization.Codec<CollectionContentsPredicate<T,P>> codec(com.mojang.serialization.Codec<P> p_330819_) -
of
-
of
-