net.minecraft.predicate.component

public interface ComponentPredicate

net.minecraft.core.component.predicates.DataComponentPredicate
net.minecraft.core.component.predicates.DataComponentPredicate
net.minecraft.class_9360
net.minecraft.predicate.component.ComponentPredicate

Field summary

Modifier and TypeField
com.mojang.serialization.Codec<Map<ComponentPredicate$Type<?>, ComponentPredicate>>
CODEC
CODEC
field_49805
PREDICATES_MAP_CODEC
PacketCodec<RegistryByteBuf, ComponentPredicate$Typed<?>>
SINGLE_STREAM_CODEC
SINGLE_STREAM_CODEC
field_58054
SINGLE_PREDICATE_PACKET_CODEC
PacketCodec<RegistryByteBuf, Map<ComponentPredicate$Type<?>, ComponentPredicate>>
STREAM_CODEC
STREAM_CODEC
field_58055
PREDICATES_MAP_PACKET_CODEC

Method summary

Modifier and TypeMethod
static com.mojang.serialization.MapCodec<ComponentPredicate$Typed<?>>
singleCodec(String name)
singleCodec(String name)
method_67301(String arg0)
createCodec(String predicateFieldName)
boolean
matches(DataComponentGetter components)
matches(DataComponentGetter components)
method_58161(class_9473 arg0)
test(ComponentsAccess components)