net.minecraft.advancements.critereon

public record CollectionPredicate<T, P extends Predicate<T>>

implements Predicate<Iterable<T>>

bc
net.minecraft.advancements.critereon.CollectionPredicate
net.minecraft.class_9648
net.minecraft.predicate.collection.CollectionPredicate
net.minecraft.src.C_313693_
net.minecraft.advancements.critereon.CollectionPredicate

Field summary

Modifier and TypeField
private final Optional<CollectionContentsPredicate<T, P>>
a
contains
comp_2617
contains
f_315792_
private final Optional<CollectionCountsPredicate<T, P>>
b
counts
comp_2618
counts
f_314648_
private final Optional<MinMaxBounds$Ints>
c
size
comp_2619
size
f_316667_

Constructor summary

ModifierConstructor
public (Optional<CollectionContentsPredicate<T, P>> counts, Optional<CollectionCountsPredicate<T, P>> size, Optional<MinMaxBounds$Ints> arg2)

Method summary

Modifier and TypeMethod
public static <T, P extends Predicate<T>> com.mojang.serialization.Codec<CollectionPredicate<T, P>>
a(com.mojang.serialization.Codec<P> arg0)
codec(com.mojang.serialization.Codec<P> arg0)
method_59623(com.mojang.serialization.Codec<P> arg0)
createCodec(com.mojang.serialization.Codec<P> predicateCodec)
m_321514_(com.mojang.serialization.Codec<P> p_330735_)
public boolean
a(Iterable<T> arg0)
test(Iterable<T> arg0)
method_59625(Iterable<T> arg0)
test(Iterable<T> arg0)
test(Iterable<T> arg0)
public Optional<CollectionContentsPredicate<T, P>>
a()
contains()
comp_2617()
contains()
f_315792_()
public Optional<CollectionCountsPredicate<T, P>>
b()
counts()
comp_2618()
counts()
f_314648_()
public Optional<MinMaxBounds$Ints>
c()
size()
comp_2619()
size()
f_316667_()